/**
 * CallWerx
 * Author: Michael Park
 * Date: 2026-09-13
 */
/* CallWerx marketing site — shares its color story with the product
   itself (drawn from the real logo: blue through blue-violet to deep
   violet), so the site and the app feel like the same company rather
   than a generic landing page bolted onto unrelated software. */

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --border: #e3e1ef;
  --border-soft: #efedf7;
  --text: #1c1b23;
  --text-muted: #635f6d;
  --accent: #5b4fe0;
  --accent-hover: #4a3fc7;
  --accent-pale: #eeecfb;
  --purple-deep: #7c3aed;
  --purple-light: #c4b5fd;
  --purple-pale: #f5f1fd;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.wordmark {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 21px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.wordmark sup { font-size: 11px; color: var(--text-muted); font-weight: 500; margin-left: 2px; }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { color: var(--text-muted); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav .nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 600;
}
.site-nav .nav-cta:hover { background: var(--accent-hover); text-decoration: none; }

/* ---------- hero ---------- */

.hero {
  padding: 88px 0 96px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  color: var(--purple-deep);
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: 46px;
  max-width: 15ch;
  margin-bottom: 22px;
}
.hero p.lede {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; }
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
/* .btn-primary is used everywhere else on <a> tags — this button
   specifically needs browser button defaults (border, background)
   reset first so the shared style actually looks identical on a real
   <button> element. */
button.btn-primary { border: none; cursor: pointer; font-family: inherit; }

.contact-form { max-width: 480px; display: flex; flex-direction: column; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-weight: 600; font-size: 14px; }
.form-field input, .form-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
/* Honeypot — positioned off-screen rather than display:none, since some
   bots specifically skip filling fields they detect as display:none.
   Real visitors never see or reach this; tabindex="-1" also keeps it
   out of keyboard tab order for anyone using assistive tech. */
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.contact-status { font-size: 14px; margin-top: 4px; }
.contact-status.is-success { color: #1e7a34; }
.contact-status.is-error { color: #b02a2a; }
.btn-secondary {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 13px 24px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
}
.btn-secondary:hover { border-color: var(--purple-light); text-decoration: none; }

/* Hero diagram — the actual product mechanic, not decoration: a call
   comes in, the AI captures what the caller says, and that becomes a
   pre-filled script the human agent reads from. Four honest steps,
   not a gradient orb standing in for "AI." */
.flow-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
}
.flow-step + .flow-step { border-top: 1px solid var(--border-soft); }
.flow-dot {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple-pale);
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.flow-step:last-child .flow-dot { background: var(--accent); color: #fff; }
.flow-text .flow-label { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.flow-text .flow-detail { font-size: 13.5px; color: var(--text-muted); }

/* ---------- sections ---------- */

section.block { padding: 80px 0; }
section.block.tight { padding: 56px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 { font-size: 30px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.feature h3 { font-size: 17.5px; margin-bottom: 8px; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

.founder-block {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
.founder-portrait {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  background: linear-gradient(155deg, var(--accent), var(--purple-deep));
}
.founder-block h2 { font-size: 26px; margin-bottom: 16px; }
.founder-block p { color: var(--text-muted); margin-bottom: 14px; }
.founder-block p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--text-muted); font-size: 14px; }
.footer-links a:hover { color: var(--text); }
.footer-note { color: var(--text-muted); font-size: 13.5px; }

/* ---------- legal pages ---------- */

.legal-page { padding: 64px 0 96px; }
.legal-page .wrap { max-width: 760px; }
.legal-page h1 { font-size: 32px; margin-bottom: 8px; }
.legal-updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-page h2 {
  font-size: 19px;
  margin-top: 40px;
  margin-bottom: 12px;
  padding-top: 8px;
}
.legal-page p, .legal-page li { color: var(--text); font-size: 15.5px; }
.legal-page p { margin: 0 0 14px; }
.legal-page ul { margin: 0 0 14px; padding-left: 22px; }
.legal-page li { margin-bottom: 6px; }
.legal-callout {
  background: var(--purple-pale);
  border: 1px solid var(--purple-light);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 14.5px;
}
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 8px;
}
.legal-toc div { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-muted); margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 20px; font-size: 14px; }
.legal-toc li { margin-bottom: 4px; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--accent); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .grid-3 { grid-template-columns: 1fr; }
  .founder-block { grid-template-columns: 1fr; }
  .founder-portrait { max-width: 160px; }
  .site-nav { gap: 18px; }
  .site-nav a:not(.nav-cta) { display: none; }
}
