/* NeverMissed AI — shared styles
   Palette: cool "paper", deep teal ink, answer-button green, amber for ringing. */

:root {
  color-scheme: light;
  --paper: #EEF2EF;
  --surface: #FFFFFF;
  --ink: #0F2A2C;
  --muted: #4E6461;
  --line: #C9D4D0;
  --go: #0B7A5E;         /* "answer" green */
  --go-hover: #096A51;
  --go-ink: #FFFFFF;
  --ring: #E89B1C;       /* ringing amber */
  --highlight: #DDEFE6;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 3.5vw, 2.6rem);
  --step-4: clamp(2.6rem, 6.4vw, 4.75rem);

  --radius-sm: 6px;
  --radius-lg: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #0E1C1D;
    --surface: #14282A;
    --ink: #E7EFEC;
    --muted: #9DB2AE;
    --line: #29413F;
    --go: #2FBF8F;
    --go-hover: #45D3A2;
    --go-ink: #06231A;
    --ring: #F4B84A;
    --highlight: #173A33;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--go); text-underline-offset: 3px; }
a:hover { color: var(--go-hover); }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 10;
}
.skip:focus { top: 12px; color: var(--paper); }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--go);
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 18px; height: 18px; stroke: var(--go-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step-0);
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  line-height: 1.2;
}
.btn-small { padding: 9px 18px; font-size: var(--step--1); background: var(--ink); color: var(--paper); }
.btn-small:hover { color: var(--paper); opacity: 0.88; }

.btn-call {
  background: var(--go);
  color: var(--go-ink);
  padding: 12px 28px 12px 12px;
}
.btn-call:hover { background: var(--go-hover); color: var(--go-ink); }
.btn-call small { display: block; font-weight: 400; font-size: var(--step--1); opacity: 0.9; }

.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* The ringing phone: the page's one ambient motion */
.ringer {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--go-ink);
  display: grid;
  place-items: center;
  flex: none;
}
.ringer svg { width: 22px; height: 22px; stroke: var(--go); }
.ringer::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 3px solid var(--ring);
  opacity: 0;
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0%   { transform: scale(0.9); opacity: 0.9; }
  70%  { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .ringer::after { animation: none; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-grid {
  display: grid;
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
}
@media (min-width: 920px) { .hero-grid { grid-template-columns: 1.25fr 0.75fr; } }

.hero h1 {
  font-size: var(--step-4);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  max-width: 14ch;
  margin-bottom: 0.4em;
}
.lede { font-size: var(--step-1); color: var(--muted); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 14px; align-items: center; }
.note { font-size: var(--step--1); color: var(--muted); }

/* Call log card */
.call-log {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 10px;
}
.call-log h2 { font-size: var(--step-0); margin-bottom: 4px; letter-spacing: 0; }
.call-log .sub { font-size: var(--step--1); color: var(--muted); margin-bottom: 12px; }
.call-log ol { list-style: none; margin: 0; padding: 0; }
.call-log li {
  display: grid;
  grid-template-columns: 4.6rem 1fr;
  gap: 2px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
}
.call-log time { color: var(--muted); font-variant-numeric: tabular-nums; }
.call-log .why { font-weight: 700; }
.call-log .outcome { grid-column: 2; color: var(--go); }
.call-log .outcome.screened { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section-intro { max-width: 60ch; margin-bottom: 40px; }
.section-intro p { color: var(--muted); font-size: var(--step-1); }

/* Steps (a real sequence, so numbered) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 32px;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-2);
  color: var(--go);
  margin-bottom: 6px;
}
.steps p { color: var(--muted); max-width: 34ch; }

/* ---------- Demo player ---------- */
.demo { background: var(--surface); }
.demo-grid { display: grid; gap: 40px; }
@media (min-width: 920px) { .demo-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.player {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  background: var(--paper);
}
.player-row { display: flex; align-items: center; gap: 16px; }
.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 0;
  background: var(--go);
  color: var(--go-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}
.play-btn:hover { background: var(--go-hover); }
.play-btn:disabled { background: var(--line); cursor: not-allowed; }
.play-btn svg { width: 26px; height: 26px; fill: currentColor; }
.play-btn .icon-pause { display: none; }
.play-btn[aria-pressed="true"] .icon-play { display: none; }
.play-btn[aria-pressed="true"] .icon-pause { display: block; }

.track { flex: 1; min-width: 0; }
.track-title { font-weight: 700; margin-bottom: 6px; }
.seek { width: 100%; accent-color: var(--go); margin: 0; }
.times {
  display: flex;
  justify-content: space-between;
  font-size: var(--step--1);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.player-status {
  margin: 14px 0 0;
  font-size: var(--step--1);
  color: var(--ink);
  background: var(--highlight);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
}

.transcript {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 440px;
  overflow-y: auto;
  border-left: 3px solid var(--line);
}
.transcript button {
  all: unset;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  cursor: pointer;
  color: var(--muted);
  border-left: 3px solid transparent;
  margin-left: -3px;
}
.transcript button:hover { color: var(--ink); }
.transcript button:focus-visible { outline: 3px solid var(--ring); outline-offset: -3px; }
.transcript .who { font-weight: 700; font-size: var(--step--1); padding-top: 2px; }
.transcript .is-active button {
  color: var(--ink);
  background: var(--highlight);
  border-left-color: var(--go);
}
.transcript .ai .who { color: var(--go); }

/* ---------- Who it's for ---------- */
.trades {
  display: grid;
  gap: 0 48px;
  margin: 0;
}
@media (min-width: 760px) { .trades { grid-template-columns: 1fr 1fr; } }
.trades div { padding: 20px 0; border-top: 1px solid var(--line); }
.trades dt { font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); }
.trades dd { margin: 4px 0 0; color: var(--muted); max-width: 44ch; }

/* ---------- Closing CTA ---------- */
.closer { background: var(--ink); color: var(--paper); border-top: 0; }
.closer h2 { color: var(--paper); max-width: 18ch; }
.closer p { color: var(--paper); opacity: 0.8; max-width: 50ch; }
.closer .btn-call { margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; font-size: var(--step--1); color: var(--muted); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); font-weight: 700; }
.site-footer address { font-style: normal; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal article { max-width: 68ch; }
.legal h1 { font-size: var(--step-3); font-weight: 800; }
.legal h2 { font-size: var(--step-1); margin-top: 2em; }
.legal .effective { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.4em; }
