/* Headroom website: built on the dashboard's design system (ui/theme.css, loaded first), so the landing page and /sim
   read as one product: Plus Jakarta Sans, indigo primary, blush, translucent glass cards on the soft backdrop.
   The names below are the ones this file has always used, mapped onto the theme's tokens. */
:root {
  --cream: var(--blush); --indigo: var(--primary); --burgundy: var(--s-off-ink);
  --plum: var(--primary); --sky: var(--primary-soft);
  --bg: var(--page); --card: var(--glass); --ink: #1E1B3A; --muted: #67637D; --rule: var(--glass-rule);
  --grid: #2F8A57; --local: var(--primary); --off: var(--s-off); --warn: var(--s-backup); --accent: var(--ink); --onband: #FFFFFF;
  --sans: var(--font); --mono: var(--font);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: transparent; color: var(--ink); font: 17px/1.6 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left)); }
:focus-visible { outline: 2px solid var(--local); outline-offset: 3px; border-radius: 4px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: var(--glass-strong);
  -webkit-backdrop-filter: var(--frost); backdrop-filter: var(--frost); border-bottom: 1px solid var(--glass-line); box-shadow: var(--glass-shadow-lo); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav nav { display: flex; gap: 24px; font-size: 15px; font-weight: 600; }
.nav nav a { text-decoration: none; color: var(--muted); }
.nav nav a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav nav a:not(.keep) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--sans);
  padding: 13px 22px; min-height: 44px; border-radius: var(--r-sm); border: 1px solid var(--primary); background: var(--primary); color: var(--on-primary);
  text-decoration: none; cursor: pointer; transition: background 0.15s, border-color 0.15s;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px -10px rgba(76, 61, 168, 0.7); }
.btn:hover { background: var(--primary-strong); border-color: var(--primary-strong); }
.btn.ghost { background: var(--glass); color: var(--ink); border-color: var(--glass-line); box-shadow: var(--glass-shadow-lo); }
.btn.ghost:hover { background: var(--glass-strong); }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }

/* hero */
.hero { padding: 64px max(16px, env(safe-area-inset-left)) 48px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 28px; } }
.eyebrow { font: 700 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--local); margin: 0 0 18px; }
h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 18px; font-weight: 800; }
.lede { font-size: 18px; color: var(--ink); opacity: 0.85; margin: 0 0 28px; max-width: 32em; }
.lede strong { color: var(--ink); font-weight: 600; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.slots { font: 500 14px/1.4 var(--sans); color: var(--muted); margin-top: 16px; display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); display: inline-block; flex: none; }
.dot.ok { background: var(--grid); } .dot.full { background: var(--off); }
.shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--rule); background: var(--card); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { font-size: 14px; color: var(--muted); padding: 10px 14px; border-top: 1px solid var(--rule); }

/* sections */
section.band { padding: 56px 0; border-top: 1px solid var(--rule); }
h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.02em; margin: 0 0 10px; line-height: 1.15; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 30px; max-width: 46em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.step { font: 700 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.step i { font-style: normal; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }

/* priority ladder */
.ladder { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ladder li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 16px; }
.ladder .t { font: 600 16px var(--sans); color: var(--local); }
.ladder .w { font-size: 14px; color: var(--muted); text-align: right; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 28px; } }
.loops { display: grid; gap: 14px; }
.kv { font: 600 13px var(--sans); color: var(--local); margin-top: 10px; }

/* results */
.tablewrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 12px; background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: lining-nums tabular-nums; }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--rule); white-space: nowrap; vertical-align: top; }
th:first-child, td:first-child { text-align: left; }
thead th { font-size: 16px; color: var(--ink); font-weight: 600; background: var(--soft); vertical-align: bottom; }
th small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); }
tbody th { font-weight: 600; font-size: 17px; }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td .cell { display: block; font-size: 18px; }
td .bar { display: block; height: 5px; margin-top: 6px; margin-left: auto; width: 100%; min-width: 72px; border-radius: 3px; background: var(--soft); overflow: hidden; }
td .bar i { display: block; height: 100%; margin-left: auto; background: var(--muted); opacity: 0.55; border-radius: 3px; }
td.best .cell { color: var(--grid); font-weight: 700; }
td.best .bar i { background: var(--grid); opacity: 1; }
tr.us { background: color-mix(in srgb, var(--local) 7%, var(--card)); }
tr.us th { color: var(--local); }
tr.us th::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--local); margin-right: 8px; vertical-align: 2px; }
.results-lead { font-size: 18px; margin: -10px 0 22px; max-width: 46em; text-wrap: pretty; }
.results-lead b { font-weight: 700; }
.note { font-size: 14px; color: var(--muted); margin-top: 12px; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* busy page */
.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.center .card { max-width: 520px; }
.center h1 { font-size: 32px; }
.center .slots { margin: 4px 0 22px; }

/* glass, as on /sim: cards, the ladder, tables and photos are translucent panes over the backdrop */
body { overflow-x: hidden; }
.card, .ladder li, .tablewrap, .shot { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow); border-radius: var(--r-lg); }
.ladder li { border-radius: var(--r-md); box-shadow: var(--glass-shadow-lo); }
thead th { background: var(--glass-strong); }
section.band { border-top: 0; }
.step i { border-radius: 50%; }
