/* Close Reader site. Colours and type follow the app's tokens (apps/mobile/src/ui/tokens.ts). */

:root {
  --bg: #FBFAF7;
  --surface: #FFFFFF;
  --elevated: #F2EFE9;
  --text: #1B1A18;
  --body: #4A4640;
  --secondary: #6F6A62;
  --muted: #8B867D;
  --sep: rgba(27, 26, 24, 0.08);
  --line: rgba(27, 26, 24, 0.14);
  --accent: #C2472A;
  --accent-hover: #A33A21;
  --accent-soft: rgba(194, 71, 42, 0.12);
  --dark-bg: #121211;
  --dark-surface: #1C1C1A;
  --dark-elevated: #262623;
  --dark-text: #EDE9E1;
  --dark-secondary: #A09A90;
  --dark-accent: #F07C5A;
  --serif: Georgia, 'Noto Serif', 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
svg { display: block; flex-shrink: 0; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--surface); color: var(--text); }
.skip:focus { left: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 247, 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--sep);
}
.site-header .container { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: -0.2px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: var(--text); text-decoration: none; font-size: 16px; }
.nav-link:hover { color: var(--accent); }
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--elevated); }
.lang a { display: flex; align-items: center; min-height: 34px; padding: 0 11px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--secondary); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
@media (max-width: 920px) { .nav-link { display: none; } }

/* ---------- Shared type ---------- */

.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; color: var(--accent); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.muted { color: var(--secondary); }
.section { padding-block: var(--section); }
.section-white { background: var(--surface); border-top: 1px solid var(--sep); }
.section-line { border-top: 1px solid var(--sep); }
.stack { display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .h2 { max-width: 640px; }
.section-head p { max-width: 440px; font-size: 18px; color: var(--secondary); text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px; border-radius: 28px;
  background: var(--accent); color: #FFFFFF;
  font-size: 17px; font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn-quiet:hover { background: var(--elevated); color: var(--text); }

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

.hero { padding-block: clamp(32px, 5vw, 56px) var(--section); }
.hero .container { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(50px, 7.4vw, 92px); line-height: 0.98; letter-spacing: -0.028em; }
.lead { max-width: 580px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--body); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.soon { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 16px; color: var(--body); }
.soon::before { content: ""; flex-shrink: 0; margin-top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.meta { font-size: 15px; color: var(--secondary); }
@media (max-width: 960px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* ---------- Phone mockups ---------- */

.stage { position: relative; display: flex; justify-content: center; padding-block: 20px; }
.stage::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 560px; height: 560px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--elevated);
}
.phone {
  position: relative; flex-shrink: 0; width: 360px; height: 740px; padding: 10px;
  border-radius: 56px; background: #1B1A18;
  box-shadow: 0 50px 90px -40px rgba(27, 26, 24, 0.45), 0 18px 36px -18px rgba(27, 26, 24, 0.25);
}
.screen { position: relative; width: 340px; height: 720px; border-radius: 46px; background: var(--bg); overflow: hidden; }
@media (max-width: 400px) { .phone { zoom: 0.86; } .stage::before { width: 420px; height: 420px; } }

.page { height: 637px; overflow: hidden; padding: 70px 26px 0; font-family: var(--serif); font-size: 17px; line-height: 27px; color: var(--text); }
/* Paragraphs on a 27px grid (indent, no gaps), so the page always ends on a whole line. */
.page p { margin: 0; text-indent: 1.4em; }
.page .chapter { margin-bottom: 27px; text-indent: 0; text-align: center; font-size: 13px; letter-spacing: 2px; color: var(--muted); }
.page .chapter + p { text-indent: 0; }
.page-foot { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.sel { position: relative; background: rgba(47, 125, 246, 0.24); border-radius: 2px; }
.sel i { position: absolute; background: #2F7DF6; }
.sel .bar-s { left: -1px; top: 0; bottom: 0; width: 2px; }
.sel .bar-e { right: -1px; top: 0; bottom: 0; width: 2px; }
.sel .knob-s { left: -5px; top: -9px; width: 10px; height: 10px; border-radius: 5px; }
.sel .knob-e { right: -5px; bottom: -9px; width: 10px; height: 10px; border-radius: 5px; }
/* The card sits in the paragraph right after the selection: absolutely positioned with no `top`, it keeps
   its static position, the line below the selection, so it follows the text in any font. */
.pop-float { position: absolute; left: 12px; right: 12px; z-index: 2; display: block; margin-top: 22px; text-indent: 0; }

.pop { background: var(--surface); border-radius: 18px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18); font-family: var(--sans); line-height: 1.3; color: var(--text); }
.pop-body { display: block; padding: 12px 16px; }
.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); }
.pop-actions { display: flex; padding: 0 4px; border-top: 1px solid var(--sep); }
.pop-actions span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0; font-size: 9.2px; letter-spacing: -0.2px; color: var(--secondary); white-space: nowrap; }
.pop-actions .on { color: var(--accent); }
.pop-actions svg { width: 18px; height: 18px; }

/* ---------- Feature cards ---------- */

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1020px) { .cards3 { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }
.card { display: flex; flex-direction: column; gap: 28px; padding: 24px 24px 36px; border-radius: 26px; background: var(--bg); }
.mock { min-height: 280px; padding: 20px; border-radius: 18px; background: var(--elevated); display: flex; align-items: center; }
.mock .pop { flex: 1; padding: 14px 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); }
.card-text { display: flex; flex-direction: column; gap: 12px; padding: 0 12px; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.15; }
.card-text p { font-size: 16.5px; color: var(--secondary); }
@media (max-width: 560px) { .card { padding: 16px 16px 28px; } .mock { min-height: 240px; padding: 16px; } .card-text { padding: 0 6px; } .card h3 { font-size: 25px; } }

.ai-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.ai-label { font-size: 12px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--accent); }
.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); }
.ai-text { font-size: 15px; line-height: 22px; }
.save-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; height: 32px; padding: 0 12px; border-radius: 16px; background: var(--elevated); font-size: 13.5px; font-weight: 500; }
.save-chip svg { width: 14px; height: 14px; stroke: var(--accent); }

/* ---------- No spoilers ---------- */

.dark { background: var(--dark-bg); color: var(--dark-text); }
.dark .eyebrow { color: var(--dark-accent); }
.dark .muted { color: var(--dark-secondary); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.split > .stack > p { font-size: 19px; text-wrap: pretty; }
@media (max-width: 960px) { .split { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

.points { list-style: none; padding: 0; margin-top: 16px; display: flex; flex-direction: column; gap: 24px; }
.points li { display: flex; gap: 18px; }
.pi { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: rgba(240, 124, 90, 0.14); display: grid; place-items: center; }
.pi svg { width: 22px; height: 22px; }
.points strong { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 600; }
.points span { font-size: 16px; line-height: 1.5; color: var(--dark-secondary); }

.boundary { padding: 32px clamp(22px, 3.5vw, 44px) 44px; border-radius: 26px; background: var(--dark-surface); border: 1px solid rgba(237, 233, 225, 0.08); }
.bc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.bc-top .book { font-size: 13px; color: var(--dark-secondary); }
.seg-dark { background: var(--dark-elevated); }
.seg-dark span { padding: 4px 10px; font-size: 12.5px; color: var(--dark-secondary); }
.seg-dark .on { background: #3A3A36; color: var(--dark-text); }
.bc-text { display: flex; flex-direction: column; gap: 10px; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: #E4DFD5; }
.here { display: flex; align-items: center; gap: 12px; margin: 26px 0; }
.here::before, .here::after { content: ""; flex: 1; height: 2px; background: var(--dark-accent); }
.here span { padding: 6px 14px; border-radius: 14px; background: var(--dark-accent); color: var(--dark-bg); font-size: 13px; font-weight: 700; }
.unseen { position: relative; }
.unseen .bc-text { opacity: 0.4; filter: blur(4px); user-select: none; }
.unseen-label { position: absolute; inset: 0; display: grid; place-items: center; }
.unseen-label span { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; border-radius: 22px; background: var(--dark-bg); border: 1px solid rgba(237, 233, 225, 0.12); font-size: 15px; }
.unseen-label svg { width: 18px; height: 18px; }

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

.chat-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 96px; }
@media (max-width: 960px) { .chat-split { grid-template-columns: minmax(0, 1fr); gap: 48px; } .chat-split .stage { order: 2; } }
.screen.chat { display: flex; flex-direction: column; }
.chat-top { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 54px 12px 10px; border-bottom: 1px solid var(--sep); }
.chat-top .back { width: 44px; height: 44px; display: grid; place-items: center; }
.chat-top .back svg { width: 20px; height: 20px; }
.chat-title { flex: 1; text-align: center; }
.chat-title b { display: block; font-size: 16px; font-weight: 600; }
.chat-title small { font-size: 12.5px; color: var(--secondary); }
.chat-top .spacer { width: 44px; }
.scope { flex-shrink: 0; align-self: center; margin: 12px 0 4px; padding: 5px 12px; border-radius: 14px; background: var(--elevated); font-size: 12.5px; color: var(--secondary); }
.msgs { flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 12px 18px; }
.bubble { align-self: flex-end; padding: 10px 14px; border-radius: 18px; background: #ECEAE5; font-size: 15px; }
.answer { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 21px; }
.answer p { margin: 0; }
.composer { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px 12px 26px; }
.chips-row { display: flex; gap: 8px; overflow: hidden; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid rgba(27, 26, 24, 0.12); background: var(--surface); font-size: 13.5px; white-space: nowrap; }
.field { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 16px; border-radius: 24px; background: var(--surface); border: 1px solid rgba(27, 26, 24, 0.12); }
.field > span:first-child { flex: 1; font-size: 15px; color: var(--muted); }
.send { width: 38px; height: 38px; border-radius: 19px; background: var(--accent); display: grid; place-items: center; }
.send svg { width: 18px; height: 18px; }

.recap { display: flex; align-items: center; gap: 16px; padding: 16px 16px 16px 24px; border-radius: 18px; background: var(--surface); box-shadow: 0 1px 0 rgba(27, 26, 24, 0.06), 0 14px 36px -18px rgba(27, 26, 24, 0.22); }
.recap > span { flex: 1; font-size: 17px; line-height: 1.4; }
.recap b { flex-shrink: 0; display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 22px; background: var(--accent-soft); color: var(--accent); font-size: 16px; font-weight: 600; }
.recap-wrap { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; max-width: 560px; }
.recap-wrap p { padding: 0 8px; font-size: 15.5px; line-height: 1.5; color: var(--secondary); }
.quick { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.quick-label { font-size: 14px; font-weight: 600; color: var(--secondary); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; max-width: 600px; }
.chips li { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); font-size: 15.5px; }

/* ---------- Vocabulary & notes ---------- */

.cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 900px) { .cards2 { grid-template-columns: minmax(0, 1fr); } }
.card2 { display: flex; flex-direction: column; gap: 32px; padding: clamp(18px, 3vw, 40px); border-radius: 26px; background: var(--bg); }
.card2 h3 { margin-bottom: 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(25px, 2.4vw, 32px); line-height: 1.15; }
.card2 .muted { max-width: 480px; }
.mock2 { flex: 1; padding: clamp(16px, 2.5vw, 32px); border-radius: 18px; background: var(--elevated); display: flex; align-items: center; justify-content: center; }
.flash { width: 100%; max-width: 440px; padding: 28px clamp(18px, 3vw, 28px) 24px; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.flash .src { font-size: 12.5px; color: var(--secondary); }
.flash .word { font-family: var(--serif); font-size: clamp(30px, 8vw, 38px); line-height: 1.1; overflow-wrap: anywhere; }
.flash .ipa { font-size: 14px; color: var(--secondary); }
.flash hr { width: 48px; height: 1px; margin: 6px 0; border: 0; background: rgba(27, 26, 24, 0.12); }
.flash .tr { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.flash .ex { font-family: var(--serif); font-size: 15px; line-height: 23px; font-style: italic; color: var(--secondary); }
.flash mark, .nl-quote mark { background: var(--accent-soft); color: var(--text); border-radius: 3px; }
.flash mark { font-style: normal; padding: 0 2px; }
.grades { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.grades span { display: grid; place-items: center; height: 44px; border-radius: 12px; background: var(--elevated); font-size: 14px; font-weight: 500; }
@media (max-width: 400px) { .grades { gap: 6px; } .grades span { font-size: 12.5px; } }
.notes-list { width: 100%; max-width: 440px; border-radius: 18px; background: var(--surface); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1); }
.notes-list > div { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px; }
.notes-list > div + div { border-top: 1px solid var(--sep); }
.nl-label { font-size: 11.5px; font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; color: var(--secondary); }
.nl-label.ai { color: var(--accent); }
.nl-quote { font-family: var(--serif); font-size: 16px; line-height: 25px; }
.nl-under { font-family: var(--serif); font-size: 15px; line-height: 23px; color: var(--secondary); }
.nl-under u { text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.nl-text { font-size: 15px; line-height: 22px; }

/* ---------- Details ---------- */

.details-title { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: clamp(32px, 4vw, 56px); }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px; }
@media (max-width: 1020px) { .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
@media (max-width: 560px) { .grid4 { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.feat { display: flex; flex-direction: column; gap: 14px; }
.feat h3 { font-size: 19px; font-weight: 600; }
.feat p { font-size: 16px; color: var(--secondary); }
.vis { min-height: 76px; display: flex; flex-wrap: wrap; align-items: flex-end; align-content: flex-end; gap: 10px; }
.fmt { padding: 5px 9px; border-radius: 8px; border: 1px solid rgba(27, 26, 24, 0.16); font-size: 12px; font-weight: 600; letter-spacing: 0.5px; }
.vis.formats { gap: 6px; }
.theme { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.t-light { background: #FBFAF7; color: #1B1A18; box-shadow: inset 0 0 0 1px rgba(27, 26, 24, 0.16); }
.t-sepia { background: #F3EAD7; color: #3A2E1F; }
.t-dark { background: #1C1C1E; color: #E4DFD5; }
.t-black { background: #000000; color: #CEC9BF; }
.vis.devices { flex-wrap: nowrap; gap: 12px; }
.dev { border: 2px solid var(--text); border-radius: 8px; height: 56px; }
.dev-phone { width: 32px; }
.dev-tablet { width: 76px; }
.vis.devices svg { width: 22px; height: 22px; margin-bottom: 17px; }
.vis.glyphs { gap: 16px; font-family: var(--serif); font-size: 30px; line-height: 1; }

/* ---------- FAQ ---------- */

.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 64px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.faq-item { padding: 28px 0; border-bottom: 1px solid var(--sep); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { padding-bottom: 0; border-bottom: 0; }
.faq-item h3 { margin-bottom: 8px; font-size: 20px; font-weight: 600; }
.faq-item p { color: var(--secondary); }

/* ---------- Closing ---------- */

.final .container { display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.final .mark { width: 104px; height: 104px; }
.final h2 { max-width: 900px; font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 72px); line-height: 1.03; letter-spacing: -0.025em; text-wrap: balance; }
.final p { max-width: 560px; font-size: 19px; color: var(--secondary); text-wrap: pretty; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; padding: 0; }
.stores li { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 180px; min-height: 60px; padding: 8px 22px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-align: left; }
.stores small { font-size: 12.5px; color: var(--secondary); }
.stores b { font-size: 18px; font-weight: 600; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 36px 44px; border-top: 1px solid var(--sep); font-size: 15px; color: var(--secondary); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.foot-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.foot-brand b { font-family: var(--serif); font-size: 18px; color: var(--text); }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 24px; list-style: none; padding: 0; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: var(--secondary); text-decoration: none; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Documents (privacy, terms, contact, deletion) ---------- */

.doc { padding-block: clamp(44px, 7vw, 96px) var(--section); }
.doc .container { max-width: calc(760px + 2 * var(--gutter)); }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 56px); line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.doc .updated { margin-top: 14px; font-size: 15px; color: var(--secondary); }
.doc .intro { margin-top: 28px; font-size: 19px; line-height: 1.6; color: var(--body); }
.doc .box { margin-top: 32px; padding: 24px 28px; border-radius: 18px; background: var(--elevated); }
.doc .box h2 { margin-top: 0; font-family: var(--sans); font-size: 17px; font-weight: 600; }
.doc h2 { margin: 52px 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 600; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; color: #2E2C28; }
.doc p + p { margin-top: 14px; }
.doc ul, .doc ol { margin-top: 12px; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; }
.doc ul + p, .doc ol + p { margin-top: 14px; }
.doc .box li, .doc .box p { font-size: 16px; }
.doc .note { margin-top: 10px; font-size: 14px; color: var(--secondary); }
.table-wrap { margin-top: 16px; overflow-x: auto; }
.doc table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.doc th, .doc td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--sep); text-align: left; vertical-align: top; }
.doc th { font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--secondary); }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
.contact-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--sep); }
.contact-card h2 { margin: 0; font-family: var(--sans); font-size: 17px; font-weight: 600; }
.contact-card p { font-size: 16px; color: var(--secondary); }
.contact-card a.big { font-size: 19px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a.big:hover { text-decoration: underline; }
.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { position: relative; padding-left: 44px; min-height: 32px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 15px; font-weight: 700; }

/* ---------- 404 ---------- */

.notfound { min-height: 60vh; display: flex; align-items: center; }
.notfound .container { display: flex; flex-direction: column; gap: 20px; }
.notfound h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 6vw, 64px); line-height: 1.05; }
