:root {
  --home-max: 1440px;
  --home-pad: 1.5rem;
  --home-radius: var(--radius-lg);
  --home-card-bg: var(--surface-elevated);
  --home-card-border: var(--border-accent);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1100px 750px at 20% 12%, var(--glow) 0%, transparent 65%),
    radial-gradient(900px 660px at 92% 18%, var(--glow) 0%, transparent 60%),
    radial-gradient(600px 500px at 50% 60%, var(--glow-strong) 0%, transparent 55%),
    var(--bg);
  --brand-width: var(--home-max);
  --brand-padding: 2.5rem var(--home-pad) 0;
  --brand-justify: space-between;
  --brand-gap: 0.75rem;
  --logo-bg: var(--surface-elevated);
  --logo-border: var(--border-accent);
  --logo-shadow: var(--shadow);
  --logo-height: 30px;
  overflow-x: hidden;
}

/* ════════════════════════════════════════════════════════════════════
   MOCKUP VISUAL SYSTEM
   The marketing homepage layers a vivid magenta accent system over the
   global theme. It FOLLOWS the light/dark toggle: surfaces, text, and the
   base background come from the global tokens (which adapt per theme), and
   only the accent/glow/font character is pinned here. home.css is only
   served on the homepage, so nothing here leaks to other pages.
   ════════════════════════════════════════════════════════════════════ */
body.page--home {
  /* Vivid magenta accent system — same hue in BOTH light and dark. Everything
     else (surfaces, text, borders, --bg) comes from the global theme tokens so
     the homepage follows the light/dark toggle. */
  --accent: #f8579f;
  --accent-strong: #f0247a;
  --accent-hover: #ff3d96;
  --accent-gradient: linear-gradient(135deg, #ff3d9a 0%, #ec1e63 100%);
  --border-accent: rgba(240, 46, 130, 0.34);
  --ghost-bg: rgba(240, 36, 122, 0.12);
  --chip-bg: rgba(240, 36, 122, 0.12);
  --glow: rgba(240, 36, 122, 0.18);
  --glow-strong: rgba(240, 36, 122, 0.42);
  /* Card surface tracks the active theme — re-resolved here (not frozen at the
     :root light value). */
  --home-card-bg: var(--surface-elevated);
  --home-card-border: var(--border-accent);
  /* Magenta corner-glow wash layered over the theme's own background. */
  background:
    radial-gradient(900px 620px at 12% 2%, rgba(240, 36, 122, 0.18) 0%, transparent 58%),
    radial-gradient(880px 640px at 92% 4%, rgba(150, 30, 150, 0.16) 0%, transparent 58%),
    radial-gradient(760px 760px at 50% 108%, rgba(240, 36, 122, 0.10) 0%, transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

/* Dark mode deepens the page to the inky magenta-black of the comp. Mirrors the
   global theme matrix: explicit [data-theme="dark"] OR system-dark w/o opt-out. */
[data-theme="dark"] body.page--home {
  --bg: #07050d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.page--home {
    --bg: #07050d;
  }
}

/* Geometric display type for headings (Sora is already loaded globally). */
.page--home h1,
.page--home h2,
.page--home h3,
.home-nav__link,
.home-trust__num {
  font-family: 'Sora', 'Manrope', sans-serif;
}

/* Button polish to match the mockup's glowing pink pills. */
.page--home .btn {
  border-radius: 12px;
}

.page--home .btn--primary {
  box-shadow: 0 10px 30px var(--glow-strong);
}

.page--home .btn--primary:hover {
  box-shadow: 0 16px 42px var(--glow-strong);
}

.page--home .btn--ghost {
  background: var(--surface-elevated);
  border-color: var(--border-accent);
}

.page--home .btn--ghost:hover {
  background: var(--surface);
}

.home-wrapper {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 2rem var(--home-pad) 7rem;
  display: flex;
  flex-direction: column;
  gap: 6.5rem;
}

.home-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.home-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.home-eyebrow {
  margin: 0;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-on-surface);
  background: var(--surface-dim);
  border: 1px solid var(--border-accent);
  border-radius: 9999px;
  padding: 0.45rem 0.85rem;
  box-shadow: var(--shadow);
}

/* Agencies section: render "For agencies" as a larger header, not the small pill button. */
.home-agencies__copy .home-eyebrow {
  width: auto;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  color: var(--accent-strong);
  margin-bottom: 0.65rem;
}

.home-hero h1 {
  margin: 0;
  font-size: clamp(2.6rem, 4.4vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.home-lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 44rem;
  font-size: 1.05rem;
}

.home-hero__cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  background-clip: padding-box;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  will-change: transform;
}

.btn--primary {
  background: var(--accent-gradient);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 14px var(--glow-strong);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--glow-strong);
}

.btn--ghost {
  background: var(--surface-dim);
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  background: var(--surface-elevated);
}

.home-hero__visual {
  display: flex;
  justify-content: flex-end;
}

/* ── Panels ──────────────────────────────────────────── */
.home-panel {
  background: var(--surface-dim);
  border: 1px solid var(--border);
  border-radius: var(--home-radius);
  padding: 2.6rem 2.35rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.home-panel--gradient {
  background:
    radial-gradient(680px 420px at 0% 0%, var(--glow) 0%, transparent 65%),
    var(--surface-dim);
  border-color: var(--border-accent);
}

.home-panel__content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.home-panel__content h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.45vw, 2.35rem);
  letter-spacing: -0.02em;
}

.home-panel__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 46rem;
}

/* ── Steps ───────────────────────────────────────────── */
.home-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.home-steps__item {
  background: var(--home-card-bg);
  border: 1px solid var(--home-card-border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.15rem 1.2rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}

.home-steps__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--ghost-bg);
  border: 1px solid var(--border-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.home-steps__icon::before {
  font-size: 1.3rem;
}

.home-steps__content h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.home-steps__content p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ── Section heads ───────────────────────────────────── */
.home-section-head {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 50rem;
  margin-bottom: 1.35rem;
}

.home-section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.35vw, 2.35rem);
  letter-spacing: -0.02em;
}

.home-section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Features grid ───────────────────────────────────── */
.home-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.home-feature {
  border-radius: var(--radius-md);
  background: var(--home-card-bg);
  border: 1px solid var(--border);
  padding: 1.4rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.home-feature__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--ghost-bg);
  border: 1px solid var(--border);
}

.home-feature__icon::before {
  font-size: 1.5rem;
}

.home-feature h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.home-feature p {
  margin: 0;
  color: var(--text-mid);
  line-height: 1.55;
}

/* ── FAQ ─────────────────────────────────────────────── */
.home-panel--faq {
  background: var(--surface-dim);
}

.home-faq {
  display: grid;
  gap: 0.85rem;
}

.home-faq details {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.95rem 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
  .home-feature:hover,
  .home-faq details:hover {
    transform: translateY(-2px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow);
  }
}

.home-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 850;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.home-faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
  flex: 0 0 auto;
}

.home-faq details[open] summary::after {
  transform: rotate(225deg);
}

.home-faq p {
  margin: 0.75rem 0 0;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 52rem;
}

/* ── CTA panel ───────────────────────────────────────── */
.home-panel--cta {
  text-align: center;
  background:
    radial-gradient(760px 460px at 50% 0%, var(--glow) 0%, transparent 65%),
    var(--surface-dim);
  border-color: var(--border-accent);
}

.home-cta {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  align-items: center;
}

.home-cta h2 {
  margin: 0;
  font-size: clamp(2.05rem, 3vw, 2.65rem);
  letter-spacing: -0.02em;
}

.home-cta p {
  margin: 0;
  max-width: 44rem;
  line-height: 1.6;
  color: var(--muted);
}

/* ── Animations ──────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js-ready .home-hero__copy > * {
    animation: home-rise 620ms ease both;
  }
  .js-ready .home-hero__copy > *:nth-child(1) { animation-delay: 40ms; }
  .js-ready .home-hero__copy > *:nth-child(2) { animation-delay: 90ms; }
  .js-ready .home-hero__copy > *:nth-child(3) { animation-delay: 140ms; }
  .js-ready .home-hero__copy > *:nth-child(4) { animation-delay: 190ms; }
  .js-ready .home-hero__copy > *:nth-child(5) { animation-delay: 240ms; }
  .js-ready .home-hero__copy > *:nth-child(6) { animation-delay: 290ms; }
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Single-page scroll behavior ─────────────────────── *
 * home.css is only served on the homepage (/css/{{PAGE}}.css), so these
 * page-level rules are safely scoped here and do not leak to other pages.
 * overflow-x: clip prevents horizontal overflow WITHOUT establishing a
 * scroll container (which `overflow-x: hidden` does, breaking sticky). */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  overflow-x: clip;
}

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

/* ── Sticky section nav (scroll-spy) ─────────────────── */
.home-nav {
  position: sticky;
  top: 0.6rem;
  z-index: 40;
  align-self: center;
  width: 100%;
  max-width: 720px;
  margin-bottom: -2rem; /* pull the hero up under the floating bar */
}

.home-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  background: var(--surface-dim);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.home-nav.is-stuck .home-nav__inner {
  background: var(--surface-elevated);
  border-color: var(--border-accent);
  box-shadow: 0 14px 40px var(--glow), 0 4px 14px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.home-nav__links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 9999px;
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease;
}

.home-nav__link:hover {
  color: var(--text-on-surface);
  background: var(--ghost-bg);
}

.home-nav__link.is-active {
  color: var(--text-on-surface);
  background: var(--ghost-bg);
  box-shadow: inset 0 0 0 1px var(--border-accent);
}

/* Hamburger — hidden on desktop, shown below the nav breakpoint. */
.home-nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-on-surface);
  cursor: pointer;
  flex: 0 0 auto;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.home-nav__burger:hover {
  background: var(--ghost-bg);
  border-color: var(--border-accent);
  color: var(--accent-strong);
}

.home-nav__burger .material-symbols-rounded::before {
  font-size: 1.4rem;
}

/* ── Hero additions ──────────────────────────────────── */
.home-hero__accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-hero__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.home-hero__checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 750;
  color: var(--text-on-surface);
}

.home-hero__checks .material-symbols-rounded {
  color: var(--accent-strong);
}

.home-hero__checks .material-symbols-rounded::before {
  font-size: 1.2rem;
}

.home-hero__fineprint {
  margin: 0;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 760px) {
  /* Mobile header: logo sits left, the auth controls (#portal-nav) wrap to
     their own row below, which frees the top-right corner for the burger. */
  body {
    --brand-padding: 1.4rem 1.15rem 0;
    --brand-justify: flex-start;
  }

  .portal-brand {
    flex-wrap: wrap;
  }

  .portal-logo {
    width: auto;
    justify-content: flex-start;
  }

  .portal-nav {
    flex-basis: 100%;
    justify-content: center;
    margin-left: 0;
  }

  /* Section-nav burger floats in the top-right, beside the logo. */
  .home-nav {
    position: fixed;
    top: 1.2rem;
    right: 1.05rem;
    left: auto;
    width: auto;
    max-width: none;
    margin: 0;
    align-self: auto;
    z-index: 60;
  }

  .home-nav__inner,
  .home-nav.is-stuck .home-nav__inner {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .home-nav__burger {
    display: inline-flex;
    background: var(--surface-elevated);
    box-shadow: var(--shadow);
  }

  /* Section links open as a dropdown anchored to the burger's right edge. */
  .home-nav__links {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    left: auto;
    min-width: min(248px, 80vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    padding: 0.5rem;
    border-radius: 16px;
    background: var(--surface-elevated);
    border: 1px solid var(--border-accent);
    box-shadow: 0 24px 60px var(--glow), 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .home-nav.is-open .home-nav__links {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .home-nav__link {
    width: 100%;
    padding: 0.7rem 0.85rem;
  }
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .home-hero__visual {
    justify-content: flex-start;
  }

  .home-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 520px) {
  .home-wrapper {
    padding: 2.75rem 1.15rem 4rem;
  }

  .btn {
    width: 100%;
  }

  .home-panel {
    padding: 2.1rem 1.35rem;
  }
}

/* ════════════════════════════════════════════════════════════════════
   FULL-PAGE REDESIGN — sections added to match the marketing mockup.
   Honest content; placeholder marketing data is flagged in home.html
   and tracked in tasks/LAUNCH_2_BEFORE_LAUNCH.md.
   ════════════════════════════════════════════════════════════════════ */

.home-section-head--center {
  text-align: center;
  align-items: center;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

/* ── Trust bar ───────────────────────────────────────── */
.home-trust {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.4rem 2.35rem;
  border-radius: var(--home-radius);
  background:
    radial-gradient(720px 420px at 50% 0%, var(--glow) 0%, transparent 70%),
    var(--surface-dim);
  border: 1px solid var(--border-accent);
  box-shadow: var(--shadow);
}

.home-trust__title {
  margin: 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 1.4fr;
  gap: 1.1rem;
  align-items: stretch;
}

.home-trust__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
}

.home-trust__icon {
  color: var(--accent-strong);
  flex: 0 0 auto;
}

.home-trust__icon::before {
  font-size: 2.6rem;
}

.home-trust__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.home-trust__num {
  font-size: 1.85rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text-on-surface);
}

.home-trust__label {
  color: var(--text-mid);
  font-weight: 700;
  font-size: 0.92rem;
}

.home-trust__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.3rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--radius-md);
  background: var(--ghost-bg);
  border: 1px solid var(--border-accent);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.home-trust__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px var(--glow);
}

.home-trust__cta-title {
  font-weight: 850;
  color: var(--text-on-surface);
}

.home-trust__cta-copy {
  color: var(--text-mid);
  font-size: 0.92rem;
  line-height: 1.4;
}

.home-trust__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--accent-strong);
  font-weight: 800;
  font-size: 0.92rem;
}

.home-trust__cta-link .material-symbols-rounded::before {
  font-size: 1.1rem;
}

/* ── Six-up feature grid ─────────────────────────────── */
.home-features--six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature {
  align-items: flex-start;
  text-align: left;
}

.home-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
}

/* ── Agencies ────────────────────────────────────────── */
.home-panel--agencies {
  background:
    radial-gradient(680px 460px at 100% 0%, var(--glow) 0%, transparent 65%),
    var(--surface-dim);
  border-color: var(--border-accent);
}

.home-agencies {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.75rem;
  align-items: center;
}

.home-agencies__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.home-agencies__copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.45vw, 2.35rem);
  letter-spacing: -0.02em;
}

.home-agencies__copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-agencies__list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-agencies__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  color: var(--text-on-surface);
}

.home-agencies__list .material-symbols-rounded {
  color: var(--accent-strong);
  flex: 0 0 auto;
}

.home-agencies__copy .btn {
  width: fit-content;
  margin-top: 0.35rem;
}

/* ── Pricing chooser ─────────────────────────────────── */
.home-pricing {
  display: flex;
  flex-direction: column;
}

.home-bp-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.home-bp-toggle {
  display: inline-flex;
  gap: 0.25rem;
  margin: 1.25rem auto 0;
  padding: 0.3rem;
  border-radius: 9999px;
  background: var(--surface-dim);
  border: 1px solid var(--border);
}

.home-bp-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  cursor: pointer;
  font-weight: 750;
  color: var(--text-mid);
  transition: background 160ms ease, color 160ms ease;
}

.home-save-pill {
  font-size: var(--text-xs);
  color: var(--accent-strong);
  font-weight: 800;
}

#home-bp-monthly:checked ~ .home-section-head .home-bp-opt[for="home-bp-monthly"],
#home-bp-annual:checked ~ .home-section-head .home-bp-opt[for="home-bp-annual"] {
  background: var(--accent-gradient);
  color: #fff;
}

#home-bp-monthly:checked ~ .home-section-head .home-bp-opt[for="home-bp-monthly"] .home-save-pill,
#home-bp-annual:checked ~ .home-section-head .home-bp-opt[for="home-bp-annual"] .home-save-pill {
  color: #fff;
}

.home-bp-radio:focus-visible ~ .home-section-head .home-bp-toggle {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

/* Monthly shown by default; annual swaps in when its radio is checked. */
.home-pricing .price-annual { display: none; }

.home-pricing__foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.home-pricing__link {
  color: var(--text-mid);
  font-weight: 700;
  text-decoration: none;
}

.home-pricing__link:hover {
  color: var(--accent-strong);
}

/* ── Privacy ─────────────────────────────────────────── */
.home-panel--privacy {
  background:
    radial-gradient(680px 460px at 0% 50%, var(--glow) 0%, transparent 65%),
    var(--surface-dim);
  border-color: var(--border-accent);
}

.home-privacy {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: center;
}

.home-privacy__visual {
  display: flex;
  justify-content: center;
}

.home-privacy__shield {
  font-size: 8rem;
  color: var(--accent-strong);
  filter: drop-shadow(0 18px 40px var(--glow-strong));
}

.home-privacy__shield::before {
  font-size: 8rem;
}

.home-privacy__copy {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.home-privacy__copy h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2.6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.home-privacy__copy > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.home-privacy__list {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-privacy__list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 650;
  color: var(--text-on-surface);
}

.home-privacy__list .material-symbols-rounded {
  color: var(--accent-strong);
}

.home-privacy__copy .btn {
  width: fit-content;
  margin-top: 0.35rem;
}

/* ── Integrations strip ──────────────────────────────── */
.home-integrations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.home-integrations__title {
  margin: 0;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: var(--accent-strong);
}

.home-integrations__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-integrations__row li {
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  opacity: 0.85;
  transition: color 160ms ease, opacity 160ms ease;
}

.home-integrations__row li:hover {
  color: var(--text-on-surface);
  opacity: 1;
}

/* ── Glass comparison modal ──────────────────────────── */
.home-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.home-modal.hidden {
  display: none;
}

.home-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 6, 14, 0.55);
  backdrop-filter: blur(8px);
  animation: home-modal-fade 240ms ease both;
}

.home-modal__dialog {
  position: relative;
  width: min(960px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface-elevated) 88%, transparent);
  border: 1px solid var(--border-accent);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4), 0 0 60px var(--glow);
  backdrop-filter: blur(22px) saturate(1.2);
  animation: home-modal-pop 280ms var(--ease-out, cubic-bezier(0.22, 1, 0.36, 1)) both;
  overflow: hidden;
}

.home-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.home-modal__head h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.home-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-dim);
  color: var(--text);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

.home-modal__close:hover {
  background: var(--ghost-bg);
  border-color: var(--border-accent);
}

.home-modal__body {
  padding: 0.5rem 1.5rem 1.5rem;
  overflow: auto;
}

@keyframes home-modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes home-modal-pop {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .home-modal__backdrop,
  .home-modal__dialog { animation: none; }
}

/* ── Comparison table ────────────────────────────────── */
.home-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.home-compare th,
.home-compare td {
  padding: 0.6rem 0.7rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.home-compare thead th {
  position: sticky;
  top: 0;
  background: var(--surface-elevated);
  z-index: 1;
  font-weight: 800;
  color: var(--text-on-surface);
}

.home-compare th.feat {
  color: var(--accent-strong);
}

.home-compare td:first-child,
.home-compare th:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 650;
}

.home-compare tr.group td {
  background: var(--surface-dim);
  text-align: left;
  font-weight: 850;
  color: var(--accent-strong);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.home-compare .y { color: var(--accent-strong); font-weight: 850; }
.home-compare .n { color: var(--text-faint); }

.home-compare__note {
  margin: 1rem 0 0;
  color: var(--text-mid);
  font-size: 0.85rem;
  line-height: 1.5;
}

.home-compare__note a { color: var(--accent-strong); }

/* ── Responsive (redesign sections) ──────────────────── */
@media (max-width: 980px) {
  .home-trust__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-trust__cta {
    grid-column: 1 / -1;
  }

  .home-features--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-agencies,
  .home-privacy {
    grid-template-columns: 1fr;
  }

  .home-privacy__visual {
    order: -1;
  }
}

@media (max-width: 620px) {
  .home-trust__grid {
    grid-template-columns: 1fr;
  }

  .home-features--six {
    grid-template-columns: 1fr;
  }

  /* Compact feature + step cards on phones: title beside the icon, no copy. */
  .home-feature {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.15rem;
  }

  .home-feature h3 {
    margin: 0;
  }

  .home-feature p {
    display: none;
  }

  .home-feature__icon {
    flex: 0 0 auto;
  }

  .home-steps__item {
    align-items: center;
  }

  .home-steps__content h3 {
    margin: 0;
  }

  .home-steps__content p {
    display: none;
  }

  .home-modal {
    padding: 0;
    align-items: flex-end;
  }

  .home-modal__dialog {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
}

/* ════════════════════════════════════════════════════════════════════
   SLICED COMP INSETS — raster images cut from the approved design comp,
   placed in the hero and agency slots. Displayed at <= native width so
   they stay crisp. (Placeholder stock imagery + sample data — see the
   launch checklist before going public.)
   ════════════════════════════════════════════════════════════════════ */
.home-inset {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.5), 0 0 60px var(--glow);
}


/* Agency figure now just frames the sliced image + the honesty label. */
.home-dash {
  position: relative;
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.home-dash__badge {
  display: inline-block;
  margin: 0 0 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  background: var(--chip-bg);
  border: 1px solid var(--border-accent);
  color: var(--text-mid);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Logo: show only the wordmark (logo.svg). The favicon hand-mark is
   un-hidden by `.portal-logo img { display:block }` (higher specificity than
   the base `.portal-logo__mark { display:none }`); this beats it on home. ── */
.page--home .portal-logo__mark {
  display: none;
}

/* ── Privacy shield: sliced 3D illustration from the comp ───────────── */
.home-privacy__shield {
  width: min(260px, 78%);
  height: auto;
  filter: drop-shadow(0 22px 46px var(--glow-strong));
}

/* ── Integrations: real brand marks, grayscale, brighten on hover ──── */
.home-integrations__row li {
  display: inline-flex;
  align-items: center;
}

.home-integrations__row img {
  height: 28px;
  width: auto;
  opacity: 0.8;
  transition: opacity 160ms ease, transform 160ms ease;
}

.home-integrations__row li:hover img {
  opacity: 1;
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════════════
   DETAILED PRICING PLAN CARDS (full feature lists, on-page)
   ════════════════════════════════════════════════════════════════════ */
.home-plans {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-top: 2.25rem;
}

.home-plan {
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: var(--home-card-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.home-plan--featured {
  position: relative;
  border: 2px solid var(--accent-strong);
  box-shadow: 0 16px 44px var(--glow-strong);
}

.home-plan__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 9999px;
  white-space: nowrap;
}

.home-plan h3 {
  margin: 0 0 2px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.home-plan__tag {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
  min-height: 40px;
  margin-bottom: 10px;
}

.home-plan__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 2.4rem;
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--text-on-surface);
}

.home-plan__price .per {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-faint);
}

.home-plan__peruser {
  margin-top: 3px;
  min-height: 18px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.home-plan__cta {
  width: 100%;
  min-height: 44px;
  margin: 16px 0 14px;
  font-size: 0.92rem;
  white-space: nowrap;
}

.home-plan__spec {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  font-size: 0.85rem;
}

.home-plan__spec li {
  padding: 6px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-plan__extras {
  list-style: none;
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 2px solid var(--border);
  font-size: 0.85rem;
}

.home-plan__extras li {
  position: relative;
  padding: 5px 0 5px 22px;
  color: var(--text);
  line-height: 1.4;
}

.home-plan__extras li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 800;
}

.home-plan__extras li.lead {
  padding-left: 0;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 700;
}

.home-plan__extras li.lead::before {
  content: "";
}

.home-plan__extras li strong {
  color: var(--text-on-surface);
}

/* Annual/monthly price swap for the detailed cards */
#home-bp-annual:checked ~ .home-plans .price-monthly { display: none; }
#home-bp-annual:checked ~ .home-plans .price-annual { display: inline; }

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

@media (max-width: 560px) {
  .home-plans { grid-template-columns: 1fr; }
}

/* ── Integration name labels beside the brand marks ──────────────── */
.home-integrations__row {
  gap: 1.1rem 1.6rem;
}

.home-integrations__row li {
  gap: 0.55rem;
}

.home-integrations__name {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--text-faint);
  transition: color 160ms ease;
}

.home-integrations__row li:hover .home-integrations__name {
  color: var(--text-on-surface);
}

/* Sliced comp imagery keeps a dark backing; round it so it sits cleanly on
   the light theme too (until light-mode art exists). */
.home-privacy__shield {
  border-radius: 14px;
}


/* The global header — and its account dropdown — must stack above the
   floating section nav (z-index: 40), or the dropdown renders behind it. */
.page--home .portal-brand {
  position: relative;
  z-index: 50;
}

/* On the marketing homepage, keep the account menu as a dropdown anchored to
   the avatar on small screens too — overriding the global mobile bottom-sheet
   (.avatar-dropdown becomes position:fixed bottom sheet under 640px). */
@media (max-width: 640px) {
  .page--home .avatar-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    bottom: auto;
    left: auto;
    margin-top: 0;
    max-width: none;
    min-width: max(200px, 100%);
    padding: 0.4rem;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    z-index: 50;
  }

  .page--home .avatar-dropdown::before {
    display: none;
  }
}
