/* ==========================================================================
   Framewyre — brand-new visual system ("a CRM with a voice")
   Palette rationale — every color below is sampled directly from the real
   Framewyre brand mark (the hexagon "F" badge + teal sound-wave arcs used in
   the header/footer <svg class="brand-mark"> and assets/favicon.svg):
     --navy   : #0E2A47 / #071B2E — the badge's gradient shadow + dark surfaces
     --blue   : #1D63D8 — the badge's gradient highlight, trustworthy tech,
                primary interactive color (links, primary CTAs, grid lines)
     --teal   : #14C9B7 / #5CE1D3 — the sound-wave arcs, Clara's "voice" signal
                and the site's high-energy accent (badges, pops, popular plan)
   No arbitrary/off-brand hues (e.g. the previous safety-orange + steel-gray
   "construction industrial" palette) remain — every accent below is a tint
   or shade of one of these three logo colors.
   ========================================================================== */

:root {
  /* ---- Brand (sampled from assets/favicon.svg + the header/footer <svg class="brand-mark">) ---- */
  --navy-950: #071B2E;
  --navy-900: #0E2A47;
  --navy-800: #163A5F;
  --blue-700: #164DA8;
  --blue-600: #1D63D8;
  --blue-500: #3B82F6;
  --blue-100: #E4EDFC;
  --teal-400: #14C9B7;
  --teal-300: #5CE1D3;
  --teal-100: #E1FBF7;

  /* ---- Neutrals ---- */
  --ink: #101828;
  --muted: #55617A;
  --muted-2: #8A96AC;
  --border: #E3E8F0;
  --bg: #F6F8FC;
  --card: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(7, 27, 46, 0.06), 0 1px 1px rgba(7, 27, 46, 0.04);
  --shadow-md: 0 12px 28px rgba(7, 27, 46, 0.12);
  --shadow-lg: 0 26px 54px rgba(7, 27, 46, 0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  /* bolder, condensed "industrial" heading face — falls back cleanly if the
     Google Font hasn't loaded yet, so layout never shifts/breaks */
  --font-head: "Oswald", "Segoe UI Semibold", var(--font-sans);

  /* faint blueprint-grid texture used sparingly on dark/navy surfaces */
  --blueprint-grid:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 44px 44px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.005em; margin: 0 0 0.4em; color: var(--navy-900); text-transform: none; }
p { margin: 0 0 0.9em; color: var(--muted); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
.text-center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #0E8C7F;
  background: var(--teal-100);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
/* on dark/navy surfaces the eyebrow stays teal — reserved as Clara's "voice" signal color */
.eyebrow.on-dark { background: rgba(20, 201, 183, 0.16); color: var(--teal-300); }

.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 34px; line-height: 1.18; }
.section-head p { font-size: 16px; margin-bottom: 0; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .callout-line { font-family: var(--font-head); font-weight: 700; font-size: 19px; line-height: 1.35; color: var(--navy-900); margin: 6px 0 16px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--blue-600); border: 1.5px solid var(--blue-600); }
.btn-outline:hover { background: var(--blue-600); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); padding: 13px 18px; }
.btn-ghost:hover { color: var(--blue-600); }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-outline-light { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.85); }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); border-color: #fff; }

/* ---------------- Logo ---------------- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: 0.01em; color: var(--navy-900); }
.brand-word span { color: var(--blue-600); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 248, 252, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.main-nav { display: flex; gap: 30px; }
.main-nav a { font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--blue-600); }
.header-cta { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; padding: 100px 0 80px; background: var(--blueprint-grid), var(--navy-950); }
.hero-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(7,27,46,0.95) 0%, rgba(14,42,71,0.88) 45%, rgba(14,42,71,0.62) 100%);
}
.hero-inner-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; }
.hero-copy h1 { font-size: 48px; line-height: 1.12; color: #fff; margin-bottom: 18px; }
.hero-copy h1 .accent { color: var(--teal-300); }
.hero-callout {
  font-family: var(--font-head); font-weight: 700; font-size: 20px; line-height: 1.35;
  color: var(--teal-300); max-width: 540px; margin: 0 0 18px;
}
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.86); max-width: 520px; margin-bottom: 28px; }
.hero-sub strong { color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-stat-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-stat-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px; padding: 9px 16px 9px 12px;
}
.hero-stat-chip .chip-icon { font-size: 18px; }
.hero-stat-chip .chip-num { font-size: 16px; font-weight: 800; color: #fff; }
.hero-stat-chip .chip-label { font-size: 11.5px; color: rgba(255,255,255,0.7); display: block; }
.hero-trust { font-size: 14px; color: rgba(255,255,255,0.72); margin: 0; }
.hero-trust strong { color: #fff; }

/* Kanban-in-a-window mockup (used in hero + features) */
.hero-visual { display: flex; justify-content: center; }
.mock-window { width: 100%; max-width: 540px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-titlebar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #EEF2F8; border-bottom: 1px solid var(--border); }
.mock-titlebar .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.mock-title { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mock-body { display: flex; min-height: 320px; }
.mock-sidebar { width: 54px; background: var(--navy-900); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.mock-side-item { width: 24px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.18); }
.mock-side-item.active { background: var(--teal-400); }
.mock-content { flex: 1; padding: 16px; background: var(--bg); }
.mock-kanban { display: flex; gap: 10px; }
.mock-col { flex: 1; min-width: 0; }
.mock-col-title { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.mock-card { background: #fff; border-radius: 8px; padding: 10px; box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.mock-card.highlight { border: 1.5px solid var(--teal-400); }
.mock-name { font-size: 12px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; line-height: 1.3; }
.mock-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--blue-100); color: var(--blue-600); }
.mock-pill.green { background: var(--teal-100); color: #0E8C7F; }
.mock-call-toast { margin-top: 14px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.mock-call-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px var(--teal-100); flex: none; }
.mock-call-title { font-size: 12px; font-weight: 800; color: var(--navy-900); }
.mock-call-sub { font-size: 11px; color: var(--muted); }

/* Clara portrait (photo avatar shown above the phone mockup in the "Meet Clara" section) */
.clara-visual { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.clara-portrait-wrap { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.clara-portrait {
  width: 160px; height: 160px; border-radius: 50%; overflow: hidden; flex: none;
  border: 4px solid rgba(255,255,255,0.9); box-shadow: var(--shadow-lg);
}
.clara-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clara-portrait-name {
  display: inline-block; background: var(--teal-400); color: #04352F; font-size: 11.5px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 12px; border-radius: 999px;
}

/* Phone / text conversation mockup */
.mock-phone-lg { width: 100%; max-width: 300px; background: var(--navy-950); border-radius: 34px; padding: 16px 12px; box-shadow: var(--shadow-lg); border: 5px solid #04121F; margin: 0 auto; }
.mock-phone-notch { width: 56px; height: 6px; border-radius: 4px; background: rgba(255,255,255,0.25); margin: 0 auto 10px; }
.mock-phone-screen { background: #fff; border-radius: 20px; padding: 14px; min-height: 300px; }
.mock-chat-header { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.mock-chat-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-600), var(--teal-400)); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }
.mock-chat-name { font-size: 13.5px; font-weight: 800; color: var(--navy-900); }
.mock-chat-status { font-size: 11px; color: var(--muted); }
.mock-chat-body { display: flex; flex-direction: column; gap: 8px; }
.chat-bubble { font-size: 12.5px; line-height: 1.35; padding: 8px 12px; border-radius: 14px; max-width: 88%; }
.chat-bubble.them { background: #EEF3F6; color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-bubble.me { background: var(--blue-600); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

/* ---------------- Generic split / card-grid layout helpers ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split.reverse .split-visual { order: -1; }
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card.on-navy { background: var(--navy-900); border-color: var(--navy-900); }
.feature-card.on-navy h3 { color: #fff; }
.feature-card.on-navy p { color: rgba(255,255,255,0.78); }
.feature-badge {
  position: absolute; top: -12px; left: 24px; background: var(--teal-400); color: #04352F; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; letter-spacing: 0.03em; text-transform: uppercase;
}
.feature-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); margin-bottom: 16px; display: flex; align-items: center; justify-content: center; background: var(--blue-100); }
.feature-icon svg { width: 24px; height: 24px; stroke: var(--blue-600); }
.feature-card.on-navy .feature-icon { background: rgba(255,255,255,0.12); }
.feature-card.on-navy .feature-icon svg { stroke: var(--teal-300); }
.feature-card h3 { font-size: 17px; margin-bottom: 6px; }
.feature-card p { font-size: 13.5px; margin-bottom: 0; }
.feature-card.clara-feature { border: 1.5px solid rgba(20,201,183,0.45); }
.feature-card.clara-feature .feature-icon { background: var(--teal-100); }
.feature-card.clara-feature .feature-icon svg { stroke: #0E8C7F; }
.clara-tag {
  display: inline-block; background: var(--teal-400); color: #04352F; font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
}
.clara-tag-inline {
  display: inline-block; background: var(--teal-100); color: #0E8C7F; font-size: 11px; font-weight: 800;
  letter-spacing: 0.03em; text-transform: uppercase; padding: 2px 9px; border-radius: 999px; vertical-align: 1px;
}
.coming-soon-tag {
  display: inline-block; background: #E7EAF0; color: var(--muted); font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
  border: 1px solid var(--border);
}
.feature-card.coming-soon-feature { opacity: 0.85; }
.feature-card.coming-soon-feature .feature-icon { background: #EEF1F6; }
.feature-card.coming-soon-feature .feature-icon svg { stroke: var(--muted-2); }

/* ---------------- Stat band ---------------- */
.stat-band { position: relative; background: var(--blueprint-grid), var(--navy-950); }
.stat-band::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--teal-400), var(--blue-600));
  opacity: 0.85;
}
.stat-band .section-head h2, .stat-band .section-head p { color: #fff; }
.stat-band .section-head p { color: rgba(255,255,255,0.7); }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius); padding: 30px 24px; text-align: center; }
.stat-card .stat-number { display: block; font-family: var(--font-head); font-size: 44px; font-weight: 700; color: var(--teal-300); line-height: 1.1; }
.stat-card .stat-label { display: block; font-size: 13.5px; color: rgba(255,255,255,0.72); margin-top: 8px; }
.stat-card.pop .stat-number { color: var(--blue-500); }

/* generic light stat card used on light backgrounds */
.stat-card.light { background: var(--card); border: 1px solid var(--border); }
.stat-card.light .stat-number { color: var(--blue-600); }
.stat-card.light .stat-label { color: var(--muted); }

/* ---------------- Voice orb (Clara) ---------------- */
.voice-orb { position: relative; width: 190px; height: 190px; border-radius: 50%; margin: 0 auto; background: radial-gradient(circle at 32% 28%, var(--teal-300), var(--blue-600) 78%); display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); }
.voice-orb.sm { width: 130px; height: 130px; }
.voice-orb svg { width: 74px; height: 74px; }
.voice-orb.sm svg { width: 50px; height: 50px; }
.voice-orb-ring { position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(92, 225, 211, 0.55); animation: voice-spin 18s linear infinite; }
@keyframes voice-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.voice-badge { display: flex; align-items: center; gap: 8px; justify-content: center; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; width: fit-content; margin: 18px auto 0; }
.voice-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); box-shadow: 0 0 0 4px rgba(20,201,183,0.3); }

/* ---------------- In-browser live voice demo (#talk-to-clara) ---------------- */
/* States are driven by data-state / data-speaking on the section, set by
   js/clara-live.js: idle | connecting | live | ended | error | mic-denied. */
.clara-live { margin-top: 4px; }
.clara-live-status { margin: 18px 0 0; max-width: 520px; font-size: 14px; font-weight: 700; color: var(--muted); min-height: 20px; }
.clara-live-timer { margin: 6px 0 0; font-size: 12.5px; font-weight: 800; color: var(--blue-600); letter-spacing: 0.01em; }
.clara-live-caption { margin: 12px 0 0; max-width: 520px; font-size: 13.5px; color: var(--ink); background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--teal-400); border-radius: var(--radius-sm); padding: 10px 14px; }
.clara-live-fineprint { margin: 14px 0 0; max-width: 520px; font-size: 12px; color: var(--muted); }

[data-clara-live][data-state="connecting"] .clara-live-status { color: var(--blue-600); }
[data-clara-live][data-state="live"] .clara-live-status { color: #0E8C7F; }
[data-clara-live][data-state="ended"] .clara-live-status { color: var(--navy-900); }
[data-clara-live][data-state="error"] .clara-live-status,
[data-clara-live][data-state="mic-denied"] .clara-live-status { color: #C8465A; }

/* the orb reacts: spins faster while connected, pulses while Clara speaks */
[data-clara-live][data-state="live"] .voice-orb-ring,
[data-clara-live][data-state="connecting"] .voice-orb-ring { animation-duration: 4s; border-style: solid; border-color: rgba(92, 225, 211, 0.85); }
[data-clara-live][data-speaking="clara"] .voice-orb { animation: clara-live-pulse 1.1s ease-in-out infinite; }
@keyframes clara-live-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.055); } }

/* the shared .voice-badge is styled for dark sections; this one sits on light */
#talk-to-clara .voice-badge { background: var(--card); border-color: var(--border); color: var(--navy-900); box-shadow: var(--shadow-sm); }
#talk-to-clara[data-state="live"] .voice-badge .dot { background: #0E8C7F; }
#talk-to-clara[data-state="error"] .voice-badge .dot,
#talk-to-clara[data-state="mic-denied"] .voice-badge .dot { background: #C8465A; box-shadow: 0 0 0 4px rgba(200, 70, 90, 0.22); }

@media (prefers-reduced-motion: reduce) {
  [data-clara-live] .voice-orb, [data-clara-live] .voice-orb-ring { animation: none !important; }
}

/* ---------------- Trust strip ---------------- */
.strip { border-top: 2px solid var(--teal-400); border-bottom: 2px solid var(--teal-400); padding: 24px 0; background: var(--blue-100); }
.strip-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--muted); margin: 0; letter-spacing: 0.01em; }

/* ---------------- Compare table (why-us) ---------------- */
.compare-table { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.compare-row { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); }
.compare-row:not(:last-child) { border-bottom: 1px solid var(--border); }
.compare-cell { padding: 16px 18px; font-size: 13.5px; }
.compare-cell.label { font-weight: 800; color: var(--navy-900); background: #FAFBFE; }
.compare-cell.them { color: var(--muted); }
.compare-cell.us { color: var(--navy-900); font-weight: 700; background: var(--teal-100); }
.compare-head .compare-cell { font-weight: 800; font-size: 13.5px; padding-top: 18px; padding-bottom: 18px; }
.compare-head .them span, .compare-head .us span { display: block; font-weight: 500; font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.compare-head .us { color: #0E8C7F; }
.compare-cell .x { color: #C8465A; font-weight: 800; }
.compare-cell .check { color: #0E8C7F; font-weight: 800; }

/* ---------------- Pricing ---------------- */
.pricing-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.pricing-badge { display: inline-flex; align-items: center; background: var(--teal-100); border: 1px solid rgba(20,201,183,0.35); color: #0E8C7F; font-size: 12.5px; font-weight: 800; padding: 8px 16px; border-radius: 999px; }
.pricing-badge.alt { background: var(--blue-100); border-color: rgba(29,99,216,0.25); color: var(--blue-600); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow-sm); padding: 32px 26px; position: relative; }
.price-card.popular { border-color: var(--teal-400); box-shadow: var(--shadow-lg); transform: scale(1.03); }
.price-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--teal-400); color: #04352F; font-size: 11px; font-weight: 800; padding: 4px 14px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.price-card h3 { font-size: 19px; margin-bottom: 4px; }
.price-sub { font-size: 13px; margin-bottom: 16px; }
.price-amount { font-family: var(--font-head); font-size: 38px; font-weight: 700; color: var(--navy-900); margin-bottom: 6px; }
.price-amount .currency { font-size: 21px; vertical-align: 8px; }
.price-amount .period { font-size: 14px; font-weight: 600; color: var(--muted); }
.price-clara { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #0E8C7F; margin-bottom: 18px; }
.price-features { list-style: none; padding: 0; margin: 0 0 24px; }
.price-features li { font-size: 13.5px; padding: 8px 0; border-bottom: 1px solid var(--border); padding-left: 22px; position: relative; color: var(--ink); }
.price-features li::before { content: "\2713"; position: absolute; left: 0; top: 8px; font-size: 11px; font-weight: 800; color: var(--teal-400); }
.price-features li:last-child { border-bottom: none; }
.price-guarantee { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 0; }

/* ---------------- Final CTA band ---------------- */
.final-cta { background: var(--blueprint-grid), linear-gradient(120deg, var(--navy-950), var(--navy-800)); }
.final-cta-inner { text-align: center; }
.final-cta h2 { color: #fff; font-size: 34px; }
.final-cta p { color: rgba(255,255,255,0.75); font-size: 16px; margin-bottom: 26px; }
.final-cta-guarantee { margin: 18px 0 0; font-size: 12.5px; color: rgba(255,255,255,0.55); }

/* ---------------- Forms ---------------- */
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label { font-size: 13px; font-weight: 700; }
.form-row input, .form-row select, .form-row textarea {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 11px 14px; font-family: inherit; font-size: 14px; color: var(--ink); resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-600); }
.form-note { margin-top: 14px; font-size: 13px; color: var(--navy-900); background: var(--blue-100); padding: 10px 14px; border-radius: var(--radius-sm); }
.tc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* forms on dark surfaces (footer) */
.on-dark .form-row label { color: rgba(255,255,255,0.8); }
.on-dark .form-row input, .on-dark .form-row select, .on-dark .form-row textarea {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); color: #fff;
}
.on-dark .form-row input::placeholder, .on-dark .form-row textarea::placeholder { color: rgba(255,255,255,0.35); }
.on-dark .form-note { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.75); }

/* ---------------- Page header (inner pages) ---------------- */
.page-hero { background: var(--blueprint-grid), linear-gradient(120deg, var(--navy-950), var(--navy-800)); padding: 70px 0 60px; text-align: center; }
.page-hero h1 { color: #fff; font-size: 40px; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.78); font-size: 16.5px; max-width: 620px; margin: 0 auto; }

/* ---------------- Legal pages (Terms / Privacy) ---------------- */
.legal-shell { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.legal-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 10px; }
.legal-toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.legal-toc a { font-size: 13px; font-weight: 600; color: var(--muted); }
.legal-toc a:hover { color: var(--blue-600); }
.legal-updated { font-size: 12.5px; color: var(--muted-2); margin: -8px 0 30px; }
.legal-content h2 { font-size: 22px; margin-top: 40px; scroll-margin-top: 100px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 16px; color: var(--navy-900); margin-top: 22px; }
.legal-content p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.legal-content ul, .legal-content ol { margin: 0 0 16px; padding-left: 22px; }
.legal-content li { font-size: 14.5px; line-height: 1.7; color: var(--muted); margin-bottom: 6px; }
.legal-content strong { color: var(--navy-900); }
.legal-callout {
  background: var(--teal-100); border: 1.5px solid rgba(20,201,183,0.4); border-radius: var(--radius);
  padding: 22px 24px; margin: 24px 0;
}
.legal-callout h3 { margin-top: 0; color: #0E5E54; }
.legal-callout p, .legal-callout li { color: #0E5E54; }
.legal-callout .clara-tag-inline { margin-bottom: 8px; }
.legal-callout.coral { background: var(--blue-100); border-color: rgba(29,99,216,0.35); }
.legal-callout.coral h3 { color: var(--blue-600); }
.legal-callout.coral p, .legal-callout.coral li { color: var(--navy-900); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.85); padding: 76px 0 38px; }
.footer-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; }
.site-footer h2 { color: #fff; font-size: 25px; }
.site-footer p { color: rgba(255,255,255,0.6); }
.site-footer form { margin-top: 18px; }
.site-footer .btn-primary { margin-top: 6px; }
.footer-brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-word { color: #fff; }
.footer-brand .brand-word span { color: var(--teal-300); }
.footer-tagline { max-width: 320px; }
.footer-contact p { margin: 0 0 6px; font-size: 14px; color: rgba(255,255,255,0.75); }
.footer-fineprint { font-size: 11.5px; color: rgba(255,255,255,0.4); margin-top: 8px; }
.footer-links { display: flex; gap: 18px; margin: 22px 0 26px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.85); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--teal-300); text-decoration-color: var(--teal-300); }
.footer-links a.active { color: var(--teal-300); text-decoration-color: var(--teal-300); }
.copyright { font-size: 12px; color: rgba(255,255,255,0.4); }

/* ---------------- Utility bg helpers ---------------- */
.bg-alt { background: #EEF2F8; }
.bg-navy { background: var(--blueprint-grid), var(--navy-950); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner-grid, .split, .pipeline-preview-inner { grid-template-columns: 1fr; }
  .split-visual { order: -1; }
  .cards-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price-card.popular { transform: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .legal-shell { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .compare-cell.label { display: none; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero-copy h1 { font-size: 32px; }
  .hero-callout { font-size: 16.5px; margin-bottom: 14px; }
  .page-hero h1 { font-size: 28px; }
  .cards-grid, .cards-grid.cols-4 { grid-template-columns: 1fr; }
  .form-row-split { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .section-head h2 { font-size: 25px; }
  .section-head .callout-line { font-size: 16.5px; }

  .site-header.nav-open .main-nav {
    display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); padding: 20px 24px; border-bottom: 1px solid var(--border); gap: 16px;
  }
  .site-header.nav-open .header-cta {
    display: flex; flex-direction: column; position: absolute; top: calc(100% + 190px); left: 0; right: 0;
    padding: 0 24px 20px; background: var(--bg);
  }
}
