/*
 * Paydownly website styles.
 * Colours, type and shape come from the app's own design tokens (src/styles/tokens.css) so the site,
 * the store listing and the app match. Light theme on :root, dark theme via prefers-color-scheme.
 * No external requests: the font is self-hosted from assets/fonts (SIL Open Font License, see OFL.txt).
 * The CSP forbids inline styles, so never add style="" attributes in the HTML. Use classes instead.
 */

/* ------------------------------------------------------------------ */
/* Font                                                                */
/* ------------------------------------------------------------------ */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-wght-normal.woff2') format('woff2-variations'),
    url('fonts/manrope-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Latin Extended also carries the rupee sign (U+20B9) and other currency signs. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2-variations'),
    url('fonts/manrope-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

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

:root {
  color-scheme: light;

  --bg: #f3f4fa;
  --surface: #ffffff;
  --surface-2: #eef0f7;
  --ink: #12142b;
  --ink-2: #41455e;
  --ink-3: #5a5f78;
  --line: #e3e5ef;
  --line-strong: #cdd1e1;

  --accent: #4f46e5;
  --accent-2: #7039e0;
  --accent-ink: #ffffff;
  --accent-soft: #eeedfd;
  --accent-text: #4338ca;
  --warm: #ff9f43;

  --positive: #047857;
  --positive-soft: #ddf4ea;
  --warning: #8a4700;
  --warning-soft: #fdf1d9;
  --critical: #b3261e;
  --critical-soft: #fde8e6;
  --info: #1d54c2;
  --info-soft: #e5edfd;

  --focus: #4f46e5;

  --hero-from: #2c2a85;
  --hero-via: #4338ca;
  --hero-to: #6a2fd4;
  --hero-glow: rgba(255, 176, 112, 0.16);
  --hero-ink: #ffffff;
  --hero-ink-2: #ece9ff;
  --hero-ink-3: #e1deff;
  --hero-shadow: 0 1px 2px rgba(44, 42, 133, 0.2), 0 24px 48px -20px rgba(67, 56, 202, 0.55);

  --progress-from: #05875f;
  --progress-to: #0b7fae;

  --tint-indigo-bg: #ebeafe;
  --tint-indigo-fg: #4338ca;
  --tint-emerald-bg: #dcf4e9;
  --tint-emerald-fg: #047857;
  --tint-amber-bg: #fdefd4;
  --tint-amber-fg: #8f4b00;
  --tint-rose-bg: #fde6ec;
  --tint-rose-fg: #b4163f;
  --tint-sky-bg: #def0fc;
  --tint-sky-fg: #04679c;
  --tint-violet-bg: #f1e9fe;
  --tint-violet-fg: #6a2fd4;
  --tint-teal-bg: #d8f3f0;
  --tint-teal-fg: #0b6e66;
  --tint-slate-bg: #e9ebf3;
  --tint-slate-fg: #474d68;

  --grad-accent: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-progress: linear-gradient(90deg, var(--progress-from) 0%, var(--progress-to) 100%);
  --grad-hero: radial-gradient(120% 95% at 100% 0%, var(--hero-glow) 0%, transparent 58%),
    linear-gradient(135deg, var(--hero-from) 0%, var(--hero-via) 55%, var(--hero-to) 100%);
  --grad-soft: radial-gradient(90% 80% at 85% 0%, rgba(255, 159, 67, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #eceafe 0%, #f4effe 55%, #eef0f7 100%);

  --shadow-xs: 0 1px 2px rgba(18, 20, 43, 0.06);
  --shadow-1: 0 1px 2px rgba(18, 20, 43, 0.04), 0 2px 6px -1px rgba(18, 20, 43, 0.05),
    0 10px 24px -14px rgba(18, 20, 43, 0.12);
  --shadow-2: 0 2px 4px rgba(18, 20, 43, 0.05), 0 14px 34px -10px rgba(18, 20, 43, 0.2);
  --shadow-accent: 0 1px 2px rgba(67, 56, 202, 0.24), 0 8px 20px -8px rgba(79, 70, 229, 0.6);

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-2xl: 32px;
  --r-pill: 999px;

  /* The privacy band: one full-width dark stripe that breaks the run of white cards. */
  --band-bg: radial-gradient(70% 70% at 100% 0%, rgba(255, 176, 112, 0.12) 0%, transparent 60%),
    linear-gradient(160deg, #1d1a56 0%, #13113b 100%);
  --band-ink-2: #dedbf8;
  --band-ink-3: #c9c5ec;
  --warm-ink: #ffc58a;

  --gutter: 16px;
  --max: 1200px;
  --header-h: 56px;
  /* Height of the chip row under the logo below 960px (0 when the links sit in the header row). */
  --nav-h: 48px;
  --section-y: clamp(64px, 4rem + 4vw, 128px);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --bg: #0b0f1e;
    --surface: #141a2d;
    --surface-2: #1c2340;
    --ink: #eef0fb;
    --ink-2: #c5c9df;
    --ink-3: #a2a8c4;
    --line: #252c47;
    --line-strong: #353d61;

    --accent: #9591ff;
    --accent-2: #b98cff;
    --accent-ink: #0d0b2e;
    --accent-soft: #24264f;
    --accent-text: #aeabff;
    --warm: #ffae5e;

    --positive: #56dba8;
    --positive-soft: #10302a;
    --warning: #f6c661;
    --warning-soft: #392c10;
    --critical: #ff9c92;
    --critical-soft: #411c21;
    --info: #a3c0ff;
    --info-soft: #18264a;

    --focus: #aba8ff;

    --hero-from: #25226e;
    --hero-via: #3a31a8;
    --hero-to: #5a2bb5;
    --hero-glow: rgba(255, 174, 94, 0.18);
    --hero-ink-2: #e2deff;
    --hero-ink-3: #dcd8ff;
    --hero-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 48px -20px rgba(0, 0, 0, 0.75);

    --progress-from: #3fd49b;
    --progress-to: #4cbcf0;

    --tint-indigo-bg: #262759;
    --tint-indigo-fg: #b6b3ff;
    --tint-emerald-bg: #11312a;
    --tint-emerald-fg: #62dfae;
    --tint-amber-bg: #392b11;
    --tint-amber-fg: #f8c96b;
    --tint-rose-bg: #3d1a28;
    --tint-rose-fg: #ffa3b9;
    --tint-sky-bg: #102f49;
    --tint-sky-fg: #82caf8;
    --tint-violet-bg: #2f2253;
    --tint-violet-fg: #cdaaff;
    --tint-teal-bg: #0f3334;
    --tint-teal-fg: #63d9cd;
    --tint-slate-bg: #232a43;
    --tint-slate-fg: #bcc2db;

    --grad-soft: radial-gradient(90% 80% at 85% 0%, rgba(255, 174, 94, 0.08) 0%, transparent 60%),
      linear-gradient(160deg, #1a1d45 0%, #1d1838 55%, #141a2d 100%);

    --band-bg: radial-gradient(70% 70% at 100% 0%, rgba(255, 174, 94, 0.09) 0%, transparent 60%),
      linear-gradient(160deg, #1c1f4d 0%, #16183a 100%);

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
    --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 1px 2px rgba(0, 0, 0, 0.35),
      0 8px 22px -12px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 2px 6px rgba(0, 0, 0, 0.4),
      0 16px 36px -10px rgba(0, 0, 0, 0.65);
    --shadow-accent: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 20px -8px rgba(149, 145, 255, 0.45);
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 24px;
    --header-h: 64px;
  }
}

@media (min-width: 960px) {
  :root {
    --header-h: 72px;
    --nav-h: 0px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 32px;
  }
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(1100px 560px at 85% -160px, rgba(79, 70, 229, 0.07), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

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

a {
  color: var(--accent-text);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button {
  font: inherit;
  color: inherit;
}

strong {
  font-weight: 750;
  color: var(--ink);
}

:focus {
  outline: none;
}

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

::selection {
  background: var(--accent-soft);
  color: var(--ink);
}

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

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), background-color 0.15s var(--ease);
}

.btn .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover,
.btn-light:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-light {
  background: #ffffff;
  color: #2f2a8f;
  box-shadow: 0 1px 2px rgba(20, 16, 70, 0.2), 0 10px 24px -10px rgba(20, 16, 70, 0.55);
}

.btn-light:focus-visible {
  outline-color: #ffffff;
}

/* "Google Play · Coming soon": a plain status label, not a control (it is not focusable and does nothing).
   The pill uses the warm brand accent: #4a2500 on #ffd9ad is about 10:1. */
.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--r-pill);
  color: var(--hero-ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.store-badge .icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.store-badge .pill {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: #ffd9ad;
  color: #4a2500;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

.btn-quiet {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.btn-quiet:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Phones: the real button fills the width; the Google Play status sits quietly underneath, centred. */
@media (max-width: 479px) {
  .cta-row {
    justify-content: center;
  }

  .cta-row .btn {
    width: 100%;
  }

  .cta-row .store-badge {
    gap: 8px;
    min-height: 40px;
    padding: 0 8px;
    border-color: transparent;
    font-size: 0.875rem;
    font-weight: 650;
  }

  .cta-row .store-badge .icon {
    width: 18px;
    height: 18px;
  }
}

/* Very small phones (320–379px): tighter buttons, and they may wrap rather than overflow. */
@media (max-width: 379px) {
  .btn {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 8px 16px;
    font-size: 0.9375rem;
    white-space: normal;
    text-align: center;
  }

  .store-badge .pill {
    padding: 3px 8px;
    font-size: 0.6875rem;
  }
}

/* Every grid gets an explicit shrinkable column, so wide content can never stretch it past the screen. */
.hero-panel,
.spotlight,
.steps,
.split,
.privacy-tiles,
.not-grid,
.faq-layout,
.footer-grid,
.legal-layout {
  grid-template-columns: minmax(0, 1fr);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 244, 250, 0.82);
  border-bottom: 1px solid rgba(205, 209, 225, 0.55);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

@media (prefers-color-scheme: dark) {
  .site-header {
    background: rgba(11, 15, 30, 0.8);
    border-bottom-color: rgba(53, 61, 97, 0.6);
  }
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: var(--header-h);
  margin-right: auto;
  padding: 6px 0;
  border-radius: 8px;
}

@media (min-width: 960px) {
  .header-inner {
    flex-wrap: nowrap;
  }
}

.brand img {
  height: 28px;
  width: auto;
}

@media (min-width: 768px) {
  .brand img {
    height: 32px;
  }
}

.main-nav ul {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* Below 960px: the same links as a row of chips under the logo. The row scrolls sideways on its own when it is
   wider than the screen (the page never does), and fades at the right edge to show there is more. No JavaScript. */
@media (max-width: 959px) {
  .main-nav {
    order: 3;
    flex: 1 0 100%;
    height: var(--nav-h);
    margin-inline: calc(-1 * var(--gutter));
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav ul {
    gap: 6px;
    width: max-content;
    padding: 0 32px 4px var(--gutter);
  }

  .main-nav a {
    position: relative;
    z-index: 0;
    padding: 0 15px;
    font-size: 0.875rem;
  }

  /* The visible pill is 36px tall; the link itself stays 44px tall for touch. */
  .main-nav a::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 4px 0;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-pill);
    background: var(--surface);
  }

  .main-nav a:hover {
    background: none;
  }

  .main-nav a:hover::before {
    border-color: var(--accent);
  }

  .main-nav a:focus-visible {
    outline-offset: -1px;
    border-radius: var(--r-pill);
  }
}

@media (min-width: 960px) {
  .main-nav {
    margin-right: 8px;
  }
}

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

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

.section + .section {
  padding-top: 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(32px, 2rem + 1.5vw, 56px);
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-text);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.875rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.section-intro {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* The payoff line: the brand's one recurring device. A quiet track with a saffron fill that ends in the "sun"
   dot from the logo (the dot at the end of the "p" track). It opens each home-page section, and its fill grows
   from section to section, so the page itself reads like a balance being paid down. Purely decorative. */
.payoff-rule {
  --p: 50%;
  position: relative;
  height: 14px;
  margin-bottom: clamp(32px, 2rem + 1.5vw, 56px);
}

.payoff-rule::before {
  content: '';
  position: absolute;
  top: 6px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
}

.payoff-rule i {
  position: absolute;
  top: 6px;
  left: 0;
  width: var(--p);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 159, 67, 0.2) 0%, var(--warm) 100%);
}

.payoff-rule i::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.2);
  transform: translateY(-50%);
}

.p-15 { --p: 15%; }
.p-35 { --p: 35%; }
.p-55 { --p: 55%; }
.p-70 { --p: 70%; }
.p-85 { --p: 85%; }
.p-100 { --p: 100%; }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.icon-chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: var(--r-md);
}

.tint-indigo {
  background: var(--tint-indigo-bg);
  color: var(--tint-indigo-fg);
}
.tint-emerald {
  background: var(--tint-emerald-bg);
  color: var(--tint-emerald-fg);
}
.tint-amber {
  background: var(--tint-amber-bg);
  color: var(--tint-amber-fg);
}
.tint-rose {
  background: var(--tint-rose-bg);
  color: var(--tint-rose-fg);
}
.tint-sky {
  background: var(--tint-sky-bg);
  color: var(--tint-sky-fg);
}
.tint-violet {
  background: var(--tint-violet-bg);
  color: var(--tint-violet-fg);
}
.tint-teal {
  background: var(--tint-teal-bg);
  color: var(--tint-teal-fg);
}
.tint-slate {
  background: var(--tint-slate-bg);
  color: var(--tint-slate-fg);
}

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

.hero {
  padding-top: 12px;
}

@media (min-width: 768px) {
  .hero {
    padding-top: 24px;
  }
}

.hero-panel {
  --pad: 20px;
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 40px;
  overflow: hidden;
  padding: 44px var(--pad) 0;
  border-radius: 28px;
  background: var(--grad-hero);
  color: var(--hero-ink);
  box-shadow: var(--hero-shadow);
}

/* A faint ring and a saffron glow, echoing the "p" track and the sun in the mark. */
.hero-panel::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -220px;
  right: -300px;
  width: 640px;
  height: 640px;
  border: 80px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.hero-panel::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -160px;
  right: -140px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  /* A clear peach rather than a strong saffron, so it reads as warm light, not haze, where it meets the indigo. */
  background: radial-gradient(closest-side, rgba(255, 180, 120, 0.2), rgba(255, 180, 120, 0) 100%);
}

.hero-copy {
  max-width: 600px;
}

.hero .eyebrow {
  margin-bottom: 20px;
  padding: 6px 14px 6px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.13);
  color: var(--hero-ink);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

/* A small payoff line in the hero's label: the start of the same line that runs down the page. */
.payoff-mini {
  position: relative;
  flex: none;
  width: 30px;
  height: 10px;
}

.payoff-mini::before {
  content: '';
  position: absolute;
  top: 4px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--warm) 0 40%, rgba(255, 255, 255, 0.4) 40% 100%);
}

.payoff-mini::after {
  content: '';
  position: absolute;
  top: 0;
  left: calc(40% - 5px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 0 3px rgba(255, 159, 67, 0.25);
}

.hero h1 {
  color: var(--hero-ink);
  font-size: clamp(2.125rem, 1.35rem + 3.6vw, 3.875rem);
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero h1 .soft {
  display: block;
  margin-top: 0.12em;
  color: #d9d4ff;
}

/* Tablets: a narrower headline so both sentences break into balanced pairs of lines. */
@media (min-width: 600px) and (max-width: 959px) {
  .hero h1 {
    max-width: 11em;
  }
}

.hero .lead {
  margin-top: 20px;
  color: var(--hero-ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.6;
}

.hero .cta-row {
  margin-top: 32px;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--hero-ink-3);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero-note li {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.hero-note .icon {
  width: 18px;
  height: 18px;
  margin-top: 0.2em;
  stroke-width: 2.4;
  color: #c8f3e0;
}

.hero-aside {
  margin-top: 14px;
  color: var(--hero-ink-3);
  font-size: 0.875rem;
  font-weight: 600;
}

/* The phone keeps its real shape (align-items is not "stretch") and is cropped by the panel's bottom edge. */
.hero-visual {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 380px;
  margin-inline: calc(-1 * var(--pad) + 8px);
}

.hero-visual::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 50%;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
  transform: translateX(-50%);
}

.float-chip {
  display: none;
}

@media (min-width: 480px) {
  .hero-panel {
    --pad: 40px;
    padding-top: 56px;
  }
}

@media (min-width: 960px) {
  .hero-panel {
    --pad: 64px;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 32px;
    padding: 0 var(--pad);
    border-radius: var(--r-2xl);
  }

  .hero-copy {
    align-self: center;
    padding-block: 80px;
  }

  .hero-visual {
    align-items: flex-end;
    height: auto;
    min-height: 600px;
    margin-inline: 0;
    padding-top: 48px;
  }

  .hero-visual .phone {
    width: 300px;
    margin-bottom: -96px;
  }
}

/* Between the breakpoints: a wider text column and a smaller phone (and, below 1100px, a smaller headline),
   so the two buttons stay on one row and the copy doesn't get tall and cramped. */
@media (min-width: 960px) and (max-width: 1239px) {
  .hero-panel {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  }

  .hero-visual .phone {
    width: 280px;
  }
}

@media (min-width: 960px) and (max-width: 1099px) {
  .hero-panel {
    --pad: 48px;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-visual .phone {
    width: 260px;
  }
}

/* Small floating notes beside the hero phone, shown only where there is room for them. The phone moves to the
   left of its column and both notes sit to its right, over the phone's frame and the empty edge of the screen,
   never over the figures. Positioned from the bottom, so they stay beside the same part of the phone (which is
   anchored to the panel's bottom edge) whatever the height of the text column. */
@media (min-width: 1240px) {
  .hero-visual {
    justify-content: flex-start;
  }

  .float-chip {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 10px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .float-chip .icon-chip {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .float-chip .icon {
    width: 20px;
    height: 20px;
  }

  .float-chip small {
    display: block;
    color: var(--ink-3);
    font-size: 0.75rem;
    font-weight: 600;
  }

  .float-chip.one {
    bottom: 330px;
    right: -44px;
  }

  .float-chip.two {
    bottom: 150px;
    right: -44px;
  }
}

@media (min-width: 1240px) and (prefers-color-scheme: dark) {
  .float-chip {
    border-color: var(--line-strong);
    background: var(--surface-2);
  }
}

/* ------------------------------------------------------------------ */
/* Phone mock-ups (CSS illustrations of real app screens)              */
/* Everything inside scales with the phone's width (container units).  */
/* ------------------------------------------------------------------ */

.phone {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(272px, 100%);
  aspect-ratio: 9 / 19;
  padding: 8px;
  border-radius: 44px;
  background: linear-gradient(150deg, #2a2f4a 0%, #0c0e1a 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 2px 4px rgba(10, 10, 40, 0.2),
    0 32px 64px -24px rgba(12, 10, 60, 0.6);
  container-type: inline-size;
}

@media (prefers-color-scheme: dark) {
  .phone {
    background: linear-gradient(150deg, #474d72 0%, #1b1f33 60%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2px 4px rgba(0, 0, 0, 0.4),
      0 32px 64px -24px rgba(0, 0, 0, 0.8);
  }
}

/* A real screenshot dropped into a SCREENSHOT-SLOT (replace the whole .phone block with <img class="phone-shot">). */
.phone-shot {
  position: relative;
  z-index: 1;
  flex: none;
  width: min(300px, 100%);
  height: auto;
  border-radius: 36px;
  box-shadow: var(--shadow-2);
}

.ph-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: var(--bg);
  color: var(--ink);
  font-size: 11px;
  font-size: 4.3cqi;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-align: left;
}

.ph-island {
  position: absolute;
  top: 0.8em;
  left: 50%;
  width: 7.6em;
  height: 2.1em;
  border-radius: 2em;
  background: #05060c;
  transform: translateX(-50%);
}

.ph-appbar {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 3.9em 1.2em 0.8em;
}

.ph-appbar img {
  width: 2em;
  height: 2em;
}

.ph-title {
  font-size: 1.45em;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.ph-example {
  margin-left: auto;
  padding: 0.3em 0.75em;
  border-radius: 2em;
  background: var(--tint-amber-bg);
  color: var(--tint-amber-fg);
  font-size: 0.82em;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ph-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.75em;
  min-height: 0;
  padding: 0 1em;
}

.ph-hero {
  position: relative;
  overflow: hidden;
  padding: 1.15em 1.2em 1.2em;
  border-radius: 1.4em;
  background: var(--grad-hero);
  color: #ffffff;
  box-shadow: var(--hero-shadow);
}

.ph-label {
  color: var(--ink-3);
  font-size: 0.86em;
  font-weight: 650;
}

.ph-hero .ph-label {
  color: var(--hero-ink-2);
}

.ph-amount {
  margin-top: 0.1em;
  font-size: 2.45em;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.ph-hero-foot {
  display: flex;
  gap: 0.5em;
  margin-top: 0.7em;
}

.ph-chip {
  padding: 0.25em 0.7em;
  border-radius: 2em;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.8em;
  font-weight: 700;
}

.ph-card {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: 1.2em;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.ph-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em;
  margin-bottom: 0.3em;
  font-size: 1em;
  font-weight: 800;
}

.ph-card-title span {
  color: var(--accent-text);
  font-size: 0.85em;
  font-weight: 700;
}

.ph-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4em;
}

.ph-stat {
  padding: 0.7em 0.6em;
  border: 1px solid var(--line);
  border-radius: 1em;
  background: var(--surface);
}

.ph-stat .ph-label {
  font-size: 0.78em;
  line-height: 1.25;
}

.ph-stat b {
  display: block;
  margin-top: 0.3em;
  font-size: 1.08em;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.ph-row {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.65em 0;
  border-top: 1px solid var(--line);
}

.ph-row:first-of-type {
  border-top: 0;
}

.ph-avatar {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  flex: none;
  border-radius: 0.8em;
}

.ph-avatar .icon {
  width: 1.4em;
  height: 1.4em;
  stroke-width: 2;
}

.ph-row-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2em;
  min-width: 0;
}

.ph-name {
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ph-badge {
  padding: 0.12em 0.6em;
  border-radius: 2em;
  font-size: 0.8em;
  font-weight: 750;
}

.ph-badge.overdue {
  background: var(--critical-soft);
  color: var(--critical);
}

.ph-badge.soon {
  background: var(--warning-soft);
  color: var(--warning);
}

.ph-badge.later {
  background: var(--info-soft);
  color: var(--info);
}

.ph-money {
  font-weight: 800;
  white-space: nowrap;
}

.ph-group {
  margin: 0.2em 0 -0.2em;
  color: var(--ink-3);
  font-size: 0.8em;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ph-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0.25em;
  border-radius: 1em;
  background: var(--surface-2);
  font-size: 0.9em;
  font-weight: 750;
  text-align: center;
}

.ph-seg span {
  padding: 0.45em;
  border-radius: 0.8em;
  color: var(--ink-3);
}

.ph-seg .on {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

.ph-plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5em;
}

.ph-plan-name {
  font-weight: 800;
}

.ph-plan-name small {
  display: block;
  color: var(--ink-3);
  font-size: 0.82em;
  font-weight: 650;
}

.ph-tag {
  padding: 0.15em 0.6em;
  border-radius: 2em;
  background: var(--positive-soft);
  color: var(--positive);
  font-size: 0.78em;
  font-weight: 800;
  white-space: nowrap;
}

.ph-bar {
  height: 0.55em;
  margin: 0.6em 0 0.55em;
  border-radius: 1em;
  background: var(--surface-2);
}

.ph-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--grad-progress);
}

.ph-bar.base i {
  background: var(--line-strong);
}

.w-100 {
  width: 100%;
}
.w-82 {
  width: 82%;
}
.w-76 {
  width: 76%;
}

.ph-facts {
  display: grid;
  gap: 0.25em;
  font-size: 0.9em;
}

.ph-facts div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6em;
}

.ph-facts span {
  color: var(--ink-3);
  font-weight: 650;
  white-space: nowrap;
}

.ph-facts b {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.ph-facts .pos {
  color: var(--positive);
}

.ph-note {
  display: flex;
  align-items: center;
  gap: 0.5em;
  color: var(--ink-3);
  font-size: 0.8em;
  font-weight: 650;
}

.ph-note .icon {
  width: 1.3em;
  height: 1.3em;
  stroke-width: 2.2;
}

.ph-tabbar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: auto;
  padding: 0.7em 0.4em 1.6em;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.ph-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2em;
  color: var(--ink-3);
  font-size: 0.74em;
  font-weight: 700;
}

.ph-tab .icon {
  width: 1.9em;
  height: 1.9em;
}

.ph-tab.on {
  color: var(--accent-text);
}

/* ------------------------------------------------------------------ */
/* Features                                                            */
/* ------------------------------------------------------------------ */

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px 28px;
}

.feature h3 {
  margin-top: 6px;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.feature p {
  color: var(--ink-2);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .feature-grid {
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Spotlights: one feature with its phone */
.spotlight {
  display: grid;
  gap: 32px;
  align-items: center;
  margin-top: clamp(56px, 3rem + 3vw, 104px);
}

.spotlight-copy {
  max-width: 540px;
}

.spotlight-copy .icon-chip {
  margin-bottom: 20px;
}

.spotlight-copy h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  letter-spacing: -0.03em;
}

.spotlight-copy p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

/* Flat labels with a small tick, so they don't look like buttons or filters. */
.tag-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 700;
}

.tag-list li::before {
  content: '';
  flex: none;
  width: 5px;
  height: 9px;
  margin: -3px 2px 0 3px;
  border: solid var(--positive);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.spotlight-visual {
  margin: 0;
}

.stage {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 440px;
  overflow: hidden;
  padding: 40px 16px 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--grad-soft);
}

.stage::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -240px;
  left: 50%;
  width: 520px;
  height: 520px;
  border: 60px solid rgba(79, 70, 229, 0.06);
  border-radius: 50%;
  transform: translateX(-50%);
}

/* The phone fades out before the stage's bottom edge, so no row is cut in half. The fade is set in pixels from
   the top of the phone because the visible part depends on the stage height, not on the phone's own height. */
.stage .phone {
  -webkit-mask-image: linear-gradient(180deg, #000 290px, transparent 392px);
  mask-image: linear-gradient(180deg, #000 290px, transparent 392px);
}

.figcaption {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 0.875rem;
  text-align: center;
}

@media (min-width: 900px) {
  .spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
  }

  .spotlight.reverse .spotlight-visual {
    order: -1;
  }

  .stage {
    height: 520px;
    padding-top: 56px;
  }

  .stage .phone {
    width: 292px;
    -webkit-mask-image: linear-gradient(180deg, #000 340px, transparent 456px);
    mask-image: linear-gradient(180deg, #000 340px, transparent 456px);
  }
}

/* ------------------------------------------------------------------ */
/* How it works                                                        */
/* ------------------------------------------------------------------ */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

/* Phones and tablets: number on the left, text on the right, so short steps don't leave half a card empty. */
.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 20px;
}

.step-num {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--accent-ink);
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: var(--shadow-accent);
}

.step h3 {
  padding-top: 10px;
  font-size: 1.1875rem;
}

.step p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 1rem;
}

@media (min-width: 640px) {
  .step {
    column-gap: 20px;
    padding: 24px 28px;
  }
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .step {
    display: block;
    padding: 28px 24px;
  }

  .step-num {
    margin-bottom: 18px;
  }

  .step h3 {
    padding-top: 0;
  }

  .step p {
    margin-top: 8px;
  }
}

.callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--ink-2);
}

.callout .icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.callout .icon {
  width: 22px;
  height: 22px;
}

.callout p {
  align-self: center;
}

/* ------------------------------------------------------------------ */
/* Families                                                            */
/* ------------------------------------------------------------------ */

.split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 72px;
  }
}

.check-list {
  display: grid;
  gap: 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 14px;
  color: var(--ink-2);
}

.check-list .icon-chip {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.check-list .icon {
  width: 22px;
  height: 22px;
}

.check-list li > span:last-child {
  align-self: center;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--warning-soft);
  color: var(--warning);
  font-weight: 650;
}

.note .icon {
  margin-top: 1px;
}

/* A simplified "Family & devices" screen: the member list, and an invite code card in the brand's saffron. */
.family-art {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(32px, 1.25rem + 4vw, 64px) clamp(16px, 0.5rem + 3vw, 48px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--grad-soft);
}

.family-art::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -260px;
  left: 50%;
  width: 520px;
  height: 520px;
  border: 60px solid rgba(79, 70, 229, 0.06);
  border-radius: 50%;
  transform: translateX(-50%);
}

.fam-mock {
  position: relative;
  width: min(100%, 380px);
  padding-bottom: 60px;
  font-size: 0.9375rem;
  line-height: 1.35;
}

.fam-card {
  padding: 20px 20px 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.fam-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fam-title {
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fam-family {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface-2);
}

.fam-family-name {
  color: var(--ink);
  font-weight: 800;
}

.fam-mode {
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--tint-emerald-bg);
  color: var(--tint-emerald-fg);
  font-size: 0.8125rem;
  font-weight: 750;
}

.fam-group {
  margin: 16px 0 2px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fam-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.fam-group + .fam-row {
  border-top: 0;
}

.fam-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  font-weight: 800;
}

.fam-who {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.fam-who b {
  color: var(--ink);
  font-weight: 750;
}

.fam-who small {
  overflow: hidden;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fam-badge {
  flex: none;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 750;
}

.fam-badge.owner {
  background: var(--tint-amber-bg);
  color: var(--tint-amber-fg);
}

.fam-invite {
  position: absolute;
  right: -8px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(292px, 94%);
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--warm) 45%, var(--line));
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.fam-invite-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background: #ffd9ad;
  color: #4a2500;
}

.fam-invite-icon .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.fam-invite-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fam-label {
  color: var(--ink-3);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fam-code {
  color: var(--ink);
  font-size: 1.1875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fam-meta {
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 650;
}

/* Very narrow phones: leave out the email lines rather than cut them off. */
@media (max-width: 379px) {
  .fam-who small {
    display: none;
  }

  .fam-code {
    font-size: 1.0625rem;
  }
}

/* ------------------------------------------------------------------ */
/* Privacy band                                                        */
/* ------------------------------------------------------------------ */

.band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-y);
  background: var(--band-bg);
  color: var(--band-ink-2);
}

@media (prefers-color-scheme: dark) {
  .band {
    border-block: 1px solid var(--line);
  }
}

/* A faint ring, as in the hero. */
.band::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -260px;
  left: -260px;
  width: 640px;
  height: 640px;
  border: 80px solid rgba(255, 255, 255, 0.035);
  border-radius: 50%;
}

.band + .section {
  padding-top: var(--section-y);
}

.band .payoff-rule::before {
  background: rgba(255, 255, 255, 0.18);
}

.band .eyebrow {
  color: var(--warm-ink);
}

.band .section-title,
.band h3 {
  color: #ffffff;
}

.band .section-intro {
  color: var(--band-ink-2);
}

.privacy-tiles {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .privacy-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.privacy-tile {
  padding: 26px 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
}

.privacy-tile .icon-chip {
  margin-bottom: 18px;
  background: rgba(255, 159, 67, 0.16);
  color: var(--warm-ink);
}

.privacy-tile h3 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
}

.privacy-tile p {
  margin-top: 8px;
  color: var(--band-ink-2);
  font-size: 1rem;
}

.band-fineprint {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--band-ink-3);
  font-size: 0.9375rem;
}

.band .more-link {
  text-align: center;
}

@media (min-width: 640px) {
  .band-fineprint {
    text-align: center;
  }
}

.more-link {
  margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* What it is not                                                      */
/* ------------------------------------------------------------------ */

.not-panel {
  padding: clamp(32px, 1.5rem + 3vw, 64px) clamp(20px, 1rem + 3vw, 64px);
  border-radius: 28px;
}

/* A plain list with thin rules, not a grid of boxes. */
.not-grid {
  display: grid;
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.not-grid li {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 1rem;
}

/* A small drawn "x" (no icon file needed). */
.not-mark {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tint-slate-bg);
}

.not-mark::before,
.not-mark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--tint-slate-fg);
  transform: translate(-50%, -50%) rotate(45deg);
}

.not-mark::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

@media (min-width: 700px) {
  .not-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .not-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ------------------------------------------------------------------ */
/* FAQ                                                                 */
/* ------------------------------------------------------------------ */

.faq-layout {
  display: grid;
  gap: 32px;
}

.faq-layout .section-head {
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
    gap: 64px;
    align-items: start;
  }

  .faq-layout .section-head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.faq-list {
  overflow: hidden;
  padding: 4px 0;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:first-child {
  border-top: 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 16px 24px;
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 750;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  color: var(--accent-text);
}

.faq-item summary:focus-visible {
  outline-offset: -3px;
  border-radius: 12px;
}

.faq-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--surface-2);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.faq-toggle::before,
.faq-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink-2);
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.2s var(--ease);
}

.faq-item[open] .faq-toggle {
  background: var(--accent-soft);
}

.faq-item[open] .faq-toggle::before,
.faq-item[open] .faq-toggle::after {
  background: var(--accent-text);
}

.faq-item[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  padding: 0 24px 22px;
  color: var(--ink-2);
  font-size: 1rem;
}

.faq-answer p + p {
  margin-top: 10px;
}

@media (max-width: 479px) {
  .faq-item summary {
    padding: 16px 18px;
  }
  .faq-answer {
    padding: 0 18px 20px;
  }
}

/* ------------------------------------------------------------------ */
/* Closing call to action                                              */
/* ------------------------------------------------------------------ */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 2rem + 4vw, 96px) 24px;
  border-radius: 28px;
  background: var(--grad-hero);
  color: var(--hero-ink);
  text-align: center;
  box-shadow: var(--hero-shadow);
}

.closing::before {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -340px;
  left: 50%;
  width: 640px;
  height: 640px;
  border: 80px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: translateX(-50%);
}

.closing::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -180px;
  left: 50%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 180, 120, 0.2), rgba(255, 180, 120, 0));
  transform: translateX(-50%);
}

.closing img {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 30px -10px rgba(10, 8, 50, 0.6);
}

.closing h2 {
  max-width: 640px;
  margin-inline: auto;
  color: var(--hero-ink);
  font-size: clamp(1.875rem, 1.3rem + 2.4vw, 3rem);
  letter-spacing: -0.03em;
}

.closing p {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--hero-ink-2);
  font-size: 1.0625rem;
}

.closing .cta-row {
  justify-content: center;
  margin-top: 32px;
}

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

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  gap: 36px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.footer-brand img {
  height: 30px;
  width: auto;
}

.footer-brand p {
  max-width: 440px;
  margin-top: 18px;
  color: var(--ink-3);
}

.footer-title {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.footer-contact p {
  color: var(--ink-3);
}

.footer-contact p + p {
  margin-top: 6px;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
}

.footer-bottom p {
  margin: 0;
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 700;
  text-decoration: none;
}

.to-top:hover {
  color: var(--accent-text);
  text-decoration: underline;
}

.to-top .icon {
  width: 16px;
  height: 16px;
  stroke-width: 2.4;
}

/* ------------------------------------------------------------------ */
/* Legal pages                                                         */
/* ------------------------------------------------------------------ */

.legal-hero {
  padding: clamp(32px, 1.5rem + 3vw, 72px) 0 clamp(24px, 1rem + 2vw, 40px);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-bottom: 20px;
  padding: 0 14px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.back-link .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.legal-hero h1 {
  max-width: 820px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.legal-meta li {
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 650;
}

.legal-meta strong {
  font-weight: 800;
}

.legal-intro {
  max-width: 760px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

.legal-intro p + p {
  margin-top: 12px;
}

.legal-layout {
  display: grid;
  gap: 24px;
  align-items: start;
  padding-bottom: var(--section-y);
}

@media (min-width: 1000px) {
  .legal-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 56px;
  }
}

/* Contents: a collapsible box on small screens, a sticky sidebar on wide ones. */
.toc-compact {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.toc-compact summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 20px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.toc-compact summary::-webkit-details-marker {
  display: none;
}

.toc-compact summary:focus-visible {
  outline-offset: -3px;
  border-radius: 16px;
}

.toc-compact summary small {
  color: var(--ink-3);
  font-size: 0.875rem;
  font-weight: 650;
}

.toc-compact[open] .faq-toggle {
  background: var(--accent-soft);
}

.toc-compact[open] .faq-toggle::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.toc-compact ol {
  padding: 0 12px 14px;
}

.toc-side {
  display: none;
}

@media (min-width: 1000px) {
  .toc-compact-wrap {
    display: none;
  }

  .toc-side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    display: block;
    max-height: calc(100vh - var(--header-h) - 48px);
    overflow-y: auto;
    padding: 4px 4px 4px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

.toc-title {
  margin: 0 0 10px 12px;
  color: var(--ink-3);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-list a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
}

.toc-list a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

/* About 70 characters per line for comfortable legal reading. (68ch would be ~90 characters here, because
   Manrope's "0", which the ch unit measures, is much wider than its average letter.) */
.prose {
  max-width: 34em;
  min-width: 0;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.prose > section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.prose > section:first-child {
  padding-top: 0;
  border-top: 0;
}

.prose h2 {
  margin-bottom: 14px;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 14px;
}

.prose > section > :last-child,
.prose li > :last-child {
  margin-bottom: 0;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose li {
  margin-top: 8px;
  padding-left: 4px;
}

.prose li::marker {
  color: var(--accent);
}

.prose ol > li::marker {
  font-weight: 800;
}

.prose li ul {
  margin: 8px 0 0;
}

.prose a {
  font-weight: 650;
  overflow-wrap: anywhere;
}

/* The privacy policy's "short version" and other summary boxes */
.prose > section.summary-box {
  margin-bottom: 8px;
  padding: 24px 24px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 80%, var(--surface)) 0%, var(--surface) 100%);
}

.prose > section.summary-box + section {
  border-top: 0;
}

@media (min-width: 640px) {
  .prose > section.summary-box {
    padding: 28px 32px 26px;
  }
}

.prose > section.steps-box ol {
  counter-reset: li;
  padding-left: 0;
  list-style: none;
}

.prose > section.steps-box ol > li {
  position: relative;
  min-height: 34px;
  margin-top: 12px;
  padding-left: 48px;
  counter-increment: li;
}

.prose > section.steps-box ol > li::before {
  content: counter(li);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--accent-ink);
  font-size: 0.9375rem;
  font-weight: 800;
}

.legal-contact {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.legal-contact h2 {
  margin-bottom: 8px;
  font-size: 1.125rem;
}

.legal-contact p {
  margin: 0;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ */
/* 404 and redirect pages                                              */
/* ------------------------------------------------------------------ */

.simple-page {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 64px 0;
  text-align: center;
}

.simple-page img {
  width: 72px;
  height: 72px;
  margin: 0 auto 28px;
}

.simple-page h1 {
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
}

.simple-page p {
  max-width: 520px;
  margin: 14px auto 0;
  color: var(--ink-2);
}

.simple-page .cta-row {
  justify-content: center;
  margin-top: 28px;
}

/* ------------------------------------------------------------------ */
/* Motion and print                                                    */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .btn-primary:hover,
  .btn-light:hover {
    transform: none;
  }
}

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 11pt;
  }

  .site-header,
  .site-footer,
  .skip-link,
  .toc-compact-wrap,
  .toc-side,
  .back-link {
    display: none !important;
  }

  .legal-layout {
    display: block;
  }

  .prose,
  .prose h2,
  .prose h3,
  .prose strong,
  .legal-hero h1 {
    color: #000000;
  }

  .prose a::after {
    content: ' (' attr(href) ')';
    font-weight: 400;
  }

  .prose > section {
    break-inside: avoid-page;
  }
}
