/* Kira landing and privacy pages: the app's "receipt paper" look (docs/reference/design.md). The landing never references
   the app's folder (FE product-layout), so the tokens it needs are COPIED here from the app's token sheet named in design.md
   ("Values:"); change both together.
   Colour in three layers, all in this block and the dark one below, and nowhere else in the file:
   1 theme (--bg desk, --surface slip, --text ink, --muted, --border, --border-strong, --accent, --focus, --shadow-color),
   2 people (--person-1..3, the discs of the example split), 3 brand (--brand-*: the mark's own colours, never text).
   Light and dark follow the phone or computer setting (the pages carry no script, so there is no in-page switch). */
@font-face {
  font-family: 'Kira Sans';
  src: url('assets/fonts/kira-sans.woff2?v=3f3b21ce') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  /* 1 theme */
  --bg: #f4eee2;
  --surface: #fffcf6;
  --text: #23201c;
  --muted: #665e53;
  --border: #ddd3c3;
  --border-strong: #857b6c;
  --accent: #b83a20;
  --on-accent: #fffcf6;
  --accent-soft: #fae3d9;
  --chip-bg: #f7e9bf;
  --chip-text: #5a4300;
  --focus: #23201c;
  --shadow-color: rgba(35, 32, 28, 0.12);
  /* 2 people (the same order as the app: ochre, slate, blue) */
  --person-1: #7a5c00;
  --person-2: #455a64;
  --person-3: #1e4fc2;
  /* 3 brand */
  --brand-ink: #23201c;
  --brand-paper: #fbf5e9;
  --brand-coral: #e0482c;

  --font: 'Kira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --fs-xs: 0.75rem;
  --fs-s: 0.875rem;
  --fs-m: 1rem;
  --fs-l: 1.25rem;
  --fs-xl: 1.75rem;
  --fs-hero: 2.5rem;
  --fs-display: clamp(2.5rem, 6vw, 4rem); /* the landing headline only: the hero size on a phone, larger on a wide screen */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;
  --sp-16: 64px;
  --radius-s: 8px;
  --radius: 12px;
  --radius-l: 20px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 1px var(--shadow-color), 0 2px 8px var(--shadow-color);
  --shadow-2: 0 12px 32px var(--shadow-color);
  --tear: 12px;
  --tear-depth: 6px;
  --avatar: 36px;
  --avatar-s: 24px;
  --measure: 42rem;
  --page: 72rem;
  --gutter: clamp(var(--sp-4), 4vw, var(--sp-8));
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191714;
    --surface: #24211d;
    --text: #f3ecdf;
    --muted: #b3aa9c;
    --border: #48423a;
    --border-strong: #837a6d;
    --accent: #ff8466;
    --on-accent: #23201c;
    --accent-soft: #40271f;
    --chip-bg: #3a2f08;
    --chip-text: #ffd866;
    --focus: #f3ecdf;
    --shadow-color: rgba(0, 0, 0, 0.45);
    --person-1: #e6c34d;
    --person-2: #b0bec5;
    --person-3: #82a8ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--fs-m);
  line-height: 1.6;
  overflow-wrap: break-word;
}
main { flex: 1; }
a { color: var(--accent); text-underline-offset: 0.2em; }
a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-s); }
h1, h2, h3 { line-height: 1.2; margin: 0; }
h2 { font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-l); font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; inset-inline-start: -999rem; }
.skip:focus { inset-inline-start: var(--gutter); top: var(--sp-2); z-index: 2; background: var(--surface); color: var(--text); padding: var(--sp-1) var(--sp-2); }
.money { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }

/* ---- header and footer ---- */
.site-head { padding-block: var(--sp-4); }
.head-bar, .foot-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: var(--sp-2); color: var(--text); text-decoration: none; }
/* the mark sits in a thin brand-paper ring, as in the app (MARK_RING): the ink tile would vanish on the dark desk */
.brand-mark { border-radius: var(--radius); box-shadow: 0 0 0 2px var(--brand-paper); }
.brand-name { font-size: var(--fs-l); font-weight: 800; letter-spacing: -0.01em; }
.head-actions { display: flex; align-items: center; gap: var(--sp-3); }
.lang-switch { font-size: var(--fs-s); font-weight: 600; color: var(--text); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.stamp { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--chip-bg); color: var(--chip-text); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); }
.site-foot { margin-block-start: var(--sp-16); padding-block: var(--sp-8); border-block-start: 1px dashed var(--border-strong); }
.foot-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); font-size: var(--fs-s); color: var(--muted); }
.foot-nav a { color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.foot-nav span { display: inline-flex; align-items: center; }
.foot-legal { flex-basis: 100%; font-size: var(--fs-xs); color: var(--muted); }

/* ---- hero: copy beside the receipt slip from 900 px, stacked on a phone ---- */
.hero { padding-block: var(--sp-8) var(--sp-12); }
.hero-grid { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--sp-16); } }
.eyebrow { font-size: var(--fs-s); font-weight: 700; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; }
.hero h1 { font-size: var(--fs-display); font-weight: 800; letter-spacing: -0.02em; margin-block: var(--sp-3) var(--sp-5); }
.lede { font-size: var(--fs-l); color: var(--muted); max-width: var(--measure); line-height: 1.55; }
.chips { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.chips li { font-size: var(--fs-s); font-weight: 600; padding: var(--sp-1) var(--sp-3); border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: var(--surface); }
.langs { margin-block-start: var(--sp-4); font-size: var(--fs-s); color: var(--muted); }
.soon-note { margin-block-start: var(--sp-5); font-weight: 700; }

/* the receipt slip: paper on the desk, a torn top edge (two paper-coloured gradients, no image), dashed rules, tabular figures */
.slip {
  position: relative;
  margin: var(--tear-depth) 0 0;
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  border-radius: 0 0 var(--radius) var(--radius);
  max-width: 26rem;
  width: 100%;
  justify-self: center;
}
.slip::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: calc(-1 * var(--tear-depth));
  height: var(--tear-depth);
  background:
    linear-gradient(135deg, var(--surface) 50%, transparent 50%) 0 0 / var(--tear) var(--tear-depth) repeat-x,
    linear-gradient(225deg, var(--surface) 50%, transparent 50%) 0 0 / var(--tear) var(--tear-depth) repeat-x;
}
.slip-title { font-weight: 800; font-size: var(--fs-l); padding-block-end: var(--sp-3); border-block-end: 2px dashed var(--border); }
.slip-items, .slip-people { list-style: none; margin: 0; padding: 0; }
.slip-items li { display: flex; align-items: center; gap: var(--sp-2); padding-block: var(--sp-2); }
.slip-items li.muted { color: var(--muted); }
.dots { flex: 1; border-block-end: 2px dotted var(--border); min-width: var(--sp-4); }
.disc, .disc-space { flex: none; width: var(--avatar-s); height: var(--avatar-s); }
.disc { display: inline-grid; place-items: center; border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: 800; color: var(--surface); }
.discs { display: inline-flex; flex: none; }
.discs .disc { box-shadow: 0 0 0 2px var(--surface); }
.discs .disc + .disc { margin-inline-start: calc(-1 * var(--sp-1)); }
.p1 { background: var(--person-1); }
.p2 { background: var(--person-2); }
.p3 { background: var(--person-3); }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; padding-block: var(--sp-3); border-block: 2px dashed var(--border); font-weight: 800; }
.slip-total .money { font-size: var(--fs-xl); }
.slip-each { margin-block: var(--sp-4) var(--sp-2); font-size: var(--fs-s); color: var(--muted); font-weight: 600; }
.slip-people li { display: flex; align-items: center; gap: var(--sp-3); padding-block: var(--sp-2); }
.slip-people li .disc { width: var(--avatar); height: var(--avatar); font-size: var(--fs-s); }
.slip-people li span:nth-child(2) { flex: 1; font-weight: 600; }
.slip-people .money { font-size: var(--fs-l); }

/* ---- sections ---- */
.section { padding-block: var(--sp-12); }
.section h2 { margin-block-end: var(--sp-6); }
.steps, .features { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-1); padding: var(--sp-5); }
.card h3 { margin-block-end: var(--sp-2); }
.card p { color: var(--muted); }
.step-no { display: inline-grid; place-items: center; width: var(--avatar); height: var(--avatar); border-radius: var(--radius-pill); background: var(--accent); color: var(--on-accent); font-weight: 800; margin-block-end: var(--sp-3); }
.two-up { display: grid; gap: var(--sp-4); }
@media (min-width: 900px) { .two-up { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.note { padding: var(--sp-6); border: 2px dashed var(--border-strong); border-radius: var(--radius); }
.note h2 { font-size: var(--fs-l); margin-block-end: var(--sp-3); }
.note p + p { margin-block-start: var(--sp-3); }
.note a { font-weight: 700; }

/* ---- the privacy policy: one readable column on a slip ---- */
.doc { max-width: var(--measure); margin: var(--sp-6) auto 0; padding: var(--sp-8) var(--gutter); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.doc h1 { font-size: var(--fs-xl); font-weight: 800; }
.doc .updated { margin-block: var(--sp-2) var(--sp-5); font-size: var(--fs-s); color: var(--muted); }
.doc h2 { font-size: var(--fs-l); margin-block: var(--sp-8) var(--sp-3); padding-block-start: var(--sp-5); border-block-start: 2px dashed var(--border); }
.doc p + p, .doc ul + p, .doc p + ul { margin-block-start: var(--sp-3); }
.doc ul { padding-inline-start: var(--sp-6); margin: var(--sp-3) 0 0; }
.doc li + li { margin-block-start: var(--sp-2); }
.doc .lead { font-weight: 700; }
.doc-langs { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
@media (max-width: 480px) { .doc { margin-inline: var(--sp-2); padding-inline: var(--sp-4); } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .disc, .step-no { forced-color-adjust: none; } }
