/* The Den landing page. Tokens come from the Kinetic Play & Haven design system. */
:root {
  /* Surfaces */
  --surface: #fbfbfe;
  --surface-dim: #d5d8f6;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f4f2ff;
  --surface-container: #ececff;
  --surface-container-high: #e5e6ff;
  --surface-container-highest: #dee1ff;
  --on-surface: #161a30;
  --on-surface-variant: #444655;
  --inverse-surface: #2b2f46;
  --inverse-on-surface: #f0efff;
  --outline: #747686;
  --outline-variant: #c4c5d7;

  /* Roles */
  --primary: #4453b0;
  --on-primary: #ffffff;
  --primary-container: #5664c4;
  --on-primary-container: #f4f2ff;
  --inverse-primary: #bcc4ee;
  --primary-fixed: #dee1ff;
  --secondary: #a7391e;
  --on-secondary: #ffffff;
  --secondary-container: #fd7958;
  --on-secondary-container: #6e1500;
  --secondary-fixed: #ffdad2;
  --tertiary: #6d5300;
  --tertiary-fixed: #ffdf98;
  --tertiary-fixed-dim: #f3bf2f;
  --on-tertiary-fixed-variant: #5a4300;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* Brand accents. The blues follow the logo's periwinkle (#6877CF); buttons use a deeper shade of it for AA with white text. */
  --periwinkle: #6877cf;
  --coral: #ff7a59;
  --butter: #ffca3a;
  --mint: #2ec4b6;
  --mint-ink: #1b7c72;
  --midnight: #1e2238;

  /* Pastel washes */
  --wash-periwinkle: #eef0fb;
  --wash-coral: #fff2ee;
  --wash-butter: #fef9e7;
  --wash-mint: #ebf9f6;
  /* Darker inks and washes for the feature tab icons (each ink is at least 4.5:1 on its wash). */
  --butter-ink: #9a6a00;
  --violet-ink: #7a4bd3; --wash-violet: #f3eeff;
  --sky-ink: #2a6bb0; --wash-sky: #e8f1fb;

  /* Product mock-ups keep the kiosk's night panel and calm water */
  --panel: #1e2238;
  --panel-raised: #2a2f4a;
  --on-panel: #f0efff;
  --on-panel-muted: #b8bbd6;
  --calm-top: #0b1020;
  --calm-bottom: #060912;
  --calm-ink: #e8eef6;

  --focus: #4453b0;
  --hairline: rgba(30, 34, 56, 0.06);
  --hairline-strong: rgba(30, 34, 56, 0.1);

  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --rounded-sm: 0.25rem;
  --rounded: 0.5rem;
  --rounded-md: 0.75rem;
  --rounded-lg: 1rem;
  --rounded-xl: 1.5rem;
  --rounded-full: 9999px;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --gutter: 1.5rem;
  --margin: 2.5rem;

  /* Plush layering */
  --elev-1: 0 4px 16px -2px rgba(30, 34, 56, 0.05), 0 1px 3px 0 rgba(104, 119, 207, 0.04);
  --elev-2: 0 12px 28px -4px rgba(30, 34, 56, 0.08), 0 4px 8px -2px rgba(104, 119, 207, 0.06);
  --elev-3: 0 24px 48px -8px rgba(30, 34, 56, 0.14);
  --glow-primary: 0 4px 12px rgba(104, 119, 207, 0.28);
}
@media (max-width: 1024px) { :root { --margin: 2rem; } }
@media (max-width: 640px) { :root { --margin: 1.25rem; --gutter: 1rem; } }

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}

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

/* Type scale: display-hero, headline-lg, headline-sm */
h1, h2, h3, h4 { font-family: var(--font); margin: 0 0 var(--space-md); text-wrap: balance; color: var(--on-surface); }
h1 { font-size: 56px; line-height: 64px; font-weight: 800; letter-spacing: -0.03em; }
/* Section titles are Nunito, matching the hero headline. */
h2 { font-family: "Nunito", var(--font); font-size: 38px; line-height: 44px; font-weight: 900; letter-spacing: -0.03em; }
h3 { font-size: 20px; line-height: 28px; font-weight: 600; }
p { margin: 0 0 var(--space-md); }
strong { font-weight: 700; }

a { color: var(--primary); }
a:focus-visible, summary:focus-visible, .btn:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--rounded-full);
}
summary:focus-visible { border-radius: var(--rounded); }
/* The blue ring disappears on dark grounds, so they use butter. */
.site-footer a:focus-visible { outline-color: var(--butter); }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--midnight); color: var(--inverse-on-surface);
  padding: 8px 16px; border-radius: var(--rounded-full); z-index: 10;
  font-weight: 700;
}
.skip:focus { left: 16px; }
/* The skip link moves focus to main; it needs no ring of its own. */
main:focus { outline: none; }
/* Titles are Tab stops, so keyboard users can land on each section and read on from it.
   Mouse clicks never show the ring (:focus-visible), keyboard focus always does. */
h1:focus, h2:focus, h3:focus { outline: none; }
h1:focus-visible, h2:focus-visible, h3:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 6px; border-radius: var(--rounded);
}
.site-footer h3:focus-visible { outline-color: var(--butter); }
/* Body copy, chips and rows that a script has made Tab stops (see a11y.js). */
[data-read]:focus { outline: none; }
[data-read]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: var(--rounded); }
.site-footer [data-read]:focus-visible { outline-color: var(--butter); }

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

/* Visitors who ask for less motion get no transitions or smooth scrolling anywhere. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}

.wrap { width: min(1320px, 100% - 2 * var(--margin)); margin-inline: auto; }
.narrow { width: min(800px, 100% - 2 * var(--margin)); }

/* Eyebrows are label-badge pills */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--primary); background: var(--wash-periwinkle);
  padding: 6px 12px; border-radius: var(--rounded-full); margin-bottom: var(--space-md);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
/* A butter chip for bands where the periwinkle one would sink into the wash. */
.eyebrow-butter { background: var(--butter); color: var(--midnight); }
.eyebrow-alert { background: #c62828; color: #fff; }
.eyebrow-alert::before { display: none; }
.eyebrow-alert svg { flex: none; }
.section-head-center { text-align: center; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; text-wrap: balance; }
.lead, .section-lead { font-size: 18px; line-height: 28px; color: var(--on-surface-variant); max-width: 62ch; }
.section-lead { margin-bottom: var(--space-xl); }
.fine { font-size: 13px; line-height: 18px; letter-spacing: 0.01em; color: var(--on-surface-variant); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px var(--space-lg);
  background: var(--primary-container); color: var(--on-primary);
  font-family: var(--font); font-weight: 700; font-size: 15px; letter-spacing: 0.01em;
  border-radius: var(--rounded-full); text-decoration: none;
  box-shadow: var(--glow-primary);
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 120ms ease;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--primary); box-shadow: 0 6px 16px rgba(104, 119, 207, 0.34); }
.btn:active { transform: scale(0.98); }
.btn-small { min-height: 44px; padding: 8px 20px; font-size: 14px; }
.btn-tonal, .btn-quiet { background: var(--wash-periwinkle); color: var(--primary); box-shadow: none; }
.btn-tonal:hover, .btn-quiet:hover { background: var(--surface-container-high); box-shadow: none; }
/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--surface);
  border-bottom: 1px solid transparent;
  transition: border-color 300ms ease, box-shadow 300ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--hairline); box-shadow: var(--elev-1); }
.header-row { display: flex; align-items: center; gap: var(--space-lg); min-height: 72px; }
.brand-mark { display: block; width: 36px; height: 36px; flex: none; }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--on-surface); border-radius: var(--rounded); }
.wordmark { font-family: var(--font); font-weight: 800; font-size: 22px; line-height: 1; letter-spacing: -0.03em; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
/* Small caps subtitle under the wordmark */
.brand-sub {
  font-size: 13px; line-height: 14px; font-weight: 700; letter-spacing: 0.06em;
  font-variant-caps: all-small-caps; color: var(--on-surface-variant);
}
.site-header nav { margin-left: auto; }
.nav-links { display: flex; align-items: center; gap: var(--space-xs); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  color: var(--on-surface); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  border-radius: var(--rounded-full);
  transition: background-color 200ms ease, color 200ms ease;
}
.nav-links a:not(.btn):hover { background: var(--wash-periwinkle); color: var(--primary); }
.nav-cta { display: none; }

/* Mobile menu button, shown below 820px once the script has run. */
.menu-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 48px; padding: 8px 18px; border: 0; border-radius: var(--rounded-full);
  background: var(--wash-periwinkle); color: var(--primary); cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; transition: transform 200ms ease; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.menu-open .menu-icon { background: transparent; }
.menu-open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-icon::before, .menu-icon::after { transition: none; } }

/* Hero: one rounded card holding the whole section, tinted by the backdrop picker */
@property --hero-a { syntax: "<color>"; inherits: true; initial-value: #eef0fb; }
@property --hero-b { syntax: "<color>"; inherits: true; initial-value: #f6f1ff; }
@property --hero-c { syntax: "<color>"; inherits: true; initial-value: #fff2ee; }
.hero { padding: var(--space-lg) 0 0; }
/* The hero's wash, shared by any section that needs a solid band on the dot field. */
.hero-card, .section-solid {
  --hero-a: #eef0fb; --hero-b: #f6f1ff; --hero-c: #fff2ee;
}
.hero-card, .section-solid::before {
  background:
    radial-gradient(60% 50% at 0% 0%, color-mix(in srgb, var(--hero-a) 70%, #c9d2ff) 0%, transparent 70%),
    radial-gradient(50% 45% at 100% 55%, color-mix(in srgb, var(--hero-c) 70%, #fff0b8) 0%, transparent 70%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 50%, var(--hero-c) 100%);
}
/* The band fades in and out, so it melts into the white, dotted sections above and below it. */
.section-solid { position: relative; isolation: isolate; }
.section-solid::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 140px), transparent 100%);
}
.hero-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--hairline); border-radius: calc(var(--rounded-xl) * 1.5);
  padding: clamp(40px, 5vw, 64px) clamp(20px, 4vw, 56px) 0;
  transition: --hero-a 600ms ease, --hero-b 600ms ease, --hero-c 600ms ease;
}
.hero-card[data-backdrop="rainbow"] { --hero-a: #ffe3ef; --hero-b: #fff6d9; --hero-c: #e1f6ea; }
.hero-card[data-backdrop="periwinkle"] { --hero-a: #dfe5ff; --hero-b: #eceeff; --hero-c: #e4e0ff; }
.hero-card[data-backdrop="watercolor"] { --hero-a: #d9f4ef; --hero-b: #ecf8f5; --hero-c: #e3ecff; }
.hero-card[data-backdrop="spirals"] { --hero-a: #fff0c4; --hero-b: #fef9e7; --hero-c: #ffe6d9; }
.hero-card[data-backdrop="bubbles"] { --hero-a: #efe0ff; --hero-b: #f7eeff; --hero-c: #e6e3ff; }

.hero-head { text-align: center; max-width: 1060px; margin-inline: auto; }
.hero-head .lead { margin-inline: auto; max-width: 60ch; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); list-style: none; margin: 0 0 var(--space-lg); padding: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.03em;
  padding: 7px 14px; border-radius: var(--rounded-full);
}
.badge-white { background: var(--surface-container-lowest); color: var(--primary); text-transform: uppercase; box-shadow: var(--elev-1), 0 0 0 1px var(--hairline); }
.badge-white svg { color: #b58a00; }
.badge-mint { background: var(--wash-mint); color: var(--mint-ink); box-shadow: var(--elev-1), 0 0 0 1px var(--hairline); }
.badge-coral { background: var(--wash-coral); color: var(--secondary); box-shadow: var(--elev-1), 0 0 0 1px var(--hairline); }
.badge-mint::before, .badge-coral::before { content: "\2605"; font-size: 12px; line-height: 1; }

/* Hero type is Nunito, G's pick for the playful headline voice. */
.hero-title {
  font-family: "Nunito", var(--font); font-weight: 900;
  font-size: 60px; line-height: 64px; letter-spacing: -0.04em; margin-bottom: var(--space-lg);
}
.hl-feelings {
  color: var(--primary-container);
  text-decoration: underline wavy var(--butter); text-decoration-thickness: 3px;
  text-underline-offset: 8px; text-decoration-skip-ink: none;
}
.hl-calm {
  /* darker mint than the brand swatch so the words keep 3:1 on every tint */
  background: linear-gradient(90deg, #0f8f84 0%, #0f8f84 40%, var(--primary-container) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: var(--space-xl) 0 var(--space-md); }
.btn-hero { min-height: 56px; padding: 14px 28px; font-size: 16px; gap: 8px; }
.btn-from { font-weight: 700; opacity: 0.92; }
.hero-assure {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; list-style: none; margin: 0; padding: 0;
  font-size: 13px; line-height: 18px; letter-spacing: 0.01em; color: var(--on-surface-variant);
}
.hero-assure li { display: inline-flex; align-items: center; gap: 6px; }
.hero-assure li::before { content: "\2713"; font-weight: 800; color: var(--mint-ink); }

/* The stage: a white frame around a drawn wall, with two stickers */
.hero-stage { position: relative; max-width: 1000px; margin: 56px auto 0; padding: 0 0 88px; }
.hero-frame {
  /* Outer radius = padding + inner radius (16 + 14 = 30), so the corners nest evenly. */
  background: var(--surface-container-lowest); border-radius: 30px; padding: 16px;
  box-shadow: var(--elev-3), 0 0 0 1px var(--hairline);
}
.hero-scene {
  position: relative; overflow: hidden; border-radius: 14px;
  display: grid; grid-template-columns: 1fr 1.25fr; gap: var(--space-xl); align-items: end;
  padding: clamp(24px, 4vw, 48px);
  background:
    radial-gradient(80% 70% at 85% 10%, rgba(255, 255, 255, 0.9), transparent 70%),
    linear-gradient(180deg, #f6efe6 0%, #efe4d6 100%);
}
.hero-caption { align-self: end; }
.hero-line {
  font-family: "Nunito", var(--font); font-weight: 900; font-size: 26px; line-height: 32px; letter-spacing: -0.01em;
  color: var(--midnight); margin: 0;
}
.sticker {
  position: absolute; z-index: 2; margin: 0;
  font-family: "Nunito", var(--font); font-weight: 900; font-size: 15px; line-height: 20px;
  padding: 10px 18px; border-radius: var(--rounded-lg);
  /* a die-cut white edge so they read as stickers */
  border: 2px solid #fff;
  box-shadow: 0 6px 14px -4px rgba(30, 34, 56, 0.22), var(--elev-2);
}
.sticker-butter { top: -22px; left: -28px; transform: rotate(-6deg); background: var(--butter); color: var(--midnight); }
.sticker-mint { bottom: 68px; right: -24px; transform: rotate(-6deg); background: var(--mint); color: var(--midnight); }

/* Backdrop picker: a white strip along the bottom of the card */
.hero-backdrops {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px var(--space-lg);
  margin: 0 calc(-1 * clamp(20px, 4vw, 56px)); padding: 16px clamp(20px, 4vw, 56px);
  background: color-mix(in srgb, #fff 88%, transparent); border-top: 1px solid var(--hairline);
}
.hero-backdrops[hidden] { display: none; }
.backdrops-label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--on-surface-variant);
}
.backdrops-label svg { color: var(--primary); }
.backdrop-chips { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; margin: 0; padding: 0; }
.bd {
  display: block; width: 36px; height: 36px; padding: 0; border: 0; cursor: pointer;
  border-radius: 50%;
  box-shadow: var(--elev-1), 0 0 0 2px #fff;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.bd:hover { transform: translateY(-1px) scale(1.08); box-shadow: var(--elev-2), 0 0 0 2px #fff; }
.bd:active { transform: scale(0.94); }
.bd[aria-pressed="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--midnight); }
.bd:focus-visible { outline: 3px solid var(--focus); outline-offset: 5px; }
.bd-rainbow { background: linear-gradient(90deg, #ff9bb8, #ffd36b, #8ee0b0); color: var(--midnight); }
.bd-periwinkle { background: var(--primary-container); color: #fff; }
.bd-watercolor { background: var(--mint); color: var(--midnight); }
.bd-spirals { background: var(--butter); color: var(--midnight); }
.bd-bubbles { background: #6b21d8; color: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-card { transition: none; } .bd { transition: none; } }

.hero-visual { display: flex; flex-direction: column; align-items: center; }
.screen {
  width: 100%; aspect-ratio: 16 / 10;
  background: var(--midnight); padding: 14px; border-radius: 28px;
  box-shadow: var(--elev-3), 0 0 0 1px rgba(30, 34, 56, 0.2);
}
.screen-inner {
  height: 100%; border-radius: 16px; overflow: hidden; padding: 14px;
  /* the product's default backdrop */
  background: #6877cf url("/theden/assets/backgrounds/bg1.jpg") center / cover;
  display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr; gap: 10px;
}
.screen-stand { width: 22%; height: 16px; background: var(--outline-variant); border-radius: 0 0 12px 12px; }

.panel {
  background: var(--panel); color: var(--on-panel);
  border-radius: 14px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px; min-width: 0;
  font-size: clamp(10px, 1.1vw, 13px); line-height: 1.4;
}
.panel-title { font-weight: 800; letter-spacing: -0.02em; font-size: clamp(14px, 1.8vw, 22px); line-height: 1.1; }
.panel-sub, .panel-note { color: var(--on-panel-muted); }
.panel-label { font-weight: 700; }

.members { flex-direction: row; justify-content: space-around; align-items: center; }
.member { display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 700; }
.avatar {
  width: clamp(30px, 4vw, 48px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #f3d2b3 0 34%, transparent 35%), var(--m);
  position: relative;
  box-shadow: 0 0 0 2px #fff;
}
.avatar .face {
  position: absolute; left: 50%; top: 34%; width: 30%; height: 10%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--midnight) 0 30%, transparent 32%) left / 50% 100% no-repeat,
              radial-gradient(circle, var(--midnight) 0 30%, transparent 32%) right / 50% 100% no-repeat;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  background: var(--f); color: var(--midnight); font-weight: 700;
  padding: 4px 10px; border-radius: var(--rounded-full); white-space: nowrap;
}
.chores ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.chores li { display: flex; align-items: center; gap: 8px; }
.chores li::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; flex: none;
  box-shadow: inset 0 0 0 2px var(--on-panel-muted);
}
.chores li.done::before { background: var(--mint); box-shadow: none; }
.chores li.done { color: var(--on-panel-muted); }

/* Sections, each a toy-box module on its own wash */
.section { padding: 96px 0; }
.section-raised { background: var(--surface-container-low); }
.section-mint { background: var(--wash-mint); }
.section-butter { background: var(--wash-butter); }

/* Small mock-up pieces */
.mini-points {
  background: var(--butter); color: var(--midnight); font-weight: 800;
  padding: 2px 10px; border-radius: var(--rounded-full); font-variant-numeric: tabular-nums;
}
.mini-bar { flex: 1; height: 10px; background: var(--panel-raised); border-radius: var(--rounded-full); overflow: hidden; }
.mini-bar span { display: block; height: 100%; background: var(--periwinkle); border-radius: inherit; }
.mini-bar.light { background: var(--surface-container-high); flex: none; width: 100%; }

/* One dotted field behind every section after the hero: periwinkle and soft
   yellow dots on a staggered 32px grid, fading in from the hero's background. */
.dots-field { position: relative; isolation: isolate; background: var(--surface); }
.dots-field::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(circle, rgba(104, 119, 207, 0.12) 1.1px, transparent 1.6px) 0 0 / 32px 32px,
    radial-gradient(circle, rgba(255, 202, 58, 0.22) 1.1px, transparent 1.6px) 16px 16px / 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 120px);
  mask-image: linear-gradient(180deg, transparent 0, #000 120px);
}
/* Features: tabs in a card beside the title, one feature at a time inside a drawn Den Screen. */
.features-head { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xl); align-items: end; margin-bottom: var(--space-xl); }
.features-head .section-lead { margin-bottom: 0; }
.feature-tabs {
  display: grid; grid-template-columns: repeat(3, auto); gap: 6px;
  padding: 10px; background: var(--surface-container-lowest); border-radius: var(--rounded-xl);
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
}
.feature-tabs[hidden] { display: none; }
.feature-tabs [role="tab"] {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 12px; border: 0; cursor: pointer; text-align: left;
  /* Nested radius: the card's radius minus its 10px padding. */
  border-radius: calc(var(--rounded-xl) - 10px); background: transparent; color: var(--on-surface);
  font: 700 13px/18px var(--font); letter-spacing: 0.01em; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 120ms ease;
}
.tab-num { color: var(--on-surface-variant); }
/* Each tab's icon sits in its own colored chip; the tone comes from the tab's data-tone. */
.tab-icon {
  flex: none; box-sizing: content-box; width: 16px; height: 16px; padding: 5px; margin-left: 4px;
  border-radius: 50%; color: var(--ic, var(--periwinkle)); background: var(--ic-bg, var(--wash-periwinkle));
}
.feature-tabs [data-tone="mint"] { --ic: var(--mint-ink); --ic-bg: var(--wash-mint); }
.feature-tabs [data-tone="butter"] { --ic: var(--butter-ink); --ic-bg: var(--wash-butter); }
.feature-tabs [data-tone="periwinkle"] { --ic: var(--primary-container); --ic-bg: var(--wash-periwinkle); }
.feature-tabs [data-tone="coral"] { --ic: var(--secondary); --ic-bg: var(--wash-coral); }
.feature-tabs [data-tone="violet"] { --ic: var(--violet-ink); --ic-bg: var(--wash-violet); }
.feature-tabs [data-tone="sky"] { --ic: var(--sky-ink); --ic-bg: var(--wash-sky); }
.feature-tabs [role="tab"]:hover { background: var(--wash-periwinkle); color: var(--primary); }
.feature-tabs [role="tab"]:active { transform: scale(0.98); }
.feature-tabs [aria-selected="true"],
.feature-tabs [aria-selected="true"]:hover { background: var(--primary-container); color: var(--on-primary); box-shadow: var(--glow-primary); }
.feature-tabs [aria-selected="true"] .tab-num { color: inherit; }

/* Outer radius = bezel + screen radius (28 + 16 = 44), so the corners nest evenly. */
.device {
  max-width: 1000px; margin-inline: auto;
  background: var(--midnight); border-radius: 44px; padding: 0 28px 28px;
  box-shadow: var(--elev-3), 0 0 0 3px color-mix(in srgb, var(--midnight) 85%, #fff);
}
.device-bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px;
  padding: 20px 4px 18px; color: var(--on-panel-muted);
  font: 700 11px/14px ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: 0.08em; text-transform: uppercase;
}
.device-name { display: inline-flex; align-items: center; gap: 8px; color: var(--inverse-on-surface); }
.device-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.25); }
.device-screen { background: var(--surface-container-lowest); border-radius: 16px; overflow: hidden; padding: 0 32px; }
/* The kiosk's own top row and status line frame every feature, like the real screen. */
.screen-top {
  display: flex; align-items: center; gap: 14px; padding: 28px 0 20px; border-bottom: 1px solid var(--outline-variant);
}
.screen-sun {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: radial-gradient(circle at 50% 50%, #ffe08a 0 7px, transparent 8px), linear-gradient(135deg, #ffca3a, #ff7a59);
}
.screen-hello { display: grid; gap: 2px; font-size: 12px; line-height: 16px; color: var(--on-surface-variant); }
.screen-hello strong { font: 900 19px/24px "Nunito", var(--font); letter-spacing: -0.02em; color: var(--on-surface); }
.screen-members {
  margin-left: auto; display: flex; gap: 4px; padding: 4px; border-radius: var(--rounded-full);
  background: var(--surface-container-low); font-size: 12px; line-height: 16px; font-weight: 700;
}
.screen-members span { padding: 6px 14px; border-radius: var(--rounded-full); background: var(--surface-container-lowest); }
.screen-members .is-on { background: var(--primary-container); color: var(--on-primary); }
.screen-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; padding: 16px 0 20px;
  border-top: 1px solid var(--outline-variant); font-size: 12px; line-height: 16px; color: var(--on-surface-variant);
}
.screen-paired { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--on-surface); }
.screen-paired::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.device-screen .feature { padding: 28px 0; }
.device-screen .feature:first-child { border-top: 0; }
.features.is-tabbed .feature { border-top: 0; }
/* Inside the drawn screen, type runs a step smaller so each feature fits the screen's proportions. */
@media (min-width: 821px) {
  .device-screen .feature { grid-template-columns: 1.15fr 0.85fr; gap: 36px; }
}
@media (min-width: 641px) {
  .device-screen .feature h3 { font-size: 21px; line-height: 28px; }
  .device-screen .feature-copy > p { font-size: 15px; line-height: 23px; }
  .device-screen .gains { margin-top: 16px; gap: 10px; }
  .device-screen .gains > div { padding: 12px 14px; }
  .device-screen .gains dt { font-size: 13px; line-height: 18px; }
  .device-screen .gains dd { font-size: 13px; line-height: 19px; }
  .device-screen .feature-visual { min-height: 260px; }
}
/* Every feature shares one grid cell, so the screen is always as tall as the tallest one and never resizes between tabs. */
.features.is-tabbed { display: grid; }
.features.is-tabbed .feature { grid-area: 1 / 1; }
.features.is-tabbed .feature[hidden] { display: grid; visibility: hidden; }
.features.is-tabbed .feature:nth-child(even) .feature-visual { order: 0; }
.features.is-tabbed .feature:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; border-radius: 16px; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--outline-variant);
}
.feature:nth-child(even) .feature-visual { order: -1; }
.feature-copy > p { color: var(--on-surface-variant); max-width: 56ch; }
.feature h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; }
.feature-tag { margin-bottom: var(--space-sm); }
.feature-name {
  display: inline-flex; align-items: center;
  font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--wash-butter); color: var(--on-tertiary-fixed-variant);
  padding: 6px 12px; border-radius: var(--rounded-full);
}

/* What it builds: the child's side and the grown-up's side. */
.gains { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: var(--space-lg) 0 0; }
.gains > div { border-radius: var(--rounded-lg); padding: var(--space-md) 18px; }
.gains > div:first-child { background: var(--wash-coral); }
.gains > div:last-child { background: var(--wash-periwinkle); }
.gains dt { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 4px; }
.gains > div:first-child dt { color: var(--secondary); }
.gains > div:last-child dt { color: var(--primary); }
.gains dd { margin: 0; font-size: 15px; line-height: 22px; color: var(--on-surface); }
.feature-visual {
  border-radius: var(--rounded-xl); padding: clamp(20px, 4vw, 40px);
  background: var(--periwinkle) var(--bg) center / cover;
  box-shadow: var(--elev-2);
  min-height: 300px; display: grid; align-items: center;
}
.stage { font-size: 15px; gap: 12px; padding: 20px; border-radius: var(--rounded-lg); }
.stage .panel-title { font-size: 26px; }
.stage-reply { color: var(--on-panel-muted); }
.stage .chips { gap: 8px; }
.stage.chores li { justify-content: flex-start; }
.stage.chores .mini-points { margin-left: auto; font-size: 13px; }
.stage .mini-bar { flex: none; width: 100%; }
.stage .panel-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quest-steps, .rewards, .agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quest-steps li { display: flex; align-items: center; gap: 8px; }
.quest-steps li::before {
  content: ""; width: 14px; height: 14px; border-radius: 4px; flex: none; box-shadow: inset 0 0 0 2px var(--on-panel-muted);
}
.quest-steps li.done::before { background: var(--mint); box-shadow: none; }
.quest-steps li.done { color: var(--on-panel-muted); }
.rewards li {
  display: flex; justify-content: space-between; gap: 12px;
  background: var(--panel-raised); border-radius: var(--rounded-md); padding: 10px 12px; font-weight: 700;
}
.rewards .cost { color: var(--butter); font-weight: 800; font-variant-numeric: tabular-nums; }
.rewards .saving { color: var(--on-panel-muted); font-weight: 400; }
.rewards .saving .cost { color: var(--on-panel-muted); font-weight: 400; }
.dressing { flex-direction: row; align-items: center; gap: 20px; }
.dressing > div { flex: 1; display: grid; gap: 10px; }
.avatar-big { width: 96px; flex: none; box-shadow: 0 0 0 3px #fff; }
.agenda li { display: flex; gap: 12px; }
.agenda span { font-weight: 700; color: var(--inverse-primary); min-width: 3.2em; font-variant-numeric: tabular-nums; }

/* Calm Corner tab: the kiosk's real night shore, never retinted by the picker */
.calm-visual { align-items: end; background-color: var(--calm-top); }
.calm-offer {
  margin: 0; max-width: 30ch; padding: 16px 20px; border-radius: var(--rounded-lg);
  background: rgba(6, 9, 18, 0.72); color: var(--calm-ink);
  font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em;
}
.calm-offer span { display: block; font-size: 14px; line-height: 20px; font-weight: 400; letter-spacing: 0; margin-bottom: 4px; opacity: 0.85; }

/* Grown-ups */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: center; }
/* The App: the phone's top lines up with the top of the subtitle. */
@media (min-width: 876px) {
  #controls .split { row-gap: 0; align-items: start; grid-template-rows: repeat(4, auto) 1fr; }
  #controls .split > div:first-child { display: contents; }
  #controls .split > div:first-child > * { grid-column: 1; justify-self: start; }
  #controls .split .feature-list { justify-self: stretch; }
  #controls .split .phone { grid-column: 2; grid-row: 3 / span 3; align-self: start; }
}
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.feature-list li {
  position: relative; padding: 14px 18px 14px 52px;
  background: var(--surface-container-lowest); border-radius: var(--rounded-lg);
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
  font-size: 15px; line-height: 22px; color: var(--on-surface-variant);
}
.feature-list li strong { color: var(--on-surface); }
/* A checkbox-style token: periwinkle rounded square with a white check. */
.feature-list li::before {
  content: ""; position: absolute; left: 18px; top: 15px; width: 22px; height: 22px; border-radius: 6px;
  background: var(--primary-container) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.phone {
  justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18;
  background: var(--midnight); border-radius: 44px; padding: 12px;
  box-shadow: var(--elev-3);
}
.phone-inner {
  height: 100%; background: var(--surface); border-radius: 34px; padding: 32px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-label {
  align-self: flex-start; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.05em;
  color: var(--primary); background: var(--wash-periwinkle); padding: 4px 10px; border-radius: var(--rounded-full);
}
.phone-title { font-weight: 700; font-size: 20px; line-height: 28px; letter-spacing: -0.01em; }
.week { display: flex; justify-content: space-between; margin: 8px 0; }
.week span {
  width: 40px; height: 40px; border-radius: 50%; background: var(--f);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--midnight);
  box-shadow: 0 0 0 2px #fff, var(--elev-1);
}
.phone-caption { font-size: 13px; line-height: 18px; color: var(--on-surface-variant); }
.phone-card {
  margin-top: auto; background: var(--surface-container-lowest);
  border-radius: var(--rounded-xl); padding: var(--space-md); display: grid; gap: 8px;
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
}
.phone-card-title { font-weight: 700; font-size: 15px; }

/* Backgrounds: a hand of cards */
.fan-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; margin-top: 72px; }
.sub-title { font-family: "Nunito", var(--font); font-size: 26px; line-height: 32px; font-weight: 900; letter-spacing: -0.02em; }
.fan-split p { color: var(--on-surface-variant); max-width: 52ch; }
.fan {
  list-style: none; margin: 0; padding: 0;
  position: relative; height: 380px;
}
.fan-card {
  position: absolute; left: 50%; bottom: 24px;
  width: 200px; aspect-ratio: 10 / 14; margin-left: -100px;
  border-radius: var(--rounded-xl);
  background-size: cover; background-position: center;
  box-shadow: var(--elev-2), 0 0 0 4px var(--surface-container-lowest);
  display: flex; align-items: flex-start; padding: 12px;
  transform-origin: 50% 120%;
  transform: rotate(calc(var(--i) * 12deg)) translateX(calc(var(--i) * var(--spread, 44px)));
  z-index: calc(10 + var(--i));
}

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); margin: var(--space-xl) 0 0; }
.promise {
  background: var(--surface-container-lowest); border-radius: var(--rounded-xl); padding: var(--space-lg);
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
  transition: box-shadow 200ms ease;
}
.promise:hover { box-shadow: var(--elev-2), 0 0 0 1px rgba(46, 196, 182, 0.45); }
.promise h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 24px; }
.promise h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.18); }
.promise p { margin: 0; font-size: 15px; line-height: 22px; color: var(--on-surface-variant); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gutter); align-items: stretch; }
/* Nested radius rule: card radius = padding + art radius. */
.plan {
  --pad: 20px; --art-radius: 12px;
  position: relative; display: flex; flex-direction: column;
  padding: var(--pad); border-radius: calc(var(--pad) + var(--art-radius));
  background: var(--surface-container-lowest);
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
}
.plan-featured { box-shadow: var(--elev-2), 0 0 0 2px var(--periwinkle); }
/* A drawn wall with the screen hanging on it, until we have photos. */
.plan-art {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: var(--space-lg);
  border-radius: var(--art-radius); background: linear-gradient(180deg, #f6efe6, #ebe1d3);
}
.plan-art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 16%; background: #dccdb9; }
.art-screen {
  position: absolute; left: 50%; transform: translateX(-50%); aspect-ratio: 16 / 10;
  border-radius: 6px; background: linear-gradient(135deg, var(--periwinkle), #aab4ee);
  box-shadow: 0 0 0 4px var(--inverse-surface), 0 12px 22px rgba(30, 34, 56, 0.22);
}
.art-screen::before { content: ""; position: absolute; left: 10%; top: 16%; width: 46%; height: 16%; border-radius: 3px; background: rgba(255, 255, 255, 0.9); }
.art-screen::after {
  content: ""; position: absolute; left: 10%; right: 10%; top: 44%; bottom: 14%; border-radius: 3px;
  background: linear-gradient(90deg, #fff 0 30%, transparent 30% 35%, #fff 35% 65%, transparent 65% 70%, #fff 70% 100%);
  opacity: 0.88;
}
.art-shelf { position: absolute; left: 50%; transform: translateX(-50%); width: 30%; height: 6px; border-radius: 3px; background: #b99f83; }
.art-lamp { position: absolute; right: 8%; top: 14%; width: 8%; aspect-ratio: 1; border-radius: 50%; background: #ffe49a; box-shadow: 0 0 24px 10px rgba(255, 202, 58, 0.35); }
.plan-art-16 .art-screen { width: 34%; top: 18%; }
.plan-art-16 .art-shelf { top: 63%; }
.plan-art-22 .art-screen { width: 50%; top: 12%; }
.plan-art-22 .art-shelf { top: 73%; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); }
.plan h3 { margin: 0; font-family: "Nunito", var(--font); font-size: 26px; line-height: 32px; font-weight: 900; letter-spacing: -0.02em; }
.price { margin: 0; }
.amount { font-family: "Nunito", var(--font); font-weight: 900; font-size: 30px; line-height: 36px; letter-spacing: -0.02em; color: var(--primary); font-variant-numeric: tabular-nums; }
.plan-spec { margin: 2px 0 var(--space-md); font-size: 14px; line-height: 20px; color: var(--on-surface-variant); }
.plan-desc { margin: 0; font-size: 16px; line-height: 24px; color: var(--on-surface-variant); }
.plan ul { list-style: none; padding: 0; margin: var(--space-md) 0 var(--space-lg); flex: 1; display: grid; gap: 10px; align-content: start; }
.plan li { position: relative; padding-left: 30px; font-size: 15px; line-height: 22px; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--wash-mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%231b7c72' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.plan .price-then { margin: 0 0 var(--space-md); padding-top: var(--space-md); border-top: 1px solid var(--hairline); }
.btn-block { width: 100%; min-height: 52px; justify-content: center; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* The early access form slides open from the plan buttons. */
.inquiry-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 350ms ease; }
.inquiry-panel.is-open { grid-template-rows: 1fr; }
.inquiry-panel-inner { min-height: 0; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .inquiry-panel { transition: none; } }

/* Early access form, under the plan cards */
.inquiry {
  margin-top: var(--gutter); padding: var(--space-xl);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--gutter);
  background: linear-gradient(135deg, var(--wash-periwinkle), var(--wash-coral));
  border-radius: var(--rounded-xl);
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
}
.inquiry-intro, .field-wide { grid-column: 1 / -1; }
.inquiry-intro h3 { font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: var(--space-sm); }
.inquiry-intro p { margin: 0; color: var(--on-surface-variant); }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { font-weight: 700; font-size: 14px; line-height: 20px; letter-spacing: 0.02em; }
.field legend { padding: 0; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--on-surface-variant); letter-spacing: 0; }
.hint { margin: 0; font-size: 13px; line-height: 18px; letter-spacing: 0.01em; color: var(--on-surface-variant); }
.inquiry input[type="text"], .inquiry input[type="email"], .inquiry textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  font: 400 15px/22px var(--font); color: var(--on-surface); background: var(--surface-container-lowest);
  /* 10% ink is the spec's resting border; 1px more ink keeps the field edge at 3:1 for low vision. */
  border: 1px solid var(--outline); border-radius: var(--rounded-lg);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.inquiry textarea { resize: vertical; }
.inquiry input:focus-visible, .inquiry textarea:focus-visible {
  outline: none; border-color: var(--periwinkle);
  box-shadow: 0 0 0 1px var(--periwinkle), 0 0 0 5px rgba(104, 119, 207, 0.15);
}
.inquiry [aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.choices { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
/* Radio choices read as filter chips; the real radio stays visible inside each chip. */
.choice {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 14px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em; cursor: pointer;
  background: var(--surface-container-lowest); border-radius: var(--rounded-full);
  box-shadow: inset 0 0 0 1px rgba(30, 34, 56, 0.12);
  transition: background-color 150ms ease, color 150ms ease;
}
.choice:has(input:checked) { background: var(--primary-container); color: var(--on-primary); box-shadow: var(--glow-primary); }
.choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--primary); }
.choice:has(input:checked) input { accent-color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
.inquiry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--gutter); }
.inquiry-actions .fine { margin: 0; }
.inquiry button[disabled] { opacity: 0.6; cursor: progress; }
.inquiry-status { margin: 0; font-weight: 700; }
.inquiry-status:empty, .field-error:empty { display: none; }
.field-error { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--error); }
.inquiry-status.is-sent { color: var(--mint-ink); }
.inquiry-status.is-error { color: var(--error); }
.field-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.after-year, .free-tier { margin-top: 56px; }
.after-year > h3, .free-tier h3 { font-family: "Nunito", var(--font); font-size: 26px; line-height: 32px; font-weight: 900; letter-spacing: -0.02em; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 15px; line-height: 22px; }
.price-table th, .price-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--outline-variant); }
.price-table thead th { font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--on-surface-variant); }
.price-table tbody th { font-weight: 700; }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.after-year .price-table {
  background: var(--surface-container-lowest); border-radius: var(--rounded-xl); overflow: hidden;
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
}
.after-year .price-table thead th { background: var(--surface-container-low); }
.after-year > .fine { margin-top: var(--space-md); }
/* Nested radius: box = padding + the table and note inside it. */
.free-tier {
  --pad: 28px; --inner: 12px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: var(--space-lg) var(--space-xl); align-items: start; grid-template-rows: auto 1fr;
  background: var(--wash-butter); border-radius: calc(var(--pad) + var(--inner)); padding: var(--pad);
  box-shadow: 0 0 0 1px rgba(255, 202, 58, 0.3);
}
.free-tier p { color: var(--on-surface-variant); }
.free-tier > div:first-child { grid-column: 1; grid-row: 1; }
.free-tier .price-table { grid-column: 2; grid-row: 1 / span 2; background: var(--surface-container-lowest); border-radius: var(--inner); overflow: hidden; box-shadow: var(--elev-1); }
.compact th, .compact td { padding: 10px 12px; font-size: 15px; }
/* Under the renewal table: Den Family screens get new features and fixes on their own. */
.sync-note {
  display: flex; gap: var(--space-md); align-items: flex-start; margin-top: 32px;
  padding: var(--space-lg); background: var(--wash-mint); border-radius: var(--rounded-xl);
}
.sync-icon {
  flex: none; width: 48px; height: 48px; padding: 10px; border-radius: 50%;
  background: var(--surface-container-lowest); color: var(--mint-ink); box-shadow: var(--elev-1);
}
.sync-note h4 { font-size: 17px; line-height: 24px; font-weight: 600; margin: 0 0 4px; }
.free-tier .sync-note { grid-column: 1; grid-row: 2; align-self: end; max-width: 340px; flex-direction: column; margin-top: 0; border-radius: var(--inner); background: var(--surface-container-lowest); box-shadow: var(--elev-1); }
.free-tier .sync-note .sync-icon { order: 2; align-self: flex-end; }
.sync-note p { margin: 0; font-size: 15px; line-height: 22px; color: var(--on-surface-variant); }
.price-then { margin: 0 0 var(--space-sm); font-size: 15px; line-height: 22px; color: var(--on-surface-variant); }

/* FAQ: each question is its own white card */
.section-raised details, .faq details {
  background: var(--surface-container-lowest); border-radius: var(--rounded-xl);
  box-shadow: var(--elev-1), 0 0 0 1px var(--hairline);
  padding: 0; margin-bottom: 12px;
  transition: box-shadow 200ms ease;
}
.faq details:last-of-type { margin-bottom: 0; }
details[open] { box-shadow: var(--elev-2), 0 0 0 1px rgba(104, 119, 207, 0.3); }
summary {
  cursor: pointer; font-weight: 600; font-size: 17px; line-height: 24px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--space-md);
  padding: 18px var(--space-lg); min-height: 60px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background-color: var(--wash-periwinkle); color: var(--primary);
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center, center; background-size: 12px 2px, 2px 12px; background-repeat: no-repeat;
}
details[open] summary::after {
  background-color: var(--primary-container); color: var(--on-primary);
  background-image: linear-gradient(currentColor, currentColor); background-position: center; background-size: 12px 2px;
}
details p { margin: 0; padding: 0 var(--space-lg) 20px; max-width: 65ch; font-size: 15px; line-height: 22px; color: var(--on-surface-variant); }

/* Back to top: a white token in the corner that firms up on hover or focus. */
.site-footer .to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 4;
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 50%; color: var(--primary); text-decoration: none;
  background: var(--surface-container-lowest);
  box-shadow: var(--elev-2), 0 0 0 1px var(--hairline);
  opacity: 0.9;
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms, background-color 200ms ease;
}
.site-footer .to-top.is-hidden { visibility: hidden; opacity: 0; transform: translateY(8px); }
.site-footer .to-top:hover, .site-footer .to-top:focus-visible { opacity: 1; background: var(--wash-periwinkle); }
.site-footer .to-top:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Footer */
.site-footer { background: var(--midnight); color: var(--inverse-on-surface); padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .wordmark { display: block; font-size: 22px; }
.byline { display: block; font-size: 13px; line-height: 18px; color: var(--on-panel-muted); }
.footer-about p { margin: 16px 0 0; max-width: 40ch; font-size: 15px; line-height: 22px; color: var(--on-panel-muted); }
.footer-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--rounded-full);
  background: rgba(46, 196, 182, 0.16); color: #7ee8dd !important; font-size: 13px !important; line-height: 18px !important; font-weight: 700;
}
.footer-col h3 { margin: 0 0 var(--space-md); font-family: "Nunito", var(--font); font-size: 14px; line-height: 20px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col p { margin: 0 0 10px; font-size: 15px; line-height: 22px; color: var(--on-panel-muted); }
.footer-col a { color: var(--inverse-on-surface); text-decoration: none; font-size: 15px; line-height: 22px; }
.footer-col a:hover { color: var(--butter); text-decoration: underline; text-underline-offset: 3px; }
.footer-cta { display: inline-block; margin-top: 6px; padding: 10px 18px; border-radius: var(--rounded-full); background: var(--butter); color: var(--midnight) !important; font-weight: 800; }
.footer-cta:hover { text-decoration: none !important; background: #ffd75e; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px var(--gutter); justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(240, 239, 255, 0.14); }
.footer-fine { margin: 0; font-size: 14px; line-height: 20px; color: var(--on-panel-muted); }

/* Responsive */
@media (max-width: 1024px) {
  .privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
/* The tabs stay beside the title down to tablet width, folding into two columns to leave the title room. */
@media (max-width: 1180px) {
  .feature-tabs { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 900px) {
  .features-head { grid-template-columns: 1fr; align-items: start; }
  .feature-tabs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .fan-split { grid-template-columns: 1fr; }
  .site-header nav { margin-left: auto; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  /* Without the script there is no Menu button, so the links simply wrap. */
  .menu-toggle:not([hidden]) + .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: var(--margin); right: var(--margin);
    flex-direction: column; align-items: stretch; gap: 0; padding: var(--space-sm) var(--space-md) var(--space-md);
    background: var(--surface-container-lowest); border-radius: var(--rounded-xl);
    box-shadow: var(--elev-3), 0 0 0 1px var(--hairline);
  }
  .menu-open .menu-toggle + .nav-links { display: flex; }
  .nav-links { flex-wrap: wrap; }
  .menu-toggle + .nav-links a:not(.btn) { display: flex; min-height: 52px; padding: 0 var(--space-md); font-size: 17px; }
  .hero-scene, .split, .free-tier, .feature { grid-template-columns: 1fr; gap: 32px; }
  .free-tier > div:first-child, .free-tier .price-table, .free-tier .sync-note { grid-column: 1; grid-row: auto; }
  .hero-title { font-size: 48px; line-height: 54px; }
  .feature:nth-child(even) .feature-visual { order: 0; }
  .feature { padding: 40px 0; }
  .section { padding: 64px 0; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 38px; line-height: 46px; letter-spacing: -0.025em; }
  h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.025em; }
  .hero { padding: var(--space-md) 0 0; }
  .hero-card { border-radius: var(--rounded-xl); padding: 32px 16px 0; }
  .hero-backdrops { margin: 0 -16px; padding: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-title { font-size: 40px; line-height: 46px; }
  .hero-line { font-size: 20px; line-height: 26px; }
  .sticker { font-size: 13px; padding: 8px 14px; }
  .sticker-butter { left: -6px; }
  .sticker-mint { right: -6px; bottom: 54px; }
  .hero-frame { padding: 10px; border-radius: 24px; }
  .hero-stage { margin-top: 40px; padding-bottom: 72px; }
  .hero-backdrops { flex-direction: column; align-items: flex-start; }
  .fan { height: 300px; --spread: 14px; }
  .fan-card { width: 140px; margin-left: -70px; }
  /* On the narrowest phones the fanned cards would poke past the viewport. */
  .fan-split { overflow-x: clip; }
  .privacy-grid, .gains { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer-col:last-child { grid-column: 1 / -1; }
  .feature-visual { min-height: 0; }
  .calm-visual { min-height: 280px; }
  .calm-offer { font-size: 18px; line-height: 26px; padding: 12px 16px; }
  .features.is-tabbed .feature, .device-screen .feature { padding: 20px 0; }
  .feature-tabs { grid-template-columns: repeat(2, 1fr); }
  .feature-tabs [role="tab"] { padding: 6px 8px; font-size: 12px; gap: 4px; white-space: normal; }
  .tab-icon { margin-left: auto; }
  /* 12 + 14 = 26 */
  .device { border-radius: 26px; padding: 0 12px 12px; }
  .device-screen { border-radius: 14px; padding: 0 16px; }
  .screen-members { display: none; }
  .screen-top { padding: 18px 0 14px; }
  .device-bar { padding: 12px 6px 10px; font-size: 10px; }
  .avatar-big { width: 64px; }
  .screen-inner { grid-template-columns: 1fr; grid-template-rows: auto; }
  .screen-inner .panel.checkin, .screen-inner .panel.chores { display: none; }
  .free-tier, .plan { padding: var(--space-lg); }
  .amount { font-size: 26px; line-height: 32px; }
  .price-table th, .price-table td { padding: 10px 8px; }
  .compact th, .compact td { padding: 8px 6px; font-size: 14px; }
  .free-tier { --pad: 16px; }
  .free-tier > div:first-child, .free-tier .price-table, .free-tier .sync-note { grid-column: 1; grid-row: auto; }
  .header-cta { display: none; }
  .nav-cta { display: block; margin-top: var(--space-sm); }
  .nav-cta .btn { width: 100%; min-height: 48px; font-size: 15px; }
  .inquiry { padding: var(--space-lg); grid-template-columns: 1fr; }
  summary { padding: 16px 18px; }
  details p { padding: 0 18px 18px; }
}

#grown-ups { overflow-x: clip; }

/* Legal pages (privacy.html, terms.html): one narrow reading column. */
.legal-page .nav-links a:not(.btn) { white-space: nowrap; }
.legal-wrap { max-width: 760px; }
.legal-head h1 { font-family: "Nunito", var(--font); font-size: 44px; line-height: 50px; font-weight: 900; }
.legal-meta { color: var(--on-surface-variant); font-size: 15px; line-height: 22px; margin-bottom: var(--space-lg); }
.legal-notice {
  display: flex; gap: var(--space-md); align-items: flex-start;
  padding: var(--space-lg); margin-bottom: var(--space-xl);
  background: var(--wash-butter); border-radius: var(--rounded-xl);
}
.legal-notice svg { flex: none; width: 28px; height: 28px; color: var(--midnight); margin-top: 2px; }
.legal-notice p { margin: 0; font-size: 16px; line-height: 24px; }
.legal-toc { padding: var(--space-lg); background: var(--surface-container-low); border-radius: var(--rounded-xl); margin-bottom: var(--space-xl); }
.legal-toc h2 { font-size: 14px; line-height: 20px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-sm); }
.legal-toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: var(--space-lg); font-size: 16px; line-height: 26px; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }
.legal-body h2 { font-size: 28px; line-height: 34px; margin-top: 48px; }
.legal-body h3 { font-family: "Nunito", var(--font); font-weight: 900; font-size: 20px; line-height: 28px; margin-top: var(--space-lg); }
.legal-body h2 + h3 { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 17px; line-height: 27px; }
.legal-body ul, .legal-body ol { padding-left: 24px; margin: 0 0 var(--space-md); }
.legal-body li { margin-bottom: var(--space-sm); }
.legal-body li > ul { margin-top: var(--space-sm); }
.legal-body .price-table { margin: var(--space-md) 0 var(--space-lg); }
.legal-body .price-table th, .legal-body .price-table td { vertical-align: top; }
/* Items the lawyer still has to settle are tagged in-line so they are easy to find and easy to remove. */
.counsel {
  display: block; margin: var(--space-md) 0; padding: 12px 16px;
  background: var(--wash-coral); border-left: 4px solid var(--coral); border-radius: 0 var(--rounded-md) var(--rounded-md) 0;
  font-size: 15px; line-height: 22px; color: var(--on-surface);
}
.counsel strong { color: #b23c1f; letter-spacing: 0.03em; text-transform: uppercase; font-size: 12px; margin-right: 6px; }
.legal-summary { padding: var(--space-lg); background: var(--wash-mint); border-radius: var(--rounded-xl); margin-bottom: var(--space-lg); }
.legal-summary h2 { margin-top: 0; font-size: 22px; line-height: 28px; }
.legal-summary ul { margin-bottom: 0; }
.legal-footer-nav { display: flex; flex-wrap: wrap; gap: 8px var(--space-lg); margin-top: 48px; padding-top: var(--space-lg); border-top: 1px solid var(--hairline-strong); font-size: 15px; }
@media (max-width: 820px) {
  .legal-head h1 { font-size: 34px; line-height: 40px; }
  .legal-toc ol { columns: 1; }
  .legal-body h2 { font-size: 24px; line-height: 30px; margin-top: 40px; }
}

.footer-fine a { color: var(--inverse-on-surface); text-decoration: underline; text-underline-offset: 3px; }
.footer-fine a:hover { color: var(--butter); }
.legal-page .wordmark, .legal-page .brand-sub { white-space: nowrap; }
@media (max-width: 820px) {
  .legal-page .site-nav { display: none; }
  .legal-page .header-cta { display: inline-flex; margin-left: auto; }
}
