/* ============================================================================
   Octa Voice — Editorial Design System (v2, Jul 2026)
   Warm off-white base × deep charcoal ink × coral accent.
   Serif display (Fraunces) × Inter body. Generous whitespace. Slow motion.
============================================================================ */

:root{
  /* ─── Palette ─── */
  --bg:            #fbf9f5;      /* warm off-white */
  --bg-2:          #f5f2eb;      /* warmer surface */
  --bg-3:          #ede8dd;      /* section divider */
  --panel:         #ffffff;      /* pure white for cards */
  --panel-2:       #faf7f1;
  --ink:           #1a1614;      /* deep charcoal */
  --ink-2:         #3b332e;
  --ink-3:         #6b625b;
  --ink-4:         #a19889;      /* muted */
  --hairline:      rgba(26,22,20,.10);
  --hairline-soft: rgba(26,22,20,.05);

  /* Accent — deep coral (warm, distinctive, non-tech) */
  --accent:        #d4501e;
  --accent-hover:  #b8421a;
  --accent-soft:   rgba(212,80,30,.08);
  --accent-glow:   rgba(212,80,30,.18);

  /* Semantic */
  --ok:            #4a7c3b;      /* muted sage */
  --warn:          #b8801a;
  --err:           #b83a3a;

  /* Shadows — soft, layered, warm */
  --sh-1: 0 1px 2px rgba(26,22,20,.04);
  --sh-2: 0 12px 32px -12px rgba(26,22,20,.10), 0 3px 8px rgba(26,22,20,.03);
  --sh-3: 0 28px 60px -18px rgba(26,22,20,.18), 0 10px 24px -8px rgba(26,22,20,.06);
  --sh-warm: 0 20px 50px -18px rgba(212,80,30,.18);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --nav-h: 68px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  /* Subtle noise texture — very light so it doesn't distract */
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(212,80,30,.03), transparent 60%),
    radial-gradient(ellipse 70% 50% at 90% 30%, rgba(74,124,59,.02), transparent 55%);
  background-attachment: fixed;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Type scale ─── */
.serif { font-family: 'Fraunces', 'Instrument Serif', Georgia, serif; }

h1, .h1 {
  font-family: 'Fraunces', 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 144;
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h2, .h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-optical-sizing: auto;
  font-variation-settings: 'opsz' 96;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
h3, .h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}
p, .body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
}
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}
.eyebrow::before {
  content: ''; width: 22px; height: 1px;
  background: currentColor; display: inline-block;
}
.italic-serif { font-style: italic; font-family: 'Fraunces', serif; font-weight: 400; }

/* ─── Layout ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
section {
  padding: clamp(60px, 10vw, 120px) 0;
  position: relative;
}
.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 6vw, 70px);
}
.section-head .eyebrow { margin-bottom: 20px; }
.section-head h2 { margin-bottom: 18px; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(251,249,245,.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: background .2s, border-color .2s;
}
nav.scrolled {
  background: rgba(251,249,245,.92);
  border-bottom-color: var(--hairline);
}
nav .container {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }

.nav-links {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active { color: var(--ink); background: var(--hairline-soft); }
.nav-spacer { flex: 1; }
.nav-signin {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px;
  transition: color .15s;
}
.nav-signin:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--bg) !important;
  background: var(--ink) !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  transition: background .15s, transform .15s !important;
}
.nav-cta:hover { background: var(--accent) !important; transform: translateY(-1px); box-shadow: 0 12px 28px -8px var(--accent-glow) !important; }

.nav-item { position: relative; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 5px;
  background: transparent; border: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-trigger:hover { color: var(--ink); background: var(--hairline-soft); }
.nav-trigger svg { transition: transform .18s; }
.nav-item.open .nav-trigger { color: var(--ink); background: var(--hairline-soft); }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 260px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--sh-3);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px) scale(.98);
  transform-origin: top center;
  transition: opacity .15s, visibility .15s, transform .15s;
}
.nav-item.open .nav-dropdown,
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0) scale(1);
}
.nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background .12s;
}
.nav-dropdown a:hover { background: var(--bg-2); }
.dd-title { font-size: 14px; font-weight: 600; color: var(--ink); }
.dd-desc  { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

.mobile-toggle {
  display: none;
  background: transparent; border: 0;
  color: var(--ink);
  padding: 6px;
  border-radius: 8px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  transition: transform .15s, background .15s, box-shadow .18s;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 2px 8px rgba(26,22,20,.15);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover {
  background: var(--panel);
  border-color: var(--ink);
}
.btn-link {
  color: var(--ink); font-weight: 500;
  padding: 4px 0; border-bottom: 1px solid var(--hairline);
  border-radius: 0;
  transition: border-color .15s, color .15s;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }

/* ─── HERO ─── */
.hero {
  padding: calc(var(--nav-h) + 60px) 0 clamp(70px, 10vw, 130px);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  margin-bottom: 26px;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.hero .lede {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.hero-trust {
  font-size: 13.5px;
  color: var(--ink-4);
  margin-top: 10px;
}
.hero-trust a { color: var(--ink-3); border-bottom: 1px solid var(--hairline); }
.hero-trust a:hover { color: var(--accent); border-color: var(--accent); }

/* Signup form (kept from before, restyled) */
.signup-form {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: var(--sh-2);
  max-width: 100%;
}
.signup-form input {
  border: 0; background: transparent;
  padding: 8px 16px;
  font-size: 15px; color: var(--ink);
  min-width: 220px; outline: none;
  font-family: inherit;
}
.signup-form input::placeholder { color: var(--ink-4); }
.signup-form button {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14.5px;
  font-weight: 600;
  border: 0;
  background: var(--ink); color: var(--bg);
  transition: background .15s;
}
.signup-form button:hover { background: var(--accent); }
.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; color: var(--ok); text-align: center; }
.form-msg.err { color: var(--err); }

/* ─── Live hero transcript (signature moment) ─── */
.hero-scene {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.hero-scene::before {
  content: '';
  position: absolute; inset: -40px -60px 40px -60px;
  background:
    radial-gradient(ellipse 60% 60% at 50% 50%, var(--accent-soft), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.call-frame {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
  z-index: 1;
}
.call-frame-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--hairline-soft);
  background: var(--panel-2);
  font-size: 12.5px;
  color: var(--ink-3);
}
.call-frame-head .live-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; color: var(--ok);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
}
.call-frame-head .live-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74,124,59,.2);
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse { 50% { box-shadow: 0 0 0 8px rgba(74,124,59,0); } }
.call-frame-head .call-meta { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }

.call-body {
  padding: 24px 26px;
  min-height: 300px;
  display: flex; flex-direction: column; gap: 12px;
}
.call-turn {
  display: flex; gap: 14px;
  animation: turnIn .5s ease-out;
  text-align: left;
}
.call-turn .role {
  flex-shrink: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4);
  padding-top: 4px;
  min-width: 60px;
}
.call-turn.ai .role { color: var(--accent); }
.call-turn.caller .role { color: var(--ink-3); }
.call-turn .said {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.call-turn.caller .said { font-style: italic; color: var(--ink-2); }
@keyframes turnIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.typing::after {
  content: '▎';
  display: inline-block;
  color: var(--accent);
  animation: caret 1s steps(2) infinite;
  margin-left: 2px;
}
@keyframes caret { 50% { opacity: 0; } }

.call-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--hairline-soft);
  background: var(--panel-2);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-4);
}
.call-footer .chips { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.call-footer .chip {
  padding: 3px 9px; border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-3);
  font-size: 11px; font-weight: 500;
}

/* ─── Trust bar ─── */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.trust-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 40px; flex-wrap: wrap;
}
.trust-label {
  font-size: 12px; color: var(--ink-4);
  letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 500;
}
.trust-stats { display: flex; gap: 50px; flex-wrap: wrap; }
.trust-stat .n {
  font-family: 'Fraunces', serif;
  font-size: 28px; font-weight: 400; color: var(--ink);
  letter-spacing: -0.02em; line-height: 1;
}
.trust-stat .l {
  font-size: 12px; color: var(--ink-3); margin-top: 6px;
  letter-spacing: 0.02em;
}

/* ─── Bento grid ─── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.bento-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2), box-shadow .3s, border-color .2s;
  position: relative;
  overflow: hidden;
}
.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-2);
  border-color: var(--ink-4);
}
.bento-card h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.bento-card .card-lede {
  color: var(--ink-3); font-size: 14.5px; line-height: 1.55;
}

.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-3 { grid-column: span 3; }
.bento-card.span-2 { grid-column: span 2; }
.bento-card.tall  { min-height: 340px; display: flex; flex-direction: column; justify-content: space-between; }
.bento-card.dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.bento-card.dark h3 { color: var(--bg); }
.bento-card.dark .card-lede { color: var(--ink-4); }
.bento-card.accent {
  background: linear-gradient(135deg, var(--accent) 0%, #a83a15 100%);
  color: #fff8f2;
  border-color: transparent;
}
.bento-card.accent h3, .bento-card.accent .card-lede { color: #fff8f2; }

/* Card visuals — mini product mocks that live inside cards */
.card-visual {
  margin-top: 20px;
  position: relative;
  flex-shrink: 0;
}
.mini-waveform {
  display: flex; align-items: flex-end; gap: 3px;
  height: 42px;
}
.mini-waveform span {
  flex: 1; border-radius: 2px;
  background: var(--ink);
  opacity: .3;
  animation: waveBar 1.4s ease-in-out infinite;
}
.mini-waveform.on-dark span { background: var(--bg); }
.mini-waveform.on-accent span { background: #fff8f2; }
@keyframes waveBar { 0%,100%{ height: 20%; opacity: .3; } 50%{ height: 100%; opacity: .8; } }
.mini-waveform span:nth-child(1)  { animation-delay: 0s; }
.mini-waveform span:nth-child(2)  { animation-delay: 0.1s; }
.mini-waveform span:nth-child(3)  { animation-delay: 0.2s; }
.mini-waveform span:nth-child(4)  { animation-delay: 0.3s; }
.mini-waveform span:nth-child(5)  { animation-delay: 0.4s; }
.mini-waveform span:nth-child(6)  { animation-delay: 0.5s; }
.mini-waveform span:nth-child(7)  { animation-delay: 0.6s; }
.mini-waveform span:nth-child(8)  { animation-delay: 0.5s; }
.mini-waveform span:nth-child(9)  { animation-delay: 0.4s; }
.mini-waveform span:nth-child(10) { animation-delay: 0.3s; }
.mini-waveform span:nth-child(11) { animation-delay: 0.2s; }
.mini-waveform span:nth-child(12) { animation-delay: 0.1s; }

.big-number {
  font-family: 'Fraunces', serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.04em;
}
.big-number sub {
  vertical-align: baseline;
  font-size: 0.4em; color: var(--ink-3); margin-left: 8px;
  font-family: 'Inter', sans-serif; font-weight: 500;
}
.big-number-lbl {
  font-size: 13px; color: var(--ink-3); margin-top: 8px;
  letter-spacing: 0.01em;
}

.channel-list { list-style: none; margin-top: 20px; }
.channel-list li {
  padding: 10px 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
}
.channel-list li:first-child { border-top: 0; }
.channel-list li .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
}
.channel-list li .lang { color: var(--ink-4); margin-left: auto; font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }

/* Language pill grid */
.lang-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin-top: 18px;
}
.lang-grid span {
  padding: 6px 10px; border-radius: 999px;
  background: var(--bg-2);
  font-size: 12px; color: var(--ink-2);
  text-align: center; font-weight: 500;
}
.dark .lang-grid span { background: rgba(255,255,255,.08); color: var(--bg); }
.accent .lang-grid span { background: rgba(255,255,255,.15); color: #fff8f2; }

/* ─── How-it-works (3 steps) ─── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: 'Fraunces', serif;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 18px;
  letter-spacing: 0.05em;
}
.step h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.step p { font-size: 15px; color: var(--ink-3); line-height: 1.6; }

/* ─── Testimonial ─── */
.quote-block {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(30px, 6vw, 60px) clamp(20px, 4vw, 40px);
}
.quote-block blockquote {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}
.quote-block .attr {
  font-size: 14px;
  color: var(--ink-3);
}
.quote-block .attr b { color: var(--ink); font-weight: 600; }

/* ─── CTA banner ─── */
.cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(50px, 8vw, 90px) clamp(30px, 5vw, 70px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(212,80,30,.25), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212,80,30,.10), transparent 55%);
  pointer-events: none;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--bg); margin-bottom: 12px; }
.cta-banner .lede { color: var(--ink-4); max-width: 600px; margin: 0 auto 30px; }
.cta-banner .btn-primary {
  background: var(--bg);
  color: var(--ink);
}
.cta-banner .btn-primary:hover { background: var(--accent); color: var(--bg); }
.cta-banner .btn-ghost {
  color: var(--bg);
  border-color: rgba(255,255,255,.2);
}
.cta-banner .btn-ghost:hover { background: rgba(255,255,255,.08); border-color: var(--bg); }

/* ─── Footer ─── */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--hairline);
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--ink-3); max-width: 320px; }
.footer-col h4 {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.14em; color: var(--ink-4);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  font-size: 14px; color: var(--ink-2);
  transition: color .12s;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-4);
}
.footer-bottom a { color: var(--ink-3); }
.footer-bottom a:hover { color: var(--accent); }

/* ─── Reveal on scroll ─── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.9,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── Responsive ─── */
@media (max-width: 960px){
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-4, .bento-card.span-3, .bento-card.span-2 { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px){
  .nav-links:not(.open) { display: none; }
  .mobile-toggle { display: inline-flex; }
  .bento { grid-template-columns: 1fr; }
  .bento-card.span-4, .bento-card.span-3, .bento-card.span-2 { grid-column: span 1; }
  .signup-form { flex-direction: column; padding: 8px; border-radius: var(--r-md); }
  .signup-form input { min-width: 0; width: 100%; text-align: center; padding: 10px 14px; }
  .signup-form button { width: 100%; padding: 12px; }
  .trust-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ─── Mobile nav open state ─── */
.nav-links.open {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--panel);
  border-bottom: 1px solid var(--hairline);
  padding: 20px var(--gutter);
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  box-shadow: var(--sh-2);
  animation: slideDown .2s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.nav-links.open .nav-link,
.nav-links.open .nav-trigger { padding: 12px 14px; font-size: 15px; }
.nav-links.open .nav-dropdown { position: static; box-shadow: none; border: 0; padding: 0 0 0 12px; opacity: 1; visibility: visible; transform: none; }
.nav-links.open .nav-cta { margin-top: 12px; justify-content: center; }
.nav-links.open .nav-spacer { display: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after { animation-duration: .001s !important; transition-duration: .001s !important; }
}

/* ============================================================================
   PAGE HERO — used on every non-home page (pricing / healthcare / etc)
============================================================================ */
.page-hero{
  padding: calc(var(--nav-h) + 80px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .eyebrow{ margin-bottom: 20px; justify-content: center; display: inline-flex; }
.page-hero h1{
  max-width: 900px; margin: 0 auto 18px;
}
.page-hero h1 em{
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 144, 'SOFT' 100;
}
.page-hero .lede{
  max-width: 640px; margin: 0 auto;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--ink-2);
}
.page-hero .cta-row{
  display: flex; justify-content: center; gap: 12px; margin-top: 30px;
  flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-4);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
}
.breadcrumb a{ color: var(--ink-3); }
.breadcrumb a:hover{ color: var(--accent); }
.breadcrumb .sep{ color: var(--ink-4); }

/* ============================================================================
   3D FLOATING SHAPES — layered geometric bg for hero corners
============================================================================ */
.geo-bg{
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
  z-index: 0;
}
.geo-bg > * { position: absolute; will-change: transform; }
.geo-shape{
  border-radius: 22%;
  animation: geoFloat 24s ease-in-out infinite;
  opacity: .55;
  transform-style: preserve-3d;
  box-shadow:
    0 20px 40px -12px rgba(212,80,30,.25),
    0 5px 15px -5px rgba(26,22,20,.15),
    inset 2px 3px 8px rgba(255,255,255,.35),
    inset -3px -4px 10px rgba(0,0,0,.06);
}
.geo-shape.coral    { background: linear-gradient(135deg,#ee6a3a,#a83a15); }
.geo-shape.ink      { background: linear-gradient(135deg,#3b332e,#0e0a08); }
.geo-shape.cream    { background: linear-gradient(135deg,#faf7f1,#e7dcc9); }
.geo-shape.sage     { background: linear-gradient(135deg,#6b9c58,#3b6229); }
.geo-shape.round    { border-radius: 50%; }
.geo-shape.diamond  { border-radius: 8%; transform: rotate(45deg); }
.geo-shape.ring     {
  background: transparent;
  border: 8px solid var(--accent);
  box-shadow: 0 12px 32px -8px rgba(212,80,30,.28);
}
.geo-shape.ring.ink { border-color: var(--ink); box-shadow: 0 12px 32px -8px rgba(26,22,20,.35); }
@keyframes geoFloat{
  0%,100%{ transform: translate3d(0, 0, 0) rotate(var(--r, 0deg)); }
  33%    { transform: translate3d(18px, -22px, 0) rotate(calc(var(--r, 0deg) + 12deg)); }
  66%    { transform: translate3d(-14px, 14px, 0) rotate(calc(var(--r, 0deg) - 8deg)); }
}
@media (max-width: 720px){ .geo-shape{ transform: scale(.55); opacity: .3; } }

/* ============================================================================
   TILT CARDS — subtle 3D on hover via mouse-position CSS vars
============================================================================ */
.tilt-card{
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px;
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2,.9,.3,1), box-shadow .3s;
  transform: perspective(1200px) rotateX(0deg) rotateY(0deg);
}
.tilt-card:hover{
  transform: perspective(1200px) rotateX(4deg) rotateY(-4deg) translateY(-3px);
  box-shadow: var(--sh-3);
}
.tilt-card::before{
  content: '';
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.6), transparent 60%);
  pointer-events: none; opacity: 0;
  transition: opacity .3s;
}
.tilt-card:hover::before{ opacity: .5; }

/* ============================================================================
   PRICING TIERS
============================================================================ */
.pricing-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 40px; align-items: stretch;
}
.tier{
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .3s cubic-bezier(.2,.9,.3,1), box-shadow .3s, border-color .2s;
}
.tier:hover{
  transform: translateY(-6px);
  box-shadow: var(--sh-3);
  border-color: var(--ink-4);
}
.tier.featured{
  background: var(--ink); color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-10px);
  box-shadow: var(--sh-3), var(--sh-warm);
}
.tier.featured:hover{ transform: translateY(-14px); }
.tier .badge{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.tier h3{
  font-family: 'Inter',sans-serif; font-weight: 600;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3); margin-bottom: 16px;
}
.tier.featured h3{ color: var(--ink-4); }
.tier .price{
  font-family: 'Fraunces',serif; font-weight: 400;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--ink);
}
.tier.featured .price{ color: var(--bg); }
.tier .price small{
  font-family: 'Inter',sans-serif; font-size: 15px; font-weight: 500;
  color: var(--ink-3); margin-left: 4px;
}
.tier.featured .price small{ color: var(--ink-4); }
.tier .who{
  color: var(--ink-3); font-size: 14px; margin: 12px 0 24px;
  min-height: 44px;
}
.tier.featured .who{ color: var(--ink-4); }
.tier ul{ list-style: none; margin-bottom: 26px; flex: 1; }
.tier ul li{
  padding: 8px 0;
  font-size: 14px;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-2);
}
.tier.featured ul li{ color: var(--bg); }
.tier ul li::before{
  content: '';
  width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
  background: var(--accent);
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12l5 5L20 7' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}
.tier .btn{ width: 100%; padding: 14px; justify-content: center; }
.tier.featured .btn-primary{ background: var(--accent); color: #fff; }
.tier.featured .btn-primary:hover{ background: #fff; color: var(--ink); }

/* ============================================================================
   FAQ ACCORDION
============================================================================ */
.faq-list{ max-width: 780px; margin: 0 auto; }
.faq-item{
  border-top: 1px solid var(--hairline);
  padding: 20px 0;
}
.faq-item:last-child{ border-bottom: 1px solid var(--hairline); }
.faq-item summary{
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: 'Fraunces',serif; font-weight: 400;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+';
  font-family: 'Inter',sans-serif; font-weight: 400;
  font-size: 24px; color: var(--accent);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item .faq-body{
  padding-top: 12px;
  font-size: 15.5px; line-height: 1.6;
  color: var(--ink-2);
}
.faq-item .faq-body p + p{ margin-top: 12px; }

/* ============================================================================
   STAT GRID — for solution pages
============================================================================ */
.stat-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 40px;
}
.stat-tile{
  padding: 28px 22px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  transition: transform .3s, box-shadow .3s;
}
.stat-tile:hover{ transform: translateY(-3px); box-shadow: var(--sh-2); }
.stat-tile .n{
  font-family: 'Fraunces',serif; font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3rem);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--ink);
}
.stat-tile .n em{ color: var(--accent); font-style: italic; }
.stat-tile .l{ font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.5; }

/* ============================================================================
   USE-CASE LIST — checkmark bullet items
============================================================================ */
.uc-list{ list-style: none; }
.uc-list li{
  padding: 14px 0;
  border-top: 1px solid var(--hairline-soft);
  display: flex; align-items: flex-start; gap: 14px;
}
.uc-list li:first-child{ border-top: 0; padding-top: 0; }
.uc-list .uc-ico{
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.uc-list .uc-text b{ display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.uc-list .uc-text span{ color: var(--ink-3); font-size: 14.5px; line-height: 1.55; }

/* ============================================================================
   ISOMETRIC ILLUSTRATION FRAMES — for feature "how it looks" visuals
============================================================================ */
.iso-frame{
  perspective: 1400px;
  padding: 20px;
  overflow: hidden;
}
.iso-stack{
  transform: rotateX(20deg) rotateY(-18deg) rotateZ(6deg);
  transform-style: preserve-3d;
  transform-origin: center;
  display: inline-block;
}
.iso-layer{
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--sh-2);
  display: block; margin: 12px 0;
  min-width: 240px;
}
.iso-layer.dark{ background: var(--ink); color: var(--bg); border-color: var(--ink); }
.iso-layer.accent{ background: var(--accent); color: #fff; border-color: transparent; }

/* ============================================================================
   ARTICLE / LEGAL DOC BODY — max-width serif prose
============================================================================ */
.article{
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 60px) var(--gutter) 80px;
}
.article header{ margin-bottom: 40px; text-align: center; }
.article header h1{ margin-bottom: 14px; }
.article header .meta{ color: var(--ink-3); font-size: 14px; }
.article .body{ font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.article .body h2{
  font-size: clamp(1.4rem, 2.5vw, 1.9rem); margin: 40px 0 14px;
  color: var(--ink);
}
.article .body h3{
  font-family: 'Inter',sans-serif; font-size: 17px; font-weight: 700;
  margin: 26px 0 10px; color: var(--ink);
}
.article .body p{ margin-bottom: 16px; }
.article .body ul, .article .body ol{ padding-left: 22px; margin-bottom: 16px; }
.article .body li{ margin-bottom: 8px; }
.article .body a{ color: var(--accent); border-bottom: 1px solid var(--accent-soft); }
.article .body a:hover{ background: var(--accent-soft); }
.article .body strong{ color: var(--ink); font-weight: 600; }
.article .body hr{ border: 0; border-top: 1px solid var(--hairline); margin: 30px 0; }
.article .body blockquote{
  border-left: 3px solid var(--accent);
  padding-left: 20px; margin: 20px 0;
  font-family: 'Fraunces',serif; font-size: 18px; color: var(--ink);
  font-style: italic;
}
.article .body code{
  background: var(--bg-2); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, Menlo, monospace; font-size: 14px;
}

/* ============================================================================
   BLOG / CHANGELOG LIST
============================================================================ */
.entry-list{ max-width: 780px; margin: 0 auto; }
.entry{
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: 140px 1fr; gap: 30px;
  align-items: start;
}
.entry:first-child{ border-top: 0; }
.entry .date{
  font-family: 'Inter',sans-serif; font-size: 12.5px;
  color: var(--ink-4); letter-spacing: 0.08em; text-transform: uppercase;
  padding-top: 6px;
}
.entry .content h3{
  font-family: 'Fraunces',serif; font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em; margin-bottom: 10px;
  color: var(--ink);
}
.entry .content h3 a{ color: inherit; }
.entry .content h3 a:hover{ color: var(--accent); }
.entry .content p{ font-size: 15px; color: var(--ink-3); line-height: 1.6; }
.entry .content .tag{
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 11px; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-top: 10px;
}
@media (max-width: 720px){
  .entry{ grid-template-columns: 1fr; gap: 10px; }
  .entry .date{ padding-top: 0; }
}

/* ============================================================================
   Responsive tweaks for new components
============================================================================ */
@media (max-width: 960px){
  .pricing-grid{ grid-template-columns: 1fr; }
  .tier.featured{ transform: none; }
  .stat-grid{ grid-template-columns: repeat(2, 1fr); }
  .tilt-card:hover{ transform: translateY(-3px); }
}
@media (max-width: 720px){
  .stat-grid{ grid-template-columns: 1fr; }
}
