/* 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; }
}

/* ── One-screen home (2026-11-10: "less on it, straight to the point") ── */
body.home { min-height: 100svh; display: flex; flex-direction: column; }
body.home main.one { flex: 1; display: flex; align-items: center; }
.hero.solo { width: 100%; padding: 40px 0 48px; }
.hero.solo .wrap { grid-template-columns: 1fr auto; gap: 72px; }
@media (max-width: 900px) { .hero.solo { padding: 24px 0 40px; } .hero.solo .wrap { grid-template-columns: 1fr; gap: 44px; justify-items: center; } .hero-copy { max-width: 520px; } }
.headline { font-size: clamp(44px, 6.2vw, 78px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; margin: 0 0 18px; }
.headline .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.headline .line > span { display: block; }
.headline .line > span.rise { transform: translateY(105%); opacity: 1; animation-name: rise-line; animation-duration: 0.9s; }
.headline .line:last-child { color: hsl(var(--muted-foreground)); }
.hero.solo .lead { margin-bottom: 26px; max-width: none; }
.facts { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.facts li { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 600; }
.facts .tick { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--ink-disc)); color: hsl(var(--background)); }
.facts .tick svg { width: 14px; height: 14px; }
.pro-line { margin: 22px 0 0; font-size: 15px; color: hsl(var(--muted-foreground)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.pro-line .pro-tag { font-size: 13px; padding: 2px 8px; }
.pro-line .figure { font-size: 18px; color: hsl(var(--foreground)); }
.pro-line a { font-weight: 700; color: hsl(var(--foreground)); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .pro-line a:hover { text-decoration: underline; text-underline-offset: 3px; } }
body.home footer { border-top: 0; padding-top: 20px; }

/* Pricing page */
.page-top { padding-top: 56px; }
.h1 { font-size: clamp(36px, 5.4vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 0 0 10px; }
@media (prefers-reduced-motion: reduce) { .headline .line > span.rise { animation: fade 0.3s ease forwards; transform: none; } }
/* One screen means one screen: the phone sizes to the window height. */
body.home .hero-visual .phone { --pw: clamp(240px, calc((100svh - 230px) * 0.46), 300px); }
body.home .hero.solo { padding: 16px 0 24px; }
body.home .slide-dots { margin-top: 16px; }
body.home .slide-label { margin-top: 6px; }
body.home footer { padding-top: 8px; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
@media (max-width: 900px) {
  body.home .hero-visual .phone { --pw: 270px; }
  .liftout { display: none; }
}
body.home .liftout { left: calc(50% + 64px); top: 34%; }

/* ── Phones first (2026-11-11) ───────────────────────────────────────── */
/* The quote is longer than the old headline: smaller, still the loudest thing. */
.headline { font-size: clamp(31px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.06; text-wrap: balance; }
.nav { padding-top: env(safe-area-inset-top); }
.wrap { padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
@media (max-width: 560px) { .nav-links a.link { display: inline; } .nav-links { gap: 16px; } }
.nav-links a.link { padding: 12px 0; }
footer nav a { padding: 10px 0; }
.slides { touch-action: pan-y; }
/* Dots: 8px to look at, 44px to hit. */
.slide-dots button { position: relative; }
.slide-dots button::before { content: ''; position: absolute; inset: -18px -3px; }
@media (max-width: 560px) { .cta-row .btn, .plan .btn { width: 100%; } .plan { padding: 22px; } .legal { padding-top: 24px; } }

/* Legal pages: say what Repex is before the small print. */
.app-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 36px; border-radius: 20px; background: hsl(var(--card));
  box-shadow: var(--elev-tile); text-decoration: none; transition: transform 0.16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.app-strip:active { transform: scale(0.97); }
.app-strip img { width: 44px; height: 44px; border-radius: 11px; flex: 0 0 auto; }
.app-strip .txt { display: grid; min-width: 0; line-height: 1.3; }
.app-strip .txt b { font-size: 17px; font-weight: 750; letter-spacing: -0.015em; }
.app-strip .txt span { font-size: 14px; color: hsl(var(--muted-foreground)); }
.app-strip .go { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-size: 15px; font-weight: 700; white-space: nowrap; color: hsl(var(--primary)); }
.app-strip .go svg { width: 16px; height: 16px; }
.legal .app-strip { text-decoration: none; }

/* Not found */
.notfound { text-align: center; padding: 96px var(--gutter); }
.notfound .btn { margin-top: 24px; }

/* ── Home on the photo (2026-11-11) — the App Store pair's ground: chalked hands,
   warm haze, the quote in two halves with the app between them. Always dark. ── */
html:has(body.home) { background: hsl(28 40% 6.5%); }
body.home {
  --background: 28 40% 6.5%; --foreground: 40 30% 96%; --card: 30 10% 10%;
  --muted-foreground: 35 14% 78%; --muted-foreground-2: 35 12% 64%; --border: 30 8% 26%;
  --primary: 9 87% 50%; --ink-disc: 40 30% 96%; --elev-cta: 0 8px 28px hsl(9 87% 40% / 0.45);
  --haze: 28 9% 24%; --floor: 28 40% 6.5%;
  color-scheme: dark; background-color: hsl(var(--floor)); color: hsl(var(--foreground));
}
body.home .nav { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
body.home .nav.scrolled { background: hsl(var(--haze) / 0.82); -webkit-backdrop-filter: saturate(1.2) blur(14px); backdrop-filter: saturate(1.2) blur(14px); border-bottom-color: transparent; }
body.home footer { color: hsl(var(--muted-foreground)); }
/* Inside the frame the app keeps its own day colours. */
body.home .phone, body.home .liftout, .ptile { --background: 40 52% 94%; --foreground: 28 20% 12%; --card: 42 64% 97%; --primary: 9 87% 45%; }
body.home .phone { --bezel: 30 6% 13%; box-shadow: 0 0 0 1.5px hsl(40 30% 92% / 0.16), 0 40px 80px -20px hsl(0 0% 0% / 0.8), 0 14px 30px -12px hsl(0 0% 0% / 0.6); }
body.home .liftout { color: hsl(var(--foreground)); box-shadow: 0 22px 50px -14px hsl(0 0% 0% / 0.6), 0 2px 6px hsl(0 0% 0% / 0.2); }
.quote { font-size: clamp(34px, 3.9vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; margin: 0 0 18px; text-wrap: balance; color: hsl(0 0% 100%); }
body.home .lead { margin: 0 0 26px; max-width: none; }
body.home .facts { margin: 0; }
body.home .slide-label { color: hsl(var(--muted-foreground)); }
body.home .slide-dots button { background: hsl(var(--foreground) / 0.3); }
body.home .slide-dots button.on { background: hsl(var(--foreground)); }

/* Home's stat tiles, as on the App Store pair */
.ptile { width: 172px; padding: 14px 16px 12px; border-radius: 16px; background: hsl(var(--card)); color: hsl(var(--foreground)); display: flex; flex-direction: column;
  box-shadow: 0 22px 50px -14px hsl(0 0% 0% / 0.6), 0 2px 6px hsl(0 0% 0% / 0.2); }
.ptile .l { font-size: 13px; font-weight: 600; line-height: 1.3; color: hsl(30 10% 42%); }
.ptile .f { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 32px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; margin-top: 6px; }
.ptile .f small { font-family: 'Inter', sans-serif; font-weight: 500; font-size: 13px; color: hsl(30 10% 38%); margin-left: 4px; }
.ptile .d { font-size: 13px; font-weight: 600; line-height: 1.3; margin-top: 6px; color: hsl(30 10% 38%); }
.ptile .d.up { color: hsl(158 62% 30%); }
.ptile .row { display: flex; align-items: flex-end; justify-content: space-between; }
.ptile .sp { display: flex; align-items: flex-end; gap: 2px; height: 26px; }
.ptile .sp i { width: 4px; border-radius: 2px; background: hsl(28 20% 12% / 0.14); }
.ptile .sp i:last-child { background: hsl(158 62% 30%); }
.ptile .bar { height: 4px; border-radius: 2px; background: hsl(28 20% 12% / 0.1); margin-top: 10px; overflow: hidden; }
.ptile .bar span { display: block; width: 87%; height: 100%; background: hsl(9 87% 45%); border-radius: inherit; }

/* Hero: one screen on every device. The quote as one stanza, the button under it,
   the app rising from the bottom between the hands. Scroll (or the pill) for the screens. */
.duo { position: relative; height: 100svh; min-height: 560px; margin-top: -60px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: calc(60px + clamp(6px, 3.4vh, 40px)) var(--gutter) 0;
  background-image: linear-gradient(hsl(var(--haze)) 0%, hsl(28 11% 15%) 46%, hsl(var(--floor)) 100%);
  --hp: clamp(250px, 37vh, 330px); --w: clamp(860px, 118vh, 1340px); }
.duo > :not(.scene) { position: relative; z-index: 1; }
.duo .quote { font-size: clamp(30px, min(3.9vw, 6.5vh), 62px); line-height: 1.04; letter-spacing: -0.04em; margin: 0; max-width: 20em;
  text-shadow: 0 2px 30px hsl(28 40% 4% / 0.5); }
.duo h1.quote { color: hsl(36 22% 78%); }
.duo p.quote { margin-top: 0.08em; }
body.home .duo .lead { margin: clamp(10px, 2vh, 18px) 0 clamp(14px, 2.6vh, 24px); font-size: clamp(16px, 2.3vh, 19px); }
.duo .cta-row { justify-content: center; }
.duo .hero-visual { margin-top: clamp(18px, 3.6vh, 36px); z-index: 2; }
body.home .duo .hero-visual .phone { --pw: var(--hp); }
.duo .slide-dots, .duo .slide-label, .duo .liftout { display: none; }

/* The photo at its own scale (never blown up): both hands, either side of the phone. */
.scene { position: absolute; left: 50%; bottom: 0; width: var(--w); height: var(--w); --sy: 27%; transform: translate(-50%, var(--sy)) scale(calc(1 + var(--fall, 0) * 0.14)); transform-origin: 50% 55%; z-index: 0; pointer-events: none;
  opacity: 0; animation: scene-in 1.4s var(--ease-out) 0.15s forwards; }
.scene::before { content: ''; position: absolute; inset: 0; background: url('/assets/hands-2000.jpg') center / cover no-repeat;
  -webkit-mask-image: radial-gradient(ellipse 50% 44% at 50% 56%, #000 52%, transparent 100%); mask-image: radial-gradient(ellipse 50% 44% at 50% 56%, #000 52%, transparent 100%); }
.scene .ptile { position: absolute; top: 52%; text-align: left; transform: scale(0.92); opacity: 0; animation: tile-in 0.6s var(--ease-sheet) forwards; }
.scene .t1 { right: calc(50% + var(--hp) / 2 + 22px); animation-delay: 1.1s; }
.scene .t2 { left: calc(50% + var(--hp) / 2 + 22px); top: 54%; animation-delay: 1.25s; }
@keyframes scene-in { to { opacity: 1; } }
@keyframes tile-in { to { opacity: 1; transform: none; } }

/* The way down: one quiet pill on the phone's lower edge. */
.cue { position: absolute !important; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 4 !important;
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px; border-radius: 999px; white-space: nowrap;
  font-size: 15px; font-weight: 650; text-decoration: none; color: hsl(var(--foreground));
  background: hsl(var(--floor) / 0.78); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.16), 0 10px 30px hsl(0 0% 0% / 0.5);
  opacity: 0; animation: scene-in 0.6s ease 1.5s forwards; transition: transform 0.16s var(--ease-out); -webkit-tap-highlight-color: transparent; }
.cue:active { transform: translateX(-50%) scale(0.97); }
.cue svg { width: 16px; height: 16px; animation: nudge 2.2s var(--ease-in-out) 2.4s infinite; }
@keyframes nudge { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(3px); } }

/* Phones: same picture, phone sizes. */
@media (max-width: 900px) {
  .duo { --hp: clamp(200px, 58vw, 250px); --w: clamp(500px, 134vw, 900px); padding-left: 16px; padding-right: 16px; }
  .duo .quote { font-size: clamp(27px, 8.5vw, 44px); line-height: 1.06; }
  body.home .duo .lead { font-size: 16px; margin: 10px 0 16px; }
  .duo .cta-row { width: 100%; max-width: 420px; }
  .scene .ptile { display: none; }
  .duo .hero-visual { margin-top: 22px; }
  .scene { --sy: 22%; }
}

/* Inside the app: every screen, whole. */
.inside { position: relative; z-index: 2; isolation: isolate; padding: clamp(40px, 7vh, 72px) 0 120px; text-align: center; transition: color 0.45s ease; }
.inside .sub { margin: 0 auto; }
.inside .screens { grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.inside .screens .phone { max-width: 220px; }
.inside figcaption b { display: inline-flex; align-items: center; gap: 8px; justify-content: center; }
.inside figcaption span { display: block; }
.inside figcaption .pro-tag { font-size: 12px; padding: 1px 7px; }
.closing-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 0; }
.closing-facts li { font-size: 15px; }
.closing { margin-top: clamp(48px, 8vh, 80px); display: flex; flex-direction: column; align-items: center; }
body.home footer { border-top: 0; padding-top: 24px; }
@media (max-width: 900px) {
  .inside .screens { gap: 16px; }
  .inside .screens figure { flex: 0 0 64%; }
  body.home .closing-facts { display: grid; text-align: left; width: 100%; max-width: 420px; }
  .closing .btn { width: 100%; max-width: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene, .cue { animation: none; opacity: 1; }
  .scene .ptile { animation: none; opacity: 1; transform: none; }
  .cue svg { animation: none; }
}

/* ── 2026-11-11 (later): falling into the screens, highlights, day/night, the price ── */
.off { display: inline-block; font-size: 12px; font-weight: 750; padding: 2px 8px; border-radius: 999px; background: hsl(var(--success) / 0.18); color: hsl(var(--success)); white-space: nowrap; vertical-align: 0.12em; }
body.home { --success: 152 55% 58%; }

/* Price in the first screen */
.price-line { display: inline-flex; align-items: center; gap: 10px; margin: clamp(12px, 2.2vh, 18px) 0 0; padding: 8px 14px 8px 10px; border-radius: 999px; font-size: 15px; line-height: 1.35; text-align: left;
  color: hsl(var(--muted-foreground)); background: hsl(var(--floor) / 0.55); box-shadow: 0 0 0 1px hsl(var(--foreground) / 0.12); }
.price-line b { color: hsl(var(--foreground)); font-weight: 750; }
.price-line .figure { font-size: 19px; color: hsl(var(--foreground)); }
.price-line .pro-tag { font-size: 12px; padding: 2px 8px; flex: 0 0 auto; }
@media (max-width: 900px) { .price-line { font-size: 14px; border-radius: 18px; max-width: 420px; } .price-line .figure { font-size: 17px; } }

/* Falling: the first screen stays put while you leave it — the words lift away, the phone
   comes at you, and the next section rises over a soft edge. No hard line between the two. */
html:has(body.home) { scroll-snap-type: y proximity; }
.snap-top { height: 0; scroll-snap-align: start; }
#inside { scroll-snap-align: start; scroll-margin-top: 96px; }
.duo { position: sticky; top: 0; --fall: 0; }
.duo.falling .rise { animation: none; opacity: 1; transform: none; }
.duo.falling > .quote, .duo.falling > .lead, .duo.falling > .cta-row, .duo.falling > .price-line, .duo.falling > .facts {
  opacity: calc(1 - var(--fall) * 1.9); transform: translateY(calc(var(--fall) * -90px)); }
.duo.falling > .hero-visual { opacity: calc(1 - max(0, var(--fall) - 0.5) * 2); transform: translateY(calc(var(--fall) * -9vh)) scale(calc(1 + var(--fall) * 0.3)); transform-origin: 50% 18%; }
.duo.falling > .cue { animation: none; opacity: calc(1 - var(--fall) * 4); }
/* The ground starts 18svh above the section as a soft edge. At rest (--edge 0) it isn't there, so the first screen is untouched. */
.inside::before, .inside::after { content: ''; position: absolute; inset: -18svh 0 0 0; z-index: -1; pointer-events: none; }
.inside::before { background: linear-gradient(transparent 0, hsl(var(--floor) / 0.6) 9svh, hsl(var(--floor)) 18svh); opacity: var(--edge, 1); }
.inside::after { background: linear-gradient(transparent 0, hsl(40 52% 94% / 0.6) 9svh, hsl(40 52% 94%) 18svh, hsl(40 52% 94%) calc(100% - 110px), hsl(var(--floor)) 100%);
  opacity: 0; transition: opacity 0.5s ease; }

/* Each screen's one important part, lifted out of the glass. */
.inside .shot img { position: absolute; inset: 0; }
.inside img.night { opacity: 0; transition: opacity 0.5s ease; }
.inside.night-look img.night { opacity: 1; }
.inside .dim { position: absolute; inset: 0; z-index: 1; background: hsl(28 30% 6%); opacity: 0; transition: opacity 0.6s ease 0.3s; }
.inside .in .dim { opacity: 0.36; }
.poplayer { position: absolute; left: 8px; right: 8px; top: calc(8px + (100% - 16px) * 62 / 874); height: calc((100% - 16px) * 778 / 874); z-index: 5; pointer-events: none; }
.pop { position: absolute; left: calc(var(--l) * 1%); top: calc(var(--t) * 1%); width: calc(var(--w) * 1%); height: calc(var(--h) * 1%); border-radius: 14px; overflow: hidden;
  box-shadow: 0 0 0 1px hsl(0 0% 100% / 0.35), 0 18px 40px -10px hsl(0 0% 0% / 0.6), 0 4px 10px hsl(0 0% 0% / 0.25);
  opacity: 0; transform: scale(1); transition: opacity 0.3s ease 0.45s, transform 0.75s var(--ease-sheet) 0.45s; }
.in .pop { opacity: 1; transform: scale(1.1); }
.pop img { position: absolute; max-width: none; width: calc(100% * 100 / var(--w)); height: calc(100% * 100 / var(--h)); left: calc(-100% * var(--l) / var(--w)); top: calc(-100% * var(--t) / var(--h)); }
.inside .screens { padding-top: 12px; }

/* Day / Night: night screens sit on the cream ground, day screens on the dark one. */
.look-row { margin-top: 36px; display: flex; justify-content: center; }
.seg.look { margin-top: 0; background: hsl(var(--foreground) / 0.1); }
.seg.look button { padding: 10px 26px; font-size: 15px; min-height: 44px; }
.seg.look .thumb { background: hsl(var(--foreground)); box-shadow: none; }
.seg.look button[aria-pressed="true"] { color: hsl(var(--background)); }
.seg[data-on="night"] .thumb { transform: translateX(100%); }
body.home .inside.night-look { --background: 40 52% 94%; --foreground: 28 20% 12%; --card: 42 64% 97%; --muted-foreground: 30 10% 38%; --border: 36 20% 80%;
  --ink-disc: 28 20% 12%; --success: 158 62% 30%; color: hsl(var(--foreground)); }
body.home .inside.night-look::after { opacity: var(--edge, 1); }
body.home .inside.night-look .phone { --background: 30 15% 3%; --foreground: 40 30% 92%; --bezel: 28 14% 7%;
  box-shadow: 0 0 0 1.5px hsl(28 20% 12% / 0.12), 0 30px 60px -18px hsl(28 20% 12% / 0.4), 0 12px 24px -12px hsl(28 20% 12% / 0.3); }
body.home .inside.night-look .pop { box-shadow: 0 0 0 1px hsl(40 30% 92% / 0.3), 0 18px 40px -10px hsl(0 0% 0% / 0.7); }
.inside .h2, .inside .sub, .inside figcaption b, .inside figcaption span { transition: color 0.45s ease; }

/* The price, where you can't miss it */
.closing { gap: 28px; }
.pro-card { width: 100%; max-width: 460px; padding: 26px 26px 22px; border-radius: 24px; text-align: center; background: hsl(var(--card)); color: hsl(var(--foreground));
  box-shadow: 0 0 0 1px hsl(var(--border)), 0 24px 60px -24px hsl(0 0% 0% / 0.5); transition: background-color 0.45s ease, color 0.45s ease; }
.pc-head { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: hsl(var(--muted-foreground)); }
.pc-free { font-size: clamp(34px, 5vw, 44px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin: 12px 0 14px; }
.pc-then { margin: 0 0 6px; font-size: 15px; color: hsl(var(--muted-foreground)); }
.pc-prices { display: flex; align-items: flex-start; justify-content: center; gap: 18px; }
.pc-price { display: grid; justify-items: center; }
.pc-price .figure { font-size: 54px; line-height: 1; }
.pc-price .per { font-size: 15px; font-weight: 600; color: hsl(var(--muted-foreground)); margin-top: 2px; }
.pc-price .off { margin-top: 8px; font-size: 13px; }
.pc-or { font-size: 14px; color: hsl(var(--muted-foreground)); padding-top: 20px; }
.pc-link { display: inline-block; margin-top: 18px; padding: 10px 0; font-size: 15px; font-weight: 700; text-decoration: none; color: hsl(var(--foreground)); }
.free-now { margin: 14px 0 0; font-size: 15px; color: hsl(var(--muted-foreground)); }
.free-now b { color: hsl(var(--success)); font-weight: 750; }

@media (prefers-reduced-motion: reduce) {
  html:has(body.home) { scroll-snap-type: none; }
  .pop { transition: opacity 0.2s ease; } .in .pop { transform: none; }
}
