/* Avilark landing. Tokens mirror web/src/theme.css so app and site are one brand. */
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/HankenGrotesk-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('/assets/fonts/Geist-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #F6F5F2; --surface: #FFFFFF; --surface-sunken: #EFEDE8;
  --line: #E5E2DB; --line-strong: #D2CEC5;
  --ink: #17181A; --ink-2: #575C63; --ink-3: #8B9097; --ink-invert: #FFFFFF;
  --accent: #0E5B43; --accent-strong: #0A462F; --accent-soft: #E4F0E9;
  --up: #0B7A3E; --down: #C13A2E; --warn: #A9720F;
  --font-body: 'Hanken Grotesk', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-num: 'Geist', 'Hanken Grotesk', monospace;
  --r-md: 12px; --r-lg: 18px; --r-xl: 28px;
  --shadow-md: 0 10px 30px rgba(23, 24, 26, 0.08);
  --shadow-lg: 0 24px 60px rgba(23, 24, 26, 0.12);
  --maxw: 1140px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141519; --surface: #1D1F24; --surface-sunken: #101114;
    --line: #2B2E35; --line-strong: #3C4049;
    --ink: #E4E2DD; --ink-2: #A8ADB5; --ink-3: #7B818A; --ink-invert: #17181A;
    --accent: #47A882; --accent-strong: #5FBD97; --accent-soft: #1A2F26;
    --up: #4CAF6E; --down: #E06A5E;
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.nobr { white-space: nowrap; }

/* Selection + keyboard focus. Every link and button in the site is an <a>;
   `button` is covered too in case one ever lands. :focus-visible keeps the
   ring keyboard-only (mouse/touch clicks do not trigger it in evergreen
   browsers); the :not() rule is belt-and-suspenders for engines that still
   match :focus on a pointer click. */
::selection { background: var(--accent-soft); color: var(--ink); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
a:focus:not(:focus-visible), button:focus:not(:focus-visible) {
  outline: none;
}

/* Reveal system: elements start shifted+transparent ONLY when the js adds
   .reveal-armed to <html> (so no-JS and reduced-motion users see everything). */
.reveal-armed [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: var(--reveal-delay, 0ms); }
.reveal-armed [data-reveal].is-in { opacity: 1; transform: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: 12px; font-weight: 650; font-size: 17px; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out), background 0.15s; }
.btn:active { transform: translateY(1px); }
/* Text on the accent fill flips with the theme like the app does: white on
   deep evergreen in light, near-black on the lifted green in dark (AA safe). */
.btn-primary { background: var(--accent); color: var(--ink-invert); box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); }

/* ----------------------------------------------------------------------
   Page chrome (Task 1 scaffold). Sections themselves stay empty shells
   until Tasks 2-6 build them out; this block only makes the nav and
   footer presentable and establishes generic section rhythm.
   ---------------------------------------------------------------------- */

/* Section rhythm: generous, viewport-aware breathing room. Shells that are
   still empty (filled by later tasks) collapse to nothing. */
section { padding: clamp(96px, 14vh, 160px) 0; scroll-margin-top: 72px; }
section:empty { padding: 0; }

h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.015em; line-height: 1.12; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
.section-head { max-width: 680px; margin: 0 auto clamp(48px, 7vh, 76px); text-align: center; }
.section-sub { margin: 0; color: var(--ink-2); font-size: 1.15rem; text-wrap: pretty; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: transparent; border-bottom: 1px solid transparent; transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out); }
.nav.is-stuck { background: rgba(246, 245, 242, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line); }
@media (prefers-color-scheme: dark) {
  .nav.is-stuck { background: rgba(20, 21, 25, 0.78); }
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 24px; }
.nav-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.nav-mark { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

@media (max-width: 760px) {
  .nav-inner { flex-wrap: wrap; row-gap: 12px; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 20px; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 28px; margin-top: 48px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; }
.footer-tagline { color: var(--ink-2); margin: 0; font-size: 15px; }
.footer-col h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-3); margin: 0 0 14px; font-weight: 650; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; }
.footer-bottom p { margin: 0; color: var(--ink-3); font-size: 13px; }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ----------------------------------------------------------------------
   Hero. One screen: eyebrow, headline, sub, CTAs, and a trading day drawn
   as a single stroke that resolves into the lark. Every animation in here
   runs only under .reveal-armed (added by main.js when motion is allowed),
   so no-JS and reduced-motion visitors get the finished scene, static.
   ---------------------------------------------------------------------- */

#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }

#hero { min-height: calc(92vh - 76px); min-height: calc(92svh - 76px); display: grid; align-content: center; padding: 16px 0 72px; }
.hero-inner { text-align: center; }

.hero-eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); text-wrap: balance; }
.hero-title { margin: 0 auto 18px; max-width: 22ch; font-size: clamp(2.9rem, 7vw, 4.9rem); line-height: 1.03; letter-spacing: -0.022em; font-weight: 700; text-wrap: balance; }
.hero-sub { margin: 0 auto 30px; max-width: 52ch; font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-lg { padding: 16px 30px; font-size: 18px; border-radius: 14px; }
.hero-invite { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

/* Copy entrance: hero-scoped keyframes, not the Task 3 reveal system. */
.reveal-armed .hero-copy > * { opacity: 0; animation: hero-rise 0.7s var(--ease-out) forwards; }
.reveal-armed .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.reveal-armed .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.reveal-armed .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
.reveal-armed .hero-copy > :nth-child(5) { animation-delay: 0.32s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* The stage */
.hero-visual { position: relative; margin: clamp(28px, 4.5vh, 48px) auto 0; }
.hero-visual::before { content: ''; position: absolute; inset: -8% 6%; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); opacity: 0.75; pointer-events: none; }
.hero-stage { position: relative; }
.hero-chart { position: relative; width: 100%; height: auto; }

.hero-grid-lines line { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.6; }
.hero-axis { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 8; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hero-axis-label { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; fill: var(--ink-3); }
.hero-axis-label-end { text-anchor: end; }

.hero-line { stroke: var(--accent); stroke-width: 2.75px; stroke-linecap: round; stroke-linejoin: round; }
.hero-area { opacity: 1; }
.hero-fade-a { stop-color: var(--accent); stop-opacity: 0.14; }
.hero-fade-b { stop-color: var(--accent); stop-opacity: 0; }

.hero-dip-halo { fill: var(--accent); opacity: 0.14; }
.hero-dip-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.75px; }
.hero-wing { fill: var(--accent); }
.hero-head { fill: var(--accent); }

/* Draw-in: the day plays out left to right, then the lark lands. */
.reveal-armed .hero-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hero-draw 1.6s var(--ease-out) 0.3s forwards; }
@keyframes hero-draw { to { stroke-dashoffset: 0; } }
.reveal-armed .hero-area { opacity: 0; animation: hero-fade-in 1s var(--ease-out) 1.15s forwards; }
.reveal-armed .hero-dip { opacity: 0; animation: hero-fade-in 0.5s var(--ease-out) 0.85s forwards; }
.reveal-armed .hero-lark { opacity: 0; transform-box: fill-box; transform-origin: 62% 68%; animation: hero-lark-in 0.55s var(--ease-out) 1.72s forwards; }
@keyframes hero-fade-in { to { opacity: 1; } }
@keyframes hero-lark-in { from { opacity: 0; transform: scale(0.55) rotate(-10deg); } to { opacity: 1; transform: none; } }

/* Floating product cards anchored to moments on the line. */
/* Never narrower than the one-line card title needs. */
.hero-card-slot { position: absolute; width: clamp(210px, 24vw, 264px); }
.hero-slot-alert { left: 23%; top: 69%; }
.hero-slot-brief { right: 14%; top: 6%; }
.hero-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 16px 18px; text-align: left; }
/* Dot + one text span: two flex items, so the title can never stack. */
.hero-card-title { margin: 0 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-card-title .num { font-weight: 650; }
.hero-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-card-body { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }

.reveal-armed .hero-card-slot { opacity: 0; animation: hero-card-in 0.7s var(--ease-out) forwards; }
.reveal-armed .hero-slot-alert { animation-delay: 0.95s; }
.reveal-armed .hero-slot-brief { animation-delay: 1.95s; }
@keyframes hero-card-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Gentle idle float, desynced per card; motion-gated like everything else. */
.reveal-armed .hero-card { animation: hero-float 6s ease-in-out 2.8s infinite alternate; }
.reveal-armed .hero-slot-brief .hero-card { animation-duration: 7s; animation-delay: 3.4s; }
@keyframes hero-float { from { transform: translateY(0); } to { transform: translateY(6px); } }

@media (max-width: 760px) {
  /* The two-row nav would blanket a phone screen if it stuck; let it scroll
     away instead. The hero carries its own CTAs. */
  .nav { position: static; }
  #hero { min-height: 0; padding: 24px 0 56px; }
  .hero-sub { font-size: 1.12rem; }
  .btn-lg { padding: 14px 24px; font-size: 16.5px; }
  .hero-visual { margin-top: 28px; }
  /* Crop the morning session so the chart keeps real height on a phone:
     the window shows the dip onward, line bleeding in from the left edge. */
  .hero-stage { overflow: hidden; }
  .hero-chart { width: 172%; margin-left: -72%; }
  .hero-card-slot { position: static; width: min(100%, 420px); margin: 12px auto 0; }
  .hero-slot-alert { margin-top: 20px; }
  .hero-axis-label { display: none; }
}

/* Compact nav on small phones: one primary action, tighter paddings, so the
   bar fits 390px with no horizontal scroll. */
@media (max-width: 560px) {
  .nav-inner { padding: 14px 20px; gap: 16px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn-ghost { display: none; }
  .nav-actions .btn { padding: 10px 16px; font-size: 15px; }
}

/* ----------------------------------------------------------------------
   #how. Three quiet habits as three cards; the grid staggers in via
   [data-stagger] (main.js tags children with data-reveal + 90ms steps).
   ---------------------------------------------------------------------- */

.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; }
.card-icon { display: block; color: var(--accent); margin-bottom: 22px; }
.card-kicker { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.card h3 { margin: 0 0 10px; font-size: 1.3rem; letter-spacing: -0.012em; font-weight: 700; }
.card-body { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }

/* ----------------------------------------------------------------------
   #day scrollytelling. Desktop: the card stack sticks at 18vh while the
   three steps scroll past; the step in view lights its card (main.js
   toggles .is-active). Dimming lives under .reveal-armed so no-JS and
   reduced-motion visitors see all three cards at full strength.
   ---------------------------------------------------------------------- */

.day-layout { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 96px); align-items: start; }
.day-visual { position: sticky; top: 18vh; display: flex; flex-direction: column; gap: 18px; }

.day-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 18px 20px; }
.reveal-armed .day-card { opacity: 0.35; transform: scale(0.96); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out); }
.reveal-armed .day-card.is-active { opacity: 1; transform: none; box-shadow: var(--shadow-lg); }

.day-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.day-card-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.day-card-dot.is-alert { background: var(--down); }
.day-card-kind { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.day-card-time { margin-left: auto; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); }
.day-card-lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.day-card-lead .num { color: var(--ink); font-weight: 650; }

.day-card-rows { list-style: none; margin: 12px 0 0; padding: 0; }
.day-card-rows li { display: flex; align-items: baseline; gap: 10px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); font-size: 13.5px; }
.day-card-sym { font-weight: 650; color: var(--ink); }
.day-card-note { flex: 1; min-width: 0; color: var(--ink-3); }
.day-card-chg { font-weight: 600; color: var(--ink-2); }
.day-card-chg.is-up { color: var(--up); }
.day-card-chg.is-down { color: var(--down); }

.day-spark { display: block; width: 100%; height: auto; margin-top: 14px; }
.day-spark-line { stroke: var(--down); stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; }
.day-spark-area { fill: var(--down); opacity: 0.07; }
.day-spark-dot { fill: var(--surface); stroke: var(--down); stroke-width: 2px; }

.day-steps { display: flex; flex-direction: column; }
.day-step { min-height: 70vh; display: grid; align-content: center; }
.reveal-armed .day-step { opacity: 0.4; transition: opacity 0.5s var(--ease-out); }
.reveal-armed .day-step.is-active { opacity: 1; }

.day-step-time { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; font-size: 13.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); }
.day-step-time::before { content: ''; width: 28px; height: 2px; border-radius: 1px; background: var(--accent); }
.day-step h3 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.4vw, 1.9rem); letter-spacing: -0.015em; font-weight: 700; line-height: 1.2; }
.day-step-body { margin: 0; color: var(--ink-2); max-width: 46ch; }

/* Mobile: unstick and interleave. Both column wrappers flatten to
   display:contents so the six children share one flex column and `order`
   places each card directly above its step text; one copy of each card in
   the DOM either way. The dim mechanic is a desktop cue only. */
@media (max-width: 899px) {
  .day-layout { display: flex; flex-direction: column; gap: 18px; }
  .day-visual, .day-steps { display: contents; }
  .day-card { max-width: 540px; }
  .day-visual .day-card:nth-child(1) { order: 1; }
  .day-steps .day-step:nth-child(1) { order: 2; }
  .day-visual .day-card:nth-child(2) { order: 3; }
  .day-steps .day-step:nth-child(2) { order: 4; }
  .day-visual .day-card:nth-child(3) { order: 5; }
  .day-steps .day-step:nth-child(3) { order: 6; }
  .day-step { min-height: 0; padding: 6px 0 34px; }
  .day-step:last-child { padding-bottom: 0; }
  .reveal-armed .day-card { opacity: 1; transform: none; }
  .reveal-armed .day-step { opacity: 1; }
}

/* ----------------------------------------------------------------------
   #advisor. The page's first left-aligned section head: copy column beside
   a chat mock that mirrors the app's real advisor screen (accent-soft user
   bubble right, bordered surface bubble left, sources as chips). Bubbles
   reveal in conversation order via inline --reveal-delay.
   ---------------------------------------------------------------------- */

.advisor-layout { display: grid; grid-template-columns: minmax(300px, 5.5fr) minmax(0, 6.5fr); gap: clamp(40px, 6vw, 84px); align-items: center; }
.advisor-copy .section-sub { max-width: 52ch; }

.advisor-showcase { position: relative; }
/* Vertical-only overhang, like the hero glow: a negative horizontal inset
   would poke past the wrap padding and cause sideways scroll at ~768-1024. */
.advisor-showcase::before { content: ''; position: absolute; inset: -10% 0; background: radial-gradient(closest-side, var(--accent-soft), transparent 72%); opacity: 0.85; pointer-events: none; }

.advisor-panel { position: relative; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: clamp(20px, 2.6vw, 28px); }
.advisor-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.advisor-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.advisor-kind { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.advisor-time { margin-left: auto; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-3); }

.advisor-thread { display: flex; flex-direction: column; gap: 12px; }
.bubble { padding: 12px 16px; font-size: 15.5px; line-height: 1.6; border-radius: var(--r-lg); }
.bubble p { margin: 0; }
/* One squared corner points at the speaker, the chat convention. */
.bubble-user { align-self: flex-end; max-width: 78%; background: var(--accent-soft); color: var(--ink); border-radius: var(--r-lg) var(--r-lg) 6px var(--r-lg); }
.bubble-user .num { font-weight: 650; }
.bubble-advisor { align-self: flex-start; max-width: 92%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 6px; }

.bubble-sources { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); font-family: var(--font-num); font-size: 12.5px; font-weight: 550; color: var(--ink-2); }
.chip svg { color: var(--accent); flex: none; }

.advisor-note { margin: 18px 2px 0; max-width: 640px; font-size: 15px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.advisor-note strong { color: var(--ink); font-weight: 650; }

@media (max-width: 899px) {
  .advisor-layout { display: block; }
  .advisor-copy { margin-bottom: 36px; }
  .bubble-user { max-width: 88%; }
  .bubble-advisor { max-width: 100%; }
}

/* ----------------------------------------------------------------------
   #product. Real screenshots in pure-CSS hardware: the desktop Advisor
   exchange in a browser card, the Today screen twice (light + dark) in
   phone shells overlapping its sides. Rotation lives on the inner shell,
   never on the [data-reveal] wrapper, so the reveal's transform reset
   cannot flatten it.
   ---------------------------------------------------------------------- */

#product figure { margin: 0; }
#product img { width: 100%; height: auto; display: block; }

.product-stage { position: relative; max-width: 1020px; margin: 0 auto; padding: 26px 0 64px; }

.frame-browser {
  position: relative; z-index: 1; max-width: 720px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.frame-browser-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.frame-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }

.frame-phone { position: absolute; z-index: 2; width: clamp(188px, 18vw, 246px); }
.frame-phone-light { left: clamp(0px, 2vw, 28px); bottom: 0; }
.frame-phone-dark { right: clamp(0px, 2vw, 28px); top: 0; }
/* The screenshots carry no status bar, so the notch lives in a real top
   bezel (a speaker slit) instead of floating over app content. */
.phone-shell {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: 40px; box-shadow: var(--shadow-lg); padding: 26px 10px 16px;
}
.phone-shell::before {
  content: ''; position: absolute; top: 11px; left: 50%; transform: translateX(-50%);
  width: 54px; height: 6px; border-radius: 999px; background: var(--line-strong);
}
.frame-phone-light .phone-shell { transform: rotate(-2.6deg); }
.frame-phone-dark .phone-shell { transform: rotate(2.2deg); }
/* The dark shot keeps its dark chrome in both page themes. */
.frame-phone-dark .phone-shell { background: #1D1F24; border-color: #2B2E35; }
.frame-phone-dark .phone-shell::before { background: #3C4049; }
.phone-screen { border-radius: 24px; overflow: hidden; }

.product-tagline { margin: 26px auto 0; text-align: center; color: var(--ink-2); font-size: 1.05rem; }

@media (max-width: 899px) {
  .product-stage { padding: 0; }
  .frame-phone { position: static; width: auto; }
  .product-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .frame-browser { grid-column: 1 / -1; max-width: none; }
  .frame-phone { margin: 4px auto 0; max-width: 250px; width: 100%; }
  .frame-phone-light .phone-shell, .frame-phone-dark .phone-shell { transform: none; }
  .phone-shell { border-radius: 32px; padding: 20px 8px 12px; }
  .phone-shell::before { width: 42px; height: 5px; top: 8px; }
  .phone-screen { border-radius: 19px; }
  .product-tagline { margin-top: 30px; }
}

/* ----------------------------------------------------------------------
   #security. A full-bleed sunken band to change the page texture: no
   cards, just four quiet icon + text rows on the recessed background.
   ---------------------------------------------------------------------- */

#security { background: var(--surface-sunken); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); column-gap: clamp(40px, 6vw, 72px); row-gap: clamp(36px, 5vh, 52px); max-width: 1020px; margin: 0 auto; }
.sec-row { display: flex; align-items: flex-start; gap: 20px; }
.sec-icon { flex: none; color: var(--accent); margin-top: 1px; }
.sec-text { min-width: 0; }
.sec-text h3 { margin: 0 0 6px; font-size: 1.15rem; letter-spacing: -0.01em; font-weight: 700; }
.sec-text p { margin: 0; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; }
.sec-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.sec-text a:hover { color: var(--accent-strong); }

/* ----------------------------------------------------------------------
   #start. The close: one centered panel over a soft accent glow, the same
   two CTAs the hero opened with, and the honest no-invite line.
   ---------------------------------------------------------------------- */

.start-glow { position: relative; }
.start-glow::before {
  content: ''; position: absolute; inset: -14% 4%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 74%);
  opacity: 0.9; pointer-events: none;
}
.start-panel {
  position: relative; max-width: 720px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); padding: clamp(44px, 7vw, 72px) clamp(24px, 5vw, 64px);
}
.start-panel h2 { margin-bottom: 12px; }
.start-body { margin: 0 auto 30px; color: var(--ink-2); font-size: 1.2rem; max-width: 34ch; text-wrap: pretty; }
.start-ctas { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; }
.start-note { margin: 22px auto 0; font-size: 14.5px; color: var(--ink-3); max-width: 44ch; text-wrap: pretty; }
.start-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.start-note a:hover { color: var(--accent-strong); }

/* 404 page */
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.error-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 48px 24px; }
.error-mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; }
.error-mark img { border-radius: 10px; }
.error-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -0.02em; margin: 0; }
.error-page p { color: var(--ink-2); margin: 0; max-width: 40ch; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
