:root {
  --bg: #0b1016;
  --bg-2: #111923;
  --panel: #151f2b;
  --line: #243244;
  --text: #dbe4ee;
  --muted: #8a9bb0;
  --accent: #ffb020;
  --accent-ink: #1a1200;
  --sea: #3aa7c9;
  --warn: #ff6a3d;
  --top: rgba(11, 16, 22, 0.86);
  --skew: -10deg;
  --stripe-dim: #1d2a3a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "IBM Plex Sans", system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--sea); }
code, pre { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 0.92em; }
code { background: var(--bg-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 3px; }
pre { background: var(--bg-2); border: 1px solid var(--line); padding: 14px 16px; overflow-x: auto; border-radius: 4px; }
pre code { background: none; border: 0; padding: 0; }

/* ---------- Top tabs ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: var(--top);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.tabs {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: flex-end; gap: 28px;
  font-family: "Chakra Petch", sans-serif;
  font-style: italic;
}
.tabs a { text-decoration: none; display: inline-block; transform: skewX(var(--skew)); }
.brand {
  font-size: 40pt; line-height: 1; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  padding: 14px 0 12px;
  text-shadow: 3px 3px 0 rgba(255, 176, 32, 0.15);
}
.tablist { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab {
  font-size: 15pt; font-weight: 600;
  color: var(--muted);
  padding: 10px 16px 14px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); border-bottom-color: var(--accent); }
.tab.ext::after { content: " ↗"; font-size: 0.75em; color: var(--muted); }

/* Speed stripes: slanted bars that widen toward the right edge */
.stripes {
  flex: 1; align-self: stretch;
  display: flex; gap: 6px;
  padding: 20px 14px 20px 24px;
  min-width: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%);
          mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.stripes span, .under span {
  min-width: 2px;
  background: var(--accent);
  transform: skewX(-18deg);
}

/* Reversed stripes under the SWML label, a shade off the background */
.brandwrap { position: relative; isolation: isolate; align-self: stretch; display: flex; align-items: flex-end; }
.under {
  position: absolute; z-index: -1;
  /* The mask cuts off anything outside this box, and skewed bars lean
     past their own edges, so pad the box to give the first bar room. */
  /* Same geometry as the yellow strip (count, gap, ramp, slant, height,
     fade), mirrored; only the color differs. */
  left: -28px; width: 340px; top: 20px; bottom: 20px;
  padding-left: 14px;
  display: flex; gap: 6px;
  -webkit-mask-image: linear-gradient(90deg, #000 55%, transparent);
          mask-image: linear-gradient(90deg, #000 55%, transparent);
}
.under span { background: var(--stripe-dim); }

/* ---------- Pages ---------- */
main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 48px 24px 72px; }

h1, h2, h3, .btn { font-family: "Chakra Petch", sans-serif; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 14px; font-weight: 600; }
h2 { font-size: 24px; margin: 0 0 12px; font-weight: 600; }
h3 { font-size: 19px; margin: 0 0 6px; font-weight: 600; }
.lede { font-size: 17px; color: var(--muted); max-width: 820px; margin: 0 0 28px; }

.crumb {
  margin: 0 0 14px;
  font: 500 13px "Chakra Petch", sans-serif;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--accent);
}
.hero { padding: 0 0 40px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none;
  font-weight: 700; font-style: italic; font-size: 17px;
  padding: 12px 22px; border: 1px solid var(--line); color: var(--text);
  background: var(--panel);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--line); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #ffc24f; }

/* Divider: the header's yellow bars at a third of the height, all one width */
.rule { display: flex; gap: 6px; height: 13px; margin: 52px 0 44px; padding-left: 3px; }
.rule span { width: 8px; flex: none; background: var(--accent); transform: skewX(-18deg); }

.textlink { align-self: center; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-left: 8px; }
.textlink:hover { color: var(--text); }

/* Parts list: plain rows, not cards */
.parts { display: grid; grid-template-columns: 280px 1fr; column-gap: 24px; margin: 0; max-width: 960px; }
.parts dt, .parts dd { padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }
.parts dt { color: var(--text); font-weight: 500; }
.parts a { color: var(--accent); text-decoration: none; font-weight: 500; }
.parts a:hover { text-decoration: underline; }
.parts.tight { grid-template-columns: max-content 1fr; }
.parts.tight dt, .parts.tight dd { padding: 10px 0; }
.parts dd { color: var(--muted); }
.parts dt:last-of-type, .parts dd:last-of-type { border-bottom: 1px solid var(--line); }

.aside { padding-top: 4px; font-size: 15px; }
.aside p { color: var(--muted); margin: 8px 0; }
.aside h3 { color: var(--warn); }

.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }

/* Install steps: a plain numbered list, no boxes */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; max-width: 820px; }
.steps li { counter-increment: s; position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); color: var(--muted); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 14px; font: 600 17px "Chakra Petch", sans-serif; color: var(--accent); }
.steps strong { color: var(--text); font-weight: 500; }
.foot {
  border-top: 1px solid var(--line);
  max-width: 1120px; width: 100%; margin: 0 auto; padding: 20px 24px 28px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 14px;
}
.legal { max-width: 720px; }
.legal p { margin: 0 0 6px; }

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .tabs { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 16px; position: relative; }
  .stripes { position: absolute; right: 0; top: 0; width: 55%; height: 62px; padding: 16px 12px 16px 0; }
  .brand { padding: 10px 0 2px; }
  .under { top: 16px; bottom: auto; height: 30px; left: -14px; width: 240px; }
  .tablist { width: 100%; margin-left: -12px; }
  .tab { font-size: 13pt; padding: 8px 12px 10px; }
  main { padding: 32px 16px 56px; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .parts, .parts.tight { grid-template-columns: 1fr; }
  .parts dd { border-top: 0; padding-top: 0; }
  .parts dt:last-of-type { border-bottom: 0; }
  .rule { margin: 40px 0 32px; }
  .foot { padding: 20px 16px; }
}
