/* Rofoil landing. Same tokens as the console so the page and the product read as one thing. */
:root {
	--piste: #e6eaee; --foil: #f7f9fa; --ink: #1b2a38; --deep: #14202b; --mercury: #566675; --rule: #cdd5dc;
	--brass: #8a6a22; --brass-hover: #735719; --brass-light: #c9a24d; --touch: #0b7a57;
	--display: "Familjen Grotesk", system-ui, sans-serif; --body: "Source Sans 3", system-ui, sans-serif;
	--wrap: 1180px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--piste); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 700; line-height: 1.12; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; max-width: 62ch; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--foil); padding: 0.6rem 1rem; border-radius: 4px; z-index: 20; }
.skip:focus { top: 1rem; }

.btn { display: inline-flex; align-items: center; border: 1px solid var(--rule); background: var(--foil); color: var(--ink); font: 600 0.97rem var(--body); padding: 0.6rem 1.15rem; border-radius: 4px; text-decoration: none; }
.btn:hover { border-color: var(--mercury); }
.btn-primary { background: var(--brass); border-color: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-hover); border-color: var(--brass-hover); }
.btn-reverse { background: transparent; border-color: #4a5a69; color: var(--foil); }
.btn-reverse:hover { border-color: var(--brass-light); }
.textlink { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.textlink:hover { color: var(--brass); }

.top-in, .hero, .facts, .record, .checks, .controls, .road, .foot-in { max-width: var(--wrap); margin-inline: auto; padding-inline: 1.5rem; }

/* header: a fixed-height bar with a hairline, like a product site, not a poster */
.top { position: sticky; top: 0; z-index: 10; background: rgba(230, 234, 238, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 4rem; }
.logo img { width: 140px; height: auto; }
.nav { display: flex; align-items: center; gap: 1.7rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 600; font-size: 0.97rem; color: var(--mercury); }
.nav a:not(.btn):hover { color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
h1 span { display: block; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.55; margin: 1.5rem 0 1.9rem; max-width: 40ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-bottom: 1.4rem; }
.early { color: var(--mercury); font-size: 0.95rem; margin: 0; }

.hero-stage { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: start; }
.hero-photo { grid-column: 2; grid-row: 1; justify-self: end; width: 190px; border-radius: 4px; background: #c9d0d6; }
.runwin { grid-column: 1 / 3; grid-row: 1; margin: 3.4rem 0 0; width: calc(100% - 150px); position: relative; background: var(--foil); border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 22px 48px rgba(27, 42, 56, 0.2); overflow: hidden; }
.rw-bar { display: flex; align-items: baseline; gap: 0.8rem; padding: 0.8rem 1.1rem; border-bottom: 1px solid var(--rule); background: #eef2f5; }
.rw-title { font: 600 1rem var(--display); }
.rw-target { color: var(--mercury); font-size: 0.9rem; }
.rw-state { margin-left: auto; font-size: 0.85rem; font-weight: 600; color: var(--brass); }
.rw-state[data-done] { color: var(--touch); }
.rw-log { list-style: none; margin: 0; padding: 0.5rem 1.1rem; }
.rw-log li { display: grid; grid-template-columns: 4.6rem minmax(0, 1fr); gap: 0.6rem; padding: 0.42rem 0; font-size: 0.95rem; border-bottom: 1px solid #e3e8ec; font-variant-numeric: tabular-nums; }
.rw-log li:last-child { border-bottom: 0; }
.rw-log time { color: var(--mercury); }
.rw-check span { font-weight: 600; }
.rw-verdict { display: flex; align-items: center; gap: 0.9rem; padding: 0.95rem 1.1rem; border-top: 1px solid var(--rule); background: #eef2f5; }
.rw-verdict div { display: grid; line-height: 1.3; }
.rw-verdict strong { font: 600 1.12rem var(--display); }
.rw-verdict span { color: var(--mercury); font-size: 0.93rem; }
.runwin figcaption { padding: 0.6rem 1.1rem; font-size: 0.85rem; color: var(--mercury); border-top: 1px solid var(--rule); }
.replay { border: 0; background: none; padding: 0; margin-left: 0.3rem; color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.replay:hover { color: var(--brass); }

/* the one orchestrated moment: the log fills in, then the lamp lights. Without script every row is visible. */
.js .rw-log li, .js .rw-verdict { opacity: 0; transform: translateY(4px); }
.js .rw-log li.on, .js .rw-verdict.on { opacity: 1; transform: none; transition: opacity 260ms ease, transform 260ms ease; }
.js .rw-verdict.on .lamp { animation: light 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both; transform-origin: center; }
@keyframes light { from { opacity: 0.12; transform: scale(0.62); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .js .rw-log li, .js .rw-verdict { transition: none !important; } .js .rw-verdict.on .lamp { animation: none; } }

/* facts bar */
.facts { padding-block: 0 clamp(2.5rem, 5vw, 4rem); }
.facts dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.facts dl > div { padding: 1.1rem 1.2rem 1.2rem 0; }
.facts dl > div + div { padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.facts dt { font: 600 0.95rem var(--display); color: var(--mercury); margin-bottom: 0.15rem; }
.facts dd { margin: 0; font: 600 1.05rem/1.35 var(--display); }

/* scoring box band */
.boxband { background: var(--deep); color: var(--foil); }
.box-in { max-width: var(--wrap); margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) 1.5rem 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); grid-template-areas: "copy box" "read read"; gap: 2.5rem clamp(2rem, 6vw, 5rem); align-items: center; }
.box-copy { grid-area: copy; }
.box-copy h2 { margin-bottom: 1.1rem; }
.box-copy p { color: #c3ccd5; }
.box-copy .hint { color: var(--brass-light); font-weight: 600; margin: 1.3rem 0 0; }
.scoring { grid-area: box; background: #0d161e; border: 1px solid #2a3a48; border-radius: 10px; padding: 1.2rem 1.4rem 1.5rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.35); }
.plate { font: 700 0.85rem var(--display); letter-spacing: 0.14em; color: var(--brass-light); text-transform: uppercase; text-align: center; padding-bottom: 1rem; border-bottom: 1px solid #22313f; margin-bottom: 1.4rem; }
.lamps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.lampbtn { display: grid; justify-items: center; gap: 0.8rem; background: none; border: 0; padding: 0.4rem 0.2rem; cursor: pointer; }
.bulb { width: clamp(58px, 9vw, 78px); aspect-ratio: 1; border-radius: 50%; border: 2px solid #2d3d4b; background: #16212b; transition: background 200ms, box-shadow 200ms, border-color 200ms; }
.lbl { font-size: 0.93rem; font-weight: 600; color: #8c9aa7; transition: color 200ms; }
.lampbtn[aria-pressed="true"] .lbl { color: var(--foil); }
.lampbtn:hover .bulb { border-color: #4a5d6e; }
.lampbtn[aria-pressed="true"] .b-green { background: radial-gradient(circle at 36% 30%, #7ff0c4, #1fbf8a 55%, #0b7a57); border-color: #6fe3b8; box-shadow: 0 0 28px 6px rgba(47, 210, 154, 0.5); }
.lampbtn[aria-pressed="true"] .b-white { background: radial-gradient(circle at 36% 30%, #ffffff, #f1eee2 60%, #cfc9b4); border-color: #fff; box-shadow: 0 0 28px 6px rgba(255, 252, 240, 0.45); }
.lampbtn[aria-pressed="true"] .b-red { background: radial-gradient(circle at 36% 30%, #ff9a80, #e0472b 55%, #a52c15); border-color: #ff8a6e; box-shadow: 0 0 28px 6px rgba(224, 71, 43, 0.5); }
.lampbtn:focus-visible { outline-color: var(--brass-light); }
.readout { grid-area: read; border-top: 1px solid #2a3a48; padding-top: 1.6rem; display: grid; grid-template-columns: 12rem minmax(0, 1fr) minmax(0, 1.3fr); gap: 0.4rem 2rem; align-items: start; }
.readout h3 { font-size: 1.5rem; }
.readout[data-v="verified"] h3 { color: #5fe0b0; }
.readout[data-v="off"] h3 { color: #f1eee2; }
.readout[data-v="fault"] h3 { color: #ff8a6e; }
.r-job { grid-column: 1; margin: 0; color: #9fadba; font-size: 0.95rem; }
.readout dl { grid-column: 2; grid-row: 1 / span 2; margin: 0; display: grid; gap: 0.5rem; }
.readout dl > div { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 0.8rem; }
.readout dt { color: #9fadba; }
.readout dd { margin: 0; font-weight: 600; }
.readout > p:last-child { grid-column: 3; grid-row: 1 / span 2; margin: 0; color: #c3ccd5; }
.box-foot { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem clamp(2.5rem, 5vw, 4rem); color: #9fadba; font-size: 0.97rem; }

/* record */
.record { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; padding-block: clamp(3rem, 7vw, 6rem); }
.record-photo img { width: 100%; border-radius: 4px; }
.record-copy h2 { margin-bottom: 0.9rem; }
.sheet { margin-top: 1.6rem; background: var(--foil); border: 1px solid var(--rule); border-radius: 4px; font-variant-numeric: tabular-nums; }
.sheet caption { text-align: left; font: 600 0.88rem var(--body); color: var(--mercury); padding: 0 0 0.5rem; caption-side: top; }
.sheet th, .sheet td { text-align: left; padding: 0.6rem 1rem; border-bottom: 1px solid #e3e8ec; font-size: 0.97rem; vertical-align: top; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { width: 9rem; font-weight: 600; color: var(--mercury); }
.dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.5rem; }
.dot-ok { background: var(--touch); }

/* checks */
.checks { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--rule); display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.checks-lead { color: var(--mercury); margin: 1rem 0 0; }
.types { background: var(--foil); border: 1px solid var(--rule); border-radius: 4px; }
.types th, .types td { text-align: left; padding: 0.95rem 1.1rem; border-bottom: 1px solid #e3e8ec; }
.types thead th { font: 600 0.88rem var(--body); color: var(--mercury); background: #eef2f5; }
.types tbody th { font: 600 1.02rem var(--display); width: 40%; }
.types tr:last-child th, .types tr:last-child td { border-bottom: 0; }

/* controls */
.controls { padding-block: clamp(2.5rem, 6vw, 5rem); border-top: 1px solid var(--rule); }
.controls-lead { color: var(--mercury); margin: 0.8rem 0 2rem; }
.ctl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.ctl > div { padding: 1.2rem 1.6rem 1.6rem 0; border-bottom: 1px solid var(--rule); }
.ctl > div:not(:nth-child(3n+1)) { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
.ctl dt { font: 600 1.08rem var(--display); margin-bottom: 0.4rem; }
.ctl dd { margin: 0; color: var(--mercury); font-size: 0.98rem; max-width: 36ch; }

/* roadmap: a real sequence in time, so a track */
.road { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: clamp(2rem, 6vw, 5rem); padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--rule); align-items: start; }
.road h2 { margin-bottom: 2rem; max-width: 22ch; }
.track { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 0; }
.track li { position: relative; padding: 0 0 1.6rem 2rem; border-left: 2px solid var(--rule); margin-left: 0.45rem; }
.track li::before { content: ""; position: absolute; left: -0.52rem; top: 0.25rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: var(--piste); border: 2px solid var(--mercury); }
.track li.now::before { background: var(--touch); border-color: var(--touch); }
.track li:last-child { border-left-color: transparent; padding-bottom: 0; }
.track h3 { margin-bottom: 0.3rem; }
.track p { margin: 0; max-width: 60ch; }
.bounds { color: var(--mercury); }
.road-photo img { width: 100%; border-radius: 4px; }

/* 404 */
.nf { max-width: var(--wrap); margin: 0 auto; padding: 4rem 1.5rem 8rem; }
.nf h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.nf .lead { margin-top: 1.2rem; }

/* footer */
.foot { background: var(--ink); color: var(--foil); }
.foot-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem 3rem; align-items: center; padding-block: 2.6rem; }
.foot p { margin: 0.6rem 0 0; color: #c3ccd5; font-size: 0.95rem; }
.foot a:not(.btn) { color: var(--foil); }
.foot .credits { margin: 0; font-size: 0.85rem; color: #a9b4bf; max-width: 60ch; }

@media (max-width: 960px) {
	.nav a:not(.btn) { display: none; }
	.hero { grid-template-columns: 1fr; }
	.hero-stage { display: block; }
	.hero-photo { display: none; }
	.runwin { margin-top: 0; width: 100%; }
	.facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.facts dl > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.facts dl > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
	.box-in { grid-template-columns: 1fr; grid-template-areas: "copy" "box" "read"; }
	.readout { grid-template-columns: 1fr; }
	.r-job, .readout dl, .readout > p:last-child { grid-column: 1; grid-row: auto; }
	.record, .checks { grid-template-columns: 1fr; }
	.ctl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ctl > div:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
	.ctl > div:nth-child(even) { padding-left: 1.6rem; border-left: 1px solid var(--rule); }
	.road { grid-template-columns: 1fr; }
	.road-photo img { max-width: 200px; }
	.foot-in { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.facts dl { grid-template-columns: 1fr; }
	.facts dl > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
	.ctl { grid-template-columns: 1fr; }
	.ctl > div:nth-child(even) { padding-left: 0; border-left: 0; }
	.sheet th { width: 7rem; }
	.types tbody th { width: 46%; }
}
