/* Layout: one 1120px column; hero is copy + the ordering steps drawn as a pit lane; sections alternate bg / surface and use ruled rows, not cards. Tokens live in assets/tokens.css. */
:root {
  color-scheme: dark;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --orange-soft: rgba(255, 107, 26, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--fs-body)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 112%; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-display); font-weight: 900; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); font-weight: 800; }
h3 { font-size: var(--fs-h3); font-weight: 800; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* Key words: orange for the point of a line, white strong against muted text */
.hl { color: var(--accent); font-style: normal; }
strong { color: var(--text); font-weight: 600; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--radius-sm); z-index: 20; }
.skip:focus { left: 8px; }

/* Status LED: amber means setting up */
.led { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: inline-block; flex: none; }
.led-setup { background: var(--pc-warning); }

/* Placeholders that still need real values */
.tbd {
  display: inline-block; font-family: var(--font-mono); font-size: .8em; font-weight: 600;
  color: var(--pc-warning); border: 1px dashed var(--pc-warning); border-radius: var(--radius-sm);
  padding: 0 .45em; letter-spacing: .02em; vertical-align: middle;
}
.tbd-note { font-size: var(--fs-small); color: var(--pc-warning); border-left: 2px dashed var(--pc-warning); padding-left: var(--space-3); }

/* Buttons: navy text on orange */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .3em;
  font: 700 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap;
  padding: 14px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  transition: background-color .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--pc-orange-deep); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text-muted); background: var(--surface-2); }
.btn-sm { padding: 10px 16px; font-size: var(--fs-small); }

/* Banner: scrolls away with the page. Start lights go green one by one. */
.banner { position: relative; background: var(--surface-2); border-bottom: 1px solid var(--border); font-size: var(--fs-small); }
.banner-inner { display: flex; align-items: center; justify-content: center; gap: var(--space-4); padding-block: 10px; }
.banner p { font-weight: 500; }
.banner a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.banner a::after { content: " →"; }
.banner a:hover, .banner:hover a { text-decoration: underline; }
/* The link covers the whole strip, so a click anywhere on the banner follows it */
.banner a::before { content: ""; position: absolute; inset: 0; }
.lights { display: inline-flex; gap: 5px; padding: 5px 7px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); flex: none; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: var(--pc-online); animation: light 7s infinite backwards; }
.lights i:nth-child(2) { animation-delay: .45s; }
.lights i:nth-child(3) { animation-delay: .9s; }
.lights i:nth-child(4) { animation-delay: 1.35s; }
.lights i:nth-child(5) { animation-delay: 1.8s; }
@keyframes light { 0%, 6% { background: var(--border); } 7%, 100% { background: var(--pc-online); } }

/* Top bar: floats below the banner, then sticks near the top of the window */
.topbar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 12px); z-index: 10; margin-top: 12px; }
.topbar-inner {
  display: flex; align-items: center; gap: var(--space-6); min-height: 60px;
  padding: 0 var(--space-3) 0 var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
.brand { display: flex; align-items: center; gap: var(--space-2); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.wordmark { font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 1.4rem; letter-spacing: .01em; }
.wm-accent { color: var(--accent); }
.wordmark-sm { font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: var(--space-6); margin-left: auto; }
.nav a, .nav summary { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: var(--fs-small); white-space: nowrap; }
.nav a:hover, .nav summary:hover { color: var(--text); }
.nav a[hidden] { display: none; }
/* Games menu: a details element, so it opens without any script */
.nav-drop { position: relative; }
.nav-drop summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-drop[open] summary { color: var(--text); }
.drop { position: absolute; top: calc(100% + 18px); left: -16px; min-width: 230px; display: grid; padding: var(--space-2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
.drop a, .drop button { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); text-align: left; font: 500 var(--fs-small)/1.4 var(--font-body); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.drop a:hover, .drop button:hover { background: var(--surface-2); color: var(--accent); }
.drop button[aria-pressed="true"] { color: var(--accent); }
.nav-currency summary { font-family: var(--font-mono); font-weight: 600; color: var(--text); background: var(--orange-soft); border: 1px solid rgba(255, 107, 26, .45); border-radius: var(--radius-sm); padding: 7px 10px; }
.nav-currency summary:hover, .nav-currency[open] summary { background: rgba(255, 107, 26, .22); }
.nav-currency .drop { left: auto; right: -16px; min-width: 210px; }
.nav-drop[hidden] { display: none; }
/* Blog and Guides also sit in the Games menu on small screens, where the top-level links are hidden */
.drop .drop-sm { display: none; }
@media (max-width: 900px) {
  .nav > a { display: none; }
  .drop .drop-sm { display: block; }
  .drop a:not(.drop-sm) + .drop-sm { margin-top: var(--space-2); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
  .nav { margin-left: auto; }
  /* On small screens the menu spans the bar instead of hanging off the Games label */
  .topbar-inner { position: relative; }
  .nav-drop { position: static; }
  .drop, .nav-currency .drop { left: 0; right: 0; top: calc(100% + 8px); }
  .nav { gap: var(--space-4); }
}
/* Phones: the logo mark alone, so Games, currency and the order button all fit */
@media (max-width: 520px) {
  .topbar-inner { gap: var(--space-3); padding-inline: var(--space-3) var(--space-2); }
  .topbar .wordmark { display: none; }
  .nav { gap: var(--space-3); }
  .topbar .btn-sm { padding: 10px 12px; }
}
@media (max-width: 560px) { .banner-inner { justify-content: flex-start; gap: var(--space-3); } }

/* Hero */
.hero { position: relative; padding-top: clamp(40px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(48px, 7vw, 88px); }
.hero-copy { display: grid; gap: var(--space-6); min-width: 0; }
.hero h1 { font-size: clamp(2.25rem, 3.6vw + 1rem, 3.75rem); }
.lede { font-size: 1.125rem; color: var(--text-muted); max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.fineprint { font-size: var(--fs-small); color: var(--text-muted); max-width: 52ch; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Live ping card under the hero buttons. On the home page it fills the space down to the bottom of the
   ordering card beside it; on game pages it sits under the buttons at its own height. */
.hero-grid:has(.ping-card:not([hidden])) { align-items: stretch; }
.hero-grid .hero-copy { align-content: start; }
.hero-grid .hero-copy:has(.ping-card:not([hidden])) { grid-template-rows: auto auto 1fr; }
.ping-card { display: grid; align-content: center; gap: var(--space-2); max-width: 420px; padding: var(--space-4) var(--space-6); background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.ping-card[hidden] { display: none; }
.ping-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ping-bars { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.ping-bars i { width: 5px; border-radius: 1px; background: var(--border); }
.ping-bars i:nth-child(1) { height: 25%; } .ping-bars i:nth-child(2) { height: 50%; } .ping-bars i:nth-child(3) { height: 75%; } .ping-bars i:nth-child(4) { height: 100%; }
.ping-bars[data-level="1"] i:nth-child(-n+1), .ping-bars[data-level="2"] i:nth-child(-n+2),
.ping-bars[data-level="3"] i:nth-child(-n+3), .ping-bars[data-level="4"] i { background: var(--accent); }
.ping-ms { display: flex; align-items: baseline; gap: var(--space-2); margin: 0; }
.ping-ms strong { font: 900 2.5rem/1 var(--font-display); font-stretch: 112%; color: var(--text); font-variant-numeric: tabular-nums; }
.ping-ms span { font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.ping-sub { margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.ping-again { padding: 0; border: 0; background: none; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ping-again:hover { color: var(--text); }
@media (max-width: 900px) { .hero-grid .hero-copy:has(.ping-card:not([hidden])) { grid-template-rows: none; } }

/* Track: the ordering steps as a pit lane. Orange kerbs mark the stretches where PitCrew does the work. */
.track { min-width: 0; display: grid; gap: var(--space-4); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.track .h-sm { margin: 0; }
.route { display: grid; }
.stint { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.laps { list-style: none; margin: 0; padding: 0; position: relative; }
.laps::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 40px; background: var(--bg); border-inline: 1px solid var(--border); }
.laps::after { content: ""; position: absolute; left: 25px; top: 0; bottom: 0; width: 2px; background: repeating-linear-gradient(var(--border) 0 10px, transparent 10px 20px); }
/* The bracket beside the first four steps: form to gaming inside the guaranteed setup time */
.clock { position: relative; width: 60px; margin: 14px 0 var(--space-4); display: grid; place-items: center; }
.clock::before { content: ""; position: absolute; inset: 0 30px 0 0; border: 2px solid var(--accent); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.clock > span { position: relative; display: grid; justify-items: center; padding: var(--space-2) 0; background: var(--surface); font: 600 var(--fs-label)/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.clock strong { font: 900 1.75rem/1 var(--font-display); font-stretch: 112%; letter-spacing: 0; color: var(--text); }
.laps li { position: relative; z-index: 1; padding: 4px 0 var(--space-4) 68px; display: grid; gap: 2px; align-content: start; min-height: 64px; }
/* Markers are top-down race cars heading down the track, drawn as a mask so they take the step's color. */
.laps li::before {
  content: ""; position: absolute; left: 14px; top: 0; width: 24px; height: 43px; background: var(--text);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 36'%3E%3Crect x='3' y='1' width='14' height='3.2' rx='1'/%3E%3Crect x='.5' y='6' width='4.5' height='8.5' rx='1.6'/%3E%3Crect x='15' y='6' width='4.5' height='8.5' rx='1.6'/%3E%3Crect x='4' y='9.4' width='12' height='1.6'/%3E%3Cpath d='M7 3.5h6l1.2 11.5-2 8-1 9.5H8.800l-1-9.500-2-8z'/%3E%3Crect x='1.500' y='21.500' width='3.800' height='7.500' rx='1.500'/%3E%3Crect x='14.700' y='21.500' width='3.800' height='7.500' rx='1.500'/%3E%3Crect x='4.500' y='24.600' width='11' height='1.300'/%3E%3Crect x='2' y='32' width='16' height='3.200' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 36'%3E%3Crect x='3' y='1' width='14' height='3.2' rx='1'/%3E%3Crect x='.5' y='6' width='4.5' height='8.5' rx='1.6'/%3E%3Crect x='15' y='6' width='4.5' height='8.5' rx='1.6'/%3E%3Crect x='4' y='9.4' width='12' height='1.6'/%3E%3Cpath d='M7 3.5h6l1.2 11.5-2 8-1 9.5H8.800l-1-9.500-2-8z'/%3E%3Crect x='1.500' y='21.500' width='3.800' height='7.500' rx='1.500'/%3E%3Crect x='14.700' y='21.500' width='3.800' height='7.500' rx='1.500'/%3E%3Crect x='4.500' y='24.600' width='11' height='1.300'/%3E%3Crect x='2' y='32' width='16' height='3.200' rx='1'/%3E%3C/svg%3E") center / contain no-repeat;
}
.laps .crew::before { background: var(--accent); }
.laps .go::before { background: var(--pc-online); }
.laps .crew::after { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 4px; background: repeating-linear-gradient(var(--accent) 0 8px, var(--text) 8px 16px); }
.laps-main li:first-child { padding-top: 18px; min-height: 78px; }
.laps-main li:first-child::before { top: 14px; }
.laps-main li:first-child::after { content: ""; position: absolute; left: 7px; top: 0; width: 38px; height: 8px; background: repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%) 0 0 / 8px 8px; }
.who { font: 600 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.crew .who { color: var(--accent); }
.laps h3 { font-size: 1.05rem; }

/* Checkered strip */
.checker { height: 14px; background: repeating-conic-gradient(var(--text) 0 25%, transparent 0 50%) 0 0 / 14px 14px; opacity: .9; }

/* Sections */
#why { isolation: isolate; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.sec-head { display: grid; gap: var(--space-4); max-width: 640px; margin-bottom: var(--space-8); }
.sec-head > p:not(.tbd-note) { color: var(--text-muted); font-size: 1.0625rem; }
.link-arrow { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: " →"; }
.link-arrow:hover { text-decoration: underline; }

.section-tight { padding-block: clamp(40px, 6vw, 72px); }
.h-sm { font-size: var(--fs-h3); margin-bottom: var(--space-4); }

/* Compare: most hosts vs us. Our column is one lit panel running down the table. */
.compare { display: grid; }
.cmp-row { display: grid; grid-template-columns: 190px 1fr 1.3fr; }
.cmp-row > * { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-6); border-bottom: 1px solid var(--border); min-width: 0; }
.cmp-label { padding-left: 0; font: 600 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.them { color: var(--text-muted); }
.us { background: var(--surface-2); border-inline: 1px solid var(--accent); color: var(--text); font-weight: 600; font-size: 1.0625rem; }
.cmp-row:not(.cmp-head) .them::before { content: "\2715"; font-size: var(--fs-small); opacity: .6; }
.cmp-row:not(.cmp-head) .us::before { content: "\2713"; color: var(--accent); font-weight: 700; }
.cmp-head > * { border-bottom-color: transparent; }
.cmp-head .them { font: 600 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.cmp-head .us { border-top: 3px solid var(--accent); border-radius: var(--radius) var(--radius) 0 0; border-bottom-color: var(--border); font-family: var(--font-display); font-stretch: 112%; font-weight: 900; font-size: 1.25rem; }
.cmp-head .us img { width: 32px; height: 32px; }
.cmp-row.cmp-end > * { border-bottom-color: transparent; }
.cmp-row.cmp-end .us { border-bottom: 1px solid var(--accent); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 18px 40px rgba(255, 107, 26, .10); }
@media (max-width: 700px) {
  .cmp-row { grid-template-columns: 1fr 1.2fr; }
  .cmp-row > * { padding: var(--space-3); }
  .cmp-label { grid-column: 1 / -1; padding: var(--space-4) 0 var(--space-1); border-bottom: 0; }
  .cmp-head .cmp-label { display: none; }
  .us { font-size: 1rem; }
  .cmp-row:not(.cmp-head) .us, .cmp-row.cmp-end .us { border: 1px solid var(--accent); border-radius: var(--radius-sm); box-shadow: none; }
  .cmp-head .us { border-radius: var(--radius-sm); border-bottom: 1px solid var(--accent); margin-bottom: var(--space-2); }
}

/* Podium under the table and balloons over our column */
.compare { position: relative; }
.balloons { position: absolute; right: 28px; top: -118px; width: 150px; height: auto; z-index: -1; pointer-events: none; }
.balloons .string { fill: none; stroke: var(--border); stroke-width: 1.5; }
.balloons .b-fill { fill: var(--accent); }
.balloons .b-line { fill: var(--surface-2); stroke: var(--accent); stroke-width: 2; }
.balloons .b-soft { fill: var(--text); opacity: .9; }
.podium { align-items: end; margin-top: var(--space-4); border-bottom: 2px solid var(--border); }
.podium > * { border: 0; padding: 0; justify-content: center; font-family: var(--font-display); font-stretch: 112%; font-weight: 900; }
.podium .p2 { height: 34px; background: var(--surface-2); color: var(--text-muted); font-size: 1.1rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; margin-inline: var(--space-6); }
.podium .p1 { height: 76px; background: var(--accent); color: var(--on-accent); font-size: 2.25rem; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
@media (max-width: 700px) {
  .balloons { width: 96px; top: -86px; right: 8px; }
  .podium > :first-child { display: none; }
  .podium .p2 { margin-inline: var(--space-3); }
}

/* What you get / what we set up */
.gets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: var(--space-6) var(--space-8); }
.gets li { display: grid; gap: var(--space-1); align-content: start; padding-top: var(--space-4); border-top: 2px solid var(--border); color: var(--text-muted); font-size: var(--fs-small); }
.gets li:first-child { border-top-color: var(--accent); }
.gets strong { font-size: var(--fs-body); }

/* Game pages */
.hero-solo .hero-copy { padding-bottom: clamp(48px, 7vw, 88px); }
.hero-solo h1, .hero-solo .lede { max-width: 760px; }
.crumb { font-size: var(--fs-small); color: var(--text-muted); }
.crumb a { color: var(--text-muted); }
.keynote { font-size: var(--fs-small); color: var(--text-muted); max-width: 62ch; padding-left: var(--space-3); border-left: 2px solid var(--accent); }
.sec-head .spec { font-size: var(--fs-small); color: var(--text); }
/* Guides line on game pages: a label, then links to the posts about that game */
.related { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2) var(--space-6); margin-top: var(--space-8); font-size: var(--fs-small); }
.related-label { font: 600 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* Pricing: who-it's-for cards per game, a billing switch, and dashed rows for one-off extras */
.price-note { margin-bottom: var(--space-6); padding: var(--space-3) var(--space-4); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid var(--accent); border-radius: var(--radius-sm); color: var(--text); }
.price-note strong { color: var(--accent); }
.price-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4) var(--space-6); margin-bottom: var(--space-6); }
.price-head .sec-head { margin-bottom: 0; }
.seg { display: inline-flex; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; }
.seg:empty { display: none; } /* the billing switch is drawn by site.js; hide the empty box without JavaScript */
.section-alt .seg { background: var(--bg); }
.seg button { font: 600 var(--fs-small)/1 var(--font-body); color: var(--text-muted); background: none; border: 0; border-radius: var(--radius-sm); padding: 10px 14px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.seg .save { color: var(--accent); font-size: var(--fs-label); }
.tabs { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--space-4); }
.tabs button { font: 800 .9rem/1 var(--font-display); font-stretch: 112%; color: var(--text-muted); background: transparent; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--orange-soft); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--space-4); }
.plan { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; }
.section-alt .plan { background: var(--bg); }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.plan .for { color: var(--text-muted); min-height: 3.2em; }
/* Unnamed plans: size in the corner, what it runs as the headline */
.size { font-size: var(--fs-label); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.fits { display: grid; gap: 2px; align-content: start; }
.fit h3 { font-size: 1.3rem; }
.fit span { color: var(--accent); font-weight: 600; }
.fits .or { font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); padding-block: 2px; }
.price span { white-space: nowrap; }
.was { display: flex; align-items: center; gap: var(--space-2); margin-top: -4px; min-height: 1.5em; }
.was s { color: var(--text-muted); font-size: var(--fs-small); }
.was .off { color: var(--accent); font: 600 var(--fs-label)/1 var(--font-mono); border: 1px solid rgba(255, 107, 26, .45); border-radius: var(--radius-sm); padding: 3px 6px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 900 2.6rem/1 var(--font-display); font-stretch: 112%; font-variant-numeric: tabular-nums; }
.price span { color: var(--text-muted); font-size: var(--fs-small); }
.billed { font-size: var(--fs-label); color: var(--text-muted); min-height: 1.4em; margin-top: -6px; }
.chip { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-small); font-weight: 600; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan .spec { font-size: var(--fs-label); color: var(--text-muted); border-top: 1px dashed var(--border); padding-top: var(--space-3); }
.plan .btn { margin-top: auto; }
.plan-custom { background: transparent; border-style: dashed; }
.section-alt .plan-custom { background: transparent; }
.extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.extra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); padding: var(--space-4) var(--space-6); border: 1px dashed var(--border); border-radius: var(--radius); color: var(--text-muted); font-size: var(--fs-small); min-width: 0; }
.extra strong { font-size: var(--fs-body); }
.extra-price { white-space: nowrap; }
.extra-price b { font: 900 1.4rem/1 var(--font-display); font-stretch: 112%; color: var(--text); }
#pricing .fineprint { margin-top: var(--space-4); }
.seg button:focus-visible, .tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Order form dialog (built by order.js) */
.order-form { width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); }
.order-form::backdrop { background: rgba(4, 9, 17, .72); }
.order-form form { display: grid; gap: var(--space-3); padding: var(--space-6); }
.of-head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-4); }
.of-head h2 { font-size: 1.6rem; }
.of-step { font-size: var(--fs-label); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: var(--space-1); }
.of-x { background: none; border: 0; color: var(--text-muted); font-size: 1.75rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.of-x:hover { color: var(--text); }
.of-panel { display: grid; gap: var(--space-3); }
/* A row holds questions side by side. Each has a width it won't shrink below, so on a phone
   the short pairs stay together and the wide ones wrap onto their own lines. */
.of-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--space-3) var(--space-4); }
.of-row > .of-field { flex: 1 1 130px; }
.of-row > [data-field="via"], .of-row > [data-field="trial"] { flex-basis: 220px; }
.of-row > [data-field="plan"] { flex-basis: 260px; }
.of-row > [data-field="billing"] { flex: 0 0 auto; }
.of-inline { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.of-inline select { flex: 1 1 0; min-width: 0; }
.of-price { flex: none; font-weight: 700; white-space: nowrap; }
.of-price:empty { display: none; }
.of-off { opacity: .5; }
.of-off label { cursor: not-allowed; }
@media (max-width: 560px) { .order-form form { padding: var(--space-4); } }
.order-form [hidden] { display: none; }
.of-field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.of-field > label, .of-field > legend { font-size: var(--fs-small); font-weight: 600; padding: 0; }
.of-field > legend { margin-bottom: 6px; }
.of-field input:not([type=radio]), .of-field select, .of-field textarea { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.of-field textarea { resize: vertical; }
.of-field ::placeholder { color: var(--text-muted); opacity: .7; }
.of-field input:focus-visible, .of-field select:focus-visible, .of-field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--radius-sm); }
.of-choice { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.of-choice legend { float: left; width: 100%; }
.of-choice input { position: absolute; opacity: 0; pointer-events: none; }
.of-choice label { cursor: pointer; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: var(--fs-small); font-weight: 500; color: var(--text-muted); }
.of-choice label:hover { border-color: var(--text-muted); }
.of-choice input:checked + label { border-color: var(--accent); background: var(--orange-soft); color: var(--text); }
.of-choice input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.of-hint { width: 100%; font-size: var(--fs-label); color: var(--text-muted); }
.of-req { color: var(--accent); }
.of-msg { width: 100%; font-size: var(--fs-small); font-weight: 600; color: var(--pc-offline); }
.of-msg::before { content: "! "; }
.of-bad input:not([type=radio]), .of-bad select, .of-bad textarea, .of-bad.of-choice label { border-color: var(--pc-offline); }
.of-trap { position: absolute; left: -9999px; }
.of-actions { display: flex; justify-content: flex-end; gap: var(--space-3); padding-top: var(--space-2); }
.of-actions [hidden] { display: none; }
.of-error { color: var(--pc-offline); font-size: var(--fs-small); }
.of-done p { color: var(--text-muted); }
.of-done .of-lead { color: var(--text); font-size: 1.125rem; }
button.btn { cursor: pointer; }
button.btn:disabled { opacity: .6; cursor: progress; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--space-12); }
.faq-wrap .sec-head { margin-bottom: 0; align-content: start; }
.faq { min-width: 0; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: var(--space-4) var(--space-8) var(--space-4) 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; font-family: var(--font-mono); color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 var(--space-4); color: var(--text-muted); max-width: 65ch; }
@media (max-width: 760px) { .faq-wrap { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Contact */
.contact-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-8); align-items: start; }
.contact-inner img { width: 96px; }
.contact-inner > div { display: grid; gap: var(--space-4); }
.contact-inner p { color: var(--text-muted); max-width: 52ch; }
.contact-alt { font-size: var(--fs-small); }
.contact-alt a { color: var(--text); }
@media (max-width: 560px) { .contact-inner { grid-template-columns: 1fr; } .contact-inner img { width: 64px; } }

/* Footer */
.footer { background: var(--surface); }
.footer-inner { display: grid; gap: var(--space-2); padding-block: var(--space-8); font-size: var(--fs-small); color: var(--text-muted); }
.footer .fine { font-size: var(--fs-label); }
.footer-contact a { color: var(--text); }
.footer-legal a, .footer-games a { color: var(--text-muted); }

/* Privacy and terms pages */
.legal { max-width: 720px; display: grid; gap: var(--space-4); color: var(--text-muted); }
.legal h2 { font-size: var(--fs-h3); color: var(--text); margin-top: var(--space-6); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: var(--space-2); }
.legal p { margin: 0; }
.legal a, .faq p a { color: var(--text); }
.legal-date { font-size: var(--fs-small); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lights i { animation: none; }
}

/* Blog and guides: a featured post, then a grid of cards with cover images, filtered by category chips */
/* Index page header: a title line and the Blog / Guides switch, sitting straight on top of the featured post */
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.page-head h1 { font-size: clamp(1.75rem, 2vw + 1rem, 2.4rem); }
.page-head p { color: var(--text-muted); margin-top: var(--space-1); }
.about-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: var(--space-8); margin-bottom: var(--space-8); }
.about-quote { margin: 0; display: grid; gap: var(--space-4); }
.about-quote blockquote { margin: 0; }
.about-quote h1 { font-size: clamp(2rem, 3vw + 1rem, 3.25rem); line-height: 1.1; }
.about-quote figcaption { color: var(--text-muted); font-size: 1.125rem; }
.legal.about-body { max-width: none; }
.about-head img { width: 100%; height: auto; }
@media (max-width: 760px) { .about-head { grid-template-columns: 1fr; } .about-head img { max-width: 400px; } }
.switch { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px; }
.switch a { font: 600 var(--fs-small)/1 var(--font-body); color: var(--text-muted); text-decoration: none; border-radius: var(--radius-sm); padding: 10px 16px; }
.switch a:hover { color: var(--text); }
.switch a[aria-current] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.feature { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.feature-img img, .card-img img, .post-cover img { display: block; width: 100%; height: auto; }
.feature-img { display: block; background: var(--bg); }
/* The cover keeps its whole picture, centered; spare height above and below is the same navy as the cover itself */
.feature-img img { height: 100%; object-fit: contain; object-position: center; }
.feature-body { display: grid; gap: var(--space-3); align-content: center; justify-items: start; padding: var(--space-8); }
.feature-body h2 { font-size: clamp(1.5rem, 1.6vw + 1rem, 2.1rem); }
.feature-body h2 a, .card h3 a { text-decoration: none; }
.feature-body h2 a:hover, .card h3 a:hover { color: var(--accent); }
.feature-body p, .card-body p { color: var(--text-muted); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-body { padding: var(--space-6); } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-6); }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s; }
.card:hover { border-color: var(--text-muted); }
.card[hidden] { display: none; }
.card-img { border-bottom: 1px solid var(--border); }
.card-body { display: grid; gap: var(--space-2); align-content: start; padding: var(--space-4) var(--space-6) var(--space-6); }
.card h3 { font-size: 1.2rem; }
.card-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cat { display: inline-block; font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(255, 107, 26, .45); border-radius: var(--radius-sm); padding: 4px 7px; text-decoration: none; }
a.cat:hover { background: var(--orange-soft); }
.post-meta .cat { margin-right: 6px; }
.badge { font: 600 var(--fs-label)/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); padding: 5px 7px; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.list-head .h-sm { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.filters a { font: 600 var(--fs-small)/1 var(--font-body); color: var(--text-muted); text-decoration: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 13px; }
.filters a:hover { color: var(--text); border-color: var(--text-muted); }
.filters a[aria-current] { color: var(--text); border-color: var(--accent); background: var(--orange-soft); }
.list-foot { margin-top: var(--space-6); color: var(--text-muted); }
/* Post pages: the article beside a sticky list of its sections */
.post-layout { display: grid; grid-template-columns: minmax(0, 720px) 240px; gap: var(--space-12); align-items: start; justify-content: space-between; }
.post-cover { margin: 0 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.post h2 { scroll-margin-top: 96px; }
.toc { position: sticky; top: 104px; padding-left: var(--space-4); border-left: 1px solid var(--border); font-size: var(--fs-small); }
.toc-title { font: 600 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--space-3); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.toc a { color: var(--text-muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 1000px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } }
.post-meta { font-size: var(--fs-small); color: var(--text-muted); }
.post { font-size: 1.0625rem; line-height: 1.7; }
.post h2 { font-size: 1.6rem; margin-top: var(--space-8); }
.post h3 { font-size: var(--fs-h3); color: var(--text); margin-top: var(--space-4); }
.post ol { margin: 0; padding-left: 1.4em; display: grid; gap: var(--space-2); }
.post a { color: var(--accent); }
.post .btn-primary { color: var(--on-accent); }
.post .btn-ghost { color: var(--text); }
.post code { font-family: var(--font-mono); font-size: .9em; color: var(--text); background: var(--surface-2); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
.table-wrap th, .table-wrap td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table-wrap th { font: 600 var(--fs-label)/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); background: var(--surface); white-space: nowrap; }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { color: var(--text); }
.post .cta-row { margin-top: var(--space-6); }
