/* ============================================================================
   Ansela — Dial Tone marketing landing
   Locked design language: GPO-green switchboard heritage. Palette + type per
   the Ansela Design Brief. Hero thesis = a live call, answered in real time.
   ============================================================================ */

:root {
  /* Dial Tone palette */
  --green: #0B5D4E;       /* GPO green — primary */
  --green-deep: #08453A;
  --brass: #C68A3E;       /* the operator's lamp */
  --brass-soft: #F0C27B;
  --ink: #13231F;         /* near-black green-black */
  --ground: #FAFBFA;      /* paper */
  --sage: #CDD8CF;        /* hairlines, muted */
  --signal: #D9583B;      /* alerts / the live light */
  --muted: #5b6b65;
  --paper-warm: #FBF6EE;

  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "SF Mono", monospace;

  --maxw: 1140px;
  --radius: 14px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--ground);
  padding: 10px 16px; border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 6px; }

/* ---- buttons ---------------------------------------------------------- */
.btn {
  --b: var(--green);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 11px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: var(--ground); box-shadow: 0 1px 0 var(--green-deep); }
.btn--primary:hover { background: var(--green-deep); box-shadow: 0 6px 22px -10px var(--green); }
.btn--ghost { background: transparent; color: var(--green); border-color: var(--sage); }
.btn--ghost:hover { border-color: var(--green); background: #ffffff; }
.btn--lg { font-size: 16px; padding: 15px 28px; }

/* ---- wordmark + lamp -------------------------------------------------- */
.wordmark { display: inline-flex; align-items: baseline; gap: 9px; text-decoration: none; }
.wordmark__text { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--green); letter-spacing: -0.01em; }
.wordmark__by { font-size: 12px; color: var(--muted); font-weight: 500; }
.lamp {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 4px rgba(240,194,123,.33);
  align-self: center;
  animation: lamp-pulse 3.4s ease-in-out infinite;
}
@keyframes lamp-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(240,194,123,.30); }
  50% { box-shadow: 0 0 0 6px rgba(240,194,123,.12); }
}
@media (prefers-reduced-motion: reduce) { .lamp { animation: none; } }

/* ---- header ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(250,251,250,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--sage);
}
.nav {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__link { text-decoration: none; color: var(--ink); font-size: 15px; padding: 8px 12px; border-radius: 9px; }
.nav__link:hover { background: #fff; }
.nav__signin { text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 600; padding: 8px 12px; }
.nav__signin:hover { color: var(--green); }
@media (max-width: 720px) { .nav__link { display: none; } }
@media (max-width: 460px) {
  .nav { padding: 12px 16px; }
  .wordmark__by { display: none; }
  .nav__signin { display: none; }
}

/* ---- hero ------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(40px, 7vw, 92px) 24px clamp(48px, 7vw, 88px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
@media (max-width: 920px) { .hero { grid-template-columns: 1fr; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--green); margin: 0 0 18px;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(217,88,59,.18); }
.eyebrow--brass { color: var(--brass); }
.eyebrow--brass .eyebrow__dot { background: var(--brass); box-shadow: 0 0 0 3px rgba(198,138,62,.2); }

.hero__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 20px; color: var(--ink);
}
.hero__lede { font-size: clamp(17px, 2.1vw, 20px); color: #34433d; margin: 0 0 28px; max-width: 30em; }
.hero__cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.hero__reassure { font-size: 13.5px; color: var(--muted); margin: 0; font-family: var(--font-mono); }

/* ---- the switchboard (signature element) ------------------------------ */
.switchboard {
  background: var(--ink);
  border-radius: var(--radius-lg);
  border: 1px solid #21352f;
  box-shadow: 0 30px 60px -32px rgba(11,93,78,.55), 0 2px 0 rgba(255,255,255,.02) inset;
  overflow: hidden;
  min-height: 360px;
  display: flex; flex-direction: column;
}
.switchboard__bar {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid #243a33;
  background: #16271f;
}
.switchboard__light {
  width: 9px; height: 9px; border-radius: 50%; background: var(--signal);
  box-shadow: 0 0 10px 1px rgba(217,88,59,.8);
  animation: live-blink 1.4s steps(1) infinite;
}
@keyframes live-blink { 0%,60% { opacity: 1; } 61%,100% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .switchboard__light { animation: none; } }
.switchboard__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; color: var(--brass-soft); flex: 1; }
.switchboard__timer { font-family: var(--font-mono); font-size: 12px; color: #8aa49a; }

.transcript {
  list-style: none; margin: 0; padding: 18px 18px 6px;
  display: flex; flex-direction: column; gap: 12px; flex: 1;
  font-family: var(--font-mono); font-size: 13.5px; line-height: 1.5;
}
.turn { display: flex; flex-direction: column; gap: 3px; opacity: 0; transform: translateY(6px); animation: turn-in .35s ease forwards; }
@keyframes turn-in { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .turn { animation: none; opacity: 1; transform: none; } }
.turn__who { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #6f8a80; }
.turn__text { color: #e7efe9; }
.turn--ansela .turn__who { color: var(--brass); }
.turn--ansela .turn__text { color: #fbf6ee; }
.turn--caller .turn__text { color: #bcd0c8; }
.cursor::after { content: "▋"; color: var(--brass); animation: blink .9s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

.switchboard__footer { padding: 0 18px 16px; min-height: 30px; }
.switchboard__outcome {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; color: #bfe6d6;
  background: rgba(11,93,78,.4); border: 1px solid #1f4a3f;
  padding: 7px 12px; border-radius: 9px;
}
.switchboard__check {
  width: 17px; height: 17px; border-radius: 50%; background: var(--green);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}

/* ---- sections shared -------------------------------------------------- */
.section-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(27px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 0 14px; color: var(--ink); max-width: 16em;
}
.section-sub { color: var(--muted); font-size: 17px; margin: 0 0 36px; max-width: 44em; }

.value { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 24px; }
.value__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .value__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .value__grid { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--sage); border-radius: var(--radius);
  padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 9px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover { border-color: var(--green); transform: translateY(-2px); box-shadow: 0 16px 30px -22px rgba(11,93,78,.5); }
.card__num { font-family: var(--font-mono); font-size: 12px; color: var(--brass); letter-spacing: .08em; }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0; color: var(--ink); }
.card__body { margin: 0; color: #41524c; font-size: 15px; }

/* ---- pricing ---------------------------------------------------------- */
.pricing { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 24px; }
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
@media (max-width: 860px) { .pricing__grid { grid-template-columns: 1fr; max-width: 460px; } }

.plan {
  position: relative; background: #fff; border: 1px solid var(--sage);
  border-radius: var(--radius-lg); padding: 28px 26px 30px;
  display: flex; flex-direction: column; gap: 6px;
}
.plan--featured { border-color: var(--green); box-shadow: 0 24px 50px -30px rgba(11,93,78,.55); }
.plan__flag {
  position: absolute; top: -12px; left: 26px;
  background: var(--green); color: var(--ground);
  font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px;
  font-family: var(--font-mono); letter-spacing: .04em;
}
.plan__name { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0; color: var(--green); }
.plan__price { margin: 6px 0 2px; display: flex; align-items: baseline; gap: 4px; }
.plan__amt { font-family: var(--font-display); font-weight: 700; font-size: 40px; color: var(--ink); letter-spacing: -0.02em; }
.plan__per { font-size: 15px; color: var(--muted); }
.plan__mins { font-family: var(--font-mono); font-size: 13px; color: var(--brass); margin: 0 0 4px; }
.plan__for { color: #41524c; font-size: 15px; margin: 0 0 14px; }
.plan__list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.plan__list li { position: relative; padding-left: 24px; font-size: 14.5px; color: #34433d; }
.plan__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--green);
  font-weight: 700; width: 17px; height: 17px;
}
.plan__cta { width: 100%; }

/* ---- backbone (by BookEasy) ------------------------------------------ */
.backbone {
  background: var(--paper-warm);
  border-top: 1px solid #ecdcc2; border-bottom: 1px solid #ecdcc2;
  margin-top: 20px;
}
.backbone__inner { max-width: 760px; margin: 0 auto; padding: clamp(48px, 7vw, 84px) 24px; text-align: center; }
.backbone__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(25px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--ink); }
.backbone__body { color: #41524c; font-size: 17px; margin: 0 auto 26px; max-width: 40em; }

/* ---- closer ----------------------------------------------------------- */
.closer {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 24px; text-align: center;
}
.closer__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.06; letter-spacing: -0.02em; margin: 0 0 14px; color: var(--ink); }
.closer__sub { color: var(--muted); font-size: 18px; margin: 0 auto 30px; max-width: 34em; }

/* ---- footer ----------------------------------------------------------- */
.site-footer { background: var(--ink); color: #cdd8cf; }
.site-footer__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 36px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.wordmark--footer .wordmark__text { color: #fbf6ee; }
.site-footer__line { font-size: 13.5px; color: #8aa49a; margin: 0; }
.site-footer__links { display: flex; gap: 18px; }
.site-footer__links a { color: #cdd8cf; text-decoration: none; font-size: 14px; }
.site-footer__links a:hover { color: var(--brass-soft); }
