/* BWG Beepler · "The Pager" · dot-matrix LCD idiom */

:root {
  --ink: #14100c;
  --ink-2: #221b13;
  --ink-3: #2e2418;
  --lcd: #261d0a;
  --amber: #ffb000;
  --amber-hi: #ffcd54;
  --amber-dim: #96681a;
  --amber-text: #ffb000;
  --cream: #f4efe6;
  --cream-2: #eae3d4;
  --cream-dim: #c4bcac;
  --red: #e1251b;
  --red-deep: #a80f06;
  --red-hover: #b8140e;
  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --step--1: clamp(0.78rem, 0.75rem + 0.2vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.9rem + 0.3vw, 1.05rem);
  --step-1: clamp(1.2rem, 1.05rem + 0.8vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.6vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.6rem + 3.2vw, 3.6rem);
  --step-4: clamp(3rem, 2rem + 5.5vw, 5.6rem);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.75rem;
  --space-4: 3rem;
  --space-5: 5rem;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--amber); color: var(--ink); }

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -4rem;
  z-index: 100;
  background: var(--amber);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: top 0.2s;
}
.skip-link:focus { top: var(--space-1); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Dot-grid textures live on dedicated sibling layers (never pseudo
   elements), so automated contrast checks see the solid ground. */
.dots {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.dots-ink {
  background-image: radial-gradient(circle at 1px 1px, rgba(255, 176, 0, 0.08) 1.5px, transparent 1.6px);
  background-size: 26px 26px;
}
.dots-cream {
  background-image: radial-gradient(circle at 1px 1px, rgba(20, 16, 12, 0.07) 1.4px, transparent 1.5px);
  background-size: 24px 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 3px solid var(--amber-dim);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--cream);
  letter-spacing: 0.06em;
  min-height: 44px;
}
.brand-tile {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 9px;
  padding: 3px;
  display: inline-flex;
  flex: none;
}
.brand-tile img { width: 100%; height: 100%; border-radius: 6px; }
.brand-word { font-family: var(--mono); font-size: var(--step-0); }
.brand-word strong { color: var(--amber); letter-spacing: 0.14em; }
.brand-slash { color: var(--amber-text); }

.site-nav { display: flex; gap: 0.4rem; font-family: var(--mono); }
.site-nav a {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--amber-hi); background: var(--ink-2); }
.site-nav .slot {
  color: var(--amber-text);
  font-size: 0.72em;
  border: 1px solid var(--ink-3);
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
}
.site-nav .nav-cta {
  color: var(--ink);
  background: var(--amber);
  font-weight: 700;
}
.site-nav .nav-cta .slot { color: var(--ink); border-color: rgba(20, 16, 12, 0.4); }
.site-nav .nav-cta:hover { background: var(--amber-hi); color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: var(--ink-2);
  border: 1px solid var(--ink-3);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { height: 3px; background: var(--amber); border-radius: 2px; }

/* ---------- hero: one viewport poster ---------- */

.hero {
  min-height: 100svh;
  background: var(--ink);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 0;
  overflow: hidden;
  border-bottom: 6px solid var(--amber);
}
.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: var(--space-4) var(--space-2);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--space-4);
  align-items: center;
}
.eyebrow {
  font-family: var(--mono);
  color: var(--amber);
  font-size: var(--step--1);
  letter-spacing: 0.28em;
  margin-bottom: var(--space-2);
}
.hero h1 {
  font-family: var(--sans);
  font-size: var(--step-4);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.blink { color: var(--amber); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-sub {
  font-size: var(--step-1);
  color: var(--cream-dim);
  max-width: 34ch;
  margin-bottom: var(--space-3);
}
.hero-sub strong { color: var(--amber-hi); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-2); }
.hero-note { font-family: var(--mono); color: var(--amber-text); font-size: var(--step--1); letter-spacing: 0.12em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.6rem;
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--step-0);
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { border-color: var(--amber-dim); color: var(--amber); background: transparent; }
.btn-ghost:hover { border-color: var(--amber); color: var(--amber-hi); }
.btn-big { width: 100%; font-size: var(--step-1); min-height: 56px; }

/* pager device */
.hero-device { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.pager {
  width: min(340px, 86vw);
  background: var(--ink-2);
  border: 3px solid var(--ink-3);
  border-radius: 30px;
  padding: 1.3rem 1.2rem 1.5rem;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), inset 0 2px 0 rgba(255, 205, 84, 0.08);
}
.pager-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  font-family: var(--mono);
  color: var(--amber-text);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}
.pager-brand { font-weight: 700; }
.pager-model { margin-left: auto; letter-spacing: 0.15em; }
.pager-led {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px var(--red);
}
.pager-led.on { animation: ledblink 0.5s steps(1) 3; }
@keyframes ledblink { 50% { opacity: 0.15; box-shadow: none; } }
.pager-screen {
  background: var(--lcd);
  border-radius: 12px;
  border: 2px solid #171006;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.75), inset 0 0 60px rgba(255, 176, 0, 0.06);
  padding: 1.1rem 1rem;
  min-height: 9.2rem;
  display: flex;
  align-items: center;
}
.pager-screen.beep { animation: glow 0.9s ease-out; }
@keyframes glow {
  0% { box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.75), 0 0 42px rgba(255, 176, 0, 0.5); }
  100% { box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.75), 0 0 0 rgba(255, 176, 0, 0); }
}
.lcd { width: 100%; font-family: var(--mono); }
.lcd-line {
  color: var(--amber);
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  line-height: 1.7;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.45);
  white-space: nowrap;
  overflow: hidden;
}
.lcd-big { color: var(--amber-hi); font-weight: 700; }
.lcd-dim { color: var(--cream-dim); font-size: 0.85rem; text-shadow: none; }
.pager-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1.1rem; }
.pbtn {
  width: 44px;
  height: 18px;
  border-radius: 9px;
  background: var(--ink-3);
  border: 1px solid #3d2f1d;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.5);
}
.pbtn-wide { width: 76px; }
.device-caption {
  font-family: var(--mono);
  color: var(--amber-text);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
}
.scroll-hint {
  position: absolute;
  bottom: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  color: var(--amber-text);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- code band ---------- */

.code-band { background: var(--ink); line-height: 0; }
.code-band img { width: 100%; object-fit: cover; max-height: 300px; }

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

.section { padding: var(--space-5) var(--space-2); position: relative; z-index: 0; }
.section-inner { max-width: 1100px; margin: 0 auto; position: relative; }
.section-cream { background: var(--cream); }
.section-ink { background: var(--ink); color: var(--cream); }
.kicker {
  font-family: var(--mono);
  color: var(--red-deep);
  font-size: var(--step--1);
  letter-spacing: 0.3em;
  margin-bottom: var(--space-1);
}
.section-ink .kicker { color: var(--amber); }
h2 {
  font-family: var(--sans);
  font-size: var(--step-3);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin-bottom: var(--space-3);
  text-wrap: balance;
}
.section-lede { max-width: 52ch; margin-bottom: var(--space-4); color: var(--cream-dim); }
.section-cream .section-lede { color: var(--ink); }

/* how steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.step {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  border: 2px solid var(--ink);
  background: var(--cream);
  padding: var(--space-3);
  border-radius: var(--radius);
  max-width: 780px;
  box-shadow: 3px 3px 0 rgba(20, 16, 12, 0.85);
}
.step-flip { margin-left: auto; box-shadow: -3px 3px 0 rgba(20, 16, 12, 0.85); }
.step-num {
  font-family: var(--mono);
  font-size: var(--step-3);
  font-weight: 800;
  color: var(--amber);
  -webkit-text-stroke: 2px var(--ink);
  line-height: 1;
}
.step-body h3 { font-family: var(--sans); font-weight: 800; font-size: var(--step-1); margin-bottom: var(--space-1); letter-spacing: 0.02em; }
.step-body p { max-width: 52ch; }
.step-code {
  font-family: var(--mono);
  font-size: var(--step-2);
  font-weight: 800;
  color: var(--amber-dim);
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

/* trades phonebook */
.book { list-style: none; border-top: 2px solid var(--ink-3); }
.book a {
  display: grid;
  grid-template-columns: 4rem 1fr 1.4fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: 1.05rem var(--space-1);
  color: var(--cream);
  text-decoration: none;
  border-bottom: 2px solid var(--ink-3);
  min-height: 44px;
  transition: background 0.15s, color 0.15s;
}
.book a:hover { background: var(--amber); color: var(--ink); }
.book a:hover .slot, .book a:hover .status { color: var(--ink); border-color: var(--ink); }
.book .slot { color: var(--amber-text); font-size: var(--step--1); letter-spacing: 0.15em; }
.trade { font-family: var(--sans); font-weight: 800; font-size: var(--step-1); letter-spacing: 0.04em; }
.scope { color: inherit; opacity: 0.75; font-size: var(--step--1); }
.status {
  font-family: var(--mono);
  border: 1px solid var(--amber-dim);
  color: var(--amber);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  white-space: nowrap;
}
.status-hot { border-color: var(--red); color: #ff6a5e; }
.book a:hover .status-hot { color: var(--red-deep); }

/* why */
.why-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-4);
  align-items: center;
}
.readouts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.readout {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--lcd);
  padding: var(--space-2);
  box-shadow: 3px 3px 0 rgba(20, 16, 12, 0.85);
}
.readout dt {
  font-family: var(--mono);
  color: var(--amber);
  font-weight: 800;
  font-size: var(--step-1);
  letter-spacing: 0.18em;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 10px rgba(255, 176, 0, 0.35);
}
.readout dd { color: var(--cream-dim); font-size: var(--step--1); line-height: 1.55; }
.why-art img { filter: drop-shadow(0 24px 34px rgba(20, 16, 12, 0.3)); }

/* lead stack: real markup instead of a generated image — every word is true */
.lead-stack { display: flex; flex-direction: column; gap: var(--space-2); align-items: center; }
.mini-pager {
  width: min(420px, 100%);
  background: var(--ink-2);
  border: 3px solid var(--ink-3);
  border-radius: 18px;
  padding: 0.85rem 0.9rem 0.95rem;
  box-shadow: 0 18px 34px rgba(20, 16, 12, 0.28);
}
.mini-pager:nth-child(1) { transform: rotate(1.1deg); }
.mini-pager:nth-child(2) { transform: rotate(-1.3deg) translateX(1rem); }
.mini-pager:nth-child(3) { transform: rotate(0.7deg) translateX(0.4rem); }
.mini-lcd {
  font-family: var(--mono);
  background: var(--lcd);
  border: 2px solid #171006;
  border-radius: 10px;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.7);
  padding: 0.75rem 0.9rem;
  color: var(--amber);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  line-height: 1.7;
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.4);
}
.mini-lcd .big { color: var(--amber-hi); font-weight: 700; }
.mini-lcd .dim { color: var(--cream-dim); font-size: 0.76rem; text-shadow: none; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: stretch; }
.plan {
  position: relative;
  border: 2px solid var(--ink-3);
  border-radius: var(--radius);
  background: var(--ink-2);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.plan:hover { border-color: var(--amber-dim); }
.plan-featured {
  border-color: var(--amber);
  background: var(--lcd);
  transform: translateY(-0.8rem);
  box-shadow: 0 0 0 2px var(--ink), 5px 6px 0 rgba(255, 176, 0, 0.18);
}
.plan-tag {
  position: absolute;
  top: -0.85rem;
  left: var(--space-3);
  background: var(--red-deep);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  padding: 0.25rem 0.7rem;
  border-radius: 5px;
}
.plan-head h3 { font-family: var(--sans); font-weight: 800; font-size: var(--step-2); letter-spacing: 0.04em; }
.plan-code { font-family: var(--mono); color: var(--amber-text); font-size: var(--step--1); letter-spacing: 0.3em; }
.price { font-size: var(--step-2); font-weight: 800; color: var(--amber-hi); }
.price .per { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 400; letter-spacing: 0.2em; color: var(--cream-dim); }
.plan-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.plan-list li { padding-left: 1.5rem; position: relative; color: var(--cream-dim); font-size: var(--step--1); }
.plan-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.7rem;
  height: 0.35rem;
  background: var(--amber);
}
.plan .btn { align-self: stretch; }

/* voices */
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); align-items: start; }
.voice {
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: var(--ink);
  padding: var(--space-2);
  box-shadow: 4px 4px 0 var(--amber);
}
.voice-up { transform: translateY(-1.6rem); box-shadow: 4px 4px 0 var(--red); }
.voice-screen {
  font-family: var(--mono);
  background: var(--lcd);
  border-radius: 10px;
  color: var(--amber);
  font-size: var(--step-0);
  letter-spacing: 0.1em;
  line-height: 1.75;
  padding: var(--space-2);
  margin-bottom: var(--space-2);
  text-shadow: 0 0 8px rgba(255, 176, 0, 0.4);
  min-height: 7rem;
  display: flex;
  align-items: center;
}
.voice footer { color: var(--cream-dim); font-size: var(--step--1); padding: 0 var(--space-1) 0.4rem; }

/* contact / cta */
.section-cta {
  background: var(--ink);
  color: var(--cream);
  border-top: 6px solid var(--amber);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
  max-width: 640px;
}
.section-cta .kicker { color: var(--amber); }
.page-form { display: flex; flex-direction: column; gap: var(--space-2); max-width: 480px; }
.field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.field-row { display: flex; gap: var(--space-2); }
.field-zip { max-width: 140px; }
.field label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.24em; color: var(--amber-text); }
.field input, .field select {
  font-family: var(--mono);
  font-size: var(--step-0);
  color: var(--amber-hi);
  background: var(--lcd);
  border: 2px solid var(--ink-3);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  min-height: 48px;
}
.field input:focus, .field select:focus { border-color: var(--amber); outline-offset: 0; }
.field input::placeholder { color: var(--amber-dim); }
.form-note { color: var(--cream-dim); font-size: var(--step--1); }
.cta-art img { max-height: 560px; margin: 0 auto; }

/* footer */
.site-footer { background: #0c0906; color: var(--cream-dim); border-top: 3px solid var(--ink-3); }
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  text-align: center;
}
.footer-line { color: var(--cream); letter-spacing: 0.08em; }
.footer-byline { font-size: var(--step--1); color: var(--cream); }
.footer-byline a { color: var(--amber); text-decoration: none; font-weight: 700; }
.footer-byline a:hover { color: var(--amber-hi); text-decoration: underline; }
.footer-contact { font-size: var(--step--1); }
.footer-contact a { color: var(--amber); text-decoration: none; }
.footer-contact a:hover { color: var(--amber-hi); text-decoration: underline; }
.footer-codes { font-family: var(--mono); color: var(--amber-text); letter-spacing: 0.3em; font-size: var(--step--1); }
.footer-legal { font-size: 0.72rem; letter-spacing: 0.1em; }

/* reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 960px) {
  .hero-inner, .why-grid, .cta-grid { grid-template-columns: 1fr; }
  .hero { justify-content: flex-start; }
  .hero-device { order: 2; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .voices { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .voice-up { transform: none; }
  .readouts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    padding: var(--space-2);
    border-bottom: 3px solid var(--amber-dim);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; }
}

@media (max-width: 620px) {
  .book a { grid-template-columns: 2.6rem 1fr auto; }
  .book .scope { display: none; }
  .step { grid-template-columns: auto 1fr; }
  .step-code { display: none; }
  .readouts { grid-template-columns: 1fr; }
  .field-row { flex-direction: column; }
  .field-zip { max-width: none; }
  .step-flip { margin-left: 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .blink { animation: none; }
}
