/* Homepage refinement: existing reading demonstration, white/ink/blue identity.
   Scoped to home routes. The app, pricing and other editorial pages are unchanged. */
:root.rp-home{
  --rp-paper:#ffffff;--rp-sunk:#f3f5fb;--rp-ink:#111217;--rp-ink-2:#454b59;--rp-ink-3:#5c6473;
  --rp-line:#e0e5ee;--rp-line-strong:#b9c3d4;--rp-accent:#254df4;--rp-accent-ink:#2446c8;
  --rp-accent-hover:#1a3dd5;--rp-accent-soft:#edf1ff;--rp-mark:rgba(37,77,244,.1);
  --rp-shadow:0 20px 60px -28px rgba(24,44,91,.25);
}
.rp-home .rp-head-in{gap:24px}
.rp-home .rp-nav{gap:22px}
.rp-home .rp-head .rp-cta{background:transparent;color:var(--rp-ink-2);padding:0}
.rp-extension{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:10px 16px;border-radius:10px;background:var(--rp-accent);color:var(--rp-on-accent);font:600 14px/1.4 var(--rp-sans);text-decoration:none;white-space:nowrap;transition:background-color 180ms var(--rp-ease)}
.rp-extension svg{width:17px;height:17px;flex:none}
.rp-home .hero-head{padding-top:76px;padding-bottom:48px;column-gap:64px;align-items:center}
.rp-home h1{font-family:var(--rp-sans);font-size:clamp(44px,5.2vw,72px);font-weight:750;line-height:1.12;letter-spacing:-.035em}
.rp-home h1 span{color:var(--rp-accent-ink)}
.rp-home .sub{font-size:19px;line-height:1.7;max-width:480px}
.rp-home .acts{gap:12px 20px;margin-top:26px}
.rp-home .rp-btn{border-radius:10px}
.rp-home .chrome-link{display:inline-flex;align-items:center;gap:9px;min-height:48px;padding:10px 17px;border:1px solid var(--rp-line-strong);border-radius:10px;text-decoration:none;font:600 15px/1.4 var(--rp-sans);color:var(--rp-ink);background:var(--rp-sheet);transition:border-color 180ms var(--rp-ease),color 180ms var(--rp-ease)}
.chrome-link svg{width:20px;height:20px;flex:none}
.rp-home .hero-note{margin-top:14px;color:var(--rp-ink-3);font-size:13px;line-height:1.7}
.rp-home .spread{border-radius:14px 14px 0 0;outline:0;border:1px solid var(--rp-line);box-shadow:none;background:var(--rp-sheet)}
.rp-home .folio{padding-top:18px;padding-bottom:17px;border-bottom:1px solid var(--rp-line);letter-spacing:.01em;font-size:12px}
.rp-home .leaf{height:610px}
.rp-home .tag{padding-block:96px 0}
.rp-home .tag p{font-family:var(--rp-sans);font-size:28px;font-weight:550;line-height:1.7;max-width:880px;letter-spacing:-.015em}
.rp-home h2{font-family:var(--rp-sans);font-size:clamp(29px,3vw,42px);font-weight:700;letter-spacing:-.025em;max-width:920px}
.rp-home h3,.rp-home .books b,.rp-home .get b,.rp-home .ledger tbody th,.rp-home .faq summary{font-family:var(--rp-sans);letter-spacing:-.015em}
.rp-home .spec{column-gap:64px;padding-block:44px}
.rp-home .ex{background:var(--rp-sunk);outline:0;border-radius:12px}
.rp-home .plans strong{font-family:var(--rp-sans);font-weight:700;letter-spacing:-.04em}
.rp-home .books a{transition:background-color 180ms var(--rp-ease)}
.rp-home .get .extension-row{background:var(--rp-accent-soft);padding-inline:24px;border-top:0;border-radius:12px;margin-bottom:20px}
.rp-home .get .extension-row .go{white-space:nowrap}
.rp-home .faq summary{font-weight:600}
.rp-home .rp-foot{background:var(--rp-sunk);border-top:0}
.rp-home .drop{margin-top:12px}
.rp-home.js [data-reveal]{opacity:1;transform:none}
.rp-home .hero-head>*,.rp-home .spread,.rp-home .read>*{animation:none!important}
.rp-home .hero-head{animation:home-arrive 480ms cubic-bezier(.16,1,.3,1) both}
@keyframes home-arrive{from{transform:translateY(10px)}to{transform:none}}
@media(hover:hover){.rp-extension:hover{background:var(--rp-accent-hover)}.rp-home .chrome-link:hover{border-color:var(--rp-accent);color:var(--rp-accent-ink)}.rp-home .books a:hover{background:var(--rp-accent-soft)}}
@media(max-width:1190px){.rp-home .rp-head .rp-cta{display:none}.rp-home .hero-head{column-gap:38px}}
@media(max-width:1023px){.rp-home .hero-head{padding-top:50px;row-gap:24px}.rp-home h1{font-size:60px;max-width:850px}.rp-home .sub{max-width:650px}.rp-home .rp-head-in{gap:20px}.rp-home .rp-nav{gap:18px}.rp-home .leaf{height:620px}}
@media(max-width:767px){.rp-home .hero-head{padding-top:38px;padding-bottom:32px;row-gap:22px}.rp-home h1{font-size:clamp(35px,9.5vw,48px);line-height:1.18;letter-spacing:-.03em}.rp-home .sub{font-size:17px;line-height:1.75}.rp-home .acts{gap:10px;margin-top:22px}.rp-home .chrome-link{justify-content:center;width:100%;min-height:48px}.rp-home .rp-extension{display:none}.rp-home .hero-note{font-size:12px}.rp-home .leaf{height:490px}.rp-home .tag{padding-top:72px}.rp-home .tag p{font-size:23px;line-height:1.7}.rp-home .spec{padding-block:30px}.rp-home .get .extension-row{padding:22px 20px}.rp-home .get .extension-row .go{justify-self:stretch;justify-content:space-between}.rp-home .folio{font-size:11px}.rp-home section.sec{padding-top:72px}}
@media(prefers-color-scheme:dark){:root.rp-home:not([data-theme=light]){--rp-paper:#111318;--rp-sheet:#1a1e27;--rp-sunk:#171b24;--rp-ink:#f0f3fa;--rp-ink-2:#bac3d4;--rp-ink-3:#9ba8bf;--rp-line:#303848;--rp-line-strong:#53617a;--rp-accent:#a3b8ff;--rp-accent-ink:#afc1ff;--rp-accent-hover:#c2cfff;--rp-on-accent:#111a36;--rp-accent-soft:#202d4c;--rp-mark:rgba(163,184,255,.12)}}
:root.rp-home[data-theme=dark]{--rp-paper:#111318;--rp-sheet:#1a1e27;--rp-sunk:#171b24;--rp-ink:#f0f3fa;--rp-ink-2:#bac3d4;--rp-ink-3:#9ba8bf;--rp-line:#303848;--rp-line-strong:#53617a;--rp-accent:#a3b8ff;--rp-accent-ink:#afc1ff;--rp-accent-hover:#c2cfff;--rp-on-accent:#111a36;--rp-accent-soft:#202d4c;--rp-mark:rgba(163,184,255,.12)}
@media(prefers-reduced-motion:reduce){.rp-home .hero-head{animation:none}.rp-extension,.rp-home .chrome-link{transition:none}}

/* Motion and depth (2026-11-28, docs/design/2026-11-28-ui-refresh/brief.md).
   The page answers a visitor: it arrives in order, sections come up as they are reached, and
   anything that can be pressed gives. Nothing loops and nothing moves once it has arrived.
   All of it sits behind `.js` and `prefers-reduced-motion: no-preference`, so a page without
   script, or a visitor who asked for less motion, gets the complete static page. */
:root.rp-home {
  --rp-out: cubic-bezier(.16, 1, .3, 1);
  --rp-glass: color-mix(in srgb, var(--rp-paper) 78%, transparent);
}

/* The header floats over the page once it has left the top. */
.rp-home .rp-head { background: transparent; }
.rp-home .rp-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--rp-paper);
  transition: background-color 300ms var(--rp-out);
}
.rp-home .rp-head[data-scrolled]::before {
  background: var(--rp-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
html[data-menu-open].rp-home .rp-head::before { background: var(--rp-paper); }

/* Depth: the open book is the one object on the page that stands off it. */
.rp-home .spread { box-shadow: var(--rp-shadow); }

/* Buttons catch light along the top edge and give under a press. */
.rp-home .rp-btn,
.rp-extension {
  background-image: linear-gradient(rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
  transition: transform 180ms var(--rp-out), background-color 180ms var(--rp-out), box-shadow 220ms var(--rp-out);
}
.rp-home .chrome-link {
  transition: transform 180ms var(--rp-out), border-color 180ms var(--rp-out), color 180ms var(--rp-out), box-shadow 220ms var(--rp-out);
}
.rp-home .chrome-link svg,
.rp-extension svg,
.rp-home .books a svg { transition: transform 220ms var(--rp-out); }
.rp-home .rp-btn:active,
.rp-extension:active,
.rp-home .chrome-link:active { transform: scale(.97); }
.rp-home .books a { transition: background-color 180ms var(--rp-out), transform 180ms var(--rp-out); }
.rp-home .books a:active { transform: scale(.99); }

@media (hover: hover) and (pointer: fine) {
  .rp-home .rp-btn:hover,
  .rp-extension:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--rp-accent) 70%, transparent);
  }
  .rp-home .chrome-link:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -14px rgba(24, 44, 91, .35); }
  .rp-home .chrome-link:hover svg,
  .rp-extension:hover svg { transform: translate(2px, -2px); }
  .rp-home .books a:hover svg { transform: translateX(4px); }
  .rp-home .rp-btn:hover:active,
  .rp-extension:hover:active,
  .rp-home .chrome-link:hover:active { transform: scale(.97); }
}

@keyframes home-settle { from { transform: translateY(14px); } }

@media (prefers-reduced-motion: no-preference) {
  /* Arrival: the claim, what it means, what to press, then the book itself. The first screen only
     travels, it never starts transparent: fading it in held back the largest paint by about 0.9 s
     on a throttled phone (measured 2026-11-29, LCP 916 ms → 1800 ms). */
  .rp-home.js .hero-head { animation: none; }
  .rp-home.js .hero-head > * { animation: home-settle 520ms var(--rp-out) backwards !important; }
  .rp-home.js .hero-head > :nth-child(2) { animation-delay: 70ms !important; }
  .rp-home.js .hero-head > :nth-child(n + 3) { animation-delay: 140ms !important; }
  .rp-home.js .spread { animation: home-settle 640ms var(--rp-out) 180ms backwards !important; }

  /* Sections come up as the visitor reaches them; a list's rows follow one another. */
  .rp-home.js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity 520ms var(--rp-out), transform 520ms var(--rp-out);
  }
  .rp-home.js [data-reveal].in { opacity: 1; transform: none; }
  .rp-home.js :is(.plans, .books, .get)[data-reveal] { opacity: 1; transform: none; }
  .rp-home.js :is(.plans, .books, .get)[data-reveal] > li {
    opacity: 0; transform: translateY(14px);
    transition: opacity 480ms var(--rp-out), transform 480ms var(--rp-out);
  }
  .rp-home.js :is(.plans, .books, .get)[data-reveal].in > li { opacity: 1; transform: none; }
  .rp-home.js :is(.plans, .books, .get)[data-reveal].in > li:nth-child(2) { transition-delay: 70ms; }
  .rp-home.js :is(.plans, .books, .get)[data-reveal].in > li:nth-child(3) { transition-delay: 140ms; }
  .rp-home.js :is(.plans, .books, .get)[data-reveal].in > li:nth-child(n + 4) { transition-delay: 210ms; }
}
.rp-home .plans strong { font-variant-numeric: tabular-nums; }
