/* Moonto website — source of truth. Copied to public/styles.css by web/build.js,
   which also appends a content hash to the <link> so a deploy is not shadowed by
   Hosting's max-age=3600 for an hour. Do not edit public/styles.css.

   One design language for every page (the 2026-10 home mock-up): a dark header
   (header.top), night hero bands, light sections that alternate with a tint,
   cards, Bricolage Grotesque headings over Inter text. Marketing pages put their
   content in <main class="page">, and everything inside is h- prefixed. Legal
   pages use main.article; applinks and 404 use main.minimal and .btn. */

:root {
  color-scheme: light dark;
  --brand: #5e30c4;
  --brand-2: #8e59ff;
  --brand-hover: #4a239e;
  --fg: #1d1a26;
  --bg: #ffffff;
  --bg-alt: #f6f3fc;
  --muted: #5f5970;
  --card: #ffffff;
  --border: #e6e0f2;
  /* Separate from --brand-2: #8e59ff on white is 4.0:1, under the 4.5:1 floor
     for body-size text, so links and small accents use the darker brand. */
  --link: #5e30c4;
  --icon: #5e30c4;
  --icon-bg: rgba(94, 48, 196, 0.1);
  --shadow: rgba(29, 26, 38, 0.14);
  /* The night surfaces (header, heroes, pricing, footer) keep their colours in
     dark mode: they are already dark. */
  --night: #160e2b;
  --night-2: #23173f;
  --night-line: #33255a;
  --night-edge: #6f5aa8;
  --on-night: #d9d0f5;
  --on-night-muted: #b3a8d1;
  --sun: #f5c451;
  --accent: #7b4dff;
  --accent-light: #c4b0ff;
  --font-text: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #f0edf7;
    --bg: #14121a;
    --bg-alt: #1c1826;
    --muted: #a9a2b8;
    --card: #201b2d;
    --border: #322a45;
    --brand-hover: #7b45f0;
    --link: #b79cff;
    --icon: #a97dff;
    --icon-bg: rgba(142, 89, 255, 0.16);
    --shadow: rgba(0, 0, 0, 0.45);
    --accent: #a97dff;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-text);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--link); }

/* One visible focus treatment everywhere; white on the night surfaces, where
   the purple ring would disappear. */
:focus-visible {
  outline: 3px solid var(--brand-2);
  outline-offset: 2px;
  border-radius: 6px;
}
header.top :focus-visible,
.h-hero :focus-visible,
.h-night :focus-visible,
footer.site :focus-visible,
.skip:focus-visible {
  outline-color: #ffffff;
}

.skip {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
}
.skip:focus { inset-inline-start: 0; }

/* Shared width. */
.h-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 24px);
}

/* ---------------------------------------------------------------------------
   Header — the same dark bar on every page (build.js renderHeader).
   The nav is the row: logo, links, language, « Get the app ». Below 1020px the
   links take a full-width second row, which wraps on a phone.
   ------------------------------------------------------------------------- */
header.top {
  position: relative;
  z-index: 20;
  background: var(--night);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.4;
}
nav.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 20px;
  padding-bottom: 20px;
}
nav.top .logo { flex: none; margin-inline-end: auto; }
nav.top .logo img { height: 40px; width: auto; display: block; }
.top-links { display: flex; align-items: center; gap: 4px 26px; }
.top-links a {
  padding: 10px 0;
  color: var(--on-night);
  text-decoration: none;
  white-space: nowrap;
  text-decoration-thickness: 2px;
  text-underline-offset: 9px;
}
.top-links a:hover { color: #ffffff; }
.top-links a[aria-current] {
  color: #ffffff;
  text-decoration-line: underline;
  text-decoration-color: var(--accent-light);
}
nav.top a.get {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
nav.top a.get:hover { background: #efeaf9; }
nav.top .lang > summary { color: var(--on-night); border-color: var(--night-edge); min-height: 44px; }
nav.top .lang > summary:hover { color: #ffffff; border-color: #ffffff; }

@media (max-width: 1020px) {
  nav.top { padding-bottom: 10px; row-gap: 4px; }
  /* A row of their own under the logo; on a phone they wrap onto a second
     line rather than scroll, so Developers is never hidden off-screen. */
  .top-links { order: 5; flex-basis: 100%; flex-wrap: wrap; column-gap: 24px; }
  .top-links a { padding: 8px 0; }
}
@media (max-width: 560px) {
  nav.top { padding-top: 14px; column-gap: 12px; }
  nav.top .logo img { height: 32px; }
  /* Logo and language on the first row; every page has a get-the-app band. */
  nav.top a.get { display: none; }
  .top-links { column-gap: 20px; }
}

/* Language switcher — a <details> disclosure so it opens with no JavaScript. */
.lang { position: relative; }
.lang > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--fg);
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover { border-color: var(--brand-2); color: var(--link); }
.lang > summary .icon { width: 16px; height: 16px; }
.lang-menu {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.45rem);
  z-index: 30;
  min-width: 11rem;
  max-width: min(14rem, 80vw);
  padding: 0.35rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px var(--shadow);
}
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu a {
  display: block;
  padding: 0.4rem 0.6rem;
  border-radius: 8px;
  color: var(--fg);
  text-decoration: none;
  font-size: 0.92rem;
}
.lang-menu a:hover { background: var(--bg-alt); }
.lang-menu a[aria-current] { color: var(--link); font-weight: 600; }

/* "This page is also available in ..." — injected between the header and
   <main> by the layout script, so it sits on the header's night colour. */
.langhint {
  display: block;
  padding: 0.55rem 1rem;
  background: var(--night);
  border-top: 1px solid var(--night-line);
  border-bottom: 1px solid var(--night-line);
  color: var(--accent-light);
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
}
.langhint:hover { text-decoration: underline; color: #ffffff; }
.langhint:focus-visible { outline-color: #ffffff; outline-offset: -3px; }
.langhint::after { content: " \2192"; }
[dir="rtl"] .langhint::after { content: " \2190"; }

/* ---------------------------------------------------------------------------
   Marketing pages: <main class="page">
   ------------------------------------------------------------------------- */
.page {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
}
.page h1, .page h2, .h-num, .h-amount, .h-due-title {
  font-family: var(--font-head);
  font-weight: 700;
}
/* No automatic hyphenation in headings: a headline reading "AI as-sistant" at tablet
   width is worse than one more line; break-word still guards an overflowing word. */
.page h1, .page h2 { overflow-wrap: break-word; hyphens: manual; text-wrap: balance; }
/* Zero-specificity resets, so a single class below can set its own margin. */
:where(.page) :where(p, ul, ol, figure, address) { margin: 0; }
:where(.page) :where(ul, ol) { padding: 0; list-style: none; }
.page code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--icon-bg);
  overflow-wrap: anywhere;
}

.h-split { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.h-col { flex: 1 1 440px; min-width: 0; }

.page .h-sec { padding: 96px 0; }
.page .h-tint { background: var(--bg-alt); }
.page h2 {
  margin: 0;
  max-width: 760px;
  text-align: start;
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h-sub { margin-top: 20px; max-width: 640px; color: var(--muted); }
.h-sub + .h-sub { margin-top: 14px; }

/* Hero: one night surface with the header. */
.h-hero { background: var(--night); color: #ffffff; padding: 56px 0 96px; }
.h-hero a:not(.h-store):not(.h-ghost) { color: var(--accent-light); }
.h-badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--night);
  font-size: 14px;
  font-weight: 600;
}
.h-hero h1 {
  margin: 0;
  /* The headline is a full sentence (marketing/01-positioning.md): sized so it
     sets in about four lines beside the card rather than six. */
  font-size: clamp(34px, 4.3vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.h-tagline { margin-top: 24px; font-size: 22px; font-weight: 600; color: var(--accent-light); }
.h-lead { margin-top: 12px; max-width: 540px; color: var(--on-night); }
.h-note { margin-top: 18px; font-size: 14px; color: var(--on-night-muted); }

/* Inner-page hero: same surface, a smaller title, a wider lead. */
.h-hero--page { padding: 48px 0 88px; }
.h-hero--page h1 { max-width: 900px; font-size: clamp(36px, 5vw, 60px); line-height: 1.04; }
.h-hero--page .h-lead { max-width: 680px; margin-top: 20px; font-size: 19px; }
.h-hero--page .h-tagline + .h-lead { margin-top: 12px; }
.h-hero--slim { padding: 40px 0 64px; }
.h-hero--slim h1 { font-size: clamp(34px, 4.4vw, 52px); }

/* Buttons */
.h-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.h-store, .h-ghost, .h-solid, .h-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
}
.h-store { background: #ffffff; color: var(--night); }
.h-store:hover { background: #efeaf9; color: var(--night); }
.h-ghost { border: 1.5px solid var(--night-edge); color: #ffffff; }
.h-ghost:hover { border-color: #ffffff; color: #ffffff; }
.h-solid { padding: 0 26px; background: #7b4dff; color: #ffffff; }
.h-solid:hover { background: #5e30c4; color: #ffffff; }
.h-outline { border: 1.5px solid var(--accent); color: var(--link); }
.h-outline:hover { background: var(--icon-bg); }
.h-arrow::after { content: " \2192"; white-space: pre; }
[dir="rtl"] .h-arrow::after { content: " \2190"; }
.h-more { margin-top: 22px; }
.h-more a { font-weight: 600; }

/* Feature icon in a tinted square. */
.h-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--icon-bg);
  color: var(--icon);
}
.h-icon .icon { width: 28px; height: 28px; }

/* "Due this week" — an illustration of the app, fixed light colours. */
.h-cardcol { flex-basis: 420px; display: flex; justify-content: center; }
.h-due {
  width: 100%;
  max-width: 440px;
  padding: 22px;
  border-radius: 28px;
  background: #ffffff;
  color: #1d1a26;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.h-due-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 6px 14px; }
.h-due-title { font-size: 22px; }
.h-due-space, .h-due-meta, .h-due-list { font-size: 13px; color: #5f5970; }
.h-due-rows { display: flex; flex-direction: column; gap: 10px; }
.h-due-rows li { border: 1px solid #e6e0f2; border-radius: 16px; padding: 14px 16px; }
.h-due-rows li.h-due-tint { background: #faf8fe; }
.h-due-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.h-due-top p { font-weight: 600; min-width: 0; }
.h-due-meta { margin-top: 6px; }
.h-date {
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: #efeaf9;
  color: #4a239e;
  font-size: 12px;
  font-weight: 600;
}
.h-date--soon { background: var(--sun); color: #1d1a26; }
.h-due-list { flex: none; }
.h-via { font-weight: 600; color: #4a239e; }
.h-undo { font-weight: 600; color: #5e30c4; text-decoration: underline; }
.h-ask {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 8px;
  padding-inline-start: 18px;
  border-radius: 999px;
  background: #f6f3fc;
}
.h-ask p { flex: 1; font-size: 14px; color: #5f5970; }
.h-mic {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #7b4dff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Sources and chips */
.h-sources { padding: 72px 0; }
.page .h-eyebrow {
  max-width: none;
  text-align: center;
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.h-sources-p {
  margin: 14px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: 18px;
  line-height: 1.5;
}
.h-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.h-chips li { border: 1px solid var(--border); border-radius: 999px; padding: 10px 18px; font-weight: 500; }
.h-chips--start { justify-content: flex-start; margin-top: 0; }
.h-chips--sm { justify-content: flex-start; gap: 8px; margin-top: 20px; }
.h-chips--sm li { padding: 5px 12px; font-size: 14px; background: var(--card); }

/* Card rows (steps, spaces, contact) */
.h-cards { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; }
.h-cards li { flex: 1 1 300px; min-width: 0; background: var(--card); border-radius: 22px; padding: 30px; }
.h-cards h3 { margin: 12px 0 8px; font-size: 21px; }
.h-cards p { color: var(--muted); }
/* The number is a <p>: .h-cards .h-num, or .h-cards p would turn it grey. */
.h-num, .h-cards .h-num { font-size: 44px; line-height: 1.2; color: var(--accent); }
.h-spaces { gap: 20px; margin-top: 44px; }
.h-spaces li { flex-basis: 250px; padding: 26px; }
.h-spaces h3 { margin: 0 0 6px; font-size: 19px; }
.h-spaces p { font-size: 15px; }
.h-steps--4 li { flex-basis: 220px; }
.h-steps--4 .h-num + p { margin-top: 8px; color: var(--fg); }

/* Assistant ledger */
.h-checks { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.h-checks li { display: flex; gap: 12px; align-items: flex-start; }
.h-checks svg { flex: none; margin-top: 2px; color: var(--accent); }
.h-panel { background: var(--night); color: #ffffff; border-radius: 28px; padding: 28px; }
.h-panel-title { margin-bottom: 16px; font-weight: 600; color: var(--on-night); }
.h-panel ul { display: flex; flex-direction: column; gap: 10px; }
.h-panel li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--night-2);
  border-radius: 16px;
  padding: 14px 16px;
}
.h-panel li > div { min-width: 0; }
.h-panel-name { font-weight: 600; }
.h-panel-meta { margin-top: 2px; font-size: 13px; color: var(--on-night-muted); }
.h-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--night-edge);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

/* Trust */
.h-trust { padding: 72px 0; }
.h-trust ul.h-wrap { display: flex; flex-wrap: wrap; gap: 32px; }
.h-trust li { flex: 1 1 220px; min-width: 0; }
.h-trust h3 { margin: 0 0 6px; font-size: 18px; }
.h-trust p { color: var(--muted); font-size: 15px; }

/* Pricing */
.page .h-night { background: var(--night); color: #ffffff; }
.h-night h2 { max-width: none; text-align: center; }
.h-plans { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 48px; }
.h-plan {
  flex: 1 1 340px;
  max-width: 460px;
  min-width: 0;
  padding: 34px;
  border-radius: 26px;
  background: var(--night-2);
}
.h-plan h3 { margin: 0; font-size: 22px; }
.h-amount { margin-top: 8px; font-size: 44px; line-height: 1.2; }
.h-amount span { font-family: var(--font-text); font-size: 17px; font-weight: 500; color: #5f5970; }
.h-plan ul { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; color: var(--on-night); }
.h-plan--plus { background: #ffffff; color: #1d1a26; }
.h-plan--plus ul { color: #1d1a26; }
.h-plan-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.h-trial { padding: 4px 10px; border-radius: 999px; background: var(--sun); font-size: 13px; font-weight: 600; }
.h-year { margin-top: 4px; color: #5f5970; font-size: 15px; }

/* Developer teaser (home) */
.page .h-dev { padding: 88px 0; }
.h-dev h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.1; }
.h-dev .h-sub { margin-top: 16px; max-width: 520px; }
.h-code {
  flex-basis: 420px;
  padding: 24px 26px;
  border-radius: 20px;
  background: #1d1a26;
  color: #e9e4f7;
}
.h-code p { margin-bottom: 10px; font-size: 13px; color: #a9a2b8; }
.h-code pre, .h-pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.6;
  /* Addresses are long: wrap them rather than scroll a box on a phone. */
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
}

/* Final call to action */
.h-get { text-align: center; }
.h-get .h-wrap { max-width: 760px; }
.h-get h2 {
  max-width: none;
  text-align: center;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.h-get .h-sub { margin: 16px auto 0; }
.h-get .h-actions { justify-content: center; margin-top: 32px; }

/* /developers: the four steps, numbered like the home's three. */
.h-flow { display: flex; flex-direction: column; gap: 24px; }
.h-flow > li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px 24px;
  padding: 36px;
  border-radius: 22px;
  background: var(--card);
}
.h-flow .h-num { line-height: 1; }
.h-flow h2 { max-width: none; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; }
.h-flow > li > div > p { margin-top: 14px; max-width: 760px; color: var(--muted); }
/* The three connection steps of /developers (AHM-1009): a plain numbered list inside step 1. */
.h-steps { list-style: decimal; margin: 14px 0 0; padding-inline-start: 1.4em; max-width: 760px; color: var(--muted); }
.h-steps > li { margin-top: 10px; padding-inline-start: 0.2em; }
.h-steps .h-pre { margin-top: 10px; }
.h-pre {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  background: #1d1a26;
  color: #e9e4f7;
  font-size: 14px;
}
.h-clients { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.h-clients > div { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; }
.h-clients h3 { margin: 0; font-size: 18px; }
.h-clients p { margin-top: 8px; color: var(--muted); font-size: 15px; }
.h-limits .h-sub { max-width: 760px; }

/* /app: the four pillars, the screenshots, the languages, what it is not. */
.h-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.h-pillars > li { min-width: 0; padding: 32px; border-radius: 22px; background: var(--bg-alt); }
.h-pillars h3 { margin: 18px 0 8px; font-size: 22px; line-height: 1.2; }
.h-pillars p { color: var(--muted); }
.h-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 900px;
  margin-top: 48px;
}
.h-shots figure { text-align: center; }
.h-shots img {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 20px 50px var(--shadow);
}
.h-shots figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.h-langs h2 { margin-top: 20px; }
.h-promise { padding: 72px 0; border-top: 1px solid var(--border); }
.h-promise p {
  max-width: 760px;
  padding-inline-start: 18px;
  border-inline-start: 3px solid var(--accent);
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
}

/* /faq-mobile: topic on the left, its questions on the right. */
.h-faq-group {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 20px 64px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
}
.h-faq-group:first-child { padding-top: 0; border-top: 0; }
.h-faq-group:last-child { padding-bottom: 0; }
.h-faq-group h2 {
  align-self: start;
  position: sticky;
  top: 24px;
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.h-faq-qas { display: flex; flex-direction: column; gap: 32px; max-width: 720px; }
.h-faq-qa h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.35; font-weight: 600; }
.h-faq-qa p { color: var(--muted); }
.h-faq-qa strong, .h-faq-qa em { color: var(--fg); }

/* /contact-mobile */
.h-contact { margin-top: 0; }
.h-contact li { background: var(--bg-alt); }
.h-label { margin-bottom: 10px; font-weight: 600; }
.page .h-label { color: var(--fg); }
.h-contact a { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.h-contact address { font-style: normal; color: var(--muted); }

/* /checkpad-landing */
.h-media img { display: block; width: 100%; border-radius: 26px; }

/* ---------------------------------------------------------------------------
   Legal pages (privacy, terms): readable text under the shared header.
   ------------------------------------------------------------------------- */
main.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px clamp(16px, 4vw, 24px) 88px;
  font-size: 17px;
  line-height: 1.65;
}
main.article h1, main.article h2 { font-family: var(--font-head); font-weight: 700; text-wrap: balance; }
main.article h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
main.article h2 { margin: 52px 0 12px; font-size: clamp(22px, 2.4vw, 27px); line-height: 1.2; letter-spacing: -0.01em; }
main.article h3 { margin: 30px 0 8px; font-size: 19px; line-height: 1.35; }
main.article li + li { margin-top: 6px; }
/* The privacy policy lists each data right as a heading inside an <li>; those
   were <h4> under an <h2> (a skipped level) and are now <h3>, so keep them
   sized and spaced like list text rather than like a section heading. */
main.article li h3 { font-size: 1rem; margin-top: 0; margin-bottom: 0.2rem; }
main.article .lede { color: var(--muted); }
main.article code { font-family: var(--font-mono); font-size: 0.9em; overflow-wrap: anywhere; }
/* Tables wrapped in their own scroll container so a wide row cannot make the
   page itself scroll sideways on a phone -- these pages open inside the app. */
main.article table {
  display: block;
  overflow-x: auto;
  width: 100%;
  border-collapse: collapse;
  margin: 1.2rem 0;
  font-size: 0.94rem;
}
main.article th,
main.article td {
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
  text-align: left;
  vertical-align: top;
}
main.article th {
  background: var(--bg-alt);
  font-weight: 600;
}

/* ---------------------------------------------------------------------------
   applinks and 404: centred, no header, no footer.
   ------------------------------------------------------------------------- */
.stores { margin: 0; }
.btn {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  padding: 0.75rem 1.4rem;
  border-radius: 14px;
  margin: 0.3rem 0.35rem;
  font-weight: 600;
}
.btn:hover { background: var(--brand-hover); }
.btn.outline {
  background: transparent;
  color: var(--link);
  border: 2px solid var(--brand-2);
}
.btn.outline:hover { background: var(--icon-bg); }
main.minimal {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem;
  gap: 0.5rem;
}
main.minimal img.mark { width: 96px; height: 96px; border-radius: 24px; }
main.minimal h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); margin: 0.5rem 0 0; }

/* ---------------------------------------------------------------------------
   Footer — dark on every page, the night colour.
   ------------------------------------------------------------------------- */
footer.site {
  background: var(--night);
  color: var(--on-night);
  padding: 56px 0 40px;
  font-family: var(--font-text);
  font-size: 15px;
}
footer.site p { margin: 0; }
footer.site a { color: var(--on-night); text-decoration: none; }
footer.site a:hover { color: #ffffff; text-decoration: underline; }
.f-cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.f-brand { flex: 1 1 260px; min-width: 0; }
.f-brand img { height: 34px; width: auto; display: block; }
.f-brand p { margin-top: 12px; color: var(--on-night-muted); max-width: 300px; }
.f-cols nav { flex: 0 1 160px; display: flex; flex-direction: column; gap: 10px; }
.f-cols nav p { margin-bottom: 4px; color: #ffffff; font-weight: 600; }
.f-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--night-line);
  font-size: 14px;
  color: var(--on-night-muted);
}
.f-langs { display: flex; flex-wrap: wrap; gap: 4px 0; }
footer.site .f-langs a { color: var(--on-night-muted); }
.f-langs a + a::before { content: "·"; padding: 0 0.45em; color: var(--on-night-muted); }
footer.site .f-langs a[aria-current] { color: #ffffff; }

/* ---------------------------------------------------------------------------
   Responsive
   860px: the FAQ's topic column goes above its questions.
   760px: the /app pillars stack; three phone screenshots become a snapping
          horizontal strip rather than a very long column.
   560px: phone padding, full-width buttons, one-column steps.
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .h-faq-group { grid-template-columns: minmax(0, 1fr); padding: 40px 0; }
  .h-faq-group h2 { position: static; }
}
@media (max-width: 760px) {
  .h-pillars { grid-template-columns: minmax(0, 1fr); }
  .h-shots {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 62%;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 12px;
  }
  .h-shots figure { scroll-snap-align: center; }
}
@media (max-width: 560px) {
  .page { font-size: 16px; }
  .h-hero { padding: 24px 0 64px; }
  .h-hero--page { padding: 32px 0 56px; }
  .h-hero--page .h-lead { font-size: 17px; }
  .page .h-sec, .page .h-dev { padding: 64px 0; }
  .h-sources, .h-trust, .h-promise { padding: 56px 0; }
  .h-split { gap: 40px; }
  .h-tagline { font-size: 20px; }
  .h-cards li, .h-plan, .h-pillars > li { padding: 24px; }
  .h-panel { padding: 20px; }
  .h-due { padding: 16px; }
  .h-actions > a { flex: 1 1 100%; justify-content: center; }
  .h-badge { border-radius: 16px; }
  .h-flow > li { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .h-pre { padding: 14px 16px; font-size: 13px; }
  main.article { padding-top: 40px; font-size: 16px; }
  .btn { display: block; margin: 0.5rem auto; max-width: 20rem; }
}

/* Official store badges (Apple and Google artwork, unmodified; their clear space is built in). */
.h-badge { display: inline-flex; align-items: center; line-height: 0; border-radius: 10px; }
.h-badge img { display: block; width: auto; }
.h-badge-apple { height: 48px; }
.h-badge-play { height: 70px; margin: -11px -10px; } /* the Google PNG carries its own padding */
.f-tm { font-size: 12px; opacity: 0.7; max-width: 720px; }
