/* ============================================================
   TOKENS - dark is the default. .band-light overrides per-section.
   ============================================================ */
:root {
  --bg: #0B0C0E;          /* charcoal-black, from the logo body */
  --surface: #161719;
  --surface-2: #1E2023;
  --surface-line: #2A2D31;
  --sky: #4DB8E0;         /* the logo's glowing G */
  --sky-dim: #2A7FA3;     /* sky blue for text on light sections */
  --amber: #F2A93B;
  --amber-dim: #9A6A12;
  --text: #EDEEF0;
  --text-dim: #8E949C;
  --radius: 10px;
  --max-w: 1180px;
}

.band-light {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --surface-line: #E3E0D6;
  --text: #14181F;
  --text-dim: #5B6270;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

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

html { scroll-padding-top: 84px; }

section {
  position: relative;
  background: var(--bg);
  color: var(--text);
}

.inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(56px, 9vh, 108px) clamp(20px, 5vw, 64px);
}

h1, h2, h3 { font-family: 'Space Grotesk', sans-serif; margin: 0; }

/* ============================================================
   SEAM BLEED - soft multi-hue blob straddling a section boundary
   ============================================================ */
.seam {
  position: relative;
  height: 0;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}
.seam::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -80px;
  width: 900px;
  max-width: 140vw;
  height: 160px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 30% 50%, rgba(77,184,224,0.35), transparent 60%),
    radial-gradient(circle at 70% 40%, rgba(242,169,59,0.30), transparent 60%),
    radial-gradient(circle at 50% 70%, rgba(200,220,235,0.10), transparent 60%);
  filter: blur(26px);
  opacity: 0.55;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 64px);
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(11, 12, 14, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--surface-line);
}
.logo-group { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; cursor: pointer; }
.cube-mark { width: 34px; height: 30px; flex-shrink: 0; object-fit: contain; }
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--text); }
nav { display: flex; align-items: center; gap: 44px; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
nav a { color: var(--text-dim); text-decoration: none; font-size: 0.94rem; transition: color 0.2s ease; }
nav a:hover { color: var(--text); }
.nav-cta { padding: 10px 22px; border-radius: 7px; background: var(--sky); color: #06161E; font-weight: 600; font-size: 0.9rem; }
.nav-ghost { padding: 10px 20px; border-radius: 7px; border: 1px solid var(--surface-line); color: var(--text) !important; font-weight: 600; font-size: 0.9rem; transition: border-color 0.2s ease, background 0.2s ease; }
.nav-ghost:hover { border-color: var(--sky); background: rgba(77, 184, 224, 0.06); }
.nav-signin { font-weight: 600; color: var(--text) !important; padding: 10px 6px; }
.nav-signin:hover { color: var(--sky) !important; }
.nav-toggle { display: none; }

.btn-primary {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1.02rem; color: #06161E;
  background: linear-gradient(135deg, var(--sky), #6CC8EC); border: none; padding: 16px 34px;
  border-radius: 8px; cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(77,184,224,0.28); }
.btn-primary:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
footer { text-align: center; padding: 32px 20px 48px; font-size: 0.82rem; color: var(--text-dim); }
footer a { color: var(--text-dim); margin: 0 10px; text-decoration: none; }
@media (max-width: 860px) {
  nav, .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; color: var(--text); background: none; border: none; font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }
  /* Open menu: drops down under the header bar */
  header.menu-open { background: var(--bg); border-bottom-color: var(--surface-line); }
  header.menu-open nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--surface-line);
    padding: 8px 20px 24px; box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
  }
  header.menu-open .nav-links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  header.menu-open .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--surface-line); font-size: 1.05rem; color: var(--text); }
  header.menu-open .nav-actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 18px; }
  header.menu-open .nav-signin, header.menu-open .nav-ghost, header.menu-open .nav-cta { text-align: center; padding: 13px 20px; }
  header.menu-open .nav-signin { border: 1px solid var(--surface-line); border-radius: 7px; }
  .trust-row { flex-wrap: wrap; }
  .trust-item { flex: 1 1 50%; margin-bottom: 20px; border-left: none; }
  .results .inner { grid-template-columns: 1fr; }
  .offer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   GRIDABYTE.ORG
   ============================================================ */
html { scroll-padding-top: 84px; }
.org-hero .inner { padding-top: clamp(40px, 7vh, 80px); padding-bottom: 24px; max-width: 900px; }
.eyebrow { font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem; color: var(--sky); font-weight: 600; margin: 0 0 18px; }
.org-hero .eyebrow { font-size: 1.5rem; font-weight: 700; text-shadow: 0 0 18px rgba(77,184,224,0.55); }
/* Rolling word: "Your Digital Partner for [Pricing / Dispatching / ...]" (same mechanism as the sales site) */
.roll { display: inline-block; height: 1.25em; overflow: hidden; vertical-align: bottom; text-align: left; transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1); }
.roll-track { display: flex; flex-direction: column; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.roll-track span { display: block; height: 1.25em; line-height: 1.25em; color: var(--text); font-weight: 700; white-space: nowrap; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .roll, .roll-track { transition: none; } }
@media (max-width: 600px) {
  .org-hero .eyebrow { font-size: 1.3rem; }
  .org-hero .roll { display: block; }   /* word gets its own line on phones so the headline never jumps */
}
.org-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 18px; }
.org-hero .subhead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-dim); line-height: 1.6; max-width: 640px; }
.free-tag { display: inline-block; font-family: 'Space Grotesk', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); border: 1px solid rgba(242,169,59,0.5); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }

/* Big banner to the subscriber site */
.banner { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(77,184,224,0.16), rgba(242,169,59,0.10)); border-top: 1px solid var(--surface-line); border-bottom: 1px solid var(--surface-line); }
.banner .inner { padding: clamp(56px, 9vh, 96px) clamp(20px, 5vw, 64px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.banner .inner > div { flex: 1 1 480px; }
.banner h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; max-width: 720px; letter-spacing: -0.02em; }
.banner p { color: var(--text-dim); margin-top: 8px; font-size: 1.02rem; }
.banner .btn-primary { font-size: 1.25rem; padding: 22px 44px; box-shadow: 0 0 30px rgba(77,184,224,0.35); white-space: nowrap; text-decoration: none; display: inline-block; }
.banner-glow { position: absolute; top: -40%; right: -10%; width: 60%; height: 180%; background: radial-gradient(circle at 60% 50%, rgba(77,184,224,0.25), transparent 60%); filter: blur(30px); pointer-events: none; }

/* Calculator */
.calc-wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
.card { background: var(--surface); border: 1px solid var(--surface-line); border-radius: 16px; padding: clamp(22px, 3vw, 34px); }
.card h2 { font-size: 1.35rem; margin-bottom: 6px; }
.card .sub { font-size: 0.95rem; color: var(--text-dim); margin-bottom: 22px; line-height: 1.55; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: 0.8rem; color: var(--text-dim); margin-top: 6px; line-height: 1.45; }
.input, .select { width: 100%; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--surface-line); background: var(--bg); color: var(--text); font-size: 1rem; font-family: 'Inter', sans-serif; }
.input:focus, .select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(77,184,224,0.18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; align-items: end; }
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--bg); border: 1px solid var(--surface-line); border-radius: 10px; padding: 4px; }
.seg button { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-weight: 600; font-size: 0.9rem; padding: 10px 6px; border-radius: 7px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.04); }
.stops { border-top: 1px solid var(--surface-line); padding-top: 18px; margin-top: 6px; }
.stops h3 { font-size: 1rem; margin-bottom: 4px; }
.stops .sub { margin-bottom: 14px; }
.stop { display: grid; grid-template-columns: 28px 1fr 96px 96px 36px; gap: 8px; align-items: center; margin-bottom: 10px; }
.stop .n { font-family: 'Space Grotesk', sans-serif; font-weight: 700; color: var(--sky); text-align: center; }
.stop .input { padding: 10px 12px; font-size: 0.95rem; }
.stop .del { background: none; border: 1px solid var(--surface-line); color: var(--text-dim); border-radius: 8px; height: 40px; cursor: pointer; }
.stop .del:hover { border-color: var(--danger, #E5636B); color: #E5636B; }
.stop-head { display: grid; grid-template-columns: 28px 1fr 96px 96px 36px; gap: 8px; font-size: 0.74rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }
.btn-ghost { display: inline-block; padding: 11px 18px; border-radius: 8px; border: 1px solid var(--surface-line); color: var(--text); font-weight: 600; font-size: 0.92rem; background: none; cursor: pointer; text-decoration: none; }
.btn-ghost:hover { border-color: var(--sky); background: rgba(77,184,224,0.06); }
.btn-ghost[disabled] { opacity: .5; cursor: not-allowed; }
.calc-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.status { font-size: 0.85rem; color: var(--text-dim); min-height: 1.2em; }

.results .big { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 2.4rem; color: var(--sky); line-height: 1; }
.results .big-label { font-size: 0.86rem; color: var(--text-dim); margin: 6px 0 20px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.rtable td { padding: 10px 4px; border-top: 1px solid var(--surface-line); }
.rtable td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.rtable tr.cogs td { border-top: 2px solid var(--sky-dim); }
.rtable tr.bid td { color: var(--amber); font-weight: 700; font-size: 1.05rem; }
.rtable tr.floor td { font-weight: 700; }
.results .note { font-size: 0.82rem; color: var(--text-dim); line-height: 1.5; margin-top: 18px; }
.sticky { position: sticky; top: 96px; }

.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.how div { border-top: 2px solid var(--sky); padding-top: 14px; }
.how h3 { font-size: 1.05rem; margin-bottom: 6px; }
.how p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.55; }

/* Community */
.comm-hero .inner { max-width: 820px; }
.meet { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.meet .card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.meet .card p { color: var(--text-dim); line-height: 1.6; font-size: 0.97rem; }
.next-date { font-family: 'Space Grotesk', sans-serif; font-size: 1.6rem; font-weight: 700; color: var(--sky); margin: 6px 0 4px; }
.topics { list-style: none; display: grid; gap: 10px; }
.topics li { padding: 12px 16px; border: 1px dashed var(--surface-line); border-radius: 10px; color: var(--text-dim); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

@media (max-width: 860px) {
  .calc-wrap { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .how, .pillars, .meet { grid-template-columns: 1fr; }
  .stop, .stop-head { grid-template-columns: 24px 1fr 70px 70px 32px; }
  .seg { grid-template-columns: 1fr 1fr; }
  .banner .btn-primary { width: 100%; text-align: center; }
}

/* Address suggestions */
.ac-wrap { position: relative; min-width: 0; }
.ac-wrap .input { width: 100%; }
.stop .input.ok { border-color: var(--sky-dim); }
.ac-list { position: absolute; left: 0; right: -120px; top: calc(100% + 4px); z-index: 40; background: var(--surface-2); border: 1px solid var(--surface-line); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,0.55); overflow: hidden; }
.ac-item { padding: 10px 14px; font-size: 0.93rem; color: var(--text); cursor: pointer; line-height: 1.35; border-top: 1px solid rgba(255,255,255,0.04); }
.ac-item:first-child { border-top: 0; }
.ac-item:hover, .ac-item.on { background: rgba(77,184,224,0.12); color: #fff; }
.ac-attr { padding: 6px 14px; font-size: 0.72rem; color: var(--text-dim); border-top: 1px solid var(--surface-line); }
.cell { min-width: 0; }
.cell .input { width: 100%; }
.cell::before { content: attr(data-l); display: none; font-size: 0.72rem; color: var(--text-dim); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 4px; }
@media (max-width: 640px) {
  .stop-head { display: none; }
  .stop { grid-template-columns: 22px 1fr 1fr 36px; grid-template-rows: auto auto; row-gap: 8px; padding-bottom: 12px; border-bottom: 1px solid var(--surface-line); margin-bottom: 12px; }
  .stop .n { grid-row: 1; align-self: center; }
  .stop .ac-wrap { grid-column: 2 / 5; grid-row: 1; }
  .stop .c-miles { grid-column: 2; grid-row: 2; }
  .stop .c-dwell { grid-column: 3; grid-row: 2; }
  .stop .del { grid-column: 4; grid-row: 2; align-self: end; }
  .cell::before { display: block; }
  .ac-list { right: 0; }
}
