/* qwenturo.com, the home page (build #28): docs/design/landing-motion/prototype.html, its layout and motion. Follows
   BRAND.md; fonts are hosted here. Motion comes from this file and /js/landing.js: nothing is hidden or faint at rest,
   sections only move into place, loops run only while on screen, and none of it under reduced motion. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/fonts/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600 700; font-display: swap; src: url(/fonts/inter-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/montserrat-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 800; font-display: swap; src: url(/fonts/montserrat-latin-800-normal.woff2) format('woff2'); }

:root {
  /* docs/BRAND.md colours */
  --ink: #181D27; --ink-soft: #4A5163; --mark: #18191A;
  --gold: #CEA85D; --gold-deep: #8D6B3B; --gold-light: #F5D082;
  --paper: #FFFFFF; --paper-soft: #F5F6F8; --line: #E3E6EA;
  --gold-tint: #FBF6EC;
  /* the approved design's own (docs/design/landing-motion): small grey text, and the one dark band (Grow) */
  --muted: #69707D;
  --night: #12161E; --night-2: #1C2230; --night-line: #2B3242; --night-ink: #E8EAEE; --night-soft: #AEB4C0; --night-muted: #8A91A0;
  --phone-frame: #14171D;   /* the dark bezel round a phone's screen (not a brand colour: the hardware) */
  --font: 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Inter', -apple-system, system-ui, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.55; margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
picture { display: contents; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 40; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 3px; border-radius: 8px; }
.grow :focus-visible { outline-color: var(--gold-light); }
section[id], .feature { scroll-margin-top: 80px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.ask { font-size: 15px; font-weight: 600; color: var(--gold-deep); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 520px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 26px; border-radius: 12px; font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(141, 107, 59, .6); }
.btn-line { border: 1px solid var(--line); background: var(--paper); }
.btn-line:hover { border-color: var(--ink-soft); }

/* header (solid, no glass: BRAND.md) */
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
header .wrap { height: 70px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 32px; width: auto; }
.logo span { font-family: var(--font-head); font-weight: 800; letter-spacing: .06em; font-size: 19px; }
nav.links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
nav.links a:hover { color: var(--ink); }
header .btn { height: 42px; padding: 0 18px; font-size: 15px; }
@media (max-width: 860px) { nav.links { display: none; } header .btn { margin-left: auto; } }
@media (max-width: 420px) { header .btn { padding: 0 14px; font-size: 14px; } }
@media (max-width: 359px) { header .wrap { gap: 12px; } .logo span { font-size: 16px; } header .btn { padding: 0 12px; } }

/* hero */
.hero { background: linear-gradient(180deg, var(--paper), var(--paper-soft)); overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 72px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.05; margin-top: 14px; }
.hero .sub { font-size: 20px; color: var(--ink-soft); margin: 22px 0 30px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 16px; }
.hero .copy { padding-bottom: 96px; }
.stage { position: relative; height: 600px; }
.laptop { position: absolute; left: 30px; top: 10px; width: 660px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(24, 29, 39, .35); }
.bar { height: 30px; background: var(--paper-soft); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.bar span { margin-left: 12px; font-size: 12px; color: var(--muted); }
.phone { border-radius: 42px; background: var(--phone-frame); padding: 9px; box-shadow: 0 30px 60px -20px rgba(24, 29, 39, .4); position: relative; }
.phone .screen { border-radius: 33px; overflow: hidden; position: relative; aspect-ratio: 390 / 844; background: var(--paper-soft); }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .phone { position: absolute; left: -28px; top: 150px; width: 236px; }
.chip { position: absolute; display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px 9px 11px; font-size: 14px; font-weight: 600; box-shadow: 0 12px 30px -14px rgba(24, 29, 39, .35); white-space: nowrap; }
.chip b { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-tint); display: grid; place-items: center; color: var(--gold-deep); font-size: 12px; }
.c1 { left: min(250px, calc(100% - 250px)); top: 470px; }   /* (kept inside the column on narrower laptops) */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 44px; }
  .hero .copy { padding-bottom: 10px; }
  .stage { height: 520px; max-width: 600px; width: 100%; margin: 0 auto; }
  .laptop { display: none; }
  .stage .phone { left: 50%; transform: translateX(-50%); top: 30px; width: 250px; }
  .c1 { left: calc(50% - 190px); top: 320px; }
}
@media (max-width: 520px) { .c1 { left: 8px; top: 440px; } }

/* the first screen moves in on load (from where it rests, never from hidden); the chip floats while in view */
@keyframes rise { from { transform: translateY(26px); } to { transform: none; } }
@keyframes riseX { from { transform: translate(-50%, 26px); } to { transform: translate(-50%, 0); } }
@keyframes pop { 0% { transform: scale(.85); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero h1, .hero .sub, .hero .cta { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero .sub { animation-delay: .08s; } .hero .cta { animation-delay: .16s; }
.laptop { animation: rise 1s .1s cubic-bezier(.2, .7, .2, 1) both; }
.stage .phone { animation: rise 1s .25s cubic-bezier(.2, .7, .2, 1) both; }
.chip { animation: pop .5s .9s cubic-bezier(.2, .7, .2, 1) both, float 6s 1.4s ease-in-out infinite; animation-play-state: running, paused; }
.live .chip { animation-play-state: running, running; }
@media (max-width: 980px) { .stage .phone { animation-name: riseX; } }

/* sound familiar */
.worries { background: var(--paper-soft); border-top: 1px solid var(--line); }
.worries .wrap { padding-block: 72px 80px; }
.worries h2 { font-size: 32px; }
.worries .sub { color: var(--ink-soft); font-size: 18px; margin: 8px 0 28px; }
.row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.worry { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 150px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); font-weight: 500; line-height: 1.4; transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.worry span { font-size: 14px; font-weight: 600; color: var(--gold-deep); }
.worry:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 30px -18px rgba(141, 107, 59, .5); }
@media (max-width: 980px) {
  .row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-right: calc(-1 * max(20px, env(safe-area-inset-right, 0px))); }
  .row .worry:focus-visible { outline-offset: -3px; }   /* inside the card: the row scrolls, and would cut a ring outside it */
  .worry { flex: 0 0 230px; scroll-snap-align: start; }
}

/* sections move into place as they scroll in (only where the browser can tie it to scrolling): readable at rest */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: revealIn linear both; animation-timeline: view(); animation-range: entry 0% entry 100%; }
    .reveal-l { animation-name: revealL; } .reveal-r { animation-name: revealR; }
    @media (max-width: 860px) { .reveal-l, .reveal-r { animation-name: revealIn; } }
  }
}
@keyframes revealIn { from { transform: translateY(48px); } to { transform: none; } }
@keyframes revealL { from { transform: translateX(-56px); } to { transform: none; } }
@keyframes revealR { from { transform: translateX(56px); } to { transform: none; } }

/* the four answers */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; padding-block: 88px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; margin: 12px 0 18px; }
.feature .lead { margin-bottom: 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; max-width: 500px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--gold-tint) url(/img/tick.svg) center / 13px no-repeat; }
.shot { display: flex; justify-content: center; align-items: center; gap: 28px; }
.shot .phone { width: 290px; flex: none; }
.feature.wide { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 60px; }
.feature.wide .laptopf { border-radius: 14px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(24, 29, 39, .35); margin-right: -40px; }
.feature .phone-only { display: none; }
.feature .phone-only .phone { width: 260px; }
@media (max-width: 1240px) { .feature.wide .laptopf { margin-right: 0; } }   /* (one change from the prototype: there it ran 20 px off the screen from 981 to 1240 px wide) */
@media (max-width: 860px) {
  .feature, .feature.wide { grid-template-columns: 1fr; gap: 36px; padding-block: 60px; }
  .feature .shot { order: 2; }
  .feature.wide .laptopf { display: none; } .feature .phone-only { display: flex; }
  .shot .phone { width: 260px; }
}
/* the 3-tap sale: a ripple where each tap lands, the screen after it, and the step */
.ripple { position: absolute; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 3px solid var(--gold); opacity: 0; pointer-events: none; }
.ripple.go { animation: ripple .55s ease-out; }
@keyframes ripple { 0% { opacity: .95; transform: scale(.3); background: rgba(206, 168, 93, .35); } 100% { opacity: 0; transform: scale(1.6); } }
.screen img.layer { opacity: 0; transition: opacity .18s; }
.screen img.layer.on { opacity: 1; }
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--muted); transition: color .2s; }
.step b { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-family: var(--font-head); font-size: 16px; transition: all .25s; }
.step.on { color: var(--ink); }
.step.on b { background: var(--gold); border-color: var(--gold); color: var(--ink); transform: scale(1.08); }
@media (max-width: 520px) { .steps { display: none; } }
/* the eye */
.eye { position: absolute; bottom: -18px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; box-shadow: 0 12px 26px -12px rgba(24, 29, 39, .6); }
.eye svg { width: 18px; height: 18px; }

/* Grow: the one dark band */
.grow { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; }
.grow::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -380px; background: radial-gradient(circle, rgba(206, 168, 93, .16), transparent 60%); pointer-events: none; }
.grow .wrap { padding-block: 100px; position: relative; }
.grow .eyebrow { color: var(--gold-light); }
.grow h2.big { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.08; color: var(--paper); margin: 12px 0 16px; max-width: 760px; }
.grow .lead { color: var(--night-soft); max-width: 640px; }
.pillars { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 56px; }
.pillar { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pillar h3 { font-size: 26px; color: var(--paper); }
.pillar p.lead { font-size: 17px; color: var(--night-soft); }
.pillar .small { font-size: 13.5px; color: var(--night-muted); }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
/* the analyst's example */
.chat { margin-top: 8px; background: var(--paper); color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.chat .head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 700; }
.chat .head em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--gold-deep); background: var(--gold-tint); padding: 4px 10px; border-radius: 999px; }
.chat .body { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 330px; }
.q { align-self: flex-end; background: var(--ink); color: var(--paper); border-radius: 16px 16px 4px 16px; padding: 10px 14px; max-width: 85%; font-size: 15px; }
.a { align-self: flex-start; background: var(--paper-soft); border-radius: 16px 16px 16px 4px; padding: 12px 14px; max-width: 92%; font-size: 15px; line-height: 1.5; }
.a b { font-variant-numeric: tabular-nums; }
.typing .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; vertical-align: -2px; margin-left: 1px; animation: blink .8s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 18px 18px; }
.sugg span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; color: var(--ink-soft); }
/* the report */
.desk { position: relative; margin-top: 8px; height: 400px; border-radius: 16px; background: linear-gradient(180deg, var(--night-2), var(--night)); overflow: hidden; border: 1px solid var(--night-line); }
.paper { position: absolute; left: 50%; top: 26px; width: min(86%, 420px); transform: translateX(-50%) rotate(-1.6deg); background: var(--paper); border-radius: 6px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7); overflow: hidden; }
.paper img { width: 100%; }
.desk.play .paper { animation: printUp 1.6s cubic-bezier(.2, .7, .2, 1); }
@keyframes printUp { from { transform: translate(-50%, 240px) rotate(0); } to { transform: translateX(-50%) rotate(-1.6deg); } }
.for { position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--night); border: 1px solid var(--night-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--night-soft); }
.for strong { color: var(--paper); font-weight: 600; min-width: 0; }
.for .word { display: inline-block; color: var(--gold-light); transition: opacity .25s, transform .25s; }
.for .word.out { opacity: 0; transform: translateY(6px); }
/* from your first sale to your own shop */
.path { margin-top: 64px; }
.path h3 { font-size: 26px; color: var(--paper); margin-bottom: 6px; }
.path p.sub { color: var(--night-soft); margin-bottom: 26px; }
.cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--night-line); }
.cell { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--night-line); }
.cell:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--night-line); }
.cell b { display: block; color: var(--paper); margin-bottom: 4px; }
.cell p { color: var(--night-soft); font-size: 15.5px; }
@media (max-width: 860px) { .cells { grid-template-columns: 1fr; } .cell, .cell:not(:nth-child(3n+1)) { padding: 18px 0; border-left: 0; } }

/* promises, the closing call, questions, footer */
.promises { background: var(--paper-soft); }
.promises .wrap { padding-block: 96px; }
.promises h2 { font-size: clamp(30px, 3.4vw, 40px); margin: 12px 0 36px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.promise { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .25s; }
.promise:hover { transform: translateY(-4px); }
.promise b { display: block; font-size: 18px; margin-bottom: 8px; }
.promise p { color: var(--ink-soft); font-size: 15.5px; }
@media (max-width: 980px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pgrid { grid-template-columns: 1fr; } }
.closing .wrap { padding-block: 100px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.closing .mark { height: 60px; width: auto; margin-bottom: 8px; animation: float 6s ease-in-out infinite; animation-play-state: paused; }
.closing.live .mark { animation-play-state: running; }
.closing h2 { font-size: clamp(34px, 4vw, 46px); }
.closing p { color: var(--ink-soft); font-size: 18px; margin-bottom: 12px; }
.faq .wrap { padding-block: 88px; display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 60px; border-top: 1px solid var(--line); }
.faq h2 { font-size: 32px; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 22px; color: var(--ink-soft); max-width: 640px; }
@media (max-width: 860px) { .faq .wrap { grid-template-columns: 1fr; gap: 20px; } }
footer .wrap { padding-block: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
footer .grow-gap { margin-left: auto; }
footer a:hover { color: var(--ink); }
@media (max-width: 560px) { footer .grow-gap { margin-left: 0; } }

/* reduced motion: a still page */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
