/* =========================================================
   Promptline
   Dark navy sections, cool off-white light sections.
   Flat surfaces, hairline borders, one quiet glow (hero only).
   ========================================================= */

:root {
  /* Dark */
  --navy: #0B1220;            /* nav, hero, dark sections, footer */
  --raised: #111A2B;          /* surfaces on dark */
  --raised-2: #16213A;        /* hover / active on dark */
  --hairline-dark: rgba(255, 255, 255, 0.08);
  --on-dark: #E6EAF2;
  --on-dark-2: #8B95A7;

  /* Light */
  --paper: #F3F5F8;           /* light sections */
  --card: #FFFFFF;
  --hairline: #E3E7EE;
  --ink: #0B1220;
  --muted: #5B6577;
  --card-shadow: 0 1px 2px rgba(11, 18, 32, 0.06);

  /* Accents */
  --blue: #3B7BFF;            /* links, small icons, focus, active toggle */
  --blue-rgb: 59, 123, 255;
  --amber: #F5A524;
  --amber-shade: linear-gradient(180deg, #F7B23B 0%, #F09A12 100%);
  --green-rgb: 34, 197, 94;
  --red-rgb: 239, 68, 68;

  /* Spacing */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s8: 96px;
  --section: 112px;
  --gutter: 24px;

  /* Shape + type */
  --radius: 12px;
  --radius-btn: 10px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: 1.0625rem;          /* 17px */
  --text-sm: 0.9375rem;       /* 15px */
  --text-xs: 0.8125rem;       /* 13px */
  --text-2xs: 0.75rem;        /* 12px */
  --wrap: 1160px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font-family: var(--sans); font-size: var(--text); line-height: 1.6;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
.backdrop { display: none; }   /* legacy element on legal pages */

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.section { padding-block: var(--section); }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1.08; max-width: 15ch; }
h2 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); line-height: 1.15; margin-bottom: var(--s2); max-width: 20ch; }
h3 { font-size: var(--text); line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 6px; }
p { margin: 0 0 var(--s2); max-width: 62ch; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
main p { color: var(--muted); }

a { color: var(--blue); text-decoration-color: rgba(var(--blue-rgb), 0.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: var(--radius-btn); }

/* Section intro: left-aligned, 640px max */
.head { margin-bottom: var(--s6); max-width: 640px; }
.head h2 { max-width: none; }
.head p { max-width: 640px; }
.wrap.head { max-width: var(--wrap); }
.wrap.head > * { max-width: 640px; }

/* ---------- Dark sections ---------- */
.band { background: var(--navy); color: var(--on-dark); padding-block: var(--section); }
.band h1, .band h2, .band h3 { color: #fff; }
.band p { color: var(--on-dark-2); }
.band a:not(.btn):not(.text-link) { color: #8FB1FF; }

/* ---------- 12-column layouts ---------- */
.hero-grid, .problem, .feature-row, .trust, .faq-grid, .pair-demo, .footer-grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: center;
}
.hero-copy { grid-column: 1 / span 6; }
.shot { grid-column: 8 / span 5; }
.problem > :first-child { grid-column: 1 / span 6; }
.problem > .stat { grid-column: 8 / span 5; }
.feature-row .feature-copy { grid-column: 1 / span 5; }
.feature-row .app { grid-column: 7 / span 6; justify-self: end; }
.feature-row.rev .app { grid-column: 1 / span 6; grid-row: 1; justify-self: start; }
.feature-row.rev .feature-copy { grid-column: 8 / span 5; grid-row: 1; }
.trust { align-items: start; }
.trust-copy { grid-column: 1 / span 5; }
.never-list { grid-column: 7 / span 6; }
.faq-grid { align-items: start; }
.faq-intro { grid-column: 1 / span 4; }
.faq-stage { grid-column: 6 / span 7; }
.demo-copy { grid-column: 1 / span 5; }
.form-wrap { grid-column: 7 / span 6; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: var(--navy);
  transition: background 200ms ease;
}
/* Scroll progress: faint track plus an amber fill that grows with the page */
.site-header::before, .site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; pointer-events: none; }
.site-header::before { background: var(--hairline-dark); }
.site-header::after { background: linear-gradient(90deg, #F7B23B, #F09A12); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
@media (prefers-reduced-motion: reduce) {
  .site-header::before { height: 1px; }
  .site-header::after { display: none; }
}
.site-header.scrolled {
  background: rgba(11, 18, 32, 0.86);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--text); letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.brand-mark { display: block; flex: none; width: 28px; height: 28px; }
.site-footer .brand-mark { width: 24px; height: 24px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > a, .drop-btn {
  color: var(--on-dark-2); font-size: var(--text-sm); font-weight: 500; text-decoration: none;
  padding: 8px 14px; border-radius: 8px; transition: color 150ms ease;
}
.nav-links > a:hover, .drop-btn:hover, .nav-drop.open .drop-btn { color: #fff; }
.nav-cta { display: flex; align-items: center; gap: var(--s1); }

.nav-drop { position: relative; }
.drop-btn { appearance: none; border: 0; background: none; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 8px; }
.chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 180ms ease; }
.nav-drop.open .chev { transform: translateY(1px) rotate(-135deg); }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: -6px; width: 300px; padding: 6px;
  border-radius: var(--radius); background: var(--raised); border: 1px solid var(--hairline-dark);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.drop-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) and (min-width: 901px) {
  .nav-drop:hover .drop-panel { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.menu-item { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.menu-item:hover { background: var(--raised-2); }
.menu-item b { display: block; color: var(--on-dark); font-size: var(--text-sm); font-weight: 600; }
.menu-item span { display: block; color: var(--on-dark-2); font-size: var(--text-xs); margin-top: 1px; }

.nav-toggle { display: none; position: relative; width: 40px; height: 40px; border-radius: var(--radius-btn); border: 1px solid var(--hairline-dark); background: none; cursor: pointer; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform 180ms ease, top 180ms ease; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 46px; padding: 0 20px; border-radius: var(--radius-btn);
  font: 600 var(--text-sm)/1 var(--sans); white-space: nowrap; text-decoration: none;
  color: var(--navy); background: var(--amber-shade);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 1px 2px rgba(11,18,32,0.2);
  transition: filter 150ms ease;
}
/* Subtle light that follows the cursor (--mx / --my set in site.js) */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 180ms ease;
  background: radial-gradient(90px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,0.22), rgba(255,255,255,0) 70%);
}
.btn:hover::before { opacity: 1; }
.btn:active { filter: brightness(0.97); }
.btn-small { height: 36px; padding: 0 14px; font-size: 0.875rem; }
.btn-secondary { color: var(--ink); background: transparent; border: 1px solid var(--hairline); box-shadow: none; }
.band .btn-secondary, .site-header .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.16); }

.text-link {
  color: var(--ink); font-weight: 500; text-decoration: none; padding-bottom: 2px;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat,
    linear-gradient(var(--hairline), var(--hairline)) 0 100% / 100% 1px no-repeat;
  transition: background-size 240ms ease;
}
.text-link:hover { background-size: 100% 1px, 100% 1px; }
.band .text-link, .ask-card .text-link {
  color: #fff;
  background:
    linear-gradient(#fff, #fff) 0 100% / 0 1px no-repeat,
    linear-gradient(rgba(255,255,255,0.22), rgba(255,255,255,0.22)) 0 100% / 100% 1px no-repeat;
}
.band .text-link:hover, .ask-card .text-link:hover { background-size: 100% 1px, 100% 1px; }
.actions { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s4); flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding-top: var(--s8); padding-bottom: var(--s8); }
.hero .lede { font-size: 1.125rem; line-height: 1.6; max-width: 52ch; margin-top: var(--s3); color: var(--on-dark-2); }

.shot { position: relative; margin: 0; width: 100%; max-width: 480px; justify-self: end; }
.halo {  /* the one glow on the page */
  position: absolute; inset: -10% -12%; z-index: 0; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--blue-rgb),0.12), rgba(var(--blue-rgb),0)); filter: blur(40px);
}
.shot figcaption { position: relative; margin-top: 12px; font-size: var(--text-2xs); color: var(--on-dark-2); }

.window {
  position: relative; border-radius: var(--radius); overflow: hidden; color: var(--on-dark);
  font-size: var(--text-xs); line-height: 1.4;
  background: var(--raised); border: 1px solid var(--hairline-dark);
}
.win-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--hairline-dark); }
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.win-title { flex: 1; font-size: var(--text-xs); font-weight: 600; color: #fff; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-2xs); font-weight: 500; color: #7DD8A0; background: rgba(var(--green-rgb),0.12); padding: 1px 8px; border-radius: 99px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: rgb(var(--green-rgb)); }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 12px 4px; padding: 3px; border-radius: var(--radius-btn); background: var(--navy); border: 1px solid var(--hairline-dark); }
.seg button { position: relative; z-index: 1; appearance: none; border: 0; background: none; cursor: pointer; font: 500 var(--text-xs)/1 var(--sans); color: var(--on-dark-2); padding: 9px 8px; border-radius: 7px; transition: color 180ms ease; }
.seg button:hover { color: var(--on-dark); }
.seg button[aria-pressed="true"] { color: #fff; }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 7px; background: var(--raised-2); border: 1px solid rgba(var(--blue-rgb),0.5); transition: transform 280ms cubic-bezier(.2,.7,.2,1); }
[data-state="with"] .seg-thumb { transform: translateX(100%); }

.rows { list-style: none; margin: 0; padding: 4px 12px; }
.row { display: grid; grid-template-columns: 30px 1fr auto; grid-template-areas: "av main time" "av status status"; column-gap: 12px; row-gap: 6px; padding: 12px 2px; border-top: 1px solid var(--hairline-dark); }
.row:first-child { border-top: 0; }
.initials { grid-area: av; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--on-dark); background: var(--raised-2); }
.row-main { grid-area: main; display: flex; flex-direction: column; min-width: 0; }
.row-main b { font-size: var(--text-sm); font-weight: 600; color: #fff; }
.row-main span { color: var(--on-dark-2); font-size: var(--text-xs); }
.row-time { grid-area: time; color: var(--on-dark-2); font-size: var(--text-xs); white-space: nowrap; }
.row-status { grid-area: status; display: grid; }
.state { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; transition: opacity 240ms ease, visibility 0s; }
[data-state="with"] .state-without, [data-state="without"] .state-with { opacity: 0; visibility: hidden; transition: opacity 180ms ease, visibility 0s linear 180ms; }
.pill { display: inline-block; font-size: var(--text-2xs); font-weight: 500; line-height: 1.5; padding: 1px 9px; border-radius: 99px; white-space: nowrap; }
.pill-missed { color: #F2A3A3; background: rgba(var(--red-rgb),0.12); }
.pill-ok { color: #8BDDAA; background: rgba(var(--green-rgb),0.12); }
.pill-live { color: #A9C3FF; background: rgba(var(--blue-rgb),0.12); }
.detail { color: var(--on-dark-2); font-size: var(--text-xs); }

.live-strip { display: grid; padding: 12px 14px; border-top: 1px solid var(--hairline-dark); font-size: var(--text-xs); }
.strip { grid-area: 1 / 1; display: flex; align-items: center; gap: 10px; transition: opacity 280ms ease; }
.strip-without { color: rgba(var(--red-rgb), 0.8); }
.strip-with { color: #C9D1DE; }
[data-state="with"] .strip-without, [data-state="without"] .strip-with { opacity: 0; }
.missed-ico { flex: none; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 14px; flex: none; }
.wave i { display: block; width: 2px; height: 100%; border-radius: 1px; background: var(--blue); transform: scaleY(0.35); }
.wave i:nth-child(2) { transform: scaleY(0.75); }
.wave i:nth-child(3) { transform: scaleY(1); }
.wave i:nth-child(4) { transform: scaleY(0.6); }
.wave i:nth-child(5) { transform: scaleY(0.3); }


/* ---------- Light-section cards ---------- */
.stat, .role-grid li, .faq-list, .form-slot, .legal-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--card-shadow);
}

/* ---------- Problem ---------- */
.problem h2 { max-width: 18ch; }
.stat { padding: var(--s4); }
.stat-figure { font-size: clamp(2.6rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink) !important; margin-bottom: var(--s2); }
.stat p:not(.stat-figure) { font-size: var(--text-sm); }
.stat-source { margin-top: var(--s2); }

/* ---------- How it works (dark) ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.steps li { padding-top: var(--s3); border-top: 1px solid var(--hairline-dark); padding-right: var(--s3); }
.step-n { display: block; margin-bottom: var(--s2); font-size: var(--text-sm); font-weight: 500; color: var(--on-dark-2); }
.steps p { font-size: var(--text-sm); }

/* ---------- Features (light) ---------- */
.product-intro { padding-bottom: 0; }
.product-intro .head { margin-bottom: 0; }
.feature-sec { padding-block: calc(var(--section) * 0.6); }
.feature-sec:last-of-type { padding-bottom: var(--section); }
.ticks { list-style: none; margin: var(--s3) 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: var(--text-sm); font-weight: 500; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 9px; height: 5px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }

/* Mockup card: flat, hairline, small type */
.app {
  width: 100%; max-width: 460px; color: var(--on-dark); font-size: var(--text-xs); line-height: 1.45;
  border-radius: var(--radius); background: var(--raised); border: 1px solid #1E2A40; box-shadow: var(--card-shadow);
}
.app-bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--hairline-dark); }
.app-bar b { flex: 1; font-size: var(--text-xs); font-weight: 600; color: #fff; }
.app-body { padding: 20px; }
.app-h { font-size: var(--text-2xs); font-weight: 500; color: var(--on-dark-2) !important; margin: 20px 0 10px; }
.muted-s { color: var(--on-dark-2); font-size: var(--text-2xs); }
.tag { display: inline-block; font-size: var(--text-2xs); font-weight: 500; padding: 1px 9px; border-radius: 99px; white-space: nowrap; color: var(--on-dark-2); background: rgba(255,255,255,0.06); }
.tag-blue { color: #A9C3FF; background: rgba(var(--blue-rgb),0.12); }
.tag-white { color: var(--on-dark); background: rgba(255,255,255,0.1); }

.caller { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; }
.caller-icon, .transfer-icon { display: grid; place-items: center; border-radius: 50%; background: var(--raised-2); }
.caller-icon { width: 32px; height: 32px; }
.caller-icon svg, .transfer-icon svg { width: 15px; height: 15px; fill: none; stroke: #A9C3FF; stroke-width: 1.7; stroke-linejoin: round; }
.caller-text, .transfer-text { display: flex; flex-direction: column; min-width: 0; }
.caller-text b, .transfer-text b { font-size: var(--text-sm); font-weight: 600; color: #fff; }
.caller-text span, .transfer-text span { color: var(--on-dark-2); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fields div { padding: 8px 10px; border-radius: 8px; background: var(--raised-2); }
.fields dt { font-size: var(--text-2xs); color: var(--on-dark-2); }
.fields dd { margin: 1px 0 0; font-weight: 500; color: var(--on-dark); }
.fields .pending { outline: 1px solid rgba(var(--blue-rgb),0.35); outline-offset: -1px; }
.fields .pending dd { color: #A9C3FF; }

.transfer { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; }
.transfer-icon { width: 40px; height: 40px; background: rgba(var(--blue-rgb),0.14); }
.progress { height: 2px; margin: 18px 0; border-radius: 2px; background: var(--raised-2); overflow: hidden; }
.progress i { display: block; width: 62%; height: 100%; background: var(--blue); }
.sms { padding: 12px 14px; border-radius: 8px; background: var(--raised-2); border: 1px solid var(--hairline-dark); }
.sms-from { font-size: var(--text-2xs); font-weight: 600; color: var(--on-dark-2); }
.app .sms p { margin: 4px 0 0; color: var(--on-dark); font-size: var(--text-xs); line-height: 1.55; }

.days { list-style: none; margin: 0 0 20px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.days::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 5px; height: 1px; background: linear-gradient(90deg, rgba(var(--blue-rgb),0.7) 0 66%, var(--hairline-dark) 66%); }
.days li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--on-dark-2); font-size: var(--text-2xs); }
.days li::before { content: ""; width: 11px; height: 11px; border-radius: 50%; box-sizing: border-box; background: var(--raised-2); border: 2px solid var(--raised); }
.days .done::before { background: rgba(var(--blue-rgb),0.7); }
.days .now::before { background: var(--blue); }
.days .now { color: var(--on-dark); font-weight: 500; }
.chat { display: flex; flex-direction: column; gap: 6px; }
.msg { max-width: 84%; padding: 8px 12px; border-radius: 12px; font-size: var(--text-xs); }
.msg-out { align-self: flex-start; background: var(--raised-2); border-bottom-left-radius: 4px; color: var(--on-dark); }
.msg-in { align-self: flex-end; background: #2A4A8C; color: #fff; border-bottom-right-radius: 4px; }
.chat-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline-dark); }

.bars { display: grid; gap: 8px; }
.bars div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; }
.bars span { color: var(--on-dark-2); font-size: var(--text-2xs); }
.bars i { display: block; height: 6px; width: var(--w); border-radius: 3px; background: rgba(var(--blue-rgb),0.75); }
.bars div:last-child i { background: #C7D3E6; }
.leads { list-style: none; margin: 0; padding: 0; }
.leads li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--hairline-dark); }
.leads .initials { grid-area: auto; width: 28px; height: 28px; font-size: 10px; }
.leads .tag { justify-self: end; }
.lead-case { font-size: var(--text-xs); font-weight: 500; color: var(--on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Team tabs (light) ---------- */
.team { max-width: none; }
.tabs { display: flex; gap: var(--s4); margin-bottom: var(--s4); border-bottom: 1px solid var(--hairline); }
.tab {
  position: relative; appearance: none; border: 0; background: none; cursor: pointer;
  font: 500 var(--text-sm)/1 var(--sans); color: var(--muted); padding: 14px 0 16px; transition: color 150ms ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--amber); transform: scaleX(0); transition: transform 220ms ease; }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel + .tab-panel { margin-top: var(--s5); }
.tab-panel[hidden] { display: none; }
.tab-lede { font-size: 1.125rem; color: var(--ink) !important; max-width: 640px; margin-bottom: var(--s4); }
.role-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 860px; }
.role-grid li { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 46px 14px 14px; font-size: var(--text-sm); font-weight: 500; color: var(--ink); text-align: left; transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease; }
.role-grid li:hover { transform: translateY(-3px); border-color: #CBD3DF; box-shadow: 0 6px 16px -8px rgba(11,18,32,0.18); }
.rg-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #E8F0FF; }
.rg-ico svg { width: 18px; height: 18px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .role-grid li:hover { transform: none; } }
.role-grid li::before { content: ""; position: absolute; right: 20px; top: 50%; width: 9px; height: 5px; margin-top: -4px; border-left: 1.6px solid var(--blue); border-bottom: 1.6px solid var(--blue); transform: rotate(-45deg); }
@media (prefers-reduced-motion: no-preference) {
  .tab-panel.enter { animation: panel-in 260ms ease both; }
  @keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Before and after (light) ---------- */
.versus { position: relative; isolation: isolate; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 920px; }
.vs-glow { position: absolute; z-index: -1; pointer-events: none; top: -6%; bottom: -6%; width: 60%; filter: blur(70px); }
.vs-glow-off { left: -10%; background: radial-gradient(closest-side, rgba(var(--red-rgb),0.07), rgba(var(--red-rgb),0)); }
.vs-glow-on { right: -10%; background: radial-gradient(closest-side, rgba(var(--green-rgb),0.07), rgba(var(--green-rgb),0)); }
.vs-card { padding: 0 var(--s4); border-radius: var(--radius); background: var(--raised); border: 1px solid #1E2A40; box-shadow: var(--card-shadow); }
.vs-title { margin: 0; padding: 22px 0 18px; font-size: var(--text); color: #fff; }
.vs-rows { list-style: none; margin: 0; padding: 0 0 8px; }
.vs-rows li { height: 72px; display: flex; flex-direction: column; justify-content: center; gap: 3px; border-top: 1px solid var(--hairline-dark); }
.vs-label { font-size: var(--text-xs); color: var(--on-dark-2); }
.vs-val { display: flex; align-items: center; gap: 10px; font-size: var(--text-sm); white-space: nowrap; }
.vs-off .vs-val { color: #A3ACBB; }
.vs-on .vs-val { color: #fff; font-weight: 500; }
.ico-x, .ico-check { position: relative; flex: none; width: 14px; height: 14px; }
.ico-x::before, .ico-x::after { content: ""; position: absolute; left: 2px; right: 2px; top: 6px; height: 1.5px; border-radius: 1px; background: rgba(var(--red-rgb),0.7); }
.ico-x::before { transform: rotate(45deg); }
.ico-x::after { transform: rotate(-45deg); }
.ico-check::before { content: ""; position: absolute; left: 2px; top: 2px; width: 9px; height: 4.5px; border-left: 1.6px solid rgb(var(--green-rgb)); border-bottom: 1.6px solid rgb(var(--green-rgb)); transform: rotate(-45deg); }
.vs-badge {
  position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: var(--text-xs); font-weight: 700; color: var(--navy); background: var(--amber);
  box-shadow: 0 0 0 4px var(--paper);
}

/* ---------- What it never does (dark) ---------- */
.shield { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: var(--s3); border-radius: 10px; background: var(--raised); border: 1px solid var(--hairline-dark); }
.shield svg { width: 20px; height: 20px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.transcript { margin: var(--s4) 0 0; padding: 20px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--hairline-dark); display: grid; gap: 10px; }
.transcript figcaption { font-size: var(--text-xs); color: var(--on-dark-2); }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 12px; }
.bubble p { margin: 0; font-size: var(--text-sm); line-height: 1.5; }
.who { display: block; font-size: var(--text-2xs); font-weight: 600; margin-bottom: 3px; }
.bubble-caller { justify-self: start; background: var(--raised-2); border-bottom-left-radius: 4px; }
.bubble-caller .who { color: var(--on-dark-2); }
.band .bubble-caller p { color: var(--on-dark); }
.bubble-ai { justify-self: end; background: #1B2C4D; border: 1px solid rgba(var(--blue-rgb),0.25); border-bottom-right-radius: 4px; }
.bubble-ai .who { color: #A9C3FF; }
.band .bubble-ai p { color: #fff; }
.never-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.never-tile { padding: 20px; border-radius: var(--radius); background: var(--raised); border: 1px solid var(--hairline-dark); }
.never-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px; border-radius: 8px; background: var(--raised-2); }
.never-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--on-dark); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.never-icon .slash-gap { stroke: var(--raised-2); stroke-width: 4.5; }
.never-icon .slash { stroke: rgba(var(--red-rgb),0.7); stroke-width: 1.6; }
.never-tile h3 { font-size: var(--text-sm); }
.never-tile p { font-size: var(--text-xs); line-height: 1.55; }

/* ---------- FAQ (light) ---------- */
.faq-intro { position: sticky; top: 104px; }
.faq-intro > p { margin-bottom: var(--s3); }
.ask-card { margin-top: var(--s5); padding: var(--s3); border-radius: var(--radius); background: var(--navy); }
.ask-card h3 { color: #fff; }
.faq-intro .ask-card p { color: var(--on-dark-2); font-size: var(--text-sm); margin-bottom: 12px; }
.ask-card .text-link { font-size: var(--text-sm); }

.faq-list { padding: 6px; }
.faq-list details { position: relative; border-radius: 8px; transition: background 180ms ease; }
.faq-list details + details::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 1px; background: var(--hairline); }
.faq-list details[open]::before, .faq-list details[open] + details::before { opacity: 0; }
.faq-list details::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 2px; border-radius: 1px; background: var(--ink); opacity: 0; transition: opacity 180ms ease; }
.faq-list details[open] { background: var(--paper); }
.faq-list details[open]::after { opacity: 1; }
.faq-list summary {
  position: relative; cursor: pointer; list-style: none; border-radius: 8px;
  padding: 18px 56px 18px 18px; font-size: var(--text); font-weight: 600; letter-spacing: -0.01em; line-height: 1.4;
  transition: background 150ms ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { background: var(--paper); }
.faq-list summary::before, .faq-list summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 1.5px; margin-top: -0.75px; border-radius: 1px;
  background: var(--muted); transition: transform 220ms ease;
}
.faq-list summary::before { transform: rotate(90deg); }
.faq-list details[open] summary::before { transform: rotate(135deg); background: var(--ink); }
.faq-list details[open] summary::after { transform: rotate(45deg); background: var(--ink); }
.answer { overflow: hidden; }
.answer p { margin: 0 18px 18px; font-size: var(--text-sm); line-height: 1.7; max-width: 60ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq-list details[open] .answer p { animation: answer-in 300ms 40ms ease both; }
  @keyframes answer-in { from { opacity: 0; } to { opacity: 1; } }
}

/* ---------- Demo (light) ---------- */
.form-slot { padding: var(--s4); }
.form-placeholder { padding: var(--s4) var(--s3); border: 1px dashed #C9D0DB; border-radius: 10px; text-align: center; background: var(--paper); }
.form-placeholder p { margin-inline: auto; }
.form-placeholder strong { color: var(--ink); }
.consent-note { margin-top: var(--s2); font-size: var(--text-2xs); line-height: 1.6; max-width: none; }

/* ---------- Closing CTA (dark) ---------- */
.cta { border-top: 0; }
.cta-inner h2 { max-width: 20ch; }
.cta-inner p { max-width: 640px; }

/* ---------- Footer (dark) ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: var(--s8) 0 var(--s4); border-top: 1px solid var(--hairline-dark); }
.site-footer.after-dark { padding-top: var(--s6); }
.footer-grid { align-items: start; row-gap: var(--s5); }
.footer-about { grid-column: 1 / span 4; }
.footer-grid > .footer-col { grid-column: span 2; }
.footer-grid:not(.footer-grid-5) > .footer-col { grid-column: span 2; }
.footer-about p { margin: 12px 0 0; color: var(--on-dark-2); font-size: var(--text-sm); max-width: 30ch; }
.footer-about .btn { margin-top: var(--s3); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { margin: 0 0 4px; color: var(--on-dark); font-size: var(--text-sm); font-weight: 600; }
.footer-col a { align-self: flex-start; color: var(--on-dark-2); font-size: var(--text-sm); text-decoration: none; transition: color 150ms ease; }
.footer-col a:hover { color: #fff; }
.footer-addr { color: var(--on-dark-2); font-size: var(--text-sm); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px var(--s4); margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid var(--hairline-dark); }
.footer-base p { margin: 0; max-width: none; color: var(--on-dark-2); font-size: var(--text-xs); }

/* ---------- Legal pages ---------- */
.legal { padding-block: 96px 112px; background: var(--paper); }
.legal-wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal-back { display: inline-block; margin-bottom: var(--s3); font-size: var(--text-sm); }
.legal-card { margin: 0 auto; padding: 48px; }
.legal-head { text-align: center; padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--hairline); }
.legal-head .eyebrow { margin-bottom: 14px; }
.legal-card h1 { font-size: clamp(2rem, 3.4vw, 2.6rem); max-width: none; margin: 0 0 10px; }
.legal-card .updated { margin: 0; font-size: var(--text-sm); color: var(--muted); }
.legal-toc { margin-bottom: 32px; padding: 20px 24px; border-radius: 10px; background: var(--paper); border: 1px solid var(--hairline); }
.legal-toc-h { margin: 0 0 10px; font-size: var(--text-sm); font-weight: 600; color: var(--ink); }
.legal-card .legal-toc ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; }
.legal-card .legal-toc li { margin: 0; padding: 0; font-size: var(--text-sm); line-height: 1.6; }
.legal-card h2 { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 12px; scroll-margin-top: 96px; color: var(--ink); }
.legal-card p, .legal-card li { font-size: 1.0625rem; line-height: 1.7; color: #1E2533; max-width: 68ch; }
.legal-card p { margin: 0 0 16px; }
.legal-card ul { padding-left: 22px; margin: 0 0 16px; }
.legal-card ul li { margin-bottom: 8px; padding-left: 4px; }
.legal-card ul li::marker { color: var(--muted); }
.legal-card strong { color: var(--ink); font-weight: 600; }
.legal-card a { color: var(--blue); text-decoration: none; }
.legal-card a:hover { text-decoration: underline; text-underline-offset: 3px; }
.updated { font-size: var(--text-sm) !important; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 500ms ease; }
  .js .reveal.in { opacity: 1; transform: none; }
  .wave i { animation: wave 1.1s ease-in-out infinite; }
  .wave i:nth-child(2) { animation-delay: -0.9s; }
  .wave i:nth-child(3) { animation-delay: -0.6s; }
  .wave i:nth-child(4) { animation-delay: -0.3s; }
  .wave i:nth-child(5) { animation-delay: -0.75s; }
  @keyframes wave { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

/* ---------- Responsive (1440 / 1024 / 390) ---------- */
@media (max-width: 1100px) {
  .shot { grid-column: 7 / span 6; }
  .faq-intro { grid-column: 1 / span 5; }
  .faq-stage { grid-column: 6 / span 7; }
  .footer-about { grid-column: 1 / -1; }
  .footer-grid > .footer-col { grid-column: span 3; }
}
@media (max-width: 900px) {
  .hero-grid > *, .problem > *, .feature-row > *, .trust > *, .faq-grid > *, .pair-demo > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .hero-grid, .problem, .feature-row, .trust, .faq-grid, .pair-demo { grid-template-columns: minmax(0, 1fr); }
  .hero-grid, .problem, .feature-row, .trust, .pair-demo { row-gap: var(--s5); }
  .shot, .feature-row .app, .feature-row.rev .app { justify-self: start; }
  .steps { grid-template-columns: 1fr; gap: var(--s4); }
  .faq-intro { position: static; display: contents; }
  .faq-intro .btn { justify-self: start; }
  .faq-stage { order: 1; margin-top: var(--s5); }
  .ask-card { order: 2; margin-top: var(--s4); }

  .nav-toggle { display: inline-block; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 64px; display: none;
    flex-direction: column; align-items: stretch; gap: 0; padding: 4px 24px 16px;
    background: var(--navy); border-bottom: 1px solid var(--hairline-dark);
  }
  .nav-links.open { display: flex; }
  .nav-links > a, .drop-btn { padding: 14px 0; border-radius: 0; font-size: var(--text); }
  .nav-links > a { border-top: 1px solid var(--hairline-dark); }
  .drop-btn { width: 100%; justify-content: space-between; }
  .drop-panel { position: static; width: auto; display: none; opacity: 1; visibility: visible; transform: none; padding: 0 0 8px; background: none; border: 0; }
  .nav-drop.open .drop-panel { display: block; }
  .menu-item { padding: 10px 0; }
  .menu-item:hover { background: none; }
}
@media (max-width: 768px) {
  :root { --section: 72px; }
  .hero { padding-block: var(--s6); }
  .head { margin-bottom: var(--s5); }
  .versus { grid-template-columns: 1fr; gap: 16px; max-width: 520px; }
  .vs-glow { left: -6%; right: -6%; width: auto; }
  .vs-glow-off { top: -4%; bottom: 52%; }
  .vs-glow-on { top: 52%; bottom: -4%; }
  .vs-rows li { height: auto; padding: 12px 0; }
  .vs-val { white-space: normal; }
  .role-grid { grid-template-columns: 1fr; }
  .legal-card { padding: 24px; }
  .legal { padding-block: 72px 72px; }
  .legal-toc { display: none; }
  .footer-grid > .footer-col { grid-column: span 4; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .actions { gap: var(--s3); }
  .hero .actions .btn { flex: 1 1 100%; }
  .seg { margin-inline: 10px; }
  .seg button { padding: 9px 4px; font-size: var(--text-2xs); }
  .rows { padding-inline: 10px; }
  .app-body { padding: 18px 16px; }
  .msg { max-width: 92%; }
  .leads li { grid-template-columns: 1fr auto; }
  .leads .initials { display: none; }
  .never-list { grid-template-columns: 1fr; }
  .tabs { gap: var(--s3); }
  .tab { font-size: var(--text-xs); }
  .vs-card { padding: 0 var(--s3); }
  .form-slot { padding: var(--s3); }
  .footer-grid > .footer-col { grid-column: span 6; }
  .footer-grid > .footer-col:last-child { grid-column: 1 / -1; }
  .footer-grid:not(.footer-grid-5) .footer-col[aria-label="Company"] { grid-column: 1 / -1; }
}

/* =========================================================
   Signature touches
   ========================================================= */

/* Section pills */
.eyebrow {
  display: inline-block; margin-bottom: var(--s2); padding: 4px 12px; border-radius: 99px;
  font-size: var(--text-xs); font-weight: 500; line-height: 1.5;
  background: #E8F0FF; color: #1D3557;
}
.band .eyebrow { background: rgba(255,255,255,0.06); color: var(--on-dark-2); }
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: var(--s2); }
.eyebrow-row .eyebrow { margin: 0; }
.eyebrow-row .shield { width: 32px; height: 32px; margin: 0; border-radius: 8px; }
.eyebrow-row .shield svg { width: 16px; height: 16px; }

/* Floating rounded dark panels */
.panel-sec { padding-inline: 24px; }
.panel { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; border: 1px solid var(--hairline-dark); }
.cta-sec { padding-bottom: 24px; }

/* Amber brand arc: flat, low opacity, cropped by its container */
.arc { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; border: 72px solid rgba(245, 165, 36, 0.17); }
.hero { position: relative; overflow: hidden; }
.arc-hero { width: 560px; height: 560px; right: -260px; bottom: -300px; border-color: rgba(245, 165, 36, 0.22); }
.shot .window, .shot figcaption { z-index: 1; }
.arc-cta { width: 520px; height: 520px; right: -170px; bottom: -280px; border-width: 64px; }
.cta-inner { position: relative; z-index: 1; }

/* Product facts (specs, not results) */
.facts-sec { padding-top: var(--s8); }
.specs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.specs div { padding: 4px var(--s3); border-left: 1px solid var(--hairline); }
.specs div:first-child { padding-left: 0; border-left: 0; }
.specs dt { font-size: clamp(2rem, 3.2vw, 2.5rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.specs dd { margin: 10px 0 0; font-size: var(--text-sm); color: var(--muted); }

/* Case-type ticker */
.ticker {
  margin-top: var(--s8); padding: 18px 0; overflow: hidden;
  border-block: 1px solid var(--hairline);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-track { display: flex; width: max-content; }
.ticker ul { display: flex; flex: none; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; white-space: nowrap; color: var(--muted); font-size: var(--text-sm); }
.ticker li::before { content: ""; width: 5px; height: 5px; margin: 0 28px; border-radius: 50%; background: var(--amber); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-track { animation: ticker 70s linear infinite; }
  .ticker:hover .ticker-track { animation-play-state: paused; }
  @keyframes ticker { to { transform: translateX(-50%); } }
}
@media (prefers-reduced-motion: reduce) {
  .ticker { -webkit-mask-image: none; mask-image: none; }
  .ticker-track { width: auto; justify-content: center; padding-inline: 16px; }
  .ticker ul { flex: 1 1 auto; flex-wrap: wrap; justify-content: center; row-gap: 8px; }
  .ticker li::before { margin: 0 14px; }
  .ticker ul[aria-hidden="true"] { display: none; }
}

/* Hover cards */
.js .feature-row .app.reveal, .vs-card { transition: opacity 500ms ease, transform 240ms ease, border-color 240ms ease; }
.feature-row .app.reveal:hover, .versus .vs-card:hover { transform: translateY(-4px); border-color: #2E3D5A; }
@media (prefers-reduced-motion: reduce) {
  .feature-row .app.reveal:hover, .versus .vs-card:hover { transform: none; }
}
.more { display: inline-block; margin-top: var(--s3); font-size: var(--text-sm); }

@media (max-width: 900px) {
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .arc-hero { width: 420px; height: 420px; right: -200px; bottom: -220px; border-width: 56px; }
  .specs div { padding: var(--s3) var(--s3) var(--s3) var(--s3); }
  .specs div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .specs div:nth-child(n+3) { border-top: 1px solid var(--hairline); }
}
@media (max-width: 560px) {
  .panel-sec { padding-inline: 12px; }
  .cta-sec { padding-bottom: 12px; }
  .panel { border-radius: 20px; }
  .facts-sec { padding-top: var(--s6); }
  .ticker { margin-top: var(--s6); }
  .specs div { padding: 20px 0 20px 16px; }
  .specs dt { font-size: 1.875rem; white-space: normal; }
  .specs div:nth-child(odd) { padding-left: 0; }
  .arc-cta { width: 360px; height: 360px; right: -160px; bottom: -200px; border-width: 48px; }
}

/* Centered section heads and balanced blocks */
.head.center { margin-inline: auto; text-align: center; }
.head.center p, .wrap.head.center > * { margin-inline: auto; }
#team .tabs { justify-content: center; max-width: 900px; margin-inline: auto; }
#team .tab-lede { margin-inline: auto; text-align: center; }
#team .role-grid { max-width: 900px; margin-inline: auto; }
.versus { max-width: 1000px; margin-inline: auto; gap: 24px; }
@media (max-width: 768px) {
  .versus { max-width: 560px; gap: 16px; }
}
@media (max-width: 560px) {
  #team .tabs { justify-content: space-between; gap: 0; }
}
