:root {
  /* Palette — VoiceWren forest green + rust, pulled from the logo */
  --bg: #f6faf9;
  --surface: #ffffff;
  --ink: #17302c;
  --muted: #5c716c;
  --line: #e2ece9;
  --brand: #3f7a2e;
  --brand-strong: #2e5c20;
  --accent: #c1502a;
  --accent-soft: #f8ece5;
  --good-bg: #e7f5ef; --good-fg: #14683f;
  --warn-bg: #fdf3e2; --warn-fg: #97590a;
  --err-bg: #fdecec; --err-fg: #a12626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,48,44,.05), 0 12px 30px rgba(15,48,44,.06);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 22px; }
.brand-name { letter-spacing: -0.01em; }
.brand-name strong { color: var(--brand); font-weight: 800; }
.site-nav { display: flex; gap: 22px; }
.site-nav a { color: var(--muted); font-weight: 500; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(180deg, #eef6e6 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 84px 20px 72px; text-align: center; }
.eyebrow {
  display: inline-block; margin: 0 0 16px; padding: 5px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--brand-strong); font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 auto 18px; max-width: 16ch; font-size: clamp(32px, 6vw, 56px);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance;
}
.lede { margin: 0 auto 30px; max-width: 56ch; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 30px; font-size: 14px; color: var(--muted); font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 12px; font-weight: 650; font-size: 16px;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, box-shadow .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-strong); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; padding: 64px 20px; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature-icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -0.01em; }
.feature-card p { margin: 0; color: var(--muted); }

/* Alerts */
.alert { margin: 16px 0; padding: 12px 16px; border-radius: 10px; font-size: 15px; }
.alert-success { background: var(--good-bg); color: var(--good-fg); }
.alert-warning { background: var(--warn-bg); color: var(--warn-fg); }
.alert-error { background: var(--err-bg); color: var(--err-fg); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; padding: 28px 20px; color: var(--muted); font-size: 14px; }
.footer-credit { white-space: nowrap; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-credit a:hover { color: var(--brand); }

@media (max-width: 640px) {
  .hero-inner { padding: 56px 20px 48px; }
  .header-inner { height: 56px; }
}

/* Auth */
.auth { display: flex; justify-content: center; padding: 64px 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.auth-card h1 { margin: 0 0 20px; font-size: 24px; letter-spacing: -0.02em; }
.auth-card label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.auth-card input { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.auth-card input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.auth-card .btn { width: 100%; margin-top: 6px; }

/* Dashboard */
.dash { padding: 40px 20px 64px; }
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.dash-head h1 { margin: 4px 0 2px; font-size: 30px; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.stat-num { display: block; font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: #f3f7ec; }
tbody tr:last-child td { border-bottom: 0; }
/* Blank spacer row between calls so each call (row + its transcript) reads as its
   own block — a subtle --bg band, matching the mobile card gaps. */
tr.call-sep td { padding: 0; height: 14px; background: var(--bg); border-bottom: 0; }

/* Onboarding form */
.dash-actions { display: flex; gap: 10px; }
.form-grid { display: flex; flex-direction: column; gap: 16px; max-width: 560px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form-grid input, .form-grid textarea, .form-grid select {
  padding: 11px 13px; font-size: 16px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-family: inherit;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form-grid textarea { resize: vertical; }
.form-grid .btn { align-self: flex-start; }

/* Call list */
.dash-subhead { margin: 8px 0 12px; font-size: 18px; letter-spacing: -0.01em; }
details summary { cursor: pointer; color: var(--brand-strong); font-weight: 600; font-size: 14px; }
.transcript { white-space: pre-wrap; font-size: 13px; color: var(--muted); margin: 8px 0 0; max-height: 240px; overflow-y: auto; }

/* Settings read-only fields */
.field-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.field-label { color: var(--muted); font-weight: 600; }
.field-value { color: var(--ink); }

/* Leads inbox */
.btn-mini { padding: 5px 11px; font-size: 13px; font-weight: 600; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--brand-strong); cursor: pointer; }
.btn-mini:hover { background: var(--accent-soft); }
.pill-done { color: var(--good-fg); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* --- PWA: hamburger + slide-in side menu --- */
.nav-toggle { display: none; background: none; border: 0; font-size: 24px; color: var(--ink); cursor: pointer; padding: 4px 8px; line-height: 1; }
.side-nav { position: fixed; top: 0; right: 0; height: 100%; width: 270px; max-width: 84vw; background: var(--surface); box-shadow: -10px 0 40px rgba(15,48,44,.18); transform: translateX(100%); transition: transform .22s ease; z-index: 60; display: flex; flex-direction: column; }
.side-nav.open { transform: translateX(0); }
.side-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; }
.side-nav-close { background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.side-nav a { display: block; padding: 15px 18px; color: var(--ink); border-bottom: 1px solid var(--line); font-weight: 500; }
.side-nav a:hover { background: var(--accent-soft); text-decoration: none; }
.side-nav-overlay { position: fixed; inset: 0; background: rgba(15,29,32,.42); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 55; }
.side-nav-overlay.show { opacity: 1; visibility: visible; }

@media (max-width: 720px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-block; }
  .dash-head { flex-direction: column; align-items: flex-start; }
  .dash-actions { flex-wrap: wrap; }
}

/* --- Responsive tables → stacked cards on phones --- */
@media (max-width: 640px) {
  .tablewrap { overflow-x: visible; }
  .tablewrap table, .tablewrap tbody, .tablewrap tr, .tablewrap td { display: block; width: 100%; }
  .tablewrap thead { display: none; }
  .tablewrap tr { border-bottom: 8px solid var(--bg); padding: 6px 0; }
  .tablewrap td { border: 0; padding: 5px 16px; overflow-wrap: anywhere; }
  .tablewrap td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
}

/* Brand logo */
.brand-logo { height: 38px; width: 38px; object-fit: contain; display: block; }
.brand-logo-sm { height: 26px; width: 26px; }

/* Client lifecycle (platform admin) */
.pill-on { color: var(--good-fg); font-weight: 600; font-size: 13px; }
.pill-off { color: var(--muted); font-weight: 600; font-size: 13px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-danger { color: var(--err-fg); border-color: var(--err-fg); }
.btn-danger:hover { background: var(--err-bg); }
tr.row-off td:not(:last-child) { opacity: .55; }

/* Landing funnel */
.section { padding: 56px 20px; }
.section-title { text-align: center; font-size: clamp(24px, 4vw, 34px); letter-spacing: -0.02em; margin: 0 0 8px; text-wrap: balance; }
.section-sub { text-align: center; color: var(--muted); margin: 0 0 32px; }
.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; font-weight: 800; margin-bottom: 12px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }
.video-embed { max-width: 820px; margin: 0 auto; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 980px; margin: 0 auto; align-items: start; }
.price-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 12px 40px rgba(63,122,46,.16); }
.price-card h3 { margin: 0 0 4px; font-size: 20px; }
.price-card .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 16px; }
.price-card .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card .price { margin-bottom: 4px; }
.price-card .price-limit { margin: 0 0 18px; color: var(--muted); font-size: 14px; font-weight: 600; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-card li { padding-left: 24px; position: relative; color: var(--ink); font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.price-card .btn { width: 100%; }
.ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; letter-spacing: 0.02em; }
.founder-band { background: linear-gradient(135deg, var(--brand-strong), var(--brand)); color: #fff; }
.founder-inner { padding: 64px 20px; text-align: center; }
.founder-eyebrow { color: #ffd9a8; background: rgba(0,0,0,.14); border-color: transparent; }
.founder-band h2 { font-size: clamp(28px, 5vw, 44px); margin: 12px 0 16px; letter-spacing: -0.02em; }
.founder-band .hl { color: #ffd9a8; }
/* Gold CTA — high contrast against the green band, matches the "free for life" accent */
.founder-band .btn-primary { background: #ffd9a8; color: var(--brand-strong); }
.founder-band .btn-primary:hover { background: #ffe6c2; color: var(--brand-strong); }
.founder-lede { max-width: 60ch; margin: 0 auto 28px; font-size: 18px; color: rgba(255,255,255,.92); }
.btn-lg { padding: 15px 28px; font-size: 18px; }
.founder-note { margin-top: 20px; }
.link-light { color: rgba(255,255,255,.9); text-decoration: underline; }
.book-box { max-width: 720px; margin: 0 auto; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.book-alt { margin-top: 12px; font-size: 13px; }

/* Contact modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); opacity: 0; visibility: hidden; transition: opacity .2s ease; z-index: 1000; }
.modal-overlay.show { opacity: 1; visibility: visible; }
.modal-card { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -46%); width: min(92vw, 460px); max-height: 90vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.3); padding: 28px; z-index: 1001; opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease; }
.modal-card.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal-card h3 { margin: 0 0 6px; }
.modal-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { color: var(--ink); }
.book-actions { margin-bottom: 6px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.book-ack { margin: 14px auto 4px; max-width: 480px; }
.book-or { margin: 10px 0 14px; font-size: 13px; }

/* ── Industry landing pages ─────────────────────────────────────────────── */
.landing-hero .hero-inner { padding: 64px 20px 56px; max-width: 860px; margin: 0 auto; }
.landing-kicker { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; margin-bottom: 18px; }
.landing-hero h1 { text-wrap: balance; }
.landing-intro { text-align: left; margin: 24px auto 0; max-width: 720px; }
.landing-intro p { color: var(--muted); font-size: 17px; line-height: 1.7; margin: 0 0 16px; }
.landing-intro p:first-child { color: var(--ink); font-size: 18px; }

.landing-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: none; padding-left: 20px; padding-right: 20px; }
.landing-alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }

.landing-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1080px; margin: 0 auto; align-items: start; }
.landing-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.landing-alt .landing-card { background: var(--bg); }
.landing-card-icon { font-size: 26px; line-height: 1; display: block; margin-bottom: 12px; }
.landing-card h3 { margin: 0 0 8px; font-size: 18px; }
.landing-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.landing-note { max-width: 760px; margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Illustrative call snippet */
.call-demo { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; }
.call-line { margin-bottom: 18px; padding-left: 14px; border-left: 3px solid var(--line); }
.call-line-agent { border-left-color: var(--brand); }
.call-line-caller { border-left-color: var(--accent); }
.call-speaker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.call-line p { margin: 0; line-height: 1.6; }
.call-outcome { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ink); font-weight: 600; line-height: 1.6; }
.call-note { text-align: center; color: var(--muted); font-size: 13px; font-style: italic; margin: 14px 0 0; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--brand); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 14px 0 0; color: var(--muted); line-height: 1.7; }

.landing-cta { text-align: center; }
