/* Reitera website.
   Layout: one editorial column (max 1180px). The consistency map opens the
   page, each "how it works" step lets you try the real gesture, and the
   legal pages share the same type in a narrow reading column.
   Colours are the app's own tokens (after the Nov 2026 contrast pass). */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/assets/fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  /* colour */
  --bg: #F2F3F0;
  --card: #FFFFFF;
  --track: #E6E8E2;
  --line: #DCDFD8;
  --ink: #16171B;
  --muted: #565A62;
  --outline: #8C9097;
  --accent: #C8F03C;
  --on-accent: #16171B;
  --deep: #3F6212;            /* the accent as text on light */
  --solid: #16171B;
  --on-solid: #FFFFFF;
  --flame: #C2410C;
  --good: #15803D;
  --band: #16171B;
  --band-card: #22252B;
  --band-ink: #F2F3EE;
  --band-muted: #A9ADB5;
  --h0: #E6E8E2; --h1: #C9DE84; --h2: #A6C63F; --h3: #84A626; --h4: #5F8318; --h5: #3F6212;
  --t-green: #15803D; --t-blue: #2563EB; --t-violet: #7C3AED; --t-orange: #C2410C;
  --shadow: 0 1px 2px rgb(22 23 27 / .05), 0 18px 40px -12px rgb(22 23 27 / .12);
  --glass-top: color-mix(in srgb, var(--bg) 82%, transparent);

  /* type */
  --f-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-text: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: clamp(.875rem, .85rem + .1vw, .95rem);
  --step-0: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);   /* body: 17 → 19px */
  --step-1: clamp(1.25rem, 1.15rem + .45vw, 1.5rem);
  --step-2: clamp(1.5rem, 1.3rem + .9vw, 2rem);
  --step-3: clamp(2.375rem, 1.6rem + 3.4vw, 4.25rem);
  --step-4: clamp(3.75rem, 2rem + 8.5vw, 9rem);

  /* shape and motion */
  --r-btn: 14px;
  --r-card: 26px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.45, .5, 1);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0D10; --card: #17191E; --track: #24272E; --line: #2A2D34;
    --ink: #F2F3EE; --muted: #A2A6AE; --outline: #6E727B;
    --deep: #C8F03C; --solid: #C8F03C; --on-solid: #16171B;
    --flame: #FF9A3C; --good: #4ADE80;
    --band: #17191E; --band-card: #22252B;
    --h0: #24272E; --h1: #33421A; --h2: #4F6B1C; --h3: #739A22; --h4: #9CC627; --h5: #C8F03C;
    --t-green: #4ADE80; --t-blue: #60A5FA; --t-violet: #A78BFA; --t-orange: #FB923C;
    --shadow: 0 0 0 1px rgb(255 255 255 / .04);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0D10; --card: #17191E; --track: #24272E; --line: #2A2D34;
  --ink: #F2F3EE; --muted: #A2A6AE; --outline: #6E727B;
  --deep: #C8F03C; --solid: #C8F03C; --on-solid: #16171B;
  --flame: #FF9A3C; --good: #4ADE80;
  --band: #17191E; --band-card: #22252B;
  --h0: #24272E; --h1: #33421A; --h2: #4F6B1C; --h3: #739A22; --h4: #9CC627; --h5: #C8F03C;
  --t-green: #4ADE80; --t-blue: #60A5FA; --t-violet: #A78BFA; --t-orange: #FB923C;
  --shadow: 0 0 0 1px rgb(255 255 255 / .04);
  color-scheme: dark;
}

/* ---- base ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 30;
  background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.03em; text-wrap: balance; }
p, ul, ol, dl, figure { margin: 0; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--accent); color: var(--on-accent); }

.skip {
  position: absolute; left: var(--gutter-l); top: -100px; z-index: 40;
  padding: 12px 16px; border-radius: var(--r-btn);
  background: var(--solid); color: var(--on-solid); font-weight: 700; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(1180px + var(--gutter-l) + var(--gutter-r));
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.section { padding-block: clamp(72px, 9vw, 128px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 var(--step--1)/1 var(--f-text);
  letter-spacing: .12em; text-transform: uppercase; color: var(--deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.h2 { font-size: var(--step-3); line-height: 1.02; margin-top: 18px; letter-spacing: -.04em; }
.lead { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 34ch; margin-top: 20px; }
.muted { color: var(--muted); }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: var(--r-btn);
  font: 700 1.0625rem/1 var(--f-text); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease-out), background-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-solid { background: var(--solid); color: var(--on-solid); }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-ghost { background: var(--track); color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 1rem; }

/* ---- header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--glass-top);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 72px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font: 700 1.375rem/1 var(--f-display); letter-spacing: -.03em; text-decoration: none;
}
.brand svg { width: 34px; height: 34px; transition: transform .6s var(--ease-spring); }
.brand:hover svg { transform: rotate(-200deg); }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 10px 14px; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 1rem; color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav a:hover { color: var(--ink); background: var(--track); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: var(--r-btn); background: var(--track); color: var(--ink); cursor: pointer;
  text-decoration: none; font: 700 .875rem/1 var(--f-text); letter-spacing: .04em;
  transition: transform .2s var(--ease-out), background-color .2s;
}
.icon-btn:hover { transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-btn .to-light { display: none; }
:root[data-theme="dark"] .theme-btn .to-dark { display: none; }
:root[data-theme="dark"] .theme-btn .to-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .to-dark { display: none; }
  :root:not([data-theme="light"]) .theme-btn .to-light { display: block; }
}
@media (max-width: 760px) { .nav { display: none; } }
@media (max-width: 400px) { .bar .btn { display: none; } }

/* ---- hero ------------------------------------------------------------- */
.hero { padding-block: clamp(40px, 7vw, 88px) clamp(56px, 7vw, 96px); }
.hero-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 56px; align-items: end; }
.hero h1 {
  margin-top: 22px;
  font-size: var(--step-4); line-height: .88; letter-spacing: -.055em;
}
.hero h1 .line { display: block; }
.hero h1 mark {
  position: relative; z-index: 0; background: none; color: inherit; white-space: nowrap;
}
.hero h1 mark::after {
  content: ""; position: absolute; z-index: -1; left: -.04em; right: -.04em; bottom: .04em; height: .26em;
  background: var(--accent); border-radius: .08em; transform-origin: left center;
}
.hero-side p { font-size: var(--step-1); line-height: 1.5; color: var(--muted); max-width: 30ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.ticks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; padding: 0; list-style: none; font-weight: 600; font-size: 1rem; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; }
.ticks svg { width: 18px; height: 18px; color: var(--deep); }
@media (max-width: 880px) { .hero-top { grid-template-columns: minmax(0, 1fr); } }

/* The consistency map */
.map-card {
  margin-top: clamp(40px, 6vw, 64px);
  padding: clamp(18px, 3vw, 32px);
  background: var(--card); border-radius: calc(var(--r-card) + 6px); box-shadow: var(--shadow);
}
.map-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.map-head h2 { font-size: var(--step-2); letter-spacing: -.03em; }
.map-head p { color: var(--muted); font-size: 1rem; margin-top: 6px; }
.stats { display: flex; gap: 32px; }
.stat { display: grid; gap: 6px; }
.stat strong { font: 700 clamp(2rem, 1.6rem + 1.6vw, 2.75rem)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.stat strong svg { width: .8em; height: .8em; color: var(--flame); }
.stat > span { font-size: .9375rem; font-weight: 600; color: var(--muted); }
.map-body { display: flex; gap: 8px; margin-top: 24px; }
.map-days { display: grid; grid-template-rows: repeat(7, var(--cell, 16px)); gap: var(--gap, 4px); padding-top: 22px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.map-days span { line-height: var(--cell, 16px); }
.map { flex: 1; min-width: 0; }
.map-months { display: grid; grid-auto-flow: column; grid-auto-columns: var(--cell, 16px); gap: var(--gap, 4px); height: 22px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.map-months span { white-space: nowrap; }
.cells { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, var(--cell, 16px)); grid-auto-columns: var(--cell, 16px); gap: var(--gap, 4px); }
.cell {
  width: var(--cell, 16px); height: var(--cell, 16px); padding: 0; border: 0; border-radius: 4px;
  background: var(--h0); cursor: pointer;
  transition: transform .15s var(--ease-out), background-color .25s;
}
.cell:hover { transform: scale(1.3); }
.cell:focus-visible { outline-width: 2px; outline-offset: 1px; border-radius: 4px; }
.cell[data-l="1"] { background: var(--h1); }
.cell[data-l="2"] { background: var(--h2); }
.cell[data-l="3"] { background: var(--h3); }
.cell[data-l="4"] { background: var(--h4); }
.cell[data-l="5"] { background: var(--h5); }
.cell.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.cell.is-future:hover { transform: none; }
.cell.is-today { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--ink); }
.cell.is-bump { animation: bump .35s var(--ease-spring); }
.map-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; font-size: .9375rem; color: var(--muted); }
.hint { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2.2s infinite; }
.legend { display: inline-flex; align-items: center; gap: 4px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend i:nth-of-type(1) { background: var(--h0); }
.legend i:nth-of-type(2) { background: var(--h1); }
.legend i:nth-of-type(3) { background: var(--h2); }
.legend i:nth-of-type(4) { background: var(--h3); }
.legend i:nth-of-type(5) { background: var(--h4); }
.legend i:nth-of-type(6) { background: var(--h5); }

/* ---- how it works ----------------------------------------------------- */
.steps-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; }
.steps-head .lead { margin-top: 0; }
@media (max-width: 880px) { .steps-head { grid-template-columns: minmax(0, 1fr); } }
.step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 0 32px; padding-top: clamp(48px, 6vw, 80px); }
.step-n {
  font: 700 var(--step-3)/1 var(--f-display); letter-spacing: -.05em; color: transparent;
  -webkit-text-stroke: 1.5px var(--outline);
}
.step h3 { font-size: var(--step-2); line-height: 1.15; }
.step-intro { color: var(--muted); max-width: 52ch; margin-top: 10px; }
@media (max-width: 960px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step-n { font-size: 3.5rem; margin-bottom: 14px; }
}

/* Step 1: choosing when */
.picker { margin-top: 28px; display: grid; gap: 14px; max-width: 640px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; margin: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font-weight: 600; font-size: 1rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px;
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s var(--ease-out);
}
.seg span:hover { transform: translateY(-1px); }
.seg input:checked + span { background: var(--solid); color: var(--on-solid); }
.seg input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.week { display: flex; gap: 8px; margin-top: 4px; }
.week span {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--track); color: var(--muted); font-weight: 700; font-size: .9375rem;
  transition: background-color .25s, color .25s, transform .3s var(--ease-spring);
}
.week span.is-on { background: var(--accent); color: var(--on-accent); transform: scale(1.06); }
.picker-out { font-weight: 600; min-height: 1.6em; }

/* Step 2: the four ways to mark */
.mark-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 16px; margin-top: 28px; }
.card {
  background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: clamp(20px, 2.4vw, 28px);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.kind { font: 600 .8125rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.card h4 { font-size: var(--step-1); line-height: 1.2; margin-top: 10px; letter-spacing: -.02em; }
.card .sub { color: var(--muted); font-size: 1rem; margin-top: 6px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 20px; padding: 14px; border-radius: 18px; background: var(--bg); }
.row-top { align-items: flex-start; }
.tile { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; }
.tile svg { width: 22px; height: 22px; }
.tile-green { color: var(--t-green); background: color-mix(in srgb, var(--t-green) 14%, var(--card)); }
.tile-blue { color: var(--t-blue); background: color-mix(in srgb, var(--t-blue) 14%, var(--card)); }
.tile-violet { color: var(--t-violet); background: color-mix(in srgb, var(--t-violet) 14%, var(--card)); }
.row-txt { flex: 1; min-width: 0; }
.row-name { font-weight: 700; font-size: 1.0625rem; }
.row-meta { font-size: .9375rem; color: var(--muted); }
.row-meta b { color: var(--ink); font-variant-numeric: tabular-nums; }
.check {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; border: 1.5px solid var(--outline); background: var(--track); cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .15s var(--ease-out);
}
.check svg { width: 22px; height: 22px; color: var(--outline); }
.check svg path { stroke-dasharray: 24; stroke-dashoffset: 0; }
.check[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
.check[aria-pressed="true"] svg { color: var(--on-accent); }
.check[aria-pressed="true"] svg path { animation: draw .35s var(--ease-out) both; }
.check:active { transform: scale(.9); }
.check::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--accent);
  opacity: 0; pointer-events: none;
}
.check.is-burst::after { animation: ring .55s var(--ease-out); }
.glasses { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.glass { width: 36px; height: 44px; padding: 2px; border: 0; background: none; color: var(--outline); cursor: pointer; transition: transform .15s var(--ease-out); }
.glass:hover { transform: translateY(-2px); }
.glass svg { width: 100%; height: 100%; }
.glass .water { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform .35s var(--ease-out); }
.glass.is-on { color: var(--t-blue); }
.glass.is-on .water { transform: scaleY(1); }
.big-num { margin-top: 18px; font: 700 clamp(3rem, 2.4rem + 2vw, 4rem)/1 var(--f-display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.big-num small { margin-left: 8px; font: 600 1rem/1 var(--f-text); letter-spacing: 0; color: var(--muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.btn-row .btn { flex: 1 1 150px; }
.note { margin-top: 14px; min-height: 3.2em; font-size: .9375rem; color: var(--muted); }
.task-steps { display: grid; gap: 10px; margin-top: 12px; padding: 0; list-style: none; }
.task-steps label { display: flex; align-items: center; gap: 12px; min-height: 32px; cursor: pointer; font-weight: 500; font-size: 1rem; }
.task-steps input {
  appearance: none; display: grid; place-items: center; width: 24px; height: 24px; margin: 0; flex: none;
  border: 1.5px solid var(--outline); border-radius: 7px; background: var(--card); cursor: pointer;
  transition: background-color .2s, border-color .2s;
}
.task-steps input::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border: solid var(--on-accent); border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0);
  transition: transform .2s var(--ease-spring);
}
.task-steps input:checked { background: var(--accent); border-color: var(--accent); }
.task-steps input:checked::after { transform: rotate(-45deg) scale(1); }
.task-steps input:checked + span { color: var(--muted); text-decoration: line-through; }

/* Step 3: the streak */
.streak-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: center; margin-top: 28px; }
@media (max-width: 880px) { .streak-grid { grid-template-columns: minmax(0, 1fr); } }
.rules { display: grid; gap: 22px; padding: 0; list-style: none; }
.rules li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; }
.rules .ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--accent); color: var(--on-accent); }
.rules .ico svg { width: 20px; height: 20px; }
.rules b { display: block; font-size: 1.125rem; }
.rules span { color: var(--muted); font-size: 1rem; }
.flame-card { display: grid; justify-items: center; text-align: center; padding: 36px 28px 28px; }
.flame-box { display: grid; place-items: end center; height: 170px; }
.flame { width: 132px; height: 165px; overflow: visible; transform-origin: 50% 100%; transition: transform .45s var(--ease-spring); }
.flame .glow, .flame .tongue, .flame .logs, .flame .orbit, .flame .rays { opacity: 0; transition: opacity .35s; }
.flame .rays, .flame .orbit { transform-origin: 60px 84px; }
.flame .outer { transform-origin: 50% 100%; animation: flicker 2.4s ease-in-out infinite; }
.flame .core { transform-origin: 50% 100%; animation: flicker 1.7s ease-in-out infinite reverse; transition: opacity .3s; }
.flame stop { transition: stop-color .4s; }
.streak-num { margin-top: 12px; font: 700 clamp(4rem, 3rem + 3vw, 5.5rem)/1 var(--f-display); letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.stage { margin-top: 6px; font-weight: 700; font-size: 1.125rem; }
.stage-next { color: var(--muted); font-size: 1rem; }
.slider-label { margin-top: 22px; font-weight: 600; font-size: .9375rem; color: var(--muted); }
.slider { width: 100%; height: 32px; margin-top: 6px; accent-color: var(--ink); cursor: pointer; }
.miles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; width: 100%; margin-top: 10px; padding: 0; list-style: none; }
.miles li { padding: 9px 0; border-radius: 12px; background: var(--track); color: var(--muted); font-size: .875rem; font-weight: 700; transition: background-color .25s, color .25s; }
.miles li.is-on { background: var(--accent); color: var(--on-accent); }

/* ---- band: without opening the app ------------------------------------ */
.band-outer { padding-inline: max(8px, env(safe-area-inset-left, 0px)) max(8px, env(safe-area-inset-right, 0px)); }
.band { background: var(--band); color: var(--band-ink); border-radius: clamp(28px, 4vw, 44px); }
.band .eyebrow { color: #C8F03C; }
.band .lead { color: var(--band-muted); }
.band-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 44px; }
@media (max-width: 960px) { .band-grid { grid-template-columns: minmax(0, 1fr); max-width: 520px; } }
.bcard { padding: 20px; border-radius: var(--r-card); background: var(--band-card); }
.cap { margin-bottom: 14px; font-size: .875rem; font-weight: 600; color: var(--band-muted); }
.phone-ui { background: #F2F3EE; color: #16171B; border-radius: 22px; padding: 16px; }
.notif-top { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: #565A62; }
.notif-top svg { width: 18px; height: 18px; }
.notif b { display: block; margin-top: 8px; font-size: 1.0625rem; }
.notif p { font-size: 1rem; }
.notif-acts { display: flex; gap: 20px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #DCDFD8; }
.notif-acts button { min-height: 40px; padding: 0; border: 0; background: none; font-weight: 700; color: #3F6212; cursor: pointer; }
.notif-acts button + button { color: #565A62; }
.notif.is-done .notif-acts button:first-child { color: #15803D; }
.w-list { padding: 0; list-style: none; }
.w-head { display: flex; justify-content: space-between; margin-bottom: 10px; font: 700 1rem/1 var(--f-display); }
.w-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .9375rem; font-weight: 600; }
.w-row i { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid #8C9097; background: #E6E8E2; }
.w-row i.is-on { background: #C8F03C; border-color: #C8F03C; }
.w-row i svg { width: 13px; height: 13px; }
.w-row small { margin-left: auto; font-size: .8125rem; font-weight: 600; color: #565A62; }
.w-streak { display: flex; align-items: baseline; gap: 8px; font: 700 2rem/1 var(--f-display); }
.w-streak small { font: 600 .875rem/1 var(--f-text); color: #565A62; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; margin-top: 14px; }
.bars span { flex: 1; height: var(--h, 50%); border-radius: 6px; background: #C8F03C; transform-origin: 50% 100%; }
.bars span.is-low { background: #DCDFD8; }
.bars-days { display: flex; gap: 6px; margin-top: 8px; font-size: .75rem; font-weight: 600; color: #565A62; }
.bars-days span { flex: 1; text-align: center; }

/* ---- extras and privacy ----------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--r-btn);
  background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 1rem;
  transition: transform .2s var(--ease-out);
}
.chips li:hover { transform: translateY(-2px) rotate(-.5deg); }
.chips svg { width: 20px; height: 20px; color: var(--deep); }
.promise { font-size: var(--step-3); line-height: 1; letter-spacing: -.045em; margin-top: 18px; max-width: 14ch; }
.promise span { color: var(--muted); }
.priv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
@media (max-width: 760px) { .priv-grid { grid-template-columns: minmax(0, 1fr); } }
.priv { padding-top: 18px; border-top: 2px solid var(--ink); }
.priv b { display: block; font: 700 var(--step-1)/1.2 var(--f-display); letter-spacing: -.02em; }
.priv p { margin-top: 10px; color: var(--muted); }
.more-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 32px; font-weight: 700; }
.more-link svg { width: 18px; height: 18px; transition: transform .2s var(--ease-out); }
.more-link:hover svg { transform: translateX(4px); }

/* ---- FAQ -------------------------------------------------------------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px 64px; }
@media (max-width: 880px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 18px 0;
  list-style: none; cursor: pointer; font: 600 var(--step-1)/1.3 var(--f-display); letter-spacing: -.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 6px;
  background: linear-gradient(currentColor 0 0) center / 100% 2px no-repeat, linear-gradient(currentColor 0 0) center / 2px 100% no-repeat;
  color: var(--muted); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding-bottom: 22px; color: var(--muted); max-width: 62ch; }
.faq .answer p + p { margin-top: 10px; }

/* ---- download --------------------------------------------------------- */
.get {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 32px 48px; align-items: center;
  padding: clamp(32px, 6vw, 72px); border-radius: clamp(28px, 4vw, 44px);
  background: var(--accent); color: #16171B;
}
.get .eyebrow { color: #3F6212; }
.get .h2 { max-width: 13ch; }
.get p { margin-top: 18px; font-size: var(--step-1); color: #2B2E33; max-width: 34ch; }
.get .btn { background: #16171B; color: #FFFFFF; }
.get small { display: block; margin-top: 12px; font-size: .9375rem; color: #2B2E33; }
.get-art { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; max-width: 320px; justify-self: end; width: 100%; }
.get-art span { aspect-ratio: 1; max-width: 100%; border-radius: 6px; background: rgb(22 23 27 / var(--a, .12)); }
@media (max-width: 760px) { .get { grid-template-columns: minmax(0, 1fr); } .get-art { justify-self: start; max-width: 260px; } }

/* ---- footer ----------------------------------------------------------- */
.site-footer { padding-block: 64px calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 1rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
.foot-brand .brand { color: var(--ink); margin-right: 0; }
.foot-brand p { margin-top: 14px; max-width: 32ch; }
.foot-col h2 { margin-bottom: 14px; font: 600 .8125rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.foot-col ul { display: grid; gap: 10px; padding: 0; list-style: none; }
.foot-col a { text-decoration: none; }
.foot-col a:hover { color: var(--ink); text-decoration: underline; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; }

/* ---- legal pages ------------------------------------------------------ */
.legal { padding-block: clamp(40px, 6vw, 80px) 40px; }
.legal-head { max-width: 760px; }
.legal-head h1 { margin-top: 18px; font-size: var(--step-3); line-height: 1; letter-spacing: -.045em; }
.legal-head h1 + p { margin-top: 18px; color: var(--muted); font-size: var(--step-1); line-height: 1.5; }
.legal-head .legal-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; margin-top: 56px; align-items: start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.toc { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); font-size: .9375rem; }
.toc h2 { margin-bottom: 12px; font: 600 .8125rem/1 var(--f-text); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 8px; padding: 0; list-style: none; counter-reset: toc; }
.toc a { display: block; color: var(--muted); text-decoration: none; }
.toc a:hover, .toc a[aria-current="true"] { color: var(--ink); }
@media (max-width: 960px) { .toc { position: static; padding: 20px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow); } }
.prose { max-width: 68ch; }
.prose section + section { margin-top: 48px; }
.prose h2 { font-size: var(--step-2); line-height: 1.15; }
.prose h3 { margin-top: 24px; font-size: var(--step-1); letter-spacing: -.02em; }
.prose p, .prose ul, .prose ol { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--ink); font-weight: 600; }
.prose strong { color: var(--ink); }
.prose .callout { margin-top: 18px; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.table-wrap { margin-top: 18px; overflow-x: auto; border-radius: 18px; box-shadow: var(--shadow); background: var(--card); }
.prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 1rem; }
.prose th, .prose td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose tr:last-child td { border-bottom: 0; }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--track); font-size: .9em; }

/* ---- 404 -------------------------------------------------------------- */
.lost { display: grid; place-items: start; gap: 18px; padding-block: clamp(64px, 12vw, 160px); }
.lost h1 { font-size: var(--step-4); line-height: .9; letter-spacing: -.055em; }
.lost p { color: var(--muted); font-size: var(--step-1); max-width: 34ch; }

/* ---- motion ----------------------------------------------------------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes underline { from { transform: scaleX(0); } }
@keyframes cell-in { from { opacity: 0; transform: scale(.4); } }
@keyframes bump { 50% { transform: scale(1.45); } }
@keyframes draw { from { stroke-dashoffset: 24; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes flicker { 0%, 100% { transform: scale(1, 1) skewX(0deg); } 30% { transform: scale(.97, 1.04) skewX(-1.5deg); } 60% { transform: scale(1.02, .97) skewX(1deg); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes slide-in { from { opacity: 0; transform: translateY(-14px) scale(.97); } }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1 .line, .hero-side { animation: rise .8s var(--ease-out) backwards; }
  .hero h1 .line:nth-child(2) { animation-delay: .08s; }
  .hero-side { animation-delay: .18s; }
  .hero h1 mark::after { animation: underline .7s .45s var(--ease-out) backwards; }
  .cells.is-intro .cell { animation: cell-in .45s var(--ease-out) backwards; animation-delay: calc(var(--col, 0) * 14ms + 200ms); }
  /* Only what starts below the first screen waits for the scroll. */
  .js .reveal.is-waiting { opacity: 0; transform: translateY(28px); }
  .js .reveal { transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
  .notif.is-waiting { opacity: 0; }
  .notif.is-shown { animation: slide-in .6s var(--ease-spring); }
  .bars.is-shown span { animation: grow .7s var(--ease-out) backwards; }
  .bars.is-shown span:nth-child(2) { animation-delay: .05s; }
  .bars.is-shown span:nth-child(3) { animation-delay: .1s; }
  .bars.is-shown span:nth-child(4) { animation-delay: .15s; }
  .bars.is-shown span:nth-child(5) { animation-delay: .2s; }
  .bars.is-shown span:nth-child(6) { animation-delay: .25s; }
  .bars.is-shown span:nth-child(7) { animation-delay: .3s; }
  .card:hover { transform: translateY(-3px); }
}
/* "Coming soon" notice of the download buttons */
.toast { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom, 0px)); z-index: 50; width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 16px; background: var(--solid); color: var(--on-solid); font-weight: 700; font-size: var(--step--1); line-height: 1.35; text-align: center; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .25s, transform .35s var(--ease-out); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: no-preference) {
  .flame .rays { animation: turn 30s linear infinite; }
  .flame .orbit { animation: turn 8s linear infinite; }
}
@keyframes turn { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
