/* Literata and Inter, subset to Latin + Latvian, served from this host
   (no Google Fonts request, so no visitor IP leaves for a third party).
   Licence: SIL OFL 1.1, see /fonts/OFL-*.txt. */
@font-face { font-family: "Literata"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/literata-400.woff") format("woff"); }
@font-face { font-family: "Literata"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/literata-400i.woff") format("woff"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/literata-500.woff") format("woff"); }
@font-face { font-family: "Literata"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/literata-600.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/inter-400.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/inter-500.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/inter-600.woff") format("woff"); }
html, body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
/* Layout: a school exercise book. One left-aligned reading column; the hero
   is a squared maths sheet with a margin where the mark goes. Light only, by
   choice: the app is light only and the site is its cover. */
:root {
  color-scheme: light;
  --page: #FAF8F3;
  --band: #F1EDE4;
  --sheet: #FFFEFB;
  --grid: #ECE6DA;
  --ink: #2E2A24;
  --body: #4F483E;
  --muted: #6B6054;
  --line: #DDD6C9;
  --line-strong: #C9BFAE;
  --sage: #5E6E4B;
  --sage-soft: #EDF0E6;
  --clay: #B2705C;
  --clay-ink: #8F5340;
  --clay-soft: #F6EBE5;
  --mark-body: #A08B73;
  --mark-dark: #6B6054;
  --mark-ink: #3A332B;

  --serif: "Literata", "Source Serif 4", Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.625rem;
  --step-3: 2.25rem;
  --step-4: clamp(2.25rem, 1.4rem + 3.4vw, 3.6rem);

  --wrap: 1120px;
  --text: 62ch;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  background: var(--page);
  color: var(--body);
  font-family: var(--serif);
  font-size: var(--step-0);
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--clay-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
}

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-head { border-bottom: 1px solid var(--line); background: var(--page); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: auto; }
.brand span { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: 0.005em; }
.site-nav { display: flex; gap: 24px; flex-wrap: wrap; font-family: var(--sans); font-size: 0.9rem; }
.site-nav a { text-decoration: none; color: var(--body); }
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 560px) { .site-nav { gap: 16px; font-size: 0.85rem; } }

/* ---------- Hero ---------- */
.hero .wrap { display: grid; gap: 48px; padding-block: 64px 80px; align-items: start; }
@media (min-width: 940px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; padding-block: 88px 104px; } }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero h1 { font-size: var(--step-4); font-weight: 450; letter-spacing: -0.01em; }
.hero h1 em { font-style: italic; font-weight: 400; }
.lede { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; color: var(--body); }
.soon { display: flex; flex-direction: column; gap: 12px; padding-top: 8px; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 11px;
  padding: 10px 18px 10px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  font-family: var(--sans); color: var(--ink); background: var(--sheet);
}
.store-text { display: flex; flex-direction: column; gap: 2px; }
.store-mark { width: 22px; height: 22px; flex: none; }
span.store .store-mark { color: var(--muted); }
.store small { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.04em; }
.store b { font-size: 0.95rem; font-weight: 600; }
/* A store that is live is a link; "Drīzumā" ones stay plain spans. */
a.store { text-decoration: none; border-color: var(--ink); }
a.store:hover { background: var(--band); }

/* "Atvērt telefonā": a QR for visitors on a computer. Hidden on phones and
   tablets, where the store buttons already work. */
.qr { display: none; font-family: var(--sans); }
@media (hover: hover) and (pointer: fine) and (min-width: 720px) { .qr { display: block; } }
.qr summary {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none;
  font-size: var(--step--1); color: var(--muted); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.qr summary::-webkit-details-marker { display: none; }
.qr summary::after { content: "+"; text-decoration: none; display: inline-block; }
.qr[open] summary::after { content: "–"; }
.qr summary:hover { color: var(--ink); }
.qr-panel { display: flex; align-items: center; gap: 20px; margin-top: 14px; max-width: 30rem; }
.qr-code {
  flex: none; width: 132px; padding: 12px; background: #FFFFFF;
  border: 1px solid var(--line-strong); border-radius: 4px;
}
.qr-svg { display: block; width: 100%; height: auto; }
.qr-panel p { margin: 0; font-size: var(--step--1); line-height: 1.5; color: var(--muted); max-width: 26ch; }
.soon p { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }

/* The squared sheet */
.sheet {
  position: relative;
  background-color: var(--sheet);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  min-width: 0;
}
.sheet::after {
  /* The margin line every Latvian exercise book has. */
  content: ""; position: absolute; top: 0; bottom: 0; right: 72px; width: 1px; background: var(--clay); opacity: 0.55;
}
.sheet-main { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.sheet-margin { display: flex; flex-direction: column; align-items: center; padding-top: 22px; gap: 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  font-family: var(--sans); font-size: 0.8rem; font-weight: 500;
  padding: 6px 10px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--sheet); color: var(--muted); cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--page); background: var(--ink); border-color: var(--ink); }
.task-meta { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.task-no { font-family: var(--serif); font-size: var(--step-3); line-height: 1; color: var(--ink); font-weight: 450; font-variant-numeric: lining-nums; }
.task-topic { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
.task-q { font-size: var(--step-2); line-height: 1.3; color: var(--ink); max-width: 24ch; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .options { grid-template-columns: minmax(0, 1fr); } }
.opt {
  font-family: var(--serif); font-size: var(--step-1); text-align: left;
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 4px;
  background: var(--sheet); color: var(--ink); cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt:hover:not([disabled]) { border-color: var(--ink); }
.opt.is-right { border-color: var(--sage); background: var(--sage-soft); color: var(--sage); }
.opt.is-wrong { border-color: var(--clay); background: var(--clay-soft); color: var(--clay-ink); text-decoration: line-through; text-decoration-thickness: 1px; }
.opt[disabled] { cursor: default; }
.feedback { min-height: 3.2em; font-size: var(--step-0); line-height: 1.5; color: var(--body); max-width: 46ch; }
.feedback b { font-weight: 600; }
.feedback .ok { color: var(--sage); }
.feedback .again { color: var(--clay-ink); }
.again-btn {
  align-self: flex-start; font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.mark { width: 44px; height: auto; }
.tick { font-family: var(--serif); font-size: 2rem; line-height: 1; height: 2rem; }
.tick.ok { color: var(--sage); }
.tick.again { color: var(--clay); }
.sheet-note { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); padding-top: 12px; }

/* ---------- Sections ---------- */
section { scroll-margin-top: 24px; }
.section .wrap { padding-block: 80px; display: grid; gap: 40px; }
@media (max-width: 480px) {
  .sheet { grid-template-columns: minmax(0, 1fr) 52px; }
  .sheet::after { right: 52px; }
  .sheet-main { padding: 18px 16px 22px; }
  .mark { width: 34px; }
  .steps li { grid-template-columns: 36px minmax(0, 1fr); }
}
.section-head { display: grid; gap: 14px; max-width: var(--text); }
.section h2 { font-size: var(--step-3); font-weight: 450; }
.section-head p { font-size: var(--step-1); line-height: 1.5; }
@media (min-width: 940px) {
  .section .wrap { grid-template-columns: 300px minmax(0, 1fr); gap: 64px; }
  .section-head { align-content: start; }
}

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding-block: 22px; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { font-size: var(--step-2); color: var(--ink); line-height: 1.1; font-variant-numeric: lining-nums; }
.steps h3 { font-size: var(--step-1); margin-bottom: 6px; }
.steps p { max-width: var(--text); }

/* Grades */
.band { background: var(--band); }
.band .section .wrap, .band.section .wrap { border-top: 0; }
.grades { display: grid; gap: 28px; min-width: 0; }
.grade-picker { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); }
.grade-btn {
  font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 2vw, 2.4rem); font-weight: 450;
  background: none; border: 0; border-left: 1px solid var(--line); padding: 14px 0 10px;
  color: var(--muted); cursor: pointer; font-variant-numeric: lining-nums; position: relative;
}
.grade-btn:first-child { border-left: 0; }
.grade-btn:hover { color: var(--ink); }
.grade-btn[aria-pressed="true"] { color: var(--ink); background: var(--sheet); }
.grade-btn[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.grade-caption { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
.grade-cols { display: grid; gap: 28px; }
@media (min-width: 640px) { .grade-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grade-cols h3 { font-size: var(--step-0); font-family: var(--sans); font-weight: 600; color: var(--ink); padding-bottom: 10px; border-bottom: 1px solid var(--line-strong); }
.topic-list { list-style: none; margin: 0; padding: 0; }
.topic-list li { padding-block: 9px; border-bottom: 1px solid var(--line); line-height: 1.4; }
.grade-foot { font-size: var(--step--1); font-family: var(--sans); color: var(--muted); max-width: var(--text); }

/* Subjects */
.subjects { display: grid; min-width: 0; }
.subject { display: grid; gap: 6px 32px; padding-block: 20px; border-top: 1px solid var(--line); }
.subject:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 720px) { .subject { grid-template-columns: 200px minmax(0, 1fr); } }
.subject h3 { font-size: var(--step-1); }
.subject .grades-span { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); margin-top: 4px; }
.subject p { max-width: var(--text); }

/* What it does not do */
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.nots li { padding-block: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.nots li:last-child { border-bottom: 1px solid var(--line); }
.nots b { color: var(--ink); font-weight: 550; font-size: var(--step-1); }
.nots span { max-width: var(--text); }

/* FAQ */
.faq { display: grid; min-width: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 18px; display: flex; justify-content: space-between; gap: 16px;
  font-size: var(--step-1); color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; color: var(--muted); flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 22px; max-width: var(--text); display: grid; gap: 10px; }

/* ---------- Footer ---------- */
.site-foot { border-top: 1px solid var(--line-strong); background: var(--band); }
.site-foot .wrap { padding-block: 48px; display: grid; gap: 32px; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); line-height: 1.6; }
@media (min-width: 820px) { .site-foot .wrap { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h4 { margin: 0 0 8px; font-family: var(--sans); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-foot a { color: var(--body); }
.foot-brand { display: grid; gap: 12px; }
.foot-brand .brand span { font-size: 1.15rem; }
.company { font-style: normal; }

/* ---------- Legal document ---------- */
.doc .wrap { padding-block: 56px 96px; display: grid; gap: 40px; }
@media (min-width: 940px) { .doc .wrap { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; } }
.doc-toc { align-self: start; font-family: var(--sans); font-size: var(--step--1); min-width: 0; }
@media (min-width: 940px) { .doc-toc { position: sticky; top: calc(24px + env(safe-area-inset-top, 0px)); } }
.doc-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.doc-toc li { counter-increment: toc; }
.doc-toc a { display: flex; gap: 8px; text-decoration: none; color: var(--body); padding-block: 5px; border-bottom: 1px solid var(--line); }
.doc-toc a::before { content: counter(toc) "."; color: var(--muted); min-width: 1.6em; font-variant-numeric: tabular-nums; }
.doc-toc a:hover { color: var(--ink); }
.doc-body { display: grid; gap: 40px; min-width: 0; max-width: 70ch; }
.doc-title { display: grid; gap: 12px; padding-bottom: 28px; border-bottom: 1px solid var(--line-strong); }
.doc-title h1 { font-size: var(--step-4); font-weight: 450; }
.doc-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
.doc-facts dt { color: var(--ink); font-weight: 500; }
.doc-facts dd { margin: 0; }
.doc-section { display: grid; gap: 12px; scroll-margin-top: 24px; }
.doc-section h2 { font-size: var(--step-2); font-weight: 450; display: flex; gap: 12px; }
.doc-section h2 .num { color: var(--muted); font-variant-numeric: lining-nums; }
.pending {
  border-left: 2px solid var(--line-strong); padding: 4px 0 4px 16px;
  font-family: var(--sans); font-size: var(--step--1); color: var(--muted); max-width: 60ch;
}
.pending b { color: var(--body); font-weight: 500; }
.back { font-family: var(--sans); font-size: var(--step--1); }

/* Legal text: lists and the small tables in the policy */
.doc-section ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 64ch; }
.doc-section p { max-width: 64ch; }
.doc-section b { color: var(--ink); font-weight: 600; }
.doc-section table { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.5; }
.doc-section th { font-family: var(--sans); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 0 16px 8px 0; border-bottom: 1px solid var(--line-strong); }
.doc-section td { vertical-align: top; padding: 10px 16px 10px 0; border-bottom: 1px solid var(--line); }
.doc-section td:first-child { color: var(--ink); width: 34%; }
@media (max-width: 560px) {
  .doc-section table, .doc-section tbody, .doc-section tr, .doc-section td { display: block; width: auto; }
  .doc-section thead { display: none; }
  .doc-section tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .doc-section td { border: 0; padding: 2px 0; }
  .doc-section td:first-child { width: auto; font-weight: 600; }
}

/* Cookie question: a plain strip at the bottom on the first visit */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--sheet); border-top: 1px solid var(--line-strong); box-shadow: 0 -6px 24px rgba(46, 42, 36, 0.08); padding-bottom: env(safe-area-inset-bottom, 0px); }
.consent-inner { max-width: var(--wrap); margin: 0 auto; padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; font-family: var(--sans); font-size: var(--step--1); color: var(--body); }
.consent-inner p { max-width: 70ch; min-width: 0; flex: 1 1 320px; }
.consent-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent button, .cookie-actions button {
  font-family: var(--sans); font-size: 0.9rem; font-weight: 500; padding: 9px 16px; border-radius: 4px;
  border: 1px solid var(--ink); background: var(--sheet); color: var(--ink); cursor: pointer;
}
.consent button:hover, .cookie-actions button:hover { background: var(--page); }
.consent .btn-ink, .cookie-actions .btn-ink { background: var(--ink); color: var(--page); }
.consent .btn-ink:hover, .cookie-actions .btn-ink:hover { background: var(--body); }
.consent .btn-quiet { border-color: transparent; text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }

/* Cookie settings: a sheet of paper over the page, one table per group */
.cookie-dialog {
  width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0;
  border: 1px solid var(--line-strong); border-radius: 4px; background: var(--page); color: var(--body);
  box-shadow: 0 24px 64px rgba(46, 42, 36, 0.22); overflow: auto;
}
.cookie-dialog::backdrop { background: rgba(46, 42, 36, 0.45); }
.cookie-form { display: grid; gap: 16px; padding: 24px; }
@media (max-width: 560px) { .cookie-form { padding: 20px 16px; } }
.cookie-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.cookie-head h2 { font-size: var(--step-2); font-weight: 450; }
.cookie-x { font-family: var(--sans); font-size: 1.5rem; line-height: 1; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.cookie-x:hover { color: var(--ink); }
.cookie-intro { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); max-width: 70ch; }
.cookie-group { border: 1px solid var(--line); border-radius: 4px; background: var(--sheet); padding: 16px; display: grid; gap: 8px; min-width: 0; }
.cookie-group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cookie-group h3 { font-size: var(--step-1); font-weight: 500; }
.cookie-group > p { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); max-width: 70ch; }
.cookie-always { font-family: var(--sans); font-size: 0.75rem; font-weight: 500; color: var(--sage); background: var(--sage-soft); border-radius: 4px; padding: 4px 8px; white-space: nowrap; }
.cookie-table { overflow-x: auto; margin-top: 4px; }
.cookie-table table { width: 100%; min-width: 520px; border-collapse: collapse; font-family: var(--sans); font-size: 0.82rem; line-height: 1.45; }
.cookie-table th { font-weight: 600; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); text-align: left; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line-strong); }
.cookie-table td { vertical-align: top; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); color: var(--body); }
.cookie-table tr:last-child td { border-bottom: 0; }
.cookie-table td:last-child, .cookie-table th:last-child { white-space: nowrap; padding-right: 0; }
.cookie-table code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.8rem; color: var(--clay-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.cookie-head h2:focus { outline: none; }
@media (max-width: 560px) {
  .cookie-actions button { flex: 1 1 100%; }
  .cookie-table table { min-width: 0; }
  .cookie-table table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; }
  .cookie-table thead { display: none; }
  .cookie-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .cookie-table tr:last-child { border-bottom: 0; }
  .cookie-table td { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; padding: 2px 0; border: 0; white-space: normal !important; }
  .cookie-table td::before { content: attr(data-label); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .cookie-table code { overflow-wrap: anywhere; }
}

/* On/off switch */
.switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { width: 40px; height: 22px; border-radius: 11px; background: var(--line-strong); position: relative; transition: background-color .15s ease; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--sheet); transition: transform .15s ease; }
.switch input:checked + span { background: var(--sage); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- /app/ (QR landing; phones are redirected before this shows) ---------- */
.get-app .wrap { padding-block: 72px 112px; }
.get-app-body { display: flex; flex-direction: column; gap: 22px; max-width: 34rem; }
.get-app h1 { font-size: var(--step-3); }
.get-app-body > p { margin: 0; }
.get-app-note { font-family: var(--sans); font-size: var(--step--1); color: var(--muted); }
