/* ==========================================================================
   Spendt page — its own identity, built on the Spendt brand tokens
   (css/spendt-tokens.css, copied unchanged from Spendt Brand Package V1.0).
   No colour values are typed here: everything derives from the --ss-* tokens.

   Contrast rules from the brand package:
   - Mint is never text on a light background. It is for fills, icons and accents.
   - Labels on a Mint fill are Deep Navy.
   - Slate is body text on light only; on Deep Navy secondary text uses Hairline.
   ========================================================================== */

:root {
  --bg: var(--ss-background);
  --surface: var(--ss-surface);
  --text: var(--ss-text);
  --muted: var(--ss-text-muted);
  --border: var(--ss-border);
  --ink: var(--ss-deep-navy);           /* links, focus rings, icons */
  --tile: color-mix(in srgb, var(--ss-mint-green) 18%, var(--ss-surface));
  --track: var(--ss-hairline);
  --bg-alt: color-mix(in srgb, var(--ss-hairline) 45%, var(--ss-cloud-white));   /* every other section */
  --shadow: 0 1px 2px rgb(var(--ss-deep-navy-rgb) / .06), 0 0.75rem 2rem rgb(var(--ss-deep-navy-rgb) / .08);

  color-scheme: light;
}

/* Dark theme, and the navy band in the light theme, share one set of values */
[data-theme="dark"],
.band {
  --bg: var(--ss-deep-navy);
  --surface: color-mix(in srgb, var(--ss-cloud-white) 7%, var(--ss-deep-navy));
  --text: var(--ss-cloud-white);
  --muted: var(--ss-hairline);
  --border: color-mix(in srgb, var(--ss-hairline) 20%, var(--ss-deep-navy));
  --ink: var(--ss-mint-green);
  --tile: color-mix(in srgb, var(--ss-mint-green) 16%, var(--ss-deep-navy));
  --track: color-mix(in srgb, var(--ss-hairline) 22%, var(--ss-deep-navy));
  --bg-alt: color-mix(in srgb, var(--ss-cloud-white) 4%, var(--ss-deep-navy));
  --shadow: none;
}

[data-theme="dark"] { color-scheme: dark; }

/* ==========================================================================
   Base
   ========================================================================== */

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

/* Adaptive scale: every size below is in rem, and the root size grows with the
   viewport on large screens, so the layout fills big monitors instead of sitting
   in a narrow column. Up to about 1500px wide nothing changes (16px root). */
html { font-size: clamp(16px, 0.5vw + 8.5px, 24px); }

/* The brand type scale and radii, restated in rem so they follow the adaptive
   root size. Values are identical to css/spendt-tokens.css at a 16px root. */
:root {
  --ss-radius-card: .75rem;
  --ss-radius-button: .625rem;
  --ss-h1-size: 2.125rem;       --ss-h1-line: 2.5rem;
  --ss-h2-size: 1.375rem;       --ss-h2-line: 1.75rem;
  --ss-h3-size: 1.0625rem;      --ss-h3-line: 1.5rem;
  --ss-body-size: 1rem;         --ss-body-line: 1.5rem;
  --ss-body-sm-size: .875rem;   --ss-body-sm-line: 1.25rem;
  --ss-micro-size: .75rem;      --ss-micro-line: 1rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--ss-body-weight) var(--ss-body-size)/var(--ss-body-line) var(--ss-font-sans);
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, p, figure { margin: 0; }

h1 {
  font-size: clamp(2.25rem, 5.6vw, 3.75rem);
  line-height: 1.08;
  font-weight: var(--ss-h1-weight);
  letter-spacing: var(--ss-h1-tracking);
}
h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.25rem);
  line-height: 1.2;
  font-weight: var(--ss-h2-weight);
  letter-spacing: var(--ss-h2-tracking);
}
h3 {
  font-size: var(--ss-h3-size);
  line-height: var(--ss-h3-line);
  font-weight: var(--ss-h3-weight);
}

a { color: var(--ink); text-underline-offset: 3px; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 6rem);
}

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 10;
  padding: 0.5rem 1rem;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  border-radius: var(--ss-radius-button);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

.micro {
  font-size: var(--ss-micro-size);
  line-height: var(--ss-micro-line);
  font-weight: var(--ss-micro-weight);
  letter-spacing: var(--ss-micro-tracking);
  text-transform: uppercase;
  color: var(--muted);
}

/* The product name in running text, styled like the wordmark: "Spend" in the
   text colour (Deep Navy, or white on navy) and the final "t" in Mint. */
.spendt { font-weight: 800; color: var(--text); white-space: nowrap; }
.spendt span { color: var(--ss-mint-green); }

.lead {
  max-width: 58ch;
  font-size: 1.125rem;
  line-height: 1.75rem;
  color: var(--muted);
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(0.75rem);
  backdrop-filter: blur(0.75rem);
}

/* On a dark page the header is a shade lighter than Deep Navy, so the logo's
   navy tile stands out from it instead of blending in */
[data-theme="dark"] .site-header {
  background: color-mix(in srgb, color-mix(in srgb, var(--ss-cloud-white) 12%, var(--ss-deep-navy)) 92%, transparent);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.25rem;
}

/* Logo files are used exactly as supplied: primary on light, knockout on navy */
.logo { position: relative; isolation: isolate; display: block; flex: none; }
/* The knockout lockup has no tile of its own. On navy surfaces the brand's tile
   (a square the height of the logo, 24% radius, Deep Navy) is drawn behind the
   symbol, so the mark sits on the header and footer as it does on a light page.
   The logo file itself is unchanged. */
[data-theme="dark"] .site-header .logo::before,
.site-footer .logo::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: var(--ss-radius-tile);
  background: var(--ss-deep-navy);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ss-cloud-white) 14%, transparent);
}
.logo__img { display: block; width: auto; height: 2.25rem; }
.logo__img--dark,
[data-theme="dark"] .logo__img--light { display: none; }
[data-theme="dark"] .logo__img--dark { display: block; }

.site-nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
}
.site-nav a, .maker {
  font-size: var(--ss-body-sm-size);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.site-nav a:hover, .maker:hover { text-decoration: underline; }
/* The tab for the section in view (or the current page) carries a mint bar */
.site-nav a {
  padding: 0.5rem 0;
  background: linear-gradient(var(--ss-mint-green), var(--ss-mint-green)) no-repeat 0 100% / 0 0.1875rem;
  transition: background-size .25s ease;
}
.site-nav a.is-active,
.site-nav a[aria-current="page"] { background-size: 100% 0.1875rem; text-decoration: none; }

.maker {
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  font-weight: 400;
  color: var(--muted);
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-button);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle__icon { width: 1.125rem; height: 1.125rem; }
.theme-toggle__icon--moon,
[data-theme="light"] .theme-toggle__icon--sun { display: none; }
[data-theme="light"] .theme-toggle__icon--moon { display: block; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--ss-radius-button);
  font-size: var(--ss-body-size);
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--primary {
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
}
/* The product name on a Mint button is all Deep Navy: a Mint "t" would vanish */
.btn--primary .spendt, .btn--primary .spendt span { color: inherit; }
.btn .spendt { margin-left: 0.3em; }
.btn--primary:hover { box-shadow: 0 0.5rem 1.25rem rgb(var(--ss-mint-green-rgb) / .35); }

.btn--secondary {
  border-color: var(--text);
  color: var(--text);
}
.btn--secondary:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 0 5rem;
  background:
    radial-gradient(60rem 36rem at 88% 8%, color-mix(in srgb, var(--ss-mint-green) 24%, transparent), transparent 70%),
    radial-gradient(42rem 30rem at 0% 100%, color-mix(in srgb, var(--ss-mint-green) 10%, transparent), transparent 70%);
}

/* Dot grid, fading out towards the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 16%, transparent) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, black, transparent 72%);
  mask-image: radial-gradient(ellipse at 70% 40%, black, transparent 72%);
}

/* A rising line that draws itself across the hero */
.hero__chart, .download__chart {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}
.hero__chart path, .download__chart path {
  stroke: var(--ss-mint-green);
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  opacity: .45;
  stroke-dasharray: 2600;
  animation: draw 2.6s ease-out both;
}
@keyframes draw { from { stroke-dashoffset: 2600; } }

.phone-stage {
  position: relative;
  width: min(20rem, 100%);
  margin: 0 auto;
}
.phone-stage::before {
  content: "";
  position: absolute;
  inset: 8% -22%;
  z-index: -1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ss-mint-green) 30%, transparent);
  filter: blur(4rem);
}

.chip {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem 0.5rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 62.4375rem;
  box-shadow: 0 0.75rem 2rem rgb(var(--ss-deep-navy-rgb) / .16);
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
  font-weight: 600;
  white-space: nowrap;
  animation: float 5s ease-in-out infinite;
}
.chip i {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  font-style: normal;
  font-weight: 700;
}
.chip i + i { margin-left: -0.875rem; background: var(--ss-deep-navy); color: var(--ss-cloud-white); border: 2px solid var(--surface); }
.chip svg { width: 1rem; height: 1rem; stroke-width: 2.4; }
.chip--1 { top: 9%; left: -10.75rem; }
.chip--2 { top: 44%; right: -9rem; animation-delay: -1.6s; }
.chip--3 { bottom: 13%; left: -8.5rem; animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-0.625rem); } }

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 3.5rem;
}
/* The copy is sized to fill about three-quarters of the phone's height */
.hero__copy { padding: 0; }

/* Headline filled with a brand gradient. On light it runs from Deep Navy to a
   navy-deepened mint, because plain Mint is too pale to read on Cloud White. */
.hero h1 {
  width: fit-content;
  padding-bottom: 0.1em;
  background: linear-gradient(100deg, var(--ss-deep-navy) 15%, color-mix(in srgb, var(--ss-mint-green) 58%, var(--ss-deep-navy)) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
[data-theme="dark"] .hero h1 {
  background-image: linear-gradient(100deg, var(--ss-cloud-white) 15%, var(--ss-mint-green) 90%);
}
.hero h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); line-height: 1.04; }
.hero h1 span { display: block; }
.hero .lead { margin-top: 2rem; max-width: 34ch; font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.55; }
.hero .stores { justify-content: flex-start; margin-top: 2.5rem; }
.hero .store { border-color: var(--ss-mint-green); }

.demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.demo-link:hover { text-decoration: underline; }
.demo-link span {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
}
.demo-link svg { width: 0.875rem; height: 0.875rem; fill: currentColor; stroke: none; }

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Phone illustration: the app's Dashboard screen (2026-11-13 design), with a
   working Privacy Mode eye and currency switch. The screen follows the page
   theme: the app's light colours on a light page, its dark colours on a dark one. */

.phone {
  position: relative;
  padding: 0.3125rem;
  border-radius: 3.25rem;
  /* metal edge */
  background: linear-gradient(145deg, var(--ss-slate), #0B1220 30%, #0B1220 70%, var(--ss-slate));
  box-shadow: 0 1.5rem 3rem rgb(var(--ss-deep-navy-rgb) / .28);
}
/* side buttons: volume on the left, power on the right */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 0.1875rem;
  border-radius: 0.125rem;
  background: var(--ss-slate);
}
.phone::before {
  left: -0.1875rem;
  top: 17%;
  height: 1.75rem;
  box-shadow: 0 3rem 0 0 var(--ss-slate), 0 6.5rem 0 0 var(--ss-slate);
}
.phone::after { right: -0.1875rem; top: 26%; height: 4.5rem; }

.phone__screen {
  /* the app's light colour set */
  --text: var(--ss-deep-navy);
  --muted: #5B6B7F;
  --card: #FFFFFF;
  --line: #E3E8EF;
  --screen: #F6F8FB;
  --status: #111827;
  --body: #334155;
  --tint-base: #FFFFFF;
  --dot: #C9D2DE;
  --nav: #3F4A5A;
  --switch-on: var(--ss-deep-navy);
  --switch-on-text: #FFFFFF;
  --hero: var(--ss-deep-navy);
  --hero-edge: transparent;
  --navy-line: color-mix(in srgb, #FFFFFF 12%, var(--hero));
  --navy-muted: color-mix(in srgb, #FFFFFF 70%, var(--hero));
  --green: #16B877;

  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  aspect-ratio: 9 / 20;
  padding: 0.5rem 0.75rem 0;
  border: 0.375rem solid #0B1220;
  border-radius: 2.9375rem;
  background: var(--screen);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.0625rem;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
}
.phone__screen > * { flex-shrink: 0; }

/* The app's dark colours, on a dark page */
[data-theme="dark"] .phone__screen {
  --text: var(--ss-cloud-white);
  --muted: var(--ss-hairline);
  --card: color-mix(in srgb, #2F7FC1 12%, #08182B);
  --line: color-mix(in srgb, #5B9BD5 22%, #08182B);
  --screen: #08182B;
  --status: var(--ss-cloud-white);
  --body: color-mix(in srgb, #FFFFFF 78%, #08182B);
  --tint-base: #08182B;
  --dot: color-mix(in srgb, #FFFFFF 25%, #08182B);
  --nav: color-mix(in srgb, #FFFFFF 75%, #08182B);
  --switch-on: var(--ss-cloud-white);
  --switch-on-text: var(--ss-deep-navy);
  --hero: color-mix(in srgb, #2F7FC1 24%, #08182B);
  --hero-edge: color-mix(in srgb, #5B9BD5 34%, #08182B);
  --green: var(--ss-mint-green);
}

/* Status bar: time, punch-hole camera, signal, wifi and battery. The icons
   are drawn at whole-pixel sizes so they stay sharp. */
.status {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 1.375rem;
  margin: 0 0.125rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--status);
}
.status__time { padding-left: 0.5rem; }
.phone__camera {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3A4458 0 18%, #0B0F17 22%);
  box-shadow: 0 0 0 0.125rem #1B2230;
}
.status__icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.25rem;
  padding-right: 0.375rem;
}
.status__icons svg { display: block; height: 10px; fill: currentColor; shape-rendering: geometricPrecision; }
.status__signal { width: 14px; }
.status__wifi { width: 13px; }
.status__battery { width: 22px; }

/* Dashboard header: date and greeting, currency switch, Privacy Mode eye, menu */
.phone__screen .dash-top { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.125rem; }
.phone__screen .greet { flex: 1; min-width: 0; }
.phone__screen .greet span { display: block; font-size: 0.625rem; line-height: 0.875rem; color: var(--muted); }
.phone__screen .greet b { display: block; font-size: 1rem; line-height: 1.3125rem; font-weight: 700; white-space: nowrap; }

.phone__screen .fx__switch {
  display: flex;
  gap: 0.125rem;
  padding: 0.125rem;
  border: 1px solid var(--line);
  border-radius: 62.4375rem;
  background: var(--card);
}
.phone__screen .fx__switch button {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  cursor: pointer;
}
.phone__screen .fx__switch button[aria-pressed="true"] { background: var(--switch-on); color: var(--switch-on-text); }

/* Privacy Mode: the open eye while figures show, the struck eye while they are hidden */
.phone__screen .eye {
  display: grid;
  place-items: center;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.phone__screen .eye svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.phone__screen .eye__closed, .phone__screen .eye[aria-pressed="true"] .eye__open { display: none; }
.phone__screen .eye[aria-pressed="true"] .eye__closed { display: block; }

.phone__screen .menu { position: relative; display: grid; place-items: center; width: 1.5rem; height: 1.75rem; }
.phone__screen .menu svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.phone__screen .menu::after {
  content: "";
  position: absolute;
  top: 0.1875rem;
  right: 0;
  width: 0.3125rem;
  height: 0.3125rem;
  border-radius: 50%;
  background: var(--ss-coral-alert);
}

.phone__screen .cycle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  align-self: flex-start;
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--line);
  border-radius: 62.4375rem;
  background: var(--card);
  font-size: 0.5625rem;
  font-weight: 600;
  white-space: nowrap;
}
.phone__screen .cycle svg, .phone__screen .rate svg { width: 0.75rem; height: 0.75rem; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.phone__screen .info { width: 0.75rem; height: 0.75rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.phone__screen .is-up { color: var(--ss-mint-green); }
.phone__screen .is-down { color: var(--ss-coral-alert); }

/* Spent this cycle: the navy card */
.phone__screen .hero-card {
  padding: 0.625rem 0.75rem 0.5rem;
  border: 1px solid var(--hero-edge);
  border-radius: 0.875rem;
  background: var(--hero);
  color: #FFFFFF;
}
.phone__screen .hero-card__label {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  font-size: 0.625rem;
  color: var(--navy-muted);
}
.phone__screen .hero-card__spent { display: flex; align-items: baseline; gap: 0.375rem; margin-top: 0.125rem; }
.phone__screen .hero-card__spent small { font-size: 0.625rem; color: var(--navy-muted); white-space: nowrap; }
.phone__screen .big { font-size: 1.375rem; line-height: 1.625rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.phone__screen .meter { position: relative; display: block; height: 0.3125rem; margin-top: 0.5rem; border-radius: 62.4375rem; background: var(--navy-line); }
.phone__screen .meter i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--ss-coral-alert); transform-origin: left; animation: meter-in 1.1s ease-out both; }
/* the white marker: where spending should be by today */
.phone__screen .meter b { position: absolute; left: 76%; top: -0.1875rem; width: 0.125rem; height: 0.6875rem; border-radius: 0.0625rem; background: #FFFFFF; }
.phone__screen .meter--saved { margin-top: 0.375rem; height: 0.25rem; }
.phone__screen .meter--saved i { width: 88%; background: var(--ss-mint-green); }
@keyframes meter-in { from { transform: scaleX(0); } }
.phone__screen .pace {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.4375rem;
  padding: 0.1875rem 0.5rem;
  border-radius: 62.4375rem;
  background: color-mix(in srgb, var(--ss-coral-alert) 22%, var(--hero));
  color: var(--ss-coral-alert);
  font-size: 0.5625rem;
  font-weight: 700;
}
.phone__screen .pace svg { width: 0.625rem; height: 0.625rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.phone__screen .hero-card__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px solid var(--navy-line);
  font-size: 0.5625rem;
  color: var(--navy-muted);
}
.phone__screen .hero-card__row p > span:not([data-figure]) { display: block; }
.phone__screen .hero-card__row .is-right { text-align: right; }
.phone__screen .hero-card__row--saved { display: block; }
.phone__screen .saved__head { display: flex; justify-content: space-between; align-items: center; }
.phone__screen .saved__head > span:first-child { font-size: 0.5625rem; }
.phone__screen .saved__note { margin-top: 0.3125rem; }
.phone__screen .mid { display: block; font-size: 0.9375rem; line-height: 1.125rem; font-weight: 700; white-space: nowrap; }

.phone__screen .rate { display: flex; align-items: center; gap: 0.375rem; margin: -0.125rem 0 -0.125rem 0.125rem; font-size: 0.5625rem; color: var(--muted); }

/* Income this cycle and Net position */
.phone__screen .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.phone__screen .tile {
  padding: 0.4375rem 0.625rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--card);
}
.phone__screen .tile__label { font-size: 0.5625rem; color: var(--muted); }
.phone__screen .tile__figure { display: block; margin-top: 0.125rem; font-size: 0.8125rem; line-height: 1.125rem; font-weight: 700; white-space: nowrap; }
.phone__screen .tile__note { margin-top: 0.125rem; font-size: 0.5625rem; line-height: 0.8125rem; color: var(--green); }

/* Spend insight */
.phone__screen .insight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.375rem 0.625rem;
  padding: 0.5rem 0.75rem 0.4375rem;
  border: 1px solid color-mix(in srgb, var(--ss-coral-alert) 30%, var(--tint-base));
  border-radius: 0.875rem;
  background: color-mix(in srgb, var(--ss-coral-alert) 12%, var(--tint-base));
}
.phone__screen .insight__icon {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--ss-coral-alert) 22%, var(--tint-base));
  color: var(--ss-coral-alert);
}
.phone__screen .insight__icon svg { width: 0.875rem; height: 0.875rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone__screen .insight h2 { font-size: 0.75rem; line-height: 1rem; font-weight: 700; letter-spacing: 0; color: var(--text); }
.phone__screen .insight p { margin-top: 0.125rem; font-size: 0.625rem; line-height: 0.875rem; color: var(--body); }
.phone__screen .insight .insight__link { margin-top: 0.25rem; color: var(--ss-coral-alert); font-weight: 600; }
.phone__screen .insight__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.phone__screen .dots { display: flex; gap: 0.1875rem; }
.phone__screen .dots i { width: 0.3125rem; height: 0.3125rem; border-radius: 62.4375rem; background: var(--dot); }
.phone__screen .dots .is-on { width: 0.75rem; background: var(--text); }
.phone__screen .useful { display: flex; align-items: center; gap: 0.375rem; font-size: 0.5625rem; color: var(--muted); }
.phone__screen .useful svg { width: 0.75rem; height: 0.75rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* The tab bar (the four areas of the app) and the Android navigation bar */
.phone__bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.375rem 0 0.125rem;
  list-style: none;
  font-size: 0.5625rem;
  line-height: 0.75rem;
  text-align: center;
  color: var(--muted);
}
.tabs li { display: grid; justify-items: center; gap: 0.1875rem; }
.tabs svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabs .is-active { color: var(--green); }
.navbar { display: flex; justify-content: space-around; padding: 0.1875rem 2.5rem 0.375rem; color: var(--nav); }
.navbar svg { width: 0.75rem; height: 0.75rem; fill: currentColor; }

.video figcaption {
  margin-top: 1rem;
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
  color: var(--muted);
  text-align: center;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: 5.5rem 0; }

.section__head { max-width: 42.5rem; margin-bottom: 2.5rem; }
.section__head--spaced { margin-top: 5.5rem; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .lead { margin-inline: auto; }

/* Every other section sits on a second shade, so the page does not read as one block */
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }

.more { margin-top: 2rem; font-weight: 700; }
.more a { text-decoration: none; }
.more a:hover { text-decoration: underline; }
.more--center { text-align: center; }
.section__head h2 { margin-top: 0.75rem; }
.section__head .lead { margin-top: 1rem; }

.cards {
  display: grid;
  gap: 1.25rem;
}
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card, .fact {
  padding: 1.75rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-card);
}
.card {
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover {
  transform: translateY(-0.375rem);
  border-color: var(--ss-mint-green);
  box-shadow: 0 1.25rem 2.5rem rgb(var(--ss-deep-navy-rgb) / .14);
}
.js .card.reveal.is-visible:hover { transform: translateY(-0.375rem); }

/* Entries arriving in a list on their own */
.autolog {
  display: grid;
  gap: 0.375rem;
  width: 100%;
  max-width: 13rem;
  margin: 0 auto;
}
.autolog p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.3125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-button);
  background: var(--surface);
  animation: log-in 5s ease-in-out infinite;
}
.autolog p:nth-child(2) { animation-delay: .5s; }
.autolog p:nth-child(3) { animation-delay: 1s; }
.autolog i {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
}
.autolog svg { width: 0.75rem; height: 0.75rem; stroke-width: 3; }
.autolog span, .autolog b { height: 0.5rem; border-radius: 62.4375rem; background: var(--track); }
.autolog span { width: 70%; }
.autolog p:nth-child(2) span { width: 50%; }
.autolog p:nth-child(3) span { width: 62%; }
.autolog b { width: 2.25rem; background: color-mix(in srgb, var(--text) 55%, transparent); }
@keyframes log-in {
  0% { opacity: 0; transform: translateY(0.75rem) scale(.97); }
  12%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-0.5rem); }
}

/* Small illustration across the top of a card */
.viz {
  display: grid;
  place-items: center;
  height: 9rem;
  margin: -1.75rem -1.5rem 1.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1px) 0 0 / 1rem 1rem,
    color-mix(in srgb, var(--ss-mint-green) 9%, var(--surface));
  font-size: var(--ss-micro-size);
  line-height: var(--ss-micro-line);
  font-weight: 600;
}

/* Safe to spend: today's allowance */
.allow { display: grid; justify-items: start; gap: 0.25rem; width: 100%; max-width: 13rem; color: var(--muted); }
.allow strong { font-size: 1.75rem; line-height: 2rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.allow b { width: 100%; height: 0.5rem; margin-top: 0.25rem; border-radius: 62.4375rem; background: var(--track); overflow: hidden; }
.allow b i { display: block; width: 58%; height: 100%; border-radius: inherit; background: var(--ss-mint-green); transform-origin: left; animation: fill 4s ease-in-out infinite; }
.allow small { font-size: inherit; font-weight: 400; }
@keyframes fill { 0% { transform: scaleX(.25); } 40%, 100% { transform: none; } }

/* Pay Cycle: a budget running from one payday to the next */
.cycle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 0.5rem;
  width: 100%;
  max-width: 14rem;
  color: var(--muted);
}
.cycle b { height: 0.5rem; border-radius: 62.4375rem; background: var(--track); overflow: hidden; }
.cycle b i { display: block; height: 100%; border-radius: inherit; background: var(--ss-mint-green); transform-origin: left; animation: fill 4s ease-in-out infinite; }
.cycle em {
  grid-column: 1 / -1;
  justify-self: center;
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 62.4375rem;
  background: var(--surface);
  font-style: normal;
}
.cycle em + em { margin-top: -0.375rem; }
.cycle .is-on { border-color: var(--ss-mint-green); background: var(--ss-mint-green); color: var(--ss-deep-navy); }

.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; }
.pills span {
  padding: 0.3125rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 62.4375rem;
  background: var(--surface);
  color: var(--muted);
  transition: background-color .3s ease, color .3s ease, transform .3s ease, border-color .3s ease;
}
.pills .is-on {
  border-color: var(--ss-mint-green);
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  transform: scale(1.08);
}

.import { display: flex; align-items: center; gap: 0.625rem; }
.file {
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
}
.file + .file { margin-left: -1.25rem; transform: rotate(8deg) translateY(0.25rem); }
.import svg { width: 1.5rem; height: 1.5rem; color: var(--ink); }
.import__rows { display: grid; gap: 0.375rem; width: 5.5rem; }
.import__rows i {
  height: 0.75rem;
  border-radius: 62.4375rem;
  background: linear-gradient(90deg, var(--ss-mint-green) 0.75rem, var(--track) 0.75rem);
  animation: row-in 3s ease-in-out infinite;
}
.import__rows i:nth-child(2) { width: 80%; animation-delay: .25s; }
.import__rows i:nth-child(3) { width: 60%; animation-delay: .5s; }
@keyframes row-in {
  0% { opacity: 0; transform: translateX(-0.75rem); }
  20%, 85% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

.coins { display: flex; }
.coin {
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  border: 0.1875rem solid var(--surface);
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  animation: coin 4s ease-in-out infinite;
}
.coin--a { background: var(--ss-deep-navy); color: var(--ss-cloud-white); }
@keyframes coin { 50% { transform: translateX(0.5rem); } }
/* The other currencies: a smaller "C" overlapping the naira coin, with a bubble for each currency on its path */
.coin-arc {
  position: relative;
  width: 3.75rem;
  height: 3.75rem;
  margin-left: -0.75rem;
  animation: coin 4s ease-in-out infinite reverse;
}
.coin-arc svg { display: block; width: 100%; height: 100%; overflow: visible; }
.coin-arc path { fill: none; stroke: var(--ss-mint-green); stroke-width: 6; stroke-linecap: round; }
.coin-mini {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 1.625rem;
  height: 1.625rem;
  border: 0.125rem solid var(--surface);
  border-radius: 50%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(1.625rem) rotate(calc(-1 * var(--a)));
}

.donut {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  background: conic-gradient(var(--text) 0 40%, var(--ss-mint-green) 40% 68%, var(--muted) 68% 86%, var(--track) 86%);
  -webkit-mask: radial-gradient(circle, transparent 46%, black 47%);
  mask: radial-gradient(circle, transparent 46%, black 47%);
  animation: spin 24s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }

.bars { display: flex; align-items: flex-end; gap: 0.5rem; height: 5.5rem; }
.bars i {
  width: 1rem;
  border-radius: 0.25rem 0.25rem 0 0;
  background: var(--ss-mint-green);
  transform-origin: bottom;
  animation: grow 3.5s ease-in-out infinite;
}
.bars i:nth-child(1) { height: 30%; }
.bars i:nth-child(2) { height: 48%; animation-delay: .15s; }
.bars i:nth-child(3) { height: 42%; animation-delay: .3s; }
.bars i:nth-child(4) { height: 72%; animation-delay: .45s; }
.bars i:nth-child(5) { height: 100%; animation-delay: .6s; }
@keyframes grow { 0%, 100% { transform: scaleY(.55); } 45%, 70% { transform: none; } }

.meters { display: grid; gap: 0.5rem; width: 100%; max-width: 13rem; }
.meters p {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--muted);
}
.meters b { height: 0.5rem; border-radius: 62.4375rem; background: var(--track); overflow: hidden; }
.meters b i { display: block; width: var(--w); height: 100%; border-radius: inherit; background: var(--ss-mint-green); }
/* Over budget: coral, with an icon and a word, never colour alone */
.meters .is-over b i { background: var(--ss-coral-alert); }
.meters em { display: inline-flex; align-items: center; gap: 0.1875rem; font-style: normal; color: var(--text); }
.meters em svg { width: 0.875rem; height: 0.875rem; }

.ledger { position: relative; display: grid; gap: 0.5rem; width: 9rem; }
.ledger i {
  height: 1.375rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: linear-gradient(90deg, var(--track) 0 45%, transparent 45% 70%, var(--track) 70%) no-repeat 0.5rem 50% / calc(100% - 1rem) 0.375rem, var(--surface);
}
.ledger__add {
  position: absolute;
  right: -1.25rem;
  bottom: -0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  box-shadow: 0 0.5rem 1rem rgb(var(--ss-mint-green-rgb) / .4);
  animation: pulse 2.4s ease-in-out infinite;
}
.ledger__add svg { width: 1.25rem; height: 1.25rem; stroke-width: 2.4; }
@keyframes pulse { 50% { transform: scale(1.12); } }

.card__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 24%;
  background: var(--tile);
  color: var(--ink);
}
.card__icon svg { width: 1.5rem; height: 1.5rem; }

.card h3 { margin-top: 1.25rem; }
.card p, .fact p { margin-top: 0.5rem; color: var(--muted); }

/* "What sets Spendt apart" and the FAQ, after the design canvas (2026-11-17):
   artboard "Features section · Redesign" for the dark theme and "Features +
   FAQ · Light mode" for the light one. Same illustrations and animations as
   before; no icon, the title and text sit under the illustration.
   Light (the base): white cards with an inset, dotted illustration panel,
   a pill label with a Mint dot, and a Mint highlighter behind the key word
   (Mint is never text on light). Dark: the panel runs edge to edge with a
   rule under it, the label is plain, and the key word is Mint. */
.display {
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hl { box-shadow: inset 0 -0.3em color-mix(in srgb, var(--ss-mint-green) 30%, var(--ss-surface)); }
[data-theme="dark"] .hl { box-shadow: none; color: var(--ss-mint-green); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.875rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 62.4375rem;
  background: var(--surface);
}
.badge::before { content: ""; flex: none; width: 0.375rem; height: 0.375rem; border-radius: 50%; background: var(--ss-mint-green); }
[data-theme="dark"] .badge { min-height: 0; padding: 0; border: 0; background: none; }
[data-theme="dark"] .badge::before { display: none; }
.section__head .display { margin-top: 1rem; }

.cards--features { gap: 1.25rem; }
.cards--features .card {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  border-radius: 1.5rem;
  box-shadow: 0 1px 2px rgb(var(--ss-deep-navy-rgb) / .04), 0 0.75rem 2rem -0.75rem rgb(var(--ss-deep-navy-rgb) / .12);
}
.cards--features .viz {
  height: 8rem;
  margin: 0;
  padding: 0 1.25rem;
  overflow: hidden;
  border: 0;
  border-radius: 1.0625rem;
  background:
    radial-gradient(color-mix(in srgb, var(--ss-slate) 22%, var(--ss-hairline)) 1px, transparent 1px) 0 0 / 0.875rem 0.875rem,
    color-mix(in srgb, var(--ss-hairline) 35%, var(--ss-surface));
}
.cards--features .viz > * { scale: .9; }
.cards--features .viz > .autolog { scale: .8; }
.card__body { display: grid; gap: 0.375rem; padding: 1.125rem 1rem 1rem; }
.cards--features h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 800; letter-spacing: -0.01em; }
.cards--features .card p { margin: 0; font-size: 0.90625rem; line-height: 1.5; }

[data-theme="dark"] .section--features { background: var(--bg); }
[data-theme="dark"] .cards--features { gap: 1rem; }
[data-theme="dark"] .cards--features .card { padding: 0; border-radius: 1.375rem; }
[data-theme="dark"] .cards--features .viz {
  height: 7rem;
  padding: 0 1.5rem;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(var(--border) 1px, transparent 1px) 0 0 / 1rem 1rem;
}
[data-theme="dark"] .card__body { padding: 1.25rem 1.5rem 1.5rem; }

/* FAQ: heading, line and help-centre button on the left, the questions as cards on the right */
.section--faq { background: var(--ss-surface); border-top: 1px solid var(--border); }
[data-theme="dark"] .section--faq { background: var(--bg); }
.section--faq .badge { background: var(--bg-alt); }
.faq-split { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2.5rem 4rem; }
.faq-split__head { flex: 1 1 18.75rem; max-width: 23.75rem; display: grid; justify-items: start; gap: 1rem; }
.faq-split__head .lead { font-size: var(--ss-body-size); line-height: 1.6; }
.faq-split__head .btn { margin-top: 0.5rem; }
.faq-split .qa-list { flex: 999 1 32.5rem; min-width: 0; }

.btn--ink {
  gap: 0.625rem;
  white-space: nowrap;
  border-radius: 62.4375rem;
  background: var(--ss-deep-navy);
  color: var(--ss-cloud-white);
  font-weight: 700;
}
.btn--ink svg { width: 1rem; height: 1rem; stroke-width: 2.6; color: var(--ss-mint-green); }
.btn--ink:hover { box-shadow: 0 0.5rem 1.25rem rgb(var(--ss-deep-navy-rgb) / .3); }
[data-theme="dark"] .btn--ink { background: var(--ss-mint-green); color: var(--ss-deep-navy); }
[data-theme="dark"] .btn--ink svg { color: var(--ss-deep-navy); }
[data-theme="dark"] .btn--ink:hover { box-shadow: 0 0.5rem 1.25rem rgb(var(--ss-mint-green-rgb) / .3); }

@media (max-width: 800px) { .section--features { padding: 3.5rem 0; } }

/* Inside the app, after the design canvas (artboard "Inside the app ·
   Option A", 2026-11-16): label only, then a navy stage (64:27) in both themes with the figure (the
   owner's clean image, cut out of its white background) and six feature cards around
   him, tilted and bobbing. Cards are placed as percentages of the stage and
   size with it (cqw). Below 70rem the figure sits on top and the cards go two
   to a row, then one column below 34rem. Mint text is fine here: the stage is
   always navy. */
.inside__head { margin-bottom: 1.5rem; }
.inside__head h2.micro { margin: 0; }
.inside { container-type: inline-size; }
.inside__stage {
  position: relative;
  aspect-ratio: 64 / 27;   /* 75% of the earlier 16:9 height */
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--ss-hairline) 18%, var(--ss-deep-navy));
  border-radius: 1.75rem;
  background:
    radial-gradient(ellipse 34% 48% at 50% 58%, color-mix(in srgb, var(--ss-mint-green) 22%, var(--ss-deep-navy)), transparent 100%),
    var(--ss-deep-navy);
}
/* A soft floor shadow under the feet */
.inside__stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3%;
  width: 18%;
  height: 4%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 0 0 / .45), transparent);
}
.inside__figure {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 4%;
  height: 90%;
  width: auto;
  translate: -50% 0;
}
.inside__cards { list-style: none; margin: 0; padding: 0; }
.burst {
  position: absolute;
  z-index: 2;
  left: var(--x);
  top: var(--y);
  width: max-content;
  max-width: 19cqw;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid color-mix(in srgb, var(--ss-mint-green) 32%, var(--ss-deep-navy));
  border-radius: 1rem;
  background: rgb(var(--ss-deep-navy-rgb) / .94);
  box-shadow:
    0 0.75rem 1.875rem rgb(0 0 0 / .45),
    0 0 1.5rem color-mix(in srgb, var(--ss-mint-green) 25%, transparent);
  rotate: var(--r);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-0.375rem); } }
.burst--1 { --x: 18%; --y: 10%; --r: -4deg; }
.burst--2 { --x: 19%; --y: 47%; --r: 3deg;  animation-delay: -1s; }
.burst--3 { --x: 62%; --y: 7%;  --r: 3deg;  animation-delay: -2s; }
.burst--4 { --x: 74%; --y: 37%; --r: -3deg; animation-delay: -3s; }
.burst--5 { --x: 63%; --y: 70%; --r: 4deg;  animation-delay: -4s; }
.burst--6 { --x: 6%;  --y: 72%; --r: -2deg; animation-delay: -5s; }
.burst__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.625rem;
  background: color-mix(in srgb, var(--ss-mint-green) 22%, var(--ss-deep-navy));
  color: var(--ss-mint-green);
}
.burst__icon svg { width: 1.0625rem; height: 1.0625rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.burst__text { display: flex; flex-direction: column; gap: 0.0625rem; min-width: 0; }
.burst__label { font-size: var(--ss-micro-size); line-height: var(--ss-micro-line); color: var(--ss-hairline); }
.burst__value { font-size: 0.9375rem; line-height: 1.3; font-weight: 800; color: var(--ss-cloud-white); }
.burst__value--mint { color: var(--ss-mint-green); }

@container (max-width: 70rem) {
  .inside__stage { aspect-ratio: auto; padding: 1.25rem 1rem; display: grid; gap: 1rem; }
  .inside__stage::after { display: none; }
  .inside__figure { position: relative; left: auto; bottom: auto; translate: none; justify-self: center; height: 17rem; }
  .inside__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
  .burst { position: relative; left: auto; top: auto; width: auto; max-width: none; rotate: none; animation: none; }
}
@container (max-width: 34rem) {
  .inside__cards { grid-template-columns: minmax(0, 1fr); }
  .inside__figure { height: 14rem; }
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 47.5rem;
  margin: 0 auto;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 1.375rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.plan--best { border: 2px solid var(--ss-mint-green); }
.plan h3 { display: flex; align-items: center; gap: 0.625rem; }
.plan__save {
  padding: 0.25rem 0.625rem;
  border-radius: 62.4375rem;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  font-size: var(--ss-micro-size);
  line-height: var(--ss-micro-line);
  font-weight: 800;
}
.plan__price { font-size: 2.625rem; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan__note { color: var(--muted); }
.plan .btn { margin-top: auto; }

/* FAQ excerpt (the help centre has its own .faq, in help.css): each question a
   card; the open one turns white with a Mint edge and a Mint minus. One open at
   a time (name="faq"). */
.qa-list { display: grid; gap: 0.625rem; }
.qa {
  border: 1px solid var(--border);
  border-radius: 1.125rem;
  background: color-mix(in srgb, var(--ss-hairline) 30%, var(--ss-surface));
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.qa[open] {
  border-color: color-mix(in srgb, var(--ss-mint-green) 40%, var(--ss-surface));
  background: var(--ss-surface);
  box-shadow: 0 0.75rem 2rem -0.875rem rgb(var(--ss-deep-navy-rgb) / .18);
}
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.75rem 1rem 0.75rem 1.375rem;
  list-style: none;
  cursor: pointer;
  border-radius: inherit;
}
.qa summary h3 { font-weight: 700; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.125rem;
  height: 2.125rem;
  border-radius: 50%;
  background: var(--ss-surface);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
}
.qa[open] summary::after { content: "−"; background: var(--ss-mint-green); color: var(--ss-deep-navy); }
.qa__a { padding: 0 4.5rem 1.375rem 1.375rem; color: var(--muted); }
.qa__a b { color: var(--text); }
[data-theme="dark"] .qa { background: var(--surface); }
[data-theme="dark"] .qa[open] { border-color: color-mix(in srgb, var(--ss-mint-green) 45%, var(--ss-deep-navy)); background: color-mix(in srgb, var(--ss-cloud-white) 10%, var(--ss-deep-navy)); box-shadow: none; }
[data-theme="dark"] .qa summary::after { background: var(--bg); }
[data-theme="dark"] .qa[open] summary::after { background: var(--ss-mint-green); color: var(--ss-deep-navy); }
@media (max-width: 520px) { .qa__a { padding-right: 1.375rem; } }

/* Navy band: a dark section in both themes */
.band {
  background: var(--ss-deep-navy);
  color: var(--text);
}
[data-theme="dark"] .band {
  background: color-mix(in srgb, var(--ss-cloud-white) 3%, var(--ss-deep-navy));
  border-block: 1px solid var(--border);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.fact { border-top: 3px solid var(--ss-mint-green); transition: transform .25s ease; }
.fact:hover { transform: translateY(-0.375rem); }
.fact h3 { margin-top: 1.25rem; }

.security { position: relative; isolation: isolate; overflow: hidden; }
.security::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(color-mix(in srgb, var(--ss-cloud-white) 14%, transparent) 1px, transparent 1px);
  background-size: 1.5rem 1.5rem;
  -webkit-mask-image: linear-gradient(120deg, transparent 30%, black);
  mask-image: linear-gradient(120deg, transparent 30%, black);
}
.security__eye {
  position: absolute;
  top: 50%;
  right: -6rem;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  color: var(--ss-mint-green);
  stroke-width: .5;
  opacity: .16;
  transform: translateY(-50%);
  animation: blink 7s ease-in-out infinite;
}
@keyframes blink { 46%, 54% { transform: translateY(-50%) scaleY(1); } 50% { transform: translateY(-50%) scaleY(.08); } }

/* The placeholder clip is landscape (1920 x 1080), so the frame is too */
.video { max-width: 56rem; margin: 0 auto; }
.video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-card);
  background: var(--ss-deep-navy);
  box-shadow: var(--shadow);
}

.download, [data-theme="dark"] .download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 3.5rem 2rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--ss-mint-green) 24%, var(--ss-deep-navy)), color-mix(in srgb, var(--ss-cloud-white) 7%, var(--ss-deep-navy)));
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.download h2 { margin-top: 0.75rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.download .store { border-color: transparent; background: var(--ss-cloud-white); color: var(--ss-deep-navy); transition: transform .2s ease; }
.download .store small { color: var(--ss-slate); }
.download .store:hover { transform: translateY(-0.1875rem); }
.download .lead { margin: 1rem auto 0; }

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}
.store {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 13rem;
  min-height: 3.75rem;
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-button);
  background: var(--ss-deep-navy);
  color: var(--ss-cloud-white);
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
/* Store logos are solid shapes in one colour, not line icons */
.store__logo {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  fill: currentColor;
  stroke: none;
}
.store small {
  display: block;
  font-size: var(--ss-micro-size);
  line-height: var(--ss-micro-line);
  font-weight: 400;
  color: var(--ss-hairline);
}
.store[aria-disabled="true"] { cursor: default; }

/* ==========================================================================
   Legal pages
   ========================================================================== */

/* Reading progress, along the bottom edge of the header */
.progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 0.1875rem;
  background: var(--ss-mint-green);
}

.legal-hero { padding: 5rem 0 4.5rem; }
.legal-hero h1 { margin-top: 0.75rem; }
.legal-hero .lead { margin-top: 1.5rem; }

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 62.4375rem;
  background: var(--surface);
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
  font-weight: 600;
}
.tag svg { width: 1.125rem; height: 1.125rem; }
/* Draft status: coral edge, with an icon and words, never colour alone */
.tag--draft { border-color: var(--ss-coral-alert); }

.legal { padding-top: 4rem; padding-bottom: 6rem; }

.legal__layout {
  display: grid;
  grid-template-columns: minmax(0, 18rem) minmax(0, 1fr);
  align-items: start;
  gap: 3rem;
}

.legal__toc {
  position: sticky;
  top: 6rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-card);
  box-shadow: var(--shadow);
}
.legal__toc ol {
  display: grid;
  gap: 0.125rem;
  margin: 1rem -0.75rem 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
}
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--ss-radius-button);
  color: var(--muted);
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.legal__toc a::before { content: counter(toc, decimal-leading-zero); font-variant-numeric: tabular-nums; font-weight: 600; }
/* One flex item for the label, so a styled name inside it wraps with the words around it */
.legal__toc-label { min-width: 0; }
.legal__toc a:hover { color: var(--text); }
/* The section being read */
.legal__toc a.is-active {
  background: var(--tile);
  color: var(--text);
  font-weight: 600;
}

.legal__body { display: grid; gap: 1.25rem; min-width: 0; }

.legal__section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-card);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
}
.legal__section:hover { transform: translateY(-0.25rem); border-color: var(--ss-mint-green); }
.legal__section > * { grid-column: 2; }
.legal__section h2 { font-size: 1.5rem; line-height: 2rem; align-self: center; }
.legal__section p { max-width: 70ch; margin-top: 0.75rem; color: var(--muted); }

.legal__num {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 24%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.placeholder {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border: 1px dashed var(--ss-mint-green);
  border-radius: var(--ss-radius-button);
  background: var(--tile);
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
}
.legal__section .placeholder { color: var(--text); }
.placeholder svg { flex: none; width: 1.125rem; height: 1.125rem; color: var(--ink); }

.regions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.region {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-card);
  background: var(--bg);
}
.region h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.125rem; }
.region__code {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 24%;
  background: var(--ss-deep-navy);
  color: var(--ss-cloud-white);
  font-size: var(--ss-micro-size);
  font-weight: 700;
  letter-spacing: var(--ss-micro-tracking);
}
[data-theme="dark"] .region__code { background: var(--ss-mint-green); color: var(--ss-deep-navy); }

.legal__details { display: grid; gap: 0.5rem; margin: 1.25rem 0 0; }
.legal__details div { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.legal__details dt { min-width: 13rem; font-weight: 600; }
.legal__details dd { margin: 0; color: var(--muted); }

/* ==========================================================================
   Footer
   ========================================================================== */

/* Uses .band, so it is navy in both themes */
/* A shade lighter than Deep Navy, so the logo's navy tile stands out from it */
.site-footer, [data-theme="dark"] .site-footer {
  padding: 2.75rem 0 1.5rem;
  background: color-mix(in srgb, var(--ss-cloud-white) 6%, var(--ss-deep-navy));
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: 2.5rem;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
}
.site-footer .logo__img { height: 2.25rem; }

.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.site-footer__heading {
  font-size: var(--ss-micro-size);
  line-height: var(--ss-micro-line);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.site-footer__cols ul {
  display: grid;
  gap: 0.625rem;
  margin: 0.875rem 0 0;
  padding: 0;
  list-style: none;
}
.site-footer__cols a {
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
}
.site-footer__cols a:hover { text-decoration: underline; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
  color: var(--muted);
}
.site-footer__bottom a { font-weight: 600; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ==========================================================================
   Scroll reveal (only when JS is running)
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity .5s ease, transform .5s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 800px) {
  .site-header__inner { flex-wrap: wrap; height: auto; row-gap: 0; padding-top: 0.75rem; }
  .maker { margin-left: auto; padding-left: 0; border-left: 0; }
  .site-nav + .theme-toggle { margin-left: auto; }
  .site-nav {
    order: 5;
    flex: 0 0 100%;
    gap: 1.5rem;
    margin: 0.5rem 0 0;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border);
    overflow-x: auto;
    white-space: nowrap;
  }
  html { scroll-padding-top: 8rem; }

  .site-footer__top { grid-template-columns: minmax(0, 1fr); }
  .site-footer__top { gap: 1.75rem; }
  .site-footer__bottom { margin-top: 1.75rem; }

  .hero { padding: 3rem 0 3.5rem; }
  .hero__copy { padding-top: 0; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 3rem; }

  .section { padding: 3.5rem 0; }
  .section__head--spaced { margin-top: 3.5rem; }
  .cards--3 { grid-template-columns: minmax(0, 1fr); }
  /* Single column: chips sit on the top and bottom edges of the phone, clear of its figures */
  .chip--1 { top: -1rem; left: -0.5rem; }
  .chip--2 { display: none; }
  .chip--3 { bottom: -2.5rem; left: auto; right: -0.5rem; }
  .hero .lead { max-width: 58ch; }
  .security__eye { width: 20rem; height: 20rem; right: -7rem; }
  .download { padding: 2.5rem 1.25rem; }

  .legal-hero { padding: 3rem 0; }
  .legal { padding-top: 2.5rem; padding-bottom: 3.5rem; }
  .legal__layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .legal__toc { position: static; }
  .legal__section { grid-template-columns: minmax(0, 1fr); padding: 1.5rem; }
  .legal__section > *, .legal__num { grid-column: 1; }
  .legal__section h2 { grid-row: 2; margin-top: 0.75rem; }
  .regions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .cards--4, .cards--6, .facts { grid-template-columns: minmax(0, 1fr); }
  .hero .store { min-width: 0; flex: 1 1 11rem; }
}

/* Phones (2026-11-17, owner: the page was too long on mobile; desktop unchanged).
   About 8,400px tall at 390 wide before this. Tighter section spacing, a smaller
   hero phone, the feature cards in a row you swipe, and the privacy facts, the
   "Inside the app" cards and the two plans two to a row. */
@media (max-width: 520px) {
  .section { padding: 2.75rem 0; }
  .section__head { margin-bottom: 1.5rem; }
  .section--features { padding: 2.75rem 0; }

  .hero { padding: 2rem 0 2.75rem; }
  .hero__inner { gap: 2rem; }
  .phone-stage { zoom: .72; }

  /* Features: one row, swiped sideways, the next card peeking in */
  .cards--features,
  [data-theme="dark"] .cards--features {
    display: flex;
    gap: 0.75rem;
    margin-inline: -1.25rem;
    padding: 0.25rem 1.25rem 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .cards--features::-webkit-scrollbar { display: none; }
  .cards--features .card { flex: 0 0 82%; scroll-snap-align: start; }
  .cards--features .card:hover { transform: none; }

  /* Privacy: the four facts two to a row */
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .fact { padding: 1rem 0.875rem; }
  .fact .card__icon { width: 2.25rem; height: 2.25rem; }
  .fact .card__icon svg { width: 1.125rem; height: 1.125rem; }
  .fact h3 { margin-top: 0.75rem; font-size: 0.9375rem; line-height: 1.3; }
  .fact p { margin-top: 0.25rem; font-size: 0.8125rem; line-height: 1.15rem; }
  .security .more { margin-top: 1.25rem; }

  /* Inside the app: a smaller figure and the cards two to a row */
  .inside__figure { height: 11rem; }
  .inside__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .burst { gap: 0.5rem; padding: 0.5rem 0.625rem; border-radius: 0.75rem; }
  .burst__icon { display: none; }
  .burst__value { display: block; font-size: 0.8125rem; }

  /* Pricing: the two plans side by side */
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.625rem; }
  .plan { gap: 0.625rem; padding: 1rem 0.875rem; border-radius: 1rem; }
  .plan h3 { flex-wrap: wrap; gap: 0.375rem; font-size: 0.9375rem; }
  .plan__price { font-size: 1.5rem; }
  .plan__price small { display: block; font-size: 0.8125rem; }
  .plan__note { font-size: 0.8125rem; line-height: 1.15rem; }
  .plan .btn { min-height: 2.75rem; padding: 0 0.5rem; font-size: 0.8125rem; }
}

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

/* ==========================================================================
   Email confirmation page (/auth/confirmed)
   ========================================================================== */

.confirm__panel { max-width: 46rem; margin: 0 auto; }
[data-state][hidden] { display: none; }
.confirm__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: var(--ss-mint-green);
  color: var(--ss-deep-navy);   /* labels on Mint and Coral fills are Deep Navy */
}
.confirm__icon--alert { background: var(--ss-coral-alert); }
.confirm__icon svg { width: 1.75rem; height: 1.75rem; stroke-width: 2.4; }
.confirm h1 { margin-top: 0.75rem; font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
.confirm__text { max-width: 34rem; margin: 1.25rem auto 0; color: var(--muted); }
.confirm__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.confirm__note { margin-top: 2.5rem; color: var(--muted); }
.confirm .stores { margin-top: 1rem; }
.confirm h1:focus { outline: none; }
.confirm .lead { max-width: 34rem; }

/* Progress on the /auth/confirm buttons and while the page loads */
.confirm__spinner,
.confirm__busy {
  display: block;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 0.1875rem solid color-mix(in srgb, var(--ss-cloud-white) 20%, transparent);
  border-top-color: var(--ss-mint-green);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.confirm__busy { display: none; width: 1rem; height: 1rem; margin: 0 0.5rem 0 0; border-width: 0.125rem; border-color: rgb(var(--ss-deep-navy-rgb) / .3); border-top-color: var(--ss-deep-navy); }
.btn.is-busy .confirm__busy { display: inline-block; }
.confirm button.btn { font-family: inherit; cursor: pointer; }
.btn:disabled { cursor: progress; opacity: .85; transform: none; }

/* ==========================================================================
   Account deletion page (/delete-account)
   ========================================================================== */

.legal__section--form:hover { transform: none; border-color: var(--border); }
.legal__section ul, .legal__section ol { max-width: 70ch; margin: 0.75rem 0 0; padding-left: 1.25rem; color: var(--muted); }
.legal__section li + li { margin-top: 0.5rem; }
.legal__section li strong { color: var(--text); }

/* Values the owner still has to confirm: shown on the page, never guessed */
.todo {
  padding: 0 0.25rem;
  border: 1px dashed var(--ss-coral-alert);
  border-radius: 0.25rem;
  background: rgb(var(--ss-coral-alert-rgb) / .14);
  color: var(--text);
  font-weight: 600;
}

.erase {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--ss-radius-card);
  background: var(--bg);
}
.erase__step { display: grid; gap: 1rem; }
.erase__step[hidden] { display: none; }
.erase__step > p { margin-top: 0; }

.field { display: grid; gap: 0.5rem; max-width: 26rem; }
.field label { font-size: var(--ss-body-sm-size); line-height: var(--ss-body-sm-line); font-weight: 600; }
.field input {
  min-height: 3rem;
  padding: 0 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--ss-radius-button);
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(var(--ss-mint-green-rgb) / .3); }
#code { max-width: 11rem; font-size: 1.375rem; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }

.erase__msg:empty { display: none; }
.erase__msg { color: var(--text); font-weight: 600; }
.erase__msg--ok { padding: 0.75rem 1rem; border-radius: var(--ss-radius-button); background: var(--tile); font-weight: 400; }
.erase__msg:focus { outline: none; }

.erase__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 0.25rem; }
.erase button.btn { font-family: inherit; cursor: pointer; }
.erase .btn--secondary { background: transparent; }
.erase .btn--secondary:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.erase__link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.erase__link:disabled { color: var(--muted); font-weight: 400; text-decoration: none; cursor: default; font-variant-numeric: tabular-nums; }

/* Destructive action: Coral fill with a Deep Navy label, as on the alert icons */
.btn--danger { background: var(--ss-coral-alert); color: var(--ss-deep-navy); }
.btn--danger:hover { box-shadow: 0 0.5rem 1.25rem rgb(var(--ss-coral-alert-rgb) / .35); }
.btn--danger:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

.erase .erase__who { font-size: 1.125rem; color: var(--text); }
.erase__who:focus { outline: none; }
.erase .erase__warn {
  display: flex;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--ss-coral-alert);
  border-radius: var(--ss-radius-button);
  background: rgb(var(--ss-coral-alert-rgb) / .1);
  color: var(--text);
}
.erase__warn svg { flex: none; width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; }
.erase .erase__list { margin-top: -0.5rem; }

.erase__done { justify-items: center; padding: 1rem 0; text-align: center; }
.erase__done .confirm__icon { margin: 0; }
.erase__done h3 { font-size: 1.375rem; line-height: 1.75rem; }
.erase__done h3:focus { outline: none; }
.erase__done p { margin: 0; color: var(--text); }

/* ==========================================================================
   Privacy policy tables and sub-headings (/privacy)
   ========================================================================== */

.legal__section h3 { margin-top: 1.75rem; }
.legal__section li { color: var(--muted); }

.legal-table {
  width: 100%;
  margin-top: 1.25rem;
  border-collapse: collapse;
  font-size: var(--ss-body-sm-size);
  line-height: var(--ss-body-sm-line);
}
.legal-table th, .legal-table td {
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.legal-table thead th {
  padding-top: 0;
  border-bottom: 2px solid var(--ss-mint-green);
  font-size: var(--ss-micro-size);
  line-height: var(--ss-micro-line);
  letter-spacing: var(--ss-micro-tracking);
  text-transform: uppercase;
  color: var(--text);
}
.legal-table tbody th { width: 28%; font-weight: 600; color: var(--text); }
.legal-table td { color: var(--muted); }

/* Phones: each row becomes a small card, labelled from data-label */
@media (max-width: 640px) {
  .legal-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table th, .legal-table td { display: block; width: auto; }
  .legal-table tr { padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
  .legal-table tbody th, .legal-table td { padding: 0; border: 0; }
  .legal-table tbody th { width: auto; font-size: var(--ss-body-size); }
  .legal-table td { margin-top: 0.5rem; }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: var(--ss-micro-size);
    line-height: var(--ss-micro-line);
    letter-spacing: var(--ss-micro-tracking);
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text);
  }
}
