/* =========================================================
   Finsera Website — FAC Design System
   Palette: navy · yellow (highlight) · teal (CTA) · paper
   Type: DM Serif Display (headings) · Mulish (body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Mulish:wght@400;500;600;700;800;900&display=swap');

:root {
  /* FAC navy — primary ink + backgrounds */
  --navy:        #0B1F48;   /* fac-navy-900 */
  --navy-2:      #0F2555;   /* fac-navy-800 */
  --navy-3:      #172F66;   /* fac-navy-700 — solid bg */

  /* Teal — FAC logo accent, used for interactive / CTA only */
  --teal:        #2CB5C9;
  --teal-soft:   #E4F3F7;   /* fac-sky-100 */

  /* Yellow — the highlighter. Text backgrounds, stickers, accents */
  --yellow:      #FFE269;   /* fac-yellow-400 */
  --yellow-strong: #FFD84D; /* fac-yellow-500 */
  --yellow-pale: #FFF6CC;   /* fac-yellow-100 */

  /* Paper + surfaces */
  --page:        #F7F8FA;   /* fac-paper */
  --white:       #FFFFFF;
  --surface:     #EEF1F5;
  --surface-2:   #E4EBF2;
  --border:      #D8E3EA;   /* fac-grid */
  --border-2:    #C9D3DE;   /* fac-rule */

  /* Text */
  --text:        #0B1F48;
  --text-muted:  #6B7A93;   /* fac-ink-muted */
  --text-soft:   #8FA3BC;

  /* Typography */
  --font-heading: 'DM Serif Display', 'Playfair Display', Georgia, serif;
  --font-body:    'Mulish', 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --max-w:  1240px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-lg:   14px;
  --nav-h:  72px;

  /* Motion */
  --ease:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-s: cubic-bezier(0.4, 0, 0.2, 1);

  /* FAC signature backgrounds */
  --grid-bg:
    linear-gradient(0deg,  var(--border) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg,  rgba(216,227,234,.45) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(90deg, rgba(216,227,234,.45) 1px, transparent 1px) 0 0 / 16px 16px,
    var(--page);
  --grid-bg-dark:
    linear-gradient(0deg,  rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px) 0 0 / 64px 64px,
    var(--navy-3);
  --hero-wash: radial-gradient(120% 80% at 50% 115%, #8FD6E6 0%, #E4F3F7 45%, var(--page) 85%);
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--grid-bg);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }

/* ============ TYPOGRAPHY ============ */
h1, h2 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--navy-2);
  line-height: 1.06;
  letter-spacing: -0.01em;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
h2 { font-size: clamp(1.875rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--text); font-size: 1rem; }
.lead {
  font-size: clamp(1.0625rem, 1.4vw, 1.1875rem);
  color: var(--text-muted);
  line-height: 1.65;
}
.muted { color: var(--text-muted); }
.micro {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-family: var(--font-body);
  color: var(--text-muted);
}

/* FAC yellow highlighter — used inline on key phrases */
.fac-hl {
  background: var(--yellow);
  box-shadow: 4px 0 0 var(--yellow), -4px 0 0 var(--yellow);
  padding: 0 .05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ============ LAYOUT ============ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
}
section { padding: clamp(4rem, 8vw, 7rem) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head .micro { margin-bottom: 1rem; display: inline-block; }
.section-head p { margin-top: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(247, 248, 250, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.25s var(--ease-s), border-color 0.25s var(--ease-s);
}
.nav.scrolled {
  background: rgba(247, 248, 250, 0.96);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--navy-2);
  letter-spacing: -0.03em;
}
.nav-logo img { height: 28px; width: auto; }
.nav-logo span em { color: var(--teal); font-style: normal; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--navy-2); }
.nav-links a.active {
  color: var(--navy-2);
  font-weight: 700;
}
.nav-links a.active::before {
  content: "";
  position: absolute;
  left: -12px; top: 50%;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  transform: translateY(-50%);
}

.nav-toggle {
  display: none;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy-2);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem clamp(1.25rem, 5vw, 2.5rem);
    background: var(--page);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.925rem;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1.5px); }
.btn svg   { width: 16px; height: 16px; }

.btn-primary {
  background: var(--navy-2);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--navy-3);
  box-shadow: 0 16px 30px -14px rgba(11, 31, 72, 0.5);
}

/* cyan class kept for compatibility — now uses teal */
.btn-cyan {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-cyan:hover {
  background: #239fb2;
  border-color: #239fb2;
  box-shadow: 0 16px 30px -14px rgba(44, 181, 201, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--navy-2);
  border-color: var(--border-2);
}
.btn-outline:hover {
  border-color: var(--navy-2);
  background: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding-left: 8px; padding-right: 8px;
}
.btn-ghost:hover { color: var(--navy-2); }

/* ============ TAGS / PILL ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 7px;
  border-radius: var(--r-sm);
  background: var(--yellow-pale);
  color: var(--navy-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0;
  border: 1px solid rgba(255, 226, 105, 0.55);
}
.pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(44, 181, 201, 0.18);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.pill.warn { background: #fff5e6; color: #7a4f0b; border-color: rgba(200, 155, 16, 0.3); }
.pill.warn .dot { background: #d38d0a; box-shadow: 0 0 0 3px rgba(211, 141, 10, 0.18); }

/* ============ HERO ============ */
.hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(4.5rem, 9vw, 7.5rem);
  position: relative;
  overflow: hidden;
  background: var(--hero-wash);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-copy .pill { margin-bottom: 1.75rem; }
.hero-copy h1 {
  margin-bottom: 1.5rem;
}
/* Yellow highlight on key phrase */
.hero-copy h1 .ul {
  display: inline;
  background: var(--yellow);
  box-shadow: 5px 0 0 var(--yellow), -5px 0 0 var(--yellow);
  padding: 0 .05em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  color: var(--navy-2);
}
.hero-copy .lead { max-width: 540px; margin-bottom: 2.25rem; }
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-meta {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  max-width: 540px;
}
.hero-meta div { min-width: 0; }
.hero-meta strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  font-family: var(--font-body);
  color: var(--navy-2);
  letter-spacing: -0.03em;
  margin-bottom: 2px;
}
.hero-meta span { color: var(--text-muted); font-size: 0.85rem; }

/* Hero visual (phone frame showcase) */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 1 / 1.15;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 340px; aspect-ratio: 1 / 1.05; }
}

/* ============ PHONE FRAME ============ */
.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  background: var(--navy-2);
  padding: 8px;
  box-shadow:
    0 50px 90px -30px rgba(11, 31, 72, 0.35),
    0 20px 40px -20px rgba(11, 31, 72, 0.25),
    0 0 0 1px rgba(255,255,255,0.04) inset;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 28px;
  display: block;
}
.phone[data-tilt] { transition: transform 0.3s var(--ease); }

.phone-stack {
  position: relative;
  width: 100%;
  min-height: 560px;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.phone-stack .phone {
  position: absolute;
  top: 50%; left: 50%;
  transform-origin: center center;
  box-shadow:
    0 60px 100px -35px rgba(11, 31, 72, 0.45),
    0 30px 50px -25px rgba(11, 31, 72, 0.3),
    0 0 0 1px rgba(255,255,255,0.04) inset;
}
.phone-stack .phone.back {
  transform: translate(-20%, -85%) rotateY(-14deg) rotateX(8deg) rotateZ(-6deg);
  filter: brightness(0.92);
  z-index: 1;
}
.phone-stack .phone.front {
  transform: translate(-80%, -15%) rotateY(-12deg) rotateX(6deg) rotateZ(-4deg);
  z-index: 2;
}
.phone-stack .phone.side { display: none; }

@media (max-width: 820px) {
  .phone-stack { min-height: 480px; }
  .phone-stack .phone.back  { transform: translate(-15%, -80%) rotateY(-12deg) rotateX(6deg) rotateZ(-5deg) scale(0.85); }
  .phone-stack .phone.front { transform: translate(-85%, -20%) rotateY(-10deg) rotateX(5deg) rotateZ(-3deg) scale(0.85); }
}
@media (max-width: 560px) {
  .phone-stack { min-height: 520px; }
  .phone-stack .phone.back { display: none; }
  .phone-stack .phone.front {
    transform: translate(-50%, -50%) rotateY(-6deg) rotateX(3deg) scale(0.9);
    max-width: 240px;
  }
}

/* ============ TRUST TICKER ============ */
.ticker {
  padding: 1.5rem 0;
  background: var(--navy-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ticker-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
}
.ticker-inner strong { color: var(--white); font-weight: 700; }
.ticker-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }

@media (max-width: 720px) {
  .ticker-divider { display: none; }
  .ticker-inner { justify-content: flex-start; }
}

/* ============ PRODUCT TABS ============ */
.product-tabs {
  background: var(--white);
  border-radius: var(--r-md);
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--border);
  position: relative;
}
.product-tabs::before {
  content: "";
  position: absolute;
  top: 18px; left: 18px;
  width: 22px; height: 22px;
  border-top: 2px solid var(--yellow-strong);
  border-left: 2px solid var(--yellow-strong);
  border-top-left-radius: 2px;
  pointer-events: none;
}
.tabs-head {
  display: flex;
  gap: 8px;
  background: var(--page);
  padding: 6px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  max-width: fit-content;
  margin: 0 auto 2.5rem;
  position: relative;
}
.tab-btn {
  padding: 10px 22px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.25s;
  position: relative;
  z-index: 1;
}
.tab-btn.active { color: var(--white); }
.tab-indicator {
  position: absolute;
  top: 6px; bottom: 6px;
  border-radius: var(--r-sm);
  background: var(--navy-2);
  transition: left 0.35s var(--ease), width 0.35s var(--ease);
  z-index: 0;
}

.tabs-body { position: relative; }
.tab-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  inset: 0;
  transition: opacity 0.35s var(--ease);
}
.tab-panel.active {
  opacity: 1;
  visibility: visible;
  position: relative;
  inset: auto;
}
.tab-panel h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 1rem;
}
.tab-panel .lead { margin-bottom: 1.5rem; max-width: none; }
.tab-panel ul.features-inline {
  display: grid;
  gap: 10px;
  margin-bottom: 2rem;
}
.tab-panel ul.features-inline li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.95rem;
}
.tab-panel ul.features-inline li::before {
  content: "";
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border-radius: 0;
  background: var(--yellow-pale);
  border: 1.5px solid var(--yellow-strong);
  background-image: linear-gradient(45deg, transparent 45%, var(--navy-2) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--navy-2) 45% 55%, transparent 55%);
  background-size: 10px 2px;
  background-repeat: no-repeat;
  background-position: center;
}
.tab-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
}

@media (max-width: 820px) {
  .tab-panel { grid-template-columns: 1fr; gap: 2rem; }
  .tab-visual { min-height: auto; }
}

/* ============ BENTO FEATURES ============ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bento-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.bento-cell::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--yellow-strong);
  border-left: 2px solid var(--yellow-strong);
  border-top-left-radius: 2px;
  pointer-events: none;
  transition: width 0.35s var(--ease), height 0.35s var(--ease);
}
.bento-cell:hover::before {
  width: 22px; height: 22px;
}
.bento-cell:hover {
  transform: translateY(-4px);
  border-color: var(--yellow-strong);
  box-shadow: 0 24px 48px -24px rgba(11, 31, 72, 0.18);
}
.bento-cell.wide  { grid-column: span 4; }
.bento-cell.half  { grid-column: span 3; }
.bento-cell.third { grid-column: span 2; }
.bento-cell.full  { grid-column: span 6; }

.bento-cell.dark {
  background: var(--navy-3);
  background-image:
    linear-gradient(0deg,  rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 64px 64px;
  color: var(--white);
  border-color: var(--navy-3);
}
.bento-cell.dark h3 { color: var(--white); }
.bento-cell.dark p  { color: rgba(255,255,255,0.7); }
.bento-cell.dark::before {
  border-top-color: var(--yellow);
  border-left-color: var(--yellow);
}

.bento-icon {
  width: 38px; height: 38px;
  border-radius: var(--r-sm);
  background: var(--yellow-pale);
  color: var(--navy-2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.bento-icon svg { width: 20px; height: 20px; }
.bento-cell.dark .bento-icon {
  background: rgba(255, 226, 105, 0.16);
  color: var(--yellow);
}
.bento-cell h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.bento-cell p  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.bento-cell.spotlight {
  grid-column: span 4;
  grid-row: span 2;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bento-spot-body { padding: 1.75rem 1.75rem 0; }
.bento-spot-visual {
  flex: 1;
  margin-top: 1.25rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--teal-soft) 100%);
  padding: 1.5rem 1.5rem 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  overflow: hidden;
}
.bento-spot-visual .phone {
  max-width: 200px;
  margin-bottom: -30px;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.wide, .bento-cell.half, .bento-cell.third,
  .bento-cell.full, .bento-cell.spotlight { grid-column: span 2; grid-row: auto; }
}

/* ============ STATS COUNTER ============ */
.stats-bar {
  background: var(--grid-bg-dark);
  color: var(--white);
  border-radius: var(--r-md);
  padding: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% -20%, rgba(44, 181, 201, 0.2), transparent 55%);
  pointer-events: none;
}
.stats-bar > * { position: relative; z-index: 1; }
.stat-item {
  text-align: left;
  border-right: 1px solid rgba(255,255,255,0.1);
  padding-right: 1rem;
}
.stat-item:last-child { border-right: 0; }
.stat-value {
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-value .suffix { color: var(--yellow); }
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.88rem; }

@media (max-width: 820px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 1rem; }
  .stat-item:nth-last-child(-n+2) { border-bottom: 0; padding-bottom: 0; }
}

/* ============ SPECTRUM POSITIONING ============ */
.spectrum {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 18px;
  align-items: stretch;
}
.spectrum-col {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.spectrum-col.highlight {
  background: var(--grid-bg-dark);
  color: var(--white);
  border-color: var(--navy-3);
  box-shadow: 0 30px 60px -25px rgba(11, 31, 72, 0.35);
  transform: translateY(-8px);
}
.spectrum-col.highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
  background: radial-gradient(circle at 80% -10%, rgba(44, 181, 201, 0.22), transparent 55%);
  pointer-events: none;
}
.spectrum-col > * { position: relative; z-index: 1; }

.spectrum-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.spectrum-col.highlight .spectrum-tag {
  color: var(--navy-2);
  background: var(--yellow);
  padding: 5px 12px;
  border-radius: 0;
  border: none;
  letter-spacing: 0.04em;
  display: inline-block;
}
.spectrum-col h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.spectrum-col.highlight h3 { color: var(--white); }
.spectrum-desc {
  color: var(--text-muted);
  font-size: 0.925rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}
.spectrum-col.highlight .spectrum-desc { color: rgba(255, 255, 255, 0.78); }

.spectrum-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 1.5rem;
  flex: 1;
}
.spectrum-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}
.spectrum-list li::before {
  content: "";
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  border-radius: 0;
  background: var(--border);
}
.spectrum-list li.dim {
  color: var(--text-muted);
  opacity: 0.7;
}
.spectrum-list li.dim::before { background: var(--border-2); }
.spectrum-list li.on { color: var(--white); }
.spectrum-list li.on::before {
  background: var(--yellow);
  background-image: linear-gradient(45deg, transparent 45%, var(--navy-2) 45% 55%, transparent 55%),
                    linear-gradient(-45deg, transparent 45%, var(--navy-2) 45% 55%, transparent 55%);
  background-size: 8px 1.5px;
  background-repeat: no-repeat;
  background-position: center;
}

.spectrum-foot {
  display: block;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.45;
}
.spectrum-col.highlight .spectrum-foot {
  border-top-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 920px) {
  .spectrum { grid-template-columns: 1fr; gap: 14px; }
  .spectrum-col.highlight { transform: none; order: -1; }
}

/* ============ STEPS (horizontal) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}
.step {
  position: relative;
  padding-top: 2rem;
}
.step-index {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.step-num {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: var(--navy-2);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
}
.step-line {
  flex: 1;
  height: 2px;
  background-image: linear-gradient(to right, var(--border-2) 50%, transparent 50%);
  background-size: 10px 2px;
}
.step h3 { font-size: 1.1875rem; margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: 1.5rem; }
  .step-line { display: none; }
}

/* ============ FAQ ============ */
.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: var(--yellow-strong);
  box-shadow: 0 12px 28px -16px rgba(11, 31, 72, 0.15);
}
.faq-item summary {
  list-style: none;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(-135deg); border-color: var(--navy-2); }
.faq-item .faq-body {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ============ CTA BLOCK ============ */
.cta-block {
  background: var(--grid-bg-dark);
  color: var(--white);
  border-radius: var(--r-md);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(44, 181, 201, 0.18), transparent 45%),
    radial-gradient(circle at 90% 90%, rgba(44, 181, 201, 0.1), transparent 45%);
  pointer-events: none;
}
.cta-block > * { position: relative; z-index: 1; }
.cta-block h2 { color: var(--white); margin-bottom: 1rem; font-family: var(--font-heading); }
.cta-block p {
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
}
.cta-block .hero-ctas { justify-content: center; margin: 0; }

/* ============ FOOTER ============ */
.footer {
  background: var(--navy-2);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 4rem 0 2rem;
  color: rgba(255,255,255,0.6);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer h4 {
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
}
.footer ul { display: grid; gap: 10px; }
.footer a {
  color: rgba(255,255,255,0.55);
  font-size: 0.925rem;
  transition: color 0.2s;
}
.footer a:hover { color: var(--yellow); }
.footer-brand p {
  font-size: 0.9rem;
  max-width: 340px;
  margin-top: 1rem;
  line-height: 1.65;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 2rem;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
  color: rgba(255,255,255,0.4);
}
.nav-logo span em, .footer .nav-logo span em { color: var(--teal); font-style: normal; }
.footer .nav-logo span { color: var(--white); }

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

/* ============ PRODUCT PAGE — HERO ============ */
.product-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
  background: var(--hero-wash);
}
.product-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.product-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
  z-index: 1;
}
.product-hero h1 { margin: 1.5rem 0 1.25rem; }
.product-hero .lead { max-width: 540px; margin-bottom: 2rem; }
.product-hero-visual {
  display: flex; justify-content: center; align-items: center;
  width: 100%;
  min-height: 520px;
  position: relative;
}

@media (max-width: 920px) {
  .product-hero-grid { grid-template-columns: 1fr; }
  .product-hero-visual { min-height: 460px; }
}

/* ============ WAITLIST ============ */
.waitlist {
  background: var(--grid-bg-dark);
  border-radius: var(--r-md);
  padding: clamp(2.5rem, 5vw, 4rem);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(44, 181, 201, 0.2), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(44, 181, 201, 0.12), transparent 50%);
  pointer-events: none;
}
.waitlist-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}
.waitlist h2 { color: var(--white); margin-bottom: 1rem; }
.waitlist p { color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; line-height: 1.65; }
.waitlist .pill {
  background: rgba(255, 226, 105, 0.18);
  color: var(--yellow);
  border-color: rgba(255, 226, 105, 0.35);
  margin-bottom: 1.25rem;
}
.waitlist ul {
  display: grid; gap: 10px; margin-bottom: 1.75rem;
}
.waitlist ul li {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
}
.waitlist ul li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 0;
  background: var(--yellow);
  flex-shrink: 0;
}

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

/* ============ CODE INLINE ============ */
code.inline {
  background: var(--surface);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--navy-2);
  border: 1px solid var(--border);
}

/* ============ SCROLL PROGRESS ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: var(--yellow-strong);
  width: 0;
  z-index: 200;
  transition: width 0.1s linear;
}

/* ============ MOTION / REVEALS ============ */
.reveal,
.reveal-up,
.reveal-left,
.reveal-right,
.reveal-scale {
  opacity: 0;
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.reveal-up    { transform: translateY(24px); }
.reveal-left  { transform: translateX(-24px); }
.reveal-right { transform: translateX(24px); }
.reveal-scale { transform: scale(0.96); }

.reveal.in, .reveal-up.in, .reveal-left.in,
.reveal-right.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
}
.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-up, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
  }
  .pill .dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ LEGAL PAGES ============ */
.legal-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
  background: var(--hero-wash);
  position: relative;
  overflow: hidden;
}
.legal-hero .pill { margin-bottom: 1.25rem; }
.legal-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  margin-bottom: 1rem;
}
.legal-hero .lead { max-width: 620px; }

.legal-body {
  padding: clamp(3rem, 6vw, 5rem) 0;
}
.legal-container {
  max-width: 780px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: clamp(1.75rem, 4vw, 3rem);
  position: relative;
}
.legal-container::before {
  content: "";
  position: absolute;
  top: 14px; left: 14px;
  width: 22px; height: 22px;
  border-top: 2px solid var(--yellow-strong);
  border-left: 2px solid var(--yellow-strong);
  border-top-left-radius: 2px;
  pointer-events: none;
}
.legal-container h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  margin: 2.5rem 0 0.85rem;
  color: var(--navy-2);
  letter-spacing: -0.02em;
  font-family: var(--font-body);
  font-weight: 700;
}
.legal-container h2:first-of-type { margin-top: 0.5rem; }
.legal-container p {
  margin-bottom: 1rem;
  line-height: 1.72;
  color: var(--text);
  font-size: 0.975rem;
}
.legal-container ul {
  margin: 0 0 1.25rem 0;
  padding-left: 0;
  display: grid;
  gap: 8px;
}
.legal-container li {
  position: relative;
  padding-left: 1.5rem;
  line-height: 1.65;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.legal-container li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 2px;
  background: var(--yellow-strong);
  border-radius: 0;
}
.legal-container a {
  color: var(--teal);
  border-bottom: 1px solid rgba(44, 181, 201, 0.3);
  transition: border-color 0.2s;
}
.legal-container a:hover { border-color: var(--teal); }
.legal-container code.inline {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--surface);
  padding: 2px 7px;
  border-radius: var(--r-sm);
  color: var(--navy-2);
}
.legal-container strong { color: var(--navy-2); font-weight: 700; }
.legal-footer-note {
  margin-top: 3rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft) !important;
  font-size: 0.85rem !important;
  font-style: italic;
}
