/* Landing page only. Tokens and base styles come from site.css. */
@font-face { font-family: "Inter Tight"; font-weight: 600; font-display: swap; src: url(/fonts/inter-tight-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter Tight"; font-weight: 700; font-display: swap; src: url(/fonts/inter-tight-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-thai-500-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-thai-thai-600-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }

:root {
  --navy: #061640;
  --navy-text: #FFFFFF;
  --navy-muted: #B9C2DC;
  --red: #E31324;
  --bezel: #17150F;
  --band: #ECE7DE;
  --shadow: 0 30px 60px -28px rgba(23, 21, 15, .45), 0 8px 18px -10px rgba(23, 21, 15, .25);
  --display: "Inter Tight", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --text: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --thai: "IBM Plex Sans Thai", "Thonburi", "Noto Sans Thai", "Leelawadee UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bezel: #3A362F;
    --band: #1A1815;
    --shadow: 0 30px 60px -28px rgba(0, 0, 0, .8), 0 8px 18px -10px rgba(0, 0, 0, .6);
  }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.home { font-family: var(--text); overflow-x: hidden; }
.home :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.home [id] { scroll-margin-top: 84px; }

.shell { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

.home h1, .home h2, .home h3 { font-family: var(--display); text-wrap: balance; }
.home h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.04em; font-weight: 700; margin: 0; }
.home h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 16px; }
.home h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 6px; }
.home p { margin: 0; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px !important; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top { transition: box-shadow .25s ease; }
.top.scrolled { box-shadow: 0 10px 30px -22px rgba(23, 21, 15, .55); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.top .brand { font-family: var(--display); font-size: 20px; }
.top .brand img { border-radius: 8px; }
.top-nav { display: flex; align-items: center; gap: 2px; }
.top-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 9px 13px; border-radius: 999px; }
.top-nav a:hover { background: var(--card); }
.top-nav .nav-cta { background: var(--ink); color: var(--ground); font-weight: 600; margin-left: 8px; padding: 9px 16px; }
.top-nav .nav-cta:hover { background: var(--accent); color: #fff; }
@media (max-width: 720px) { .top-nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; position: relative; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto; height: 620px; pointer-events: none; translate: 0 var(--py, 0px); background: radial-gradient(60% 70% at 78% 30%, color-mix(in srgb, var(--accent-soft) 90%, transparent), transparent 70%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; padding-bottom: clamp(40px, 7vw, 88px); }
.pill { display: inline-flex; align-items: center; gap: 9px; background: var(--card); color: var(--ink); font-size: 14px; font-weight: 500; padding: 7px 14px 7px 12px; border-radius: 999px; border: 1px solid var(--line); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.hero-lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; margin-top: 4px; }
.appstore { display: inline-flex; align-items: center; gap: 11px; background: #000; color: #fff; text-decoration: none; padding: 10px 22px 10px 16px; border-radius: 14px; border: 1px solid #000; font-family: var(--text); font-size: 23px; font-weight: 600; line-height: 1.05; letter-spacing: -0.02em; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .7); }
.appstore span { display: flex; flex-direction: column; }
.appstore small { font-size: 11.5px; font-weight: 500; letter-spacing: 0; opacity: .92; margin-bottom: 2px; }
.appstore:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(0, 0, 0, .75); }
.appstore.on-dark { border-color: rgba(255, 255, 255, .55); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .appstore { border-color: rgba(255, 255, 255, .45); } }
.ghost { color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; border-bottom: 2px solid var(--line); padding: 4px 0; }
.ghost:hover { border-color: var(--accent); color: var(--accent); }
.assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 0; margin: 0; font-size: 15px; color: var(--muted); }
.assurances li { margin: 0; display: flex; align-items: center; gap: 7px; }
.assurances li::before { content: ""; width: 15px; height: 15px; flex: none; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }

/* Phones */
.phone { border-radius: 13.5% / 6.3%; background: var(--bezel); padding: 2.6%; box-shadow: var(--shadow); width: 100%; }
.phone img { display: block; width: 100%; height: auto; border-radius: 11.5% / 5.3%; }
.hero-art { position: relative; align-self: end; height: clamp(440px, 46vw, 600px); clip-path: inset(-60px -60px 0 -120px); }
.hero-art .phone { translate: 0 var(--py, 0px); will-change: translate; position: absolute; width: min(60%, 290px); }
.hero-art .phone-front { right: 6%; top: 0; z-index: 2; animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero-art .phone-back { left: 4%; top: 64px; transform: rotate(-5deg); transform-origin: bottom left; animation: rise-back 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { transform: translateY(36px); } to { transform: none; } }
@keyframes rise-back { from { transform: translateY(48px) rotate(-2deg); } to { transform: rotate(-5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art .phone { animation: none; } .appstore { transition: none; } }

/* Problem band */
.gap-band { background: var(--band); padding: clamp(56px, 8vw, 96px) 0; position: relative; z-index: 3; }
.gap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.gap-grid p:not(.eyebrow) { font-size: 18px; color: var(--muted); max-width: 30em; }
[data-parallax].pairs { translate: 0 var(--py, 0px); }
.pairs { background: var(--card); border-radius: 24px; padding: 8px 24px; box-shadow: 0 1px 0 var(--line); }
.pairs-head, .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: baseline; }
.pairs-head { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 0 10px; }
.pair { padding: 15px 0; border-top: 1px solid var(--line); }
.pair span:first-child { color: var(--muted); font-size: 16px; }
.pair span:last-child { font-family: var(--thai); font-weight: 600; font-size: clamp(18px, 2.2vw, 23px); line-height: 1.35; color: var(--ink); }
.pair:first-of-type span:last-child { color: var(--accent); }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section > .shell > h2 { max-width: 18em; }

.step-n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 15px var(--display); margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .step-n { color: #0B1A15; } }

/* Models */
.models { background: var(--card); }
.models-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.models-copy > p:not(.eyebrow):not(.fine) { font-size: 18px; color: var(--muted); max-width: 31em; }
.model-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 28px 0 16px; max-width: 520px; }
.model { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 18px; background: var(--ground); border: 1.5px solid var(--line); min-width: 0; }
.model.is-default { border-color: var(--accent); background: var(--accent-soft); }
.model-mono { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--card); color: var(--ink); font: 700 17px var(--display); }
.model strong { display: block; color: var(--ink); font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; }
.model span:not(.model-mono) { font-size: 13.5px; color: var(--muted); }
.fine { font-size: 14px; color: var(--muted); }
.models-art { display: flex; justify-content: center; max-height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.models-art .phone { width: min(100%, 310px); align-self: flex-start; translate: 0 calc((.5 - var(--pp, .5)) * 90px); rotate: calc((.5 - var(--pp, .5)) * 7deg); will-change: translate, rotate; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; margin-top: 44px; }
.features article { min-width: 0; }
.features svg { width: 44px; height: 44px; padding: 10px; border-radius: 13px; background: var(--accent-soft); fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 16px; }
.features p { color: var(--muted); font-size: 16px; }

/* FAQ */
.faq { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 6vw, 80px); border-top: 1px solid var(--line); padding-top: clamp(56px, 8vw, 96px); }
.faq-grid > div:first-child p { color: var(--muted); }
.faq details:first-child { margin-top: 0; }
.faq details p { padding-bottom: 16px; color: var(--muted); font-size: 16px; }

/* Final call to action */
.final { background: var(--navy); color: var(--navy-text); padding: clamp(64px, 9vw, 104px) 0 clamp(104px, 12vw, 150px); position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -236px; height: 300px; border-radius: 50%; border-top: 14px solid var(--red); box-shadow: 0 -34px 0 -14px rgba(255, 255, 255, .92); opacity: .9; transform: rotate(-3deg); translate: 0 var(--py, 0px); }
.final-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.final img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.home .final h2 { color: var(--navy-text); margin: 6px 0 0; }
.final p { color: var(--navy-muted); font-size: 18px; max-width: 28em; }
.final .appstore { margin-top: 10px; }
.final .final-meta { font-size: 14px; }

/* Footer */
.bottom { padding: 28px 0 40px; font-size: 13.5px; color: var(--muted); }
.bottom-row { display: flex; gap: 20px 40px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.bottom p { max-width: 46em; flex: 1 1 320px; }
.bottom nav { display: flex; gap: 20px; }
.bottom a { color: var(--ink); text-decoration: none; font-weight: 500; }
.bottom a:hover { color: var(--accent); }

/* Narrow screens */
@media (max-width: 860px) {
  .hero-grid, .gap-grid, .models-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-bottom: 8px; }
  .hero-art { height: 440px; max-width: 460px; width: 100%; justify-self: center; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .models-art { max-height: 420px; }
}
@media (max-width: 520px) {
  .features, .model-cards { grid-template-columns: minmax(0, 1fr); }
  .hero-art { height: 380px; }
  .pairs { padding: 6px 18px; }
}

/* Scroll reveal. Hidden state applies only once home.js has confirmed it will run. */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; translate: none; }
.js .pair.reveal { translate: none; }
.js .pair.reveal span:last-child { display: inline-block; opacity: 0; translate: 18px 0; filter: blur(6px); transition: opacity .6s ease .25s, translate .6s cubic-bezier(.2, .7, .2, 1) .25s, filter .6s ease .25s; transition-delay: inherit; }
.js .pair.reveal.in span:last-child { opacity: 1; translate: none; filter: none; }
.js .features .reveal svg { scale: .6; transition: scale .6s cubic-bezier(.3, 1.6, .5, 1) .15s; }
.js .features .reveal.in svg { scale: 1; }
@media (max-width: 860px) { [data-parallax].pairs { translate: none; } }

/* ---- Second pass: richer motion ---- */

/* Scroll progress line under the header */
.top::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--red)); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }

/* Headline lines rise out of a mask on load */
.home h1 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.home h1 .line > span { display: inline-block; animation: line-up 1s cubic-bezier(.2, .8, .2, 1) both; }
.home h1 .line:nth-child(2) > span { animation-delay: .12s; }
@keyframes line-up { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
.hero-copy > :not(h1) { animation: fade-up .9s cubic-bezier(.2, .8, .2, 1) .25s both; }
.hero-copy > .demo { animation-delay: .4s; }
.hero-copy > .cta-row { animation-delay: .5s; }
.hero-copy > .assurances { animation-delay: .6s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Live translation demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); align-items: center; gap: 14px; width: 100%; max-width: 520px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 18px; box-shadow: 0 18px 40px -30px rgba(23, 21, 15, .5); }
.demo-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.demo-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.demo-en, .demo-th { height: 30px; line-height: 30px; white-space: nowrap; overflow: hidden; }
.demo-en { font-size: 17px; color: var(--ink); display: flex; align-items: center; }
.demo-th { font-family: var(--thai); font-weight: 600; font-size: 19px; color: var(--accent); transition: opacity .45s ease, filter .45s ease, translate .45s cubic-bezier(.2, .7, .2, 1); }
.demo-th.out { opacity: 0; filter: blur(8px); translate: 10px 0; }
.caret { flex: none; width: 2px; height: 20px; margin-left: 2px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-arrow { width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero phones tilt in 3D and flatten as you scroll */
.js .hero-art { transform: perspective(1400px) rotateY(calc((var(--pp, .4) - .85) * 32deg)) rotateX(calc((.85 - var(--pp, .4)) * 12deg)); transform-origin: 50% 60%; will-change: transform; }

/* Ticker of Thai product names, driven by scroll */
.ticker { overflow: hidden; padding: clamp(36px, 6vw, 72px) 0; display: flex; flex-direction: column; gap: clamp(14px, 2.4vw, 28px); background: var(--ground); }
.ticker-row { display: flex; gap: clamp(28px, 5vw, 72px); width: max-content; white-space: nowrap; translate: calc(var(--pp, .5) * -32%) 0; will-change: translate; }
.ticker-rev { translate: calc(-36% + var(--pp, .5) * 32%) 0; }
.ticker-row span { display: inline-flex; flex-direction: column; font-family: var(--thai); font-weight: 600; font-size: clamp(38px, 7vw, 84px); line-height: 1.25; color: var(--ink); }
.ticker-row span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--muted); }
.ticker-row small { font-family: var(--text); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); -webkit-text-stroke: 0; }

/* How it works: a dark band with a pinned phone that changes screen per step */
.how { --ground: #12110E; --card: #1E1C18; --ink: #F5F2EC; --body: #DCD5C9; --muted: #A39C8E; --line: #2E2B25; --accent: #3FA285; --bezel: #3A362F; background: var(--ground); color: var(--body); }
.how .step-n { color: #0B1A15; }
.story { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 7vw, 96px); align-items: start; margin-top: 32px; }
.story-stage { display: flex; align-items: center; justify-content: center; gap: 22px; padding: 24px 0; }
.story-clip { display: flex; justify-content: center; }
.story-phone { width: min(100%, 286px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06); }
.story-screens { position: relative; border-radius: 11.5% / 5.3%; overflow: hidden; }
.story-screens img { border-radius: 0; transition: opacity .55s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.story-screens img + img { position: absolute; inset: 0; opacity: 0; transform: translateY(5%) scale(.97); }
.story[data-step="1"] img:nth-child(1), .story[data-step="2"] img:nth-child(1), .story[data-step="2"] img:nth-child(2) { opacity: 0; transform: translateY(-5%) scale(.97); }
.story[data-step="1"] img:nth-child(2), .story[data-step="2"] img:nth-child(3) { opacity: 1; transform: none; }
.story-dots { display: none; flex-direction: column; gap: 8px; }
.story-dots i { width: 4px; height: 26px; border-radius: 4px; background: var(--line); transition: background .3s ease, height .3s ease; }
.story-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 40px; }
.story-step { margin: 0; display: flex; flex-direction: column; align-items: flex-start; transition: opacity .4s ease, translate .5s cubic-bezier(.2, .7, .2, 1); }
.story-step h3 { font-size: clamp(24px, 2.8vw, 34px) !important; letter-spacing: -0.03em; margin-bottom: 10px; }
.story-step p { color: var(--muted); font-size: 18px; max-width: 26em; }

.story.on .story-stage { position: sticky; top: calc(50vh - 330px + 32px); }
.story.on .story-dots { display: flex; }
.story.on .story-steps { gap: 0; }
.story.on .story-step { min-height: 64vh; justify-content: center; opacity: .22; translate: 0 10px; }
.story.on .story-step.active { opacity: 1; translate: none; }
.story.on[data-step="0"] .story-dots i:nth-child(1), .story.on[data-step="1"] .story-dots i:nth-child(2), .story.on[data-step="2"] .story-dots i:nth-child(3) { background: var(--accent); height: 44px; }

@media (max-width: 860px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-phone { width: min(62vw, 250px); transition: translate .7s cubic-bezier(.2, .7, .2, 1); }
  .story.on .story-stage { top: 64px; z-index: 2; height: 50svh; padding: 14px 0 0; align-items: stretch; background: var(--ground); border-bottom: 1px solid var(--line); }
  .story.on .story-clip { overflow: hidden; align-items: flex-start; }
  .story.on[data-step="2"] .story-phone { translate: 0 calc(-100% + 50svh - 30px); }
  .story.on .story-dots { justify-content: center; }
  .story.on .story-step { min-height: 44svh; justify-content: flex-start; padding-top: 34px; }
  .story.on .story-step:last-child { min-height: 36svh; }
  .story:not(.on) .story-steps { margin-top: 24px; }
}
@media (max-width: 520px) {
  .demo { gap: 10px; padding: 12px 14px; }
  .demo-en { font-size: 15px; } .demo-th { font-size: 17px; }
}

/* Closing headline scales up as it arrives */
.js .final h2.reveal { scale: .86; transition: opacity .8s ease, translate .8s cubic-bezier(.2, .7, .2, 1), scale .9s cubic-bezier(.2, .7, .2, 1); }
.js .final h2.reveal.in { scale: 1; }

@media (prefers-reduced-motion: reduce) {
  .home h1 .line > span, .hero-copy > :not(h1), .caret { animation: none; }
  .story-screens img, .story-step, .story-phone, .story-dots i, .demo-th { transition: none; }
  .ticker-row, .ticker-rev { translate: -6% 0; }
}

/* Safari on iOS shows Apple's Smart App Banner at the top of the page. Keep our
   bar out of sight there and slide it in once the banner has scrolled away,
   so the two are never on screen together. */
.ios-banner .top { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-110%); visibility: hidden; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .32s, box-shadow .25s ease; }
.ios-banner .top.show { transform: none; visibility: visible; transition: transform .32s cubic-bezier(.2, .7, .2, 1), visibility 0s, box-shadow .25s ease; }
.ios-banner .top-nav .nav-cta, .ios-banner .top-nav .nav-cta:hover { background: #007AFF; color: #fff; font-size: 15px; font-weight: 600; line-height: 20px; padding: 5px 17px; }
@media (prefers-reduced-motion: reduce) { .ios-banner .top, .ios-banner .top.show { transition: none; } }

/* Shopping sites (1.2) */
.sites .site-list { list-style: none; margin: 24px 0 18px; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 31em; }
.sites .site-list li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; border-left: 2px solid var(--accent); }
.sites .site-list strong { font-size: 17px; }
.sites .site-list span { color: var(--muted); font-size: 16px; }
@media (min-width: 861px) { .sites .models-art { order: -1; } .sites .models-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
