/* PC Workshop Simulator — site styles
   Tokens from the game's design system (design/DESIGN-SYSTEM.md):
   dark workshop greys + bench-lamp amber. Publisher blue is deliberately absent
   (brand rule: the product mark and product surfaces are never publisher blue). */

:root {
  --bg-0: #0C1014;
  --bg-1: #12171D;
  --bg-2: #1A2129;
  --bg-3: #222B35;
  --bg-4: #2B3642;
  --stroke-1: #2C3844;
  --stroke-2: #405061;
  --text-hi: #F0F5FA;
  --text-mid: #A7B6C5;
  --text-cap: #8FA1B3;
  --ink: #1A1205;
  --amber-300: #FFD08A;
  --amber-400: #FFB454;
  --amber-450: #FFC475;
  --amber-500: #E1962F;
  --cyan: #4CC2FF;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --container: 1080px;
  --radius: 10px;
  --chamfer: 14px;
}

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

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

body {
  background: var(--bg-1);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text-hi); line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; }
h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--amber-400); color: var(--ink);
  padding: 8px 16px; z-index: 100; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 23, 29, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stroke-1);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--font-display); font-weight: 500;
  color: var(--text-hi); letter-spacing: 0.06em; text-transform: uppercase;
  font-size: 0.92rem; white-space: nowrap;
}
.site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-nav a { color: var(--text-mid); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--text-hi); text-decoration: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block; font-weight: 600; font-family: var(--font-body);
  padding: 12px 24px; border-radius: 8px; border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--amber-400); color: var(--ink); }
.btn-primary:hover { background: var(--amber-450); }
.btn-primary:active { background: var(--amber-500); }
.btn-primary:focus-visible { outline-color: var(--text-hi); }
.btn-ghost {
  background: var(--bg-3); color: var(--text-hi);
  border-color: var(--stroke-2);
}
.btn-ghost:hover { background: var(--bg-4); border-color: #5A6E84; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-disabled {
  background: var(--bg-3); color: var(--text-cap);
  border: 1px dashed var(--stroke-2); cursor: default;
}

/* ---------- Hero ---------- */

.hero { background: var(--bg-0); border-bottom: 1px solid var(--stroke-1); }
.hero-grid {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 48px; align-items: center;
  padding-top: 88px; padding-bottom: 88px;
}
.eyebrow {
  color: var(--text-cap); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 20px; }
.lede { font-size: 1.08rem; max-width: 34rem; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.cta-note { color: var(--text-cap); font-size: 0.9rem; margin-top: 14px; }

/* The hero lockup: mark + two-line wordmark + tagline, framed by four static
   amber corner brackets (brand lockup L4 — brackets are always amber, never animated). */
.hero-art { display: flex; justify-content: center; }
.lockup {
  position: relative; text-align: center;
  padding: 40px 48px;
}
.lockup::before, .lockup::after,
.lockup .lockup-tag::before, .lockup .lockup-tag::after {
  content: ""; position: absolute; width: 14px; height: 14px;
  border-color: var(--amber-400); border-style: solid;
}
.lockup::before { top: 0; left: 0; border-width: 2px 0 0 2px; }
.lockup::after { top: 0; right: 0; border-width: 2px 2px 0 0; }
.lockup .lockup-tag::before { bottom: 0; left: 0; border-width: 0 0 2px 2px; }
.lockup .lockup-tag::after { bottom: 0; right: 0; border-width: 0 2px 2px 0; }
.lockup .lockup-tag::before, .lockup .lockup-tag::after { position: absolute; }
.lockup-mark { width: 148px; height: 148px; }
.lockup-word {
  font-family: var(--font-display); color: var(--text-hi);
  text-transform: uppercase; margin-top: 18px; line-height: 1.12;
}
.lockup-word .word-l1 {
  display: block; font-weight: 700; font-size: 1.55rem; letter-spacing: 0.02em;
}
.lockup-word .word-l2 {
  display: block; font-weight: 500; font-size: 1.55rem;
  letter-spacing: 0.156em; margin-right: -0.156em;
}
.lockup-tag {
  position: static; color: var(--text-mid); font-size: 1rem; margin-top: 10px;
}

/* ---------- Sections ---------- */

.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--stroke-1); border-bottom: 1px solid var(--stroke-1); }
.section-lede { max-width: 40rem; margin-bottom: 32px; font-size: 1.05rem; }

/* ---------- Feature cards (chamfered top-left corner echoes the mark) ---------- */

.card-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
}
.card {
  background: var(--bg-2); border: 1px solid var(--stroke-1);
  border-radius: var(--radius); padding: 24px;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
}
.section-alt .card { background: var(--bg-3); }

/* ---------- Steps ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--bg-3); border: 1px solid var(--stroke-1);
  border-radius: var(--radius); padding: 24px;
}
.step-num {
  font-family: var(--font-display); font-weight: 700;
  color: var(--amber-400); font-size: 1.6rem; display: block; margin-bottom: 8px;
}

/* ---------- Classroom ---------- */

.classroom-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.checklist { list-style: none; }
.checklist li {
  padding: 10px 0 10px 30px; position: relative;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 17px;
  width: 12px; height: 12px;
  background: var(--amber-400);
  clip-path: polygon(4px 0, 100% 0, 100% 100%, 0 100%, 0 4px);
}
.checklist strong { color: var(--text-hi); }
.classroom-panel {
  background: var(--bg-0); border: 1px solid var(--stroke-1);
  border-radius: var(--radius); padding: 36px 28px; text-align: center;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
}
.panel-big {
  font-family: var(--font-display); font-weight: 700;
  color: var(--amber-400); font-size: 1.7rem; line-height: 1.25;
}
.panel-note { color: var(--text-cap); font-size: 0.9rem; margin-top: 14px; }

/* ---------- Pricing ---------- */

.price-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 18px;
  justify-content: center;
}
.price-card {
  background: var(--bg-3); border: 1px solid var(--stroke-1);
  border-radius: var(--radius); padding: 28px; text-align: center;
}
.price-amount {
  font-family: var(--font-display); font-weight: 700;
  color: var(--text-hi); font-size: 1.8rem; margin: 6px 0 2px;
}
.price-tbd { font-size: 1rem; font-weight: 500; color: var(--text-cap); }
.price-methods { color: var(--text-hi); font-weight: 500; }
.price-via { color: var(--text-cap); font-size: 0.85rem; margin: 4px 0 18px; }
.license-facts {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
  justify-content: center; margin-top: 28px;
}
.license-facts li {
  color: var(--text-cap); font-size: 0.92rem; position: relative; padding-left: 18px;
}
.license-facts li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 9px; height: 9px; background: var(--amber-400);
  clip-path: polygon(3px 0, 100% 0, 100% 100%, 0 100%, 0 3px);
}

/* ---------- Download ---------- */

.download-box { text-align: center; }
.download-box .section-lede { margin-left: auto; margin-right: auto; }

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

.faq-wrap { max-width: 46rem; }
.faq-wrap h2 { margin-bottom: 24px; }
details {
  background: var(--bg-3); border: 1px solid var(--stroke-1);
  border-radius: var(--radius); margin-bottom: 10px;
}
summary {
  cursor: pointer; padding: 16px 20px;
  font-weight: 600; color: var(--text-hi); list-style-position: inside;
}
summary:hover { background: var(--bg-4); border-radius: var(--radius); }
details[open] summary { border-bottom: 1px solid var(--stroke-1); }
details p { padding: 14px 20px 18px; }

/* ---------- Footer ---------- */

.site-footer { background: var(--bg-0); border-top: 1px solid var(--stroke-1); padding: 48px 0 32px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-title {
  font-family: var(--font-display); font-weight: 700; color: var(--text-hi);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.footer-tag { color: var(--text-cap); font-size: 0.92rem; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--text-mid); font-size: 0.92rem; }
.footer-links a:hover { color: var(--text-hi); }
.footer-rule { border: none; border-top: 1px solid var(--stroke-1); margin: 28px 0 20px; }
.footer-legal p { color: var(--text-cap); font-size: 0.85rem; margin-bottom: 6px; }
.footer-legal a { color: var(--text-cap); text-decoration: underline; }
.footer-legal a:hover { color: var(--text-mid); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .hero-art { order: -1; }
  .lockup-mark { width: 110px; height: 110px; }
  .classroom-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .card-grid, .price-grid { grid-template-columns: 1fr; }
  .header-row { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: 16px; }
  .section { padding: 56px 0; }
}

/* ---- download: test-build notice, verification details ---- */
.testing-banner{
  margin:1.25rem auto 1.5rem;max-width:60ch;padding:.9rem 1.1rem;
  border:1px solid rgba(255,180,84,.45);border-left:4px solid #FFB454;
  border-radius:6px;background:rgba(255,180,84,.07);
  font-size:.95rem;line-height:1.6;text-align:left;
}
.dl-details{max-width:60ch;margin:1.5rem auto 0;text-align:left;font-size:.95rem}
.dl-details summary{cursor:pointer;padding:.5rem 0;font-weight:600}
.dl-details p{line-height:1.65}
.hash-list{list-style:none;padding:0;margin:.75rem 0}
.hash-list li{margin-bottom:.75rem}
.hash-list .hash{
  display:block;word-break:break-all;font-size:.8rem;
  padding:.4rem .55rem;border-radius:4px;
  background:rgba(255,255,255,.05);
}
.dl-sub{max-width:60ch;margin:.6rem auto 1.2rem;font-size:.9rem;opacity:.8;line-height:1.6}
.dl-alt{max-width:60ch;margin:0 auto;font-size:.9rem;opacity:.75;line-height:1.6}
