/* =============================================================
 * Nexdo website — Design System ("Warm Signal")
 *
 * Mirrors the mobile app's "depth" look (nexdo-mobile/global.css and
 * constants/theme/gradients.ts): a warm peach-cream page lit from its
 * top-right corner, cream cards lifted by soft brown shadows with a
 * hairline of light along their top edge, charcoal chrome, and one
 * glowing orange accent for the action a screen is for.
 *
 * Space Grotesk is the only typeface, bundled locally. There is no
 * italic cut, so nothing here ever sets font-style: italic.
 * ============================================================= */

@font-face {
  font-family: "Space Grotesk";
  src:
    url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype-variations"),
    url("../fonts/SpaceGrotesk-VariableFont_wght.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cream surfaces — 50 a raised card, 100 the page, 200 soft edges, 300 firmer edges */
  --cream-50: #fdf8ef;
  --cream-100: #fbf3e5;
  --cream-200: #f0e5d2;
  --cream-300: #e2d4bd;

  /* Charcoal surfaces — warm, brown-black */
  --charcoal-900: #221c16;
  --charcoal-800: #2d261f;
  --charcoal-600: #4d4338;
  --charcoal-400: #8f8474;

  /* Orange — the single accent, with its tints */
  --orange-50: #fff3e8;
  --orange-100: #fde6d5;
  --orange-200: #fbcfb3;
  --orange-300: #f9b07f;
  --orange-400: #fa8b4c;
  --orange-500: #f2652a;
  --orange-600: #d04816;
  /* Web-only: small orange text on cream. 500 and 600 fall short of AA there. */
  --orange-700: #b23a0e;

  /* Urgency */
  --amber-500: #ba7a0c;
  --amber-100: #f8eacb;
  --olive-500: #6f8245;
  --olive-100: #e6edd5;
  --overdue-50: #fff1eb;
  --overdue-100: #fce3da;
  --overdue-200: #f7bca9;
  --overdue-300: #f0957e;
  --overdue-500: #cc3b1e;
  --success-100: #e2f2e2;
  --success-300: #7fd48f;
  --success-500: #1f8f54;

  /* Ink */
  --ink: #1d1813;
  --ink-muted: #6a6157;
  --ink-subtle: #9c9184;
  --ink-dark: #fbf5ea;
  --ink-dark-muted: #b1a796;
  --on-accent: #fff9f2;
  --hairline-dark: rgba(255, 255, 255, 0.08);

  /* The solid peach the dunes end in */
  --dunes: #f4c08f;

  /* Shadows — warm brown, never grey, so they read as light on paper */
  --shadow-soft: 0 4px 10px -3px rgba(92, 58, 26, 0.12);
  --shadow-card: 0 10px 24px -8px rgba(92, 58, 26, 0.19);
  --shadow-modal: 0 2px 6px rgba(92, 58, 26, 0.06), 0 18px 40px -12px rgba(92, 58, 26, 0.26);
  --shadow-glow: 0 10px 20px -8px rgba(236, 86, 28, 0.6);
  --shadow-float: 0 24px 40px -18px rgba(30, 16, 6, 0.6);
  --edge-light: inset 0 1px 0 rgba(255, 255, 255, 0.9);

  /* Gradient fills (constants/theme/gradients.ts) */
  --grad-accent: linear-gradient(160deg, #fb9459 0%, #f26a2f 50%, #e4521e 100%);
  --grad-accent-hover: linear-gradient(160deg, #f9864a 0%, #ea5d22 50%, #d84a18 100%);
  --grad-success: linear-gradient(160deg, #45b971 0%, #28995a 100%);
  --grad-card: linear-gradient(180deg, #fffcf7 0%, #fcf5ea 100%);
  --grad-danger: linear-gradient(170deg, #fff6f2 0%, #fee8df 100%);
  --grad-tile-orange: linear-gradient(145deg, #fff2e6 0%, #fcd9c1 100%);
  --grad-charcoal: linear-gradient(165deg, #342c25 0%, #231d18 45%, #1b1612 100%);
  /* Sized in pixels rather than the app's percentages, so a wide panel gets
     a lamp in its corner instead of being washed orange all over. */
  --glow-header:
    radial-gradient(circle 400px at 96% 0%, rgba(250, 130, 62, 0.3) 0%, rgba(250, 130, 62, 0.09) 55%, rgba(250, 130, 62, 0) 100%),
    radial-gradient(circle 320px at 0% 120%, rgba(255, 196, 128, 0.1) 0%, rgba(255, 196, 128, 0) 100%);

  /* Layout */
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 76px;

  color-scheme: light;
}

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

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

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

/* Warm light falling on the page from its top-right corner, as on the
   app's Next and Chat screens. */
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle 820px at 100% 0%, rgba(252, 180, 120, 0.5) 0%, rgba(252, 196, 140, 0.16) 45%, rgba(252, 196, 140, 0) 100%) no-repeat,
    radial-gradient(circle 520px at -8% 58%, rgba(253, 196, 140, 0.24) 0%, rgba(253, 196, 140, 0) 100%) no-repeat,
    var(--cream-100);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

ul, ol {
  padding: 0;
}

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

a {
  color: inherit;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
}

/* No italic cut exists — never lean the type. */
em, i, cite, address, dfn {
  font-style: normal;
}

::selection {
  background: var(--orange-100);
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(242, 101, 42, 0.6);
  outline-offset: 3px;
}

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

.gem {
  flex: none;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--charcoal-900);
  color: var(--ink-dark);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.15s ease;
}

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

/* ---- Shared surfaces -------------------------------------------
 * The app's raised cream card (card--cream) and its icon tile
 * (tile--orange), applied to every block that plays that part.
 * ----------------------------------------------------------------- */

.tile,
.step,
.row,
.faq-item,
.link-card,
.split-card,
.summary-card,
.note,
.contact-card,
.steps-v li,
.table-wrap,
.topic label,
.proposal,
.task {
  border: 1px solid var(--cream-200);
  background: var(--grad-card);
  box-shadow: var(--shadow-card), var(--edge-light);
}

.step__icon,
.row__icon,
.link-card__icon,
.topic__icon,
.faq-group > h2 .icon-wrap {
  display: grid;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: var(--grad-tile-orange);
  color: var(--orange-600);
  box-shadow: 0 4px 10px -4px rgba(242, 101, 42, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

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

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

.section {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--tight-top {
  padding-top: clamp(24px, 4vw, 48px);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 720px;
  margin-bottom: clamp(32px, 4vw, 52px);
}

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

.on-dark {
  background: var(--charcoal-900);
  color: var(--ink-dark);
}

/* ---- Typography ------------------------------------------------ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-700);
}

/* A tiny gem ahead of every eyebrow — the brand glyph as a bullet. */
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--grad-accent);
  box-shadow: 0 2px 6px rgba(242, 101, 42, 0.55);
  transform: rotate(45deg);
}

.on-dark .eyebrow,
.tile--dark .eyebrow,
.contact-card__side .eyebrow,
.cta-panel .eyebrow {
  color: var(--orange-400);
}

.display {
  font-size: clamp(2.25rem, 1rem + 5.2vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

/* Each phrase of the hero headline gets its own line, so the break always
   lands between "Stop figuring out" and "what to do next." */
.display .line {
  display: block;
}

.h2 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.1rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.h3 {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.on-dark .lead {
  color: var(--ink-dark-muted);
}

.accent {
  color: var(--orange-600);
}

.muted {
  color: var(--ink-muted);
}

.nowrap {
  white-space: nowrap;
}

.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--orange-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition: color 0.15s ease;
}

.text-link:hover {
  color: var(--orange-700);
}

/* ---- Header ----------------------------------------------------
 * A floating charcoal bar — the app's tab bar, up top: warm light in
 * its corner, and a glowing orange dot under the page you're on.
 * ----------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: 12px;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--container);
  height: 62px;
  margin-inline: auto;
  padding: 0 10px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: var(--glow-header), var(--charcoal-900);
  box-shadow: 0 16px 32px -18px rgba(30, 16, 6, 0.55);
  pointer-events: auto;
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled .header-inner {
  box-shadow: var(--shadow-float);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--ink);
  text-decoration: none;
}

.brand .gem {
  width: 30px;
  height: 30px;
}

.site-header .brand,
.site-footer .brand {
  color: var(--ink-dark);
  --gem-left: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a:not(.btn) {
  position: relative;
  padding: 9px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dark-muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav a:not(.btn):hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-dark);
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--ink-dark);
}

.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 6px rgba(250, 130, 62, 0.9);
}

/* "Get Nexdo": a cream button on the charcoal bar, led by a glowing dot. */
.site-nav .btn {
  margin-left: 10px;
  border-color: rgba(255, 255, 255, 0.7);
  background: var(--grad-card);
  color: var(--ink);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5), var(--edge-light);
}

.site-nav .btn::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-accent);
  box-shadow: 0 0 8px rgba(250, 130, 62, 0.9);
}

.site-nav .btn:hover {
  background: var(--cream-50);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--ink-dark);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon--close,
.nav-toggle[aria-expanded="true"] .icon--open {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon--close {
  display: block;
}

@media (max-width: 880px) {
  .site-nav {
    display: none;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    background: var(--glow-header), var(--charcoal-900);
    box-shadow: var(--shadow-float);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  }

  .js .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav a:not(.btn) {
    padding: 14px 16px;
    font-size: 17px;
    color: var(--ink-dark);
  }

  .site-nav a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.07);
  }

  .site-nav a[aria-current="page"]::after {
    left: auto;
    right: 18px;
    bottom: auto;
    top: 50%;
    margin: -2px 0 0;
  }

  .site-nav .btn {
    margin: 6px 0 0;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: scale(0.98);
}

.btn .icon {
  width: 18px;
  height: 18px;
}

/* Orange and glowing, lit at the top. Cream-on-orange passes AA only as
   large text (≥ 18.66px bold), so the label is sized to clear that bar. */
.btn--primary {
  background: var(--grad-accent);
  color: var(--on-accent);
  font-size: 1.1875rem;
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary:hover {
  background: var(--grad-accent-hover);
  box-shadow: 0 14px 26px -8px rgba(236, 86, 28, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--dark {
  background: var(--grad-charcoal);
  color: var(--ink-dark);
  box-shadow: 0 10px 20px -10px rgba(30, 16, 6, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--dark:hover {
  background: var(--charcoal-800);
}

.btn--ghost {
  border-color: var(--cream-200);
  background: var(--grad-card);
  color: var(--ink);
  box-shadow: var(--shadow-soft), var(--edge-light);
}

.btn--ghost:hover {
  background: var(--cream-50);
  box-shadow: var(--shadow-card), var(--edge-light);
}

.btn--ghost-dark {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.11);
}

.btn--sm {
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 15px;
}

/* "Coming soon" availability pill — swap for the official store badges at launch. */
.soon-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background: var(--grad-charcoal);
  color: var(--ink-dark);
  box-shadow: 0 10px 20px -10px rgba(30, 16, 6, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.soon-pill__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--orange-400);
}

.soon-pill__icon .icon {
  width: 18px;
  height: 18px;
}

.soon-pill small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-400);
}

.soon-pill strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

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

/* Clipped sideways only (the floating notes), so the phone's shadow can
   fall past the section's foot. */
.hero {
  position: relative;
  overflow-x: clip;
  padding-block: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero-copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}

.hero-copy .lead {
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  font-size: 14px;
  color: var(--ink-muted);
}

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

.hero-trust .icon {
  width: 16px;
  height: 16px;
  color: var(--orange-600);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  padding: 16px 0 8px;
}

/* The orange glow the app's CTAs cast, behind the phone. */
.hero-visual::before {
  content: "";
  position: absolute;
  width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 101, 42, 0.3), rgba(242, 101, 42, 0));
}

/* Loose thoughts floating around the phone — the app's resting chip. */
.sticky-note {
  position: absolute;
  z-index: 2;
  padding: 10px 18px;
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  background: var(--grad-card);
  box-shadow: var(--shadow-card), var(--edge-light);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-muted);
  white-space: nowrap;
  transform: rotate(var(--r));
  animation: drift 7s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(var(--r)); }
  50% { transform: translateY(-8px) rotate(var(--r)); }
}

.sticky-note--1 { top: 8%; left: -4%; --r: -7deg; }
.sticky-note--2 { top: 22%; right: 0; --r: 5deg; --d: -2.2s; }
.sticky-note--3 { bottom: 30%; left: -2%; --r: 4deg; --d: -4.1s; }
.sticky-note--4 { bottom: 12%; right: 2%; --r: -5deg; --d: -1.3s; }

/* Side by side, the headline shares the row with the phone, so it scales
   with the viewport to keep "Stop figuring out" on one line. */
@media (min-width: 1101px) {
  .hero .display {
    font-size: min(4.4vw, 4.1rem);
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    padding-top: 8px;
  }
}

@media (max-width: 520px) {
  .sticky-note {
    padding: 8px 13px;
    font-size: 13px;
  }

  /* The phone fills the width here, so only the notes that land on its
     empty stretches stay. */
  .sticky-note--1,
  .sticky-note--2 {
    display: none;
  }

  .sticky-note--3 { left: -4%; }
  .sticky-note--4 { right: -2%; }
}

/* ---- Phone mockup: the app's Next screen ---------------------------
 * Sized in app points: --u is one point of a 360pt-wide phone screen,
 * from the phone's width (container query units), so the whole screen
 * scales as one piece from a 320px phone up to desktop.
 * ----------------------------------------------------------------- */

.phone {
  position: relative;
  z-index: 1;
  width: min(330px, 84vw);
  aspect-ratio: 330 / 690;
  padding: 10px;
  border-radius: 50px;
  background: #17120e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 50px 90px -40px rgba(60, 30, 10, 0.55),
    0 18px 36px -18px rgba(60, 30, 10, 0.35);
  container-type: inline-size;
}

.phone__screen {
  --u: calc(100cqw / 360);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 40px;
  background:
    radial-gradient(circle at 100% 0%, rgba(252, 180, 120, 0.55) 0%, rgba(252, 196, 140, 0.18) 34%, rgba(252, 196, 140, 0) 56%) no-repeat,
    var(--cream-100);
  color: var(--ink);
  font-size: calc(13 * var(--u));
  line-height: 1.3;
}

@supports not (width: 1cqw) {
  .phone__screen {
    --u: 0.86px;
  }
}

.phone__screen .icon,
.phone__screen .gem {
  width: calc(14 * var(--u));
  height: calc(14 * var(--u));
}

.ps-island {
  position: absolute;
  top: calc(10 * var(--u));
  left: 50%;
  z-index: 3;
  width: calc(96 * var(--u));
  height: calc(28 * var(--u));
  border-radius: calc(14 * var(--u));
  background: #000;
  transform: translateX(-50%);
}

.ps-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(15 * var(--u)) calc(28 * var(--u)) calc(8 * var(--u)) calc(32 * var(--u));
  font-size: calc(13 * var(--u));
  font-weight: 600;
}

.ps-status__icons {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
}

.ps-signal {
  display: flex;
  align-items: flex-end;
  gap: calc(2 * var(--u));
  height: calc(10 * var(--u));
}

.ps-signal i {
  width: calc(3 * var(--u));
  border-radius: 1px;
  background: currentColor;
}

.ps-signal i:nth-child(1) { height: 35%; }
.ps-signal i:nth-child(2) { height: 55%; }
.ps-signal i:nth-child(3) { height: 78%; }
.ps-signal i:nth-child(4) { height: 100%; }

.ps-battery {
  width: calc(22 * var(--u));
  height: calc(11 * var(--u));
  padding: calc(1.5 * var(--u));
  border: calc(1.2 * var(--u)) solid rgba(29, 24, 19, 0.45);
  border-radius: calc(3.5 * var(--u));
}

.ps-battery::before {
  content: "";
  display: block;
  width: 78%;
  height: 100%;
  border-radius: calc(1.5 * var(--u));
  background: currentColor;
}

.ps-head {
  padding: calc(8 * var(--u)) calc(21 * var(--u)) calc(4 * var(--u));
}

.ps-eyebrow {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--u));
  font-size: calc(11 * var(--u));
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--orange-500);
}

.phone__screen .ps-eyebrow .gem {
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
}

.ps-heading {
  margin-top: calc(8 * var(--u));
  font-size: calc(19 * var(--u));
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.02em;
}

.ps-count {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  margin: calc(18 * var(--u)) calc(21 * var(--u)) 0;
}

.ps-counter {
  padding: calc(4 * var(--u)) calc(10 * var(--u));
  border: 1px solid var(--cream-200);
  border-radius: calc(12 * var(--u));
  background: var(--grad-card);
  box-shadow: 0 calc(8 * var(--u)) calc(18 * var(--u)) calc(-8 * var(--u)) rgba(92, 58, 26, 0.19), var(--edge-light);
  font-size: calc(15 * var(--u));
  font-weight: 700;
}

.ps-counter span {
  font-weight: 500;
  color: var(--ink-subtle);
}

.ps-dots {
  display: flex;
  align-items: center;
  gap: calc(5 * var(--u));
}

.ps-dots i {
  width: calc(6 * var(--u));
  height: calc(6 * var(--u));
  border-radius: 50%;
  background: var(--orange-200);
}

.ps-dots i.is-on {
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
  background: var(--orange-500);
  box-shadow: 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(242, 101, 42, 0.55);
}

/* The card waiting behind, showing as a slim band under the top one. */
.ps-stack {
  position: relative;
  isolation: isolate;
  margin: calc(14 * var(--u)) calc(21 * var(--u)) 0;
}

.ps-stack::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 3.5%;
  right: 3.5%;
  bottom: calc(-10 * var(--u));
  height: calc(60 * var(--u));
  border-radius: calc(26 * var(--u));
  background: linear-gradient(rgba(251, 243, 229, 0.2), rgba(251, 243, 229, 0.2)), var(--charcoal-900);
  box-shadow: 0 calc(18 * var(--u)) calc(30 * var(--u)) calc(-16 * var(--u)) rgba(30, 16, 6, 0.6);
}

.ps-card {
  display: grid;
  gap: calc(18 * var(--u));
  padding: calc(20 * var(--u));
  border: 1px solid var(--hairline-dark);
  border-radius: calc(28 * var(--u));
  background: var(--grad-charcoal);
  color: var(--ink-dark);
  box-shadow: 0 calc(24 * var(--u)) calc(40 * var(--u)) calc(-18 * var(--u)) rgba(30, 16, 6, 0.6);
}

.ps-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(12 * var(--u));
  font-size: calc(13 * var(--u));
}

.ps-rank,
.ps-score {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
  border-radius: 999px;
}

.ps-rank {
  padding: calc(2 * var(--u)) calc(10 * var(--u)) calc(2 * var(--u)) calc(6 * var(--u));
  background: linear-gradient(135deg, rgba(242, 101, 42, 0.38) 0%, rgba(242, 101, 42, 0.18) 100%);
  color: var(--orange-300);
  font-weight: 700;
}

.phone__screen .ps-rank .icon {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
  color: var(--orange-400);
}

.ps-score {
  padding: calc(2 * var(--u)) calc(10 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  font-weight: 600;
  --gem-left: #fff;
}

.phone__screen .ps-score .gem {
  width: calc(13 * var(--u));
  height: calc(13 * var(--u));
}

.ps-score b {
  font-weight: 700;
  color: var(--orange-400);
}

.ps-card__title {
  margin-top: calc(-6 * var(--u));
  font-size: calc(22 * var(--u));
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.ps-card__meta {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  margin-top: calc(-8 * var(--u));
  font-size: calc(13 * var(--u));
  font-weight: 600;
}

.ps-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--u));
}

.ps-card__meta i {
  width: 1px;
  height: calc(13 * var(--u));
  background: rgba(255, 255, 255, 0.2);
}

.ps-start {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(12 * var(--u));
  min-height: calc(44 * var(--u));
  border-radius: calc(16 * var(--u));
  background: var(--grad-accent);
  color: var(--on-accent);
  font-size: calc(15 * var(--u));
  font-weight: 700;
  box-shadow: 0 calc(10 * var(--u)) calc(20 * var(--u)) calc(-8 * var(--u)) rgba(236, 86, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ps-start__disc {
  display: grid;
  place-items: center;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border-radius: 50%;
  background: #fff;
  color: var(--orange-500);
  box-shadow: 0 calc(3 * var(--u)) calc(8 * var(--u)) calc(-2 * var(--u)) rgba(150, 50, 10, 0.45);
}

.phone__screen .ps-start__disc .icon {
  width: calc(12 * var(--u));
  height: calc(12 * var(--u));
  margin-left: calc(2 * var(--u));
}

.ps-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  min-height: calc(42 * var(--u));
  margin-top: calc(-8 * var(--u));
  border: 1px solid rgba(127, 212, 143, 0.35);
  border-radius: calc(14 * var(--u));
  background: rgba(31, 143, 84, 0.25);
  color: var(--success-300);
  font-size: calc(14 * var(--u));
  font-weight: 700;
}

.phone__screen .ps-done .icon {
  width: calc(16 * var(--u));
  height: calc(16 * var(--u));
}

.ps-nav {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(12 * var(--u));
  margin: calc(30 * var(--u)) calc(21 * var(--u)) 0;
  font-size: calc(14 * var(--u));
  font-weight: 700;
}

.ps-nav span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: calc(8 * var(--u));
  min-height: calc(44 * var(--u));
  border-radius: calc(16 * var(--u));
}

.ps-nav__prev {
  border: 1px solid var(--cream-200);
  background: var(--grad-card);
  box-shadow: 0 calc(4 * var(--u)) calc(10 * var(--u)) calc(-3 * var(--u)) rgba(92, 58, 26, 0.12), var(--edge-light);
}

.ps-nav__next {
  background: var(--charcoal-900);
  color: var(--ink-dark);
  box-shadow: 0 calc(10 * var(--u)) calc(20 * var(--u)) calc(-10 * var(--u)) rgba(30, 16, 6, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Peach dunes along the foot of the page, running on under the tab bar. */
.ps-dunes {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.ps-dunes svg {
  width: 100%;
  height: calc(130 * var(--u));
}

.ps-dunes span {
  display: block;
  height: calc(70 * var(--u));
  background: var(--dunes);
}

/* The floating tab bar: a charcoal slab with rounded top corners. */
.ps-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  height: calc(76 * var(--u));
  padding: 0 calc(16 * var(--u)) calc(18 * var(--u));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: calc(30 * var(--u)) calc(30 * var(--u)) 0 0;
  background: var(--charcoal-900);
  box-shadow: 0 calc(-10 * var(--u)) calc(24 * var(--u)) calc(-12 * var(--u)) rgba(30, 16, 6, 0.35);
  color: rgba(251, 245, 234, 0.6);
}

.ps-tab {
  position: relative;
  display: grid;
  flex: 1;
  place-items: center;
}

.ps-tab--left { padding-right: calc(12 * var(--u)); }
.ps-tab--right { padding-left: calc(12 * var(--u)); }

.phone__screen .ps-tab .icon {
  width: calc(22 * var(--u));
  height: calc(22 * var(--u));
}

.ps-tab.is-active {
  color: var(--ink-dark);
}

.ps-tab.is-active::after {
  content: "";
  position: absolute;
  top: calc(28 * var(--u));
  width: calc(4 * var(--u));
  height: calc(4 * var(--u));
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: 0 0 calc(6 * var(--u)) rgba(250, 130, 62, 0.9);
}

.ps-tab__icon {
  position: relative;
}

.ps-badge {
  position: absolute;
  top: calc(-7 * var(--u));
  right: calc(-10 * var(--u));
  min-width: calc(18 * var(--u));
  height: calc(18 * var(--u));
  padding: 0 calc(3 * var(--u));
  border: calc(2 * var(--u)) solid var(--charcoal-900);
  border-radius: 999px;
  background: var(--charcoal-600);
  color: var(--ink-dark);
  font-size: calc(9.5 * var(--u));
  font-weight: 700;
  line-height: calc(14 * var(--u));
  text-align: center;
}

.ps-add {
  display: grid;
  place-items: center;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  border-radius: 50%;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: 0 calc(10 * var(--u)) calc(20 * var(--u)) calc(-8 * var(--u)) rgba(236, 86, 28, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.phone__screen .ps-add .icon {
  width: calc(18 * var(--u));
  height: calc(18 * var(--u));
}

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

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.step {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 24px 28px;
  border-radius: 24px;
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.step__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.step__icon .icon {
  width: 20px;
  height: 20px;
}

.step__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

/* The step the app is for — its icon lit like the tab bar's centre button. */
.step--accent .step__icon {
  border-color: transparent;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.step p {
  font-size: 16px;
  color: var(--ink-muted);
}

@media (max-width: 820px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Feature bento ---------------------------------------------- */

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

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
  grid-column: span var(--span, 6);
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  border-radius: 28px;
}

/* The focus session's backdrop: embers glowing behind the glass. */
.tile--dark {
  border-color: rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle 300px at 88% 6%, rgba(247, 150, 70, 0.2) 0%, rgba(247, 150, 70, 0) 100%),
    radial-gradient(circle 260px at 10% 90%, rgba(226, 98, 46, 0.15) 0%, rgba(226, 98, 46, 0) 100%),
    linear-gradient(180deg, #3a2d22 0%, #241c16 55%, #2e231b 100%);
  color: var(--ink-dark);
  box-shadow: var(--shadow-float);
}

.tile__copy {
  display: grid;
  gap: 8px;
  max-width: 480px;
}

.tile__copy p {
  font-size: 16px;
  color: var(--ink-muted);
}

.tile--dark .tile__copy p {
  color: var(--ink-dark-muted);
}

.tile__visual {
  margin-top: auto;
}

@media (max-width: 960px) {
  .tile {
    grid-column: span 6;
  }
}

@media (max-width: 720px) {
  .tile {
    grid-column: 1 / -1;
  }
}

/* Mock: capture — a messy dump, and what Nexdo made of it */
.mock-dump {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid var(--cream-200);
  border-radius: 20px;
  background: var(--cream-100);
  box-shadow: inset 0 1px 2px rgba(92, 58, 26, 0.06);
}

.mock-dump p {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--ink);
}

.mock-dump__found {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--orange-200);
  border-radius: 999px;
  background: var(--orange-50);
  color: var(--orange-700);
  font-size: 13px;
  font-weight: 700;
}

.mock-dump__found .gem {
  width: 14px;
  height: 14px;
}

/* Mock: capture bar */
.mock-attachments {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.mock-photo {
  position: relative;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid var(--cream-200);
  border-radius: 16px;
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

/* A whiteboard to-do list, drawn in lines. */
.mock-photo::before {
  content: "";
  position: absolute;
  inset: 14px 12px;
  background:
    linear-gradient(var(--charcoal-600), var(--charcoal-600)) 0 2px / 58% 3px no-repeat,
    linear-gradient(var(--charcoal-400), var(--charcoal-400)) 0 17px / 80% 3px no-repeat,
    linear-gradient(var(--orange-500), var(--orange-500)) 0 32px / 45% 3px no-repeat,
    linear-gradient(var(--charcoal-400), var(--charcoal-400)) 0 47px / 68% 3px no-repeat;
  border-radius: 2px;
}

.chip-att {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  background: var(--grad-card);
  box-shadow: var(--shadow-soft), var(--edge-light);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.chip-att .icon {
  width: 15px;
  height: 15px;
  color: var(--orange-600);
}

.mock-input {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  background: var(--cream-50);
  box-shadow: inset 0 1px 3px rgba(92, 58, 26, 0.07), var(--shadow-soft);
}

.mock-input__text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  color: var(--ink-subtle);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-input__btn,
.mock-input__send {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.mock-input__btn {
  color: var(--ink-muted);
}

.mock-input__send {
  margin-left: 4px;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.mock-input .icon {
  width: 18px;
  height: 18px;
}

/* Mock: the Tasks page's cards */
.task-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.task {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 20px;
}

.task--overdue {
  border-color: var(--overdue-200);
  background: var(--grad-danger);
  box-shadow: 0 10px 24px -10px rgba(204, 59, 30, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.task__box {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border: 2px solid #5a4a3c;
  border-radius: 7px;
}

.task--overdue .task__box {
  border-color: var(--overdue-500);
}

.task__body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.task__title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.task__meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.task__meta .icon,
.task__meta .gem {
  width: 14px;
  height: 14px;
}

.task__meta .gem {
  width: 13px;
  height: 13px;
}

.task__due--overdue {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--overdue-500);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: 0 4px 10px -4px rgba(204, 59, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.task__due--soon { color: var(--amber-500); }
.task__due--later { color: var(--success-500); }

/* Mock: chat — no avatars, as in the app */
.mock-chat {
  display: grid;
  gap: 12px;
}

.bubble {
  max-width: 88%;
  padding: 11px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.45;
}

.bubble--user {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--grad-charcoal);
  color: var(--ink-dark);
  font-weight: 500;
  box-shadow: 0 10px 20px -12px rgba(30, 16, 6, 0.6);
}

.bubble--ai {
  padding-inline: 2px;
  font-weight: 400;
  color: var(--ink);
}

.proposal {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 20px;
}

.proposal__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.proposal__actions {
  display: flex;
  gap: 8px;
  margin-top: 2px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--cream-200);
  border-radius: 12px;
  background: var(--cream-50);
  box-shadow: var(--shadow-soft), var(--edge-light);
  font-size: 14px;
  font-weight: 700;
}

.mini-btn .icon {
  width: 14px;
  height: 14px;
}

.mini-btn--primary {
  border-color: transparent;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Mock: focus session */
.mock-session {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mock-session__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 156px;
  height: 156px;
}

.mock-session__ring::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(242, 101, 42, 0.2);
}

.mock-session__ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mock-session__clock {
  position: relative;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.mock-session__side {
  display: grid;
  gap: 10px;
}

.mock-session__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.mock-session__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.mock-session__btn .icon {
  width: 15px;
  height: 15px;
}

.mock-session__btn .icon--accent {
  color: var(--orange-400);
}

.mock-session__btn--done {
  border-color: transparent;
  background: var(--grad-success);
  color: var(--on-accent);
  box-shadow: 0 8px 16px -8px rgba(40, 153, 90, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mock-session__advice {
  padding: 12px 14px;
  border: 1px solid rgba(242, 101, 42, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 14px;
  line-height: 1.5;
}

.mock-session__advice strong {
  font-weight: 700;
  color: var(--orange-400);
}

@media (max-width: 560px) {
  .mock-session {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .mock-session__side {
    width: 100%;
  }
}

/* ---- Privacy: the Settings tray --------------------------------
 * A pale frosted tray with its rows in it, as the app groups Settings.
 * ----------------------------------------------------------------- */

.tray {
  display: grid;
  gap: clamp(20px, 3vw, 28px);
  padding: clamp(20px, 3.5vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 32px;
  background: rgba(253, 248, 239, 0.72);
  box-shadow: var(--shadow-soft);
}

.tray__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.tray__head > div {
  display: grid;
  gap: 12px;
}

.row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-muted);
}

.row strong {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.row__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.row__icon .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 760px) {
  .row-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Plans ------------------------------------------------------
 * Free vs Pro, drawn like the app's paywall: plain rows on the page,
 * and one charcoal column for Pro. The numbers mirror
 * nexdo-mobile/lib/plan.ts.
 * ----------------------------------------------------------------- */

.plans {
  width: 100%;
  max-width: 680px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 16px;
  line-height: 1.4;
}

.plans th,
.plans td {
  padding: 14px 12px;
  border-top: 1px solid var(--cream-300);
  text-align: center;
  font-weight: 500;
  color: var(--ink-muted);
}

.plans thead th {
  border-top: 0;
  font-size: 14px;
}

/* "3 min" stays on one line; only the feature names may wrap. */
.plans td {
  white-space: nowrap;
}

.plans th:first-child {
  padding-left: 0;
  text-align: left;
}

.plans tbody th {
  font-weight: 700;
  color: var(--ink);
}

.plans th:last-child,
.plans td:last-child {
  width: 112px;
  border-top-color: var(--hairline-dark);
  background: var(--charcoal-900);
  font-weight: 700;
  color: var(--ink-dark);
}

.plans thead th:last-child {
  border-radius: 18px 18px 0 0;
}

.plans tbody tr:last-child td:last-child {
  border-radius: 0 0 18px 18px;
}

.plans-note {
  max-width: 680px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
}

@media (max-width: 520px) {
  .plans {
    font-size: 15px;
  }

  .plans th,
  .plans td {
    padding: 12px 8px;
  }

  .plans th:last-child,
  .plans td:last-child {
    width: 88px;
  }
}

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

.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(32px, 6vw, 80px);
}

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

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border-radius: 20px;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--orange-200);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq-item summary:hover {
  color: var(--orange-700);
}

.faq-item summary .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  background: var(--cream-200);
  color: var(--ink-muted);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.faq-item[open] summary .icon {
  background: var(--orange-100);
  color: var(--orange-600);
  transform: rotate(180deg);
}

.faq-item__body {
  max-width: 680px;
  padding: 0 20px 20px;
  color: var(--ink-muted);
}

.faq-item__body > * + * {
  margin-top: 12px;
}

.faq-item__body ul,
.faq-item__body ol {
  padding-left: 1.2em;
}

.faq-item__body li + li {
  margin-top: 6px;
}

.faq-item__body li::marker {
  color: var(--orange-500);
}

.faq-item__body strong {
  font-weight: 600;
  color: var(--ink);
}

.faq-item__body a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--orange-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 860px) {
  .faq-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-split .section-head {
    position: static;
  }
}

/* ---- CTA panel --------------------------------------------------- */

.cta-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: clamp(44px, 7vw, 80px) clamp(20px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 36px;
  background: var(--glow-header), var(--grad-charcoal);
  color: var(--ink-dark);
  text-align: center;
  box-shadow: var(--shadow-float);
}

.cta-panel::before {
  content: "";
  position: absolute;
  bottom: -60%;
  left: 50%;
  width: 90%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(242, 101, 42, 0.32), rgba(242, 101, 42, 0));
  transform: translateX(-50%);
}

.cta-panel > * {
  position: relative;
}

.cta-panel .gem {
  width: 60px;
  height: 60px;
  --gem-left: #fff;
}

.cta-panel .lead {
  max-width: 540px;
  color: var(--ink-dark-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}

.cta-panel .soon-pill {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ---- Footer ------------------------------------------------------
 * Peach dunes along the foot of every page, with a charcoal slab over
 * them — the app's Next page and its floating tab bar.
 * ----------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: clamp(96px, 11vw, 150px);
  background: var(--dunes);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% - 1px);
  height: clamp(96px, 11vw, 150px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 130' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23FBDDBC' stop-opacity='.85'/%3E%3Cstop offset='1' stop-color='%23F9D0A6' stop-opacity='.9'/%3E%3C/linearGradient%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23F8CFA2' stop-opacity='.8'/%3E%3Cstop offset='1' stop-color='%23F4C08F'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M0 58 C 70 30, 150 40, 220 58 S 320 70, 360 36 L 360 130 L 0 130 Z' fill='url(%23b)'/%3E%3Cpath d='M0 96 C 60 70, 130 78, 200 94 S 310 104, 360 80 L 360 130 L 0 130 Z' fill='url(%23f)'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.site-footer > .container {
  padding-block: 52px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px 30px 0 0;
  background: var(--glow-header), var(--charcoal-900);
  color: var(--ink-dark);
  box-shadow: 0 -10px 24px -12px rgba(30, 16, 6, 0.35);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 14px;
}

.footer-brand p {
  max-width: 300px;
  font-size: 15px;
  color: var(--ink-dark-muted);
}

.footer-col h2 {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-400);
}

.footer-col ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-col a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-dark);
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
  text-decoration-color: var(--orange-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline-dark);
  font-size: 14px;
  color: var(--ink-dark-muted);
}

.footer-bottom a {
  color: var(--ink-dark);
  font-weight: 500;
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---- Inner pages: shared hero ----------------------------------- */

.page-hero {
  padding-block: clamp(40px, 6vw, 80px) clamp(24px, 3vw, 40px);
}

.page-hero__inner {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.page-hero__inner > * {
  max-width: 820px;
}

/* Legal pages: line the title up with the article column, not the TOC. */
@media (min-width: 961px) {
  .page-hero--legal .page-hero__inner {
    padding-left: calc(var(--gutter) + 240px + clamp(32px, 5vw, 80px));
  }
}

.page-title {
  font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 15px;
  color: var(--ink-muted);
}

.page-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.page-meta .icon {
  width: 15px;
  height: 15px;
  color: var(--orange-600);
}

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

.legal-grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
  padding-bottom: clamp(24px, 4vw, 48px);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow: auto;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(253, 248, 239, 0.72);
}

.toc__title {
  padding-left: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--orange-700);
}

.toc ol {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  list-style: none;
}

.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.toc a:hover {
  background: var(--cream-200);
  color: var(--ink);
}

.toc a.is-active {
  background: var(--grad-card);
  box-shadow: var(--shadow-soft), inset 3px 0 0 var(--orange-500);
  color: var(--ink);
  font-weight: 600;
}

@media (max-width: 960px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .toc {
    position: static;
    max-height: none;
    padding: 20px;
  }

  .toc__title {
    padding-left: 0;
  }

  .toc ol {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .toc a {
    padding-inline: 0;
  }

  .toc a:hover,
  .toc a.is-active {
    background: none;
    box-shadow: none;
  }
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.7;
}

.prose > section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.prose h2 {
  margin: 56px 0 16px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose > section:first-of-type h2 {
  margin-top: 40px;
}

.prose h3 {
  margin: 32px 0 10px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

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

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

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

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

.prose strong {
  font-weight: 600;
}

.prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--orange-500);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.prose a:hover {
  color: var(--orange-700);
}

.prose .path {
  font-weight: 600;
  white-space: nowrap;
}

.table-wrap {
  margin: 8px 0 24px;
  overflow-x: auto;
  border-radius: 20px;
}

.prose table {
  width: 100%;
  min-width: 580px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.prose th,
.prose td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--cream-200);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--cream-100);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.prose td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.prose tr:last-child td {
  border-bottom: 0;
}

/* The "short version" — styled as the app's highlighted AI note:
   a raised card with a thin orange left edge. */
.summary-card {
  margin: 8px 0 0;
  padding: clamp(20px, 3vw, 30px);
  border-left: 4px solid var(--orange-500);
  border-radius: 22px;
}

.summary-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.summary-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-card li {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  line-height: 1.55;
}

.summary-card li .icon {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--orange-500);
}

.note {
  display: flex;
  gap: 12px;
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.6;
}

.note .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--orange-600);
}

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

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-modal), var(--edge-light);
}

.contact-card__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(24px, 4vw, 44px);
  background: var(--glow-header), var(--grad-charcoal);
  color: var(--ink-dark);
}

.contact-card__side p {
  color: var(--ink-dark-muted);
}

.contact-email {
  font-size: clamp(1.375rem, 1rem + 1.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink-dark);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-email:hover {
  color: var(--orange-400);
}

.contact-card__side .btn {
  align-self: flex-start;
}

.contact-facts {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-dark);
  list-style: none;
  font-size: 15px;
  color: var(--ink-dark-muted);
}

.contact-facts li {
  display: flex;
  gap: 10px;
}

.contact-facts .icon {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: var(--orange-400);
}

.composer {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 44px);
}

.composer fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.field-label,
.composer legend {
  padding: 0;
  font-size: 15px;
  font-weight: 700;
}

.optional {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid var(--cream-200);
  border-radius: 16px;
  background: var(--cream-50);
  box-shadow: inset 0 1px 3px rgba(92, 58, 26, 0.07);
}

.text-input:focus {
  border-color: var(--orange-500);
  outline: 3px solid rgba(242, 101, 42, 0.25);
  outline-offset: 0;
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.topic {
  position: relative;
}

.topic input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.topic label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft), var(--edge-light);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.topic label:hover {
  background: var(--cream-50);
}

.topic__icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.topic__icon .icon {
  width: 16px;
  height: 16px;
}

.topic input:checked + label {
  border-color: var(--orange-500);
  background: var(--orange-50);
}

.topic input:checked + label .topic__icon {
  border-color: transparent;
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.topic input:focus-visible + label {
  outline: 3px solid rgba(242, 101, 42, 0.6);
  outline-offset: 2px;
}

.field {
  display: grid;
  gap: 8px;
}

.textarea {
  width: 100%;
  min-height: 170px;
  padding: 14px 16px;
  border: 1px solid var(--cream-200);
  border-radius: 16px;
  background: var(--cream-50);
  box-shadow: inset 0 1px 3px rgba(92, 58, 26, 0.07);
  line-height: 1.55;
  resize: vertical;
}

.textarea::placeholder {
  color: var(--ink-subtle);
}

.textarea:focus {
  border-color: var(--orange-500);
  outline: 3px solid rgba(242, 101, 42, 0.25);
  outline-offset: 0;
}

.composer-hint {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--cream-200);
  border-radius: 14px;
  background: var(--cream-100);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}

.composer-hint .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--orange-600);
}

.composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.composer-status {
  min-height: 1.5em;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
}

.composer-status[data-kind="success"] {
  color: #1a7a47;
}

.composer-status[data-kind="error"] {
  color: #a8301a;
}

.composer button:disabled {
  cursor: wait;
  opacity: 0.6;
}

@media (max-width: 900px) {
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 480px) {
  .topic-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 5vw, 80px);
}

.help-nav {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background: rgba(253, 248, 239, 0.72);
}

.help-nav ol {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  list-style: none;
}

.help-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.help-nav a:hover {
  background: var(--cream-200);
}

.help-nav .icon {
  width: 16px;
  height: 16px;
  color: var(--orange-600);
}

.faq-group {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.faq-group + .faq-group {
  margin-top: 56px;
}

.faq-group > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.faq-group > h2 .icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.faq-group > h2 .icon {
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  .help-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .help-nav {
    position: static;
    padding: 0;
    border: 0;
    background: none;
  }

  .help-nav ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .help-nav a {
    border: 1px solid var(--cream-200);
    border-radius: 999px;
    background: var(--grad-card);
    box-shadow: var(--shadow-soft), var(--edge-light);
  }
}

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

.link-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: 24px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-modal), var(--edge-light);
}

.link-card__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 14px;
}

.link-card__icon .icon {
  width: 20px;
  height: 20px;
}

.link-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.link-card h3 .icon {
  width: 18px;
  height: 18px;
  color: var(--ink-muted);
  transition: transform 0.15s ease;
}

.link-card:hover h3 .icon {
  transform: translateX(3px);
}

.link-card p {
  font-size: 15px;
  color: var(--ink-muted);
}

@media (max-width: 860px) {
  .link-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Delete account page ----------------------------------------- */

.narrow {
  max-width: 820px;
}

.steps-v,
.prose .steps-v {
  display: grid;
  gap: 12px;
  margin: 8px 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-v li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 16px 20px 16px 16px;
  border-radius: 20px;
  line-height: 1.5;
}

.steps-v li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--grad-charcoal);
  color: var(--ink-dark);
  font-weight: 700;
  box-shadow: 0 8px 16px -8px rgba(30, 16, 6, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.steps-v li:last-child {
  border-color: var(--overdue-200);
  background: var(--grad-danger);
}

.steps-v li:last-child::before {
  background: var(--overdue-500);
  color: var(--on-accent);
  box-shadow: 0 4px 10px -4px rgba(204, 59, 30, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}

.split-card {
  padding: 24px;
  border-radius: 22px;
}

.split-card h3 {
  margin-top: 0;
}

.split-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.split-card li {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.55;
}

.split-card li .icon {
  width: 16px;
  height: 16px;
  margin-top: 5px;
  color: var(--orange-500);
}

.split-card--quiet {
  background: var(--cream-100);
  box-shadow: none;
}

.split-card--quiet li .icon {
  color: var(--ink-muted);
}

.email-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 8px 0 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: var(--glow-header), var(--grad-charcoal);
  color: var(--ink-dark);
  box-shadow: var(--shadow-float);
}

.email-card p {
  margin: 0;
  color: var(--ink-dark-muted);
  font-size: 16px;
}

.email-card strong {
  display: block;
  color: var(--ink-dark);
  font-size: 1.125rem;
}

@media (max-width: 640px) {
  .split-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- 404 ----------------------------------------------------------- */

.not-found {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-block: clamp(64px, 12vw, 128px) 0;
  text-align: center;
}

.not-found .gem {
  width: 88px;
  height: 88px;
  transform: rotate(-12deg);
  filter: drop-shadow(0 12px 18px rgba(242, 101, 42, 0.35));
}

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

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .sticky-note {
    animation: none;
  }

  .btn,
  .link-card,
  .faq-item summary .icon {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .skip-link {
    display: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  body {
    background: #fff;
  }
}
