/* The landing, design «Клодик ведёт»: the blog's stickers and face (blog.css) with the app's screens in them.
   This page loads this file instead of styles.css, so the shared header and footer are styled here too.
   Fonts: Unbounded, Onest and Literata, SIL Open Font License (fonts/OFL.txt). */

@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-weight: 200 900; font-display: swap; src: url(/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-weight: 100 900; font-display: swap; src: url(/fonts/onest-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-weight: 400 700; font-display: swap; src: url(/fonts/literata-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Literata'; font-weight: 400 700; font-display: swap; src: url(/fonts/literata-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/literata-italic-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@property --p { syntax: '<percentage>'; inherits: true; initial-value: 55.32%; }

:root {
  --book: #9FCBFF; --ink: #191919; --white: #fff; --red: #E2391B; --sun: #F5C431;
  --hd: 66px; --dock-h: 0px;
  --gutter: clamp(16px, 5vw, 56px);
  --sec: clamp(56px, 7vw, 96px);
  --display: 'Unbounded', 'Arial Black', sans-serif;
  --sans: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Literata', Georgia, 'Noto Serif', serif;
  /* The app's own UI inside the mockups (apps/mobile/src/ui/tokens.ts). */
  --surface: #fff; --text: #1B1A18; --elevated: #F2EFE9; --secondary: #6F6A62; --muted: #8B867D; --tertiary: #A39E95;
  --accent: #C2472A; --accent-soft: rgba(194, 71, 42, .12); --sep: rgba(27, 26, 24, .08); --line: rgba(27, 26, 24, .14);
  --ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', Arial, sans-serif;
  /* A page of one look for now: this also keeps browsers from darkening it by themselves. */
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 8px); }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 18px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
svg { display: block; flex-shrink: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2F7DF6; outline-offset: 3px; border-radius: 4px; }
.vh, .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nb { white-space: nowrap; }
@media (max-width: 600px) { .nb { white-space: normal; } }
.ic { width: 1em; height: 1em; }
svg.bolt { display: inline-block; width: .92em; height: .92em; margin: 0 .04em; vertical-align: -.1em; color: var(--accent); }

/* One container for everything, the header included: every block starts and ends on the same lines. */
.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--white); color: var(--ink); }
.skip:focus { left: 16px; }

/* ---------- Header: the logo reads the page as it scrolls, the line under it is how far you've read ---------- */

.site-header { position: sticky; top: 0; z-index: 20; background: var(--white); border-bottom: 3px solid var(--ink); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--hd); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; font: 700 17px/1 var(--display); letter-spacing: -.02em; }
.brand .g { width: 42px; }
.nav { display: flex; align-items: center; gap: 18px; }
nav.nav { gap: 20px; }
.nav-link { font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav-link[href$="/contact"] { display: none; }
.lang { display: flex; gap: 2px; padding: 2px; border: 2px solid var(--ink); border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.lang a { padding: 3px 7px; border-radius: 6px; text-decoration: none; }
.lang a[aria-current] { background: var(--ink); color: var(--white); }
.progress { position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; }
.progress i { display: block; height: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; }
@media (max-width: 1320px) { .nav-more { display: none; } }
@media (max-width: 860px) { .nav-link { display: none; } }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 0 18px; min-height: 58px; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); color: var(--ink); text-decoration: none; box-shadow: 5px 5px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
a.store:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
a.store:active { transform: translate(4px, 4px); box-shadow: 1px 1px 0 var(--ink); }
.store > span { display: flex; flex-direction: column; }
.store small { font-size: 11.5px; line-height: 1.2; opacity: .78; white-space: nowrap; }
.store b { font-size: 17px; line-height: 1.2; font-weight: 700; white-space: nowrap; }
.store .glyph { width: 24px; height: 24px; }
.hd-cta .store { min-height: 38px; padding: 0 12px; gap: 7px; border-width: 2px; border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); }
.hd-cta .store small { display: none; }
.hd-cta .store b { font-size: 14px; }
.hd-cta .store .glyph { width: 16px; height: 16px; }
.dock { display: none; }
@media (max-width: 860px) {
  .hd-cta { display: none; }
  .dock { display: block; position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--white); border-top: 3px solid var(--ink); }
  .dock .stores { flex-wrap: nowrap; gap: 8px; }
  .dock .store { flex: 1 1 0; min-width: 0; justify-content: center; min-height: 46px; padding: 0 8px; border-width: 2px; box-shadow: none; }
  .dock .store small { font-size: 10.5px; }
  .dock .store b { font-size: 15px; }
}

/* ---------- Stickers and the face, from the blog ---------- */

.sticker { border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--white); color: var(--ink); }
.g { display: block; overflow: visible; width: 100%; }
.g * { transform-box: fill-box; transform-origin: center; }
.g--wow .g-brows { transform: translateY(-4px); }
.g--wow .g-mouth { transform: scale(.48, 1.7); }
.g--skeptic .g-brows { transform: rotate(-7deg); }
.g--skeptic .g-mouth { transform: translateX(7px) scaleX(.6); }
.g--laugh .g-brows { transform: translateY(-2px); }
.g--laugh .g-mouth { transform: translateY(1px) scale(1.4, 1.25); }
.g--moved .g-brows { transform: translateY(-5px) rotate(3deg); }
.g--moved .g-mouth { transform: scaleX(.7); }
.face { border-radius: 50%; display: grid; place-items: center; aspect-ratio: 1; }
.face .g { width: 66%; }
.react { display: flex; gap: 12px; align-items: center; }
.react .face { width: 62px; flex: none; background: var(--sun); box-shadow: 3px 3px 0 var(--ink); }
.react p { border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-weight: 600; font-size: 15.5px; line-height: 1.3; box-shadow: 4px 4px 0 var(--ink); }

/* ---------- Sections share one set of edges and one heading ---------- */

.sec { padding-block: var(--sec); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 20px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.sec h2, .faq-side h2 { font: 800 clamp(28px, 4vw, 56px)/1.06 var(--display); letter-spacing: -.03em; text-wrap: balance; }
.sec-side { display: grid; gap: 18px; }
.lead2 { font-weight: 500; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; text-wrap: pretty; }
.sec-pink { background: #FFB8B0; }
.sec-green { background: #C8E6A0; }
.sec-sun { background: var(--sun); }
.sec-lilac { background: #BFC8FF; }
.sec-orange { background: #FFD08A; }
.sec-mint { background: #9EE6C7; }
.sec-line { border-top: 3px solid var(--ink); }
.go { margin-top: 24px; }
.go a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 22px; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; }
.go a:hover { background: var(--red); }
.ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 21px; }
.mini { padding: 18px 20px; border-radius: 18px; }
.mini h3 { font-size: 18px; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.mini p { font-size: 16px; line-height: 1.45; }

/* ---------- The app's UI in the mockups: popover, capsule, phone ---------- */

.pop { display: block; align-self: stretch; background: var(--surface); border-radius: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); font-family: var(--ui); line-height: 1.3; color: var(--text); }
.pop-body { display: block; padding: 12px 16px 14px; }
.tabs { display: flex; margin: 10px 10px 0; padding: 2px; border-radius: 11px; background: var(--elevated); }
.tab { flex: 1 1 0; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 5px; height: 32px; border-radius: 9px; font-size: 13px; font-weight: 500; color: var(--secondary); white-space: nowrap; }
.tab svg { width: 16px; height: 16px; }
.tab.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.tab.on svg { color: var(--accent); }
.entry { display: flex; align-items: flex-start; gap: 10px; }
.entry-main { display: block; flex: 1; min-width: 0; }
.wc-meta, .wc-tr, .wc-also, .wc-note { display: block; }
.wc-meta { font-size: 13px; line-height: 18px; color: var(--secondary); }
.wc-tr { margin-top: 2px; font-family: var(--serif); font-size: 21px; line-height: 27px; font-weight: 600; }
.wc-also { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--secondary); }
.wc-note { margin-top: 6px; font-size: 13.5px; line-height: 19px; font-style: italic; color: var(--secondary); }
.pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 12px; border-radius: 16px; background: var(--elevated); font-size: 13.5px; font-weight: 500; line-height: 1.25; color: var(--text); }
.pill svg { width: 16px; height: 16px; color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.pills > .pill { flex-shrink: 1; min-width: 0; max-width: 100%; }
.chip-s { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 12px; background: var(--elevated); font-size: 12.5px; line-height: 1.3; color: var(--secondary); white-space: nowrap; }
.flag { flex-shrink: 0; margin-left: auto; width: 30px; height: 30px; display: grid; place-items: center; color: var(--tertiary); }
.flag svg { width: 16px; height: 16px; }
.capsule { display: inline-flex; padding: 4px; border-radius: 16px; background: var(--surface); box-shadow: 0 4px 14px rgba(0, 0, 0, .14); font-family: var(--ui); }
.capsule > span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 60px; height: 50px; padding: 0 8px; font-size: 11.5px; font-weight: 500; line-height: 1.2; color: var(--secondary); white-space: nowrap; }
.capsule svg { width: 20px; height: 20px; }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.seg { display: inline-flex; padding: 2px; border-radius: 10px; background: var(--elevated); }
.seg span { padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 500; color: var(--secondary); white-space: nowrap; }
.seg .on { background: var(--surface); color: var(--text); }
.seg-wide { display: flex; width: 100%; padding: 3px; border-radius: 12px; }
.seg-wide span { flex: 1; padding: 7px 4px; border-radius: 10px; text-align: center; font-size: 13.5px; }
.seg-wide .on { box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.ai-text { font-size: 15px; line-height: 22px; }
.bubble { align-self: flex-end; max-width: 85%; padding: 9px 12px; border-radius: 18px 18px 6px 18px; background: rgba(194, 71, 42, .1); font-size: 15px; line-height: 21px; }
.phone { position: relative; flex-shrink: 0; width: 366px; height: 746px; padding: 10px; border: 3px solid var(--ink); border-radius: 56px; background: #1B1A18; rotate: 1.6deg; box-shadow: 12px 12px 0 var(--ink); }
.screen { position: relative; width: 340px; height: 720px; border-radius: 46px; background: #FBFAF7; overflow: hidden; }
@media (max-width: 400px) { .phone { zoom: .86; } }

/* ---------- Hero ---------- */

.hero { background: var(--book); overflow: clip; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(28px, 5vh, 56px) clamp(36px, 6vh, 64px); }
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
h1 { font: 800 clamp(31px, 4.6vw, 68px)/1.05 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.lead { max-width: 33em; font-weight: 500; font-size: clamp(17px, 1.4vw, 20px); text-wrap: pretty; }
.hero-stores { gap: 16px; }
.hint { align-self: flex-start; padding: 6px 12px; background: var(--ink); color: var(--book); font-weight: 700; font-size: 15px; border-radius: 10px; rotate: -1.2deg; }
.meta { font-size: 14.5px; font-weight: 500; }
.stage { position: relative; }
.hero-face { position: absolute; left: -128px; bottom: 26px; z-index: 3; width: 138px; }
.hero-face .face { background: var(--sun); }
.say { position: absolute; left: -34px; top: -66px; width: 178px; padding: 8px 12px; background: var(--ink); color: var(--sun); border-radius: 12px; font-weight: 700; font-size: 14.5px; line-height: 1.2; rotate: -3deg; }
@media (max-width: 1320px) { .hero-face { left: auto; right: -14px; bottom: auto; top: -30px; width: 92px; } .say { display: none; } }

/* The tap demo: at rest the first word is selected and its card is open; the phone then plays by itself. */
.demo { position: relative; height: 100%; font-family: var(--serif); color: var(--text); }
.pg { padding: 58px 26px 0; font-size: 15.5px; line-height: 24px; }
.pg p { text-indent: 1.4em; }
.foot { position: absolute; left: 26px; right: 26px; bottom: 14px; display: flex; justify-content: space-between; font: 12px/1 var(--ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.w { position: relative; cursor: pointer; border-bottom: 1.5px dotted var(--accent); padding-bottom: 1px; background: linear-gradient(rgba(47, 125, 246, .24), rgba(47, 125, 246, .24)) no-repeat 0 0 / 0% 100%; transition: background-size .2s; }
.w:hover { border-bottom-style: solid; }
.w::before, .w::after { content: ""; display: inline-block; width: 10px; height: 1.6em; margin-inline: -5px; vertical-align: -.42em; opacity: 0; pointer-events: none; }
.w::before { background: linear-gradient(#2F7DF6, #2F7DF6) center / 2px 100% no-repeat, radial-gradient(circle, #2F7DF6 4.5px, transparent 5px) center top / 10px 10px no-repeat; }
.w::after { background: linear-gradient(#2F7DF6, #2F7DF6) center / 2px 100% no-repeat, radial-gradient(circle, #2F7DF6 4.5px, transparent 5px) center bottom / 10px 10px no-repeat; }
.tap { position: absolute; left: -.2em; top: -.1em; width: 1.7em; height: 1.7em; border-radius: 50%; background: rgba(47, 125, 246, .4); opacity: 0; pointer-events: none; }
.w1 { background-size: 100% 100%; }
.w1::before, .w1::after { opacity: 1; }
.scene { position: absolute; left: 10px; right: 10px; bottom: 36px; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .22s, transform .28s; }
.s1 { opacity: 1; transform: none; }
.w1, .s1 { --k: 0; } .w2, .s2 { --k: 1; } .w3, .s3 { --k: 2; }

.ticker { background: var(--ink); color: var(--book); overflow: hidden; white-space: nowrap; font: 700 20px/1 var(--display); letter-spacing: -.01em; padding: 15px 0; }
.ticker > div { display: inline-flex; gap: 22px; align-items: center; padding-right: 22px; }
.ticker .g { width: 34px; flex: none; }

/* ---------- The card: a deck where each sticker stays and the next slides over it ---------- */

.deck { display: grid; gap: 28px; }
.dk { position: sticky; top: calc(var(--hd) + 14px + var(--i) * 12px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; min-height: 400px; padding: clamp(20px, 3.6vw, 48px); border-radius: 28px; background: var(--bg); }
.dk h3 { font: 800 clamp(23px, 2.7vw, 38px)/1.1 var(--display); letter-spacing: -.025em; margin-bottom: 14px; }
.dk p { font-weight: 500; font-size: clamp(16px, 1.3vw, 19px); text-wrap: pretty; }
.dk-mock { min-width: 0; }
.dk .pop { border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.dk .ai-text { font-weight: 400; font-size: 15px; }
.first { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sep); font-size: 14px; font-weight: 600; color: var(--accent); }
.first .ic { width: 17px; height: 17px; }
.first small { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--secondary); }
.mt { display: grid; gap: 10px; padding: 16px; background: var(--white); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 5px 5px 0 var(--ink); font-family: var(--ui); }
.mt > b { font-size: 14px; font-weight: 600; color: var(--secondary); }
.mt-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; cursor: pointer; }
.mt-row:has(input:checked) { background: #BFC8FF; }
.mt-row input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--ink); }
.mt-row span { display: grid; }
.mt-row b { font-size: 16px; font-weight: 700; }
.mt-row small { font-size: 13.5px; line-height: 1.3; color: var(--secondary); }

/* ---------- No spoilers ----------
   --p is how much of the text is above the line. The text scrolls past the line, and two copies of it meet
   there: sharp above, blurred below. Its font is 5% of the text's width, so the lines break alike at every
   width and the stops below hold: they are the bottoms of paragraphs, in % of the text's height, measured on
   the built page. Changing the text means measuring again. With "reduce motion", or without scroll-driven
   animations, it stands at one place with its answer. */

.sp { background: var(--ink); color: var(--white); padding-bottom: var(--sec); --line: var(--red); --at: 58%; --p: 55.32%; }
.sp-head { display: none; gap: 12px; padding: 44px var(--gutter) 18px; }
.sp-head h2, .sp-intro h2 { font: 800 clamp(26px, min(3.1vw, 5.2vh), 46px)/1.08 var(--display); letter-spacing: -.03em; text-wrap: balance; color: var(--book); }
.sp-head p, .sp-intro p { font-size: clamp(16px, 1.25vw, 18px); text-wrap: pretty; }
.sp-pin { position: relative; padding-inline: var(--gutter); }
.sp-stage { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; max-width: 1200px; margin-inline: auto; padding-block: 14px 28px; }
.sp-left { display: flex; flex-direction: column; gap: clamp(20px, 3.4vh, 36px); min-width: 0; }
.sp-intro { display: grid; gap: 14px; }
.sp-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; min-width: 0; --accent: var(--red); }
.sp-chat .bubble { background: var(--book); color: var(--ink); border-radius: 18px 18px 4px 18px; font-weight: 700; font-size: 17px; padding: 10px 16px; }
.ans-stack { display: grid; width: 100%; }
.ans { grid-area: 1 / 1; align-self: start; visibility: hidden; background: var(--white); color: var(--ink); border-radius: 18px 18px 18px 4px; padding: 16px 20px; font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); line-height: 1.32; }
.a2 { visibility: visible; }
.ref { color: var(--accent); font-size: .78em; font-weight: 600; }
.sp-claudy { display: flex; gap: 12px; align-items: center; }
.sp-face { width: 72px; flex: none; background: var(--sun); box-shadow: 4px 4px 0 var(--book); }
.sp-claudy p { font-weight: 700; font-size: 16px; line-height: 1.3; }
.sp-win { position: relative; justify-self: end; min-width: 0; width: 100%; max-width: 560px; height: 560px; overflow: hidden; container-type: inline-size; background: var(--white); color: var(--ink); border: 3px solid var(--ink); border-radius: 18px; box-shadow: 8px 8px 0 var(--book); }
.sp-text { position: absolute; left: 6cqw; right: 6cqw; top: var(--at); transform: translateY(calc(var(--p) * -1)); font: 400 4.4cqw/1.42 var(--serif); }
.sp-text p { text-indent: 1.4em; }
.sp-clear { clip-path: inset(0 0 calc(100% - var(--p)) 0); }
.sp-blur { position: absolute; inset: 0; clip-path: inset(var(--p) 0 0 0); filter: blur(.28em); opacity: .62; user-select: none; }
.sp-line { position: absolute; left: 0; right: 0; top: var(--at); height: 2px; margin-top: -1px; background: var(--line); }
/* Under the line, on the text the AI doesn't get: it never covers the line being read. */
.sp-line span { position: absolute; right: 10px; top: 100%; margin-top: 6px; padding: 5px 13px; border-radius: 99px; background: var(--line); color: var(--white); font-weight: 800; font-size: 13.5px; line-height: 1.2; white-space: nowrap; rotate: -1.4deg; }
.sp-lock { position: absolute; left: 50%; top: calc(var(--at) + (100% - var(--at)) * .46); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 700; font-size: 13.5px; line-height: 1.2; white-space: nowrap; }
.sp-points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.sp-points .ico { background: var(--book); color: var(--ink); margin-bottom: 12px; }
.sp-points h3 { font-size: 18px; font-weight: 800; line-height: 1.25; margin-bottom: 6px; }
.sp-points p { font-size: 15.5px; line-height: 1.45; color: #CFCBC2; }

/* ---------- Chat ---------- */

.chat-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.chat-stage { padding-left: 8px; }
.chat-phone { rotate: -1.4deg; font-family: var(--ui); }
.screen.chat { display: flex; flex-direction: column; color: var(--text); }
.ib { flex-shrink: 0; width: 40px; height: 36px; display: grid; place-items: center; color: var(--accent); }
.ib svg { width: 22px; height: 22px; }
.chat-top { flex-shrink: 0; display: flex; align-items: center; gap: 2px; padding: 52px 8px 6px; }
.chat-top > .ib:first-child { margin-right: 40px; }
.chat-title { flex: 1; min-width: 0; text-align: center; line-height: 1.25; }
.chat-title b { display: block; font-size: 16px; font-weight: 600; }
.chat-title small { display: block; font-size: 12px; color: var(--tertiary); }
.chat-scope { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 14px 10px; border-bottom: 1px solid var(--sep); }
.chat-scope small { font-size: 11.5px; line-height: 1.3; color: var(--tertiary); text-align: center; }
.msgs { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; }
.answer { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 21px; }
.answer a, .w-answer a { color: var(--accent); font-weight: 600; font-size: .8em; }
.acts { display: flex; align-items: center; gap: 2px; margin: -4px 0 0 -6px; }
.acts > span { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px; font-size: 12.5px; color: var(--secondary); white-space: nowrap; }
.acts svg { width: 15px; height: 15px; color: var(--tertiary); }
.acts .spent { color: var(--tertiary); }
.acts .spent svg.bolt { width: .92em; height: .92em; color: var(--accent); }
.acts .flag { margin-left: 0; width: 28px; }
.composer { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 26px; border-top: 1px solid var(--sep); }
.chips-row { display: flex; gap: 8px; overflow: hidden; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; white-space: nowrap; }
.field-row { display: flex; align-items: flex-end; gap: 8px; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.typed { flex: 1; min-width: 0; padding: 11px 0; font-size: 15px; line-height: 20px; }
.price { flex-shrink: 0; font-size: 13px; color: var(--tertiary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.send { flex-shrink: 0; width: 44px; height: 44px; border-radius: 22px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.send svg { width: 20px; height: 20px; }
.chat-side { display: grid; gap: 16px; min-width: 0; }
.quick p { font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.quick ul { display: flex; flex-wrap: wrap; gap: 8px; }
.quick li { padding: 8px 14px; border: 2px solid var(--ink); border-radius: 99px; background: var(--white); font-weight: 600; font-size: 15px; }
.chat-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(32px, 5vw, 56px); }
.mini-mock { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 22px; }
.mini-mock h3 { font-size: 20px; font-weight: 800; line-height: 1.2; margin-bottom: 8px; }
.mini-mock p { font-size: 15.5px; line-height: 1.45; }
.mm { margin-top: auto; }
.world { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 16px; background: #FBFAF7; font-family: var(--ui); color: var(--text); }
.mm .bubble { font-size: 14px; line-height: 19px; }
.mm p.w-answer { font-size: 14px; line-height: 20px; }
.w-sources { display: flex; flex-direction: column; gap: 5px; padding-top: 10px; border-top: 1px solid var(--sep); }
.w-sources b { font-size: 12.5px; font-weight: 600; color: var(--secondary); }
.w-sources span { font-size: 13px; line-height: 18px; }
.w-sources i { margin-left: 8px; font-style: normal; color: var(--accent); }
.recap-mock { display: flex; flex-direction: column; gap: 10px; font-family: var(--ui); color: var(--text); }
.recap { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: #FBFAF7; }
.recap > svg { width: 20px; height: 20px; color: var(--accent); }
.recap > span { flex: 1; font-size: 14px; line-height: 1.35; }
.recap b { flex-shrink: 0; display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.toc-mock { padding: 2px 12px; border-radius: 16px; background: #FBFAF7; }
.toc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; font-size: 14.5px; }
.toc-row + .toc-row { border-top: 1px solid var(--sep); }
.toc-row.cur > span:first-child { color: var(--accent); font-weight: 600; }
.pill-s { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 15px; background: var(--elevated); font-size: 12.5px; font-weight: 500; color: var(--secondary); white-space: nowrap; }
.pill-s svg { width: 14px; height: 14px; color: var(--accent); }
.pill-s i { margin-left: 3px; font-style: normal; font-weight: 400; color: var(--tertiary); }
.place { display: flex; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--white); box-shadow: 0 0 0 1px var(--sep); font-size: 13.5px; line-height: 1.35; }
.place svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.place b { display: block; font-weight: 600; color: var(--accent); }

/* ---------- Your own library ---------- */

.servers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.servers li { padding: 7px 13px; border-radius: 99px; background: var(--ink); color: var(--white); font-weight: 600; font-size: 14.5px; }
.cat { padding: clamp(16px, 2.6vw, 30px); border-radius: 26px; font-family: var(--ui); color: var(--text); }
.cat-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px 18px; align-items: center; }
.cat-top > b { font: 700 clamp(20px, 2vw, 26px)/1.1 var(--serif); letter-spacing: -.01em; }
.cat-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: 14px; background: var(--elevated); font-size: 15px; color: var(--tertiary); white-space: nowrap; overflow: hidden; }
.cat-search svg { width: 18px; height: 18px; color: var(--secondary); }
.cat-chips { display: flex; gap: 8px; overflow: hidden; }
.cat-chips span { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--elevated); font-size: 14px; }
.cat-chips svg { width: 13px; height: 13px; color: var(--secondary); }
.cat-row { display: flex; align-items: center; justify-content: space-between; margin: 16px 0 12px; }
.cat-row > span:first-child { font-size: 12.5px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: var(--secondary); }
.sort { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--elevated); font-size: 13.5px; }
.sort svg { width: 15px; height: 15px; color: var(--secondary); }
.cat-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 14px; }
.book-cell { display: flex; flex-direction: column; min-width: 0; }
.cover { position: relative; aspect-ratio: 2 / 3; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 0 9% 0 15%; border-radius: 2px 5px 5px 2px; color: #F1E3BD; text-align: center; box-shadow: 0 1px 2px rgba(27, 26, 24, .1), 0 8px 18px rgba(27, 26, 24, .11); }
.cover::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8.5%; background: rgba(0, 0, 0, .18); border-right: .5px solid rgba(255, 255, 255, .16); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(0, 0, 0, .22) 0%, rgba(255, 255, 255, .18) 2.5%, rgba(0, 0, 0, .1) 5%, transparent 10%); pointer-events: none; }
.cover b { font-family: var(--serif); font-weight: 700; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; }
.cover small { font-size: 7.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(241, 227, 189, .78); }
.cover .dia { width: 4px; height: 4px; background: currentColor; transform: rotate(45deg); }
.cover .rule { position: absolute; left: 25%; width: 56%; height: 1px; background: currentColor; opacity: .6; }
.cover .rule.t { top: 8%; }
.cover .rule.b { bottom: 8%; }
.badge { position: absolute; right: 6px; bottom: 6px; z-index: 1; width: 26px; height: 26px; border-radius: 13px; display: grid; place-items: center; }
.badge svg { width: 14px; height: 14px; }
.badge.get { background: #fff; color: var(--accent); box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.badge.in { background: var(--accent); color: #fff; }
.bt { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ba { font-size: 12px; line-height: 15px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lib-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }

/* ---------- Formats ---------- */

.fm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fm-copy { display: grid; gap: 18px; }
.fm { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.fm li { display: grid; place-items: center; aspect-ratio: 5 / 4; border-radius: 20px; rotate: var(--r); font: 800 clamp(20px, 2.6vw, 36px)/1 var(--display); letter-spacing: -.03em; }

/* ---------- Reading ---------- */

.rd-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.th { padding: 12px; border-radius: 24px; overflow: hidden; }
.th-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
.th-tabs label { display: grid; place-items: center; min-height: 40px; border-radius: 12px; border: 2px solid var(--ink); font-weight: 700; font-size: 14px; cursor: pointer; background: var(--white); }
#th-light:checked ~ .th-tabs .th-light, #th-sepia:checked ~ .th-tabs .th-sepia, #th-dark:checked ~ .th-tabs .th-dark, #th-black:checked ~ .th-tabs .th-black { background: var(--ink); color: var(--white); }
#th-light:focus-visible ~ .th-tabs .th-light, #th-sepia:focus-visible ~ .th-tabs .th-sepia, #th-dark:focus-visible ~ .th-tabs .th-dark, #th-black:focus-visible ~ .th-tabs .th-black { outline: 3px solid #2F7DF6; outline-offset: 2px; }
.th-page { padding: 26px 24px 18px; border-radius: 14px; font: 400 clamp(17px, 1.5vw, 21px)/1.5 var(--serif); background: #FBFAF7; color: #1B1A18; transition: background-color .25s, color .25s; }
#th-sepia:checked ~ .th-page { background: #F3EAD7; color: #3A2E1F; }
#th-dark:checked ~ .th-page { background: #1C1C1E; color: #E4DFD5; }
#th-black:checked ~ .th-page { background: #000; color: #CEC9BF; }
.th-foot { display: flex; justify-content: space-between; margin-top: 18px; font: 12.5px/1 var(--ui); opacity: .6; }
.rd-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.rd-list li { display: flex; gap: 12px; }
.rd-list span:last-child { display: grid; gap: 2px; align-content: start; min-width: 0; }
.rd-list b { font-size: 16.5px; font-weight: 800; line-height: 1.25; }
.rd-list small { font-size: 14.5px; line-height: 1.4; }
.map { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; padding: clamp(18px, 2.6vw, 30px); border-radius: 24px; }
.map h3 { font: 800 clamp(20px, 2vw, 26px)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.map p { font-size: 16px; line-height: 1.45; }
.map-line { position: relative; height: 48px; }
.ml { position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--ink); }
.tick { position: absolute; top: 50%; width: 2px; height: 14px; margin-top: -7px; background: var(--ink); }
.dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -20px 0 0 -6px; border-radius: 50%; }
.d-b { background: var(--red); }
.d-n { background: #5B6BE0; }
.thumb { position: absolute; top: 50%; left: 40%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); box-shadow: 2px 2px 0 var(--ink); }

/* ---------- Words and notes ---------- */

.keep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.k { display: flex; flex-direction: column; gap: 22px; padding: clamp(18px, 2.6vw, 32px); border-radius: 26px; }
.k h3 { font: 800 clamp(20px, 2vw, 26px)/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.k p { font-size: 16px; line-height: 1.45; }
.vocab { display: grid; gap: 12px; margin-top: auto; font-family: var(--ui); color: var(--text); }
.rv-top { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; color: var(--secondary); }
.rv-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--elevated); overflow: hidden; }
.rv-bar i { display: block; width: 25%; height: 100%; border-radius: 3px; background: var(--accent); }
.flipper { display: grid; cursor: pointer; perspective: 1200px; }
.side { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 216px; padding: 22px 20px; border: 3px solid var(--ink); border-radius: 22px; background: #FBFAF7; text-align: center; -webkit-backface-visibility: hidden; backface-visibility: hidden; transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.back { transform: rotateY(180deg); background: var(--sun); }
#flip:checked ~ .flipper .front { transform: rotateY(-180deg); }
#flip:checked ~ .flipper .back { transform: none; }
#flip:focus-visible ~ .flipper .side { outline: 3px solid #2F7DF6; outline-offset: 2px; }
.word { font: 600 clamp(28px, 3vw, 36px)/1.1 var(--serif); }
.ipa { font-size: 15px; color: var(--tertiary); }
.ex { font: italic 400 16px/24px var(--serif); color: var(--secondary); }
.ex mark { padding: 0 2px; border-radius: 3px; background: var(--accent-soft); color: var(--text); font-style: normal; }
.side small { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent); }
.tr { font: 600 24px/1.2 var(--serif); }
.also { font-size: 14px; }
.grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.grades span { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 54px; border-radius: 16px; background: #FBFAF7; border: 2px solid var(--ink); }
.grades b { font-size: 14.5px; font-weight: 600; }
.grades small { margin-top: 1px; font-size: 11.5px; color: var(--secondary); }
.nt { position: relative; margin-top: auto; padding-right: clamp(0px, 8vw, 110px); padding-bottom: 8px; font-family: var(--ui); color: var(--text); }
.notes-list { border-radius: 18px; border: 3px solid var(--ink); background: var(--surface); }
.notes-list > div { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; padding: 14px 16px; }
.notes-list > .nl-head { padding: 10px 10px 2px; }
.notes-list > div + div + div { border-top: 1px solid var(--sep); }
.k p.nl-quote { padding-left: 12px; border-left: 3px solid var(--accent); font: 400 15px/22px var(--serif); color: var(--secondary); }
.k p.nl-text { font-size: 15px; line-height: 21px; }
.nl-meta { font-size: 12px; color: var(--tertiary); }
.nl-ai { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.nl-ai svg { width: 16px; height: 16px; }
.qc { position: absolute; right: -6px; bottom: -6px; display: flex; flex-direction: column; gap: 4px; width: clamp(150px, 16vw, 200px); aspect-ratio: 4 / 5; padding: 16px; rotate: 3deg; border: 3px solid var(--ink); border-radius: 14px; background: var(--white); box-shadow: 5px 5px 0 var(--ink); }
.k .qc p { flex: 1; font: 400 clamp(13px, 1.1vw, 15px)/1.4 var(--serif); }
.qc small { font-size: 11px; line-height: 1.25; color: var(--secondary); }
.qc .g { width: 34px; margin-top: 6px; }

/* ---------- Everywhere ---------- */

.ev-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ev article { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: var(--bg); }
.ev h3 { font: 800 clamp(18px, 1.7vw, 22px)/1.2 var(--display); letter-spacing: -.02em; }
.ev p { font-size: 16px; line-height: 1.45; font-weight: 500; }
.vis { display: flex; align-items: flex-end; gap: 12px; min-height: 60px; margin-bottom: 8px; }
.vis .ic { width: 34px; height: 34px; }
.dev { display: block; border: 3px solid var(--ink); border-radius: 8px; background: var(--white); }
.phone-d { width: 30px; height: 56px; }
.tablet-d { width: 76px; height: 56px; }
.glyphs span { font: 500 30px/1 var(--serif); }

/* ---------- Plans ---------- */

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: 24px; }
.plan.main { background: var(--ink); color: var(--white); box-shadow: 6px 6px 0 var(--red); }
.plan h3 { font: 800 clamp(22px, 2.2vw, 30px)/1.1 var(--display); letter-spacing: -.025em; }
.pl-line { font-weight: 600; font-size: 16px; }
.pl-price { margin: 10px 0 8px; font-size: 16px; font-weight: 500; }
.pl-price b { font: 800 clamp(26px, 2.8vw, 38px)/1 var(--display); letter-spacing: -.03em; }
.pl-price small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; opacity: .75; }
.plan ul { display: grid; gap: 7px; font-size: 15.5px; line-height: 1.4; }
.plan.main svg.bolt { color: var(--sun); }
.trial { position: absolute; right: 14px; top: -16px; padding: 6px 12px; border-radius: 10px; background: var(--red); color: var(--white); font-weight: 800; font-size: 14px; rotate: 2deg; }
.plan-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 26px; font-size: 14.5px; line-height: 1.4; font-weight: 500; }

/* ---------- Blog ---------- */

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 190px; padding: 22px; border-radius: 22px; background: var(--bg); text-decoration: none; transition: transform .1s, box-shadow .1s; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.tile small { font-weight: 700; font-size: 14.5px; }
.tile b { font: 800 clamp(18px, 1.75vw, 23px)/1.15 var(--display); letter-spacing: -.025em; }

/* ---------- Questions ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side { position: sticky; top: calc(var(--hd) + 24px); display: grid; gap: 20px; }
.faq-side .go { margin-top: 0; }
.faq-list { display: grid; gap: 14px; }
details { border-radius: 18px; box-shadow: 4px 4px 0 var(--ink); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; font-weight: 800; font-size: 17.5px; line-height: 1.3; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font: 800 22px/1 var(--display); transition: rotate .15s; }
details[open] summary::after { rotate: 45deg; }
details p { padding: 0 20px 18px; font-size: 16px; line-height: 1.5; }
details a { color: var(--red); }

/* ---------- The end ---------- */

.final { background: var(--sun); border-top: 3px solid var(--ink); }
.final-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.final .face { width: clamp(120px, 17vw, 210px); background: var(--white); }
.final h2 { font: 800 clamp(28px, 4.4vw, 60px)/1.05 var(--display); letter-spacing: -.03em; margin-bottom: 12px; text-wrap: balance; }
.final .lead2 { margin-bottom: 20px; }
.site-footer { background: var(--ink); color: #CFCBC2; border-top: 2px solid #3D3D3D; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; padding-block: 30px; font-size: 14.5px; }
.foot-brand b { display: block; color: var(--white); font: 700 16px/1.3 var(--display); }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: var(--white); text-decoration: underline; }

/* ---------- Narrower windows ---------- */

@media (max-width: 1040px) {
  .chat-minis, .sp-points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chat-minis > :last-child { grid-column: 1 / -1; }
  .plan-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-grid { grid-template-columns: minmax(0, 1fr); }
  .cat-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hero-copy { justify-self: stretch; }
  .chat-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .chat-side { justify-self: stretch; }
  .sec-head, .fm-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .faq-side { position: static; }
  .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .map { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --hd: 58px; --dock-h: 66px; }
  .lang { margin-left: auto; }
  .hero-in { padding-top: 22px; gap: 30px; }
  .hero-copy { gap: 14px; }
  .meta { display: none; }
  h1 { font-size: clamp(29px, 8.4vw, 44px); }
  .hero-stores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-stores .store { padding: 0 10px; justify-content: center; min-height: 54px; box-shadow: 3px 3px 0 var(--ink); }
  .hero-stores .store b { font-size: 15px; }
  .phone { box-shadow: 8px 8px 0 var(--ink); }
  .ticker { font-size: 16px; padding: 12px 0; }
  .dk { grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; top: calc(var(--hd) + 8px + var(--i) * 8px); min-height: 0; padding: 18px; border-radius: 22px; }
  .dk p { font-size: 15.5px; line-height: 1.42; }
  .dk h3 { margin-bottom: 8px; }
  .sp-head { display: grid; }
  .sp-intro, .sp-claudy { display: none; }
  .sp-pin { padding-inline: 12px; }
  .sp-stage { display: flex; flex-direction: column-reverse; gap: 14px; padding-block: 10px; }
  .sp-win { flex: none; height: 420px; max-width: none; justify-self: stretch; box-shadow: 5px 5px 0 var(--book); }
  .sp-left { flex: none; }
  .sp-chat { gap: 8px; }
  .sp-chat .bubble { font-size: 14px; padding: 6px 12px; }
  .ans { padding: 10px 14px; font-size: 15.5px; }
  .sp-line span { font-size: 12.5px; }
  .lib-points, .keep-grid, .plans, .plan-notes, .rd-list { grid-template-columns: minmax(0, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; }
  .extra { display: none; }
  /* A row you swipe instead of a long stack. */
  .tiles, .chat-minis, .ev-row { display: flex; gap: 14px; padding-bottom: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .tile { flex: 0 0 76%; scroll-snap-align: start; }
  .mini-mock, .ev article { flex: 0 0 86%; scroll-snap-align: start; }
  .chat-minis > :last-child { grid-column: auto; }
  .final-in { grid-template-columns: minmax(0, 1fr); }
  .final .stores { display: none; }
  .site-footer { padding-bottom: 66px; }
  .nt { padding-right: 0; padding-bottom: 190px; }
  .qc { right: 4px; bottom: 0; }
}
@media (max-width: 480px) { .sp-points { grid-template-columns: minmax(0, 1fr); } }
@media (max-height: 640px) { .sp-claudy { display: none; } }

/* A stuck card taller than the room would never show its end, so low windows simply stack the cards. */
@media (max-width: 860px) and (max-height: 780px), (max-height: 560px) { .dk { position: static; } }

/* ---------- Motion ----------
   With "reduce motion", or in a browser without scroll-driven animations, everything is simply in place. */

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) {
  .g--live .g-eye { animation: g-blink 5.2s infinite; }
  .g--wow.g--live .g-brows { animation: g-brows-wow 3.2s cubic-bezier(.3, 1.6, .5, 1) infinite; }
  .g--wow.g--live .g-mouth { animation: g-mouth-wow 3.2s cubic-bezier(.3, 1.6, .5, 1) infinite; }
  .g--laugh.g--live { animation: g-bob .5s ease-in-out infinite alternate; }
  .ticker > div { animation: b-run 80s linear infinite; }

  /* The phone plays by itself, a word every 5 seconds, until the reader taps one. */
  .w, .w::before, .w::after, .tap, .scene { animation: 15s linear calc(var(--k) * 5s - 1s) infinite both; }
  .w { animation-name: d-sel; }
  .w::before, .w::after { animation-name: d-handle; }
  .tap { animation-name: d-tap; }
  .scene { animation-name: d-scene; }
  .vh:checked ~ .scene { animation: none; opacity: 0; transform: translateY(10px); }
  .vh:checked ~ .pg .w, .vh:checked ~ .pg .w::before, .vh:checked ~ .pg .w::after, .vh:checked ~ .pg .tap { animation: none; }

  @supports (animation-timeline: view()) {
    .progress i { animation: bar linear both; animation-timeline: scroll(root); }
    .brand .g-mouth { animation: logo-read linear both; animation-timeline: scroll(root); }
    .dock { animation: cta-in linear both; animation-timeline: scroll(root); animation-range: 55vh 75vh; }

    /* Pinned only where the window has room for it. */
    @media (min-height: 560px) {
      .sp-pin { height: 260svh; view-timeline: --spoil block; }
      .sp-stage { position: sticky; top: var(--hd); height: calc(100svh - var(--hd) - var(--dock-h)); animation: sp-p linear both; animation-timeline: --spoil; animation-range: contain 0% contain 100%; }
      .sp-win { height: min(560px, calc(100svh - var(--hd) - 42px)); }
      .ans { visibility: visible; opacity: 0; animation: ans linear both; animation-timeline: --spoil; }
      .a0 { animation-name: ans-first; animation-range: contain 0% contain 16.5%; }
      .a1 { animation-range: contain 16.5% contain 54.2%; }
      .a2 { animation-range: contain 54.2% contain 75%; }
      .a3 { animation-range: contain 75% contain 95.8%; }
      .a4 { animation-name: ans-last; animation-range: contain 95.8% contain 100%; }
      /* Claudy's brows go up when the name comes past the line. */
      .sp-face .g-brows { animation: g-up linear both; animation-timeline: --spoil; animation-range: contain 50% contain 68%; }
      .sp-face .g-mouth { animation: g-oh linear both; animation-timeline: --spoil; animation-range: contain 50% contain 68%; }
    }
    @media (min-height: 560px) and (max-width: 860px) { .sp-win { flex: 1; min-height: 0; height: auto; } }

    .land { animation: b-land linear both; animation-timeline: view(); animation-range: entry calc(12% + var(--i, 0) * 3%) cover calc(24% + var(--i, 0) * 1.5%); }
    .book-cell { animation: b-drop linear both; animation-timeline: view(); animation-range: entry calc(8% + var(--i) * 3%) cover calc(20% + var(--i) * 1.5%); }
    .answer p { animation: a-line linear both; animation-timeline: view(); animation-range: entry 40% cover 24%; }
    .thumb { animation: m-thumb linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
.vh:checked ~ .scene { opacity: 0; transform: translateY(10px); }
.vh:checked ~ .pg .w { background-size: 0% 100%; }
.vh:checked ~ .pg .w::before, .vh:checked ~ .pg .w::after { opacity: 0; }
#w1:checked ~ .s1, #w2:checked ~ .s2, #w3:checked ~ .s3 { opacity: 1; transform: none; }
#w1:checked ~ .pg .w1, #w2:checked ~ .pg .w2, #w3:checked ~ .pg .w3 { background-size: 100% 100%; }
#w1:checked ~ .pg .w1::before, #w1:checked ~ .pg .w1::after, #w2:checked ~ .pg .w2::before, #w2:checked ~ .pg .w2::after, #w3:checked ~ .pg .w3::before, #w3:checked ~ .pg .w3::after { opacity: 1; }
#w1:focus-visible ~ .pg .w1, #w2:focus-visible ~ .pg .w2, #w3:focus-visible ~ .pg .w3 { outline: 3px solid #2F7DF6; outline-offset: 2px; }

@keyframes g-blink { 0%, 46%, 50%, 100% { transform: none; } 48% { transform: scaleY(.08); } }
@keyframes g-brows-wow { 0%, 30% { transform: none; } 42%, 88% { transform: translateY(-4px); } 100% { transform: none; } }
@keyframes g-mouth-wow { 0%, 30% { transform: none; } 42%, 88% { transform: scale(.48, 1.7); } 100% { transform: none; } }
@keyframes g-bob { to { transform: translateY(-3%) rotate(-2deg); } }
@keyframes g-up { 0%, 100% { transform: none; } 20%, 70% { transform: translateY(-5px); } }
@keyframes g-oh { 0%, 100% { transform: none; } 20%, 70% { transform: scale(.48, 1.7); } }
@keyframes b-run { to { transform: translateX(-50%); } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes logo-read { 0% { transform: none; } 5% { transform: translateX(-22px); } 100% { transform: translateX(22px); } }
@keyframes cta-in { from { opacity: 0; transform: translateY(6px); visibility: hidden; } to { opacity: 1; transform: none; visibility: visible; } }
@keyframes sp-p { from { --p: 27.66%; } to { --p: 78.72%; } }
@keyframes ans { 0% { opacity: 0; transform: translateY(8px); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ans-first { 0%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes ans-last { 0% { opacity: 0; transform: translateY(8px); } 12%, 100% { opacity: 1; transform: none; } }
@keyframes d-scene { 0% { opacity: 0; transform: translateY(14px); } 1.6%, 31% { opacity: 1; transform: none; } 32.2%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes d-sel { 0%, 1% { background-size: 0% 100%; } 3%, 30% { background-size: 100% 100%; } 32%, 100% { background-size: 0% 100%; } }
@keyframes d-handle { 0%, 2% { opacity: 0; } 3%, 30% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes d-tap { 0% { opacity: 0; transform: scale(1.5); } 1% { opacity: 1; transform: scale(1.1); } 4%, 100% { opacity: 0; transform: scale(.7); } }
@keyframes b-land { 0% { opacity: 0; scale: .6; rotate: -10deg; } 60% { opacity: 1; scale: 1.08; } 80% { scale: .97; } 100% { scale: 1; } }
@keyframes b-drop { 0% { opacity: 0; transform: translateY(-34px) rotate(-3deg); } 70% { opacity: 1; transform: translateY(3px); } 100% { transform: none; } }
@keyframes a-line { from { opacity: 0; transform: translateY(10px); } }
@keyframes m-thumb { from { left: 6%; } to { left: 88%; } }
