/* ============================================================
   Callent — Light & minimal design system (Stripe / Linear style)
   One refined indigo accent · thin borders · soft layered shadows
   ============================================================ */

:root {
  --accent: #4f46e5;
  --accent-rgb: 79, 70, 229;
  --accent-hover: #4338ca;
  --accent-2: #7c6cf5;
  --gradient: linear-gradient(135deg, #4f46e5 0%, #7c6cf5 100%);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme (default) */
:root,
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --border: #e9ebef;
  --border-strong: #d9dce2;

  --text: #0c0d12;
  --text-muted: #5a6069;
  --text-faint: #8a909a;

  --accent-soft: #eef0fe;
  --accent-text: #4f46e5;

  --nav-bg: rgba(255, 255, 255, 0.8);
  --menu-bg: rgba(255, 255, 255, 0.98);

  --chip-green-bg: #e9f9ef;
  --chip-green-text: #15803d;
  --chip-green-bd: #bbe6c9;
  --chip-indigo-bg: #eef0fe;
  --chip-indigo-text: #4338ca;
  --chip-indigo-bd: #d3d6fb;

  --error: #dc2626;
  --glow: rgba(79, 70, 229, 0.14);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 16px 40px rgba(16, 24, 40, 0.10);

  --ink-panel: #0c0d12;
}

/* Dark theme (refined) */
:root[data-theme="dark"] {
  --bg: #0b0c0f;
  --bg-subtle: #101116;
  --surface: #15171d;
  --surface-2: #1b1e25;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f3f4f6;
  --text-muted: #9aa1ac;
  --text-faint: #6b7280;

  --accent: #6d6af5;
  --accent-rgb: 109, 106, 245;
  --accent-hover: #837fff;
  --accent-soft: rgba(109, 106, 245, 0.14);
  --accent-text: #a5a3ff;

  --nav-bg: rgba(11, 12, 15, 0.78);
  --menu-bg: rgba(11, 12, 15, 0.98);

  --chip-green-bg: rgba(34, 197, 94, 0.13);
  --chip-green-text: #4ade80;
  --chip-green-bd: rgba(34, 197, 94, 0.3);
  --chip-indigo-bg: rgba(109, 106, 245, 0.16);
  --chip-indigo-text: #b7b5ff;
  --chip-indigo-bd: rgba(109, 106, 245, 0.32);

  --error: #fca5a5;
  --glow: rgba(109, 106, 245, 0.22);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);

  --ink-panel: #15171d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(var(--accent-rgb), 0.18);
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

.container-narrow {
  width: min(780px, 92%);
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.12rem;
}

p {
  color: var(--text);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-text);
  margin-bottom: 0.85rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    box-shadow 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.3);
}

.btn-outline {
  border-color: var(--border-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--text-faint);
  background: var(--surface-2);
}

.btn-ghost {
  color: var(--text-muted);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-2);
}

.btn-light {
  background: #fff;
  color: #14151a;
}

.btn-light:hover {
  background: #eceef3;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 0.85rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
}

.logo-mark svg {
  display: block;
}

.nav-links {
  display: flex;
  gap: 0.4rem;
  margin-left: 1rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: auto;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

:root[data-theme="dark"] .icon-moon,
:root[data-theme="light"] .icon-sun {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: 0.2rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 5% 1.2rem;
  background: var(--menu-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a {
  padding: 0.7rem 0.5rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.mobile-menu a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.mobile-menu .btn {
  margin-top: 0.6rem;
  color: #fff;
}

.mobile-menu.open {
  display: flex;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 9.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  max-width: 130vw;
  background: radial-gradient(ellipse at center, var(--glow) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 4rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero h1 {
  margin-bottom: 1.3rem;
}

.hero-sub {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 33rem;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-unit {
  font-size: 1.1rem;
}

.hero-stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Hero visual / call card ---------- */
.hero-visual {
  position: relative;
}

.call-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  box-shadow: var(--shadow-lg);
}

.call-card-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.caller-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--accent);
  flex-shrink: 0;
}

.call-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
}

.call-status {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse-dot 1.8s infinite;
}

.waveform {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.waveform span {
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
  animation: wave 1.1s ease-in-out infinite;
  animation-play-state: paused;
  opacity: 0.45;
  transition: opacity 0.2s ease;
}

/* Only animate while a line of the example call is actually playing */
.waveform.is-speaking span {
  animation-play-state: running;
  opacity: 1;
}

.waveform span:nth-child(1) { height: 9px; animation-delay: 0s; }
.waveform span:nth-child(2) { height: 18px; animation-delay: 0.15s; }
.waveform span:nth-child(3) { height: 26px; animation-delay: 0.3s; }
.waveform span:nth-child(4) { height: 16px; animation-delay: 0.45s; }
.waveform span:nth-child(5) { height: 8px; animation-delay: 0.6s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1.2); }
}

.call-transcript {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 0;
}

.bubble {
  max-width: 86%;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 0.58rem 0.85rem;
  border-radius: 12px;
  opacity: 0;
  animation: bubble-in 0.5s ease forwards;
}

.bubble-caller {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.bubble-ai {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble:nth-child(1) { animation-delay: 0.3s; }
.bubble:nth-child(2) { animation-delay: 1s; }
.bubble:nth-child(3) { animation-delay: 1.7s; }
.bubble:nth-child(4) { animation-delay: 2.4s; }

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.call-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

.chip-green {
  background: var(--chip-green-bg);
  color: var(--chip-green-text);
  border: 1px solid var(--chip-green-bd);
}

.chip-indigo {
  background: var(--chip-indigo-bg);
  color: var(--chip-indigo-text);
  border: 1px solid var(--chip-indigo-bd);
}

.floating-chip {
  position: absolute;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  box-shadow: var(--shadow-md);
}

.floating-chip-1 {
  top: -18px;
  left: -22px;
}

.floating-chip-2 {
  bottom: -16px;
  right: -14px;
}

/* ---------- Trust bar ---------- */
.trustbar {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.trustbar p {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem 2.4rem;
}

.trust-logos span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.02em;
  color: var(--text-faint);
  transition: color 0.2s ease;
}

.trust-logos span:hover {
  color: var(--text);
}

/* ---------- Sections ---------- */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 660px;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  margin-top: 0.9rem;
  font-size: 1.05rem;
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 1.2rem;
}

.features-grid {
  grid-template-columns: repeat(3, 1fr);
}

.usecases-grid,
.testimonials-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  border-radius: 11px;
  background: var(--accent-soft);
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.card h3 {
  margin-bottom: 0.45rem;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.soon-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #fff;
  background: var(--gradient);
  border-radius: 999px;
  padding: 0.42rem 0.75rem 0.42rem 0.6rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.soon-icon {
  flex-shrink: 0;
}

/* Soft light sweep across the badge */
.soon-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: soon-shine 3.2s var(--ease) infinite;
  pointer-events: none;
}

@keyframes soon-shine {
  60%,
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  .soon-pill::after { animation: none; }
}

.card p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.card-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.card-row .card-icon {
  margin-bottom: 0;
}

/* ---------- Steps ---------- */
.steps {
  display: flex;
  align-items: stretch;
  gap: 1.1rem;
}

.step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-text);
  border-radius: 10px;
  background: var(--accent-soft);
}

.step h3 {
  margin-bottom: 0.45rem;
}

.step p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.step-connector {
  align-self: center;
  width: 40px;
  height: 1px;
  background: var(--border-strong);
  flex-shrink: 0;
}

/* ---------- Live examples demo ---------- */
.demo-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.2rem;
}

.demo-tab {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.demo-tab:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.demo-tab.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}

.demo-stage {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 1.2rem;
  align-items: stretch;
  max-width: 940px;
  margin-inline: auto;
}

.phone {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-md);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.phone-transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.1rem 0.1rem;
  min-height: 300px;
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
}

.phone-transcript .bubble {
  animation-delay: 0s;
}

.bubble-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.55;
  margin-bottom: 0.2rem;
}

.typing {
  display: inline-flex;
  gap: 4px;
  align-self: flex-end;
  background: var(--accent);
  border-radius: 12px;
  border-bottom-right-radius: 4px;
  padding: 0.65rem 0.85rem;
}

.typing.typing-caller {
  align-self: flex-start;
  background: var(--surface-2);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
}

.typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: typing-bounce 1s infinite;
}

.typing.typing-caller i {
  background: var(--text-faint);
}

.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.phone-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.phone-key {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
}

.phone-key-end {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.phone-key-replay,
.phone-key-mute {
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.phone-key-replay:hover,
.phone-key-mute:hover {
  color: var(--accent-text);
  border-color: var(--accent);
}

.phone-key-mute .icon-muted,
.phone-key-mute.is-muted .icon-sound {
  display: none;
}

.phone-key-mute.is-muted .icon-muted {
  display: block;
}

.demo-audio-prompt {
  align-self: center;
  margin-bottom: 0.75rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.demo-audio-prompt:hover {
  background: var(--accent);
  color: #fff;
}

.demo-side {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.demo-side h3 {
  margin-bottom: 0.2rem;
}

.demo-side-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.3rem;
}

.action-feed {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.action-feed li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(12px);
  animation: feed-in 0.4s ease forwards;
}

@keyframes feed-in {
  to { opacity: 1; transform: translateX(0); }
}

.feed-check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}

.demo-result {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}

.demo-result .chip {
  opacity: 0;
  animation: feed-in 0.4s ease forwards;
}

/* ---------- Brand statement (minimal) ---------- */
.statement {
  position: relative;
  text-align: center;
  padding: 7rem 0;
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
  overflow: hidden;
}

.statement-orb {
  display: none;
}

.statement-inner {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-inline: auto;
}

.statement h2 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  letter-spacing: -0.035em;
}

.statement p {
  margin: 1.4rem auto 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 34rem;
}

.statement-cta {
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  margin-top: 2rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(var(--plan-cols, 3), 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.price-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.price-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.popular-pill {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  white-space: nowrap;
}

.price {
  margin: 0.8rem 0 0.3rem;
  color: var(--text-muted);
  font-weight: 500;
}

.price .amount {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  flex-grow: 1;
}

.price-card li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
  color: var(--accent-text);
}

.price-card li.not-included {
  opacity: 0.55;
  text-decoration: line-through;
}

.price-card li.not-included::before {
  content: "✕";
  color: var(--text-muted);
}

/* Pricing loader — skeleton cards shown while plans load from the CRM */
.price-card-skeleton {
  gap: 0.9rem;
  pointer-events: none;
}

.price-card-skeleton .sk {
  display: block;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.sk-title { width: 40%; height: 1.3rem; }
.sk-price { width: 55%; height: 2.4rem; margin-top: 0.3rem; }
.sk-desc { width: 90%; height: 0.9rem; margin-bottom: 0.8rem; }
.sk-line { width: 75%; height: 0.8rem; }
.sk-btn { height: 2.8rem; margin-top: auto; border-radius: 999px; }

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Testimonials ---------- */
.quote p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.2rem;
}

.quote footer {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.3rem;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: var(--border-strong);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.98rem;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-faint);
  transition: transform 0.25s ease, color 0.25s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent-text);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 0.94rem;
  padding-bottom: 1.2rem;
}

/* ---------- CTA ---------- */
.cta {
  padding: 6rem 0;
}

.cta-inner {
  position: relative;
  text-align: center;
  background: var(--ink-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  overflow: hidden;
}

.cta-inner::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 320px;
  background: radial-gradient(ellipse at center, rgba(var(--accent-rgb), 0.45) 0%, transparent 65%);
  pointer-events: none;
}

.cta-inner h2,
.cta-inner p {
  position: relative;
  color: #fff;
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.08rem;
  margin: 0.8rem auto 2rem;
  max-width: 32rem;
}

.cta-inner .hero-cta {
  position: relative;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  background: var(--bg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.9rem;
  max-width: 18rem;
}

.footer-contact {
  margin-top: 0.9rem !important;
  font-size: 0.85rem !important;
  line-height: 1.7;
}

.nowrap {
  white-space: nowrap;
}

.footer-contact a {
  color: var(--text);
  font-weight: 600;
}

.footer-contact a:hover {
  color: var(--accent-text);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease),
    filter 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
  filter: none;
}

.reveal-scale {
  transform: scale(0.96) translateY(24px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-blur {
  filter: blur(10px);
}

/* ---------- Forms ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field label .req {
  color: var(--accent-text);
}

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  width: 100%;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--text-faint);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238a909a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.phone-fields {
  min-width: 0;
}

.phone-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.phone-inputs {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 1rem;
}

.country-code-field input {
  text-align: center;
}

.field-full {
  grid-column: 1 / -1;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: left;
}

.form-consent input {
  width: auto;
  margin-top: 0.2rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-consent a {
  color: var(--accent-text);
  text-decoration: underline;
}

/* Inline validation */
.field-error {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--error);
  margin-top: 0.15rem;
}

.field-error.show {
  display: flex;
}

.field-error::before {
  content: "⚠";
  font-size: 0.8rem;
}

.field.invalid label {
  color: var(--error);
}

.phone-fields.invalid .phone-label {
  color: var(--error);
}

.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.phone-fields.invalid input {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

.form-consent.invalid span {
  color: var(--error);
}

.form-consent.invalid input {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(12, 13, 18, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 3rem);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 2.2rem;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.28rem 0.8rem;
  margin-bottom: 1rem;
}

.modal h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.modal-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal-form .btn {
  margin-top: 0.4rem;
}

.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.modal.is-success .modal-form,
.modal.is-success .modal-eyebrow,
.modal.is-success > h2:not(.success-title),
.modal.is-success > .modal-sub {
  display: none;
}

.modal.is-success .modal-success {
  display: flex;
}

.success-check {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 1.2rem;
}

.modal-success h2 {
  margin-bottom: 0.5rem;
}

.modal-success p {
  color: var(--text-muted);
  max-width: 24rem;
}

.form-status {
  display: none;
  align-items: center;
  gap: 0.6rem;
  grid-column: 1 / -1;
  background: var(--chip-green-bg);
  border: 1px solid var(--chip-green-bd);
  color: var(--chip-green-text);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.show {
  display: flex;
}

.newsletter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: center;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter input {
  flex: 1;
  min-width: 220px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

.newsletter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

.newsletter input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}

/* ============================================================
   Sub-pages
   ============================================================ */
.subpage-hero {
  position: relative;
  padding: 8.5rem 0 2.5rem;
  text-align: center;
  overflow: hidden;
}

.subpage-hero .hero-glow {
  height: 380px;
}

.subpage-hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
}

.subpage-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 38rem;
  margin: 1rem auto 0;
}

.subpage-hero .meta-updated {
  display: inline-block;
  margin-top: 1.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.32rem 1rem;
}

/* Legal / doc layout */
.doc-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 3rem;
  align-items: start;
  padding-bottom: 4rem;
}

.doc-toc {
  position: sticky;
  top: 96px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.doc-toc h4 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}

.doc-toc ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-toc a {
  display: block;
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.4;
  transition: color 0.18s ease;
}

.doc-toc a:hover {
  color: var(--accent-text);
}

.doc-content {
  max-width: 740px;
}

.doc-content .doc-section {
  scroll-margin-top: 96px;
  margin-bottom: 2.5rem;
}

.doc-content h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}

.doc-content h2 .num {
  color: var(--accent-text);
  font-size: 0.95rem;
  font-weight: 700;
}

.doc-content h3 {
  font-size: 1.02rem;
  margin: 1.4rem 0 0.6rem;
}

.doc-content p,
.doc-content li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.doc-content p {
  margin-bottom: 1rem;
}

.doc-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
}

.doc-content ul li {
  position: relative;
  padding-left: 1.4rem;
}

.doc-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.doc-content a {
  color: var(--accent-text);
  text-decoration: underline;
}

.doc-content strong {
  color: var(--text);
}

.doc-callout {
  display: flex;
  gap: 0.85rem;
  background: var(--accent-soft);
  border: 1px solid var(--chip-indigo-bd);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}

.doc-callout .doc-callout-icon {
  font-size: 1.1rem;
}

.doc-callout p {
  margin: 0;
  font-size: 0.9rem;
}

/* Security */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 1.2rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  box-shadow: var(--shadow-sm);
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  padding-bottom: 4rem;
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
}

.contact-info > p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-method {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.contact-method:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.contact-method .card-icon {
  margin-bottom: 0;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

.contact-method h3 {
  font-size: 0.98rem;
  margin-bottom: 0.2rem;
}

.contact-method p,
.contact-method a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.contact-method a {
  color: var(--accent-text);
}

.contact-method a:hover {
  text-decoration: underline;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.contact-form-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}

.contact-form-card > p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.6rem;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* About */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.stat-box {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1rem;
  box-shadow: var(--shadow-sm);
}

.stat-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.stat-box span {
  font-size: 0.87rem;
  color: var(--text-muted);
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-split .prose p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-visual .mini-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.about-visual .mini-card .card-icon {
  margin-bottom: 0.7rem;
}

.about-visual .mini-card h3 {
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.about-visual .mini-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 1.2rem;
}

.team-card {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.team-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.team-avatar {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
}

.team-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.15rem;
}

.team-card .team-role {
  font-size: 0.85rem;
  color: var(--accent-text);
  font-weight: 600;
}

.team-card .team-bio {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: 1.4rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  font-size: 2.6rem;
  background: var(--accent-soft);
  border-bottom: 1px solid var(--border);
}

.blog-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.3rem;
  flex: 1;
}

.blog-tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.24rem 0.65rem;
}

.blog-body h3 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.blog-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--text-faint);
  margin-top: 0.4rem;
}

.blog-meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-faint);
}

.blog-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}

.blog-featured .blog-thumb {
  aspect-ratio: auto;
  border-bottom: none;
  border-right: 1px solid var(--border);
  font-size: 4rem;
  min-height: 250px;
}

.blog-featured .blog-body {
  padding: 2rem;
  justify-content: center;
}

.blog-featured h3 {
  font-size: 1.5rem;
}

/* Careers */
.roles-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.role-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.role-info h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.role-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.role-tags span {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.26rem 0.75rem;
}

.role-card .btn {
  flex-shrink: 0;
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.2rem;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  /* Four plans are too cramped side by side — show them as a 2×2 grid */
  .pricing-grid:has(> .price-card:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
    margin-inline: auto;
  }
}

@media (max-width: 960px) {
  /* Full nav needs ~960px; collapse to the hamburger menu below that */
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-cta,
  .hero-stats {
    justify-content: center;
  }

  .hero-stats {
    display: inline-flex;
  }

  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
  }

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

  .demo-stage {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .steps {
    flex-direction: column;
  }

  .step-connector {
    width: 1px;
    height: 26px;
    margin-inline: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .doc-layout {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .doc-toc {
    position: static;
  }

  .contact-layout,
  .about-split,
  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured .blog-thumb {
    border-right: none;
    border-bottom: 1px solid var(--border);
    min-height: 170px;
  }

  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Brand on its own row, link groups in three columns beneath */
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 26rem;
  }
}

@media (max-width: 680px) {
  .pricing-grid:has(> .price-card:nth-child(4)) {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .hero {
    padding: 7.5rem 0 3.5rem;
  }

  .section {
    padding: 4rem 0;
  }

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

  .modal-form,
  .contact-form,
  .field-row {
    grid-template-columns: 1fr;
  }

  .phone-inputs {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.6rem;
  }

  .role-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .role-card .btn {
    width: 100%;
  }

  .footer {
    padding-top: 3rem;
  }

  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem 1.25rem;
    padding-bottom: 2rem;
  }

  .footer-brand {
    text-align: center;
  }

  .footer-brand p {
    margin-inline: auto;
  }

  /* Centered link groups, with larger tap targets */
  .footer-col {
    gap: 0.15rem;
    align-items: center;
    text-align: center;
  }

  .footer-col a {
    padding: 0.35rem 0;
  }

  .floating-chip {
    display: none;
  }
}

@media (max-width: 480px) {
  /* Stacked CTAs read better at equal width */
  .hero-cta,
  .statement-cta {
    flex-direction: column;
  }

  .hero-cta .btn,
  .statement-cta .btn {
    width: 100%;
  }

  .modal {
    padding: 1.6rem 1.25rem;
  }

  /* Two link groups per row; the last one centered on its own row */
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-col:last-child {
    grid-column: 1 / -1;
  }
}

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

  .scroll-progress {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }

  .waveform span,
  .badge-dot,
  .live-dot,
  .typing i {
    animation: none;
  }

  .bubble {
    opacity: 1;
    animation: none;
  }

  .price-card-skeleton .sk {
    animation: none;
  }

  .action-feed li,
  .demo-result .chip {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
