/* Trade Sim Labs design system. One stylesheet for every public page.
   Direction: dark "instrument panel". Charcoal surfaces, safety-amber actions, meter-style readouts.
   Sections: 1 tokens, 2 base, 3 layout, 4 buttons and small parts, 5 header and footer,
   6 hero, 7 content blocks, 8 forms, 9 inner pages, 10 motion and utilities. */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #090c11;
  --bg-2: #0e141c;
  --panel: #121922;
  --panel-2: #18212c;
  --panel-3: #212c39;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eaeff5;
  --muted: #a9b4c3;
  --dim: #8792a3;
  --amber: #f5a524;
  --amber-hi: #ffbe4d;
  --amber-ink: #1b1304;
  --amber-soft: rgba(245, 165, 36, .12);
  --amber-line: rgba(245, 165, 36, .38);
  --green: #4ade80;
  --red: #ff8078;
  --blue: #8ec5ff;
  --r-s: 8px;
  --r: 12px;
  --r-l: 18px;
  --font-d: "Archivo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shadow: 0 30px 70px -28px rgba(0, 0, 0, .85);
  --wrap: 1160px;
  --pad: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 9vw, 116px);
  --head-h: 64px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font-b); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
b, strong { font-weight: 600; color: var(--text); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
kbd { font: 500 .86em var(--font-m); padding: 2px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 5px; background: var(--panel-2); }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--amber); color: var(--amber-ink); font-weight: 600; padding: 10px 16px; border-radius: var(--r-s); text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.wrap.narrow { max-width: calc(820px + var(--pad) * 2); }
.sec { padding: var(--sec) 0; position: relative; }
.sec--raised { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec--tight { padding: clamp(44px, 6vw, 72px) 0; }
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .sub, .sub { color: var(--muted); font-size: clamp(1.02rem, 1.4vw, 1.14rem); margin-top: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 500 .75rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--amber);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--amber); }
.eyebrow--release { flex-wrap: wrap; row-gap: 8px; line-height: 1.4; }
.eyebrow--release::before { display: none; }
.eyebrow--release .led { margin-right: 2px; }
.eyebrow-more { flex-basis: 100%; }
.eyebrow-more, .eyebrow-more a { color: var(--muted); }
.eyebrow-more a { text-decoration: none; border-bottom: 1px solid var(--line-2); }
.eyebrow-more a:hover { color: var(--text); border-color: var(--amber); }
.sec-head.center .eyebrow { justify-content: center; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 940px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-right { grid-template-columns: .82fr 1.18fr; } .split--top { align-items: start; } }

/* ---------- 4. Buttons and small parts ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .96rem/1 var(--font-b); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--amber-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 26px -12px rgba(245, 165, 36, .7); }
.btn--primary:hover { background: var(--amber-hi); color: var(--amber-ink); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 14px 30px -12px rgba(245, 165, 36, .85); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn--lg { min-height: 54px; padding: 0 26px; font-size: 1.02rem; border-radius: 12px; }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 8px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); text-decoration: none; }
.link-arrow::after { content: "\2192"; color: var(--amber); transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }
.fine { font-size: .86rem; color: var(--dim); }
.fine a { color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  font: 500 .75rem/1 var(--font-m); letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2);
}
.tag--live { color: var(--green); border-color: rgba(74, 222, 128, .35); background: rgba(74, 222, 128, .08); }
.tag--live::before, .led { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(74, 222, 128, .18); flex: none; }
.tag--amber { color: var(--amber); border-color: var(--amber-line); background: var(--amber-soft); }
.led { display: inline-block; }

.card {
  position: relative; background: linear-gradient(180deg, var(--panel) 0%, rgba(18, 25, 34, .6) 100%);
  border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 30px);
  transition: border-color .2s ease, transform .2s ease, background-color .2s ease;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { border-color: var(--amber-line); transform: translateY(-3px); }
.idx { display: inline-block; font: 500 .75rem/1 var(--font-m); letter-spacing: .1em; color: var(--amber); margin-bottom: 16px; }

.ticks { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .93rem; }
.ticks li, .checks li { display: flex; gap: 9px; align-items: flex-start; }
.ticks li::before, .checks li::before {
  content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px;
  background: var(--amber); -webkit-mask: var(--tick) center / contain no-repeat; mask: var(--tick) center / contain no-repeat;
}
:root { --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.checks { display: grid; gap: 10px; color: var(--muted); font-size: .96rem; }
.checks b { color: var(--text); }

/* Picture frame used for every screenshot, so pictures can be swapped without touching the layout.
   Recommended picture size: 1600 x 900 (16:9) WebP, plus an 800 px wide copy. */
.frame { position: relative; margin: 0; border-radius: var(--r-l); background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); font: 500 .75rem/1 var(--font-m); letter-spacing: .06em; color: var(--dim); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--panel-3); }
.frame-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame figcaption { padding: 12px 16px; font-size: .88rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--panel); }

/* ---------- 5. Header and footer ---------- */
.uc-bar { background: var(--amber); color: var(--amber-ink); font-size: clamp(.95rem, 1.6vw, 1.08rem); line-height: 1.4; border-bottom: 1px solid rgba(0, 0, 0, .25); }
.uc-bar .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding-block: 12px; text-align: center; }
.uc-bar svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 600px) { .uc-bar .wrap { justify-content: flex-start; text-align: left; min-height: 0; } }
.uc-bar p { margin: 0; }
.uc-bar b { color: inherit; }

.site-head { position: sticky; top: 0; z-index: 100; background: rgba(9, 12, 17, .82); -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s ease, background-color .2s ease; }
.site-head.scrolled { border-bottom-color: var(--line); background: rgba(9, 12, 17, .94); }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.08rem/1 var(--font-d); letter-spacing: -.01em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand em { font-style: normal; color: var(--amber); }
.brand .lg-hex { fill: #fff; stroke: #fff; }
.brand .lg-t { fill: #0b1220; }
.brand .lg-dot { fill: var(--amber); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav > a { padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: .93rem; font-weight: 500; text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.nav > a:hover, .nav > a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-left: 14px; padding-left: 16px; border-left: 1px solid var(--line); }
.nav-toggle { display: none; align-items: center; gap: 9px; height: 40px; padding: 0 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-2); border-radius: 9px; font-size: .9rem; font-weight: 600; }
.nav-toggle .bars { width: 16px; height: 2px; background: currentColor; box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--pad) 22px; background: #0b0f15; border-bottom: 1px solid var(--line-2); box-shadow: 0 30px 50px -20px #000; max-height: calc(100vh - var(--head-h)); overflow: auto; }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 6px; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-end { flex-direction: column; align-items: stretch; margin: 14px 0 0; padding: 0; border: 0; gap: 12px; }
  .nav-end .btn { min-height: 50px; font-size: 1rem; }
}

/* Cart: header link, Add to cart buttons and the /cart page */
.head-row { justify-content: flex-start; }
.head-row .nav { margin-left: auto; order: 2; }
.cart-link { order: 3; position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; margin-left: 10px; border: 1px solid var(--line-2); border-radius: 9px; color: var(--muted); font-size: .9rem; font-weight: 600; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.cart-link:hover { color: #fff; border-color: rgba(255, 255, 255, .28); }
.cart-link svg { width: 19px; height: 19px; flex: none; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--amber); color: #111; font-size: .75rem; font-weight: 800; line-height: 20px; text-align: center; }
.cart-count[hidden] { display: none; }
@media (max-width: 960px) {
  .cart-link { order: 0; margin-left: auto; }
  .head-row .nav-toggle { order: 1; }
}
@media (max-width: 420px) { .cart-label { display: none; } }
[data-add-cart].is-added { background: rgba(245, 166, 35, .1); border: 1px solid var(--amber); color: var(--amber); box-shadow: none; }
.plan .btn--block + .btn--block { margin-top: 10px; }
@media (max-width: 600px) { .cart-item-side { flex-direction: row; align-items: center; width: 100%; } }
.cart-page h1 { margin: 6px 0 28px; }
.cart-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .cart-grid { grid-template-columns: 1fr 340px; } }
.cart-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cart-item { display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; padding: 22px 24px; }
.cart-item-main { flex: 1 1 260px; }
.cart-item h2 { font-size: 1.3rem; margin: 12px 0 2px; }
.cart-ed { color: var(--amber); font-weight: 600; margin: 0 0 8px; }
.cart-blurb { color: var(--muted); margin: 0; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cart-price { font-size: 1.05rem; white-space: nowrap; }
.cart-remove { background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: .9rem; text-decoration: underline; cursor: pointer; }
.cart-remove:hover { color: #fff; }
.cart-summary { padding: 22px 24px; }
.cart-summary h2 { font-size: 1.1rem; margin: 0 0 12px; }
.cart-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.cart-row--total { font-size: 1.05rem; }
.cart-note { color: var(--muted); font-size: .92rem; margin: 12px 0 18px; }
.cart-fine { color: var(--muted); font-size: .82rem; margin: 14px 0 0; }
.cart-empty { padding: 32px; max-width: 620px; }
.cart-empty h2 { margin: 0 0 8px; }
.cart-empty .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

.site-foot { border-top: 1px solid var(--line); background: #07090d; padding: clamp(48px, 6vw, 76px) 0 28px; font-size: .93rem; color: var(--muted); }
.foot-grid { display: grid; gap: 36px 28px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; max-width: 340px; }
.foot-brand p { margin-top: 16px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.5fr repeat(3, 1fr); } .foot-brand { grid-column: auto; } }
.foot-h { font: 500 .7rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 16px; }
.site-foot li + li { margin-top: 10px; }
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.demo-note { max-width: 1040px; margin: 14px auto 0; text-align: center; }
.credit { font-size: .9rem; color: var(--dim); margin-top: 22px; }
.foot-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.foot-note { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--dim); }
@media (min-width: 900px) { .foot-note { padding-right: max(0px, calc(100% - 820px)); } }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 18px; font-size: .84rem; color: var(--dim); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* Sticky "Play the demo" button on phones and small tablets */
.m-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none; align-items: center; justify-content: center; gap: 9px; min-height: 52px; border-radius: 13px; background: var(--amber); color: var(--amber-ink); font-weight: 700; text-decoration: none; box-shadow: 0 14px 36px -8px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .25s ease, opacity .25s ease; }
.m-cta.away { transform: translateY(90px); opacity: 0; pointer-events: none; }
@media (max-width: 760px) { .m-cta { display: flex; } }

/* ---------- 6. Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 84px) 0 clamp(36px, 5vw, 60px); overflow: hidden; isolation: isolate; }
.hero::before { /* blueprint grid */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 60% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 90% 80% at 60% 0%, #000 20%, transparent 75%);
  opacity: .7;
}
.hero::after { content: ""; position: absolute; z-index: -1; right: -10%; top: -30%; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(245, 165, 36, .16), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; gap: clamp(32px, 4vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); } .hero h1 em { display: block; } }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); color: var(--muted); margin: 22px 0 30px; max-width: 34em; }
.hero .ticks { margin-top: 22px; }
.hero-switch { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.hero-switch a { color: var(--text); font-weight: 600; white-space: nowrap; }
.hero-frame { transform: perspective(1800px) rotateY(-5deg) rotateX(2deg); transform-origin: left center; box-shadow: var(--shadow), 0 0 0 1px rgba(245, 165, 36, .12), 0 40px 120px -40px rgba(245, 165, 36, .25); }
@media (max-width: 999px) { .hero-frame { transform: none; } }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; background: rgba(9, 12, 17, .88); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 .75rem/1 var(--font-m); letter-spacing: .04em; color: var(--text); box-shadow: 0 10px 30px -10px #000; }
.hero-media { position: relative; }
/* Feature chips sit in a row under the hero picture, so they never cover it */
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-chips .chip { position: static; }

/* "Inside the HVAC Technician Sim": numbers with a line of detail, no boxes */
.inside { margin-top: clamp(48px, 6vw, 76px); }
.inside-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.inside-head h2 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); margin: 0; }
.inside-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 40px; grid-template-columns: 1fr; padding-top: 28px; }
@media (min-width: 640px) { .inside-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .inside-list { grid-template-columns: repeat(4, 1fr); } }
.inside-list li { position: relative; padding-left: 18px; border-left: 2px solid var(--amber-line); }
.inside-num { display: block; font: 700 clamp(2.4rem, 4vw, 3.2rem)/1 var(--font-d); letter-spacing: -.03em; color: var(--amber); }
.inside-list h3 { font-size: 1.02rem; margin: 8px 0 8px; color: var(--text); }
.inside-list p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.readouts { display: grid; grid-template-columns: repeat(2, 1fr); margin: clamp(36px, 5vw, 60px) 0 0; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(18, 25, 34, .7); overflow: hidden; }
.readouts > div { padding: 20px clamp(16px, 2.4vw, 28px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readouts > div:nth-child(2n) { border-right: 0; }
.readouts > div:nth-last-child(-n+2) { border-bottom: 0; }
@media (min-width: 860px) { .readouts { grid-template-columns: repeat(4, 1fr); } .readouts > div { border-bottom: 0; } .readouts > div:nth-child(2n) { border-right: 1px solid var(--line); } .readouts > div:last-child { border-right: 0; } }
.readouts dt { font: 500 clamp(1.5rem, 2.6vw, 2rem)/1 var(--font-m); letter-spacing: -.03em; color: #fff; }
.readouts dt small { font-size: .5em; color: var(--amber); letter-spacing: .04em; margin-left: 4px; }
.readouts dd { margin: 9px 0 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }

/* ---------- 7. Content blocks ---------- */
/* Two audience paths */
.path { display: flex; flex-direction: column; gap: 4px; min-height: 100%; }
.path .tag { align-self: flex-start; margin-bottom: 16px; }
.path h3 { font-size: 1.4rem; }
.path .checks { margin: 14px 0 22px; }
.path .actions { margin-top: auto; }

/* Demo player */
#demo { overflow: hidden; }
#demo::before { content: ""; position: absolute; left: 50%; top: 22%; width: min(900px, 90vw); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(245, 165, 36, .13), transparent 70%); pointer-events: none; }
#demo > .wrap { position: relative; }
.player { border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; background: #000; box-shadow: var(--shadow), 0 0 0 6px rgba(255, 255, 255, .02); max-width: 1040px; margin-inline: auto; }
.player-stage { position: relative; aspect-ratio: 16 / 9; background: #05070a; }
.player-stage > img, .player-stage > iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player-stage > img { filter: brightness(.42) saturate(.9) blur(1.5px); transform: scale(1.02); }
.player-cover { background: radial-gradient(ellipse 46% 52% at 50% 52%, rgba(5, 7, 10, .82), rgba(5, 7, 10, .45) 62%, rgba(5, 7, 10, 0) 100%); }
.player-cover { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.play-btn { display: grid; justify-items: center; gap: 6px; background: none; border: 0; color: #fff; padding: 12px; border-radius: 18px; }
.play-ring { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--amber); color: var(--amber-ink); margin-bottom: 12px; box-shadow: 0 0 0 10px rgba(245, 165, 36, .18), 0 0 0 22px rgba(245, 165, 36, .07); transition: transform .2s ease, box-shadow .2s ease; }
.play-ring svg { width: 30px; height: 30px; margin-left: 4px; }
.play-btn:hover .play-ring { transform: scale(1.07); box-shadow: 0 0 0 12px rgba(245, 165, 36, .24), 0 0 0 28px rgba(245, 165, 36, .09); }
.play-btn b { font: 700 clamp(1.15rem, 2.2vw, 1.5rem)/1.2 var(--font-d); color: #fff; text-shadow: 0 2px 14px rgba(0, 0, 0, .8); }
.play-btn small { color: var(--muted); font-size: .9rem; }
.player-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #05070a; color: var(--muted); z-index: 2; }
.player-loading[hidden] { display: none; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--panel-3); border-top-color: var(--amber); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; padding: 11px 16px; background: var(--panel); border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.player-bar a, .player-bar button { background: none; border: 0; padding: 4px 2px; color: var(--text); font-size: .86rem; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.player-bar a:hover, .player-bar button:hover { color: var(--amber-hi); }
.player-tools { display: flex; gap: 18px; }
.no-webgl { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; padding: 24px; text-align: center; background: #05070a; color: var(--muted); z-index: 3; }
.no-webgl b { font-size: 1.15rem; }
.no-webgl span { max-width: 520px; }
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; max-width: 1040px; margin: 18px auto 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 860px) { .specs { grid-template-columns: repeat(4, 1fr); } }
.specs > div { background: var(--bg-2); padding: 14px 18px; }
.specs dt { font: 500 .75rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.specs dd { margin: 7px 0 0; font-size: .9rem; color: var(--text); }
/* Phones and tablets: the game needs a keyboard and mouse, so offer to send the link instead */
.touch-demo { display: none; max-width: 560px; margin-inline: auto; }
.touch-demo .card { border-top-left-radius: 0; border-top-right-radius: 0; border-top: 0; }
.touch-demo .frame { border-bottom-left-radius: 0; border-bottom-right-radius: 0; box-shadow: none; }
.is-touch .touch-demo, .no-hover .touch-demo { display: block; }
.is-touch .player, .is-touch .specs { display: none; }
@media (max-width: 760px) { .touch-demo { display: block; } .player, .specs { display: none; } }

/* What you'll practice */
.skill { display: grid; gap: 0; padding: 0; overflow: hidden; }
.skill img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); filter: saturate(.95); transition: transform .5s ease; }
.skill:hover img { transform: scale(1.03); }
.skill-body { padding: 20px 22px 24px; }
.skill .idx { margin-bottom: 10px; }

.sec-head.sticky { margin-bottom: 0; }
@media (min-width: 940px) { .sec-head.sticky { position: sticky; top: calc(var(--head-h) + 32px); } }
.flow { border-bottom: 1px solid var(--line); }
.flow > li { display: grid; grid-template-columns: 54px 1fr; gap: 6px 10px; padding: 24px 0; border-top: 1px solid var(--line); transition: background-color .2s ease; }
.flow > li:hover { background: linear-gradient(90deg, var(--amber-soft), transparent 70%); }
.flow .idx { margin: 5px 0 0 10px; font-size: .8rem; }
.flow h3 { font-size: 1.22rem; margin-bottom: 6px; }
.flow p { color: var(--muted); max-width: 46ch; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 600px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 18px; } .shot span { font-size: .95rem; padding: 36px 18px 14px; } }
.shot { position: relative; display: block; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .45s ease, filter .3s ease; }
.shot span { position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px; font-size: .84rem; color: #fff; background: linear-gradient(rgba(0, 0, 0, 0), rgba(5, 7, 10, .78) 45%, rgba(5, 7, 10, .94)); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); font-weight: 600; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.045); filter: brightness(1.1); }
@media (max-width: 560px) { .shot span { font-size: .76rem; padding: 18px 10px 8px; } }
/* Simulators page: product top, specs and tour cards */
main section[id] { scroll-margin-top: calc(var(--head-h) + 8px); }
.sim-top { display: grid; gap: 32px 56px; align-items: center; }
@media (min-width: 1000px) { .sim-top { grid-template-columns: 1fr 1.1fr; } }
.sim-top-note { margin: 16px 0 0; color: var(--muted); font-size: .93rem; }
.sim-top-shot { display: block; text-decoration: none; cursor: zoom-in; transition: transform .25s ease, border-color .25s ease; }
.sim-top-shot:hover { transform: translateY(-3px); border-color: var(--amber-line, rgba(245, 165, 36, .4)); }
.sim-top-shot img { display: block; }
/* Four number tiles under the simulator's intro: one big figure, a short label and one line of detail each */
.sim-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: clamp(36px, 5vw, 56px) 0 0; }
@media (min-width: 1000px) { .sim-stats { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.sim-stats li { padding: 22px 22px 20px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); }
.sim-stats b { display: block; font: 700 clamp(2rem, 3.4vw, 2.7rem)/1 var(--font-d); letter-spacing: -.03em; color: var(--amber); }
.sim-stats span { display: block; margin-top: 10px; font-weight: 600; color: var(--text); }
.sim-stats p { margin: 6px 0 0; font-size: .9rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 520px) { .sim-stats li { padding: 16px 16px 14px; } .sim-stats p { font-size: .86rem; } }
.hero-grid > * { min-width: 0; }
.tour-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .tour-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .tour-grid { grid-template-columns: repeat(3, 1fr); } }
.tour-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r-l); overflow: hidden; }
.tour-card .shot { display: block; border-radius: 0; border: 0; border-bottom: 1px solid var(--line); cursor: zoom-in; }
.tour-card .shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .35s ease; }
.tour-card .shot:hover img { transform: scale(1.03); }
.tour-body { padding: 18px 20px 22px; }
.tour-body h3 { font-size: 1.15rem; margin: 0 0 8px; }
.tour-body p { color: var(--muted); font-size: .93rem; margin: 0; }

/* Hero slideshow */
.hero-show .show-track { position: relative; aspect-ratio: 16 / 9; background: #05070a; overflow: hidden; }
.show-slide { position: absolute; inset: 0; display: block; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s ease; cursor: zoom-in; }
.show-slide.is-on { opacity: 1; visibility: visible; }
.show-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.show-nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; background: rgba(9, 12, 17, .72); border: 1px solid var(--line-2); color: #fff; font-size: 1.6rem; line-height: 1; opacity: 0; transition: opacity .2s ease, background-color .2s ease; }
.show-nav.prev { left: 12px; } .show-nav.next { right: 12px; }
@media (max-width: 600px) { .show-nav { width: 34px; height: 34px; margin-top: -17px; font-size: 1.3rem; } .show-nav.prev { left: 6px; } .show-nav.next { right: 6px; } }
.show-nav:hover { background: rgba(9, 12, 17, .92); }
.hero-show:hover .show-nav, .show-nav:focus-visible, .is-touch .show-nav { opacity: 1; }
.show-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: rgba(9, 12, 17, .72); border: 1px solid var(--line-2); color: var(--text); font-size: .78rem; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.show-zoom svg { width: 14px; height: 14px; }
.hero-show:hover .show-zoom { opacity: 1; }
.hero-show .show-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--panel-2); border-top: 1px solid var(--line); }
.show-cap { font-size: .85rem; color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.show-dots { display: flex; gap: 2px; flex: none; }
.show-dot { width: 22px; height: 22px; padding: 0; background: none; border: 0; display: grid; place-items: center; cursor: pointer; }
.show-dot::before { content: ""; width: 7px; height: 7px; border-radius: 4px; background: var(--panel-3); transition: width .25s ease, background-color .25s ease; }
.show-dot.is-on::before { width: 18px; background: var(--amber); }
.show-dot:hover::before { background: var(--muted); }
.show-dot.is-on:hover::before { background: var(--amber); }
@media (prefers-reduced-motion: reduce) { .show-slide { transition: none; } }

/* Zoom inside the full-size view */
.lightbox { overflow: hidden; }
.lightbox img { cursor: zoom-in; transition: transform .25s ease; }
.lightbox.zoomed img { transform: scale(2.5); cursor: zoom-out; }
.lightbox-zoom { top: 16px; right: 72px; }
.lightbox.zoomed p { opacity: 0; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 4vmin; background: rgba(4, 6, 9, .94); opacity: 0; transition: opacity .2s ease; }
.lightbox.open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--r); border: 1px solid var(--line-2); }
.lightbox p { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: var(--muted); font-size: .92rem; margin: 0; padding: 0 60px; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid var(--line-2); color: #fff; font-size: 1.5rem; line-height: 1; }
.lightbox button:hover { background: rgba(255, 255, 255, .18); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-nav.prev { left: 14px; top: 50%; margin-top: -23px; }
.lightbox-nav.next { right: 14px; top: 50%; margin-top: -23px; }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } }
.steps > li { counter-increment: step; position: relative; padding: 26px 24px 26px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); }
.steps > li::before { content: "0" counter(step); display: block; font: 500 .8rem/1 var(--font-m); letter-spacing: .1em; color: var(--amber); margin-bottom: 18px; }
.steps > li b { display: block; font: 700 1.12rem/1.25 var(--font-d); letter-spacing: -.01em; margin-bottom: 8px; }
.steps > li span { color: var(--muted); font-size: .96rem; }
.steps > li a { color: var(--text); }

/* Trust notes */
.trust-quote { font: 600 clamp(1.3rem, 2.4vw, 1.75rem)/1.35 var(--font-d); letter-spacing: -.015em; color: var(--text); margin: 0 0 22px; }
.trust-quote em { font-style: normal; color: var(--amber); }
.plate { border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--panel); overflow: hidden; }
.plate > div { display: grid; grid-template-columns: 132px 1fr; gap: 14px; padding: 15px 20px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.plate > div:last-child { border-bottom: 0; }
.plate dt { font: 500 .75rem/1.6 var(--font-m); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.plate dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 480px) { .plate > div { grid-template-columns: 1fr; gap: 4px; } }

/* For schools band */
.band { position: relative; border: 1px solid var(--amber-line); border-radius: 22px; padding: clamp(28px, 4.5vw, 56px); background: radial-gradient(120% 140% at 100% 0%, rgba(245, 165, 36, .14), transparent 55%), var(--panel); overflow: hidden; }

/* Pricing */
.plans { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; }
.plan--main { border-color: var(--amber-line); background: linear-gradient(180deg, rgba(245, 165, 36, .09), transparent 42%), var(--panel); }
.plan .tag { align-self: flex-start; margin-bottom: 18px; }
.plan h3 { font-size: 1.2rem; margin-bottom: 4px; }
.plan .price { font: 700 clamp(1.7rem, 2.8vw, 2.2rem)/1.1 var(--font-d); letter-spacing: -.02em; color: #fff; margin: 12px 0 6px; }
.plan .price--text { font-size: clamp(1.35rem, 2vw, 1.6rem); }
.plan .price small { display: block; font: 400 .88rem/1.4 var(--font-b); color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.plan .checks { margin: 18px 0 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.plan .btn { margin-top: auto; }
.assure { display: grid; gap: 16px 28px; margin-top: 22px; padding: 22px clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-2); font-size: .93rem; color: var(--muted); }
@media (min-width: 860px) { .assure { grid-template-columns: repeat(3, 1fr); } }
.assure b { display: block; margin-bottom: 4px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.4rem/1 var(--font-m); color: var(--amber); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: #fff; }
.faq details > p, .faq details > div { padding: 0 20px 18px; color: var(--muted); margin: 0; max-width: 68ch; }
.faq-group { font: 500 .75rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 22px 0 4px; }
.faq-group:first-child { margin-top: 0; }

/* Final call to action */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.final .sub { max-width: 560px; margin-inline: auto; }
.final .actions { justify-content: center; margin-top: 30px; }

/* ---------- 8. Forms ---------- */
.field { display: grid; gap: 7px; }
.field + .field, .field-row + .field, .field + .field-row, .field-row + .field-row { margin-top: 16px; }
.field-row { display: grid; gap: 16px; align-items: end; }
.field-row > .field { margin-top: 0; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
label, .label { font-size: .88rem; font-weight: 600; color: var(--text); }
label .opt { font-weight: 400; color: var(--dim); }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="tel"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: #0a0e14; color: var(--text); font: 400 1rem/1.4 var(--font-b);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23a9b4c3' stroke-width='1.8'%3E%3Cpath d='M3 4.5l3 3 3-3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 12px; }
select option { background: #0a0e14; color: var(--text); }
::placeholder { color: #66717f; opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .28); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .22); }
.hint { font-size: .84rem; color: var(--dim); font-weight: 400; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-foot { margin-top: 22px; display: grid; gap: 12px; }
.form-status { display: none; margin: 0; padding: 12px 14px; border-radius: 10px; font-size: .93rem; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .35); color: #b9f5cf; }
.form-status.err { background: rgba(255, 128, 120, .1); border: 1px solid rgba(255, 128, 120, .4); color: #ffc4bf; }
/* What a form turns into once it has been sent: a clear "what happens next" */
.form-done { display: none; }
.form-done.show { display: block; }
.form-done h3 { font-size: 1.35rem; margin: 14px 0 10px; }
.form-done ol { counter-reset: n; display: grid; gap: 10px; margin: 18px 0 22px; color: var(--muted); }
.form-done ol li { counter-increment: n; display: flex; gap: 12px; }
.form-done ol li::before { content: counter(n); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--amber-soft); color: var(--amber); font: 500 .75rem/1 var(--font-m); margin-top: 1px; }
.done-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(74, 222, 128, .12); border: 1px solid rgba(74, 222, 128, .4); color: var(--green); }
.done-mark svg { width: 22px; height: 22px; }

/* Email signup (one field and a button) */
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input { flex: 1 1 220px; }
.signup-row .btn { min-height: 48px; }
.signup-box { display: grid; gap: 22px 48px; align-items: center; }
@media (min-width: 900px) { .signup-box { grid-template-columns: 1fr 1fr; } }
.signup-box h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- 9. Inner pages ---------- */
.page-head { position: relative; padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid var(--line); overflow: hidden; isolation: isolate; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); mask-image: linear-gradient(180deg, #000, transparent 90%); opacity: .55; }
.page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18ch; }
.page-head .lead { color: var(--muted); font-size: clamp(1.04rem, 1.5vw, 1.2rem); margin-top: 18px; max-width: 40em; }
.page-head .actions { margin-top: 28px; }
.crumbs { font: 500 .75rem/1 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.crumbs a { color: var(--dim); text-decoration: none; }
.crumbs a:hover { color: #fff; }

.prose { max-width: 720px; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.prose h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); color: var(--text); margin: 2.2em 0 .6em; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); margin: 1.6em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.25em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: .35em 0; } .prose li::marker { color: var(--amber); }
.prose a { color: var(--blue); }
.updated { font: 500 .75rem/1 var(--font-m); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.note { padding: 16px 18px; border: 1px solid var(--amber-line); border-left-width: 3px; border-radius: var(--r); background: var(--amber-soft); color: var(--text); font-size: .95rem; margin: 0 0 1.4em; }
.note b { color: #fff; }

/* Roadmap and changelog rows */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; gap: 8px 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .row { grid-template-columns: 200px 1fr; } }
.row-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.row-date { font: 500 .78rem/1.4 var(--font-m); letter-spacing: .06em; color: var(--dim); text-transform: uppercase; }
.row h3 { font-size: 1.25rem; margin-bottom: 8px; }
.row p, .row li { color: var(--muted); }
.row ul { list-style: disc; padding-left: 1.2em; margin-top: 8px; }
.row li { margin: .3em 0; } .row li::marker { color: var(--amber); }

.side-card { position: sticky; top: calc(var(--head-h) + 24px); }
.lost { min-height: 62vh; display: grid; place-content: center; text-align: center; padding: 60px var(--pad); }
.lost .code { font: 500 clamp(4rem, 14vw, 8rem)/1 var(--font-m); color: var(--amber); letter-spacing: -.04em; }
.lost .actions { justify-content: center; margin-top: 26px; }

/* ---------- 10. Motion and utilities ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-frame { transform: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; }
@media (max-width: 760px) { .d-only { display: none !important; } }
@media (max-width: 560px) { .hero .actions .btn, .final .actions .btn, .band .actions .btn, .page-head .actions .btn { width: 100%; } .flow > li { grid-template-columns: 40px 1fr; padding: 18px 0; } .flow .idx { margin-left: 0; } }
@media (min-width: 761px) { .m-only { display: none !important; } }
@media print { .site-head, .site-foot, .m-cta, .uc-bar { display: none; } body { background: #fff; color: #000; } }

/* ---------- 11. Additions for inner pages ---------- */
.page-head h1 em, .final h2 em { font-style: normal; color: var(--amber); }
.page-head--tight { padding-bottom: clamp(26px, 3.5vw, 40px); }
.page-head .split { align-items: center; }
@media (min-width: 940px) { .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
.h3 { font-size: 1.15rem; letter-spacing: -.01em; line-height: 1.25; }
.player--wide, .specs--wide { max-width: none; }
/* Demo page: the player fills the browser window (almost edge to edge, and the full height under the menu, with the
   Full screen bar just below), so the game is comfortable to play without going full screen. */
.player--wide { --pw: min(100vw - 24px, 2400px); width: var(--pw); margin-inline: calc((100% - var(--pw)) / 2); }
.player--wide .player-stage { aspect-ratio: auto; height: max(520px, min(100svh - var(--head-h) - 46px, var(--pw) * .75)); }
.player--wide + .modes { margin: 18px auto 0; }
/* Demo page: a shorter heading so the game starts higher up the screen */
.page-head--demo { padding: clamp(16px, 2vw, 24px) 0 clamp(10px, 1.2vw, 14px); }
.page-head--demo h1 { max-width: none; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.page-head--demo .lead { margin-top: 6px; font-size: 1rem; max-width: none; }
#demo.sec--tight { padding-top: 6px; }
/* Game modes strip (Training is the demo; Normal and Expert come with the full version) */
.modes { display: grid; grid-template-columns: 1fr; gap: 1px; max-width: 1040px; margin: 0 auto 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
@media (min-width: 760px) { .modes { grid-template-columns: 1.3fr 1fr 1fr; } }
.modes > div { background: var(--bg-2); padding: 14px 18px; }
.modes > .on { background: color-mix(in srgb, var(--amber) 9%, var(--bg-2)); }
.modes dt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 .95rem/1.2 var(--font-d); color: var(--text); }
.modes dd { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.modes--wide { max-width: none; }
.modes kbd { color: var(--text); }
/* How to play: a short list of keys beside the demo. Hidden on phones and tablets, which can't play. */
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; max-width: 1040px; margin: 18px auto 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.keys-h { margin: 0; font: 500 .75rem/1 var(--font-m); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.keys ul { display: flex; flex: 1 1 420px; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--muted); }
.keys li { display: inline-flex; align-items: center; gap: 7px; }
.keys li span { display: inline-flex; align-items: center; gap: 3px; color: var(--dim); }
.keys kbd { color: var(--text); }
.keys .link-arrow { font-size: .9rem; }
.keys--wide { max-width: none; margin: 0 0 18px; }
.is-touch .keys { display: none; }
/* Buttons and arrow links keep their own colour inside long-form text */
.prose a.btn--primary, .prose a.btn--primary:hover { color: var(--amber-ink); }
.prose a.btn--ghost, .prose a.link-arrow { color: var(--text); }
.plate dt kbd { margin-right: 6px; letter-spacing: 0; }
/* Simulator lineup */
.lineup { margin-top: 8px; }
.sim-card { display: flex; flex-direction: column; gap: 4px; min-height: 100%; }
.sim-card .tag { align-self: flex-start; margin-bottom: 14px; }
.sim-card h3 { font-size: 1.3rem; }
.sim-card .sim-meta { font: 500 .75rem/1.4 var(--font-m); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 10px 0 18px; }
.sim-card .actions { margin-top: auto; align-items: center; }
.sim-card--live { border-color: var(--amber-line, rgba(245, 165, 36, .45)); box-shadow: 0 0 0 1px rgba(245, 165, 36, .12), 0 18px 50px -30px rgba(245, 165, 36, .5); }
.lineup-foot { margin-top: 18px; color: var(--muted); }
.site-foot small { color: var(--dim); }
.player noscript iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tour { display: grid; gap: clamp(28px, 4vw, 56px); }
.tour-row { display: grid; gap: 18px 44px; align-items: center; }
@media (min-width: 860px) { .tour-row { grid-template-columns: 1.15fr .85fr; } .tour-row:nth-child(even) .shot { order: 2; } }
.tour-row h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 10px; }
.tour-row p { color: var(--muted); max-width: 44ch; }
.tour-row .shot { box-shadow: var(--shadow); border-radius: var(--r-l); }
.hero-media { position: relative; }
@media (min-width: 1280px) { .hero-media { margin-right: -64px; } }
.brand { min-height: 44px; }
.link-arrow { min-height: 32px; }
#hvac .lead { margin-top: 14px; }
#hvac .actions { margin-top: 24px; }

/* Home hero: on phones, say up front that the demo is played on a computer */
.hero-phone-note { display: none; margin: 14px 0 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) and (hover: none) { .hero-phone-note { display: block; } }

/* Tablets (two columns): never leave a lone card with an empty gap beside it.
   The simulator lineup puts the available simulator across the top and the coming ones side by side. */
@media (min-width: 720px) and (max-width: 999px) {
  .grid-3:not(.lineup) > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-3.lineup > :first-child { grid-column: 1 / -1; }
}

/* Phones: bigger tap areas for small links and the slideshow dots (they look the same) */
@media (max-width: 600px) {
  .show-dot { width: 26px; height: 34px; }
  .foot-bottom nav a { display: inline-block; padding: 7px 0; }
}
@media (max-width: 600px) {
  .hero-show .show-foot { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px 4px; }
  .show-cap { white-space: normal; min-height: 2.6em; }
  .show-dots { margin-left: -4px; }
}

/* ---------- Phones: gameplay first, shorter page ---------- */
/* Practice steps carry their own screenshot on phones */
.flow-shot { display: block; margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 18px 40px -24px #000; }
.flow-shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Swipeable screenshot strip (demo page on phones) */
.swipe { margin-bottom: 14px; }
.swipe-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
.swipe-track::-webkit-scrollbar { display: none; }
.swipe-slide { flex: 0 0 88%; scroll-snap-align: start; position: relative; display: block; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--panel); }
.swipe-slide img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.swipe-slide span { display: block; padding: 10px 12px 12px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); }
.swipe-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.swipe-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line-2); transition: width .2s, background-color .2s; }
.swipe-dots i.on { width: 20px; background: var(--amber); }
.touch-demo .phone-card { border-radius: var(--r-l); border-top: 1px solid var(--line); }
.touch-demo .phone-card .eyebrow { margin-bottom: 8px; }

@media (max-width: 999px) {
  /* Hero: put the gameplay slideshow right under the headline */
  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 3; }
  .hero-copy > .eyebrow { order: 1; }
  .hero-copy > h1 { order: 2; }
  .hero-media { order: 2; width: 100%; margin: 22px 0 4px; }
}
@media (max-width: 760px) {
  /* The separate screenshot grid repeats the pictures now in the practice steps */
  #screenshots { display: none; }
  /* Demo section: the "send yourself the link" card comes before the mode list */
  #demo .wrap { display: flex; flex-direction: column; }
  #demo .sec-head { order: 0; }
  #demo .touch-demo { order: 1; margin-bottom: 18px; }
  #demo .modes { order: 2; }
  .hero-switch { margin-top: 18px; padding-top: 16px; }
}
@media (max-width: 639px) {
  /* "Inside the sim" numbers: 2 by 2, numbers and labels only */
  .inside-list { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .inside-list p { display: none; }
  .inside-num { font-size: 2.3rem; }
  .inside-list h3 { font-size: .92rem; margin-bottom: 0; }
  /* Simulator lineup: swipe sideways instead of three tall cards */
  .lineup { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--pad) * -1); padding: 4px var(--pad) 10px; scroll-padding-inline: var(--pad); scrollbar-width: none; }
  .lineup::-webkit-scrollbar { display: none; }
  .lineup > .card { flex: 0 0 84%; scroll-snap-align: start; min-height: 0; }
  .lineup-foot::before { content: "Swipe to see what\2019s coming next. "; }
  /* How it works: lighter cards */
  .steps { gap: 10px; }
  .steps > li { padding: 18px 18px; }
  .steps > li::before { margin-bottom: 10px; }
}
.touch-demo, .swipe { min-width: 0; width: 100%; }
.swipe-slide, .flow-shot { text-decoration: none; }

/* Cart, round 2: "added" pop-up, owned state, picture and what's included on the cart page */
[data-add-cart].is-added::before, [data-add-cart].is-owned::before { content: "\2713"; margin-right: 7px; font-weight: 800; }
[data-add-cart].is-owned { background: rgba(74, 222, 128, .1); border: 1px solid rgba(74, 222, 128, .45); color: var(--green); box-shadow: none; }
.cart-link.bump .cart-count { animation: cart-bump .5s ease; }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cart-pop { position: fixed; z-index: 90; top: calc(var(--head-h) + 12px); right: 16px; width: min(360px, calc(100vw - 32px)); padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease; }
.cart-pop.open { opacity: 1; transform: none; }
.cart-pop[hidden] { display: none; }
.cart-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.cart-pop-head p { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--green); }
.cart-pop-head svg { width: 18px; height: 18px; }
.cart-pop-x { width: 34px; height: 34px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.cart-pop-x:hover { background: var(--panel-2); color: #fff; }
.cart-pop-item { display: flex; gap: 12px; align-items: center; padding: 12px 0 14px; border-top: 1px solid var(--line); }
.cart-pop-item img { width: 112px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-s); border: 1px solid var(--line); flex: none; }
.cart-pop-item div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-pop-ed { color: var(--amber); font-size: .88rem; font-weight: 600; }
.cart-pop-price { color: var(--muted); font-size: .88rem; }
.cart-pop-actions .btn + .btn { margin-top: 8px; }
@media (max-width: 600px) {
  .cart-pop { top: auto; bottom: 0; right: 0; left: 0; width: auto; border-radius: var(--r-l) var(--r-l) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateY(24px); }
}
@media (prefers-reduced-motion: reduce) { .cart-pop, .cart-pop.open { transition: none; transform: none; } .cart-link.bump .cart-count { animation: none; } }

.cart-back { display: inline-block; margin-bottom: 10px; color: var(--muted); font-weight: 600; text-decoration: none; }
.cart-back:hover { color: #fff; }
.cart-page h1 { margin: 0 0 24px; }
.cart-flash { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--panel-2); }
.cart-flash[hidden] { display: none; }
.cart-undo { background: none; border: 0; padding: 4px 0; color: var(--amber); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.cart-main { display: grid; gap: 14px; min-width: 0; }
.cart-item { align-items: flex-start; }
.cart-thumb { flex: 0 0 200px; display: block; border-radius: var(--r-s); overflow: hidden; border: 1px solid var(--line); }
.cart-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cart-item h2 a { color: inherit; text-decoration: none; }
.cart-item h2 a:hover { text-decoration: underline; }
.cart-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; color: var(--muted); font-size: .94rem; }
.cart-includes li { position: relative; padding-left: 22px; }
.cart-includes li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.cart-demo-tip { margin: 0; color: var(--muted); font-size: .95rem; }
.cart-trust { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; font-size: .9rem; color: var(--muted); }
.cart-trust li { display: flex; gap: 10px; align-items: flex-start; }
.cart-trust svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber); }
.cart-empty { display: grid; gap: 24px; max-width: 900px; align-items: center; }
@media (min-width: 760px) { .cart-empty { grid-template-columns: 340px 1fr; } }
.cart-empty-shot { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.cart-empty-shot img { display: block; width: 100%; height: auto; }
.cart-empty-more { margin: 16px 0 0; }
@media (max-width: 600px) {
  .cart-thumb { flex-basis: 100%; }
  .cart-item { padding: 16px; }
  .cart-empty { padding: 20px; }
}
.cart-empty h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); }

/* Simulators page: what you'll troubleshoot */
.fault-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fault-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .fault-grid { grid-template-columns: repeat(4, 1fr); } }
.fault-card { background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--amber-line); border-radius: var(--r-l); padding: 20px 20px 22px; }
.fault-card h3 { font-size: 1.02rem; margin: 0 0 8px; }
.fault-card p { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--muted); }
.fault-card--note { background: var(--amber-soft); border-color: var(--amber-line); }
.fault-card--note p { color: var(--text); }
.fault-how { display: grid; gap: 16px 40px; grid-template-columns: 1fr; margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(24px, 3vw, 32px); border-top: 1px solid var(--line); }
@media (min-width: 800px) { .fault-how { grid-template-columns: 1fr 1fr; } }
.fault-how h3 { font-size: 1.02rem; margin: 0 0 8px; }
.fault-how p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ---------- 12. Polish pass (December 2026) ---------- */
/* Header: "Sign in" is a plain menu link; the one amber button is "Play the free demo" */
.nav-end .btn { white-space: nowrap; }
.nav-toggle, .cart-link { height: 44px; }
.foot-mail a { color: var(--text); font-weight: 600; }
.site-foot .foot-mail a:hover { color: #fff; }

/* Trust row under the prices: secure checkout, refund, support email */
.trust { display: grid; gap: 18px 28px; margin-top: 22px; padding: 22px clamp(20px, 2.6vw, 28px); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--bg-2); font-size: .93rem; line-height: 1.55; color: var(--muted); }
.sec--raised .trust { background: var(--panel); }
@media (min-width: 860px) { .trust { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--amber); }
.trust b { display: block; margin-bottom: 3px; }
.trust a { overflow-wrap: anywhere; }
.plan-fine { margin: 12px 0 0; font-size: .86rem; color: var(--dim); text-align: center; }
.plan-fine a { color: var(--muted); }

/* Forms: a problem is shown under the field it belongs to */
.field-err { margin: 0; font-size: .86rem; color: #ffc4bf; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
input[aria-invalid="true"]:focus, textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255, 128, 120, .22); }
.form-done:focus { outline: none; }
#pilot .plate { align-self: start; }

/* Phones and tablets: every tap target is at least 44px tall */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .btn--sm { min-height: 44px; }
  .link-arrow { min-height: 44px; }
  .site-foot li + li { margin-top: 0; }
  .site-foot li a, .foot-mail a { display: inline-block; padding: 10px 0; }
  .foot-bottom nav { gap: 0 20px; }
  .foot-bottom nav a { display: inline-block; padding: 12px 0; }
  .player-bar a, .player-bar button { min-height: 44px; }
  .cart-remove, .cart-undo, .cart-back { min-height: 44px; display: inline-flex; align-items: center; }
  .cart-pop-x { width: 44px; height: 44px; }
  .show-nav { width: 44px; height: 44px; margin-top: -22px; }
  .show-dot { width: 30px; height: 44px; }
  .crumbs a { display: inline-block; padding: 16px 0; margin: -16px 0; }
  .plate dd a, .trust a, .fine a, .lineup-foot a, .sim-top-note a, .sim-stats a, .cart-demo-tip a, .steps > li a { display: inline-block; padding: 11px 0; margin: -11px 0; }
  .faq summary { min-height: 56px; }
  .eyebrow-more a { display: inline-block; padding: 14px 0; margin: -6px 0; }
  .hero-switch a { display: inline-block; padding: 11px 0; margin: -5px 0; }
}
.cart-link[hidden] + .nav-toggle { margin-left: auto; }
/* No button at the end of the menu any more: keep the cart on the far right on wide screens */
@media (min-width: 941px) { .cart-link { margin-left: 18px; } }
#pilot .plate { margin: 0; }
.hero h1 em { display: block; }

/* ---- Screenshot audit fixes (Dec 4, 2026) ---- */
/* Phone header: the cart count pushed the Menu button off the screen under 390px */
@media (max-width: 420px) { .head-row { gap: 8px; } .cart-link { padding: 0 10px; margin-left: auto; } .nav-toggle { padding: 0 10px; gap: 7px; } }
@media (max-width: 370px) { .nav-toggle { font-size: 0; gap: 0; width: 44px; padding: 0; justify-content: center; } .site-head .brand { font-size: 1rem; gap: 8px; } }
@media (max-width: 340px) { .site-head .wrap { padding-inline: 14px; } }
/* Home, phones: the learning note sat on top of the "send yourself the link" card */
@media (max-width: 760px) { #demo .demo-note { order: 3; margin-top: 4px; } }
/* Cards whose heading is an h2 styled as h3 had no gap under the heading */
.card .h3 { margin-bottom: 8px; }
/* Simulators page, phones: one fact per row instead of two cramped columns, and full-width buttons like the other pages */
@media (max-width: 479px) { .sim-stats { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 560px) { .sim-top .actions .btn { width: 100%; } }
/* Desktop hero: three ticks wrapped as two plus one, so list them one per line */
@media (min-width: 1000px) { .hero .ticks, .page-head .split .ticks { flex-direction: column; gap: 7px; } }
/* Home: the two "for learners" and "for schools" boxes sat a full section apart */
#learners { padding-bottom: 0; }
#schools { padding-top: clamp(20px, 3vw, 32px); }
/* Footer, tablets: three link columns in one row instead of two and a leftover */
@media (min-width: 600px) and (max-width: 859px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
/* Game modes: three columns only when there is room for the "Full version" tag beside the name */
@media (min-width: 760px) and (max-width: 899px) { .modes { grid-template-columns: 1fr; } }
/* A short facts card beside long text stays in view while the text scrolls */
@media (min-width: 940px) { .split--top > .side-card { position: sticky; top: calc(var(--head-h) + 20px); } }
/* Demo poster: when the picture is cropped, keep its left edge so the logo in it is never cut in half */
.player-stage > img { object-position: left center; }
/* Demo page: a small gap between the player and the controls box */
.keys--wide { margin-top: 12px; }

/* First screen (Dec 2026): what it is, who it's for and the next step all show before any scrolling */
@media (max-width: 760px) {
  .hero { padding-top: 26px; }
  .hero-copy > .eyebrow { order: 1; margin-bottom: 10px; }
  .hero-copy > h1 { order: 2; }
  .hero-copy > .lead { order: 3; margin: 14px 0 18px; font-size: 1.02rem; }
  .hero-copy > .actions { order: 4; }
  .hero-media { order: 5; margin: 26px 0 4px; }
  .hero-copy > .ticks, .hero-copy > .hero-phone-note, .hero-copy > .hero-switch { order: 6; }
}
.page-head--slim { padding: clamp(22px, 3vw, 40px) 0 clamp(18px, 2.4vw, 30px); }
.page-head--slim h1 { font-size: clamp(1.55rem, 3vw, 2.3rem); max-width: none; }
.page-head--slim .lead { margin-top: 10px; font-size: 1.02rem; max-width: 46em; }
.page-head--slim + .sec { padding-top: clamp(30px, 4.5vw, 60px); }
@media (max-width: 760px) { .page-head--slim .lead { display: none; } .page-head--slim + .sec .sim-top-text .lead { font-size: 1.02rem; } }

/* Demo loading screen and problem messages */
.player-loading { padding: 20px; text-align: center; }
.player-loading p { margin: 0; }
.load-bar { width: min(280px, 70vw); height: 6px; border-radius: 99px; background: var(--panel-3); overflow: hidden; }
.load-bar i { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 99px; transition: width .25s ease; }
.load-note { max-width: 420px; font-size: .92rem; color: var(--muted); }
.no-webgl .actions { justify-content: center; margin-top: 10px; }
.no-webgl { overflow: auto; }
/* Demo page: the next step, right under the demo */
.demo-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; margin: 0 0 18px; padding: 16px 20px; border: 1px solid rgba(245, 165, 36, .35); border-radius: var(--r-l); background: rgba(245, 165, 36, .06); }
.demo-next p { margin: 0; flex: 1 1 320px; color: var(--muted); }
.demo-next p b { color: var(--text); }
.demo-next-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.ticks--col { flex-direction: column; gap: 8px; }
@media (max-width: 560px) { .demo-next-links .btn { width: 100%; } }
/* Phones and tablets can't play here, so "Finished the demo?" would make no sense; the section below still offers the next steps */
@media (max-width: 760px) { .demo-next { display: none; } }
.is-touch .demo-next { display: none; }
/* Touch devices: the same hiding the script does, done here too so nothing jumps while the page loads */
@media (hover: none) and (pointer: coarse) { .touch-demo { display: block; } .player, .specs, .keys, .demo-next { display: none; } }
