/* ============================================================
   StratusLog — stratuslog.co
   Dark, Apple-clean, aviation blue. #0a84ff on near-black.
   ============================================================ */

:root {
  --canvas: #07080b;
  --panel: #0d1017;
  --panel-2: #141924;
  --beacon: #0a84ff;
  --go: #30d158;
  --caution: #ffd60a;
  /* legacy aliases (shared pages) */
  --surface: var(--panel);
  --raised: var(--panel-2);
  --blue: var(--beacon);
  --blue-glow: #5eb0ff;
  --blue-deep: #0055b3;
  --good: var(--go);
  --warn: var(--caution);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f5f7fa;
  --muted: #98a2b3;
  --faint: #838c9a;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 18px;
  --radius: 16px;
  --radius-lg: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Liberation Mono", monospace;
  --maxw: 1160px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- type ---------- */

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; }

.display {
  font-size: clamp(38px, 5vw, 60px);
  letter-spacing: -0.035em;
}

.h2 { font-size: clamp(30px, 4vw, 44px); }
.h3 { font-size: 21px; letter-spacing: -0.01em; }

.blue { color: var(--beacon); }

.lede {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--beacon);
  margin-bottom: 16px;
}

.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--beacon);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(10, 132, 255, 0.4), 0 8px 32px rgba(10, 132, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(10,132,255,.55), 0 12px 40px rgba(10,132,255,.5); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.btn-lg { font-size: 17px; padding: 16px 32px; }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 11, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 11px; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.brand .log { color: var(--beacon); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--ink);
  width: 44px; height: 44px;
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 24px 24px;
  flex-direction: column;
  gap: 4px;
  background: rgba(7, 8, 11, 0.97);
}
.mobile-menu a { padding: 13px 4px; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; }
.mobile-menu.open { display: flex; }

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

section { padding: 80px 0; }
section.tight { padding: 56px 0; }

.section-alt {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head { max-width: 660px; margin-bottom: 56px; }
.section-head .lede { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 72px 0 80px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  bottom: -260px;
  left: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.12) 0%, rgba(10, 132, 255, 0.04) 40%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(10, 132, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 132, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 60% 20%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 60% 20%, black 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-copy { max-width: 720px; }
.hero-copy .display { margin-bottom: 22px; }
.hero-copy .lede { margin-bottom: 34px; max-width: 620px; }

.hero-qualifier {
  font-size: 14.5px;
  color: var(--muted);
  margin: -22px 0 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-textlink {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}
.hero-textlink:hover { color: var(--ink); }
.hero-textlink span { transition: transform 0.15s ease; }
.hero-textlink:hover span { transform: translateX(3px); }

/* ---------- vignette frame (shared app-window chrome) ---------- */

.vg-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
}

.vg-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}
.vg-titlebar .vg-org {
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0;
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- V1: hero phone mockup (fixed-ratio device — cannot elongate) ---------- */

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 560px;
  height: 560px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(10, 132, 255, 0.09) 0%, rgba(10, 132, 255, 0.03) 45%, transparent 68%);
  pointer-events: none;
}

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620; /* fixed proportion: content can never stretch the device */
  flex: 0 0 auto;
  background: #05060a;
  border: 1px solid rgba(10, 132, 255, 0.28);
  border-radius: 44px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(10, 132, 255, 0.1);
}

.phone-screen {
  position: absolute; /* pinned to the fixed-ratio frame — content clips, never stretches */
  inset: 11px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(180deg, #0c0f16 0%, #07080b 75%);
}

.phone-notch {
  position: absolute;
  top: 19px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #05060a;
  z-index: 5;
}

.phone-main { z-index: 2; margin-right: 96px; }

.phone-back {
  position: absolute;
  width: 260px;
  right: 4px;
  top: 44px;
  z-index: 1;
  transform: rotate(6deg);
  opacity: 0.6;
  filter: saturate(0.85);
  border-radius: 40px;
}
.phone-back .phone-screen { border-radius: 30px; }
.phone-back .phone-notch { width: 74px; height: 19px; top: 18px; }

/* -- primary phone: two full-bleed screen layers that cross-fade (pure CSS) -- */

.pscreen {
  position: absolute; /* full-bleed inside the fixed-ratio clipping screen */
  inset: 0;
}
.ps-dash { animation: pscreen-a 10.2s ease-in-out infinite; }
.ps-sched { opacity: 0; animation: pscreen-b 10.2s ease-in-out infinite; }

/* 10.2s cycle = 4.5s hold, 0.6s fade, 4.5s hold, 0.6s fade */
@keyframes pscreen-a {
  0%, 44.1% { opacity: 1; }
  50%, 94.1% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes pscreen-b {
  0%, 44.1% { opacity: 0; }
  50%, 94.1% { opacity: 1; }
  100% { opacity: 0; }
}

/* -- screen content -- */

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 46px 16px 0;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  min-width: 0;
}
.app-brand svg { width: 15px; height: 15px; flex-shrink: 0; }
.app-brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(10, 132, 255, 0.4);
  color: var(--blue-glow);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.app-day { font-size: 9px; letter-spacing: 0.1em; color: var(--faint); }

.app-greet {
  margin: 13px 16px 0;
  padding-left: 10px;
  border-left: 3px solid var(--beacon);
}
.ag-hello { font-size: 16.5px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.ag-sub { font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.ag-sub b { color: var(--beacon); font-weight: 600; }

.app-card {
  margin: 9px 14px 0;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.ac-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.ac-label {
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--faint);
}
.app-pill { font-size: 8.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.app-pill.info { background: rgba(10, 132, 255, 0.14); color: var(--blue-glow); border: 1px solid rgba(10, 132, 255, 0.35); }

.ac-name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.ac-sub { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.app-btn {
  display: block;
  margin-top: 10px;
  background: var(--beacon);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  padding: 7px 0;
  border-radius: 8px;
}

.ac-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.ac-row + .ac-row { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.ac-rt { font-size: 11px; font-weight: 600; }
.ac-rs { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.ac-rs .mono { font-size: 9px; letter-spacing: 0.02em; }
.ac-amt { font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.ac-amt.caution { color: var(--caution); }
.app-tag { font-size: 8.5px; font-weight: 700; padding: 3px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.app-tag.amber { background: rgba(255, 214, 10, 0.12); color: var(--caution); border: 1px solid rgba(255, 214, 10, 0.3); }
.app-tag.blue { background: rgba(10, 132, 255, 0.14); color: var(--blue-glow); border: 1px solid rgba(10, 132, 255, 0.35); }

.app-tabbar {
  position: absolute; /* safe: the screen is a fixed-height clipping box */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 10px 13px;
  background: rgba(7, 8, 11, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.app-tabbar .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--faint);
}
.app-tabbar .tab svg { width: 17px; height: 17px; }
.app-tabbar .tab.on { color: var(--beacon); }
.tab-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--beacon);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -14px;
  box-shadow: 0 6px 16px rgba(10, 132, 255, 0.4);
}
.tab-fab svg { width: 16px; height: 16px; }

/* -- schedule screen: day strip + time grid (primary phone, layer 2) -- */

.day-strip {
  display: flex;
  gap: 6px;
  margin: 13px 16px 0;
}
.day-strip .day {
  flex: 1;
  text-align: center;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding: 6px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}
.day-strip .day.on {
  background: rgba(10, 132, 255, 0.14);
  border-color: rgba(10, 132, 255, 0.4);
  color: var(--blue-glow);
}

.sched-empty {
  flex: 1;
  min-width: 0;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 9px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--faint);
}

/* -- secondary phone: static logbook -- */

.phone-back .app-top { margin-top: 46px; }

.logbk { margin: 16px 14px 0; }
.lb-row {
  display: grid;
  grid-template-columns: 36px 1fr auto 24px;
  gap: 8px;
  align-items: baseline;
  padding: 7px 5px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
}
.lb-row span:last-child { text-align: right; }
.lb-row .lt { color: var(--ink); }
.lb-head {
  font-size: 7.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--faint);
  border-bottom: 1px solid var(--line-strong);
}
.lb-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 9px 5px;
  font-size: 10.5px;
  font-weight: 700;
}
.lb-total .mono { font-size: 11px; color: var(--blue-glow); }

.sched-list {
  margin: 14px 14px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sched-slot { display: flex; align-items: stretch; gap: 8px; }
.sched-time { font-size: 8.5px; color: var(--faint); width: 26px; padding-top: 8px; flex-shrink: 0; }
.sched-card {
  flex: 1;
  min-width: 0;
  background: rgba(10, 132, 255, 0.12);
  border: 1px solid rgba(10, 132, 255, 0.35);
  border-radius: 8px;
  padding: 7px 9px;
}
.sched-card.caution { background: rgba(255, 214, 10, 0.07); border-color: rgba(255, 214, 10, 0.28); }
.ss-name { display: block; font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-tail { display: block; font-size: 8.5px; color: var(--muted); margin-top: 1px; }

/* ---------- V2: dispatch board ---------- */

.board-metar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}

.vg-board {
  display: grid;
  grid-template-columns: 40px repeat(4, 1fr);
  grid-template-rows: auto repeat(14, 26px);
  column-gap: 10px;
  padding: 18px 20px 14px;
}

.bd-colhead {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-hour {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  padding-top: 2px;
}

.bd-lane {
  grid-row: 2 / -1;
  border-top: 1px solid var(--line);
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 51px,
    var(--line) 51px,
    var(--line) 52px
  );
}

.bd-slot {
  position: relative;
  z-index: 1;
  background: rgba(10, 132, 255, 0.13);
  border: 1px solid rgba(10, 132, 255, 0.4);
  border-radius: var(--r-s);
  padding: 6px 9px;
  margin: 2px 0;
  min-width: 0;
  overflow: hidden;
  line-height: 1.35;
}
.bd-slot .s { display: block; font-size: 12px; font-weight: 600; letter-spacing: -0.01em; }
.bd-slot .c { display: block; font-size: 10.5px; color: var(--muted); }
.bd-slot .t { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--faint); margin-top: 2px; }

.bd-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
}
.bd-dot.go { background: var(--go); }
.bd-dot.caution { background: var(--caution); }

.bd-down {
  grid-row: 2 / -1;
  position: relative;
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-radius: var(--r-s);
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 214, 10, 0.05) 0,
    rgba(255, 214, 10, 0.05) 7px,
    transparent 7px,
    transparent 15px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
.bd-down .vg-badge { text-align: center; white-space: normal; line-height: 1.5; }

.board-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px 24px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--faint);
}

/* mobile board variant (shown < 880px) */
.board-mini { display: none; padding: 16px 20px; }
.bm-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.board-mini .bd-slot { margin: 0 0 8px; }
.bm-down {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-radius: var(--r-s);
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 214, 10, 0.05) 0,
    rgba(255, 214, 10, 0.05) 7px,
    transparent 7px,
    transparent 15px
  );
  padding: 10px;
  margin-top: 4px;
}

/* ---------- V3: equipment list — bento grid ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 20px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(10, 132, 255, 0.45); }

.t-sched { grid-column: span 2; grid-row: span 2; }
.t-bill { grid-column: span 2; }

.tile .tviz {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.tile .tile-text { margin-top: auto; }
.tile .tile-t {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tile .tile-t::after {
  content: "→";
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  color: var(--faint);
  transition: color 0.15s ease, transform 0.15s ease;
}
.tile:hover .tile-t::after { color: var(--beacon); transform: translateX(3px); }
.tile .tile-d {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 5px;
}

/* -- mini-viz: scheduling (dispatch strip) -- */
.bv-grid {
  display: grid;
  grid-template-columns: 22px repeat(3, minmax(0, 1fr));
  grid-template-rows: auto repeat(7, minmax(26px, 1fr));
  column-gap: 8px;
}
.t-sched .tviz > .bv-grid { flex: 1; } /* fill the tall tile */
.bv-ch {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bv-hr {
  grid-column: 1;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--faint);
  padding-top: 2px;
}
.bv-lane {
  border-top: 1px solid var(--line);
  /* one hairline per hour row, regardless of row height */
  background-image: linear-gradient(to bottom, transparent calc(100% - 1px), var(--line) calc(100% - 1px));
  background-size: 100% calc(100% / 7);
}
.bv-slot {
  position: relative;
  z-index: 1;
  background: rgba(10, 132, 255, 0.13);
  border: 1px solid rgba(10, 132, 255, 0.4);
  border-radius: 6px;
  padding: 4px 7px;
  margin: 2px 0;
  min-width: 0;
  overflow: hidden;
  line-height: 1.4;
}
.bv-slot.caution { background: rgba(255, 214, 10, 0.07); border-color: rgba(255, 214, 10, 0.28); }
.bv-slot b { display: block; font-size: 10px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-slot span { display: block; font-family: var(--mono); font-size: 8px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -- mini-viz: logbook rows -- */
.bv-log { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.bvl-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 2px;
  border-bottom: 1px solid var(--line);
}
.bvl-row span:nth-child(2) { color: var(--ink); }
.bvl-total {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 2px 0;
  font-size: 10.5px;
}
.bvl-total b { color: var(--blue-glow); font-weight: 600; }

/* -- mini-viz: fleet status -- */
.bv-fleet { display: flex; flex-direction: column; }
.bvf-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
}
.bvf-row:last-child { border-bottom: 0; }
.bvf-row .bd-dot { margin-right: 0; flex-shrink: 0; }
.bvf-tail { color: var(--ink); font-weight: 600; }
.bvf-type { color: var(--faint); }
.bvf-st { margin-left: auto; color: var(--muted); }
.bvf-row .vg-badge { margin-left: auto; font-size: 8.5px; padding: 2px 7px; }

/* -- mini-viz: students & team -- */
.bv-people { display: flex; flex-direction: column; gap: 12px; }
.bvp-avs { display: flex; }
.bvp-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 132, 255, 0.16);
  border: 1px solid rgba(10, 132, 255, 0.4);
  outline: 2px solid var(--panel);
  color: var(--blue-glow);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bvp-av + .bvp-av { margin-left: -7px; }
.bvp-av.more { background: var(--panel-2); border-color: var(--line-strong); color: var(--muted); }
.bvp-lbl { display: block; font-size: 10.5px; color: var(--muted); margin-bottom: 6px; }
.bvp-prog .vg-bar { margin-top: 0; }

/* -- mini-viz: weather -- */
.bv-wx { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bvw-metar {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 9px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.bv-wx .vg-badge { flex-shrink: 0; }

/* -- mini-viz: billing invoice -- */
.bv-bill { font-size: 11px; color: var(--muted); }
.bvb-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 2px;
  border-bottom: 1px solid var(--line);
}
.bvb-line b { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.bvb-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 2px 0;
}
.bvb-tl { font-size: 11px; font-weight: 600; color: var(--ink); }
.bvb-tl b { font-family: var(--mono); font-size: 12.5px; color: var(--blue-glow); margin-left: 6px; }

/* -- mini-viz: student portal card -- */
.bv-portal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
}
.bvo-txt { min-width: 0; }
.bvo-txt b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bvo-txt span { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.bv-portal .vg-badge { flex-shrink: 0; }

/* -- mini-viz: reminder toast -- */
.bv-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.bvt-ic {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--beacon);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bvt-ic svg { width: 14px; height: 14px; }
.bvt-body { font-size: 10.5px; color: var(--muted); line-height: 1.45; min-width: 0; }
.bvt-body b { display: block; font-size: 10px; font-weight: 700; color: var(--ink); letter-spacing: 0.02em; }

/* ---------- pricing teaser (homepage comparison — reuses .plan card system) ---------- */

.home-plans .plan { background: var(--panel-2); padding: 32px 30px; }
.home-plans .plan.hot { background: var(--panel-2); }
.home-plans .pprice { margin-bottom: 24px; }
.home-plans .pprice .n { font-size: 44px; }
.home-plans ul { margin-bottom: 26px; }
.home-plans li { font-size: 15px; padding: 7px 0 7px 30px; }
.home-plans li::before { top: 13px; }
.home-plans li::after { top: 17px; }

.plans-foot { text-align: center; margin-top: 36px; }
.plans-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--beacon);
  transition: color 0.15s ease;
}
.plans-link:hover { color: var(--blue-glow); }
.plans-link span { transition: transform 0.15s ease; }
.plans-link:hover span { transform: translateX(3px); }
.plans-foot .price-note { margin-top: 10px; }

/* ---------- features page deep rows (SHARED) ---------- */

.frow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.frow:last-child { border-bottom: 0; }
.frow.flip .fr-vis { order: 2; }
.fr-copy .eyebrow { margin-bottom: 12px; }
.fr-copy h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 14px; }
.fr-copy p { color: var(--muted); margin-bottom: 18px; }
.fr-copy ul { list-style: none; }
.fr-copy li { padding: 7px 0 7px 30px; position: relative; font-size: 15.5px; color: var(--ink); }
.fr-copy li::before {
  content: "";
  position: absolute; left: 0; top: 13px;
  width: 16px; height: 16px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid var(--beacon);
  border-radius: 50%;
}
.fr-copy li::after {
  content: "";
  position: absolute; left: 5px; top: 17px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--blue-glow);
  border-bottom: 1.5px solid var(--blue-glow);
  transform: rotate(-45deg);
}

.fr-vis {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.fr-vis::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.13), transparent 65%);
  pointer-events: none;
}

/* vignette bits (SHARED with features.html) */
.vg-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; position: relative; }
.vg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.vg-title { font-size: 14px; font-weight: 600; }
.vg-sub { font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.vg-sub .mono { letter-spacing: 0.02em; }
.vg-amt { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.vg-amt.blue { color: var(--blue-glow); }
.vg-badge { font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.vg-badge.paid { background: rgba(48, 209, 88, 0.15); color: var(--go); border: 1px solid rgba(48, 209, 88, 0.35); }
.vg-badge.due { background: rgba(255, 214, 10, 0.12); color: var(--caution); border: 1px solid rgba(255, 214, 10, 0.3); }
.vg-badge.info { background: rgba(10, 132, 255, 0.14); color: var(--blue-glow); border: 1px solid rgba(10, 132, 255, 0.35); }
.vg-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 10px; }
.vg-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-deep), var(--beacon)); border-radius: 999px; }
.vg-metar { font-family: var(--mono); font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.vg-metar b { color: var(--blue-glow); font-weight: 600; }
.vg-metar .ok { color: var(--go); }

/* ---------- pricing ---------- */

.toggle-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 48px; }
.toggle-row .opt { font-size: 15.5px; font-weight: 600; color: var(--faint); cursor: pointer; background: none; border: 0; font-family: var(--font); padding: 6px 2px; }
.toggle-row .opt.on { color: var(--ink); }
.toggle-row .save { font-size: 12px; font-weight: 700; color: var(--go); background: rgba(48, 209, 88, 0.12); border: 1px solid rgba(48, 209, 88, 0.3); border-radius: 999px; padding: 3px 10px; }

.switch {
  width: 52px; height: 30px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  position: relative;
  cursor: pointer;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--beacon);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 10px rgba(10, 132, 255, 0.5);
}
.switch[aria-checked="true"]::after { transform: translateX(22px); }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }

.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.hot {
  border-color: rgba(10, 132, 255, 0.55);
  box-shadow: 0 0 50px rgba(10, 132, 255, 0.14);
}
.plan .flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--beacon);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.plan .pname { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.plan .pfor { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.plan .pprice { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.plan .pprice .n { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; }
.plan .pprice .per { font-size: 15px; color: var(--muted); }
.plan .pbill { font-size: 13px; color: var(--faint); min-height: 20px; margin-bottom: 26px; }
.plan ul { list-style: none; margin-bottom: 30px; }
.plan li { padding: 8px 0 8px 30px; position: relative; font-size: 15.5px; }
.plan li::before {
  content: "";
  position: absolute; left: 0; top: 14px;
  width: 16px; height: 16px;
  background: rgba(10, 132, 255, 0.15);
  border: 1px solid var(--beacon);
  border-radius: 50%;
}
.plan li::after {
  content: "";
  position: absolute; left: 5px; top: 18px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--blue-glow);
  border-bottom: 1.5px solid var(--blue-glow);
  transform: rotate(-45deg);
}
.plan li.dim { color: var(--muted); }
.plan .btn { margin-top: auto; justify-content: center; }

.price-note { text-align: center; margin-top: 28px; font-size: 14px; color: var(--faint); }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 4px;
  font-size: 17px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--beacon);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 20px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---------- founder-credibility note (draft) ---------- */

.founder-note { padding: 48px 0 8px; text-align: center; }
.founder-note p {
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.03em;
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- CTA band ---------- */

.cta-band { padding: 40px 0 100px; }
.cta-box {
  position: relative;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 100% at 50% 0%, rgba(10, 132, 255, 0.16), transparent 60%),
    var(--panel);
  border: 1px solid rgba(10, 132, 255, 0.3);
  border-radius: 28px;
  padding: 72px 32px;
}
.cta-box .h2 { margin-bottom: 14px; }
.cta-box .lede { max-width: 520px; margin: 0 auto 34px; }

/* ---------- demo page ---------- */

.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }

.demo-points { list-style: none; margin-top: 28px; }
.demo-points li { display: flex; gap: 14px; padding: 12px 0; font-size: 16px; color: var(--ink); align-items: flex-start; }
.demo-points li .n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--beacon);
  border: 1px solid rgba(10, 132, 255, 0.4);
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.demo-points li span small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }

.booking-shell {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.booking-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; font-weight: 600;
}
.booking-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--go); box-shadow: 0 0 10px rgba(48, 209, 88, 0.7); }
.booking-body { padding: 24px; }

/* calendar embed placeholder — swap for GoHighLevel iframe */
.ghl-slot {
  border: 1.5px dashed rgba(10, 132, 255, 0.4);
  border-radius: var(--radius);
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 32px;
  color: var(--muted);
}
.ghl-slot .mono { font-size: 12px; color: var(--faint); }
.ghl-slot svg { width: 40px; height: 40px; opacity: 0.8; }

.demo-alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--faint); }
.demo-alt a { color: var(--beacon); font-weight: 600; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 56px 0 36px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.foot-brand p { font-size: 14.5px; color: var(--muted); margin-top: 14px; max-width: 300px; line-height: 1.6; }
.foot-col h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; font-weight: 600; }
.foot-col a { display: block; padding: 6px 0; font-size: 15px; color: var(--muted); transition: color 0.15s; }
.foot-col a:hover { color: var(--ink); }

.foot-social { display: flex; gap: 12px; margin-top: 18px; }
.foot-social a {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.foot-social a:hover { color: var(--ink); border-color: rgba(10, 132, 255, 0.45); background: rgba(10, 132, 255, 0.08); }
.foot-social svg { width: 18px; height: 18px; }

.foot-legal a { color: var(--muted); transition: color 0.15s; }
.foot-legal a:hover { color: var(--blue); }

.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--faint);
}
.foot-base .powered .pw-name { color: var(--muted); font-weight: 600; }

/* ---------- reveal on scroll ---------- */

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .switch::after, .tile, .tile .tile-t::after, .plans-link, .plans-link span { transition: none; }
  /* hero phone: keep the dashboard↔schedule cross-fade — it's opacity-only (no
     movement/scale), the low-impact kind of motion that's safe under reduce-motion. */
}

/* ---------- focus ---------- */

a:focus-visible, button:focus-visible, summary:focus-visible, [role="switch"]:focus-visible {
  outline: 2px solid var(--beacon);
  outline-offset: 3px;
  border-radius: 6px;
}

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

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero-copy { margin: 0 auto; text-align: center; }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .phone-back { display: none; }
  .phone-main { margin-right: 0; }
  .frow { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .frow.flip .fr-vis { order: 0; }
  .demo-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* homepage vignettes switch layout here (deliberate breakpoint) */
@media (max-width: 880px) {
  .vg-board { display: none; }
  .board-mini { display: block; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-sched { grid-column: span 2; grid-row: auto; }
  .t-bill { grid-column: span 2; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  section.tight { padding: 48px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
  .hero { padding: 56px 0 64px; }
  .vg-titlebar .vg-org { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .home-plans .plan.hot { order: -1; } /* flagged plan first when stacked */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-base { flex-direction: column; align-items: flex-start; }
  .cta-box { padding: 56px 20px; }
}

@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .t-sched, .t-bill { grid-column: auto; }
}
