/* Slumbr website. Built on the Slumbr design system: tokens from the app's Theme.swift, components
   from the system's bundle.css. Token names below match the design system's tokens.json. */

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/fonts/DMSerifDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: text */
  --bg-base: #080a1c;
  --ink: #eef0fa;
  --subtle: #b9bed8;
  --subtle-2: #a9aecb;
  --label: #c9cee8;
  --white: #ffffff;
  --on-light: #0a0b1e;
  --on-light-muted: #3a3f63;
  --on-warm: #1a0f1e;

  /* Color: the three noises, and glow-only colors */
  --noise-white: #eef2ff;
  --noise-pink: #ff8dbe;
  --noise-brown: #ffa862;
  --ice: #b7ccff;
  --violet: #7c6bff;
  --lilac: #e4eaff;
  --pink-soft: #ffb4d2;

  /* Color: glass surfaces */
  --surface: rgba(255, 255, 255, 0.06);
  --surface-border: rgba(255, 255, 255, 0.10);
  --surface-strong: rgba(255, 255, 255, 0.15);
  --divider: rgba(255, 255, 255, 0.08);
  --chrome-fill: rgba(255, 255, 255, 0.07);
  --chrome-border: rgba(255, 255, 255, 0.12);
  --chip-fill: rgba(255, 255, 255, 0.10);
  --track: rgba(255, 255, 255, 0.12);
  --pad-fill: rgba(255, 255, 255, 0.03);
  --pad-stroke: rgba(255, 255, 255, 0.24);
  --pad-white: #dde6ff;

  /* Gradients */
  --gradient-cta: linear-gradient(to bottom right, #ffffff 0%, #e6e9ff 55%, #ffd9e8 100%);
  --gradient-warm: linear-gradient(90deg, var(--noise-pink), var(--noise-brown));
  --gradient-pro-bar: linear-gradient(90deg, var(--noise-pink) 0%, var(--lilac) 55%, var(--noise-brown) 100%);
  --gradient-wave: linear-gradient(90deg, var(--noise-pink), var(--lilac), var(--noise-brown));

  /* Radius */
  --radius-segment: 14px;
  --radius-card: 18px;
  --radius-panel: 22px;
  --radius-sheet: 28px;
  --radius-pill: 999px;

  /* Shadow (CSS blur is twice the SwiftUI radius) */
  --shadow-cta: 0 10px 40px rgba(255, 141, 190, 0.32);
  --shadow-pro-bar: 0 0 24px rgba(255, 141, 190, 0.45);

  /* Type */
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Site layout (not part of the app) */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --section: clamp(64px, 9vw, 120px);
}

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

html {
  color-scheme: dark;
  background: var(--bg-base);
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  font: 400 1.0625rem/1.65 var(--sans);
  color: var(--ink);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--lilac); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--white); }

:focus-visible {
  outline: 2px solid var(--noise-pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--lilac);
  color: var(--on-light);
  font-weight: 700;
  border-radius: var(--radius-segment);
  text-decoration: none;
}
.skip:focus { top: 12px; }

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

/* Type scale: DM Serif Display for titles, Manrope for everything else */
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 6.4vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; }
h3 { font-family: var(--sans); font-weight: 800; font-size: 1.125rem; line-height: 1.3; }
p { margin: 0; }
.lede { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 500; line-height: 1.65; color: var(--subtle); max-width: 34em; }
.note { font-size: 0.9375rem; color: var(--subtle-2); }
.note-block { margin-top: 20px; max-width: 40em; }

/* Small uppercase labels (the app's pad-label, section-title and badge styles) */
.eyebrow { font: 700 0.75rem/1.366 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--subtle-2); }

/* Header */
.site-header { padding-block: 22px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.6rem; line-height: 1; letter-spacing: 0.2px; }
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-nav { display: flex; gap: clamp(8px, 2vw, 16px); }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 14px; border-radius: var(--radius-pill); color: var(--subtle); text-decoration: none; font-weight: 600; font-size: 0.975rem; border: 1px solid transparent; }
.site-nav a:hover { color: var(--white); background: var(--chrome-fill); }
.site-nav a[aria-current="page"] { color: var(--white); background: var(--chrome-fill); border-color: var(--chrome-border); }
@media (max-width: 520px) {
  .site-header .wrap { gap: 8px; }
  .brand { font-size: 1.4rem; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 12px; }
  .site-nav a[href="/#features"] { display: none; }
}

/* Hero: the Home screen's ambient background, scaled up */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse min(62vw, 760px) min(46vw, 560px) at 0% 0%, rgba(124, 107, 255, 0.22), rgba(124, 107, 255, 0) 70%),
    radial-gradient(ellipse min(54vw, 640px) min(52vw, 620px) at 56% 78%, rgba(255, 141, 190, 0.26), rgba(255, 141, 190, 0) 70%),
    radial-gradient(ellipse min(50vw, 600px) min(48vw, 580px) at 100% 72%, rgba(255, 168, 98, 0.20), rgba(255, 168, 98, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 18%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 22% 8%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 41% 24%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 58% 10%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 91% 14%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 96% 42%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 4% 58%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.2px 1.2px at 48% 70%, rgba(255,255,255,.3), transparent);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding-block: clamp(28px, 5vw, 64px) clamp(88px, 11vw, 140px);
}
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(70px, 10vw, 130px); z-index: -1; pointer-events: none; }
.waves path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.waves .wave-main { filter: drop-shadow(0 0 8px rgba(255, 141, 190, 0.35)); }

/* App Store slot */
.store { display: grid; gap: 10px; justify-items: start; }
.coming-soon {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius-pill);
  background: var(--chrome-fill);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
}
.store-link { display: inline-block; line-height: 0; }
.store-link.store-link-text {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: var(--gradient-cta);
  color: var(--on-light);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: var(--shadow-cta);
}
.store-link.store-link-text:hover { color: var(--on-light); }
.store-badge { height: 48px; width: auto; }

/* Blend pad: a miniature of the app's control (design system: BlendPad, BlendLegend) */
.pad { max-width: 460px; width: 100%; justify-self: center; }
.pad-stage { position: relative; isolation: isolate; --fx: 0.5; --fy: 0.6; --glow: 190, 175, 215; --glow-a: 0.28; }
/* Static ice glow behind the triangle, as on the Home screen */
.pad-stage::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 42% at 50% 54%, rgba(183, 204, 255, 0.18), rgba(183, 204, 255, 0) 70%);
}
/* Website extension: a glow that follows the handle, tinted by the mix. The app's own glows are fixed colors. */
.pad-stage::after {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    circle min(44vw, 230px) at calc((0.45 + var(--fx)) / 1.9 * 100%) calc((0.45 + var(--fy)) / 1.9 * 100%),
    rgba(var(--glow), var(--glow-a)),
    rgba(var(--glow), 0) 70%
  );
}
.pad svg { display: block; width: 100%; height: auto; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; overflow: visible; }
.pad svg:active { cursor: grabbing; }
.pad .tri-fill { fill: var(--pad-fill); }
.pad .tri-line { fill: none; stroke: var(--pad-stroke); stroke-width: 1.5; stroke-linejoin: round; }
.pad .guide { stroke-width: 1.5; stroke-linecap: round; }
.pad .corner-label { font: 700 12px var(--sans); letter-spacing: 1.6px; text-anchor: middle; text-transform: uppercase; }
.pad .wave { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pad .wave-quiet { stroke-width: 1.4; opacity: 0.45; }
.pad .wave-main { stroke-width: 2.4; opacity: 0.95; }
.pad #puck { outline: none; }
.pad #puck .puck-focus { fill: none; stroke: transparent; stroke-width: 2.5; }
.pad #puck:focus-visible .puck-focus { stroke: var(--noise-pink); }

.mix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 0; padding: 0; }
.mix > div { min-width: 0; padding: 10px 14px; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--surface-border); }
.mix dt { display: flex; align-items: center; gap: 6px; font: 700 0.6875rem/1.366 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; }
.mix dd { display: flex; align-items: baseline; gap: 1px; margin: 2px 0 0; color: var(--ink); font: 800 1.5rem/1.2 var(--sans); font-variant-numeric: tabular-nums; }
.mix dd small { color: var(--subtle-2); font: 600 0.875rem/1 var(--sans); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mix .w { color: var(--subtle); }
.mix .p { color: var(--noise-pink); }
.mix .b { color: var(--noise-brown); }
.mix .w .dot { background: var(--noise-white); }
.mix .p .dot { background: var(--noise-pink); }
.mix .b .dot { background: var(--noise-brown); }
.pad-caption { margin-top: 14px; font-size: 0.875rem; color: var(--subtle-2); }

/* Sections */
.section { position: relative; isolation: isolate; padding-block: var(--section); }
.section-tint { background: linear-gradient(180deg, transparent, var(--pad-fill) 18%, var(--pad-fill) 82%, transparent); }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }

/* Warm Pro capsule (design system: Badge, large) */
.badge-pro {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--gradient-warm);
  color: var(--on-warm);
  font: 800 0.75rem/1 var(--sans);
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

/* Three noises: glass cards with the pad's corner-dot motif */
.noises { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .noises { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.noise {
  --c: var(--noise-white);
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: start;
  align-content: start;
  padding: 26px 24px 28px;
  overflow: hidden;
  border-radius: var(--radius-panel);
  border: 1px solid var(--surface-border);
  background:
    radial-gradient(ellipse 80% 70% at 0% 0%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    var(--surface);
}
.noise-white { --c: var(--noise-white); }
.noise-pink { --c: var(--noise-pink); }
.noise-brown { --c: var(--noise-brown); }
.noise .corner {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 20%, transparent);
}
.noise .corner::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--c); }
.noise h3 { font: 700 0.75rem/1.366 var(--sans); letter-spacing: 1.6px; text-transform: uppercase; }
.noise-white h3 { color: var(--subtle); }
.noise-pink h3 { color: var(--noise-pink); }
.noise-brown h3 { color: var(--noise-brown); }
.noise p { color: var(--ink); font-size: clamp(1.125rem, 1.8vw, 1.3rem); font-weight: 500; line-height: 1.45; max-width: 16em; }

/* Gallery */
.gallery { display: grid; gap: 20px; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; border-radius: 30px; border: 1px solid var(--chrome-border); background: var(--bg-base); box-shadow: 0 30px 80px -34px rgba(255, 141, 190, 0.30); }
@media (min-width: 900px) {
  .gallery { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin-inline: auto; padding-inline: 0; max-width: 940px; gap: clamp(20px, 3vw, 40px); }
}

/* Features (design system: FeatureRow) */
.features { display: grid; gap: 28px 56px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); } }
.feature { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon {
  --c: var(--noise-pink);
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 35%, transparent);
}
.feature:nth-child(even) .feature-icon { --c: var(--noise-brown); }
.feature-icon svg { display: block; }
.feature h3 { font-size: 1.0625rem; font-weight: 700; color: var(--ink); line-height: 1.366; }
.feature p { margin-top: 4px; color: var(--subtle); font-size: 1rem; line-height: 1.55; max-width: 32em; }

/* Pro: comparison panel, feature rows and the plain table */
.pro-grid { display: grid; gap: 28px 56px; align-items: center; margin-bottom: clamp(28px, 4vw, 40px); }
@media (min-width: 860px) { .pro-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); } }
.pro-features { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.compare-panel { display: grid; gap: 22px; padding: 24px; border-radius: var(--radius-panel); background: var(--surface); border: 1px solid var(--chrome-border); }
.compare-row { display: grid; gap: 10px; }
.compare-label { display: flex; justify-content: space-between; gap: 12px; font: 700 0.875rem/1.366 var(--sans); color: var(--subtle); }
.compare-label b { color: var(--white); font-weight: 700; text-align: right; }
.compare-label .pro { color: var(--pink-soft); }
.compare-bar { height: 10px; border-radius: var(--radius-pill); background: var(--chip-fill); overflow: hidden; }
.compare-bar i { display: block; height: 100%; width: 50%; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.45); }
.compare-bar-pro { overflow: visible; background: var(--gradient-pro-bar); box-shadow: var(--shadow-pro-bar); }

.table-card { overflow-x: auto; padding: 8px 24px; border-radius: var(--radius-panel); background: var(--surface); border: 1px solid var(--surface-border); }
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--divider); vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { font-weight: 800; font-size: 1.0625rem; }
.compare thead th.pro { color: var(--pink-soft); }
.compare tbody th { font-weight: 600; color: var(--ink); width: 42%; }
.compare td { color: var(--subtle); }
.compare td.pro { color: var(--ink); }
.compare .diff { color: var(--white); font-weight: 800; }
@media (max-width: 560px) {
  .table-card { padding: 4px 16px; }
  .compare th, .compare td { padding: 14px 10px 14px 0; font-size: 0.9375rem; }
  .compare thead th { font-size: 1rem; }
  .compare tbody th { width: 38%; }
}
/* Pro-style ambient glow behind the section */
.glow-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse min(60vw, 720px) min(40vw, 480px) at 70% 0%, rgba(255, 141, 190, 0.26), rgba(255, 141, 190, 0) 70%),
    radial-gradient(ellipse min(50vw, 600px) min(44vw, 520px) at 0% 38%, rgba(124, 107, 255, 0.28), rgba(124, 107, 255, 0) 70%),
    radial-gradient(ellipse min(50vw, 600px) min(44vw, 520px) at 100% 62%, rgba(255, 168, 98, 0.20), rgba(255, 168, 98, 0) 70%),
    radial-gradient(ellipse min(60vw, 720px) min(30vw, 360px) at 50% 100%, rgba(183, 204, 255, 0.16), rgba(183, 204, 255, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 78%, transparent 100%);
}

/* Privacy callout: a glass panel with the moon */
.callout {
  display: grid;
  gap: 20px 28px;
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  border-radius: var(--radius-sheet);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}
@media (min-width: 760px) { .callout { grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px 36px; } }
.callout-body { display: grid; gap: 14px; justify-items: start; }
.callout p { color: var(--subtle); max-width: 36em; }
.callout h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.quiet-btn {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  background: var(--chip-fill);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.quiet-btn:hover { background: var(--surface-strong); color: var(--white); }
.moon { display: block; flex: none; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.18)); }

/* Closing call to action */
.closing { text-align: center; overflow: hidden; }
.closing::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse min(60vw, 720px) min(36vw, 420px) at 50% 100%, rgba(255, 141, 190, 0.24), rgba(255, 141, 190, 0) 70%),
    radial-gradient(ellipse min(46vw, 560px) min(36vw, 420px) at 0% 100%, rgba(124, 107, 255, 0.20), rgba(124, 107, 255, 0) 70%),
    radial-gradient(ellipse min(46vw, 560px) min(36vw, 420px) at 100% 100%, rgba(255, 168, 98, 0.16), rgba(255, 168, 98, 0) 70%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 40%);
}
.closing .wrap { display: grid; gap: 28px; justify-items: center; }
.closing .store { justify-items: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--divider); padding-block: 40px 56px; font-size: 0.9375rem; color: var(--subtle-2); }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a { color: var(--subtle); text-decoration: none; font-weight: 600; padding-block: 6px; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.legal-note { margin-top: 28px; display: grid; gap: 8px; max-width: 60rem; font-size: 0.8125rem; line-height: 1.6; }

/* Support + policy pages */
.page { padding-block: clamp(28px, 5vw, 56px) var(--section); }
/* Settings-screen ambient: pink top right, violet top left (browsers without :has() keep the flat night color) */
body:has(main.page) {
  background:
    radial-gradient(ellipse min(50vw, 640px) 400px at 100% 0%, rgba(255, 141, 190, 0.20), rgba(255, 141, 190, 0) 70%) top / 100% 720px no-repeat,
    radial-gradient(ellipse min(52vw, 660px) 420px at 0% 4%, rgba(124, 107, 255, 0.24), rgba(124, 107, 255, 0) 70%) top / 100% 720px no-repeat,
    var(--bg-base);
}
.page-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 5vw, 48px); max-width: 44rem; }
.page h1 { font-size: clamp(2.5rem, 5vw, 3.8rem); }
.prose { max-width: 42rem; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 2.2em; }
.prose h2 + * { margin-top: 0.6em; }
.prose h3 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 0.45em; }
.prose strong { font-weight: 800; }
.prose .summary { padding: 20px 22px; border: 1px solid var(--chrome-border); border-radius: var(--radius-panel); background: var(--surface); }
.prose .summary p + p { margin-top: 0.6em; }

.contact { display: grid; gap: 10px; padding: 24px 26px; border: 1px solid var(--chrome-border); border-radius: var(--radius-panel); background: var(--surface); max-width: 42rem; }
.contact .email { font-family: var(--serif); font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15; color: var(--ink); text-decoration-color: var(--noise-pink); text-decoration-thickness: 2px; word-break: break-word; }

.faq { max-width: 42rem; margin-top: clamp(40px, 6vw, 64px); }
.faq h2 { margin-bottom: 20px; }
.faq-list { overflow: hidden; border-radius: var(--radius-panel); background: var(--surface); border: 1px solid var(--surface-border); }
.faq details + details { border-top: 1px solid var(--divider); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 20px; font-weight: 700; line-height: 1.4; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; line-height: 1; color: var(--noise-pink); }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline-offset: -3px; border-radius: var(--radius-panel); }
.faq .answer { padding: 0 20px 20px; color: var(--subtle); }
.faq .answer > * + * { margin-top: 0.7em; }

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

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