/* ============================================================
   Allion LLC — wholesale voice
   Deliberately NOT the apps site's Apple styling: this audience
   is carrier procurement, so the page reads as a spec sheet —
   dense, neutral, figures in tabular monospace, restrained motion.
   ============================================================ */

:root {
  --ink:      #10161f;
  --ink-2:    #46505f;
  --ink-3:    #6b7686;
  --line:     #dfe4ea;
  --bg:       #ffffff;
  --bg-alt:   #f4f6f9;
  --navy:     #0c1421;
  --navy-2:   #141e2e;
  --accent:   #044797;
  --accent-2: #06306c;
  --onDark:   #aab6c6;

  --wrap: 1140px;
  --gut: 24px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,p,ul,ol,dl,dd,figure { margin: 0; }
ul,ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
[id] { scroll-margin-top: 84px; }

/* ── type ───────────────────────────────────────────────── */
h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 650;
}
h2 {
  font-size: clamp(26px, 2.9vw, 36px);
  line-height: 1.2;
  letter-spacing: -.017em;
  font-weight: 650;
}
h3 { font-size: 17px; font-weight: 650; letter-spacing: -.008em; }

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker--onDark { color: #6ea8ff; }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(255,255,255,.32); color: #fff; }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--lg { min-height: 50px; padding: 13px 26px; font-size: 16px; }
.btn--block { width: 100%; margin-top: 20px; }

/* ── top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -.02em; font-size: 19px; }
.brand__mark { display: grid; place-items: center; }
.brand__mark .logo { width: 82px; height: auto; }   /* brand colours as-is on white */
.brand__name b { color: #044797; font-weight: inherit; }
.brand__llc { font-weight: 500; color: var(--ink-3); }
.topnav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--ink-2); }
.topnav a { padding: 4px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--ink); border-bottom-color: var(--accent); }

/* ── hero ───────────────────────────────────────────────── */
.hero {
  background:
    radial-gradient(900px 380px at 12% -10%, rgba(19,88,214,.16), transparent 70%),
    linear-gradient(180deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 88px 0 0;
}
.hero h1 { max-width: 20ch; margin-bottom: 20px; }
.hero__lede { max-width: 62ch; font-size: 18px; color: var(--onDark); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin-top: 72px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.12);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}
.metrics > div { background: var(--navy-2); padding: 24px 22px 26px; }
.metrics dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #7c8ba0; }
.metrics dd {
  margin: 8px 0 2px;
  font-family: var(--mono);
  font-size: 38px;
  line-height: 1;
  letter-spacing: -.03em;
  font-weight: 600;
}
.metrics dd span { color: var(--accent); }
.metrics p { font-size: 13px; color: var(--onDark); }

/* ── bands ──────────────────────────────────────────────── */
.band { padding: 92px 0; }
.band--alt { background: var(--bg-alt); }
.band--dark { background: var(--navy); color: #fff; }
.band__head { max-width: 720px; margin-bottom: 48px; }
.band__head h2 { margin-bottom: 14px; }
.band__lede { font-size: 17px; color: var(--ink-2); }
.band--dark .band__lede { color: var(--onDark); }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }

/* ── cards ──────────────────────────────────────────────── */
.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 24px;
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { border-color: #c3ccd8; box-shadow: 0 6px 22px rgba(16,22,31,.07); }
.card h3 { margin-bottom: 9px; }
.card > p { font-size: 15px; color: var(--ink-2); margin-bottom: 16px; }

.ticks { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ticks li { padding-left: 20px; position: relative; }
/* a tick, not a chevron: taller than it is wide so the rotated corner
   reads as a checkmark rather than a downward arrow */
.ticks li::before {
  content: "";
  position: absolute; left: 3px; top: .34em;
  width: 5px; height: 9px;
  border-right: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(42deg);
}
.ticks--onDark { color: var(--onDark); }
.ticks--onDark li::before { border-color: #6ea8ff; }

/* ── network diagram ────────────────────────────────────── */
.diagram { margin: 0 0 48px; }
.diagram svg { width: 100%; height: auto; color: #46597a; }
.dg__box { fill: #16223a; stroke: #2a3a58; stroke-width: 1; }
.dg__box--hi { fill: #17294a; stroke: #34517f; }
.dg__t { fill: #eef3fa; font: 600 13px var(--sans); text-anchor: middle; }
.dg__s { fill: #8fa2bd; font: 400 11px var(--mono); text-anchor: middle; }
.dg__link { fill: none; stroke: #46597a; stroke-width: 1.4; }
.dg__link--dash { stroke-dasharray: 3 4; marker-end: none; }
.diagram figcaption { margin-top: 14px; font-size: 13px; color: #7c8ba0; }

.infra h3 { margin-bottom: 14px; color: #fff; }

/* ── spec table ─────────────────────────────────────────── */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.spec th, .spec td { text-align: left; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.spec thead th {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--bg-alt);
  font-weight: 600;
}
.spec tbody th { font-weight: 600; }
.spec tbody td { color: var(--ink-2); }
.spec tbody tr:last-child th, .spec tbody tr:last-child td { border-bottom: 0; }

.note { margin-top: 20px; font-size: 14px; color: var(--ink-3); max-width: 76ch; }
.band--alt .note { color: var(--ink-2); }

/* ── interconnect spec cards ────────────────────────────── */
.speccard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 24px; }
.speccard h3 { margin-bottom: 14px; }
.speccard dl { display: grid; gap: 10px; }
.speccard dl > div { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.speccard dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.speccard dt { font-size: 13px; color: var(--ink-3); }
.speccard dd { font-family: var(--mono); font-size: 13px; text-align: right; }

/* ── steps ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; counter-reset: s; }
.steps li { border-top: 2px solid var(--accent); padding-top: 18px; }
.steps__n { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.steps h3 { margin: 8px 0 7px; }
.steps p { font-size: 15px; color: var(--ink-2); }

/* ── quote ──────────────────────────────────────────────── */
.quote__inner { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.contact { margin-top: 30px; display: grid; gap: 14px; }
.contact li { display: grid; gap: 3px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); }
.contact span { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #7c8ba0; }
.contact a { color: #6ea8ff; }
.contact a:hover { text-decoration: underline; }

.askfor { background: var(--navy-2); border: 1px solid rgba(255,255,255,.13); border-radius: 10px; padding: 26px 24px; }
.askfor h3 { color: #fff; margin-bottom: 14px; }

/* ── footer ─────────────────────────────────────────────── */
.foot { background: var(--navy); color: var(--onDark); padding: 52px 0 0; font-size: 14px; }
.foot__inner { display: flex; flex-wrap: wrap; gap: 26px 48px; justify-content: space-between; padding-bottom: 32px; }
.foot__brand { color: #fff; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.foot__line { margin-top: 5px; max-width: 46ch; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__nav a:hover { color: #fff; }
.foot__bar {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding: 20px 0 40px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #7c8ba0;
}
.foot__bar a { color: #7c8ba0; }
.foot__bar a:hover { color: #fff; }

/* ── motion (restrained on purpose) ─────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .topnav { display: none; }
  .band { padding: 68px 0; }
  .hero { padding-top: 60px; }
  .metrics { margin-top: 52px; }
  .quote__inner { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .hero__cta .btn { width: 100%; }
  .metrics dd { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}
