/* Generated from design/tokens.json by website/tokens.ts. Do not edit by hand. */
:root {
  --color-background: #F2F2F4;
  --color-surface: #FFFFFF;
  --color-key: #FFFFFF;
  --color-text: #111113;
  --color-textSecondary: #6B6B72;
  --color-line: #C4C4CA;
  --color-track: #DCDCE0;
  --color-primary: #111113;
  --color-onPrimary: #FFFFFF;
  --color-right: #3D9652;
  --color-wrong: #9F1D0C;
  --color-roleA: #8F7300;
  --color-roleB: #8F0856;
  --color-roleC: #377FBD;
  --fontSize-question: 52px;
  --fontSize-answer: 44px;
  --fontSize-struck: 36px;
  --fontSize-key: 28px;
  --fontSize-sceneDigit: 28px;
  --fontSize-equation: 26px;
  --fontSize-caption: 19px;
  --fontSize-button: 19px;
  --fontSize-sceneLabel: 18px;
  --fontSize-body: 17px;
  --fontSize-secondary: 15px;
  --fontSize-overline: 13px;
  --fontSize-title: 28px;
  --fontSize-goalLabel: 26px;
  --fontSize-small: 13px;
  --fontSize-statValue: 34px;
  --space-screen: 20px;
  --space-small: 6px;
  --space-medium: 14px;
  --space-large: 28px;
  --space-tiny: 2px;
  --space-goalFieldBar: 3px;
  --space-item: 12px;
  --space-row: 16px;
  --space-section: 20px;
  --radius-control: 4px;
  --size-control: 44px;
  --size-key: 50px;
  --size-button: 50px;
  --size-answerField: 80px;
  --size-progress: 4px;
  --size-dot: 7px;
  --size-cellWidth: 26px;
  --size-cellHeight: 44px;
  --size-goalField: 24px;
  --size-goalFieldBar: 6px;
  --size-levelBox: 8px;
  --size-collectionBar: 129px;
  --size-icon: 22px;
  --size-tick: 34px;
  --size-answerTick: 32px;
  --size-row: 52px;
  --size-rowTwoLine: 56px;
  --size-rowLarge: 64px;
  --size-strengthBar: 48px;
  --size-toggleBox: 30px;
  --size-goalDay: 16px;
  --size-barChart: 116px;
  --size-lineChart: 106px;
  --size-chartDot: 8px;
  --size-switchWidth: 51px;
  --size-switchHeight: 31px;
  --fontWeight-regular: 400;
  --fontWeight-medium: 500;
  --fontWeight-semibold: 600;
  --lineHeight-tight: 1.1;
  --lineHeight-text: 1.4;
}
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #000000;
    --color-surface: #2C2C2E;
    --color-key: #3A3A3C;
    --color-text: #FFFFFF;
    --color-textSecondary: #9A9AA0;
    --color-line: #48484D;
    --color-track: #3A3A3C;
    --color-primary: #FFFFFF;
    --color-onPrimary: #000000;
    --color-right: #7ECC8F;
    --color-wrong: #DC6B5C;
    --color-roleA: #DDC85F;
    --color-roleB: #BA5B87;
    --color-roleC: #78C2FB;
  }
}

/* The website in the app's design language (docs/design.md), laid out as a web page, not a phone screen:
   a grey ground and full-width white bands, flat (colour separates surfaces, no shadows), small corners,
   near-black text and primary button, the system font with tabular digits. The chalk colours appear only
   as the large step numbers on the start page. Colours and sizes come from tokens.css (generated from
   design/tokens.json); light and dark follow the system setting.
   Widths: the layout is at most 72rem wide; running text at most 40rem. */

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--fontSize-body);
  font-weight: var(--fontWeight-regular);
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding-left: 1.25em; }
h1, h2, h3 {
  margin: 0;
  font-weight: var(--fontWeight-semibold);
  line-height: var(--lineHeight-tight);
  text-wrap: balance;
}
address { font-style: normal; margin-bottom: 1em; }
address:last-child { margin-bottom: 0; }

.secondary { color: var(--color-textSecondary); }
.meta { font-size: var(--fontSize-secondary); color: var(--color-textSecondary); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip link: hidden until it gets keyboard focus. */
.skip {
  position: absolute;
  z-index: 20;
  left: var(--space-screen);
  top: -10rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-onPrimary);
  font-weight: var(--fontWeight-semibold);
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* The layout width, with the app's screen margin on phones. */
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--space-screen);
}
@media (min-width: 48rem) { .wrap { padding-inline: 2.5rem; } }

/* Small capitals above a headline, as the app's overlines. */
.eyebrow, .toc-title {
  margin: 0 0 1rem;
  font-size: var(--fontSize-overline);
  font-weight: var(--fontWeight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-textSecondary);
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  line-height: 1.5;
  color: var(--color-textSecondary);
  max-width: 36rem;
}

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

.site-header { position: relative; z-index: 10; }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-height: var(--size-control);
  font-size: 1.125rem;
  font-weight: var(--fontWeight-semibold);
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 23%; }
.brand, .brand picture, .footer-brand picture { flex: none; }
.header-nav { display: flex; align-items: center; gap: 0.125rem; }
@media (min-width: 48rem) { .header-nav { gap: 0.25rem; margin-right: -0.75rem; } }
/* On narrow phones the header keeps the name and the language menu; Support is in the footer. */
@media (max-width: 26rem) { .header-nav .header-link { display: none; } }

.header-link,
.lang summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: var(--size-control);
  padding: 0 0.625rem;
  border-radius: var(--radius-control);
  font-size: var(--fontSize-secondary);
  font-weight: var(--fontWeight-medium);
  text-decoration: none;
}
.header-link:hover,
.lang summary:hover,
.lang[open] summary { background: var(--color-track); }

/* The language menu: a <details> dropdown, so it works without JavaScript and with the keyboard. */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; user-select: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  margin-left: 0.15rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-25%) rotate(45deg);
}
.lang[open] summary::after { transform: translateY(20%) rotate(-135deg); }
.globe { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  min-width: 12rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
}
.lang-menu li + li { margin-top: 2px; }
.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--size-control);
  padding: 0 0.75rem;
  border-radius: var(--radius-control);
  text-decoration: none;
}
.lang-menu a:hover { background: var(--color-track); }
.lang-menu a[aria-current] { font-weight: var(--fontWeight-semibold); }
.lang-menu a[aria-current]::after {
  content: "";
  width: 0.35em;
  height: 0.7em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-15%) rotate(45deg);
}

/* ---------- Buttons ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-top: 2rem;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-button);
  padding: 0 1.5rem;
  border-radius: var(--radius-control);
  background: var(--color-primary);
  color: var(--color-onPrimary);
  font-size: var(--fontSize-body);
  font-weight: var(--fontWeight-semibold);
  text-decoration: none;
}
.button:hover { text-decoration: underline; }
.button.soon { background: var(--color-track); color: var(--color-text); font-weight: var(--fontWeight-medium); }
.note { margin: 0; font-size: var(--fontSize-secondary); color: var(--color-textSecondary); }

.arrow, .more a { font-weight: var(--fontWeight-medium); }
.arrow::after { content: " →"; }

/* ---------- Start page ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem) clamp(4rem, 10vw, 8rem); }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.hero h1 {
  font-size: clamp(2.625rem, 1.4rem + 5vw, 5rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 13ch;
}
.hero .lead { margin-top: 1.5rem; }
.hero-icon { order: -1; }
.hero-icon img { width: 88px; height: 88px; border-radius: 23%; }
@media (min-width: 56rem) {
  .hero-inner { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 4rem; }
  .hero-icon { order: 0; justify-self: end; }
  .hero-icon img { width: 18rem; height: 18rem; }
}

.band { padding-block: clamp(4rem, 9vw, 7rem); }
.band-surface { background: var(--color-surface); }
.section-title { font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem); letter-spacing: -0.02em; }
.section-lead { margin-top: 1rem; }
.split-head .lead { margin-top: 1rem; }
.more { margin-top: 2.5rem; }

/* Three columns on wide screens, stacked on phones. */
.grid-3 {
  display: grid;
  gap: 2.5rem;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }
@media (min-width: 64rem) { .grid-3 { gap: 4rem; } }
.grid-3 h3 { font-size: 1.25rem; margin-bottom: 0.625rem; }
.grid-3 p { color: var(--color-textSecondary); }

/* How it works: a line, a large number in a chalk colour, a heading, a sentence. */
.steps li { padding-top: 1.5rem; border-top: 1px solid var(--color-line); }
.step-num {
  display: block;
  margin-bottom: 1.5rem;
  font-size: clamp(2.75rem, 2rem + 2vw, 3.5rem);
  font-weight: var(--fontWeight-medium);
  line-height: 1;
}
.a { color: var(--color-roleA); }
.b { color: var(--color-roleB); }
.c { color: var(--color-roleC); }

.feature-icon {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* A heading on the left, the content on the right; stacked below 64rem. */
.split { display: grid; gap: 2.5rem; }
@media (min-width: 64rem) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
}

/* White tiles on the grey ground. */
.tiles { display: grid; gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 48rem) and (max-width: 63.99rem) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tile { padding: 1.5rem 1.75rem; background: var(--color-surface); border-radius: var(--radius-control); }
.tile h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.tile p { color: var(--color-textSecondary); }

/* The facts about the app, as rows. */
.facts { margin: 0; border-top: 1px solid var(--color-line); }
.facts div {
  display: grid;
  grid-template-columns: minmax(7.5rem, 1fr) 2fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-line);
}
.facts dt { color: var(--color-textSecondary); }
.facts dd { margin: 0; font-weight: var(--fontWeight-medium); }

/* ---------- Other pages ---------- */

.page-head { padding-block: clamp(2rem, 6vw, 4.5rem) clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.5rem); letter-spacing: -0.02em; }
.page-head h1 + p { margin-top: 1rem; }
.page-head + .band { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.page-head-tall { padding-block: clamp(4rem, 12vw, 9rem); }

/* Legal pages: a contents list beside the text on wide screens, above it on phones. */
.doc { display: grid; gap: 2.5rem; }
.toc {
  align-self: start;
  padding: 1.25rem 1.5rem;
  background: var(--color-background);
  border-radius: var(--radius-control);
  font-size: var(--fontSize-secondary);
}
.toc-title { margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 0.3rem 0; color: var(--color-textSecondary); text-decoration: none; }
.toc a:hover { color: var(--color-text); text-decoration: underline; }
@media (min-width: 64rem) {
  .doc:not(.doc-imprint) { grid-template-columns: 15rem minmax(0, 40rem); gap: 5rem; }
  .toc {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 0;
    background: none;
  }
}

.doc-body { max-width: 40rem; }
.doc-body section + section { margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--color-track); }
.doc-body h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
.doc-body li + li { margin-top: 0.5rem; }
.doc-body li::marker { color: var(--color-textSecondary); }
.doc-body ul + p, .doc-body p + ul, .doc-body p + address { margin-top: 1em; }
.doc-body ul:not(:last-child) { margin-bottom: 1em; }

/* The plain summary first, set apart on the grey ground. */
.doc-body [data-req="privacy.summary"] {
  padding: 1.5rem 1.75rem;
  background: var(--color-background);
  border-radius: var(--radius-control);
}
.doc-body [data-req="privacy.summary"] + section { border-top: 0; }

/* Legal notice: three short parts side by side on wide screens. */
.doc-imprint .doc-body { display: grid; gap: 2.5rem; max-width: none; }
.doc-imprint .doc-body section,
.doc-imprint .doc-body section + section { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--color-line); }
.doc-imprint h2 { font-size: 1.125rem; }
@media (min-width: 48rem) { .doc-imprint .doc-body { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
[data-req="imprint.tax"] p { margin: 1em 0 0; }

/* Support: contact on the left, questions on the right. */
.support { display: grid; gap: 3rem; }
@media (min-width: 64rem) {
  .support { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 5rem; align-items: start; }
}
.support h2 { font-size: 1.375rem; letter-spacing: -0.01em; margin-bottom: 1.25rem; }
.contact { padding: clamp(1.5rem, 4vw, 2rem); background: var(--color-background); border-radius: var(--radius-control); }
.email {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem);
  font-weight: var(--fontWeight-semibold);
  overflow-wrap: anywhere;
}
.email a { text-decoration: none; }
.email a:hover { text-decoration: underline; }

/* Questions that open, without JavaScript. */
.faq details { border-top: 1px solid var(--color-track); }
.faq details:last-of-type { border-bottom: 1px solid var(--color-track); }
.faq summary {
  position: relative;
  padding: 1.125rem 2.25rem 1.125rem 0;
  list-style: none;
  cursor: pointer;
  font-weight: var(--fontWeight-medium);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 0.375rem;
  top: 50%;
  width: 0.5em;
  height: 0.5em;
  border-right: 2px solid var(--color-textSecondary);
  border-bottom: 2px solid var(--color-textSecondary);
  transform: translateY(-70%) rotate(45deg);
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 2.25rem 1.25rem 0; color: var(--color-textSecondary); }
.version { margin-top: 2rem; }

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

.site-footer {
  padding-block: 3rem;
  border-top: 1px solid var(--color-line);
  font-size: var(--fontSize-secondary);
  color: var(--color-textSecondary);
}
.footer-inner { display: grid; gap: 1.25rem; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--color-text);
  font-weight: var(--fontWeight-semibold);
}
.footer-brand img { width: 24px; height: 24px; border-radius: 23%; }
.footer-brand span { color: var(--color-textSecondary); font-weight: var(--fontWeight-regular); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-nav a { display: inline-block; padding: 0.375rem 0; color: var(--color-text); text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.credit {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-track);
  font-size: var(--fontSize-small);
}
@media (min-width: 48rem) {
  .footer-inner { grid-template-columns: auto 1fr; align-items: center; }
  .footer-nav { justify-self: end; }
  .credit { grid-column: 1 / -1; }
}

/* Protected personal details: decoy letters in the source, never shown, read or copied. */
.d { display: none !important; }

/* Draft only */
.draft {
  margin: 0;
  padding: 0.5rem var(--space-screen);
  border-bottom: 1px solid var(--color-line);
  text-align: center;
  font-size: var(--fontSize-secondary);
  color: var(--color-wrong);
}
mark.placeholder {
  background: transparent;
  color: var(--color-wrong);
  outline: 1px dashed var(--color-wrong);
  outline-offset: 1px;
  padding: 0 0.15em;
}
