/* apprepex.com — Repex's own design system (v4), on the web.
   Tokens are the app's (src/index.css): warm cream day, warm ink night.
   Motion: transform/opacity only, strong ease-out, staggered, reduced-motion aware. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('/fonts/inter-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-700-latin.woff2') format('woff2'); }
@font-face { font-family: 'Anton'; font-weight: 400; font-display: swap; src: url('/fonts/anton-400-latin.woff2') format('woff2'); }

:root {
  --background: 40 52% 94%;
  --foreground: 28 20% 12%;
  --card: 42 64% 97%;
  --primary: 9 87% 45%;
  --primary-foreground: 40 45% 97%;
  --muted-foreground: 30 10% 38%;
  --muted-foreground-2: 30 10% 42%;
  --border: 36 20% 80%;
  --success: 158 62% 30%;
  --warning: 35 85% 32%;
  --elev-tile: 0 1px 2px hsl(26 30% 20% / 0.05), 0 10px 28px hsl(26 30% 20% / 0.07);
  --elev-card: 0 10px 24px hsl(28 20% 12% / 0.10);
  --elev-cta: 0 6px 16px hsl(9 87% 45% / 0.30);
  --ink-disc: 28 20% 12%;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-sheet: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-pop: cubic-bezier(0.34, 1.7, 0.64, 1);

  --gutter: 20px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: 30 15% 3%;
    --foreground: 40 30% 92%;
    --card: 30 10% 8%;
    --primary: 9 87% 48%;
    --primary-foreground: 40 45% 97%;
    --muted-foreground: 35 12% 64%;
    --muted-foreground-2: 35 12% 52%;
    --border: 30 8% 22%;
    --success: 158 55% 52%;
    --warning: 42 90% 58%;
    --elev-tile: 0 0 0 1px hsl(30 8% 22%);
    --elev-card: 0 10px 24px hsl(0 0% 0% / 0.40);
    --elev-cta: 0 0 30px hsl(9 87% 48% / 0.40);
    --ink-disc: 40 30% 92%;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: hsl(var(--background)); }
body {
  margin: 0; background: hsl(var(--background)); color: hsl(var(--foreground));
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.5; font-weight: 500;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.figure { font-family: 'Barlow Condensed', 'Inter', sans-serif; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.005em; }
.muted { color: hsl(var(--muted-foreground)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Nav ─────────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: hsl(var(--background) / 0.86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
.nav.scrolled { border-bottom-color: hsl(var(--border)); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a.link { text-decoration: none; font-size: 15px; font-weight: 600; color: hsl(var(--muted-foreground)); transition: color 0.15s ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a.link:hover { color: hsl(var(--foreground)); } }
@media (max-width: 560px) { .nav-links a.link { display: none; } }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px;
  border-radius: 16px; border: 0; cursor: pointer; text-decoration: none; font: inherit; font-size: 17px; font-weight: 700;
  transition: transform 0.16s var(--ease-out), box-shadow 0.2s ease, background-color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); box-shadow: var(--elev-cta); }
.btn-ghost { background: hsl(var(--card)); color: hsl(var(--foreground)); box-shadow: var(--elev-tile); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) { .btn-primary:hover { transform: translateY(-1px); } .btn-primary:active { transform: scale(0.97); } }
.btn svg { width: 18px; height: 18px; }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero { padding-top: 36px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.kicker { font-size: 15px; font-weight: 650; color: hsl(var(--muted-foreground)); }
.display { font-family: 'Anton', 'Impact', sans-serif; font-weight: 400; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em;
  font-size: clamp(56px, 10vw, 112px); margin: 10px 0 18px; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.display .line > span { display: block; }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: hsl(var(--muted-foreground)); max-width: 30ch; margin: 0 0 28px; }
.lead strong { color: hsl(var(--foreground)); font-weight: 650; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-note { font-size: 14px; color: hsl(var(--muted-foreground-2)); }

/* Strength card — the person's own number, the app's ONE chart */
.card { background: hsl(var(--card)); border-radius: 24px; box-shadow: var(--elev-tile); }
.strength { padding: 26px 26px 18px; position: relative; }
.strength .label { font-size: 15px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.strength .big { display: flex; align-items: baseline; gap: 8px; margin-top: 2px; }
.strength .big .figure { font-size: 64px; line-height: 1; }
.strength .big .unit { font-size: 17px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.change { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 650; color: hsl(var(--success)); margin-top: 6px; }
.change .figure { font-size: 19px; }
.chart { margin-top: 14px; width: 100%; height: auto; overflow: visible; }
.chart .start { stroke: hsl(var(--border)); stroke-width: 1.5; stroke-dasharray: 4 6; }
.chart .line { fill: none; stroke: hsl(var(--success)); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .pr { fill: hsl(var(--primary)); }
.chips { display: flex; gap: 6px; margin-top: 10px; }
.chip { font-size: 13px; font-weight: 650; padding: 6px 11px; border-radius: 999px; color: hsl(var(--muted-foreground)); }
.chip.on { background: hsl(var(--foreground)); color: hsl(var(--background)); }

/* PR stamp on the hero card */
.stamp { position: absolute; top: 22px; right: 22px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.06em;
  color: hsl(var(--primary)); border: 2px solid hsl(var(--primary)); border-radius: 8px; padding: 2px 8px; transform: rotate(-6deg); }

/* ── Sections ────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
@media (max-width: 700px) { section { padding: 52px 0; } }
.h2 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin: 6px 0 12px; }
.sub { font-size: 18px; color: hsl(var(--muted-foreground)); max-width: 46ch; margin: 0; }

/* Free features — Trade Republic rows: ink disc, bold label, grey line */
.free-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 860px) { .free-grid { grid-template-columns: 1fr; } }
.tile { padding: 24px; }
.disc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--ink-disc)); color: hsl(var(--background)); }
.disc svg { width: 22px; height: 22px; }
.tile h3 { font-size: 19px; font-weight: 750; letter-spacing: -0.02em; margin: 16px 0 4px; }
.tile p { margin: 0; font-size: 16px; color: hsl(var(--muted-foreground)); }

/* Mini set rows inside the Log tile */
.sets { margin-top: 16px; display: grid; gap: 6px; }
.set { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; color: hsl(var(--muted-foreground)); }
.set .figure { font-size: 22px; color: hsl(var(--foreground)); }
.set .done { width: 20px; height: 20px; border-radius: 50%; background: hsl(var(--success)); display: grid; place-items: center; color: hsl(var(--primary-foreground)); align-self: center; }
.set .done svg { width: 12px; height: 12px; }

/* Week strip inside the Splits tile */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 18px; }
.day { text-align: center; font-size: 12px; font-weight: 650; color: hsl(var(--muted-foreground)); }
.day i { display: block; width: 28px; height: 28px; margin: 6px auto 0; border-radius: 50%; border: 2px solid hsl(var(--border)); }
.day.trained i { background: hsl(var(--success)); border-color: hsl(var(--success)); }
.day.today i { border-color: hsl(var(--foreground)); }

/* Bars inside the Stats tile */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 76px; margin-top: 18px; }
.bars span { flex: 1; border-radius: 6px 6px 3px 3px; background: hsl(var(--foreground) / 0.12); transform-origin: bottom; }
.bars span.best { background: hsl(var(--success)); }

/* ── Pro ─────────────────────────────────────────────────────────────── */
.pro-tag { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.08em;
  padding: 3px 10px; border-radius: 999px; background: hsl(var(--foreground)); color: hsl(var(--background)); }
.pro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; }
@media (max-width: 860px) { .pro-grid { grid-template-columns: 1fr; } }

/* Coach — an edge light, never a body */
@property --angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.coach { position: relative; padding: 26px; isolation: isolate; }
.coach::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 2px; z-index: -1;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 250deg, hsl(var(--primary) / 0.0) 270deg, hsl(var(--primary)) 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.6s ease; }
.coach.speaking::before { opacity: 1; animation: edge 3.2s linear infinite; }
@keyframes edge { to { --angle: 360deg; } }
.coach-name { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 700; font-size: 22px; letter-spacing: 0.06em; }
.coach-line { font-size: 21px; font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; margin: 14px 0 0; min-height: 3em; }
.coach-line .w { display: inline-block; opacity: 0; transform: translateY(6px); filter: blur(4px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), filter 0.35s var(--ease-out); }
.coach.speaking .coach-line .w, .coach.spoken .coach-line .w { opacity: 1; transform: none; filter: none; }
.evidence { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.evidence span { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: hsl(var(--background)); color: hsl(var(--muted-foreground)); }
.evidence .figure { font-size: 16px; color: hsl(var(--foreground)); }

/* Race */
.race { padding: 26px; }
.race-name { font-size: 15px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.countdown { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.digits { display: inline-flex; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 84px; line-height: 1; height: 84px; overflow: hidden; }
.digit { display: inline-block; height: 84px; overflow: hidden; }
.digit .reel { display: flex; flex-direction: column; transition: transform 1.4s var(--ease-out); }
.digit .reel b { display: block; height: 84px; font-weight: 700; }
.countdown .unit { font-size: 18px; font-weight: 600; color: hsl(var(--warning)); }
.phases { display: grid; grid-template-columns: 4fr 3fr 2fr 1fr; gap: 4px; margin-top: 22px; }
.phase { height: 8px; border-radius: 4px; background: hsl(var(--foreground) / 0.12); transform-origin: left; }
.phase.now { background: hsl(var(--foreground)); }
.phase-labels { display: grid; grid-template-columns: 4fr 3fr 2fr 1fr; gap: 4px; margin-top: 8px; font-size: 13px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.race-week { margin-top: 20px; display: grid; gap: 10px; }
.slot { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.slot .disc { width: 34px; height: 34px; }
.slot .disc svg { width: 17px; height: 17px; }
.slot .meta { margin-left: auto; font-size: 14px; color: hsl(var(--muted-foreground)); white-space: nowrap; }
.slot .meta .figure { font-size: 18px; color: hsl(var(--foreground)); }

/* ── Pricing ─────────────────────────────────────────────────────────── */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 36px; align-items: stretch; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }
.plan { padding: 28px; display: flex; flex-direction: column; }
.plan h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 2px; min-height: 64px; }
.price .figure { font-size: 64px; line-height: 1; }
.price .per { font-size: 17px; font-weight: 600; color: hsl(var(--muted-foreground)); }
.price-note { font-size: 15px; color: hsl(var(--muted-foreground)); min-height: 1.5em; margin: 0; }
.list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; font-size: 16px; }
.list li svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; color: hsl(var(--success)); }
.list li b { font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }
.plan.pro { box-shadow: var(--elev-card), 0 0 0 2px hsl(var(--foreground)); }

/* Segmented — sliding, squashing thumb */
.seg { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: hsl(var(--background)); margin-top: 16px; }
.seg button { position: relative; z-index: 1; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; padding: 8px 16px; border-radius: 9px; cursor: pointer;
  color: hsl(var(--muted-foreground)); transition: color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.seg button[aria-pressed="true"] { color: hsl(var(--foreground)); }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: hsl(var(--card)); box-shadow: var(--elev-tile);
  transition: transform 0.42s var(--ease-sheet); }
.seg[data-on="year"] .thumb { transform: translateX(100%); }
.save { font-size: 12px; font-weight: 700; color: hsl(var(--success)); margin-left: 4px; }
.swap { display: inline-block; transition: opacity 0.18s ease, transform 0.25s var(--ease-out); }
.swap.out { opacity: 0; transform: translateY(-6px); }

/* ── Promise ─────────────────────────────────────────────────────────── */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 30px; }
@media (max-width: 860px) { .promise { grid-template-columns: 1fr; gap: 20px; } }
.promise h3 { font-size: 18px; font-weight: 750; margin: 0 0 4px; letter-spacing: -0.015em; }
.promise p { margin: 0; font-size: 16px; color: hsl(var(--muted-foreground)); }

/* ── Final CTA + footer ──────────────────────────────────────────────── */
.final { text-align: center; }
.final .display { font-size: clamp(48px, 8vw, 92px); }
.final .cta-row { justify-content: center; }
footer { padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); border-top: 1px solid hsl(var(--border)); font-size: 14px; color: hsl(var(--muted-foreground)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { text-decoration: none; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { footer a:hover { color: hsl(var(--foreground)); } }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal { max-width: 720px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.legal h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; margin: 0 0 8px; }
.legal h2 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; margin: 40px 0 10px; }
.legal h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.65; color: hsl(var(--foreground) / 0.88); }
.legal ul { padding-left: 22px; }
.legal hr { border: 0; border-top: 1px solid hsl(var(--border)); margin: 32px 0; }
.legal a { color: hsl(var(--foreground)); text-underline-offset: 3px; }
.legal strong { font-weight: 700; color: hsl(var(--foreground)); }

/* ── Motion ──────────────────────────────────────────────────────────── */
/* Hero entrance: one staggered rise on load (CSS — runs off the main thread). */
.rise { opacity: 0; transform: translateY(14px); animation: rise 0.7s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms); }
.display .line > span.rise { transform: translateY(105%); opacity: 1; animation-name: rise-line; animation-duration: 0.9s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes rise-line { to { transform: none; } }

/* Scroll reveal: transitions (retargetable), staggered children. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.reveal.in { opacity: 1; transform: none; }

/* The strength line draws itself; the PR dot lands after it. */
.chart .line { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); transition: stroke-dashoffset 1.6s var(--ease-in-out) 0.3s; }
.drawn .chart .line { stroke-dashoffset: 0; }
.chart .pr { transform-box: fill-box; transform-origin: center; transform: scale(0.4); opacity: 0; transition: transform 0.45s var(--ease-pop) 1.75s, opacity 0.2s ease 1.75s; }
.drawn .chart .pr { transform: none; opacity: 1; }
.stamp { opacity: 0; transform: rotate(-6deg) scale(1.35); transition: opacity 0.2s ease 1.9s, transform 0.4s var(--ease-pop) 1.9s; }
.drawn .stamp { opacity: 1; transform: rotate(-6deg); }

.bars span { transform: scaleY(0.08); transition: transform 0.8s var(--ease-out); transition-delay: calc(var(--i, 0) * 60ms + 0.15s); }
.in .bars span { transform: none; }
.day i { transform: scale(0.85); opacity: 0.4; transition: transform 0.4s var(--ease-pop), opacity 0.3s ease; transition-delay: calc(var(--i, 0) * 60ms + 0.2s); }
.in .day i { transform: none; opacity: 1; }
.phase { transform: scaleX(0.02); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 0.2s); }
.in .phase { transform: none; }
.set { opacity: 0; transform: translateX(-8px); transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 110ms + 0.2s); }
.in .set { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .display .line > span.rise { animation: fade 0.3s ease forwards; transform: none; }
  @keyframes fade { from { opacity: 0; } to { opacity: 1; } }
  .reveal { transform: none; transition: opacity 0.3s ease; }
  .chart .line, .chart .pr, .stamp, .bars span, .day i, .phase, .set, .digit .reel { transition: none !important; }
  .chart .line { stroke-dashoffset: 0; }
  .chart .pr, .stamp, .set { opacity: 1; transform: none; }
  .stamp { transform: rotate(-6deg); }
  .bars span, .day i, .phase { transform: none; opacity: 1; }
  .coach.speaking::before { animation: none; background: hsl(var(--primary) / 0.5); }
  .coach-line .w { transition: opacity 0.2s ease; transform: none; filter: none; }
  .seg .thumb { transition: none; }
  .btn { transition: none; }
}

/* ── Phones: real app screens in an iPhone frame ─────────────────────── */
:root { --bezel: 28 14% 7%; --island: 0 0% 2%; }
.phone { position: relative; width: var(--pw, 300px); aspect-ratio: 402 / 874; border-radius: calc(var(--pw, 300px) * 0.17);
  padding: calc(var(--pw, 300px) * 0.032); background: hsl(var(--bezel));
  box-shadow: 0 0 0 1.5px hsl(var(--foreground) / 0.10), 0 30px 60px -18px hsl(28 20% 12% / 0.35), 0 12px 24px -12px hsl(28 20% 12% / 0.25); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw, 300px) * 0.14); overflow: hidden; background: hsl(var(--background)); isolation: isolate; }
.phone .status { position: absolute; inset: 0 0 auto 0; height: calc(62 / 874 * 100%); display: flex; align-items: center; justify-content: space-between;
  padding: 0 9% 0 11%; font-size: calc(var(--pw, 300px) * 0.05); font-weight: 650; color: hsl(var(--foreground)); z-index: 2; }
.phone .island { position: absolute; top: calc(11 / 874 * 100%); left: 50%; width: 31%; height: calc(37 / 874 * 100%); transform: translateX(-50%);
  border-radius: 999px; background: hsl(var(--island)); z-index: 3; }
.phone .status svg { height: calc(var(--pw, 300px) * 0.04); width: auto; fill: currentColor; }
.phone .status .icons { display: flex; gap: 5px; align-items: center; }
.phone .shot { position: absolute; left: 0; right: 0; top: calc(62 / 874 * 100%); height: calc(778 / 874 * 100%); }
.phone .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone .home-bar { position: absolute; left: 50%; bottom: calc(9 / 874 * 100%); width: 34%; height: 4px; border-radius: 999px; transform: translateX(-50%);
  background: hsl(var(--foreground) / 0.85); z-index: 2; }
@media (prefers-color-scheme: dark) { :root { --bezel: 30 6% 16%; } .phone { box-shadow: 0 0 0 1.5px hsl(40 30% 92% / 0.12), 0 30px 60px -18px hsl(0 0% 0% / 0.7); } }

/* Hero phone: screens crossfade on their own */
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero-visual .phone { --pw: 300px; }
@media (max-width: 900px) { .hero-visual .phone { --pw: 270px; } }
.slides .shot { opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out); }
.slides .shot.on { opacity: 1; transform: none; }
.slide-dots { display: flex; gap: 8px; margin-top: 22px; }
.slide-dots button { border: 0; padding: 0; height: 8px; width: 8px; border-radius: 999px; background: hsl(var(--foreground) / 0.18); cursor: pointer;
  transition: transform 0.3s var(--ease-out), background-color 0.3s ease; }
.slide-dots button.on { background: hsl(var(--foreground)); transform: scaleX(2.6); }
.slide-dots { gap: 14px; }
.slide-label { margin-top: 10px; font-size: 14px; font-weight: 600; color: hsl(var(--muted-foreground)); min-height: 1.5em; }

/* PR lift-out card beside the hero phone */
.liftout { position: absolute; left: calc(50% + 105px); top: 30%; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 18px;
  background: hsl(var(--card)); box-shadow: var(--elev-card); white-space: nowrap; z-index: 4; }
.liftout .pr { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 15px; letter-spacing: 0.06em; color: hsl(var(--primary)); }
.liftout .what { font-size: 14px; font-weight: 600; line-height: 1.2; }
.liftout .what .figure { font-size: 20px; display: block; }
.liftout { opacity: 0; transform: translateX(-24px) scale(0.92); transition: opacity 0.35s ease 1.2s, transform 0.6s var(--ease-sheet) 1.2s; }
.ready .liftout { opacity: 1; transform: none; }
@media (max-width: 900px) { .liftout { left: auto; right: 4%; top: 22%; } }
@media (max-width: 420px) { .liftout { right: 0; top: 16%; padding: 10px 12px; } }

/* Inside the app: a row of phones */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; align-items: start; }
.screens figure { margin: 0; display: flex; flex-direction: column; align-items: center; will-change: transform; }
.screens .phone { --pw: 100%; width: 100%; max-width: 240px; border-radius: 40px; padding: 8px; }
.screens .phone .screen { border-radius: 33px; }
.screens .phone .status { font-size: 12px; }
.screens .phone .status svg { height: 10px; }
.screens figcaption { margin-top: 18px; text-align: center; }
.screens figcaption b { display: block; font-size: 17px; font-weight: 750; letter-spacing: -0.015em; }
.screens figcaption span { font-size: 15px; color: hsl(var(--muted-foreground)); }
.screens figure:nth-child(even) { margin-top: 56px; }
@media (max-width: 900px) {
  .screens { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin: 36px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter) 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .screens::-webkit-scrollbar { display: none; }
  .screens figure { flex: 0 0 62%; max-width: 240px; scroll-snap-align: center; }
  .screens figure:nth-child(even) { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .slides .shot { transition: opacity 0.2s ease; transform: none; }
  .liftout { transition: opacity 0.2s ease; transform: none; }
}
