/* Powers HQ — scoreboard design system.
   Asphalt panels, chalk field, line-paint yellow for the numbers that matter. */
:root {
  --asphalt: #1e2328;
  --asphalt-2: #2a3138;
  --chalk: #f5f6f3;
  --paper: #ffffff;
  --line: #ffc629;
  --turf: #1f7a4d;
  --brick: #c8372d;
  --steel: #5f6973;
  --rule: #dfe2dd;
  --radius-s: 4px;
  --radius-m: 10px;
  --shadow: 0 1px 0 rgba(30,35,40,.06), 0 8px 24px -12px rgba(30,35,40,.25);
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--asphalt); font: 400 17px/1.55 var(--body); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--line); }
:focus-visible { outline: 3px solid var(--line); outline-offset: 2px; border-radius: 2px; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--cond); font-weight: 700; line-height: 1.02; letter-spacing: -0.005em; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; max-width: 64ch; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.pad { padding-top: 56px; padding-bottom: 56px; }
.muted { color: var(--steel); }
.small { font-size: .9rem; }
.num { font-family: var(--cond); font-variant-numeric: tabular-nums; }

/* Header */
.top { background: var(--asphalt); color: var(--chalk); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { white-space: nowrap; font-family: var(--cond); font-weight: 700; font-size: 1.5rem; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.logo-mark { width: 26px; height: 26px; border: 3px solid var(--line); border-radius: 50%; position: relative; }
.logo-mark::after { content: ""; position: absolute; left: 50%; top: 3px; width: 3px; height: 9px; background: var(--line); transform: translateX(-50%) rotate(35deg); transform-origin: bottom; }
.top nav { display: flex; gap: 22px; margin-left: auto; font-weight: 500; }
.top nav a { text-decoration: none; opacity: .86; }
.top nav a:hover { opacity: 1; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid rgba(255,255,255,.3); color: inherit; border-radius: var(--radius-s); padding: 6px 10px; font: inherit; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem/1 var(--body); padding: 14px 22px; border-radius: var(--radius-s);
  border: 2px solid var(--asphalt); background: var(--asphalt); color: var(--chalk); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--asphalt-2); }
.btn-line { background: var(--line); border-color: var(--line); color: var(--asphalt); }
.btn-line:hover { background: #ffd451; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: rgba(30,35,40,.06); }
.btn-sm { padding: 9px 14px; font-size: .92rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Forms */
label { display: block; font-weight: 600; margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=url], input[type=tel], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 2px solid #c9cec8; border-radius: var(--radius-s); background: var(--paper); color: var(--asphalt); }
input:focus, select:focus, textarea:focus { border-color: var(--asphalt); outline: none; box-shadow: 0 0 0 3px rgba(255,198,41,.55); }
textarea { min-height: 110px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: .88rem; color: var(--steel); margin-top: 4px; }
.flash { background: var(--line); color: var(--asphalt); padding: 12px 20px; font-weight: 600; }

/* Hero: the scoreboard */
.hero { background: var(--asphalt); color: var(--chalk); padding: 56px 0 72px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: auto 0 0 0; height: 10px; background: repeating-linear-gradient(90deg, var(--line) 0 64px, transparent 64px 96px); opacity: .9; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: start; }
.hero h1 { color: var(--chalk); max-width: 13ch; }
.hero .lede { font-size: 1.2rem; color: #cfd5da; max-width: 46ch; }
.score-form { background: var(--paper); color: var(--asphalt); border-radius: var(--radius-m); padding: 22px; margin-top: 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.score-form .btn { width: 100%; margin-top: 4px; }
.board { background: #14181c; border: 1px solid #353c43; border-radius: var(--radius-m); padding: 18px 20px 14px; font-family: var(--cond); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; color: #9aa4ad; font-size: 1.05rem; border-bottom: 1px solid #2f363d; padding-bottom: 10px; margin-bottom: 4px; }
.board-head strong { color: var(--chalk); font-size: 1.35rem; }
.board table { width: 100%; border-collapse: collapse; font-size: 1.3rem; }
.board td { padding: 9px 4px; border-bottom: 1px solid #262c32; color: #dfe4e8; }
.board td.pos { width: 2ch; color: #7d8790; }
.board td.pts { text-align: right; color: var(--line); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 1.6rem; }
.board tr.you td { color: #fff; }
.board tr.you td:nth-child(2)::after { content: " (you)"; color: var(--line); font-size: .95rem; }
.board .move { font-size: 1rem; padding-left: 8px; }
.up { color: #4cc38a; } .down { color: #ff7a6e; }
.board-foot { color: #7d8790; font: 400 .9rem/1.4 var(--body); margin-top: 10px; }
.digits { font-family: var(--cond); font-weight: 700; color: var(--line); font-variant-numeric: tabular-nums; line-height: .9; }

/* Sections */
.band { padding: 80px 0; }
.band-paper { background: var(--paper); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.lead-in { font-size: 1.15rem; }
.does { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--asphalt); }
.does li { display: grid; grid-template-columns: 210px 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.does strong { font-family: var(--cond); font-size: 1.35rem; line-height: 1.1; }
.does span { color: var(--steel); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid var(--asphalt); border-radius: var(--radius-m); overflow: hidden; background: var(--paper); }
.plan { padding: 26px 22px; border-right: 1px solid var(--rule); display: flex; flex-direction: column; }
.plan:last-child { border-right: 0; }
.plan.pick { background: var(--asphalt); color: var(--chalk); }
.plan.pick .muted { color: #b8c0c7; }
.plan h3 { font-size: 1.8rem; margin-bottom: 4px; }
.plan .price { font-family: var(--cond); font-weight: 700; font-size: 3.2rem; line-height: 1; margin: 12px 0 2px; }
.plan .price small { font-size: 1.1rem; font-weight: 600; }
.plan ul { padding: 0; margin: 18px 0 22px; list-style: none; flex: 1; }
.plan li { padding: 7px 0 7px 22px; position: relative; border-top: 1px solid rgba(127,127,127,.18); font-size: .96rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--turf); border-bottom: 2px solid var(--turf); transform: rotate(-45deg); }
.plan.pick li::before { border-color: var(--line); }
.plan .btn { width: 100%; }
.plan.pick .btn { background: var(--line); border-color: var(--line); color: var(--asphalt); }
.plan-flag { font-size: .85rem; font-weight: 600; color: var(--line); }
.versus { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: .95rem; color: var(--steel); }
.versus b { color: var(--asphalt); font-weight: 600; }

/* Studio */
.studio { background: var(--asphalt); color: var(--chalk); }
.studio .muted { color: #b8c0c7; }
.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; }
.tier { border: 1px solid #3a424a; border-radius: var(--radius-m); padding: 24px; }
.tier .price { font-family: var(--cond); font-size: 2.6rem; font-weight: 700; color: var(--line); line-height: 1; margin: 8px 0 12px; }
.reel { aspect-ratio: 16/9; width: 100%; border: 0; border-radius: var(--radius-m); background: #000; }

/* Network */
.net { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.net-node { border: 2px solid var(--asphalt); border-radius: var(--radius-m); padding: 22px; background: var(--paper); }
.net-node h3 { margin-bottom: 6px; }

/* FAQ */
details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; font-family: var(--cond); font-size: 1.5rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin-top: 10px; color: var(--steel); }

/* Score result */
.result-hero { background: var(--asphalt); color: var(--chalk); padding: 48px 0; }
.result-grid { display: grid; grid-template-columns: auto 1fr; gap: 48px; align-items: center; }
.big-score { font-size: clamp(6rem, 16vw, 11rem); }
.big-score small { font-size: .26em; color: #9aa4ad; font-weight: 600; margin-left: .2em; }
.rank-line { font-family: var(--cond); font-size: 1.7rem; margin: 4px 0 10px; }
.meter { height: 12px; background: #3a424a; border-radius: 6px; overflow: hidden; max-width: 520px; }
.meter i { display: block; height: 100%; background: var(--line); border-radius: 6px; }
.parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 28px 0 0; }
.part { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 16px; }
.part .num { font-size: 2rem; font-weight: 700; }
.part .bar { height: 6px; background: var(--rule); border-radius: 3px; margin-top: 8px; }
.part .bar i { display: block; height: 100%; background: var(--asphalt); border-radius: 3px; }
.fixes { counter-reset: fx; list-style: none; padding: 0; margin: 0; }
.fixes li { display: grid; grid-template-columns: 64px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.fixes .gain { font-family: var(--cond); font-weight: 700; font-size: 1.6rem; color: var(--turf); }
.tag { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 8px; border-radius: 3px; background: var(--chalk); border: 1px solid var(--rule); white-space: nowrap; }
.claim { background: var(--paper); border: 2px solid var(--asphalt); border-radius: var(--radius-m); padding: 26px; position: sticky; top: 20px; }
.vs { display: flex; gap: 20px; align-items: baseline; margin-top: 18px; color: #cfd5da; }
.vs .digits { font-size: 3rem; color: #ff9a8f; }

/* Footer */
.foot { background: var(--asphalt); color: #b8c0c7; padding: 40px 0; font-size: .95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; }
.foot a { color: var(--chalk); }

/* ---------- HQ app ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.side { background: var(--asphalt); color: var(--chalk); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 4px 8px 16px; font-size: 1.35rem; }
.side a.nav { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); text-decoration: none; color: #cfd5da; font-weight: 500; }
.side a.nav:hover { background: var(--asphalt-2); color: #fff; }
.side a.nav.on { background: var(--asphalt-2); color: #fff; box-shadow: inset 3px 0 0 var(--line); }
.side .count { background: var(--line); color: var(--asphalt); font-weight: 700; font-size: .8rem; border-radius: 10px; padding: 1px 8px; }
.side .biz { margin-top: auto; border-top: 1px solid #3a424a; padding: 14px 8px 0; font-size: .9rem; color: #9aa4ad; }
.side .biz strong { display: block; color: var(--chalk); }
.main { padding: 0 0 60px; min-width: 0; }
.hud { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 14px 28px; display: flex; flex-wrap: wrap; gap: 14px 36px; align-items: center; }
.hud .stat { display: flex; align-items: baseline; gap: 8px; }
.hud .stat .num { font-size: 1.9rem; font-weight: 700; }
.hud .stat span { color: var(--steel); font-size: .92rem; }
.hud .grow { margin-left: auto; }
.page { padding: 28px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-size: 2.6rem; margin: 0; }
.grid-hq { display: grid; grid-template-columns: 1.25fr .75fr; gap: 22px; }
.panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-m); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 22px; }
.panel h2 { font-size: 1.6rem; margin-bottom: 12px; }
.panel-dark { background: var(--asphalt); color: var(--chalk); border-color: var(--asphalt); }
.panel-dark .muted { color: #b8c0c7; }
.missions { list-style: none; padding: 0; margin: 0; }
.mission { display: grid; grid-template-columns: 28px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.mission:last-child { border-bottom: 0; }
.check { width: 24px; height: 24px; border: 2px solid var(--asphalt); border-radius: 50%; margin-top: 2px; }
.mission.done .check { background: var(--turf); border-color: var(--turf); position: relative; }
.mission.done .check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.mission.done strong { text-decoration: line-through; text-decoration-color: var(--steel); color: var(--steel); }
.mission .xp { font-family: var(--cond); font-weight: 700; font-size: 1.2rem; color: var(--turf); white-space: nowrap; }
.mission p { margin: 2px 0 8px; color: var(--steel); font-size: .95rem; }
.ladder { list-style: none; margin: 14px 0 0; padding: 0; }
.ladder li { display: flex; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.1); }
.ladder .num { color: var(--line); font-size: 1.25rem; min-width: 64px; }
.ladder li.got { opacity: .55; text-decoration: line-through; }
.spark { width: 100%; height: 70px; display: block; }
.toggle { display: inline-flex; align-items: center; gap: 10px; }
.switch { width: 46px; height: 26px; border-radius: 13px; background: #c9cec8; border: 0; position: relative; cursor: pointer; }
.switch[aria-pressed=true] { background: var(--turf); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch[aria-pressed=true]::after { left: 23px; }
.list { list-style: none; padding: 0; margin: 0; }
.item { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.item:last-child { border-bottom: 0; }
.item-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.stars { color: #d39b00; letter-spacing: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.empty { padding: 30px; text-align: left; border: 2px dashed #c9cec8; border-radius: var(--radius-m); color: var(--steel); }
.tbl { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl th { font-weight: 600; color: var(--steel); }
.locked { opacity: .55; }
.welcome { background: var(--line); border-radius: var(--radius-m); padding: 20px 22px; margin-bottom: 22px; }

@media (max-width: 960px) {
  .hero-grid, .split, .result-grid, .grid-hq { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan:nth-child(2) { border-right: 0; }
  .plan { border-bottom: 1px solid var(--rule); }
  .parts { grid-template-columns: 1fr 1fr; }
  .net, .tiers { grid-template-columns: 1fr; }
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; }
  .side .biz { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav { display: none; }
  .top nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--asphalt); padding: 16px 20px; z-index: 10; }
  .menu-btn { display: block; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; }
  .row2 { grid-template-columns: 1fr; }
  .does li { grid-template-columns: 1fr; gap: 4px; }
  .fixes li { grid-template-columns: 52px 1fr; }
  .fixes li .tag { grid-column: 2; justify-self: start; }
  .page { padding: 18px; }
  .hud { padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
