/* Whisper site: one stylesheet for every page (versioned file name: CloudFront caches /assets for a day).
   Design system "EduPlay" (home page 2026-12, all pages since PR #6). Colours follow the app (plans/landing-cards-colors.md):
   cream #FFF8EF, ink #2E2420, muted #6E615A, accent #C25425 (white text 4.58:1), link #A8431B (5.72:1 on cream),
   night #121528 / #1C2038. Content-type colours (pastel background / dark text, AA measured): story, video, song, practice, words.
   Headings: Quicksand (OFL, self-hosted, latin + vietnamese subsets; licence in assets/fonts/Quicksand-OFL.txt).
   Rules: no JavaScript, nothing sticky or fixed, text >= 4.5:1 (check with the contrast table in docs/SEO_BASELINE.md). */
:root {
  --cream: #fff8ef; --ink: #2e2420; --muted: #6e615a; --accent: #c25425; --link: #a8431b; --line: #e7e1d6;
  --night: #121528; --night-2: #1c2038; --nightink: #e6e4f0; --nightmuted: #a9a8c2; --nightaccent: #9fa8e0;
  --story: #ffd8b8; --story-d: #8a3b12; --video: #cde6f5; --video-d: #1d5f8a; --song: #d5edc9; --song-d: #2f6b2f;
  --practice: #fce5b6; --practice-d: #7a5200; --words: #f3dce8; --words-d: #8a2f5c;
  --r: 20px; --max: 1160px;
  --head: "Quicksand", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img { max-width: 100%; height: auto; display: block; }
.wrap { margin: 0 auto; padding: 0 20px; }
.site-header .wrap { display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .2px; }
.site-nav { position: relative; display: flex; align-items: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; }
.more { margin: 24px 0 0; font-weight: 700; }

@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/fonts/quicksand-vietnamese.v1.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "Quicksand"; font-style: normal; font-weight: 500 700; font-display: swap;
  src: url("/assets/fonts/quicksand-latin.v1.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; }


body {
  margin: 0;
  background: var(--cream); color: var(--ink); font-size: 18px; line-height: 1.6;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
a { color: var(--link); text-underline-offset: 3px; }
.wrap { max-width: var(--max); }
h1, h2, h3, .brand, .btn, summary { font-family: var(--head); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 8px; }

/* Header: white bar, logo left, menu, CTA right (the template's store badges become one CTA: the stores are not open yet) */
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .wrap { min-height: 72px; gap: 8px 20px; flex-wrap: nowrap; }
.brand { color: var(--ink); font-size: 1.3rem; }
.brand picture, .brand img { width: 40px; height: 40px; }
.brand img { background: var(--night); border-radius: 12px; padding: 3px; }
.site-nav { margin-left: auto; gap: 4px; flex-wrap: nowrap; }
.site-nav a { color: var(--ink); font-weight: 600; font-size: 1rem; padding: 10px 14px; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.site-nav a:hover { background: var(--cream); color: var(--ink); text-decoration: none; }
.site-nav a[aria-current="page"] { font-weight: 800; text-decoration: none; color: var(--ink); }
.head-end { display: flex; align-items: center; gap: 8px; }
.site-nav a.lang { border: 1px solid var(--line); border-radius: 999px; padding: 0 14px; min-height: 44px; margin-left: 6px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; }
.site-nav a.lang:hover { background: var(--cream); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.btn:hover { background: var(--link); color: #fff; }
.btn.small { min-height: 48px; padding: 0 20px; font-size: 1rem; border-radius: 12px; }
.btn.soft-btn { background: #f1ebe3; color: var(--ink); }
.btn.soft-btn:hover { background: #e9e1d6; color: var(--ink); }
.btn .ic { font-size: 1.15rem; line-height: 1; }

/* Hero: two columns, three-line heading with the last line in a gradient, text + two buttons + a trust line; scene right */
.hero { position: relative; background: #fff; color: var(--ink); padding: 72px 0 80px; overflow: hidden; }
.hero::before, .page-head::before { content: ""; position: absolute; left: max(20px, calc(50% - 560px)); top: 0; width: 76px; height: 52px; pointer-events: none;
background: linear-gradient(var(--video-d), transparent) 0 0 / 2px 100% no-repeat, linear-gradient(var(--song-d), transparent) 18px 0 / 2px 70% no-repeat,
linear-gradient(var(--practice-d), transparent) 36px 0 / 2px 86% no-repeat, linear-gradient(var(--words-d), transparent) 54px 0 / 2px 56% no-repeat, linear-gradient(var(--story-d), transparent) 72px 0 / 2px 92% no-repeat; opacity: .55; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; margin: 20px 0 22px; color: var(--ink); }
.hero h1 span { display: block; }
.hero h1 .grad { color: var(--link); background: linear-gradient(90deg, var(--link), var(--words-d)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 33em; margin: 0 0 28px; }
.kicker { display: inline-block; background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 6px 14px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .trust-line { margin: 22px 0 0; font-size: .95rem; color: var(--muted); }
.scene { position: relative; margin: 0; justify-self: center; width: min(560px, 100%); }
.scene > img { width: 100%; height: auto; }
.scene .ghost { position: absolute; left: 50%; top: 17%; width: 33%; transform: translateX(-50%); }
.scene .ghost img { width: 100%; height: auto; filter: drop-shadow(0 14px 18px rgba(18,21,40,.22)); }
.scene figcaption { position: absolute; right: 8px; bottom: 4px; background: #fff3c4; color: #5a4300; border-radius: 8px; padding: 2px 10px; font-size: .8rem; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
.scene .ghost { animation: ghost-float 5s ease-in-out infinite; }
  @keyframes ghost-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
}

/* ===== Sections below the hero: follow the EduPlay template (Figma node 35-1377, full page) =====
   Rhythm: dotted panel with one white card of content types -> how it works + phone -> brand banner -> facts row +
library grid (dotted) -> FAQ two columns -> final CTA with art (dotted) -> light footer. No JS anywhere. */
section { padding: 88px 0; }
section h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; font-weight: 700; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 32px; }
.center { text-align: center; }
.center .sub { margin-inline: auto; }
.dots { background: radial-gradient(rgba(46,36,32,.07) 1px, transparent 1.3px) 0 0 / 7px 7px, #f7f0e6; }
.label-art { display: inline-block; background: #fff3c4; color: #5a4300; border-radius: 8px; padding: 2px 10px; font-size: .8rem; font-weight: 700; font-family: system-ui, sans-serif; }
.t-story { --f: var(--story); --d: var(--story-d); } .t-video { --f: var(--video); --d: var(--video-d); } .t-song { --f: var(--song); --d: var(--song-d); }
.t-practice { --f: var(--practice); --d: var(--practice-d); } .t-words { --f: var(--words); --d: var(--words-d); }

/* 1. Content types: one white panel, items in columns (template: three feature cards), last row centred */
.types { padding: 64px 0; }
.panel { background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(46,36,32,.06); padding: 48px 40px 40px; }
.panel > h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.type-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 40px 48px; }
.type-list li { flex: 0 1 calc((100% - 96px) / 3); }
.blob { position: relative; width: 84px; height: 84px; display: grid; place-items: center; font-size: 2.4rem; margin-bottom: 18px; }
.blob::before { content: ""; position: absolute; inset: 6px 0 0 10px; border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; background: var(--f); z-index: 0; }
.blob::after { content: ""; position: absolute; right: -2px; bottom: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--f); }
.blob span { position: relative; }
.type-list h3 { font-size: 1.35rem; font-weight: 700; margin: 0 0 10px; color: var(--d); }
.type-list p { margin: 0; color: var(--muted); font-size: 1rem; }

/* 2. How it works: text + numbered steps + store placeholders left, phone right */
.how { position: relative; overflow: hidden; }
.how::before { content: ""; position: absolute; left: 0; top: 56px; width: 110px; height: 50px; background: linear-gradient(-12deg, transparent 46%, var(--words-d) 47% 49%, transparent 50%), linear-gradient(-12deg, transparent 62%, var(--video-d) 63% 65%, transparent 66%); opacity: .45; }
.how .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.how h2 span { display: block; }
.steps-n { list-style: none; counter-reset: n; margin: 0 0 32px; padding: 0; display: grid; gap: 18px; }
.steps-n li { counter-increment: n; display: flex; align-items: center; gap: 18px; font-size: 1.08rem; font-weight: 600; font-family: var(--head); }
.steps-n li::before { content: counter(n); flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--words-d)); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 150px; min-height: 52px; padding: 6px 18px; border-radius: 10px; background: var(--night); color: #fff; border: 0; opacity: 1; font-size: .8rem; font-weight: 600; line-height: 1.25; }
.store .store-small { font-size: 1.05rem; font-weight: 800; }
.phone-wrap { position: relative; justify-self: center; }
.phone-wrap::before { content: ""; position: absolute; right: -34px; top: -26px; width: 92px; height: 92px; background: linear-gradient(135deg, var(--accent), var(--words-d)); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transform: rotate(14deg); }
.phone { position: relative; width: 300px; max-width: 78vw; aspect-ratio: 9 / 18.5; background: var(--night-2); border-radius: 46px; padding: 12px; box-shadow: 0 30px 60px rgba(18,21,40,.22); }
.screen { position: relative; height: 100%; border-radius: 36px; background: var(--cream); overflow: hidden; padding: 44px 16px 16px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.screen::before { content: ""; position: absolute; left: 50%; top: 10px; width: 96px; height: 24px; border-radius: 14px; background: var(--night-2); transform: translateX(-50%); }
.screen .bar { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; }
.screen .bar img { width: 28px; height: 28px; background: var(--night); border-radius: 8px; padding: 2px; }
.screen .hero-tile { height: 92px; border-radius: 16px; background: linear-gradient(120deg, var(--story), var(--words)); }
.screen .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
.screen .tiles span { height: 70px; border-radius: 14px; background: var(--f); }
.screen .shot-note { margin: 0; text-align: center; font-size: .82rem; font-weight: 700; color: #5a4300; background: #fff3c4; border-radius: 10px; padding: 8px; font-family: system-ui, sans-serif; }

/* 3. Brand banner (template: coloured band, text + white button left, art right) */
.banner { position: relative; overflow: hidden; padding: 72px 0; color: #fff; background: linear-gradient(110deg, var(--accent) 0%, var(--link) 100%); }
.banner .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.banner h2 { color: #fff; }
.banner p { color: #fff; max-width: 32em; margin: 0 0 26px; }
.banner .deco { position: absolute; font-family: var(--head); font-weight: 700; color: rgba(255,255,255,.16); font-size: 3.4rem; line-height: 1; pointer-events: none; }
.btn.white { background: #fff; color: var(--ink); }
.btn.white:hover { background: var(--cream); color: var(--ink); }
.art { position: relative; margin: 0; justify-self: center; width: min(460px, 100%); }
.art > img { width: 100%; height: auto; }
.art .ghost { position: absolute; width: 30%; }
.art .ghost img { width: 100%; height: auto; filter: drop-shadow(0 12px 16px rgba(18,21,40,.25)); }
.art figcaption { position: absolute; right: 6px; bottom: 6px; }
.banner .art .ghost { left: 36%; top: 2%; }

/* 4. Facts row + library (template: stats row, then a carousel of grade cards with tag chips) */
.facts { list-style: none; margin: 8px auto 72px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.facts li { text-align: center; padding: 4px 24px; }
.facts li + li { border-left: 1px solid #d9cfc1; }
.facts span { display: block; color: var(--muted); font-size: .98rem; }
.facts b { display: block; font-family: var(--head); font-size: 1.25rem; font-weight: 700; }
.lib-head { position: relative; }
.lib-head .deco { position: absolute; top: -30px; font-size: 4.2rem; line-height: 1; }
.lib-head .deco.l { left: 0; }  .lib-head .deco.r { right: 0; }
mark { background: var(--video); color: var(--ink); padding: 0 6px; border-radius: 6px; }
.library { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lib-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(46,36,32,.07); display: flex; flex-direction: column; }
.lib-card .cover { aspect-ratio: 16 / 10; display: grid; place-items: center; font-size: 4rem; background: var(--f); }
.lib-card .body { padding: 20px 22px 24px; }
.lib-card h3 { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.lib-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 0; padding: 0; list-style: none; }
.chips li { font-size: .88rem; font-weight: 600; padding: 4px 12px; border-radius: 8px; background: var(--f); color: var(--ink); }
.lib-more { margin: 44px 0 0; text-align: center; }
.lib-more p { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* 5. FAQ: heading left, accordion right with round +/- (details/summary, no JS) */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-wrap h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 0 22px 4px; min-height: 64px; font-family: var(--head); font-weight: 600; font-size: 1.15rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: 0 0 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.5rem; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--words-d)); }
.qa details[open] summary::after { content: "–"; }
.qa details p { margin: 0; padding: 0 56px 22px 40px; color: var(--muted); }

/* 6. Final CTA: art left, text right (template: "Try ... for free") */
.final .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.final h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.final p { color: var(--muted); max-width: 30em; margin: 0 0 26px; }
.final .art .ghost { left: 34%; top: 4%; }

/* 7. Footer: light, brand + three link columns, bottom bar */
.site-footer { background: #fff; color: var(--muted); border-top: 1px solid var(--line); padding: 56px 0 28px; font-size: .98rem; }
.site-footer .foot-top { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 32px; }
.site-footer .brand { color: var(--ink); }
.site-footer .foot-brand p { margin: 12px 0 0; max-width: 26em; }
.site-footer .foot-brand .stores { margin-top: 18px; }
.site-footer h2 { font-family: var(--head); font-size: 1rem; font-weight: 700; color: var(--ink); text-transform: none; letter-spacing: 0; margin: 4px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 36px; color: var(--ink); text-decoration: none; }
.site-footer ul a:hover { color: var(--link); text-decoration: underline; }
.site-footer .foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .92rem; }
.site-footer .foot-bottom ul { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-footer .foot-bottom p { margin: 0; color: var(--muted); align-self: center; }

@media (max-width: 960px) {
.hero .wrap { grid-template-columns: 1fr; gap: 28px; }
.hero { padding: 40px 0 56px; }
.scene { width: min(440px, 100%); }
.type-list li { flex-basis: calc((100% - 48px) / 2); }
.how .wrap, .banner .wrap, .final .wrap, .faq-wrap { grid-template-columns: 1fr; gap: 36px; }
.library { grid-template-columns: repeat(2, 1fr); }
.site-footer .foot-top { grid-template-columns: 1fr 1fr 1fr; }
.site-footer .foot-brand { grid-column: 1 / -1; }
.final .art { order: 2; width: min(380px, 100%); }
.banner .art { width: min(380px, 100%); }
}
@media (max-width: 800px) {
.site-header .wrap { flex-wrap: wrap; padding-top: 8px; }
.site-nav { order: 3; width: 100%; margin: 0; justify-content: space-between; padding-bottom: 6px; overflow-x: auto; }
.head-end { margin-left: auto; }
}
@media (max-width: 640px) { .site-nav a.nav-home { display: none; } }
@media (max-width: 600px) {
   { font-size: 17px; }
section { padding: 60px 0; }
.types { padding: 36px 0; }
.panel { padding: 32px 22px; }
.type-list { gap: 30px; }
.type-list li { flex-basis: 100%; }
.site-nav a { padding: 8px 7px; font-size: .92rem; }
.site-nav a.lang { padding: 0 10px; margin-left: 2px; }
.hero .actions .btn { flex: 1 1 auto; }
.hero::before, .page-head::before, .how::before, .lib-head .deco { display: none; }
.phone-wrap::before { right: -10px; width: 64px; height: 64px; }
.facts { grid-template-columns: 1fr; margin-bottom: 48px; }
.facts li { padding: 14px 0; }
.facts li + li { border-left: 0; border-top: 1px solid #d9cfc1; }
.library { grid-template-columns: 1fr; gap: 20px; }
.lib-card .cover { aspect-ratio: 16 / 7; font-size: 3rem; }
.qa summary { font-size: 1.05rem; }
.qa details p { padding: 0 8px 20px 4px; }
.site-footer .foot-top { grid-template-columns: 1fr 1fr; }
.site-footer .foot-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
   *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.banner :focus-visible { outline-color: #fff; }
.banner .d1 { left: 4%; top: 10%; }  .banner .d2 { left: 46%; bottom: 8%; }  .banner .d3 { right: 6%; top: 14%; }  .banner .d4 { right: 38%; top: 6%; font-size: 2.4rem; }
.site-footer .wrap { display: block; }
.sub.center { margin-inline: auto; }
@media (max-width: 600px) {  .banner .deco { display: none; } }
.lib-card .cover { position: relative; }
.lib-card .cover .label-art { position: absolute; right: 10px; bottom: 10px; font-size: .75rem; }
.site-footer .foot-brand .stores { margin-top: 14px; }
.site-footer .store { min-width: 132px; min-height: 46px; }
@media (max-width: 960px) {  .library { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
@media (max-width: 960px) {  .hero::before { display: none; } }
/* English hero heading: two lines ("One small story a day," / "love and learn."), sized so the first line fits the column */
html:lang(en) .hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
html:lang(en) .hero h1 span:not(.grad) { display: inline; }
.hero h1 span { text-wrap: balance; }
/* Placeholder phone: shorter frame until real screenshots arrive */
.phone { aspect-ratio: auto; }
.screen { height: auto; grid-template-rows: none; padding-bottom: 18px; }
.kicker { white-space: nowrap; }

/* ===== Inner pages (pricing, parents, FAQ, support, delete account, privacy, terms, article, 404) =====
   Same header, footer, fonts, colours and buttons as the home page; only these page parts are new. */
.page-head { position: relative; background: #fff; padding: 56px 0 60px; overflow: hidden; }
.page-head .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; margin: 18px 0 14px; color: var(--ink); text-wrap: balance; }
.page-head .lead { color: var(--muted); font-size: 1.15rem; max-width: 36em; margin: 0; }
.page-head .meta { color: var(--muted); font-size: .98rem; margin: 6px 0 0; }
.page-head .kicker { background: var(--f, var(--cream)); color: var(--d, var(--muted)); border-color: transparent; }
.page-head .blob.big { width: 132px; height: 132px; font-size: 3.8rem; margin: 0 24px 0 0; }
.page-head .blob.big::before { inset: 10px 0 0 14px; }
.page-head .blob.big::after { width: 18px; height: 18px; right: 2px; bottom: 6px; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.crumbs { margin: 0 0 14px; font-size: .95rem; color: var(--muted); }
.crumbs a { color: var(--link); }
.blob { position: relative; width: 84px; height: 84px; display: grid; place-items: center; font-size: 2.4rem; margin-bottom: 18px; }

/* Body of the inner pages: dotted band, white cards */
.body-sec { padding: 56px 0 88px; }
.narrow { max-width: 900px; margin: 0 auto; }
.pcard-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.pcard-grid.three { grid-template-columns: repeat(3, 1fr); }
.pcard { background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(46,36,32,.06); padding: 34px 32px 32px; }
.pcard .blob { width: 72px; height: 72px; font-size: 2rem; margin-bottom: 16px; }
.pcard h2, .pcard h3 { font-size: 1.4rem; line-height: 1.25; font-weight: 700; margin: 0 0 12px; color: var(--d); }
.pcard p { margin: 0; color: var(--muted); font-size: 1rem; }
.pcard p + p { margin-top: 12px; }
.pcard p strong { color: var(--ink); overflow-wrap: anywhere; }
.pcard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: 1rem; }
.pcard li { position: relative; padding-left: 30px; }
.pcard li::before, .ticks li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .72rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--accent), var(--words-d)); }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 940px; margin: 0 auto; align-items: start; }
.plan { display: flex; flex-direction: column; background: #fff; border: 2px solid transparent; border-radius: 24px; box-shadow: 0 10px 30px rgba(46,36,32,.06); padding: 36px 34px 34px; }
.plan.featured { border-color: var(--accent); box-shadow: 0 18px 44px rgba(194,84,37,.16); }
.plan .blob { width: 72px; height: 72px; font-size: 2rem; margin-bottom: 14px; }
.plan h2 { font-size: 1.8rem; line-height: 1.2; font-weight: 700; margin: 0 0 6px; color: var(--d); }
.amount { font-family: var(--head); font-size: 1.4rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.amount.alt { font-size: 1.1rem; font-weight: 600; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; color: var(--muted); font-size: 1rem; }
.ticks li { position: relative; padding-left: 30px; }
.plan .stores { margin-top: auto; padding-top: 28px; }
.know { margin-top: 56px; }
.know h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); text-align: center; margin: 0 0 28px; }
.know ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.know li { background: #fff; border-radius: 18px; box-shadow: 0 8px 24px rgba(46,36,32,.06); padding: 22px 24px 22px 66px; position: relative; color: var(--muted); font-size: 1rem; }
.know li::before { content: "i"; position: absolute; left: 22px; top: 22px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--video-d); background: var(--video); font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1; }

/* FAQ page: the same accordion as on the home page, in one white panel */
.faq-panel { background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(46,36,32,.06); padding: 12px 40px 12px; max-width: 900px; margin: 0 auto; }
.faq-panel .qa details:last-child { border-bottom: 0; }
.faq-panel .qa details p { padding-right: 56px; }

/* Documents: privacy, terms, delete account, article */
.doc { background: #fff; border-radius: 24px; box-shadow: 0 10px 30px rgba(46,36,32,.06); max-width: 900px; margin: 0 auto; padding: 48px 56px 56px; font-size: 1.02rem; line-height: 1.7; }
.doc > :first-child { margin-top: 0; }
.doc h2 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; margin: 40px 0 10px; color: var(--ink); scroll-margin-top: 16px; }
.doc h3 { font-size: 1.15rem; margin: 22px 0 6px; }
.doc p { margin: 0 0 14px; }
.doc ol, .doc ul { padding-left: 24px; margin: 0 0 16px; }
.doc li + li { margin-top: 6px; }
.doc li::marker { color: var(--link); font-weight: 700; }
.doc .meta { color: var(--muted); margin: 0 0 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .96rem; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 12px 10px; }
.doc th { background: var(--cream); font-family: var(--head); }
.doc .table-scroll { overflow-x: auto; }
.note { background: var(--practice); color: var(--ink); border-left: 5px solid var(--practice-d); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
.toc { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 28px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; }
.toc li { break-inside: avoid; padding: 3px 0; }

/* Call-to-action band at the end of a page (same colours as the brand banner on the home page) */
.cta-band { background: linear-gradient(110deg, var(--accent) 0%, var(--link) 100%); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin: 0 0 12px; }
.cta-band p { color: #fff; max-width: 34em; margin: 0 auto 26px; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta-band .stores { justify-content: center; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.cta-band :focus-visible { outline-color: #fff; }

@media (max-width: 960px) {
  .pcard-grid.three { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .plans, .know ul { grid-template-columns: 1fr; max-width: 560px; }
  .page-head .wrap { grid-template-columns: 1fr; }
  .page-head .blob.big { display: none; }
}
@media (max-width: 700px) {
  .pcard-grid { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
}
@media (max-width: 600px) {
  .page-head { padding: 36px 0 40px; }
  .body-sec { padding: 36px 0 60px; }
  .pcard, .plan { padding: 26px 22px 24px; }
  .doc { padding: 30px 22px 36px; border-radius: 20px; }
  .faq-panel { padding: 6px 20px; border-radius: 20px; }
  .faq-panel .qa details p { padding-right: 8px; }
  .cta-band { padding: 48px 0; }
  .cta-band .actions .btn { flex: 1 1 auto; }
  .page-head .actions .btn { flex: 1 1 auto; }
}


/* 404: the message fills the space between header and footer */
.err main { display: flex; flex-direction: column; }
.err .page-head { flex: 1; display: flex; align-items: center; }
.err .page-head .wrap { width: 100%; }

/* very narrow phones (360 px and below): the menu still fits on one row */
@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .site-nav a { padding: 8px 5px; font-size: .88rem; }
  .site-nav a.lang { padding: 0 9px; margin-left: 0; }
}
