/* BusLane — buslane.app
   Palette sampled from the app icon: navy body #001020→#082858,
   rim gradient #BBC1EE → #8FD8E9 → #BD9FDA → #AE7DBF. */

:root {
  --ink:        #060D1B;
  --ink-2:      #0A1527;
  --ink-3:      #0E1C32;
  --line:       rgba(173, 196, 235, 0.12);
  --line-2:     rgba(173, 196, 235, 0.22);
  --fg:         #EDF1F7;
  --fg-2:       #A9B8D0;
  --fg-3:       #70829E;
  --lav:        #BBC1EE;
  --cyan:       #8FD8E9;
  --orchid:     #BD9FDA;
  --amber:      #E9B44C;
  --green:      #74D3A4;
  --rim: linear-gradient(90deg, #BBC1EE 0%, #8FD8E9 42%, #BD9FDA 72%, #AE7DBF 100%);

  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
          system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gut:  clamp(20px, 5vw, 48px);
  --maxw: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; margin: 0; font-weight: 640; }
p { margin: 0; }


/* ── top rule: the icon's rim gradient, the site's only loud moment ── */
.rim { height: 3px; background: var(--rim); }

/* ── header ─────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 13, 27, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 62px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--fg); font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.site-nav a { color: var(--fg-2); font-size: 15px; }
.site-nav a:hover { color: var(--fg); text-decoration: none; }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 9px;
  font-size: 15px; font-weight: 560; letter-spacing: -0.01em;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--fg); color: #08121F; }
.btn-primary:hover { background: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-3); background: rgba(173, 196, 235, 0.06); }
.btn svg { flex: none; }

/* Official Apple "Download on the Mac App Store" badge.
   Apple's artwork, served locally; height is theirs to dictate, not ours. */
.badge-link { display: inline-block; line-height: 0; border-radius: 8px; }
.badge-link img { height: 48px; width: auto; display: block; }
.badge-link:hover { opacity: 0.88; text-decoration: none; }
.badge-link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }

/* ── hero ───────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 104px) clamp(48px, 8vw, 88px); }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto; height: 620px; z-index: -1;
  background: radial-gradient(60% 70% at 72% 24%, rgba(42, 76, 134, 0.42), transparent 70%);
  pointer-events: none;
}
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero .wrap > * { min-width: 0; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 3.65rem); margin-block: 16px 20px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero-sub { font-size: clamp(1.02rem, 1.9vw, 1.17rem); color: var(--fg-2); max-width: 46ch; }
.hero-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-cta .btn { height: 48px; }  /* match the Apple badge it sits beside */
.hero-meta { margin-top: 16px; font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); }

/* ── macOS menu recreation ──────────────────────────────── */
.stage {
  min-width: 0; border-radius: 13px; overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 32px 70px -22px rgba(0, 0, 0, 0.78);
  background: linear-gradient(142deg, #8FBF8E 0%, #4FA6B8 38%, #3B5FD0 70%, #4A2FA8 100%);
}
.menubar {
  display: flex; align-items: center; gap: 13px;
  padding: 0 11px; height: 27px;
  background: rgba(8, 14, 30, 0.34);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 11.5px; color: rgba(255, 255, 255, 0.94);
  overflow: hidden; white-space: nowrap;
}
.menubar .mb-apple { font-size: 13px; opacity: 0.95; }
.menubar .mb-app { font-weight: 640; }
.menubar .mb-right { margin-left: auto; display: flex; align-items: center; gap: 11px; flex: none; }
.mb-item {
  width: 15px; height: 15px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.42);
}
.mb-active {
  display: grid; place-items: center;
  width: 23px; height: 19px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.26);
}
.mb-active img { width: 15px; height: 15px; border-radius: 3px; }
.mb-clock { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

.desk { position: relative; height: 380px; }
.menu {
  position: absolute; top: 7px; right: 13px; width: 268px;
  border-radius: 10px; padding: 5px;
  background: rgba(30, 36, 54, 0.72);
  backdrop-filter: saturate(170%) blur(26px);
  -webkit-backdrop-filter: saturate(170%) blur(26px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 44px -10px rgba(0, 0, 0, 0.6);
  font-size: 13px; color: #F2F4F8;
}
.menu-row {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 9px; border-radius: 5px; line-height: 1.5;
}
.menu-row .key { margin-left: auto; color: rgba(255, 255, 255, 0.5); font-size: 12px; }
.menu-row .chev { margin-left: auto; color: rgba(255, 255, 255, 0.5); }
.menu-sep { height: 1px; background: rgba(255, 255, 255, 0.14); margin: 5px 9px; }
.dev { display: flex; align-items: baseline; gap: 8px; padding: 4px 9px; border-radius: 5px; }
.dev .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dev .sp { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: rgba(255,255,255,0.62); white-space: nowrap; }
.dev.ok  .sp { color: var(--green); }
.dev.bad { background: rgba(233, 180, 76, 0.14); }
.dev.bad .sp { color: var(--amber); font-weight: 600; }
.dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--green); }
.dot.bad { background: var(--amber); }
.dot.off { background: rgba(255, 255, 255, 0.28); }

.toast {
  position: absolute; right: 13px; top: 292px; width: 250px;
  display: flex; gap: 10px; padding: 11px 13px; border-radius: 11px;
  background: rgba(26, 31, 48, 0.82);
  backdrop-filter: saturate(170%) blur(24px); -webkit-backdrop-filter: saturate(170%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.62);
}
.toast img { width: 29px; height: 29px; border-radius: 7px; flex: none; }
.toast .t-title { font-size: 12.5px; font-weight: 640; color: #F2F4F8; line-height: 1.35; }
.toast .t-body { font-size: 11.5px; color: rgba(255, 255, 255, 0.66); line-height: 1.4; margin-top: 1px; }

/* ── section furniture ──────────────────────────────────── */
section { padding-block: clamp(52px, 8vw, 86px); }
.sec-head { max-width: 58ch; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin-block: 14px 14px; }
.sec-head p { color: var(--fg-2); }
.band { border-top: 1px solid var(--line); background: var(--ink-2); }

/* ── lanes (speed comparison) ───────────────────────────── */
.lanes { display: grid; gap: 18px; }
.lane { display: grid; grid-template-columns: minmax(0, 190px) 1fr auto; gap: 18px; align-items: center; }
.lane .lbl { color: var(--fg-2); font-size: 15px; }
.lane .track { display: block; height: 9px; border-radius: 5px; background: rgba(173, 196, 235, 0.09); overflow: hidden; }
.lane .fill { display: block; height: 100%; min-width: 3px; border-radius: 5px; }
.lane .fill.full { background: var(--rim); }
.lane .fill.half { background: linear-gradient(90deg, #BBC1EE, #8FD8E9); }
.lane .fill.low  { background: var(--amber); }
.lane .val { font-family: var(--mono); font-size: 13.5px; color: var(--fg-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lane.is-low .lbl, .lane.is-low .val { color: var(--amber); }
.lane-note { margin-top: 26px; color: var(--fg-3); font-size: 14.5px; max-width: 62ch; }

/* ── features ───────────────────────────────────────────── */
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 64px); }
.feat > div { padding-block: 26px; border-top: 1px solid var(--line); }
.feat h3 { font-size: 1.02rem; margin-bottom: 8px; }
.feat p { color: var(--fg-2); font-size: 15.3px; }

/* ── closing ────────────────────────────────────────────── */
.close-cta { text-align: center; }
.close-cta > img { width: 74px; height: 74px; border-radius: 17px; margin-inline: auto; }
.close-cta h2 { font-size: clamp(1.55rem, 3.6vw, 2.1rem); margin-block: 24px 14px; }
.close-cta p { color: var(--fg-2); max-width: 48ch; margin-inline: auto; }
.close-cta .hero-cta { justify-content: center; }
.close-cta .hero-meta { text-align: center; }

/* ── footer ─────────────────────────────────────────────── */
.site-foot { border-top: 1px solid var(--line); padding-block: 36px 46px; color: var(--fg-3); font-size: 14px; }
.site-foot .wrap { display: flex; gap: 14px 30px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--fg-2); }
.site-foot .spacer { margin-left: auto; }

/* ── article pages (support / privacy) ──────────────────── */
.doc { padding-block: clamp(44px, 7vw, 72px); }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(1.9rem, 4.6vw, 2.5rem); }
.doc .lede { color: var(--fg-2); margin-top: 16px; font-size: 1.06rem; }
.doc h2 {
  font-size: 1.16rem; margin-top: 46px; padding-top: 22px;
  border-top: 1px solid var(--line);
}
.doc h3 { font-size: 1rem; margin-top: 30px; }
.doc p, .doc li { color: var(--fg-2); }
.doc p { margin-top: 14px; }
.doc ul { margin-top: 14px; padding-left: 20px; }
.doc li { margin-top: 9px; }
.doc li strong, .doc p strong { color: var(--fg); font-weight: 600; }
.doc .meta { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); margin-top: 12px; }
.doc .note {
  margin-top: 22px; padding: 16px 18px; border-radius: 10px;
  background: var(--ink-2); border: 1px solid var(--line);
  border-left: 2px solid var(--cyan);
}
.doc .note p:first-child { margin-top: 0; }

/* FAQ */
.faq { margin-top: 10px; }
.faq details { border-top: 1px solid var(--line); padding-block: 4px; }
.faq details[open] { padding-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding-block: 17px;
  font-weight: 560; color: var(--fg); display: flex; gap: 14px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; color: var(--fg-3);
  font-family: var(--mono); font-size: 17px; line-height: 1.2; flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--cyan); }
.faq .a { color: var(--fg-2); padding-left: 0; }
.faq .a p { margin-top: 0; }
.faq .a p + p { margin-top: 12px; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { order: 2; }
  .feat { grid-template-columns: 1fr; }
  .lane { grid-template-columns: 1fr auto; }
  .lane .track { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-head .wrap { min-height: 56px; gap: 12px; }
  .site-nav { gap: 16px; width: 100%; order: 3; padding-bottom: 10px; margin-left: 0; }
  .site-nav .btn { margin-left: auto; }
  .menubar { gap: 8px; padding: 0 8px; font-size: 11px; }
  .menubar .mb-hide { display: none; }
  .desk { height: 380px; }
  .menu { right: 8px; left: 8px; width: auto; }
  .toast { right: 8px; left: 8px; width: auto; }
}

/* ── spec table (USB speed reference) ───────────────────── */
.table-scroll { overflow-x: auto; margin-top: 8px; }
table.spec { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.spec caption { text-align: left; color: var(--fg-3); font-size: 14px; padding-bottom: 14px; }
table.spec th, table.spec td { text-align: left; padding: 13px 16px 13px 0; border-top: 1px solid var(--line); vertical-align: top; }
table.spec thead th {
  border-top: 0; border-bottom: 1px solid var(--line-2);
  font-size: 14px; color: var(--fg-3); font-weight: 500; padding-top: 0;
}
table.spec td { color: var(--fg-2); }
table.spec td.rate { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
table.spec tr.is-low td { color: var(--amber); }
table.spec tr.is-low td.rate { color: var(--amber); font-weight: 600; }

/* ── logo / compatibility strip ─────────────────────────── */
.compat { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.chip {
  font-size: 14px; color: var(--fg-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 15px;
}
.compat-note { margin-top: 20px; color: var(--fg-3); font-size: 14.5px; max-width: 64ch; }

/* ── symptom list ───────────────────────────────────────── */
.symptoms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 64px); margin-top: 8px; }
.symptoms > li { list-style: none; padding-block: 18px; border-top: 1px solid var(--line); color: var(--fg-2); font-size: 15.3px; display: flex; gap: 13px; }
.symptoms { padding: 0; margin-inline: 0; }
.symptoms .mk { color: var(--amber); font-family: var(--mono); flex: none; }
@media (max-width: 880px) { .symptoms { grid-template-columns: 1fr; } }

/* table column sizing — keep standard names and rates on one line */
table.spec th[scope="row"] { white-space: nowrap; color: var(--fg); font-weight: 600; }
table.spec thead th:nth-child(1) { width: 17%; }
table.spec thead th:nth-child(2) { width: 13%; white-space: nowrap; }
table.spec thead th:nth-child(3) { width: 19%; }
