/* =========================================================================
   VoIP Reporter — Grant's Computing
   Visual identity: navy (#000080) telco hardware + amber "active call" signal.
   Display: Space Grotesk · Body: IBM Plex Sans · Mono: IBM Plex Mono
   ========================================================================= */

:root {
  /* Brand + surfaces */
  --navy:        #000080;   /* Grant's Computing brand navy */
  --navy-600:    #1414a6;   /* lifted navy (hover) */
  --ink:         #06071c;   /* dark base background (blue-tinted, not pure black) */
  --ink-800:     #0b0e2a;   /* panel */
  --ink-700:     #141a44;   /* raised panel */
  --paper:       #f4f6fc;   /* cool off-white section */
  --paper-2:     #eaeefb;   /* alt paper */
  --paper-line:  #d7def1;   /* hairline on paper */

  /* Text */
  --text:        #0b0e24;   /* on paper */
  --text-dim:    #565f80;   /* muted on paper */
  --text-inv:    #edf0fb;   /* on ink */
  --text-inv-dim:#98a1cc;   /* muted on ink */

  /* Signal / status */
  --signal:      #ffb020;   /* amber "active call" accent */
  --signal-soft: #ffcf6b;
  --wire:        #6b7bc9;   /* periwinkle hairline / secondary */
  --good:        #35d38a;   /* connected LED */

  --radius:      8px;
  --radius-sm:   6px;
  --maxw:        1180px;
  --gutter:      clamp(1.25rem, 4vw, 3rem);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body:    'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono:    'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
}

/* ---- reset-ish ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wire);
  margin: 0 0 0.9rem;
}
section .eyebrow { color: #7f89bd; }

/* ============================ buttons ============================ */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.98rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg);
  text-decoration: none; cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-signal { --bg: var(--signal); --fg: #201400; box-shadow: 0 6px 22px -8px rgba(255,176,32,.6); }
.btn-signal:hover { --bg: var(--signal-soft); }
.btn-navy:hover { --bg: var(--navy-600); }
.btn-ghost { --bg: transparent; --fg: var(--text-inv); --bd: color-mix(in srgb, var(--wire) 60%, transparent); }
.btn-ghost:hover { --bd: var(--wire); background: rgba(107,123,201,.12); }
.btn-lg { padding: 0.95rem 1.7rem; font-size: 1.05rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ============================ header ============================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(107,123,201,.16);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--text-inv); }
.brand .glyph { flex: none; }
.brand .names { display: flex; flex-direction: column; line-height: 1; }
.brand .wordmark { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .tagline { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-inv-dim); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a.navlink { text-decoration: none; color: var(--text-inv-dim); font-size: 0.94rem; font-weight: 500; transition: color .15s ease; }
.nav a.navlink:hover { color: var(--text-inv); }
.nav-cta { margin-left: 0.4rem; }
@media (max-width: 820px) {
  .nav .navlink { display: none; }
}

/* ============================ hero ============================ */
.hero {
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(0,0,128,.55), transparent 55%),
    radial-gradient(90% 90% at 10% 0%, rgba(255,176,32,.06), transparent 60%),
    var(--ink);
  color: var(--text-inv);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3.5rem, 8vw, 6rem);
  overflow: hidden;
}
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.35rem, 5.2vw, 4.05rem); }
.hero h1 .hl { color: var(--signal); }
.hero .lede { color: var(--text-inv-dim); font-size: clamp(1.02rem, 1.6vw, 1.2rem); margin-top: 1.25rem; max-width: 34ch; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.hero .microcopy { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-inv-dim); margin-top: 1.4rem; letter-spacing: 0.02em; }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero .lede { max-width: 48ch; }
}

/* ---- signature: caller-ID / POS readout ---- */
.readout {
  --bezel: #04041a;
  background: linear-gradient(180deg, #0a0a30, #050518);
  border: 1px solid rgba(107,123,201,.28);
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 30px 70px -30px rgba(0,0,128,.9), inset 0 0 0 1px rgba(255,255,255,.02);
}
.readout .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 6px 12px; border-bottom: 1px dashed rgba(107,123,201,.28);
}
.readout .leds { display: flex; align-items: center; gap: 8px; }
.readout .led { width: 9px; height: 9px; border-radius: 50%; background: #2a2f57; box-shadow: inset 0 0 2px rgba(0,0,0,.6); }
.readout .led.on { background: var(--good); box-shadow: 0 0 8px var(--good); }
.readout .led.amber { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.readout .chan { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--text-inv-dim); text-transform: uppercase; }
.readout .chan b { color: var(--signal); }
.readout .screen {
  position: relative;
  font-family: var(--font-mono);
  font-size: clamp(0.66rem, 1.35vw, 0.82rem);
  line-height: 1.85;
  color: #cdd6ff;
  padding: 12px 6px 6px;
  min-height: 232px;
  overflow: hidden;
}
.readout .screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}
.readout .row { display: block; white-space: pre; }
.readout .row .dir-in  { color: var(--signal); }
.readout .row .dir-out { color: var(--wire); }
.readout .row.fresh { animation: rowIn .35s ease both; }
.readout .cursor { color: var(--signal); animation: blink 1.05s steps(1) infinite; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* ============================ generic section ============================ */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); }
.section-head p { color: var(--text-dim); margin-top: 0.9rem; font-size: 1.08rem; }

.section-dark { background: var(--ink); color: var(--text-inv); }
.section-dark .section-head p { color: var(--text-inv-dim); }

/* ============================ how it works ============================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2.2rem); }
.step { position: relative; padding-top: 1.5rem; border-top: 2px solid var(--navy); }
.step .num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--signal); letter-spacing: 0.15em; }
.step h3 { font-size: 1.32rem; margin: 0.5rem 0 0.6rem; }
.step p { color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ============================ features ============================ */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(107,123,201,.18); border: 1px solid rgba(107,123,201,.18); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--ink-800); padding: 1.7rem 1.6rem; }
.feature .fi { color: var(--signal); margin-bottom: 0.9rem; }
.feature h3 { font-size: 1.12rem; color: var(--text-inv); }
.feature p { color: var(--text-inv-dim); font-size: 0.94rem; margin-top: 0.45rem; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* ============================ spec strip ============================ */
.spec { background: var(--ink-800); border: 1px solid rgba(107,123,201,.2); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem); font-family: var(--font-mono); font-size: 0.86rem; }
.spec dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.6rem; margin: 0; }
.spec dt { color: var(--signal); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.72rem; align-self: center; }
.spec dd { margin: 0; color: var(--text-inv-dim); }
@media (max-width: 620px) { .spec dl { grid-template-columns: 1fr; gap: 0.15rem 0; } .spec dt { margin-top: 0.7rem; } }

/* ============================ pricing ============================ */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.tier {
  background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem; display: flex; flex-direction: column; height: 100%;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tier:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(0,0,128,.35); }
.tier.featured { border-color: var(--navy); box-shadow: 0 18px 44px -22px rgba(0,0,128,.4); position: relative; }
.tier.featured::before {
  content: "Most flexible"; position: absolute; top: -0.8rem; left: 1.6rem;
  background: var(--navy); color: #fff; font-size: 0.7rem; font-family: var(--font-mono);
  letter-spacing: 0.12em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 4px;
}
.tier .tname { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.tier .price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 600; letter-spacing: -0.02em; margin: 0.5rem 0 0.15rem; color: var(--navy); }
.tier .price .cents { font-size: 1rem; color: var(--text-dim); font-family: var(--font-body); font-weight: 500; }
.tier .price.tbd { font-size: 1.9rem; }
.tier .blurb { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 1.2rem; min-height: 2.4em; }
.tier ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: 0.6rem; }
.tier li { position: relative; padding-left: 1.5rem; font-size: 0.94rem; }
.tier li::before { content: "→"; position: absolute; left: 0; color: var(--signal); font-family: var(--font-mono); }
.tier .btn { width: 100%; justify-content: center; margin-top: auto; }
.tier.exclusive { background: var(--ink); color: var(--text-inv); border-color: var(--ink-700); }
.tier.exclusive .tname { color: var(--signal); }
.tier.exclusive .price { color: #fff; }
.tier.exclusive .blurb, .tier.exclusive li { color: var(--text-inv-dim); }
.tier.exclusive li { color: var(--text-inv); }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============================ forms ============================ */
.form-wrap { max-width: 620px; }
.form-card { background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.4rem); }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; }
.field .hint { font-weight: 400; color: var(--text-dim); font-size: 0.86rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  padding: 0.7rem 0.85rem; border: 1px solid var(--paper-line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,0,128,.15); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order-summary { display: flex; align-items: baseline; justify-content: space-between; padding: 1rem 1.1rem; background: var(--paper-2); border-radius: var(--radius-sm); margin-bottom: 1.4rem; }
.order-summary .lbl { font-weight: 600; }
.order-summary .amt { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.secure-note { display: flex; align-items: center; gap: 0.5rem; color: var(--text-dim); font-size: 0.85rem; margin-top: 1rem; }
.secure-note svg { flex: none; color: var(--good); }

/* ============================ page hero (secondary pages) ============================ */
.page-hero { background: var(--ink); color: var(--text-inv); padding-block: clamp(2.5rem, 6vw, 4rem) clamp(2rem, 4vw, 3rem); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: var(--text-inv-dim); margin-top: 0.8rem; max-width: 52ch; }
.page-body { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ============================ thank-you ============================ */
.thanks { max-width: 620px; }
.thanks .check { width: 56px; height: 56px; border-radius: 50%; background: rgba(53,211,138,.14); color: var(--good); display: grid; place-items: center; margin-bottom: 1.4rem; }
.thanks h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.thanks p { color: var(--text-dim); margin-top: 1rem; font-size: 1.08rem; }
.thanks .btn { margin-top: 1.8rem; }

/* ============================ footer ============================ */
.site-footer { background: var(--ink); color: var(--text-inv-dim); padding-block: 2.6rem; border-top: 1px solid rgba(107,123,201,.16); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--text-inv-dim); text-decoration: none; }
.site-footer a:hover { color: var(--text-inv); }
.site-footer .foot-brand { font-family: var(--font-display); color: var(--text-inv); font-weight: 600; }
.site-footer .foot-links { display: flex; gap: 1.4rem; font-size: 0.9rem; flex-wrap: wrap; }
.site-footer .fineprint { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; width: 100%; color: #5a628c; }

/* ============================ a11y / motion ============================ */
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; border-radius: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--signal); color: #201400; padding: 0.6rem 1rem; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
