/* KeptLet website v2 (home page only), layered over site.css.
   Tokens from v2-design-direction.md §2: the dark look with one blue accent,
   the logo tick's green, Inter Tight display type and Inter for text.
   Motion is in motion.js; everything here reads correctly without it.
   Layout rule: one 12-column grid (24 gap), headings above whole rows,
   boxes in a row the same height with footers pinned. */

@font-face { font-family: "Inter Tight"; src: url("fonts/InterTight_600SemiBold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_400Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter_600SemiBold.ttf") format("truetype"); font-weight: 600 800; font-style: normal; font-display: swap; }

:root {
  --bg: #08090B; --surface: #121418; --soft: #1A1D22; --surface3: #23272E;
  --ink: #F4F6F8; --muted: #8B97A6; --faint: #5C6673; --line: #262A31; --line-strong: #343A43;
  --brand: #3A97DC; --brand-hover: #5AAAE6; --brand-ink: #FFFFFF; --brand-tint: rgba(58, 151, 220, 0.14);
  --ok: #5BD16E; --ok-bg: rgba(91, 209, 110, 0.13); --due: #F5B13D; --due-bg: rgba(245, 177, 61, 0.13); --late: #F26B5E; --late-bg: rgba(242, 107, 94, 0.13);
  --focus: #3A97DC;
  --t-brand: #1A1D22; --t-red: #1A1D22; --t-amber: #1A1D22; --t-green: #1A1D22; --t-purple: #1A1D22; --t-teal: #1A1D22; --t-pink: #1A1D22;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.5);
  --radius: 24px; --wrap: 1224px; --header-h: 72px; --gap: 24px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-expo: cubic-bezier(0.16, 1, 0.3, 1); --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  color-scheme: dark;
}
body { font-family: var(--font); font-synthesis: none; background: var(--bg); }
::selection { background: var(--brand); color: #FFFFFF; }
.wrap { padding-inline: 48px; }
@media (max-width: 700px) { .wrap { padding-inline: 16px; } :root { --gap: 12px; } }
h1, h2, h3, .logo, .fact .big, .price .amt, .extra .amt, .score .n, .finder-out .when { font-family: var(--display); font-weight: 600; }
h1 { font-size: clamp(56px, 8.4vw, 120px); line-height: 0.9; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1; letter-spacing: -0.04em; }
h3 { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-weight: 600; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.sec-head > .eyebrow::before, .chapter-copy > .eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: 0.6; }
.sec-head { max-width: 860px; gap: 20px; margin-bottom: 48px; }
.section { padding-block: 128px; }
.section.band { background: var(--bg); border-block: 1px solid var(--line); }
@media (max-width: 700px) { .section { padding-block: 72px; } .sec-head { margin-bottom: 28px; } }
.grid, .tour, .prices, .extras, .faq, .finder, .checker { gap: var(--gap); }

/* Buttons: pills; the blue only for actions. */
.btn { border-radius: 999px; border: 1px solid var(--brand); font: 600 15px/20px var(--font); min-height: 48px; padding: 12px 24px; transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out); will-change: transform; }
.btn:hover { filter: none; transform: none; background: var(--brand-hover); border-color: var(--brand-hover); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--muted); background: transparent; }
.btn.sm { min-height: 40px; border-radius: 999px; font-size: 14px; }
.btn[data-magnetic] { transition: transform 520ms cubic-bezier(0.22, 1.35, 0.36, 1), background-color 160ms, border-color 160ms; }
.btn[data-magnetic].is-pulled { transition: transform 120ms linear, background-color 160ms, border-color 160ms; }
.btn.white { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Header: frosted, with links whose underline draws in. */
.site-header { background: rgba(8, 9, 11, 0.78); border-bottom-color: var(--line); }
.logo { font-size: 22px; letter-spacing: -0.02em; }
.nav a, .ul-link, .foot-grid a { position: relative; background: none !important; }
.nav a::after, .ul-link::after, .foot-grid a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform 240ms var(--ease-out); }
.ul-link::after, .foot-grid a::after { left: 0; right: 0; bottom: -3px; }
.nav a:hover::after, .nav a:focus-visible::after, .ul-link:hover::after, .foot-grid a:hover::after { transform: scaleX(1); transform-origin: left center; }
.nav a:hover { color: var(--ink); }
.foot-grid a:hover { text-decoration: none; }
.ul-link { display: inline-flex; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; justify-self: start; }
.login { border-radius: 999px; border: 1px solid var(--line-strong); }
.login:hover { background: transparent; border-color: var(--muted); }

/* Hero */
.hero { padding-block: 96px 112px; }
.hero .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); }
.hero h1 em { font-style: normal; color: var(--ok); }
.hero .lead { font-size: 19px; line-height: 30px; }
.notice { background: var(--due-bg); border: 1px solid rgba(245, 177, 61, 0.32); border-radius: 20px; padding: 18px 20px; }
.notice .icon { color: var(--due); }
.chip { background: transparent; border-color: var(--line); }
.browser { border-color: var(--line); background: var(--surface); }
.browser .bar { background: var(--soft); border-color: var(--line); }
.browser .bar span { background: var(--bg); }
.phone { background: #1F232A; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55); }
@keyframes kl-float { from { transform: translateY(-6px); } to { transform: translateY(6px); } }
.shots .phone img { animation: kl-float 3s var(--ease-inout) infinite alternate; }

/* Mask-up line reveal. Only hidden once motion.js says motion is on. */
.mask .line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.mask .line > span { display: inline-block; }
.motion .mask .line > span { transform: translateY(105%); transition: transform 560ms var(--ease-expo); }
.motion .mask .line:nth-child(2) > span { transition-delay: 80ms; }
.motion .mask .line:nth-child(3) > span { transition-delay: 160ms; }
.motion .mask.is-in .line > span { transform: none; }

/* Duty marquee */
.marquee { border-block: 1px solid var(--line); padding-block: 28px; overflow: hidden; }
.marquee-track { list-style: none; margin: 0 auto; padding: 0 48px; display: flex; flex-wrap: wrap; gap: 8px 0; max-width: var(--wrap); }
.marquee-track li { font: 600 clamp(32px, 4vw, 56px)/1.1 var(--display); letter-spacing: -0.03em; display: inline-flex; align-items: center; white-space: nowrap; }
.marquee-track li:nth-child(even) { color: var(--muted); }
.marquee-track li::after { content: ""; width: 0.42em; height: 0.42em; margin-inline: 0.45em; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%235BD16E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 62% no-repeat; }
.marquee.is-running .marquee-track { flex-wrap: nowrap; width: max-content; max-width: none; padding: 0; margin: 0; animation: kl-marquee var(--marquee-dur, 60s) linear infinite; }
.marquee.is-running:hover .marquee-track { animation-play-state: paused; }
@keyframes kl-marquee { to { transform: translate3d(-50%, 0, 0); } }
@media (max-width: 700px) { .marquee-track { padding-inline: 16px; } }

/* Figures */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.stat { border-top: 1px solid var(--line-strong); padding-top: 24px; display: grid; grid-template-rows: auto auto 1fr; gap: 12px; }
.stat .figure { font: 600 clamp(36px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.045em; }
.stat h3 { font-size: 17px; }
.stat p { color: var(--muted); font-size: 13px; line-height: 18px; align-self: end; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Chapters: 6 + 6 on the grid, text beside a media panel. */
.chapters { padding-top: 32px; }
.chapter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: stretch; }
.chapter + .chapter { margin-top: 160px; }
.chapter-copy { display: grid; gap: 24px; align-content: center; }
.chapter-copy h2 { font-size: clamp(34px, 3.9vw, 56px); line-height: 1.04; letter-spacing: -0.035em; }
.chapter-copy p { color: var(--muted); font-size: 17px; line-height: 26px; max-width: 520px; }
.ticks { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.ticks li { display: flex; gap: 12px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%235BD16E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 60% no-repeat; }
.chapter-media { position: relative; min-height: 600px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color 160ms var(--ease-out); }
.chapter-media:hover { border-color: var(--line-strong); }
.chapter-media .phone { width: 260px; position: relative; }
.chapter-media .phone img { transition: transform 600ms var(--ease-out); }
.chapter-media:hover .phone img { transform: scale(1.04); }
.bignum { position: absolute; right: -10px; bottom: -70px; font: 600 360px/340px var(--display); letter-spacing: -0.06em; color: var(--soft); pointer-events: none; }
.fan .doc { position: absolute; left: 50%; top: 50%; width: 230px; height: 304px; margin: -152px 0 0 -115px; padding: 18px; border-radius: 16px; border: 1px solid var(--line-strong); background: var(--soft); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); display: grid; align-content: start; gap: 10px; transition: transform 600ms var(--ease-expo); }
.fan .doc small { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.fan .doc i { display: block; height: 6px; border-radius: 3px; background: var(--line-strong); }
.fan .doc i:nth-of-type(2) { width: 70%; }
.fan .doc .pill { position: absolute; left: 18px; bottom: 18px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); }
.fan .d0 { transform: translateX(-150px) translateY(10px) rotate(-7deg); }
.fan .d2 { transform: translateX(150px) translateY(10px) rotate(7deg); }
.fan .d1 { background: var(--surface3); transform: translateY(-12px); z-index: 2; }
.fan:hover .d0 { transform: translateX(-178px) translateY(20px) rotate(-10deg); }
.fan:hover .d2 { transform: translateX(178px) translateY(22px) rotate(10deg); }
.fan .lock { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' fill='%2308090B'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3' fill='none' stroke='%2308090B' stroke-width='2.4'/%3E%3C/svg%3E") center / 50% no-repeat; }
@media (max-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .chapter + .chapter { margin-top: 88px; }
  .chapter-media { min-height: 440px; border-radius: 20px; }
  .chapter-media .phone { width: 200px; }
  .bignum { font-size: 220px; line-height: 210px; bottom: -44px; }
  .fan .doc { width: 170px; height: 224px; margin: -112px 0 0 -85px; }
  .fan .d0 { transform: translateX(-92px) translateY(10px) rotate(-7deg); }
  .fan .d2 { transform: translateX(92px) translateY(10px) rotate(7deg); }
}

/* Feature tiles: one look, the icon in the accent. */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; color: var(--ink); transition: border-color 160ms var(--ease-out); }
.tile:hover, .card:hover, .price:hover { border-color: var(--line-strong); }
.tile .ring { background: var(--brand-tint); color: var(--brand); }
.tile .eyebrow { color: var(--muted); opacity: 1; }
.tile h3 { font-family: var(--display); font-weight: 600; font-size: 28px; letter-spacing: -0.03em; }
.tile p { color: var(--muted); opacity: 1; }
.tile .chip { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.tile .chip .icon { color: var(--ok); }
.card, .price, .extra, .q, .result, .month, .faq details, .form-card, .doc { background: var(--surface); border-color: var(--line); border-radius: var(--radius); transition: border-color 160ms var(--ease-out); }
.band .card, .band .q, .band .faq details { background: var(--surface); }
.badge, .badge.red, .badge.amber, .badge.green, .badge.purple, .badge.teal, .badge.pink { background: var(--brand-tint); color: var(--brand); }
.fact { border-top-color: var(--line-strong); }
.fact .big { font-size: clamp(36px, 4.4vw, 56px); letter-spacing: -0.045em; }
.fact.red .big { color: var(--late); } .fact.amber .big { color: var(--due); } .fact.green .big { color: var(--ok); }

/* Everything else: an index of rows, 3 across, rows level. */
.index-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.index-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 4px; padding-block: 20px; border-top: 1px solid var(--line); }
.index-list .n { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--faint); padding-top: 3px; }
.index-list h3 { font-size: 15px; line-height: 20px; }
.index-list p { color: var(--muted); font-size: 13px; line-height: 18px; margin-top: 4px; }
@media (max-width: 1020px) { .index-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .index-list { grid-template-columns: minmax(0, 1fr); } }

/* How it works: sticky stacked cards. */
.stack { padding-bottom: 48px; }
.stack-card { position: sticky; top: 96px; margin-bottom: 40px; }
.stack-card:nth-child(2) { top: 112px; }
.stack-card:nth-child(3) { top: 128px; }
.stack-inner { min-height: 360px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap); align-items: end; padding: 40px; border-radius: 32px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 -24px 48px rgba(0, 0, 0, 0.45); transform-origin: center top; will-change: transform, filter; }
.stack-inner .num { font: 600 clamp(72px, 10vw, 160px)/0.9 var(--display); letter-spacing: -0.05em; align-self: start; }
.stack-inner .num small { font: 600 12px/1 var(--font); letter-spacing: 0.08em; color: var(--faint); margin-left: 12px; }
.stack-inner h3 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 16px; }
.stack-inner p { color: var(--muted); font-size: 17px; line-height: 26px; max-width: 520px; }
@media (max-width: 900px) {
  .stack-card { top: 84px; margin-bottom: 24px; }
  .stack-card:nth-child(2) { top: 100px; }
  .stack-card:nth-child(3) { top: 116px; }
  .stack-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 24px; border-radius: 24px; }
}

/* Pricing, security, FAQ, sign-up */
.price.best { border: 1px solid var(--brand); box-shadow: none; }
.price .amt { font-size: 48px; letter-spacing: -0.04em; }
.extra .amt { letter-spacing: -0.03em; }
.sec-hero { border-color: rgba(91, 209, 110, 0.35); }
.sec-hero .badge { background: var(--ok); color: var(--bg); }
.faq summary { font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: -0.02em; }
.faq summary::after { transition: transform 240ms var(--ease-out); }
.signup-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 32px; }
.signup-panel .eyebrow { color: var(--ok); opacity: 1; }
.signup-panel .chip { background: transparent; border: 1px solid var(--line); }
.signup-panel .chip .icon { color: var(--ok); }
.form-card { background: var(--soft); box-shadow: none; }
select, input[type=email], input[type=text] { background: var(--surface3); border-color: transparent; border-radius: 12px; }
.band select { background: var(--surface3); }
.opts span { background: var(--surface3); border-color: transparent; }
.ev { background: var(--ok-bg); } .ev.due { background: var(--due-bg); } .ev.late { background: var(--late-bg); }
.col.with { background: var(--ok-bg); } .col.without { background: var(--surface); }

/* Footer: the name, large. */
.site-footer { background: var(--bg); }
.wordmark { display: block; font: 600 clamp(88px, 17vw, 240px)/0.9 var(--display); letter-spacing: -0.06em; color: var(--ink); text-decoration: none; margin-bottom: 48px; }
.wordmark .let, .logo .let { color: var(--brand); }

/* The cursor follower (built by motion.js on laptops with a mouse). */
.has-cursor [data-cursor-zone], .has-cursor [data-cursor-zone] * { cursor: none; }
.has-cursor [data-cursor-zone] input, .has-cursor [data-cursor-zone] select, .has-cursor [data-cursor-zone] textarea { cursor: auto; }
.kl-cursor { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; }
.kl-cursor .dot, .kl-cursor .ball { position: fixed; left: 0; top: 0; border-radius: 50%; }
.kl-cursor .dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--ink); opacity: 0; transition: opacity 160ms; }
.kl-cursor[data-state="dot"] .dot { opacity: 1; }
.kl-cursor .ball { width: 72px; height: 72px; margin: -36px 0 0 -36px; }
.kl-cursor .face { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: scale(0); border: 1px solid transparent; transition: transform 240ms var(--ease-expo), background-color 160ms; font: 600 12px/16px var(--font); color: var(--bg); }
.kl-cursor .face span { opacity: 0; transition: opacity 160ms; }
.kl-cursor[data-state="link"] .face { transform: scale(0.611); background: var(--brand-tint); border-color: rgba(58, 151, 220, 0.55); }
.kl-cursor[data-state="label"] .face { transform: scale(1); background: var(--ink); }
.kl-cursor[data-state="label"] .face span { opacity: 1; }
.kl-cursor[data-hidden="1"] { opacity: 0; }

/* Reduced motion: a full, still design. */
@media (prefers-reduced-motion: reduce) {
  .shots .phone img, .marquee-track { animation: none !important; }
  .nav a::after, .ul-link::after, .foot-grid a::after, .fan .doc, .chapter-media .phone img, .btn { transition: none; }
  .fan:hover .d0 { transform: translateX(-150px) translateY(10px) rotate(-7deg); }
  .fan:hover .d2 { transform: translateX(150px) translateY(10px) rotate(7deg); }
  .chapter-media:hover .phone img { transform: none; }
}

/* Lenis drives scrolling: no CSS smooth scroll on top of it. */
html.lenis { scroll-behavior: auto; height: auto; }
@media (max-width: 960px) { .hero { padding-block: 40px 64px; } .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; } .hero .lead { font-size: 17px; line-height: 26px; } }

/* ---------------------------------------------------------------------------
   Fluent motion (Windows 11 in spirit), subtle. Driven by motion.js, which
   only runs without reduced motion; everything here reads still without it.
   --------------------------------------------------------------------------- */
:root { --ease-decel: cubic-bezier(0.1, 0.9, 0.2, 1); --ease-accel: cubic-bezier(0.8, 0, 0.78, 1); --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --rv-fill: rgba(58, 151, 220, 0.16); --rv-edge: rgba(150, 204, 242, 0.8); --lift: 0 14px 36px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07); }

/* The logo's tick draws itself in once, on load. */
.logo .mark { width: 34px; height: 34px; border-radius: 9px; flex: none; }
.motion .logo .mark .tick { stroke-dasharray: 48; stroke-dashoffset: 48; animation: kl-tick 560ms var(--ease-out) 240ms forwards; }
@keyframes kl-tick { to { stroke-dashoffset: 0; } }

/* Header: clear over the hero, acrylic (blur, tint, grain) once the page scrolls. */
.motion .site-header { background: transparent; border-bottom-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
  transition: background-color 360ms var(--ease-out), border-color 360ms var(--ease-out), -webkit-backdrop-filter 360ms, backdrop-filter 360ms; }
.motion .site-header.is-scrolled { background-color: rgba(8, 9, 11, 0.66); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0 0.5 0 0 0 0.045 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Boxes rise into view (IntersectionObserver), 20 px, 520 ms decelerate, 30 ms apart. */
.motion .rv { opacity: 0; translate: 0 20px; transition: opacity 360ms var(--ease-decel), translate 520ms var(--ease-decel); transition-delay: var(--rv-delay, 0ms); }
.motion .rv.is-in { opacity: 1; translate: 0 0; }

/* Reveal highlight: a soft light follows the mouse inside a box, and borders near it catch the light. */
.has-cursor [data-reveal] { position: relative; }
.has-cursor [data-reveal]::before, .has-cursor [data-reveal]::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; z-index: 1; }
.has-cursor [data-reveal]::before { background: radial-gradient(260px circle at var(--rx, -999px) var(--ry, -999px), var(--rv-fill), transparent 70%); mix-blend-mode: screen; transition: opacity 200ms var(--ease-decel); }
.has-cursor [data-reveal]::after { padding: 1px; background: radial-gradient(150px circle at var(--rx, -999px) var(--ry, -999px), var(--rv-edge), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: var(--rb, 0); transition: opacity 160ms linear; z-index: 2; }
.has-cursor [data-reveal][data-lit="in"]::before { opacity: 1; }
.has-cursor .btn[data-reveal]::after { display: none; }
.has-cursor .btn[data-reveal]::before { background: radial-gradient(90px circle at var(--rx, -999px) var(--ry, -999px), rgba(255, 255, 255, 0.2), transparent 75%); }

/* Hover: boxes lift 2 px with a stronger shadow; icons nudge; a press sinks to 0.98. */
.motion .tile, .motion .card, .motion .price, .motion .chapter-media { transition: border-color 160ms var(--ease-out), translate 200ms var(--ease-decel), box-shadow 200ms var(--ease-decel), opacity 360ms var(--ease-decel); }
.motion .rv.tile, .motion .rv.card, .motion .rv.price { transition: border-color 160ms var(--ease-out), translate 520ms var(--ease-decel), box-shadow 200ms var(--ease-decel), opacity 360ms var(--ease-decel); }
@media (hover: hover) and (pointer: fine) {
  .motion .tile.is-in:hover, .motion .card.is-in:hover, .motion .price.is-in:hover,
  .motion .tile:not(.rv):hover, .motion .card:not(.rv):hover, .motion .price:not(.rv):hover { translate: 0 -2px; box-shadow: var(--lift); transition-delay: 0ms; }
  .motion .tile .ring, .motion .card .badge { transition: translate 200ms var(--ease-decel); }
  .motion .tile:hover .ring, .motion .card:hover .badge { translate: 0 -2px; }
  .motion .ul-link svg { transition: translate 200ms var(--ease-decel); }
  .motion .ul-link:hover svg { translate: 3px 0; }
}
.motion .btn:active { scale: 0.98; }

@media (prefers-reduced-motion: reduce) {
  .logo .mark .tick { animation: none; stroke-dashoffset: 0; }
  .rv { opacity: 1 !important; translate: none !important; }
}
