/* ==========================================================================
   iPhone Cleaner — site styles
   Palette and type are lifted from the app's own "Bloom" design system
   (CleanerApp/Views/Bloom/BloomTheme.swift) so the site and the app read as
   one product. Manrope is the app's shipped face, self-hosted here.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

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

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

:root {
  /* Bloom light theme */
  --paper:   #F0F4F8;
  --surf:    #FFFFFF;
  --surf-2:  #E8EEF3;
  --ink:     #16202B;
  --mut:     #69788A;
  --faint:   #A6B2BF;
  --line:    rgba(22, 32, 43, 0.07);
  --hair:    rgba(22, 32, 43, 0.05);

  /* Bloom night — used for the hero panel in both themes */
  --night:   #0E1217;
  --night-2: #1A1F26;
  --night-3: #232A33;
  --night-ink:   #EEF1F3;
  --night-mut:   #8C95A1;
  --night-faint: #5A636F;
  --night-line:  rgba(255, 255, 255, 0.08);

  /* Accents */
  --accent:  #2D7FF9;
  --accent-2:#4A9BFF;
  --mint:    #34D399;
  --gold:    #F59E0B;
  --danger:  #F5576C;

  /* The app's eight scan categories, exact hues from BloomTheme.swift */
  --cat-dupes:   #E56B67;
  --cat-similar: #9A7BE6;
  --cat-shots:   #E68A3E;
  --cat-video:   #5B84E0;
  --cat-screenrec: #E86AA1;
  --cat-live:    #34C08A;
  --cat-files:   #DBA94C;
  --cat-other:   #6183DA;

  /* Type */
  --display: 'Bricolage Grotesque', 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --body:    'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Rhythm */
  --gut: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
  --narrow: 720px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --shadow-card: 0 10px 18px rgba(22, 32, 43, 0.06), 0 2px 6px rgba(22, 32, 43, 0.04);
  --shadow-lift: 0 22px 46px rgba(22, 32, 43, 0.13), 0 4px 12px rgba(22, 32, 43, 0.06);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper:  #101418;
    --surf:   #1A1F26;
    --surf-2: #232A33;
    --ink:    #EEF1F3;
    --mut:    #8C95A1;
    --faint:  #5A636F;
    --line:   rgba(255, 255, 255, 0.08);
    --hair:   rgba(255, 255, 255, 0.06);
    --accent: #3D8BFF;
    --gold:   #FBBF24;
    --danger: #FB7185;
    --shadow-card: 0 10px 18px rgba(0, 0, 0, 0.34);
    --shadow-lift: 0 22px 46px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
  }
}

:root[data-theme='dark'] {
  --paper:  #101418;
  --surf:   #1A1F26;
  --surf-2: #232A33;
  --ink:    #EEF1F3;
  --mut:    #8C95A1;
  --faint:  #5A636F;
  --line:   rgba(255, 255, 255, 0.08);
  --hair:   rgba(255, 255, 255, 0.06);
  --accent: #3D8BFF;
  --gold:   #FBBF24;
  --danger: #FB7185;
  --shadow-card: 0 10px 18px rgba(0, 0, 0, 0.34);
  --shadow-lift: 0 22px 46px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

/* --- Reset ---------------------------------------------------------------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

/* `hidden` must win over any display rule a component sets on itself. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0;
  font-variation-settings: 'wdth' 100, 'opsz' 40;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

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

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gut);
}
.wrap--narrow { max-width: var(--narrow); }

section { position: relative; }

.band { padding-block: clamp(4rem, 9vw, 7.5rem); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
/* Consecutive showcase sections read as one run, so they take a shorter gap
   than a change of subject would. */
.band--stack { padding-block: clamp(2.25rem, 4.5vw, 3.5rem); }

/* Eyebrow labels. They carry a fact — a count, a category, a step — not decoration. */
.eyebrow {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex: none;
}

.h-xl { font-size: clamp(2.6rem, 7vw, 5rem); }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.h-md { font-size: clamp(1.4rem, 2.4vw, 1.85rem); letter-spacing: -0.02em; }
.h-sm { font-size: 1.125rem; letter-spacing: -0.015em; font-weight: 700; }

.lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--mut);
  max-width: 46ch;
  line-height: 1.6;
}

.num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 24px rgba(45, 127, 249, 0.32);
}
.btn--primary:hover { box-shadow: 0 16px 32px rgba(45, 127, 249, 0.4); }

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--surf); }

.btn--on-night {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--night-ink);
}
.btn--on-night:hover { background: rgba(255, 255, 255, 0.14); }

/* App Store badge, drawn rather than imaged so it stays crisp and weighs nothing */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 0.6rem 1.15rem 0.65rem;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: var(--shadow-card);
}
.appstore:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.appstore svg { width: 26px; height: 26px; flex: none; fill: currentColor; }
.appstore span { display: block; line-height: 1.15; }
.appstore .as-top { font-size: 0.6875rem; font-weight: 500; opacity: 0.82; }
.appstore .as-bot { font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.02em; }

.appstore--night { background: var(--night-ink); color: var(--night); }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hair);
}
.site-header--on-night {
  background: color-mix(in srgb, #0E1217 78%, transparent);
  border-bottom-color: var(--night-line);
  color: var(--night-ink);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.025em;
  font-size: 1.0625rem;
  color: inherit;
  flex: none;
}
.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(22, 32, 43, 0.18);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--mut);
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current='page'] { color: var(--ink); }
.site-header--on-night .nav-links a { color: var(--night-mut); }
.site-header--on-night .nav-links a:hover,
.site-header--on-night .nav-links a[aria-current='page'] { color: var(--night-ink); }

.nav-cta { flex: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: inherit;
}
.site-header--on-night .nav-toggle { border-color: var(--night-line); }
.nav-toggle svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta { display: none; }
  .nav[data-open='true'] .nav-links {
    display: flex;
    position: absolute;
    left: var(--gut); right: var(--gut);
    top: 4.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 0.5rem;
    box-shadow: var(--shadow-lift);
  }
  .nav[data-open='true'] .nav-links a {
    display: block;
    padding: 0.8rem 0.9rem;
    border-radius: 10px;
    color: var(--ink);
  }
  .nav[data-open='true'] .nav-links a:hover { background: var(--paper); }
}

/* --- Storage spine -------------------------------------------------------- */
/* The thin bar under the header is the page's one signature device: it is a
   real iPhone storage bar that drains as you scroll, ending at the space the
   app actually gives back. It doubles as the reading-progress indicator. */

.spine {
  height: 4px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  overflow: hidden;
}
.site-header:not(.site-header--on-night) .spine { background: var(--surf-2); }

.spine i {
  display: block;
  height: 100%;
  transition: flex-basis 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  flex-grow: 0;
  flex-shrink: 0;
}
.spine i:last-child { background: transparent !important; }

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

.hero {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(4rem, 9vw, 7rem);
}

/* A slow aurora of the two brand hues. Ambient, never animated on top of text. */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  pointer-events: none;
}
.hero::before {
  width: 44rem; height: 44rem;
  background: radial-gradient(circle, rgba(45, 127, 249, 0.55), transparent 68%);
  top: -20rem; right: -12rem;
}
.hero::after {
  width: 34rem; height: 34rem;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.32), transparent 68%);
  bottom: -18rem; left: -10rem;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; text-align: left; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 1.35rem;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-2), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lede { color: var(--night-mut); max-width: 48ch; font-size: 1.1875rem; }

.hero .eyebrow { color: var(--night-mut); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin-top: 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--night-line);
  font-size: 0.875rem;
  color: var(--night-mut);
}
.hero-meta b {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--night-ink);
  line-height: 1.1;
}

/* --- Phone ---------------------------------------------------------------- */
/* Not a screenshot. The app's Storage screen rebuilt in HTML using the same
   tokens the app ships, so it stays sharp at any size and weighs nothing. */

.phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}

.phone {
  --pw: 310px;
  width: var(--pw);
  aspect-ratio: 310 / 630;
  background: #05070A;
  border-radius: 46px;
  padding: 11px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.09),
    0 50px 90px rgba(0, 0, 0, 0.6),
    0 12px 28px rgba(0, 0, 0, 0.45);
  position: relative;
  flex: none;
}

@media (max-width: 480px) { .phone { --pw: 268px; } }

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 36px;
  background: #101418;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: #EEF1F3;
}

.phone-notch {
  position: absolute;
  top: 9px; left: 50%;
  transform: translateX(-50%);
  width: 92px; height: 26px;
  background: #05070A;
  border-radius: 999px;
  z-index: 6;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #EEF1F3;
  flex: none;
}
.phone-status .sig { display: flex; gap: 3px; align-items: flex-end; }
.phone-status .sig i {
  display: block; width: 3px; background: currentColor; border-radius: 1px;
}
.phone-status .sig i:nth-child(1) { height: 4px; }
.phone-status .sig i:nth-child(2) { height: 6px; }
.phone-status .sig i:nth-child(3) { height: 8px; }
.phone-status .sig i:nth-child(4) { height: 10px; }
.phone-status .batt {
  width: 20px; height: 10px; border: 1.4px solid currentColor;
  border-radius: 3px; padding: 1.4px;
}
.phone-status .batt i { display: block; height: 100%; width: 62%; background: currentColor; border-radius: 1px; }

.phone-body {
  flex: 1;
  overflow: hidden;
  padding: 6px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-title {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 0;
}
.phone-sub { font-size: 10.5px; color: #8C95A1; margin: 2px 0 0; }

/* The dial: a conic ring showing used storage, exactly the app's Home card */
.phone-dial {
  background: #1A1F26;
  border-radius: 20px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.dial {
  --pct: 93;
  width: 82px; height: 82px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(
    from -90deg,
    var(--danger) 0%,
    var(--gold) calc(var(--pct) * 0.55%),
    #232A33 calc(var(--pct) * 1%),
    #232A33 100%
  );
  display: grid;
  place-items: center;
  position: relative;
  transition: --pct 1.4s ease;
}
.dial::after {
  content: '';
  position: absolute;
  inset: 9px;
  background: #1A1F26;
  border-radius: 50%;
}
.dial b {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.dial b sup { font-size: 10px; font-weight: 700; top: -0.55em; }

.dial-facts { min-width: 0; }
.dial-facts .k {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5A636F;
  font-weight: 700;
}
.dial-facts .v {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .phone-dial { gap: 11px; padding: 14px; }
  .dial { width: 72px; height: 72px; }
  .dial-facts .v { font-size: 13.5px; }
}
.dial-facts .v.free {
  background: linear-gradient(120deg, var(--accent-2), var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.phone-cta {
  background: linear-gradient(135deg, var(--accent), var(--mint));
  color: #06121F;
  border-radius: 15px;
  padding: 11px;
  text-align: center;
  font-weight: 800;
  font-size: 12.5px;
  letter-spacing: -0.01em;
}

.phone-rows { display: flex; flex-direction: column; gap: 7px; }

.phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1A1F26;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 9px 11px;
}
.phone-row .dot {
  width: 26px; height: 26px;
  border-radius: 8px;
  flex: none;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.phone-row .lbl { flex: 1; min-width: 0; }
.phone-row .lbl b { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: -0.01em; }
.phone-row .lbl span { font-size: 9.5px; color: #5A636F; }
.phone-row .amt { font-size: 11px; font-weight: 700; color: #8C95A1; }

/* Floating pill tab bar, same shape as the app's */
.phone-tabs {
  margin: auto 12px 14px;
  background: rgba(35, 42, 51, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2px;
  flex: none;
}
.phone-tabs i {
  width: 30px; height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 13px;
  opacity: 0.45;
}
.phone-tabs i.on {
  opacity: 1;
  background: var(--accent);
  color: #fff;
  width: auto;
  padding: 0 12px;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
}

/* The iOS alert that opens the page, then dismisses. A real system alert dims
   the whole screen behind it, which is also what keeps it off the figures. */
.ios-alert {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 0 26px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}
.ios-alert-card {
  width: 100%;
  background: rgba(58, 60, 66, 0.86);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-radius: 15px;
  text-align: center;
  color: #fff;
  overflow: hidden;
  font-family: var(--body);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.ios-alert .body { padding: 17px 16px 14px; }
.ios-alert h4 {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
}
.ios-alert p { font-size: 11px; line-height: 1.35; margin: 0; opacity: 0.9; }
.ios-alert .act {
  border-top: 0.5px solid rgba(255, 255, 255, 0.24);
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #3D8BFF;
}

/* --- Photo tiles ---------------------------------------------------------- */
/* Stand-ins for a photo library, built from gradients rather than stock images:
   nothing here pretends to be a real user's screenshot, and it costs no bytes. */

.ph {
  aspect-ratio: 1;
  border-radius: 11px;
  position: relative;
  overflow: hidden;
  background-color: var(--surf-2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.ph::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 42%);
}

.ph--sunset { background-image: linear-gradient(178deg, #2E3F73 0%, #7E5A94 38%, #E58A6B 66%, #F5C57B 100%); }
.ph--sea    { background-image: linear-gradient(170deg, #7FD4E8 0%, #2E9FC4 46%, #1B5E86 100%); }
.ph--forest { background-image: linear-gradient(165deg, #A9CE7A 0%, #4E8B48 44%, #24422C 100%); }
.ph--city   { background-image: linear-gradient(175deg, #12182B 0%, #2B3358 52%, #C9784F 100%); }
.ph--sand   { background-image: linear-gradient(172deg, #F6E2BE 0%, #E3B78A 50%, #A9764F 100%); }
.ph--rose   { background-image: linear-gradient(168deg, #F8C6D2 0%, #E5809C 48%, #8E4462 100%); }
.ph--night  { background-image: linear-gradient(180deg, #0B1024 0%, #232C55 60%, #4A5691 100%); }
.ph--lilac  { background-image: linear-gradient(170deg, #D9CCF5 0%, #9A7BE6 52%, #574092 100%); }

/* A flat, ruled tile that reads as a screenshot rather than a photograph. */
.ph--shot {
  background-image: linear-gradient(180deg, #EDF1F5 0%, #DCE4EC 100%);
}
.ph--shot::before {
  content: '';
  position: absolute;
  inset: 22% 18%;
  background:
    linear-gradient(var(--faint), var(--faint)) top left / 100% 2px no-repeat,
    linear-gradient(var(--faint), var(--faint)) 0 34% / 74% 2px no-repeat,
    linear-gradient(var(--faint), var(--faint)) 0 68% / 88% 2px no-repeat,
    linear-gradient(var(--faint), var(--faint)) bottom left / 56% 2px no-repeat;
  opacity: 0.55;
}

/* --- Group cards ---------------------------------------------------------- */
/* How the app presents a decision: the group, what it weighs, and which copy
   survives. This is the safety story told as a picture instead of a promise. */

.groups { display: grid; gap: 1rem; }

.group-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-card);
}

.group-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.8125rem;
}
.group-head .swatch {
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--seg, var(--accent));
  flex: none;
}
.group-head b { font-weight: 700; letter-spacing: -0.01em; }
.group-head .meta {
  margin-left: auto;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.group-row {
  display: grid;
  grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr));
  gap: 0.6rem;
}

.shot { position: relative; }
.shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--mut);
  text-align: center;
}

/* The kept copy: full opacity, mint ring, tick. */
.shot--keep .ph { box-shadow: 0 0 0 3px var(--mint), 0 6px 14px rgba(52, 211, 153, 0.28); }
.shot--keep figcaption { color: var(--mint); }

/* Copies being cleared. Held back only slightly: the point of the picture is
   that these ARE the same photograph, so washing them out would undo it. The
   ring and the badge carry the distinction instead. */
.shot--drop .ph { filter: brightness(0.95) saturate(0.92); opacity: 0.88; }

.shot .badge {
  position: absolute;
  top: 6px; right: 6px;
  width: 20px; height: 20px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  z-index: 2;
}
.shot--keep .badge { background: var(--mint); }
.shot--drop .badge { background: rgba(22, 32, 43, 0.55); backdrop-filter: blur(4px); }
.shot .badge svg { width: 12px; height: 12px; stroke: #fff; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.group-note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--mut);
}
.group-note b { color: var(--ink); font-weight: 700; }

/* --- Split showcase ------------------------------------------------------- */
/* Alternating copy/visual sections, so the page has a cadence instead of
   stacking identical grids. */

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split--flip > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .split--flip > :first-child { order: 0; }
}

.split h2 { margin-bottom: 1rem; }
.split .lede { margin-bottom: 1.25rem; }

.split-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.split-points li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--mut);
  margin: 0;
}
.split-points svg {
  width: 18px; height: 18px; flex: none; margin-top: 3px;
  stroke: var(--accent); fill: none; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.split-points b { color: var(--ink); font-weight: 700; }

/* --- Compression meter ---------------------------------------------------- */

.meter-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.35rem, 3vw, 2rem);
  box-shadow: var(--shadow-card);
}

.meter + .meter { margin-top: 1.35rem; padding-top: 1.35rem; border-top: 1px solid var(--hair); }

.meter-top {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.meter-top b { font-size: 0.9375rem; font-weight: 700; letter-spacing: -0.01em; }
.meter-top .sub { font-size: 0.8125rem; color: var(--mut); }
.meter-top .save {
  margin-left: auto;
  font-family: var(--display);
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mint);
}

.meter-bars { display: grid; gap: 0.4rem; }
.meter-line { display: flex; align-items: center; gap: 0.7rem; }
.meter-line .k {
  width: 3.4rem; flex: none;
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--faint);
}
.meter-line .track {
  flex: 1;
  height: 14px;
  background: color-mix(in srgb, var(--ink) 6%, var(--surf));
  border-radius: 999px;
  overflow: hidden;
}
/* display:block matters — the fill is a span, and width/height are ignored on
   an inline box, so the bars render empty without it. */
.meter-line .fill { display: block; height: 100%; border-radius: 999px; }
/* The "before" bar has to be solid enough to make the "after" bar's shortness
   the obvious thing on the card. */
.meter-line .fill--before { background: linear-gradient(90deg, #8C9AAA, #69788A); }
.meter-line .fill--after { background: linear-gradient(90deg, var(--accent), var(--mint)); }
.meter-line .v {
  width: 4.2rem; flex: none; text-align: right;
  font-size: 0.8125rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --- Tools list ----------------------------------------------------------- */
/* The remaining features, as a dense two-column list. A twelve-card icon grid
   says "template"; a list says these are simply the other things it does. */

.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 0 clamp(1.5rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.tool {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.tool .ico {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--tint, var(--accent)) 14%, var(--surf));
  color: var(--tint, var(--accent));
  grid-row: span 2;
}
.tool .ico svg {
  width: 17px; height: 17px;
  stroke: currentColor; fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.tool h3 { font-size: 1rem; letter-spacing: -0.015em; margin-bottom: 0.2rem; align-self: center; }
.tool p { margin: 0; font-size: 0.9063rem; color: var(--mut); line-height: 1.55; }

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.grid { display: grid; gap: 1.1rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.feature {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-color: color-mix(in srgb, var(--tint, var(--accent)) 40%, transparent);
}
.feature .ico {
  width: 42px; height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  background: color-mix(in srgb, var(--tint, var(--accent)) 15%, var(--surf));
  color: var(--tint, var(--accent));
}
.feature .ico svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.0625rem; margin-bottom: 0.4rem; letter-spacing: -0.02em; }
.feature p { color: var(--mut); font-size: 0.9375rem; margin: 0; line-height: 1.55; }

/* --- Storage taxonomy (the "where it went" section) ----------------------- */

.tax {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card);
}

.tax-bar {
  display: flex;
  height: 62px;
  border-radius: 14px;
  overflow: hidden;
  gap: 2px;
  background: var(--surf-2);
  margin-bottom: 1.25rem;
}
.tax-seg {
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: filter 0.2s ease, flex-grow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  background: var(--seg);
  font: inherit;
  color: transparent;
  min-width: 4px;
}
.tax-seg:hover { filter: brightness(1.12); }
.tax-seg[aria-pressed='true'] {
  box-shadow: inset 0 0 0 3px var(--ink), inset 0 0 0 6px var(--surf);
}
.tax-seg:first-child { border-radius: 14px 0 0 14px; }
.tax-seg:last-child { border-radius: 0 14px 14px 0; }

.tax-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}
.tax-legend li { margin: 0; }
.tax-legend button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--mut);
  cursor: pointer;
  transition: all 0.16s ease;
}
.tax-legend button::before {
  content: '';
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--seg);
  flex: none;
}
.tax-legend button[aria-selected='true'] {
  background: var(--surf);
  color: var(--ink);
  border-color: color-mix(in srgb, var(--seg) 55%, transparent);
  box-shadow: 0 2px 10px color-mix(in srgb, var(--seg) 26%, transparent);
}

.tax-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  min-height: 148px;
}
@media (max-width: 620px) { .tax-panel { grid-template-columns: 1fr; } }

.tax-panel h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.tax-panel p { color: var(--mut); margin-bottom: 0.75rem; max-width: 58ch; }
.tax-panel .verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  background: color-mix(in srgb, var(--seg) 16%, var(--surf));
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
}
.tax-figure {
  text-align: right;
  font-family: var(--display);
  letter-spacing: -0.04em;
  flex: none;
}
.tax-figure b { display: block; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1; color: var(--seg); }
.tax-figure span { font-size: 0.8125rem; font-family: var(--body); font-weight: 600; color: var(--mut); letter-spacing: 0; }
@media (max-width: 620px) { .tax-figure { text-align: left; } }

/* --- Steps ---------------------------------------------------------------- */
/* Numbered because scanning, reviewing and freeing genuinely happen in order. */

.steps {
  counter-reset: step;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  position: relative;
}
/* A hairline runs behind the row: the three stages are one continuous process,
   not three separate cards. */
.steps::before {
  content: '';
  position: absolute;
  top: 17px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
  opacity: 0.4;
}
@media (max-width: 700px) { .steps::before { display: none; } }

.step { counter-increment: step; position: relative; }
.step::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--accent);
  background: var(--paper);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  width: 34px; height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.step p { color: var(--mut); font-size: 0.9375rem; margin: 0; line-height: 1.6; }

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

.privacy-band {
  background: var(--night);
  color: var(--night-ink);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 5vw, 3.5rem);
  position: relative;
  overflow: hidden;
}
.privacy-band::before {
  content: '';
  position: absolute;
  width: 30rem; height: 30rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.3), transparent 70%);
  filter: blur(80px);
  top: -14rem; right: -8rem;
  pointer-events: none;
}
.privacy-band > * { position: relative; z-index: 1; }
.privacy-band .eyebrow { color: var(--night-mut); }
.privacy-band .eyebrow::before { background: var(--mint); }
.privacy-band .lede { color: var(--night-mut); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.checklist li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.15rem 0.75rem;
  margin: 0;
}
.checklist svg {
  width: 18px; height: 18px; flex: none; margin-top: 3px;
  grid-row: span 2;
  stroke: var(--mint); fill: none; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
/* The claim on its own line, the qualification beneath it — so the list can be
   skimmed for the claims alone. */
.checklist b {
  color: var(--night-ink);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}
.checklist span { font-size: 0.875rem; color: var(--night-mut); line-height: 1.5; }

/* --- Pricing -------------------------------------------------------------- */

/* Free sits apart as its own panel; the three Pro periods are the same product
   at different cadences, so they read as one group of three. */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.6fr);
  gap: 1.1rem;
  align-items: stretch;
}
@media (max-width: 940px) { .pricing-grid { grid-template-columns: 1fr; } }

.plans {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.35rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-card);
}
.plan--free {
  background: var(--surf);
  border-style: dashed;
  border-color: color-mix(in srgb, var(--mint) 45%, var(--line));
  padding: clamp(1.5rem, 3vw, 2rem);
}
.plan--best {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-lift);
}
.plan .tag {
  position: absolute;
  top: -0.7rem; left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--accent);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(45, 127, 249, 0.36);
}
.plan h3 {
  font-size: 0.75rem;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
  margin-bottom: 0.75rem;
}
.plan--free h3 { color: var(--mint); }
.plan .price {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.plan .price span {
  font-size: 0.875rem;
  font-family: var(--body);
  font-weight: 600;
  color: var(--mut);
  /* The price's tight tracking otherwise pulls the period into the last digit. */
  letter-spacing: 0;
  margin-left: 0.15em;
}
.plan .note { font-size: 0.875rem; color: var(--mut); margin: 0.7rem 0 0; }
.plan .equiv {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.01em;
}
.plan-includes {
  list-style: none;
  padding: 1.1rem 0 0;
  margin: 1.1rem 0 0;
  border-top: 1px solid var(--hair);
  display: grid;
  gap: 0.55rem;
}
.plan-includes li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin: 0;
  font-size: 0.9063rem;
  color: var(--mut);
}
.plan-includes svg {
  width: 16px; height: 16px; flex: none; margin-top: 3px;
  stroke: var(--mint); fill: none; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.plan .spacer { flex: 1; }

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

.faq { display: grid; gap: 0.7rem; }
.qa {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.qa[open] { box-shadow: var(--shadow-card); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.qa summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 3.25rem 1.15rem 1.35rem;
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '';
  position: absolute;
  right: 1.35rem; top: 50%;
  width: 11px; height: 11px;
  border-right: 2.2px solid var(--mut);
  border-bottom: 2.2px solid var(--mut);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s ease;
}
.qa[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.qa .a { padding: 0 1.35rem 1.35rem; color: var(--mut); }
.qa .a > :last-child { margin-bottom: 0; }

/* --- Prose (articles, legal) ---------------------------------------------- */

.prose { max-width: 72ch; }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 2.75rem 0 0.9rem;
  scroll-margin-top: 6rem;
}
.prose h3 { font-size: 1.25rem; margin: 2rem 0 0.6rem; }
.prose p, .prose li { color: var(--ink); }
.prose li::marker { color: var(--accent); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.1rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--surf);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--mut);
}
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.9375rem; }
.prose th, .prose td { text-align: left; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); }
.prose th { font-weight: 700; color: var(--mut); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Answer-first callout — the block AI assistants and featured snippets lift */
.answer {
  background: var(--surf);
  border: 1px solid var(--line);
  border-left: 3px solid var(--mint);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0 2rem;
  box-shadow: var(--shadow-card);
}
.answer .k {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 0.4rem;
}
.answer p { margin: 0; font-size: 1.0625rem; }

.toc {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
}
.toc h2 { font-size: 0.75rem !important; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mut); margin: 0 0 0.75rem !important; font-family: var(--body); font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc a { color: var(--ink); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

/* --- Support page --------------------------------------------------------- */

.support-search {
  display: flex;
  gap: 0.6rem;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.4rem 0.4rem 1.25rem;
  align-items: center;
  box-shadow: var(--shadow-card);
  max-width: 560px;
}
.support-search svg { width: 19px; height: 19px; stroke: var(--mut); fill: none; stroke-width: 2; flex: none; }
.support-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  padding: 0.6rem 0;
  min-width: 0;
}
.support-search input:focus { outline: none; }
.support-search input::placeholder { color: var(--faint); }

.topic-nav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.topic-nav li { margin: 0; }
.topic-nav a {
  display: inline-block;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--surf);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--mut);
}
.topic-nav a:hover { color: var(--ink); border-color: var(--accent); }

.no-results {
  display: none;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--mut);
}
.no-results.on { display: block; }

.help-group { margin-bottom: 2.75rem; scroll-margin-top: 6rem; }
.help-group > h2 { font-size: 1.35rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.6rem; }
.help-group > h2 .n {
  font-size: 0.75rem;
  font-family: var(--body);
  font-weight: 700;
  color: var(--mut);
  background: var(--surf-2);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0;
}

/* --- Contact card --------------------------------------------------------- */

.contact-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
}
@media (max-width: 640px) { .contact-card { grid-template-columns: 1fr; } }
.contact-card h2 { color: #fff; margin-bottom: 0.5rem; }
.contact-card p { margin: 0; opacity: 0.92; max-width: 46ch; }
.contact-card .btn--ghost { background: #fff; color: var(--accent); border-color: #fff; }
.contact-card .btn--ghost:hover { background: #fff; }

/* --- Final CTA ------------------------------------------------------------ */

.cta-band {
  background: var(--night);
  color: var(--night-ink);
  text-align: center;
  padding-block: clamp(4rem, 9vw, 7rem);
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  width: 50rem; height: 34rem;
  background: radial-gradient(ellipse, rgba(45, 127, 249, 0.35), transparent 68%);
  filter: blur(80px);
  top: -12rem; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); margin-bottom: 1rem; }
.cta-band .lede { color: var(--night-mut); margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .eyebrow { justify-content: center; color: var(--night-mut); }

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

.site-footer {
  background: var(--night);
  color: var(--night-mut);
  padding-block: 3.5rem 2.5rem;
  font-size: 0.9375rem;
  border-top: 1px solid var(--night-line);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--night-line);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

.site-footer .brand { color: var(--night-ink); margin-bottom: 0.9rem; }
.site-footer h3 {
  font-family: var(--body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--night-faint);
  margin-bottom: 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer li { margin: 0; }
.site-footer a { text-decoration: none; color: var(--night-mut); }
.site-footer a:hover { color: var(--night-ink); text-decoration: underline; }
.footer-legal {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--night-faint);
}

/* --- Theme toggle --------------------------------------------------------- */

.theme-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: inherit;
  flex: none;
  transition: background-color 0.16s ease;
}
.site-header--on-night .theme-toggle { border-color: var(--night-line); }
.theme-toggle:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.theme-toggle svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: block; }
:root[data-theme='dark'] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .sun { display: block; }
  :root:not([data-theme='light']) .theme-toggle .moon { display: none; }
}

/* --- Reveal on scroll ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: none; }

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

/* --- Print ---------------------------------------------------------------- */

@media print {
  .site-header, .cta-band, .site-footer, .phone-stage { display: none; }
  body { background: #fff; color: #000; }
}
