/*
 * Alloy Automations — Marketing Website
 * Design system: Cream/Charcoal/Terracotta/Sage
 * Typefaces: DM Serif Display (display) + DM Sans (body/UI)
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=DM+Serif+Display:ital@0;1&display=swap');

/* ─── Tokens ──────────────────────────────────────────── */
:root {
  --terracotta:        #C05132;
  --terracotta-hover:  #A6432A;
  --terracotta-press:  #883521;
  --terracotta-subtle: #FAF0EC;
  --cream:             #F4EFE4;
  --cream-surface:     #FDFAF5;
  --cream-deep:        #E8E0D0;
  --charcoal:          #252320;
  --charcoal-mid:      #3D3A35;
  --charcoal-soft:     #5C554D;
  --charcoal-muted:    #80786E;
  --sage:              #7A8C6A;
  --border:            rgba(37,35,32,0.10);
  --border-strong:     rgba(37,35,32,0.18);

  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', 'Helvetica Neue', Arial, sans-serif;

  --max-w:    1200px;
  --px:       48px;
  --px-sm:    24px;
  --nav-h:    72px;
  --section-y: 96px;
}

/* ─── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }

/* ─── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}
.section       { padding: var(--section-y) 0; }
.section-sm    { padding: 72px 0; }
.section-dark  { background: var(--charcoal); }
.section-surface { background: var(--cream-surface); }

/* ─── Typography roles ────────────────────────────────── */
.display-xl {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.display-lg {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.8vw, 50px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.display-md {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 36px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 14px;
  display: block;
}
.body-lg  { font-size: 19px; line-height: 1.7; color: var(--charcoal-soft); }
.body     { font-size: 16px; line-height: 1.65; color: var(--charcoal-soft); }
.caption  { font-size: 14px; line-height: 1.5; color: var(--charcoal-muted); }
.measure  { max-width: 65ch; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--font-body); font-weight: 500;
  border-radius: 6px; border: none; cursor: pointer;
  transition: background 140ms, transform 100ms;
  text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--terracotta); color: #fff; font-size: 15px; padding: 12px 26px; }
.btn-primary:hover  { background: var(--terracotta-hover); }
.btn-primary:active { background: var(--terracotta-press); transform: scale(0.98); }
.btn-primary-lg  { font-size: 17px; padding: 15px 34px; }
.btn-secondary { background: transparent; color: var(--charcoal); font-size: 15px; padding: 11px 24px; border: 1.5px solid var(--border-strong); }
.btn-secondary:hover { background: rgba(37,35,32,0.05); }
.btn-cream { background: var(--cream-surface); color: var(--terracotta); font-size: 16px; padding: 14px 32px; font-weight: 600; }
.btn-cream:hover { background: var(--cream); }
.link-arrow { font-size: 15px; font-weight: 500; color: var(--charcoal); display: inline-flex; align-items: center; gap: 5px; transition: color 140ms, gap 140ms; }
.link-arrow:hover { color: var(--terracotta); gap: 8px; }
.link-subtle { font-size: 15px; color: var(--charcoal); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(37,35,32,0.3); transition: color 140ms; }
.link-subtle:hover { color: var(--terracotta); }

/* ─── Navigation ──────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(244,239,228,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 var(--px);
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo-name { font-size: 16px; font-weight: 700; color: var(--charcoal); letter-spacing: -0.015em; line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; color: var(--charcoal); transition: color 140ms; }
.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }
.nav-links a.active { font-weight: 600; }
.nav-cta { flex-shrink: 0; }
.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: var(--charcoal); border-radius: 2px; }

/* Mobile nav overlay */
.mobile-nav {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: var(--cream); padding: 24px var(--px-sm);
  flex-direction: column;
}
.mobile-nav.open { display: flex; }
.mobile-nav-close {
  align-self: flex-end; font-size: 22px; background: none;
  border: none; cursor: pointer; color: var(--charcoal); padding: 4px 8px;
}
.mobile-nav-links { margin-top: 40px; }
.mobile-nav-links a {
  display: block; font-family: var(--font-display); font-size: 32px;
  color: var(--charcoal); padding: 16px 0; border-bottom: 1px solid var(--border);
}
.mobile-nav-cta { margin-top: 36px; }

/* ─── Hero ────────────────────────────────────────────── */
.hero-full {
  min-height: calc(100vh - var(--nav-h));
  padding: 80px 0;
  display: flex; align-items: center;
}
.hero-short { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.hero-text .headline { margin-bottom: 24px; }
.hero-text .subhead { font-size: 20px; line-height: 1.7; color: var(--charcoal-soft); margin-bottom: 40px; max-width: 500px; }
.hero-ctas { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-visual { display: flex; align-items: center; justify-content: center; }
.mark-ring {
  width: 340px; height: 340px; border-radius: 50%;
  background: var(--terracotta-subtle);
  border: 1.5px solid rgba(192,81,50,0.14);
  display: flex; align-items: center; justify-content: center;
}

/* ─── Problem ─────────────────────────────────────────── */
.problem-inner { display: flex; flex-direction: column; gap: 48px; }
.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-top: 16px;
  border-top: 1px solid rgba(253, 250, 245, 0.15);
}
.problem-stat-block { max-width: 40ch; }
.problem-stat { font-family: var(--font-display); font-size: clamp(56px,7vw,96px); color: var(--terracotta); line-height: 1; }
.problem-stat-label { font-size: 15px; font-weight: 500; line-height: 1.55; color: rgba(253,250,245,0.62); margin-top: 12px; }
.problem-sources {
  font-size: 13px;
  line-height: 1.65;
  color: var(--sage);
  max-width: 82ch;
}
.problem-sources a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 140ms;
}
.problem-sources a:hover { color: var(--cream-surface); }

/* ─── How it works ────────────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 48px; margin-top: 52px; }
.step-num { font-size: 12px; font-weight: 700; color: var(--terracotta); letter-spacing: 0.1em; margin-bottom: 16px; }
.step-title { font-size: 20px; font-weight: 600; color: var(--charcoal); line-height: 1.3; margin-bottom: 10px; }

/* ─── Service cards (home teaser) ────────────────────── */
.service-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px; }
.service-card {
  background: var(--cream-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 28px 26px;
}
.service-card-name { font-family: var(--font-display); font-size: 22px; color: var(--charcoal); margin-bottom: 10px; }
.service-card-desc { font-size: 15px; line-height: 1.6; color: var(--charcoal-soft); margin-bottom: 20px; }

/* ─── Demo teaser (home) ──────────────────────────────── */
.demo-teaser-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

/* ─── Phone frame ─────────────────────────────────────── */
.phone {
  background: var(--charcoal); border-radius: 36px; padding: 14px;
  width: 280px; flex-shrink: 0;
  box-shadow: 0 16px 48px rgba(37,35,32,0.16);
}
.phone-screen { background: var(--cream); border-radius: 24px; overflow: hidden; }
.phone-bar { background: var(--charcoal); padding: 10px 20px; display: flex; justify-content: space-between; font-size: 11px; color: rgba(255,255,255,0.7); font-family: var(--font-body); }
.phone-contact { background: var(--cream-surface); padding: 12px 16px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.phone-contact-info .name { font-size: 13px; font-weight: 600; color: var(--charcoal); }
.phone-contact-info .role { font-size: 11px; color: var(--charcoal-muted); }
.phone-msgs { padding: 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.45; font-family: var(--font-body); }
.msg-a { background: var(--terracotta); color: #fff; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-c { background: var(--cream-surface); color: var(--charcoal); border: 1px solid var(--border); border-bottom-right-radius: 4px; align-self: flex-end; }

/* ─── Tier sections (services) ────────────────────────── */
.tier { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.tier-inner { display: grid; grid-template-columns: 5fr 7fr; gap: 80px; align-items: start; }
.tier-left .tier-num { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.tier-name { font-family: var(--font-display); font-size: clamp(28px,3.5vw,44px); color: var(--charcoal); margin-bottom: 10px; }
.tier-position { font-size: 17px; color: var(--charcoal-soft); line-height: 1.55; margin-bottom: 24px; }
.tier-price { font-family: var(--font-display); font-size: clamp(20px,2.5vw,30px); color: var(--terracotta); margin-bottom: 28px; letter-spacing: -0.01em; }
.tier-features { margin-bottom: 28px; }
.tier-features li {
  font-size: 16px; color: var(--charcoal); padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 14px; line-height: 1.5;
}
.tier-features li::before { content: "—"; color: var(--terracotta); font-weight: 700; flex-shrink: 0; }
.tier-best {
  background: var(--terracotta-subtle); border-radius: 6px;
  padding: 16px 20px; margin-bottom: 32px;
}
.tier-best-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.09em; color: var(--terracotta); margin-bottom: 6px; }
.tier-best p { font-size: 14px; line-height: 1.6; color: var(--charcoal-soft); }

/* ─── Comparison table ────────────────────────────────── */
.table-wrap { overflow-x: auto; margin-top: 32px; }
.comparison { width: 100%; border-collapse: collapse; }
.comparison thead th {
  font-family: var(--font-display); font-size: 18px; font-weight: 400;
  color: var(--charcoal); text-align: center; padding: 16px 20px;
  border-bottom: 1.5px solid var(--charcoal);
}
.comparison thead th:first-child { text-align: left; font-family: var(--font-body); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--charcoal-muted); }
.comparison tbody td { font-size: 14px; color: var(--charcoal-soft); padding: 12px 20px; border-bottom: 1px solid var(--border); text-align: center; }
.comparison tbody td:first-child { text-align: left; font-size: 15px; color: var(--charcoal); }
.comparison tbody tr:last-child td { border-bottom: none; }
.tick { color: var(--terracotta); font-size: 17px; font-weight: 700; }
.ndash { color: var(--charcoal-muted); }

/* ─── FAQ ─────────────────────────────────────────────── */
.faq { margin-top: 40px; }
details { border-bottom: 1px solid var(--border); }
details:first-child { border-top: 1px solid var(--border); }
summary {
  font-size: 17px; font-weight: 600; color: var(--charcoal);
  padding: 20px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--terracotta); flex-shrink: 0; }
details[open] summary::after { content: "−"; }
.faq-body { font-size: 16px; line-height: 1.7; color: var(--charcoal-soft); padding-bottom: 20px; max-width: 640px; }

/* ─── Demos page sections ─────────────────────────────── */
.demo-row { padding: 80px 0; border-bottom: 1px solid var(--border); }
.demo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.demo-inner.flip { direction: rtl; }
.demo-inner.flip > * { direction: ltr; }
.demo-tier-label { font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 12px; }
.demo-headline { font-family: var(--font-display); font-size: clamp(24px,3vw,36px); color: var(--charcoal); line-height: 1.15; margin-bottom: 16px; }
.demo-body { font-size: 17px; line-height: 1.7; color: var(--charcoal-soft); margin-bottom: 28px; }
.demo-visual { display: flex; justify-content: center; }

/* ─── About ───────────────────────────────────────────── */
.story-body p { font-size: 18px; line-height: 1.78; color: var(--charcoal-soft); max-width: 65ch; margin-bottom: 24px; }
.principles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; }
.principle-head { font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--charcoal); margin-bottom: 8px; }
.principle-body { font-size: 15px; line-height: 1.65; color: var(--charcoal-soft); }

/* ─── Contact ─────────────────────────────────────────── */
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-col-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage); margin-bottom: 12px; }
.contact-col-body { font-size: 17px; line-height: 1.7; color: var(--charcoal-soft); }
.contact-col-body a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* ─── CTA block (terracotta) ──────────────────────────── */
.cta-block { background: var(--terracotta); padding: 96px 0; }
.cta-block-headline { font-family: var(--font-display); font-size: clamp(30px,4vw,48px); color: var(--cream-surface); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 20px; }
.cta-block-body { font-size: 18px; line-height: 1.65; color: rgba(253,250,245,0.75); margin-bottom: 36px; max-width: 500px; }

/* ─── Footer ──────────────────────────────────────────── */
.footer { background: var(--cream); border-top: 1px solid var(--border); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { font-size: 14px; color: var(--charcoal-muted); line-height: 1.6; margin-top: 14px; max-width: 260px; }
.footer-contact { font-size: 14px; margin-top: 14px; }
.footer-contact a { color: var(--charcoal-soft); border-bottom: 1px solid rgba(37,35,32,0.18); padding-bottom: 1px; transition: color 140ms, border-color 140ms; }
.footer-contact a:hover { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.footer-col-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--charcoal); margin-bottom: 16px; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 14px; color: var(--charcoal-soft); transition: color 140ms; }
.footer-links a:hover { color: var(--terracotta); }
.footer-links span { font-size: 14px; color: var(--charcoal-soft); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom span { font-size: 13px; color: var(--charcoal-muted); }

/* ─── Divider ─────────────────────────────────────────── */
.rule { height: 1px; background: var(--border); }
.rule-terra { height: 0.5px; background: var(--terracotta); width: 48px; margin-bottom: 28px; }

/* ─── Demos page — launching-soon banner ──────────────── */
.demo-banner {
  background: var(--terracotta-subtle);
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-banner-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.demo-banner-pill {
  display: inline-block;
  background: var(--terracotta);
  color: var(--cream-surface);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
}
.demo-banner-body {
  font-size: 18px;
  line-height: 1.6;
  color: var(--charcoal);
  max-width: 62ch;
  margin: 0;
}

/* ─── Demos page — tier blocks ────────────────────────── */
.demo-tier-copy { min-width: 0; }
.demo-tier-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.demo-tier-copy h2 { margin-bottom: 8px; }
.demo-tier-price {
  font-size: 15px;
  color: var(--charcoal-soft);
  font-weight: 500;
  margin: 0 0 22px;
}
.demo-tier-desc {
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal-soft);
  margin-bottom: 24px;
  max-width: 54ch;
}
.demo-tier-showtext {
  font-size: 13px;
  color: var(--charcoal-muted);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.demo-tier-bullets {
  list-style: disc;
  padding-left: 22px;
  margin: 0 0 26px;
}
.demo-tier-bullets li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal-soft);
  margin-bottom: 6px;
}
.demo-tier-visual { display: flex; justify-content: center; min-width: 0; }
.demo-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  max-width: 340px;
}

/* ─── Demos page — phone variant and SMS bubbles ──────── */
.phone-lg { width: 320px; }
.phone-avatar {
  width: 28px; height: 28px;
  background: var(--terracotta);
  color: var(--cream-surface);
  font-family: var(--font-display);
  font-size: 12px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.sms-thread {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sms-bubble-in,
.sms-bubble-out {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  font-family: var(--font-body);
  word-wrap: break-word;
}
.sms-bubble-in {
  background: var(--cream-surface);
  color: var(--charcoal);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}
.sms-bubble-out {
  background: var(--terracotta);
  color: var(--cream-surface);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}
.sms-link {
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.phone-notice {
  background: var(--charcoal);
  color: var(--cream-surface);
  font-size: 12px;
  padding: 10px 14px;
  text-align: center;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}

/* ─── Demos page — urgent alert notification card ─────── */
.urgent-alert-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.urgent-alert-card {
  background: rgba(253, 250, 245, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  box-shadow: 0 8px 28px rgba(37, 35, 32, 0.10);
}
.urgent-alert-icon {
  width: 36px; height: 36px;
  background: var(--terracotta);
  color: var(--cream-surface);
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}
.urgent-alert-body { flex: 1; min-width: 0; }
.urgent-alert-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--charcoal-muted);
  margin-bottom: 4px;
}
.urgent-alert-app { font-weight: 600; color: var(--charcoal); }
.urgent-alert-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 4px;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
}
.urgent-alert-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--charcoal-soft);
  margin: 0;
}
.urgent-alert-caption {
  font-size: 13px;
  color: var(--sage);
  font-style: italic;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ─── Demos page — voice player card (non-functional) ─── */
.voice-player-card {
  background: var(--cream-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 6px 18px rgba(37, 35, 32, 0.06);
}
.voice-player-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.voice-player-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(192, 81, 50, 0.14);
}
.voice-player-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.02em;
}
.voice-player-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.voice-play-btn {
  width: 44px; height: 44px;
  background: var(--terracotta);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-left: 3px;
}
.voice-player-waveform {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 40px;
  min-width: 0;
}
.waveform-bar {
  flex: 1 1 0;
  min-width: 2px;
  background: var(--terracotta);
  border-radius: 2px;
  opacity: 0.85;
}
.voice-player-caption {
  font-size: 12px;
  color: var(--charcoal-muted);
  font-style: italic;
  margin: 12px 0 0;
}

/* ─── Demos page — voice transcript ───────────────────── */
.voice-transcript {
  background: var(--cream-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
}
.voice-transcript-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin-bottom: 14px;
}
.transcript-line {
  display: grid;
  grid-template-columns: 60px 1fr;
  column-gap: 10px;
  margin-bottom: 12px;
  align-items: baseline;
}
.transcript-line:last-child { margin-bottom: 0; }
.transcript-line p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 0;
}
.transcript-speaker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 2px;
}
.speaker-allie  { color: var(--terracotta); }
.speaker-caller { color: var(--charcoal-muted); }

/* ─── Demos page — SMS follow-up snippet ──────────────── */
.sms-followup {
  background: var(--cream-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}
.sms-followup-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--charcoal-muted);
  margin: 0 0 12px;
}
.sms-followup-bubble {
  background: var(--terracotta);
  color: var(--cream-surface);
  padding: 12px 16px;
  border-radius: 14px;
  border-bottom-right-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  max-width: 86%;
  margin-left: auto;
}

/* ─── 404 page ────────────────────────────────────────── */
.error-page { text-align: center; padding: 120px 0; }
.error-page .container { max-width: 620px; }
.error-page h1 { margin: 8px 0 20px; }
.error-page .error-lede { margin: 0 auto 36px; max-width: 48ch; color: var(--charcoal-soft); }
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.error-helpful {
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.error-helpful a { font-size: 15px; }

/* ─── Legal pages (privacy / terms / cookies) ─────────── */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 16px;
}
.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 400;
  margin-top: 16px;
  margin-bottom: 10px;
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-top: 44px;
  margin-bottom: 14px;
}
.legal-page h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 28px;
  margin-bottom: 10px;
}
.legal-page p {
  font-size: 16px;
  line-height: 1.72;
  color: var(--charcoal-soft);
  margin-bottom: 16px;
}
.legal-page ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 20px;
}
.legal-page li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--charcoal-soft);
  margin-bottom: 8px;
}
.legal-page strong { color: var(--charcoal); font-weight: 600; }
.legal-page code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--cream-deep);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--charcoal);
}
.legal-page a {
  color: var(--terracotta);
  border-bottom: 1px solid rgba(192, 81, 50, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.legal-page a:hover {
  color: var(--terracotta-hover);
  border-bottom-color: var(--terracotta-hover);
}
.legal-page .legal-meta {
  font-size: 14px;
  color: var(--charcoal-muted);
  margin-bottom: 32px;
}
.legal-page .legal-callout {
  background: var(--terracotta-subtle);
  border-left: 3px solid var(--terracotta);
  padding: 18px 22px;
  margin: 12px 0 32px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--charcoal);
}
.legal-page .legal-back {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.legal-page .legal-back a {
  border-bottom: none;
}

/* ─── Responsive ──────────────────────────────────────── */
@media (max-width: 960px) {
  :root { --section-y: 72px; --px: 32px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .mark-ring { width: 200px; height: 200px; }
  .mark-ring svg { width: 100px !important; height: 113px !important; }
  .problem-stats { grid-template-columns: 1fr 1fr; gap: 40px; }
  .steps-grid { grid-template-columns: 1fr; gap: 36px; }
  .service-cards { grid-template-columns: 1fr; }
  .demo-teaser-inner { grid-template-columns: 1fr; gap: 40px; }
  .tier-inner { grid-template-columns: 1fr; gap: 36px; }
  .demo-inner { grid-template-columns: 1fr; gap: 40px; }
  .demo-inner.flip { direction: ltr; }
  .principles-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-cols { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --px: var(--px-sm); }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-full { min-height: auto; padding: 60px 0; }
  .hero-text .subhead { font-size: 17px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .calendly-inline-widget { height: 900px !important; }
  .demo-banner-body { font-size: 16.5px; }
  .demo-tier-desc { font-size: 16px; }
  .problem-stats { grid-template-columns: 1fr; gap: 36px; }
  .problem-stat-block { max-width: none; }
  .error-actions { flex-direction: column; align-items: stretch; }
  .error-actions .btn { width: 100%; }
}
@media (max-width: 420px) {
  .phone-lg { width: 100%; max-width: 300px; }
  .demo-stack { max-width: 300px; }
  .voice-player-card,
  .voice-transcript,
  .sms-followup { padding: 16px 18px; }
  .voice-player-row { gap: 12px; }
  .voice-play-btn { width: 40px; height: 40px; }
  .waveform-bar { min-width: 1.5px; }
  .transcript-line { grid-template-columns: 52px 1fr; column-gap: 8px; }
  .urgent-alert-card { padding: 12px 14px; }
}
