/* Tellspend — tellspend.app
   One self-hosted face (Ysabeau Office) is the voice: headlines and what people say.
   The system UI face is the page's body text. The app's own face (SF Pro Rounded where the
   browser has it) is used only inside the app mockups. */

@font-face {
  font-family: "Ysabeau Office";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("fonts/ysabeau-office-latin.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;
}
@font-face {
  font-family: "Ysabeau Office";
  font-style: normal;
  font-weight: 1 1000;
  font-display: swap;
  src: url("fonts/ysabeau-office-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* Local Arial resized to Ysabeau Office's widths and vertical metrics (measured in Chrome, en and ru text
   averaged), so headings barely move when the web font swaps in. Regular for the spoken quotes, bold for headings. */
@font-face {
  font-family: "Ysabeau Fallback";
  font-style: normal;
  font-weight: 1 599;
  src: local("Arial"), local("ArialMT"), local("Arimo"), local("Liberation Sans");
  size-adjust: 93%;
  ascent-override: 112.9%;
  descent-override: 31.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Ysabeau Fallback";
  font-style: normal;
  font-weight: 600 1000;
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arimo Bold"), local("Liberation Sans Bold");
  size-adjust: 89%;
  ascent-override: 118%;
  descent-override: 32.6%;
  line-gap-override: 0%;
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light dark;

  /* Brand: Amber Accent. Ink sits on amber; CTAs are ink; the icon tile is #141414. */
  --amber: #FFB224;
  --on-amber: #111827;
  --tile: #141414;

  --paper: #FFFFFF;
  --mist: #F4F4F5;
  --text: #111827;
  --muted: #4B5563;
  --rule: #E4E4E7;
  --amber-text: #8A5300;

  --hero-bg: var(--amber);
  --hero-text: #111827;
  --bubble-bg: #FFFFFF;
  --bubble-text: #111827;

  --cta-bg: #111827;
  --cta-text: #FFFFFF;

  --band-bg: #141414;
  --band-text: #F4F4F2;
  --band-muted: #B8B8B8;

  --pro-bg: var(--amber);
  --pro-text: #111827;

  --focus: #111827;
  --phone-shadow: 0 1px 2px rgb(17 24 39 / 0.18), 0 24px 48px -16px rgb(61 42 0 / 0.42);
  --frag-edge: 0 0 0 1px rgb(17 24 39 / 0.07);

  --voice: "Ysabeau Office", "Ysabeau Fallback", system-ui, sans-serif;
  --ui: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --app: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: 24px;
  --section: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(0.2, 0, 0, 1);

  /* The app's light palette (app/src/theme.ts), for the mockups. */
  --a-bg: #F9FAFB;
  --a-card: #FFFFFF;
  --a-field: #F3F4F6;
  --a-fill: #E5E7EB;
  --a-sep: #E5E7EB;
  --a-text: #111827;
  --a-text2: #374151;
  --a-muted: #6B7280;
  --a-faint: #9CA3AF;
  --a-ink: #111827;
  --a-on-ink: #FFFFFF;
  --a-warn: #C2410C;
  --a-warn-bg: #FFF1EA;
  --a-income: #047857;
  --a-record: #DC2626;
  --a-record-bg: #FEF2F2;
  --a-record-text: #B91C1C;
  --a-under-sheet: #C9CACD;
  --a-chart-bar: #9CA3AF;
  --a-chart-avg: #6B7280;
  --a-banner: rgb(246 246 246 / 0.94);
  --tint: 15%;
}
@media (max-width: 600px) { :root { --gutter: 16px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141414;
    --mist: #1E1E1E;
    --text: #F2F2F0;
    --muted: #A8A8A8;
    --rule: #2E2E2E;
    --amber-text: #FFB224;
    --hero-bg: #1C1C1C;
    --hero-text: #F2F2F0;
    --bubble-bg: #2B2B2B;
    --bubble-text: #F2F2F0;
    --cta-bg: #FFFFFF;
    --cta-text: #111827;
    --band-bg: #1E1E1E;
    --band-text: #F2F2F0;
    --band-muted: #A8A8A8;
    --focus: #FFB224;
    --phone-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 48px -16px rgb(0 0 0 / 0.7);
    --frag-edge: 0 0 0 1px rgb(255 255 255 / 0.08);

    --a-bg: #000000;
    --a-card: #1C1C1E;
    --a-field: #2C2C2E;
    --a-fill: #3A3A3C;
    --a-sep: rgb(84 84 88 / 0.6);
    --a-text: #FFFFFF;
    --a-text2: #D1D1D6;
    --a-muted: #98989F;
    --a-faint: #636366;
    --a-ink: #FFFFFF;
    --a-on-ink: #111827;
    --a-warn: #FF8C42;
    --a-warn-bg: rgb(255 140 66 / 0.16);
    --a-income: #34D399;
    --a-record-bg: rgb(220 38 38 / 0.2);
    --a-record-text: #FF8A8A;
    --a-under-sheet: #0B0B0C;
    --a-chart-bar: #636366;
    --a-chart-avg: #8E8E93;
    --a-banner: rgb(44 44 46 / 0.94);
    --tint: 20%;
  }
}
:root[data-theme="dark"] {
  --paper: #141414;
  --mist: #1E1E1E;
  --text: #F2F2F0;
  --muted: #A8A8A8;
  --rule: #2E2E2E;
  --amber-text: #FFB224;
  --hero-bg: #1C1C1C;
  --hero-text: #F2F2F0;
  --bubble-bg: #2B2B2B;
  --bubble-text: #F2F2F0;
  --cta-bg: #FFFFFF;
  --cta-text: #111827;
  --band-bg: #1E1E1E;
  --band-text: #F2F2F0;
  --band-muted: #A8A8A8;
  --focus: #FFB224;
  --phone-shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 24px 48px -16px rgb(0 0 0 / 0.7);
  --frag-edge: 0 0 0 1px rgb(255 255 255 / 0.08);
  --a-bg: #000000;
  --a-card: #1C1C1E;
  --a-field: #2C2C2E;
  --a-fill: #3A3A3C;
  --a-sep: rgb(84 84 88 / 0.6);
  --a-text: #FFFFFF;
  --a-text2: #D1D1D6;
  --a-muted: #98989F;
  --a-faint: #636366;
  --a-ink: #FFFFFF;
  --a-on-ink: #111827;
  --a-warn: #FF8C42;
  --a-warn-bg: rgb(255 140 66 / 0.16);
  --a-income: #34D399;
  --a-record-bg: rgb(220 38 38 / 0.2);
  --a-record-text: #FF8A8A;
  --a-under-sheet: #0B0B0C;
  --a-chart-bar: #636366;
  --a-chart-avg: #8E8E93;
  --a-banner: rgb(44 44 46 / 0.94);
  --tint: 20%;
}

/* Sheets sit one level up in dark, as in the app (darkElevated). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .elev { --a-bg: #1C1C1E; --a-card: #2C2C2E; --a-field: #3A3A3C; }
}
:root[data-theme="dark"] .elev { --a-bg: #1C1C1E; --a-card: #2C2C2E; --a-field: #3A3A3C; }

/* Category colours (internal/parse/categories.json), and their dark values (CATEGORY_DARK in theme.ts). */
.cat-groceries { --c: #F97316; }
.cat-eating_out { --c: #3B82F6; }
.cat-home { --c: #B45309; }
.cat-loans { --c: #0F766E; }
.cat-communication { --c: #0EA5E9; }
.cat-subscriptions { --c: #8B5CF6; }
.cat-transport { --c: #EAB308; }
.cat-car { --c: #EF4444; }
.cat-clothing { --c: #10B981; }
.cat-electronics { --c: #F59E0B; }
.cat-health { --c: #EC4899; }
.cat-beauty { --c: #A855F7; }
.cat-entertainment { --c: #F43F5E; }
.cat-travel { --c: #22C55E; }
.cat-kids { --c: #84CC16; }
.cat-pets { --c: #92400E; }
.cat-education { --c: #6366F1; }
.cat-taxes_fees { --c: #06B6D4; }
.cat-gifts { --c: #D946EF; }
.cat-other { --c: #6B7280; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cat-groceries { --c: #FB923C; }
  :root:not([data-theme="light"]) .cat-eating_out { --c: #60A5FA; }
  :root:not([data-theme="light"]) .cat-home { --c: #D97706; }
  :root:not([data-theme="light"]) .cat-loans { --c: #14B8A6; }
  :root:not([data-theme="light"]) .cat-communication { --c: #38BDF8; }
  :root:not([data-theme="light"]) .cat-subscriptions { --c: #A78BFA; }
  :root:not([data-theme="light"]) .cat-transport { --c: #FACC15; }
  :root:not([data-theme="light"]) .cat-car { --c: #F87171; }
  :root:not([data-theme="light"]) .cat-clothing { --c: #34D399; }
  :root:not([data-theme="light"]) .cat-electronics { --c: #FBBF24; }
  :root:not([data-theme="light"]) .cat-health { --c: #F472B6; }
  :root:not([data-theme="light"]) .cat-beauty { --c: #C084FC; }
  :root:not([data-theme="light"]) .cat-entertainment { --c: #FB7185; }
  :root:not([data-theme="light"]) .cat-travel { --c: #4ADE80; }
  :root:not([data-theme="light"]) .cat-kids { --c: #A3E635; }
  :root:not([data-theme="light"]) .cat-pets { --c: #C07A3A; }
  :root:not([data-theme="light"]) .cat-education { --c: #818CF8; }
  :root:not([data-theme="light"]) .cat-taxes_fees { --c: #22D3EE; }
  :root:not([data-theme="light"]) .cat-gifts { --c: #E879F9; }
  :root:not([data-theme="light"]) .cat-other { --c: #8E8E93; }
}
:root[data-theme="dark"] .cat-groceries { --c: #FB923C; }
:root[data-theme="dark"] .cat-eating_out { --c: #60A5FA; }
:root[data-theme="dark"] .cat-home { --c: #D97706; }
:root[data-theme="dark"] .cat-loans { --c: #14B8A6; }
:root[data-theme="dark"] .cat-communication { --c: #38BDF8; }
:root[data-theme="dark"] .cat-subscriptions { --c: #A78BFA; }
:root[data-theme="dark"] .cat-transport { --c: #FACC15; }
:root[data-theme="dark"] .cat-car { --c: #F87171; }
:root[data-theme="dark"] .cat-clothing { --c: #34D399; }
:root[data-theme="dark"] .cat-electronics { --c: #FBBF24; }
:root[data-theme="dark"] .cat-health { --c: #F472B6; }
:root[data-theme="dark"] .cat-beauty { --c: #C084FC; }
:root[data-theme="dark"] .cat-entertainment { --c: #FB7185; }
:root[data-theme="dark"] .cat-travel { --c: #4ADE80; }
:root[data-theme="dark"] .cat-kids { --c: #A3E635; }
:root[data-theme="dark"] .cat-pets { --c: #C07A3A; }
:root[data-theme="dark"] .cat-education { --c: #818CF8; }
:root[data-theme="dark"] .cat-taxes_fees { --c: #22D3EE; }
:root[data-theme="dark"] .cat-gifts { --c: #E879F9; }
:root[data-theme="dark"] .cat-other { --c: #8E8E93; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

h1, h2, h3 {
  font-family: var(--voice);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.5rem); }
h3 { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.005em; }

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: 0.85em; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lede { font-size: 1.1875rem; line-height: 1.5; max-width: 34em; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* Quotes follow the page's language. */
:root { quotes: "\201C" "\201D" "\2018" "\2019"; }
:root:lang(ru) { quotes: "\00AB" "\00BB" "\201E" "\201C"; }
:root:lang(es) { quotes: "\201C" "\201D" "\2018" "\2019"; }
:root:lang(de) { quotes: "\201E" "\201C" "\201A" "\2018"; }
:root:lang(fr) { quotes: "\00AB\00A0" "\00A0\00BB" "\201C" "\201D"; }
:root:lang(it) { quotes: "\201C" "\201D" "\2018" "\2019"; }
:root:lang(pt) { quotes: "\201C" "\201D" "\2018" "\2019"; }
[lang="en"] { quotes: "\201C" "\201D"; }
[lang="ru"] { quotes: "\00AB" "\00BB"; }
[lang="es"], [lang="it"], [lang="pt-BR"] { quotes: "\201C" "\201D"; }
[lang="de"] { quotes: "\201E" "\201C"; }
[lang="fr"] { quotes: "\00AB\00A0" "\00A0\00BB"; }
q::before { content: open-quote; }
q::after { content: close-quote; }

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

.site-top { background: var(--paper); color: var(--text); }
.site-top--hero { background: var(--hero-bg); color: var(--hero-text); }
.site-top--doc { border-bottom: 1px solid var(--rule); }

.top {
  display: flex;
  align-items: center;
  gap: 8px 24px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-right: auto;
  text-decoration: none;
  font-family: var(--voice);
  font-weight: 800;
  font-size: 1.625rem;
  letter-spacing: -0.02em;
  line-height: 1;
}
.brand:hover { text-decoration: none; }
/* The app icon, small: the amber mark on the ink tile. */
.tile {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
  background: var(--tile);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}
.tile svg { width: 66%; height: 66%; fill: var(--amber); }

.nav { display: flex; gap: 2px; }
.nav a, .langs a, .langs span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 11px;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.9375rem;
  text-decoration: none;
  transition-property: background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.nav a:hover, .langs a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 7px; }

.langs { display: flex; align-items: center; gap: 0; margin: 0; padding: 0; list-style: none; }
.langs span[aria-current] { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }

/* Header language menu: seven languages don't fit in a row, so the header shows the current one behind a
   globe and opens the list on tap. A <details>, so it works with no script (the CSP allows none). */
.lang-menu { position: relative; }
.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 11px 9px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 24%, transparent);
  font-weight: 560;
  font-size: 0.9375rem;
  list-style: none;
  cursor: pointer;
  user-select: none;
  transition-property: background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu > summary:hover,
.lang-menu[open] > summary { background: color-mix(in srgb, currentColor 10%, transparent); }
.lang-menu .globe { width: 20px; height: 20px; fill: currentColor; flex: none; }
.lang-menu .chev {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: none;
  transition-property: rotate;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.lang-menu[open] .chev { rotate: 180deg; }
.lang-menu ul {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  min-width: 12.5rem;
  margin: 0;
  padding: 6px;
  list-style: none;
  border-radius: 18px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 0 0 1px rgb(17 24 39 / 0.07), 0 2px 4px rgb(17 24 39 / 0.06), 0 18px 40px -12px rgb(17 24 39 / 0.32);
}
.lang-menu li a,
.lang-menu li span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 12px;
  font-weight: 560;
  font-size: 0.9375rem;
  text-decoration: none;
  transition-property: background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.lang-menu li a:hover { background: var(--mist); }
.lang-menu li span[aria-current] { font-weight: 700; }
.lang-menu li span svg { width: 20px; height: 20px; fill: var(--amber-text); flex: none; }
.lang-menu :focus-visible { outline-offset: -3px; }
.lang-menu > summary:focus-visible { outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .lang-menu[open] ul {
    transition-property: opacity, translate;
    transition-duration: 150ms;
    transition-timing-function: var(--ease);
  }
  @starting-style { .lang-menu[open] ul { opacity: 0; translate: 0 -4px; } }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lang-menu ul { background: #232323; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 18px 40px -12px rgb(0 0 0 / 0.7); }
  :root:not([data-theme="light"]) .lang-menu li a:hover { background: #2E2E2E; }
}
:root[data-theme="dark"] .lang-menu ul { background: #232323; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.1), 0 18px 40px -12px rgb(0 0 0 / 0.7); }
:root[data-theme="dark"] .lang-menu li a:hover { background: #2E2E2E; }

@media (max-width: 1080px) {
  .top .nav { display: none; }
}
@media (max-width: 560px) {
  .nav a, .langs a, .langs span { padding-inline: 8px; }
  .brand { font-size: 1.4375rem; }
  .tile { width: 32px; height: 32px; }
}

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

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(32px, 5vw, 88px);
  padding-block: clamp(16px, 3vw, 40px) clamp(56px, 6vw, 88px);
}

.hero h1 {
  font-size: clamp(2.75rem, 1.6rem + 5vw, 5.75rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.03em;
  max-width: 9.5em;
}

.hero-copy { display: grid; gap: 26px; justify-items: start; }
.hero-copy .say { margin: 14px 0 10px; }
.hero .lede { color: var(--hero-text); max-width: 31em; }

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.points li { display: flex; align-items: baseline; gap: 12px; }
.points li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2.5px solid currentColor;
  transform: translateY(-1px);
}

.cta { display: grid; gap: 16px; justify-items: start; }
.cta-note { font-size: 0.9375rem; font-weight: 560; }
.ui-note { font-size: 0.9375rem; max-width: 30em; opacity: 0.86; }

/* App Store badge: Apple's black badge in the page's language, self-hosted in assets/badges/ and used as is
   (no recolouring, effects or motion). Sized by height: Apple asks for at least 40px on screen and clear space
   of a quarter of the badge's height on every side, which the gaps around it give (16px and more at 52px). */
.store { --store-surface: var(--hero-bg); display: inline-block; border-radius: 10px; text-decoration: none; }
.store img {
  position: relative;
  height: 52px;
  width: auto;
  color: inherit;
  font-weight: 600;
}
/* Shown only if a badge file fails to load: Chrome, Edge and Firefox draw generated content on an image that
   failed to load and never on one that loaded. ::before hides the broken-image box in the section's colour,
   ::after puts the badge's words on a plain button. Safari prints the alt text instead. */
.store img::before,
.store img::after { position: absolute; inset: 0; }
.store img::before { content: ""; z-index: 1; background: var(--store-surface); }
.store img::after {
  content: attr(alt);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.15;
  text-align: center;
}

.hero-phone { justify-self: end; margin: 0; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 48px; }
  .hero-phone { justify-self: center; }
}

/* ---------- Speech bubble: what someone says ---------- */

.say {
  position: relative;
  margin: 0 0 22px;
  padding: 0.5em 0.75em 0.55em;
  border-radius: 0.6em;
  background: var(--bubble-bg);
  color: var(--bubble-text);
  font-family: var(--voice);
  font-weight: 560;
  font-size: clamp(1.5rem, 1.1rem + 1.9vw, 2.5rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  max-width: 17em;
}
/* The tail is cut from the logo's own: leaning left, from the bottom edge. */
.say::after {
  content: "";
  position: absolute;
  left: 0.9em;
  bottom: -0.56em;
  width: 0.78em;
  height: 0.6em;
  background: inherit;
  clip-path: polygon(38% 0, 100% 0, 0 100%);
}
.say--sm { font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.75rem); max-width: none; }
.say--mist { background: var(--mist); }

/* The highlighter: what the app picks out of a sentence. */
.hl {
  --band: 0.9em;
  color: var(--on-amber);
  white-space: nowrap;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-repeat: no-repeat;
  background-size: 100% var(--band);
  background-position: 0 52%;
  border-radius: 0.22em;
  padding: 0 0.14em;
  margin: 0 -0.06em;
}

/* ---------- Phone and app mockups (sizes are iPhone points, scaled by zoom) ---------- */

.phone {
  --z: 0.8;
  zoom: var(--z);
  width: 415px;
  padding: 11px;
  border-radius: 63px;
  background: #141414;
  box-shadow: inset 0 0 0 2px #2C2C2C, var(--phone-shadow);
  flex: none;
}
@media (max-width: 440px) { .phone { --z: 0.72; } }
@media (max-width: 380px) { .phone { --z: 0.68; } }
/* 320–340 px screens: the header packs tighter. */
@media (max-width: 340px) {
  .nav a, .langs a, .langs span { padding-inline: 6px; }
  .top { gap: 8px 12px; }
}
/* A real screenshot dropped into a slot (see design/landing/site-README.md) fills the screen. */
.phone > picture, .phone > img { display: block; width: 393px; height: 852px; border-radius: 52px; overflow: hidden; }
.phone img { width: 100%; height: 100%; object-fit: cover; }

.screen {
  position: relative;
  width: 393px;
  height: 852px;
  overflow: hidden;
  border-radius: 52px;
  background: var(--a-bg);
  color: var(--a-text);
  font-family: var(--app);
  font-size: 14px;
  line-height: 1.25;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  font-variant-numeric: tabular-nums;
}
.island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 124px;
  height: 36px;
  margin-left: -62px;
  border-radius: 18px;
  background: #000;
  z-index: 3;
}
.sbar {
  flex: none;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 30px 0 50px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 2;
  color: var(--a-text);
}
.sbar svg { height: 13px; width: auto; fill: currentColor; }
.sbar span:last-child { display: flex; gap: 6px; align-items: center; }

.i { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* A category icon: the colour at 15% (20% in dark) behind the colour. */
.dot-ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  color: var(--c, #6B7280);
  background: color-mix(in srgb, var(--c, #6B7280) var(--tint), transparent);
}
.dot-ic .i { width: 22px; height: 22px; }

/* A service tile: the brand colour with its monogram (services.json). */
.svc {
  width: 36px;
  height: 36px;
  border-radius: 22.5%;
  display: grid;
  place-items: center;
  flex: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.08);
}

/* Draft sheet (presented over the list) */
.screen--sheet { background: var(--a-under-sheet); }
.sheet {
  flex: 1;
  margin-top: 6px;
  border-radius: 38px 38px 0 0;
  background: var(--a-bg);
  padding: 26px 20px 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.sheet-title { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.heard { color: var(--a-muted); margin-bottom: 12px; font-size: 14px; }
.sheet-list { flex: 1; min-height: 0; overflow: hidden; }
.sheet-actions {
  flex: none;
  display: flex;
  gap: 12px;
  padding: 8px 0 34px;
  background: var(--a-bg);
}
.btn-app {
  flex: 1;
  text-align: center;
  padding: 14px 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  background: var(--a-ink);
  color: var(--a-on-ink);
}
.btn-app--quiet { background: var(--a-fill); color: var(--a-text); }

.card-app {
  background: var(--a-card);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.amount-row { display: flex; align-items: center; gap: 8px; }
.amount-row b { flex: 1; font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.amount-row .ccy {
  min-width: 72px;
  padding: 6px 8px;
  border-radius: 10px;
  background: var(--a-field);
  font-size: 20px;
  font-weight: 600;
  text-align: center;
}
.amount-row .x { width: 34px; display: grid; place-items: center; color: var(--a-faint); }
.amount-row .x .i { width: 18px; height: 18px; }
.cat-row { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.cat-row .lbl { flex: 1; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-row > .i:last-child, .date-row > .i:last-child { width: 22px; height: 22px; color: var(--a-faint); }
.note-app { font-size: 16px; padding: 4px 0; border-bottom: 0.5px solid var(--a-sep); }
.date-row { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--a-text2); font-size: 16px; }
.date-row > .i:first-child { width: 22px; height: 22px; color: var(--a-muted); }
.date-row > span { flex: 1; }
.seg { display: flex; padding: 2px; margin-top: 4px; border-radius: 8px; background: var(--a-field); }
.seg span {
  flex: 1;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--a-faint);
}
.seg .on { background: var(--a-card); color: var(--a-text2); font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }
.pick { display: flex; flex-direction: column; gap: 4px; }
.pick small { color: var(--a-muted); font-size: 13px; }
.chips { display: flex; gap: 6px; padding: 4px 0; flex-wrap: nowrap; }
.chip-app {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--a-field);
  color: var(--a-text2);
  font-size: 14px;
  white-space: nowrap;
}
.chip-app .i { width: 16px; height: 16px; }
/* Chosen things are amber with ink on them, as in the app. */
.chip-app.on { background: var(--amber); color: var(--on-amber); font-weight: 600; }
.hint-app { color: var(--a-muted); font-size: 14px; line-height: 1.3; }

/* Home */
.home-bar { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 2px 8px 0; color: var(--a-text2); }
.home-bar .ib { width: 44px; height: 44px; display: grid; place-items: center; }
.home-bar .ib .i { width: 24px; height: 24px; }
.period { display: flex; align-items: center; gap: 4px; color: var(--a-text); }
.period .i { color: var(--a-muted); }
.period .i.ch { width: 22px; height: 22px; color: var(--a-text2); }
.period b { font-size: 17px; font-weight: 600; padding-inline: 10px 2px; }
.period b + .i { width: 16px; height: 16px; margin-right: 10px; }
.home-head { padding: 8px 20px 4px; }
.total-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.home-head small { display: block; color: var(--a-muted); font-size: 14px; }
.home-head strong { display: block; font-size: 28px; font-weight: 700; margin-top: 2px; letter-spacing: -0.01em; }
.reports-pill { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px 0 12px; border-radius: 18px; background: var(--a-field); color: var(--a-text); font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.reports-pill .i { width: 18px; height: 18px; }
.home-link { display: flex; align-items: center; justify-content: space-between; min-height: 32px; color: var(--a-text2); font-size: 15px; }
.home-link .i { width: 20px; height: 20px; color: var(--a-faint); }
.budget-bar { height: 6px; border-radius: 3px; background: var(--a-field); margin-top: 10px; overflow: hidden; }
.budget-bar i { display: block; height: 100%; border-radius: 3px; background: var(--a-ink); }
.list-app { flex: 1; min-height: 0; overflow: hidden; }
.day { padding: 16px 20px 6px; color: var(--a-muted); font-weight: 600; }
.row-app { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: var(--a-card); }
.row-app .dot-ic .i { width: 20px; height: 20px; }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-text small { display: block; color: var(--a-faint); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-amt { text-align: right; flex: none; }
.row-amt b { display: block; font-size: 16px; font-weight: 600; }
.row-amt small { display: block; color: var(--a-faint); font-size: 12px; margin-top: 2px; }

.composer {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 16px 40px;
  background: var(--a-card);
  border-top: 0.5px solid var(--a-sep);
}
.input-row { display: flex; align-items: center; gap: 10px; }
.plus-app { width: 44px; height: 44px; border-radius: 50%; background: var(--a-field); display: grid; place-items: center; color: var(--a-text); flex: none; }
.plus-app .i { width: 24px; height: 24px; }
.field-app { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 10px 16px; border-radius: 20px; background: var(--a-field); font-size: 16px; color: var(--a-faint); white-space: nowrap; }
.field-app .i { width: 24px; height: 24px; color: var(--a-muted); }
.mic-app { width: 64px; height: 64px; border-radius: 50%; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; flex: none; }
.mic-app .i { width: 28px; height: 28px; }
.mic-app--rec { background: var(--a-record); color: #fff; }
.listening { flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 20px; background: var(--a-record-bg); color: var(--a-record-text); font-size: 16px; }
.listening::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--a-record); flex: none; }
.dim { opacity: 0.5; }

/* Scan: Check N items */
.scan-from { display: flex; align-items: center; gap: 8px; color: var(--a-muted); font-size: 15px; margin: 4px 0 6px; }
.thumb { width: 34px; height: 44px; border-radius: 6px; background: #FFFFFF; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.12); padding: 6px 5px; display: grid; gap: 3px; align-content: start; }
.thumb i { display: block; height: 3px; border-radius: 2px; background: #D1D5DB; }
.thumb i:nth-child(odd) { width: 70%; }
.acct-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.acct-row > span:first-child { color: var(--a-muted); font-size: 15px; }
.pill-app { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 10px 0 14px; border-radius: 18px; background: var(--a-field); color: var(--a-text2); font-size: 15px; font-weight: 500; }
.pill-app .i { width: 18px; height: 18px; }
.warn-note { color: var(--a-warn); font-size: 13px; padding: 4px 0 8px; }
.batch { background: var(--a-card); border-radius: 16px; overflow: hidden; }
.batch-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; }
.batch-head small { color: var(--a-muted); font-size: 13px; }
.batch-head b { font-size: 15px; font-weight: 600; }
.brow { display: flex; align-items: center; min-height: 60px; padding: 8px 12px 8px 8px; gap: 4px; }
.brow + .brow { box-shadow: inset 52px 0.5px 0 0 var(--a-card), inset 0 0.5px 0 0 var(--a-sep); }
.check { width: 44px; height: 44px; display: grid; place-items: center; flex: none; }
.check-on { width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--on-amber); display: grid; place-items: center; }
.check-on .i { width: 16px; height: 16px; }
.check-off { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--a-faint); }
.brow .dot-ic { margin-right: 8px; }
.brow .row-text b { font-size: 16px; }
.brow .row-text small { color: var(--a-muted); }
.brow .crow-top b:first-child { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.brow .crow-top b + b { flex: none; }
.brow .row-text .dup { color: var(--a-warn); white-space: normal; }
.brow .row-amt b { font-size: 16px; }
.brow .chev { width: 16px; height: 16px; color: var(--a-faint); margin-left: 4px; }
.brow.off .row-text b, .brow.off .row-amt b { color: var(--a-muted); }

/* A native navigation bar: back on the left, the title in the middle */
.navbar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 44px; padding: 0 8px; }
.navbar b { font-size: 17px; font-weight: 600; }
.navbar .back { display: inline-flex; align-items: center; color: var(--a-text); font-size: 17px; }
.navbar .back .i { width: 28px; height: 28px; }
.navbar .add { justify-self: end; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--a-field); color: var(--a-text); }
.navbar .add .i { width: 22px; height: 22px; }
.navbar--frag { padding: 0 0 12px; margin-left: -8px; }
.home-bar--center { justify-content: center; }

/* Reports */
.filters { display: flex; gap: 8px; padding: 6px 16px 10px; }
.donut circle { stroke: var(--c); }
.rcard--rows { padding-block: 4px; }
.crow-top { display: flex; justify-content: space-between; gap: 8px; }
.crow-top b { font-size: 16px; font-weight: 500; }
.crow-top b + b { font-weight: 600; }
.card-app--list { padding: 0; gap: 0; overflow: hidden; }
.home-head--budget { padding-bottom: 12px; }
.rcard { background: var(--a-card); border-radius: 16px; margin: 0 16px 12px; padding: 16px; }
.rlabel { color: var(--a-muted); font-size: 15px; font-weight: 600; padding: 2px 20px 6px; }
.donut { position: relative; width: 156px; height: 156px; margin: 0 auto; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 22; }
.donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.donut-c small { color: var(--a-muted); font-size: 13px; }
.donut-c b { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.crow { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.crow + .crow { border-top: 0.5px solid var(--a-sep); }
.crow .row-text b { font-size: 16px; }
.cbar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.cbar span { flex: 1; height: 6px; border-radius: 3px; background: var(--a-field); overflow: hidden; }
.cbar span i { display: block; height: 100%; border-radius: 3px; background: var(--c); }
.cbar em { font-style: normal; font-size: 13px; color: var(--a-muted); min-width: 32px; text-align: right; }
.trend-head { color: var(--a-muted); font-size: 13px; }
.trend { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 12px; height: 92px; margin-top: 22px; }
.trend .bar { position: relative; border-radius: 6px 6px 2px 2px; background: var(--a-chart-bar); }
.trend .bar.now { background: var(--a-ink); }
.trend .bar b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.trend .avg { position: absolute; left: 0; right: 0; border-top: 1.5px dashed var(--a-chart-avg); }
.months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 6px; color: var(--a-muted); font-size: 13px; text-align: center; }

/* Subscriptions */
.sub-sum { display: grid; gap: 2px; }
.sub-sum strong { font-size: 28px; font-weight: 700; letter-spacing: -0.01em; }
.sub-sum small { color: var(--a-muted); font-size: 15px; }
.sub-sum .due { display: flex; justify-content: space-between; margin-top: 12px; padding-top: 12px; border-top: 0.5px solid var(--a-sep); font-size: 15px; }
.sub-sum .due b { font-weight: 600; }
.srow { display: flex; align-items: center; gap: 12px; padding: 10px 16px; min-height: 60px; }
.srow + .srow { box-shadow: inset 64px 0.5px 0 0 var(--a-card), inset 0 0.5px 0 0 var(--a-sep); }
.srow .row-text small { color: var(--a-muted); }
.srow .row-text small.w { color: var(--a-warn); }
.srow .row-amt small { color: var(--a-muted); }

/* iOS notification banner */
.banner {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 2px 10px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 22px;
  background: var(--a-banner);
  color: var(--a-text);
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / 0.28), 0 0 0 0.5px rgb(0 0 0 / 0.06);
  font-size: 15px;
  line-height: 1.3;
}
.banner .tile { width: 38px; height: 38px; grid-row: span 2; border-radius: 9px; }
.banner b { font-weight: 600; }
.banner .when { color: var(--a-muted); font-size: 13px; }
.banner p { grid-column: 2 / 4; color: var(--a-text); }

/* A slice of the app outside a phone frame */
.frag {
  --z: 0.86;
  zoom: var(--z);
  background: var(--a-bg);
  color: var(--a-text);
  font-family: var(--app);
  font-size: 14px;
  line-height: 1.25;
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--frag-edge);
  font-variant-numeric: tabular-nums;
}
.frag--flush { padding: 0; overflow: hidden; }
.frag--flush .composer { padding-bottom: 10px; border-top: 0; }
.frag .card-app:last-child { margin-bottom: 0; }
/* 320–380 px screens: app slices shrink with the phones. */
@media (max-width: 380px) { .frag { --z: 0.7; } }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }

.head { display: grid; gap: 20px; max-width: 42rem; margin-bottom: clamp(40px, 5vw, 64px); }
.head p { color: var(--muted); font-size: 1.1875rem; line-height: 1.5; }
.head p + p { margin-top: 0; }

/* A small label that names the topic of the section; it carries the search phrase. */
.split .copy > p.eyebrow, .eyebrow { font-weight: 650; font-size: 0.9375rem; letter-spacing: 0.01em; color: var(--amber-text); margin-bottom: -6px; }

/* How it works */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: 0;
}
.step { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 12px; }
.n {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 5px solid var(--amber);
  font-family: var(--voice);
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1;
  margin-bottom: 6px;
}
.step p { color: var(--muted); }
.step .frag { margin-top: 20px; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.step .frag--flush { justify-content: flex-end; }
.empty-app { flex: 1; display: grid; place-items: center; padding: 24px 16px; text-align: center; color: var(--a-faint); line-height: 22px; }

@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 56px; max-width: 34rem; }
  .step { grid-row: auto; grid-template-rows: none; }
  .step .frag { margin-top: 8px; }
}

/* Feature: text beside a picture */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
}
.split .copy { display: grid; gap: 20px; align-content: center; }
.split .copy h2 { margin-bottom: 8px; }
.split .copy > p + p { margin-top: 0; }
.split .copy > p { color: var(--muted); font-size: 1.1875rem; line-height: 1.5; max-width: 32em; }
.split figure, .pair figure { margin: 0; display: grid; justify-items: center; gap: 16px; }
.split figcaption { color: var(--muted); font-size: 0.9375rem; max-width: 26em; text-align: center; }
.split--flip .copy { order: 2; }

@media (max-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .copy { order: 0; }
}

/* Share from another app: a compact band */
.share { padding-block: clamp(48px, 6vw, 72px); border-block: 1px solid var(--rule); }
.share-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px clamp(40px, 6vw, 96px); align-items: center; }
.share h2 { font-size: clamp(1.875rem, 1.4rem + 1.6vw, 2.625rem); margin-bottom: 14px; }
.share p { color: var(--muted); max-width: 34em; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; gap: 6px; justify-content: flex-start; }
/* A slot grows past its minimum when the label needs it ("Compartilhar"), so labels never collide. */
.flow li { display: grid; justify-items: center; gap: 10px; min-width: 84px; font-size: 0.875rem; font-weight: 560; text-align: center; color: var(--muted); }
.flow li.to { width: 28px; min-width: 0; padding-top: 18px; }
.flow li.to svg { width: 24px; height: 24px; fill: var(--muted); }
.app-ic { width: 60px; height: 60px; border-radius: 22.5%; display: grid; place-items: center; background: var(--mist); color: var(--text); box-shadow: inset 0 0 0 1px var(--rule); }
.app-ic svg { width: 30px; height: 30px; fill: currentColor; }
.flow .tile { width: 60px; height: 60px; }
@media (max-width: 900px) { .share-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .flow li { min-width: 64px; } .flow li.to { width: 18px; } .app-ic, .flow .tile { width: 52px; height: 52px; } }

/* Currencies: how one expense is counted (a real sequence, so it is numbered) */
.count-block { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.count-block h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 28px; }
.count {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: c;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px clamp(24px, 3vw, 40px);
}
.count li { counter-increment: c; display: block; }
.count li::before {
  content: counter(c);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 4px solid var(--amber);
  font-family: var(--voice);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1;
  margin-bottom: 14px;
}
.count .hl { --band: 1.05em; }
.count-block .fine { margin-top: 32px; color: var(--muted); font-size: 0.9375rem; max-width: 46rem; }
@media (max-width: 1000px) { .count { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .count { grid-template-columns: minmax(0, 1fr); } }

/* Exchange picture: the sentence, then the draft it becomes */
.exchange { display: grid; gap: 34px; width: 100%; max-width: 27.5rem; justify-items: start; justify-self: center; }
.exchange .frag { width: 393px; max-width: 100%; }
@media (min-width: 901px) { .exchange .frag { --z: 1; width: 433px; } }

/* Categories */
.examples {
  list-style: none;
  margin: 0 0 clamp(48px, 6vw, 72px);
  padding: 0;
  display: grid;
  border-top: 1px solid var(--rule);
}
.examples li {
  display: grid;
  grid-template-columns: auto minmax(32px, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.leader { height: 0; border-bottom: 2px dotted var(--muted); opacity: 0.55; transform: translateY(0.2em); }
.examples q {
  font-family: var(--voice);
  font-weight: 560;
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.lands { display: inline-flex; align-items: center; gap: 12px; font-weight: 560; }
.lands .dot-ic { width: 40px; height: 40px; }

@media (max-width: 640px) {
  .examples li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .leader { display: none; }
}

.wall-title { font-family: var(--ui); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 18px; }
.wall { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wall li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 6px;
  border-radius: 999px;
  background: var(--mist);
  font-weight: 540;
  font-size: 0.9375rem;
}
.wall .dot-ic { width: 32px; height: 32px; }
.wall .dot-ic .i { width: 18px; height: 18px; }

/* Budgets and subscriptions: a pair */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  column-gap: clamp(40px, 6vw, 96px);
}
.pair > section { display: grid; grid-template-columns: minmax(0, 1fr); grid-row: span 3; grid-template-rows: subgrid; row-gap: 20px; }
.pair h2 { font-size: clamp(2rem, 1.4rem + 1.9vw, 3rem); }
.pair .copy { display: grid; gap: 16px; align-content: start; }
.pair .copy p { color: var(--muted); font-size: 1.125rem; line-height: 1.5; max-width: 32em; }
.pair .copy p + p { margin-top: 0; }
.pair figure { margin-top: 20px; justify-items: start; align-content: start; }
.pair .frag { width: 400px; max-width: 100%; }
.budget-fig { display: grid; gap: 18px; width: 400px; max-width: 100%; }
.budget-fig .frag { width: 100%; }
@media (max-width: 900px) {
  .pair { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: var(--section); }
  .pair > section { grid-row: auto; grid-template-rows: none; }
}

.also { margin-top: var(--section); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(40px, 6vw, 96px); align-items: start; }
.also h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.also ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; }
.also li { display: flex; gap: 14px; align-items: flex-start; font-weight: 560; text-wrap: pretty; }
.also li svg { width: 22px; height: 22px; flex: none; margin-top: 1px; fill: var(--amber-text); }
@media (max-width: 900px) { .also { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .also ul { grid-template-columns: minmax(0, 1fr); } }

/* Languages */
.lang-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.spoken { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.spoken li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 20px; align-items: start; }
.spoken .lang { font-family: var(--voice); font-weight: 760; font-size: 1.25rem; line-height: 1; padding-top: 0.95rem; color: var(--muted); }
.spoken .say { margin: 0 0 18px; justify-self: start; }
.same { display: grid; gap: 20px; justify-items: start; }
.same p { font-family: var(--voice); font-weight: 700; font-size: 1.5rem; line-height: 1.15; max-width: 12em; }
.same .frag { width: 393px; max-width: 100%; }

@media (max-width: 900px) {
  .lang-grid { grid-template-columns: minmax(0, 1fr); }
  .spoken li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .spoken .lang { padding-top: 0; }
}

/* Privacy band */
.band { background: var(--band-bg); color: var(--band-text); }
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(36px, 4vw, 56px) clamp(28px, 4vw, 56px);
}
.facts li { display: grid; gap: 10px; align-content: start; padding-top: 20px; border-top: 3px solid var(--amber); }
.facts p { color: var(--band-muted); }
.band .fine { margin-top: clamp(40px, 5vw, 56px); max-width: 46rem; color: var(--band-muted); }
.band .fine a { color: var(--band-text); }
.band :focus-visible { outline-color: var(--amber); }

@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* Pricing: Free is plain; Pro is amber, the app's colour for a chosen thing */
.plans { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: stretch; }
.plan { display: grid; align-content: start; gap: 20px; padding: clamp(28px, 3.4vw, 44px); border-radius: 28px; background: var(--mist); }
.plan--pro { background: var(--pro-bg); color: var(--pro-text); }
.plan h3 { font-size: 1.75rem; }
.price { font-family: var(--voice); font-weight: 600; font-size: 1.5rem; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }
.price .amt { font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); letter-spacing: -0.03em; line-height: 0.95; margin-bottom: 4px; }
.price-sub { font-weight: 600; margin-top: -8px; text-wrap: balance; }
.price-alt { font-size: 0.9375rem; margin-top: -8px; }
.plan ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); display: grid; gap: 10px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { width: 20px; height: 20px; flex: none; margin-top: 3px; fill: currentColor; }
.plan--free li svg { fill: var(--amber-text); }
.fine-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 8px; max-width: 50rem; color: var(--muted); font-size: 0.9375rem; }
.fine-list li { padding-left: 18px; position: relative; }
.fine-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.6; }
@media (max-width: 800px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(40px, 6vw, 96px); align-items: start; }
.faq { border-top: 1px solid var(--rule); }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 44px;
  padding: 20px 0;
  font-family: var(--voice);
  font-weight: 720;
  font-size: 1.375rem;
  line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}
.faq details[open] summary::after { transform: translateY(3px) rotate(225deg); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 40rem; }
.faq-more { margin-top: 24px; }
.faq-more a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 650; text-decoration-color: var(--amber); text-decoration-thickness: 2px; text-underline-offset: 0.3em; }
.faq-more a:hover { text-decoration-thickness: 3px; }

/* Final call to action: the hero's colour again */
.final { background: var(--hero-bg); color: var(--hero-text); padding-block: clamp(72px, 9vw, 120px); }
.final .wrap { display: grid; gap: 24px; justify-items: start; }
.final h2 { font-size: clamp(2.5rem, 1.6rem + 4vw, 4.75rem); font-weight: 800; letter-spacing: -0.03em; line-height: 0.96; max-width: 11em; }
.final p { font-size: 1.1875rem; max-width: 32em; }
.final .wrap { position: relative; }
/* The mark, large: the talking coin says it. */
.final-mark { position: absolute; right: var(--gutter); top: 50%; width: clamp(160px, 20vw, 260px); height: auto; transform: translateY(-50%); fill: var(--on-amber); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .final-mark { fill: var(--amber); } }
:root[data-theme="dark"] .final-mark { fill: var(--amber); }
@media (max-width: 820px) { .final-mark { display: none; } }

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

.foot { background: var(--tile); color: #F2F2F0; padding-block: 56px 40px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .foot { background: #0C0C0C; } }
:root[data-theme="dark"] .foot { background: #0C0C0C; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; align-items: flex-start; }
.foot .tile { box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.16); }
.foot p { color: #B8B8B8; margin-top: 12px; max-width: 28em; }
.foot nav { display: grid; gap: 8px; justify-items: start; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 4px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.foot .langs { padding-left: 0; border-left: 0; }
.foot .langs a, .foot .langs span { padding-inline: 8px; }
.foot :focus-visible { outline-color: var(--amber); }
.foot small { display: block; margin-top: 40px; color: #8F8F8F; font-size: 0.875rem; }
/* Apple's credit line, required wherever the App Store badge is used. */
.foot small.credit { margin-top: 6px; max-width: 60em; font-size: 0.8125rem; }

/* ---------- Documents (privacy, terms, support, 404) ---------- */

.doc { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.doc-head { max-width: 44rem; margin-bottom: 48px; display: grid; gap: 16px; }
.doc-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); font-weight: 800; letter-spacing: -0.025em; line-height: 0.98; }
.doc-head p { color: var(--muted); font-size: 1.1875rem; }
.prose { max-width: 42rem; }
.doc-body { display: grid; grid-template-columns: minmax(0, 42rem) minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); align-items: start; }
.toc { position: sticky; top: 32px; display: grid; gap: 12px; padding-top: 4px; }
.toc p { font-weight: 650; }
.toc ol { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--rule); display: grid; }
.toc a { display: block; padding: 5px 0; color: var(--muted); text-decoration: none; font-size: 0.9375rem; line-height: 1.35; }
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 1100px) {
  .doc-body { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2rem); margin: 56px 0 16px; scroll-margin-top: 24px; }
.prose h3 { font-size: 1.25rem; margin: 32px 0 10px; }
.prose p, .prose li { line-height: 1.6; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0.85em 0; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--amber-text); font-weight: 560; }
.summary {
  margin: 0 0 8px;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--mist);
  border-left: 6px solid var(--amber);
}
.summary h2 { margin-top: 0; }
.summary ul { margin: 8px 0 0; }
.summary h3 { margin: 0; }
.summary p { margin-top: 12px; color: var(--muted); font-size: 0.9375rem; }
.prose .summary + p { margin-top: 24px; }
.prose > h2:first-child { margin-top: 0; }

/* Something only the owner can fill in. Loud on purpose: it must not ship unnoticed.
   Find them all with: grep -rn 'class="ph"' web */
.ph {
  padding: 0.1em 0.4em;
  border: 1.5px dashed var(--amber-text);
  border-radius: 6px;
  background: color-mix(in srgb, var(--amber) 18%, transparent);
  color: var(--text);
  font-size: 0.9375em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ph b { font-weight: 650; color: var(--amber-text); }
.prose .ph a { color: inherit; }

/* What is kept, where, for how long: a table on wide screens, stacked rows on phones */
.keep {
  width: 100%;
  margin: 8px 0 24px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.keep th, .keep td {
  padding: 14px 16px 14px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}
.keep td:last-child { padding-right: 0; }
.keep thead th {
  padding-block: 0 10px;
  border-top: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}
.keep tbody th { width: 38%; font-weight: 620; }
.keep tbody td:nth-child(2) { width: 24%; }
@media (max-width: 640px) {
  .keep thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .keep, .keep tbody, .keep tr { display: block; }
  .keep tr { padding: 14px 0; border-top: 1px solid var(--rule); }
  .keep tbody th, .keep tbody td { display: block; width: auto; padding: 0; border: 0; }
  .keep tbody th { margin-bottom: 6px; }
  .keep tbody td { position: relative; margin-top: 4px; padding-left: calc(5.5rem + 12px); }
  .keep tbody td:nth-child(2) { width: auto; }
  .keep tbody td::before { content: attr(data-label); position: absolute; top: 0; left: 0; color: var(--muted); }
}

.contact {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 24px 28px;
  border-radius: 20px;
  background: var(--mist);
}
.contact a { font-family: var(--voice); font-weight: 760; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); text-decoration: none; color: var(--text); overflow-wrap: anywhere; }
.contact a:hover { text-decoration: underline; }

.notfound { min-height: 50vh; }
.notfound .links { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.notfound .links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Motion: one moment on load, nothing else ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero .hl { animation: sweep 560ms var(--ease) both; }
  .hero .hl:nth-of-type(1) { animation-delay: 420ms; }
  .hero .hl:nth-of-type(2) { animation-delay: 700ms; }
  .hero .card-app { animation: land 480ms var(--ease) both; }
  .hero .card-app:nth-child(1) { animation-delay: 1000ms; }
  .hero .card-app:nth-child(2) { animation-delay: 1120ms; }
}
@keyframes sweep { from { background-size: 0% var(--band); } }
@keyframes land { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* "(EN)" after a link to a page that exists in English only */
.en-mark { font-size: 0.8em; font-weight: 600; }
