/* ============ Landing refresh (2026-10): trust loop, pricing row, mobile fixes ============ */
/* Loaded after every other stylesheet on /en/ and /ch/. */

/* .nav and .hero-inner reset the container's side padding with their shorthand */
.container.nav, .container.hero-inner { padding-left:24px; padding-right:24px; }

/* Line icons replacing emoji in the hero side badges */
/* Side badges sat under the video frame and inherited the hero's white text */
.hero-photo .side-badge { color:var(--dark); z-index:4; }
.hero-video-wrap .sb-1 { top:72px; }
.side-badge .ic svg { width:18px; height:18px; fill:none; stroke:var(--orange); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ---------- Trust: footage lifecycle loop ---------- */
#trust .sec-head { margin-bottom:36px; }
.trust-loop { background:var(--dark); color:#fff; border-radius:24px; padding:36px 44px; display:grid; grid-template-columns:232px 1fr; gap:48px; align-items:center; }
.loop-figure { position:relative; width:232px; height:232px; }
.loop-figure > svg { width:100%; height:100%; overflow:visible; }
.loop-track { fill:none; stroke:rgba(255,255,255,.16); stroke-width:1.5; stroke-dasharray:2 6; }
.loop-orbit { transform-box:view-box; transform-origin:120px 120px; animation:smp-orbit 8s linear infinite; }
.loop-trail { fill:none; stroke:url(#loopTrail); stroke-width:3; stroke-linecap:round; }
.loop-glow { fill:var(--orange); opacity:.35; }
.loop-dot { fill:#fff; }
.loop-node > circle { fill:#232329; stroke:rgba(255,255,255,.22); stroke-width:1.5; animation:smp-node 8s linear infinite; }
.loop-node path, .loop-node rect { fill:none; stroke:#fff; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }
.loop-node.n2 > circle { animation-delay:2s; }
.loop-node.n3 > circle { animation-delay:4s; }
.loop-node.n4 > circle { animation-delay:6s; }
.loop-center { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; pointer-events:none; }
.loop-center svg { width:26px; height:26px; fill:none; stroke:var(--orange-light); stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; margin-bottom:6px; }
.loop-center b { font-size:22px; font-weight:800; letter-spacing:.5px; line-height:1.1; }
.loop-center span { font-size:11.5px; color:#b9b9c2; max-width:124px; line-height:1.35; margin-top:3px; }
.loop-copy h3 { font-size:21px; font-weight:800; letter-spacing:-.3px; margin-bottom:20px; }
.loop-steps { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:18px 32px; }
.loop-steps li { border-top:2px solid rgba(255,255,255,.14); padding-top:14px; animation:smp-step 8s linear infinite; }
.loop-steps li.s2 { animation-delay:2s; }
.loop-steps li.s3 { animation-delay:4s; }
.loop-steps li.s4 { animation-delay:6s; }
.loop-steps b { display:block; font-size:15.5px; font-weight:800; margin-bottom:2px; }
.loop-steps span { display:block; font-size:13.5px; color:#b9b9c2; }
@keyframes smp-orbit { to { transform:rotate(360deg); } }
@keyframes smp-node {
  0%, 14% { fill:var(--orange); stroke:var(--orange-light); }
  26%, 100% { fill:#232329; stroke:rgba(255,255,255,.22); }
}
@keyframes smp-step {
  0%, 14% { border-top-color:var(--orange); }
  26%, 100% { border-top-color:rgba(255,255,255,.14); }
}

/* ---------- Trust: three commitments ---------- */
.trust-points { display:grid; grid-template-columns:repeat(3,1fr); margin-top:22px; background:#fff; border:1px solid var(--line); border-radius:24px; }
.trust-point { padding:30px 30px 32px; }
.trust-point + .trust-point { border-left:1px solid var(--line); }
.tp-icon { width:44px; height:44px; border-radius:12px; background:#FFF0E5; color:var(--orange); display:flex; align-items:center; justify-content:center; margin-bottom:18px; }
.tp-icon svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.trust-point h3 { font-size:17px; font-weight:800; letter-spacing:-.2px; line-height:1.35; margin-bottom:8px; }
.trust-point p { font-size:14px; color:#5a5a63; margin-bottom:16px; }
.trust-point ul { list-style:none; display:grid; gap:9px; }
.trust-point li { position:relative; padding-left:25px; font-size:13.5px; color:#3b3b42; }
.trust-point li::before { content:""; position:absolute; left:0; top:3px; width:16px; height:16px; border-radius:50%; background:#FFF0E5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.8 6.2 5 8.3l4.2-4.6' fill='none' stroke='%23FF5C00' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }

/* ---------- Pricing ---------- */
.pop-badge { align-self:flex-start; }
.price-legend { text-align:center; color:var(--grey); font-size:14px; max-width:820px; margin:-12px auto 28px; }
.price-legend strong { color:var(--dark); }
.price-note { text-align:center; color:var(--grey); font-size:14px; margin-top:24px; }
.price-note + .price-note { margin-top:8px; }
.price-note a { color:var(--orange); font-weight:700; }
.price-swipe, .price-dots { display:none; }
.foot-bottom a { display:inline; padding:0; }

/* Keep headings from leaving one word or character on the last line */
.sec-head h2, .ba-copy h3, .cta-band h2 { text-wrap:balance; }
.sec-head p, .trust-point p, .loop-steps span { text-wrap:pretty; }

@media (prefers-reduced-motion:reduce){
  .loop-orbit, .loop-node > circle, .loop-steps li { animation:none; }
}

/* ---------- Tablet ---------- */
@media (max-width:960px){
  .trust-loop { grid-template-columns:1fr; justify-items:center; gap:30px; padding:34px 28px; }
  .loop-copy { width:100%; }
  .trust-points { grid-template-columns:1fr; }
  .trust-point + .trust-point { border-left:none; border-top:1px solid var(--line); }
  .price-legend > span { display:block; }
  .price-legend .sep { display:none; }
}
@media (min-width:641px) and (max-width:960px){
  .pricing-grid { grid-template-columns:1fr 1fr; }
}

/* ---------- Phone: swipeable plan row ---------- */
@media (max-width:640px){
  .pricing-grid { display:flex; gap:14px; overflow-x:auto; scroll-snap-type:x mandatory; scroll-padding-inline:24px; margin:0 -24px; padding:10px 24px 6px; scrollbar-width:none; }
  .pricing-grid::-webkit-scrollbar { display:none; }
  .price-card { flex:0 0 84%; scroll-snap-align:start; padding:26px 22px; }
  .price-card .amount { font-size:36px; }
  .price-legend { margin:-16px auto 18px; font-size:13px; }
  .price-swipe { display:block; text-align:center; font-size:12.5px; font-weight:600; color:var(--grey); margin-bottom:4px; }
  .price-dots { display:flex; justify-content:center; margin-top:10px; }
  .price-dots button { width:26px; height:26px; border:none; background:none; padding:0; cursor:pointer; display:flex; align-items:center; justify-content:center; }
  .price-dots button::before { content:""; width:8px; height:8px; border-radius:9999px; background:#D5D5DC; transition:width .2s, background .2s; }
  .price-dots button[aria-current="true"]::before { width:22px; background:var(--orange); }
  .price-dots button:focus-visible { outline:2px solid var(--orange); outline-offset:-2px; border-radius:8px; }
}

/* ---------- Phone: general layout ---------- */
@media (max-width:600px){
  section { padding:60px 0; }
  .sec-head { margin-bottom:32px; }
  .sec-head h2 { font-size:29px; letter-spacing:-.5px; }
  .sec-head p { font-size:15.5px; }

  .container.nav { padding-top:10px; padding-bottom:10px; }
  .logo { font-size:16px; gap:8px; }
  .nav-cta .btn { padding:10px 16px; font-size:13px; }

  .hero.hero-photo { padding:0; }
  .container.hero-inner { padding-top:44px; padding-bottom:52px; gap:36px; }
  .hero h1 { font-size:34px; letter-spacing:-1px; }
  .hero .sub { font-size:16px; margin-bottom:26px; }
  .hero .btn-lg { width:100%; }
  .hero-badges { margin-top:22px; gap:8px; font-size:12.5px; }
  .hero-badges span { padding:6px 12px; }

  .stats { padding:28px 0; }
  .stats-grid .num { font-size:28px; }

  .showcase { gap:12px; }
  .show-card { aspect-ratio:4/5; }
  .show-card .cap { flex-direction:column; align-items:flex-start; gap:6px; padding:40px 12px 12px; font-size:13px; line-height:1.3; }
  .show-card .cap .tag { font-size:9.5px; padding:3px 8px; }

  .step { padding:24px; }
  .ba-copy h3 { font-size:22px; }

  .trust-loop { padding:30px 20px; border-radius:20px; }
  .loop-figure { width:204px; height:204px; }
  .loop-copy h3 { font-size:19px; margin-bottom:16px; }
  .loop-steps { grid-template-columns:1fr; gap:12px; }
  .loop-steps li { display:flex; gap:12px; align-items:baseline; padding-top:10px; }
  .loop-steps b { flex:0 0 104px; margin:0; }
  .trust-points { border-radius:20px; }
  .trust-point { padding:24px 22px; }

  .compare th, .compare td { padding:12px 14px; font-size:13px; min-width:108px; }
  .compare th:first-child, .compare td:first-child { min-width:96px; }
  .compare th:first-child, .compare td:first-child { position:sticky; left:0; z-index:1; background:#fff; box-shadow:1px 0 0 var(--line); }
  .compare thead th:first-child { background:var(--dark); }

  .testi { padding:22px; }
  .faq-item button { font-size:15px; gap:14px; }
  .cta-band { padding:36px 24px; border-radius:20px; }
  .cta-band h2 { font-size:25px; }
  .cta-band .btn { width:100%; font-size:16px; padding:15px 22px; }
  .foot-grid { grid-template-columns:1fr; gap:26px; }
}

/* ---------- Header: 立即訂購 + 免費試用 ---------- */
/* These rules only apply where the header has the .nav-buy button (now /ch/). */
.nav-cta .nav-buy { border-color:var(--grey-light); }
.nav-cta .nav-buy:hover { border-color:var(--dark); }
/* The button jumps to the price list: stop below the sticky header */
html:has(.nav-buy) #pricing { scroll-margin-top:24px; }
@media (max-width:600px){
  .nav-cta:has(.nav-buy) { gap:8px; }
  .nav-cta .nav-buy, .nav-cta .nav-buy + .btn { padding:9px 12px; }
}
@media (max-width:359px){
  .nav-cta:has(.nav-buy) { gap:6px; }
  .nav-cta .nav-buy, .nav-cta .nav-buy + .btn { padding:8px 9px; font-size:12.5px; }
}

/* ---------- Header: six section links ---------- */
/* The Team link makes six; tighten the gaps on small laptops so they keep clear of the logo and buttons. */
@media (min-width:961px) and (max-width:1100px){
  .nav-links { gap:18px; }
}

/* ---------- Logo (2026-11): icon and wordmark images replace the "S" badge and the typed name ---------- */
.logo-mark { display:block; flex:none; width:40px; height:40px; }
.logo-words { display:flex; flex-direction:column; align-items:flex-start; }
.logo-word { display:block; width:auto; max-width:none; height:20px; }
.logo-words small { margin-top:3px; }
@media (max-width:600px){
  .logo-mark { width:32px; height:32px; }
  .logo-word { height:17px; }
  .logo-words small { margin-top:2px; }
  .nav-cta .btn { white-space:nowrap; }
}
/* Keep the logo and the header buttons on one line, at least 14px apart, down to 320px */
@media (max-width:389px){
  .nav .logo-mark { width:30px; height:30px; }
  .nav .logo-word { height:16px; }
}
@media (max-width:374px){
  .container.nav { padding-left:16px; padding-right:16px; }
}
@media (max-width:359px){
  .nav .logo { gap:6px; }
  .nav .logo-mark { width:28px; height:28px; }
  .nav .logo-word { height:15px; }
  .nav-cta { gap:6px; }
  .nav-cta .btn { padding:8px 9px; font-size:12.5px; }
}
@media (max-width:339px){
  .container.nav { padding-left:12px; padding-right:12px; }
}
