/* ===========================================================================
   FDS AI | Financial Decision System — single-viewport video landing
   =========================================================================== */

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  /* Scrollable now (Website Architecture pass, 2026-09-07) -- the hero
     below still owns its own fixed 100vh screen; body itself just flows,
     so real content sections can follow it on inner/marketing pages
     without fighting a globally hidden overflow. */
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Visual Continuity fix, 2026-09-07: text now sits directly over the
     persistent video/poster scene (no more opaque section backgrounds),
     and the scene's brighter/busier patches (e.g. the hero's upper sky)
     can otherwise wash out muted gray copy wherever it lands on scroll.
     text-shadow inherits to every descendant for free -- one rule instead
     of patching every text selector -- and stays invisible on the solid
     white/dark pill chrome (nav, CTAs, chips) since those already have
     their own opaque backgrounds. */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

img {
  max-width: 100%;
  display: block;
}

/* ---------- background video --------------------------------------------- */

/* ===========================================================================
   Persistent cinematic background (Visual Continuity fix, 2026-09-07)
   One fixed media layer for the whole page -- hero AND every scrolled
   section sit on top of the SAME backdrop, never a second copy per
   section. A real captured video frame is the CSS background-image so
   paint is instant and never depends on the <video> loading/playing --
   .bg-video is a progressive enhancement on top of it, and reduced-motion
   / a failed video load both just leave the still frame visible. Nothing
   here is ever plain black by accident.
   =========================================================================== */

.bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: #000 url("/assets/bg-poster.jpg") center / cover no-repeat;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .bg-video {
    display: none;
  }
}

/* Atmospheric overlay -- fixed like .bg, so the same top-lighter/
   bottom-darker band sits over whatever's in view at any scroll position
   (no scroll-linked JS). Keeps body copy readable everywhere while
   leaving the scene itself visible, not paved over. */
.bg-scrim {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.6) 45%, rgba(0, 0, 0, 0.82) 100%);
}

/* Privacy / Terms -- calmer, no video, a touch darker for long-form
   reading, but the same scene underneath so it doesn't feel disconnected. */
.bg-scrim--reading {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.8) 100%);
}

/* ---------- page shell -------------------------------------------------- */

.page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}

/* ===========================================================================
   1) Header
   =========================================================================== */

.site-header {
  flex: 0 0 auto;
  width: 100%;
  /* Widened just enough to seat six nav labels (was 720px/430px for four,
     792px/500px for five). Height, radius, shadow, spacing, typography and
     the active indicator are unchanged. */
  max-width: 862px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* logo */
.logo {
  --logo-size: clamp(40px, 4.4vw, 46px);
  flex: 0 0 auto;
  width: var(--logo-size);
  height: var(--logo-size);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.logo:hover {
  transform: scale(1.04);
}

.logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

/* nav pill */
.nav-pill {
  flex: 1 1 auto;
  max-width: 565px;
  height: clamp(44px, 5.2vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(2px, 0.8vw, 8px);
  padding: 4px 8px;
  background: #fff;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
}

.nav-pill a {
  position: relative;
  flex: 1 1 auto;
  text-align: center;
  padding: 8px 4px 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.nav-pill a:hover {
  opacity: 0.75;
}

.nav-pill a.active {
  opacity: 1;
}

.nav-pill a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

/* sign in */
.sign-in {
  flex: 0 0 auto;
  height: clamp(44px, 5.2vw, 48px);
  display: inline-flex;
  align-items: center;
  padding: 0 clamp(16px, 2vw, 20px);
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

/* burger (mobile only) */
.burger {
  display: none;
}

/* ===========================================================================
   2) Hero
   =========================================================================== */

.hero {
  flex: 1 1 auto;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* intelligence row */
.intel-row {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: grid;
  place-items: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
}

.avatar-inner i {
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

.avatar.a1 {
  z-index: 1;
}

.avatar.a2 {
  z-index: 2;
  margin-left: calc(var(--trust-size) * -0.42);
}

.avatar.a3 {
  z-index: 4;
  margin-left: calc(var(--trust-size) * -0.42);
}

.intel-row:hover .avatar.a1 {
  transform: translateY(-2px);
}

.intel-row:hover .avatar.a2 {
  transform: translateY(-4px);
}

.intel-row:hover .avatar.a3 {
  transform: translateY(-2px);
}

.intel-pill {
  z-index: 3;
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: calc(var(--trust-size) * 0.5);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  color: var(--trust-text);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
}

/* headline */
.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline span:nth-child(1) {
  animation-delay: 0.12s;
}

.headline span:nth-child(2) {
  animation-delay: 0.3s;
}

/* parent gets .anim for consistency but never reveals itself */
.headline.anim {
  animation: none;
  opacity: 1;
  transform: none;
  filter: none;
}

/* subhead */
.subhead {
  margin: clamp(14px, 2vh, 20px) 0 0;
  max-width: min(500px, 92%);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

/* cta */
.cta {
  margin-top: clamp(16px, 2.6vh, 24px);
  display: inline-block;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 22px rgba(255, 255, 255, 0.32),
    0 0 44px rgba(255, 255, 255, 0.12);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 30px rgba(255, 255, 255, 0.45),
    0 0 60px rgba(255, 255, 255, 0.2);
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.6vw, 14px);
}

.cta-row .cta {
  margin-top: clamp(16px, 2.6vh, 24px);
}

.cta--secondary {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.cta--secondary:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
}

/* ===========================================================================
   3) Stats footer
   =========================================================================== */

.stats {
  flex: 0 0 auto;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2.4vw, 32px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
}

.stat-value {
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
}

/* ===========================================================================
   Shared entrance animation
   =========================================================================== */

.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--d, 0s);
}

.cta.anim {
  animation-name: revealPulse;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes overlayIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================================================================
   Mobile menu
   =========================================================================== */

.m-wrap {
  display: contents;
}

.m-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.m-menu {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 14px);
  transform: translateX(-50%);
  width: min(420px, calc(100% - 28px));
  padding: 22px 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.m-menu a {
  position: relative;
  display: block;
  text-align: center;
  padding: 14px 8px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  opacity: 0;
  animation: linkIn 0.32s ease forwards;
}

.m-menu a:nth-child(1) {
  animation-delay: 0.06s;
}
.m-menu a:nth-child(2) {
  animation-delay: 0.12s;
}
.m-menu a:nth-child(3) {
  animation-delay: 0.18s;
}
.m-menu a:nth-child(4) {
  animation-delay: 0.24s;
}
.m-menu a:nth-child(5) {
  animation-delay: 0.3s;
}

.m-menu a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  background: #000;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.m-menu .m-sign-in {
  margin-top: 8px;
  background: var(--pill-dark);
  color: #fff;
  border-radius: 999px;
}

/* ===========================================================================
   Responsive
   =========================================================================== */

@media (max-width: 720px) {
  .site-header {
    max-width: none;
    justify-content: space-between;
  }

  .nav-pill,
  .sign-in {
    display: none;
  }

  .logo {
    --logo-size: 48px;
  }

  .burger {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    cursor: pointer;
    transition: background 0.25s ease;
  }

  .burger-bars {
    position: relative;
    width: 18px;
    height: 14.5px;
  }

  .burger-bars span {
    position: absolute;
    left: 0;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, opacity 0.2s ease;
  }

  .burger-bars span:nth-child(1) {
    top: 0;
  }
  .burger-bars span:nth-child(2) {
    top: 6.5px;
  }
  .burger-bars span:nth-child(3) {
    top: 13px;
  }

  .burger[aria-expanded="true"] {
    background: #fff;
  }

  .burger[aria-expanded="true"] .burger-bars span {
    background: #000;
  }

  .burger[aria-expanded="true"] .burger-bars span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }

  .burger[aria-expanded="true"] .burger-bars span:nth-child(2) {
    opacity: 0;
  }

  .burger[aria-expanded="true"] .burger-bars span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 4vw, 22px) clamp(10px, 3vw, 18px);
  }
}

@media (min-width: 721px) {
  .m-wrap {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .intel-row {
    --trust-size: 34px;
  }

  .intel-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .intel-row {
    margin-bottom: clamp(10px, 1.6vh, 16px);
  }

  .subhead {
    margin-top: clamp(8px, 1.4vh, 14px);
  }

  .cta {
    margin-top: clamp(10px, 1.6vh, 16px);
  }
}

/* ===========================================================================
   Reduced motion
   =========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .anim,
  .headline span,
  .site-header {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline {
    color: #fff !important;
  }
}

/* ===========================================================================
   Plans view — pricing composition + checkout states
   Reuses the .stats slot, the .anim entrance, the black/white/gray system.
   No cards: three columns divided by hairlines. Nothing here touches the
   four other views.
   =========================================================================== */

/* 6th/7th mobile-menu links pick up the same 0.06s stagger cadence as the
   first 5 (the position each rule applies to has shifted as items were
   added -- Social then Plans then Enterprise then Sign In -- but the
   cadence itself only ever needs one more step per added link). */
.m-menu a:nth-child(6) {
  animation-delay: 0.36s;
}
.m-menu a:nth-child(7) {
  animation-delay: 0.42s;
}

/* the .stats grid steps aside so the pricing rail owns the layout */
.stats.stats--plans {
  display: block;
}

.plans-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px clamp(8px, 2vw, 20px) 6px;
  text-align: center;
}

.plan + .plan {
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.plan-flag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: #e8e8e8;
  margin-bottom: 2px;
}

.plan-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(11px, 1.2vw, 12.5px);
  letter-spacing: 0.06em;
  color: var(--muted);
}

.plan-price {
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.05;
}

.plan-interval {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10.5px, 1.1vw, 11.5px);
  color: var(--muted);
}

.plan--featured .plan-name,
.plan--featured .plan-interval {
  color: #d6d6d6;
}

.plan--featured .plan-price {
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.28);
}

.plan-cta {
  margin-top: 8px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(11.5px, 1.2vw, 12.5px);
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, opacity 0.2s ease;
}

.plan--featured .plan-cta {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.15),
    0 0 20px rgba(255, 255, 255, 0.28);
}

.plan-cta:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25),
    0 0 24px rgba(255, 255, 255, 0.4);
}

.plan-cta[data-disabled="true"] {
  opacity: 0.45;
}

.plans-notice {
  margin: 10px 0 0;
  min-height: 1em;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 1.1vw, 12px);
  color: var(--muted);
}

/* processing state */
.plans-status {
  margin: 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3vw, 13.5px);
  color: #d0d0d0;
}

/* success state */
.plans-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.ac-label {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ac-code {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  letter-spacing: 0.04em;
  color: #fff;
  -webkit-user-select: all;
  user-select: all;
}

.ac-code--none {
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.3vw, 13.5px);
  letter-spacing: 0;
  color: #d0d0d0;
  max-width: min(460px, 92%);
  line-height: 1.5;
}

.ac-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.ac-copy,
.ac-recheck,
.ac-open {
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(12px, 1.3vw, 13px);
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, color 0.2s ease;
}

.ac-copy,
.ac-recheck {
  background: #fff;
  color: #000;
}

.ac-open {
  background: var(--pill-dark);
  color: var(--sign-in-text);
}

.ac-open:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.ac-copy:hover,
.ac-recheck:hover {
  transform: translateY(-1px);
}

.ac-hint {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(10.5px, 1.1vw, 12px);
  color: var(--muted);
}

@media (max-width: 720px) {
  .plans-rail {
    grid-template-columns: 1fr;
    max-width: 340px;
    gap: 2px;
  }

  .plan {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    padding: 10px 8px;
  }

  .plan + .plan {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .plan-flag {
    flex-basis: 100%;
    margin-bottom: 0;
  }

  .plan-cta {
    margin-top: 0;
    flex-basis: 100%;
  }
}

@media (max-height: 700px) {
  .plan-cta {
    margin-top: 5px;
    padding: 6px 14px;
  }

  .plans-notice {
    margin-top: 6px;
  }
}

/* ===========================================================================
   Social view — official external channels hub
   Reuses the .stats slot and .anim entrance, same as Plans. No brand-color
   cards: platform identity comes from the icon glyph + name only, FDS AI's
   own black/white/gray language stays dominant.
   =========================================================================== */

.stats.stats--social {
  display: block;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1); /* hairline grid lines via the gaps */
  border-radius: 14px;
  overflow: hidden;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: clamp(12px, 1.8vh, 16px) 8px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-item:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-2px);
}

.social-item i {
  font-size: clamp(16px, 1.8vw, 19px);
  color: #fff;
  line-height: 1;
}

.social-name {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(12px, 1.3vw, 13.5px);
  letter-spacing: -0.01em;
  color: #fff;
}

.social-handle {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: clamp(10.5px, 1.1vw, 11.5px);
  color: var(--muted);
}

@media (max-width: 720px) {
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 360px;
  }

  .social-item {
    padding: 12px 6px;
  }
}

@media (max-height: 700px) {
  .social-item {
    padding: 8px 6px;
  }
}

/* ===========================================================================
   Content — scrollable sections below the first-screen hero (Website
   Architecture pass, 2026-09-07). Real static markup, no JS renders any
   of this; .anim entrances are pure CSS so it still animates with zero
   JS, same as the hero above.
   =========================================================================== */

.content {
  /* Transparent on purpose (Visual Continuity fix, 2026-09-07) -- this
     used to be an opaque var(--bg) fill, which is exactly the "cinematic
     hero -> flat black webpage" seam this fix removes. The fixed .bg +
     .bg-scrim behind it already carry the whole page's atmosphere and
     contrast; .content just needs to sit above them. */
  position: relative;
  z-index: 2;
}

.section {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 108px) clamp(20px, 4vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section:first-child {
  border-top: 0;
}

.section--narrow {
  max-width: 720px;
}

.section-eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
  font-size: clamp(24px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  margin: 14px 0 0;
  max-width: 640px;
  font-family: var(--font-sans);
  font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 1.65;
  color: #d0d0d0;
}

.section-body {
  margin-top: 36px;
}

/* capability rows — icon badge + heading + description, hairline
   separated. Deliberately not cards: no fill, no shadow, no border box —
   matches the existing avatar/pill visual language instead of generic
   SaaS feature-card grids. */
.cap-row {
  display: flex;
  gap: clamp(16px, 3vw, 28px);
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cap-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.cap-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: 18px;
}

.cap-body h3 {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 19px);
  letter-spacing: -0.01em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cap-flag {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #111;
  background: #fff;
  padding: 3px 8px;
  border-radius: 999px;
}

.cap-body p {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: clamp(13.5px, 1.5vw, 15px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

.cap-body a {
  display: inline-block;
  margin-top: 10px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.cap-body a:hover {
  border-color: #fff;
}

/* concept chips — P2P flagship strip and similar term lists */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.chip {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: -0.005em;
  color: var(--trust-text);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  padding: 7px 14px;
}

/* how-it-works flow chain */
.flow-chain {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-top: 32px;
}

.flow-step {
  flex: 1 1 140px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.flow-step-body {
  min-width: 0;
}

.flow-step-body h4 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}

.flow-step-body p {
  margin: 4px 0 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.flow-arrow {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.3);
  font-size: 16px;
  padding: 0 6px;
}

@media (max-width: 720px) {
  .flow-chain {
    flex-direction: column;
    align-items: stretch;
  }

  .flow-arrow {
    transform: rotate(90deg);
    align-self: flex-start;
    margin-left: 16px;
  }
}

/* trust band */
.trust-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 28px;
}

.trust-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.trust-item i {
  flex: 0 0 auto;
  margin-top: 3px;
  color: #fff;
  font-size: 13px;
}

.trust-item p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: #d0d0d0;
}

@media (max-width: 640px) {
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ — plain stacked Q/A, crawlable without any JS toggle */
.faq-item {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq-item h3 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(14.5px, 1.6vw, 16px);
  color: #fff;
}

.faq-item p {
  margin: 8px 0 0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* long-form legal prose (Privacy / Terms) — comfortable reading measure,
   looser leading than the marketing sections per the type-hierarchy rule
   (tight on display text, loose on dense body copy). */
.legal h2 {
  margin: 40px 0 0;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 20px);
  color: #fff;
  letter-spacing: -0.01em;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal li {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  color: #d0d0d0;
}

.legal p {
  margin: 14px 0 0;
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal .legal-meta {
  font-size: 13px;
  color: var(--muted);
}

/* ===========================================================================
   Global footer — every marketing page
   =========================================================================== */

.site-footer {
  /* Transparent, same reasoning as .content above -- a frosted seam
     (backdrop-blur) replaces the old opaque fill so the footer still
     reads as a distinct region without becoming another black slab. */
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: clamp(40px, 7vh, 64px) clamp(20px, 4vw, 32px) clamp(28px, 5vh, 40px);
}

.footer-grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

.footer-tagline {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32ch;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  color: var(--muted);
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-social a:hover {
  color: #fff;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-col a {
  display: block;
  margin-bottom: 9px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: #d0d0d0;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 980px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.footer-bottom p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 640px;
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ===========================================================================
   404
   =========================================================================== */

.notfound {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px;
}

.notfound h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(48px, 10vw, 96px);
  color: #fff;
}

.notfound p {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--muted);
  max-width: 40ch;
}
