:root {
  --paper: oklch(0.97 0.01 78);
  --paper-2: oklch(0.955 0.012 78);
  --surface: oklch(0.985 0.006 78);
  --ink: oklch(0.24 0.01 80);
  --ink-2: oklch(0.42 0.015 82);
  --ink-3: oklch(0.52 0.014 82);
  --hair: oklch(0.84 0.01 80 / 0.6);
  --line: oklch(0.7 0.02 60 / 0.35);
  --accent: var(--nds-color-accent, oklch(0.64 0.13 48));
  --accent-soft: var(--nds-color-accent-soft, oklch(0.9 0.04 48));
}

* { box-sizing: border-box; margin: 0; padding: 0; }
.hidden { display: none !important; }
html { scroll-behavior: smooth; }
html,
body {
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
html.nds-v3 body {
  font-family: "Inter Tight", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(40% 26% at 85% 8%, oklch(0.9 0.04 50 / 0.45), transparent),
    radial-gradient(30% 25% at 10% 30%, oklch(0.95 0.02 95 / 0.4), transparent),
    var(--paper);
  line-height: 1.45;
  overflow-x: hidden;
}
@supports (overflow: clip) {
  html.nds-v3 body {
    overflow-x: clip;
  }
}
a { color: inherit; text-decoration: none; }
.section-inner { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 120;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid transparent;
  transition: top .15s ease;
}
.skip-link:focus-visible {
  top: 12px;
}
.topnav a:focus-visible,
.topnav button:focus-visible,
.navlinks-mobile a:focus-visible,
.navlinks-mobile button:focus-visible,
.landing-feedback-fab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.mono {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.chart-title {
  margin: 2px 0 10px;
  text-align: center;
  color: var(--ink-2);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(11px, 1.2vw, 12px);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Letter reveal parity with index page */
html.js-letter-reveal [data-letter-reveal].letter-reveal { position: relative; }
html.js-letter-reveal [data-letter-reveal].letter-reveal .letter-reveal-original { opacity: 0; }
html.js-letter-reveal [data-letter-reveal].letter-reveal .letter-reveal-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  white-space: normal;
}
html.js-letter-reveal [data-letter-reveal].letter-reveal .letter-reveal-word { white-space: nowrap; }
html.js-letter-reveal [data-letter-reveal].letter-reveal .letter-reveal-char {
  display: inline-block;
  opacity: 0;
  animation: letter-reveal-in .35s ease forwards;
}
@keyframes letter-reveal-in {
  from { opacity: 0; transform: translateY(.25em); }
  to { opacity: 1; transform: translateY(0); }
}

/* Shared landing-v3 navigation */
.topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--hair);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  flex-shrink: 0;
}
.logo-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: transparent;
  filter: none;
  flex-shrink: 0;
}
.logo-mark img {
  width: 26px;
  height: 26px;
  display: block;
}
.navlinks {
  display: none;
  gap: clamp(14px, 2vw, 22px);
  color: var(--ink-2);
  font-size: 14px;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: visible;
  margin-left: 24px;
}
.navlinks > a,
.navlinks > .nav-dropdown {
  flex: 0 0 auto;
}
.navlinks a { white-space: nowrap; }
.navlinks a:hover { color: var(--ink); }
.nav-primary-item--collapsed { display: none !important; }
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 270px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: var(--surface);
  box-shadow: 0 16px 40px oklch(0.2 0.01 80 / 0.12);
  display: none;
  z-index: 45;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 2px;
}
.nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 14px;
}
.nav-dropdown-menu a:hover {
  background: var(--paper-2);
  color: var(--ink);
}
.topnav-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.nav-cta {
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  font-size: 13px;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}
.nav-cta:hover { border-color: var(--line); }
.topnav-logout-form {
  display: inline-flex;
  margin: 0;
  align-items: center;
}
.nav-logout {
  font: inherit;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13px;
  background: transparent;
  color: oklch(0.48 0.17 25);
  cursor: pointer;
  white-space: nowrap;
}
.nav-logout:hover {
  background: color-mix(in oklab, oklch(0.5 0.15 25) 10%, transparent);
  border-color: color-mix(in oklab, oklch(0.5 0.15 25) 18%, transparent);
}
.nav-cta.nav-cta--danger {
  border-color: oklch(0.78 0.05 25);
  color: oklch(0.48 0.17 25);
  background: color-mix(in oklab, oklch(0.55 0.14 25) 6%, var(--surface));
}
.nav-cta.nav-cta--danger:hover {
  border-color: oklch(0.72 0.08 25);
}
.menu-toggle {
  width: 44px;
  height: 44px;
  color: var(--ink);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  transition: background .2s;
  display: none;
  border: 0;
  background: transparent;
}
.menu-toggle:hover { background: var(--paper-2); }
.menu-toggle.is-forced-visible { display: inline-flex; }
.navlinks-mobile {
  background: var(--paper);
  border-bottom: 1px solid var(--hair);
  color: var(--ink-2);
  z-index: 39;
  flex-direction: column;
  gap: 18px;
  padding: 20px 28px 24px;
  font-size: 16px;
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  width: 100vw;
  max-width: 100%;
  max-height: calc(100dvh - 66px);
  overflow-y: auto;
}
.navlinks-mobile.is-open { display: flex; }
.navlinks-mobile a:hover { color: var(--ink); }
.navlinks-mobile-group {
  display: grid;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--hair);
}
.navlinks-mobile-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.navlinks-mobile-group .nav-cta {
  width: 100%;
  justify-content: center;
}

/* DS baseline: first-screen hero fills viewport */
html.nds-v3 .hero {
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: center;
}

/* Shared landing-v3 content patterns */
.hero {
  padding: clamp(50px, 8vw, 84px) 0 clamp(42px, 6vw, 58px);
  border-bottom: 1px solid var(--hair);
}

.hero-copy {
  text-align: center;
  max-width: 1020px;
  margin: 0 auto;
}

.hero-copy,
.section-head,
.step,
.faq-a {
  overflow-wrap: anywhere;
  word-break: normal;
}

/* Shared safety wrappers for compact/text-dense rows */
.landing-compact-row,
.nds-panel--landing {
  overflow-wrap: anywhere;
  word-break: normal;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
}

.hero-copy .eyebrow {
  margin: 0 auto;
}

.eyebrow .mono {
  display: block;
  text-align: center;
}

.dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 0;
}

.display-h {
  margin-top: 14px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(34px, 8.2vw, 122px);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.04em;
  white-space: normal;
  text-wrap: balance;
}

.hero-sub {
  margin: 16px auto 0;
  max-width: 700px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(19px, 2.4vw, 34px);
  line-height: 1.14;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--ink-2);
}

.hero-ctas {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-lede {
  margin: 14px auto 0;
  max-width: 680px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.6;
}

.section {
  padding: clamp(54px, 7vw, 76px) 0;
  border-bottom: 1px solid var(--hair);
  contain: layout style paint;
}

.section-head h2 {
  margin-top: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 4.2vw, 50px);
  line-height: 1.05;
  font-weight: 400;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.section-head .lead {
  margin-top: 12px;
  max-width: 68ch;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.58;
}

.how-rail {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.landing-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-pill {
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: color-mix(in oklab, var(--surface) 88%, white);
  padding: 6px 10px;
  font-size: 12px;
  color: var(--ink-2);
}

.landing-card-grid {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.landing-profile-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.step {
  padding: 16px;
}

.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
}

.step h3 {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.15;
}

.step p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.56;
}

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

.faq-q {
  list-style: none;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 15px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

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

.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.faq-a {
  border-top: 1px solid var(--hair);
  padding: 12px 15px 14px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.56;
  display: none;
}

.faq-item[open] .faq-a {
  display: block;
}

.cta-block {
  padding: clamp(56px, 7vw, 84px) 16px;
  text-align: center;
  border-bottom: 1px solid var(--hair);
}

.cta-block h2 {
  margin: 0 auto;
  max-width: 22ch;
  font-family: "Unbounded", sans-serif;
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.cta-block p {
  margin: 12px auto 0;
  max-width: 650px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.cta-block .hero-ctas {
  margin-top: 24px;
}

/* Shared landing-v3 footer */
footer {
  border-top: 1px solid var(--hair);
  color: var(--ink-3);
  padding: 40px 60px 32px;
  font-size: 13px;
}
footer .section-inner {
  max-width: 1280px;
  width: 100%;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-3);
  margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 400;
}
.footer-col a {
  color: var(--ink-2);
  margin-bottom: 10px;
  font-size: 14px;
  transition: color .2s;
  display: block;
}
.footer-col .logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-logo { margin-bottom: 16px; }
.footer-brand-description {
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-col a:hover { color: var(--ink); }
.footer-metrics {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-metric-pill {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.15;
}
.footer-metric-value {
  min-width: 0;
  text-align: left;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.footer-bottom {
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
}

/* Shared feedback FAB */
.landing-feedback-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 52px;
  height: 52px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px oklch(0.2 0.01 80 / 0.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.landing-feedback-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px oklch(0.2 0.01 80 / 0.3);
}

@media (min-width: 901px) {
  .navlinks { display: flex; }
}
@media (max-width: 900px) {
  .topnav {
    height: 66px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .topnav .menu-toggle {
    display: inline-flex;
    visibility: hidden;
    pointer-events: none;
  }
  .topnav .menu-toggle.is-forced-visible {
    visibility: visible;
    pointer-events: auto;
  }
  .topnav:not(.is-overflow-ready) .navlinks {
    opacity: 0;
  }
  .logo span:last-child { font-size: 14px; }
  .navlinks { display: flex; }
  .topnav-actions .nav-cta { display: inline-flex; }
  html.nds-v3 .hero { min-height: calc(100dvh - 66px); }
}
@media (max-width: 740px) {
  .topnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .navlinks { display: none !important; }
  .topnav-actions .nav-cta { display: none; }
  .topnav-actions .topnav-logout-form {
    display: none;
  }
  .navlinks-mobile-logout {
    width: 100%;
  }
  .menu-toggle {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}
@media (max-width: 740px) {
  .hero {
    padding: clamp(28px, 9vw, 44px) 0 clamp(30px, 8vw, 40px);
  }
  .display-h {
    font-size: clamp(26px, 12vw, 48px);
    line-height: 0.98;
  }
  .hero-sub {
    font-size: clamp(15px, 6.2vw, 28px);
    line-height: 1.2;
  }
  .hero-lede {
    margin-top: 12px;
    font-size: 16px;
    line-height: 1.55;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  footer { padding: 32px 24px; }
  .landing-feedback-fab {
    right: 14px;
    bottom: 14px;
    width: 48px;
    height: 48px;
  }

  .landing-pill {
    padding: 5px 9px;
    font-size: 11px;
  }
}

@media (min-width: 860px) {
  .how-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .landing-profile-grid {
    grid-template-columns: 1fr;
  }
}

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

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