/* Rev Tech Benchmark 2026. Dark navy screens, white "paper" report. */
:root {
  --bg: #0d1b2b;
  --panel: #152a41;
  --line: #27415f;
  --text: #eaf0f7;
  --muted: #9db0c6;
  --orange: #f8931f;
  --jim: #3dd6b0;
  --dave: #b9a6ff;
  --paper: #ffffff;
  --ink: #16202e;
  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--display); letter-spacing: .3px; margin: 0; text-wrap: balance; }
h2 { font-size: 26px; font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
a { color: var(--orange); }
.muted { color: var(--muted); }

/* logo */
.logo { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: .5px; line-height: 1; display: inline-flex; align-items: center; gap: 8px; }
.logo .rev { color: #fff; }
.logo .tech { color: var(--orange); }
.logo .arrow { width: 22px; height: 22px; }
.logo .yr { font-size: 14px; background: var(--orange); color: #0a1624; padding: 3px 8px; border-radius: 99px; letter-spacing: .5px; }

/* top bar */
.bar { display: flex; align-items: center; gap: 20px; padding: 12px 24px; border-bottom: 1px solid var(--line); background: #0a1624; flex-wrap: wrap; }
.bar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.flag { font-size: 12px; color: #0a1624; background: var(--muted); padding: 3px 8px; border-radius: 6px; font-weight: 700; letter-spacing: .4px; }
.flag.live { background: var(--jim); }

/* panels and buttons */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; min-width: 0; }
.panel > h2 { margin-bottom: 4px; }
.panel .sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.btn { background: var(--orange); color: #0a1624; border: 0; border-radius: 12px; padding: 14px 22px; font-weight: 700; cursor: pointer; font-size: 17px; min-height: 52px; }
.btn:hover { filter: brightness(1.08); }
.btn.alt { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.alt:hover { border-color: var(--muted); }
.btn.danger { background: transparent; color: #ffb4a6; border: 1px solid #7a3b30; }
.btn.small { padding: 8px 14px; min-height: 0; font-size: 14px; border-radius: 9px; }
.btn:disabled { opacity: .4; cursor: not-allowed; filter: none; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.err { color: #ffb4a6; font-size: 15px; min-height: 22px; margin: 8px 0; }
.track { position: relative; height: 22px; background: #0d1b2b; border-radius: 6px; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--orange); border-radius: 6px; transition: width .7s cubic-bezier(.2,.8,.2,1); }

/* ================= phone form ================= */
.phone { max-width: 560px; margin: 0 auto; padding: 16px 16px 32px; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.phone-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.phone-top .logo { font-size: 24px; }
.progress .track { height: 8px; border-radius: 99px; }
.progress .fill { border-radius: 99px; transition: width .3s ease; }
.progress .t { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; justify-content: space-between; }
.step { flex: 1; display: flex; flex-direction: column; padding-top: 18px; }
.intro h1 { font-size: 46px; line-height: 1; margin-bottom: 14px; }
.intro p { color: var(--muted); font-size: 17px; margin: 0 0 12px; }
.intro ul { color: var(--text); padding-left: 20px; margin: 0 0 12px; font-size: 16px; }
.intro li { margin: 6px 0; }
.qgroup { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--orange); }
.qtext { font-family: var(--body); font-size: 22px; font-weight: 500; line-height: 1.3; margin: 8px 0 0; letter-spacing: 0; color: var(--muted); }
.qtext b { color: #fff; font-weight: 700; }
.answer { margin-top: auto; padding-top: 20px; }
.bignum { font-family: var(--display); font-weight: 700; font-size: 120px; line-height: 1; text-align: center; font-variant-numeric: tabular-nums; color: var(--orange); }
.bignum.unset { color: var(--line); }
.hint { text-align: center; color: var(--muted); font-size: 15px; min-height: 22px; margin-bottom: 14px; }

/* the slider: big thumb, easy to hit */
.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 56px; background: transparent; margin: 0; touch-action: pan-y; cursor: pointer; --p: 50%; }
.slider:focus-visible { outline: none; }
.slider::-webkit-slider-runnable-track { height: 16px; border-radius: 99px; background: linear-gradient(to right, var(--orange) var(--p), #24405f var(--p)); }
.slider::-moz-range-track { height: 16px; border-radius: 99px; background: linear-gradient(to right, var(--orange) var(--p), #24405f var(--p)); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); margin-top: -16px; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.slider::-moz-range-thumb { width: 38px; height: 38px; border-radius: 50%; background: #fff; border: 5px solid var(--orange); box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.slider:focus-visible::-webkit-slider-thumb { outline: 3px solid #fff; outline-offset: 3px; }
.slider.unset::-webkit-slider-runnable-track { background: #24405f; }
.slider.unset::-moz-range-track { background: #24405f; }
.slider.unset::-webkit-slider-thumb { border-color: #6f86a3; background: #c9d5e3; }
.slider.unset::-moz-range-thumb { border-color: #6f86a3; background: #c9d5e3; }
.ticks { display: flex; justify-content: space-between; padding: 0 17px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ticks span { width: 14px; text-align: center; }
.ends { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; margin: 10px 0 0; line-height: 1.3; }
.ends span { max-width: 46%; }
.ends span:last-child { text-align: right; }
.ends b { color: var(--text); display: block; }
.nav2 { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 22px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.field input, .field select { width: 100%; padding: 14px; border-radius: 10px; border: 1px solid var(--line); background: #0a1624; color: var(--text); font-size: 16px; min-height: 52px; }
.consent { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0; font-size: 15px; }
.consent input { width: 26px; height: 26px; flex: none; accent-color: var(--orange); margin-top: 1px; }
.sending { text-align: center; padding: 60px 10px; }
.sending h2 { font-size: 34px; margin-bottom: 8px; }

/* ================= report (white paper) ================= */
.reportbar { max-width: 860px; margin: 0 auto; padding: 12px 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.paper { max-width: 860px; margin: 0 auto 24px; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 36px 40px; box-shadow: 0 10px 40px rgba(0,0,0,.4); color-scheme: light; }
.paper h2, .paper h3 { color: var(--ink); }
.ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 4px solid var(--orange); padding-bottom: 14px; }
.ph .logo { font-size: 26px; }
.ph .logo .rev { color: var(--ink); }
.ph .who { text-align: right; font-size: 14px; color: #4a5a70; }
.ph .who b { display: block; font-size: 18px; color: var(--ink); }
.hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 18px 0; }
.score { font-family: var(--display); font-weight: 700; font-size: 88px; line-height: .9; color: var(--ink); white-space: nowrap; }
.score small { font-size: 30px; color: #6a7a90; }
.hero p { margin: 0 0 6px; }
.hero .head { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.scale2 { position: relative; height: 12px; background: #e6ebf2; border-radius: 99px; margin: 34px 12px 34px; }
.scale2 .p { position: absolute; top: -6px; width: 4px; height: 24px; border-radius: 2px; margin-left: -2px; }
.scale2 .p em { position: absolute; font-style: normal; font-size: 11px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); left: 2px; }
.scale2 .p.up em { bottom: 28px; }
.scale2 .p.dn em { top: 28px; }
.scale2 .p.low2 { height: 40px; }
.scale2 .p.low2 em { top: 44px; }
.scale2 .p.edge-l em { transform: none; left: 0; }
.scale2 .p.edge-r em { transform: none; left: auto; right: 0; }
.pd { background: #6c55c9; } .pj { background: #17a384; } .pr { background: #8a96a8; } .py { background: var(--orange); width: 6px !important; }
.pd em { color: #5a44b5; } .pj em { color: #0d7d65; } .pr em { color: #5a6b82; } .py em { color: #b45f00; font-size: 12px !important; }
.sec { margin-top: 20px; }
.sec h3 { font-size: 21px; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; color: #b45f00; }
.cmp { display: grid; grid-template-columns: 170px 1fr 150px; gap: 10px; align-items: center; padding: 4px 0; font-size: 14px; }
.cmp .tr { position: relative; height: 18px; background: #eef2f7; border-radius: 4px; }
.cmp .y { position: absolute; left: 0; top: 0; height: 9px; background: var(--orange); border-radius: 4px 4px 0 0; min-width: 2px; }
.cmp .r { position: absolute; left: 0; bottom: 0; height: 9px; background: #8a9ab0; border-radius: 0 0 4px 4px; min-width: 2px; }
.cmp .vals { font-variant-numeric: tabular-nums; font-size: 13px; text-align: right; color: #4a5a70; }
.cmp .vals b { color: var(--ink); }
.cmp .vd { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; font-weight: 700; }
.vd.v0 { color: #b3261e; } .vd.v1 { color: #8a6100; } .vd.v2 { color: #0d7d65; } .vd.v3 { color: #0a5d8f; }
.cmphead { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6a7a90; margin: 10px 0 2px; }
.key { font-size: 12px; color: #5a6b82; display: flex; gap: 14px; margin-bottom: 4px; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.two2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.paper ul { margin: 6px 0 0; padding-left: 20px; }
.paper li { margin: 5px 0; }
.good { font-size: 14px; }
.plan { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 8px; }
.month { border: 1px solid #d6dde8; border-radius: 10px; padding: 12px 14px; border-top: 5px solid var(--orange); font-size: 14px; }
.month .mh { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .6px; }
.month .mh span { font-weight: 600; color: #6a7a90; font-size: 13px; }
.month .focus { font-weight: 700; color: #b45f00; margin: 2px 0 8px; font-size: 15px; }
.month p { margin: 0 0 8px; }
.month .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; color: #6a7a90; display: block; }
.monday { margin-top: 18px; background: #fff6ea; border: 1px solid #f5cf9b; border-radius: 10px; padding: 14px 16px; }
.monday b { color: #b45f00; }
.monday pre { margin: 8px 0 10px; white-space: pre-wrap; font-family: var(--body); font-size: 14px; background: #fff; border: 1px solid #f0dcc0; border-radius: 8px; padding: 10px 12px; }
.monday .btn { font-size: 15px; padding: 10px 16px; min-height: 44px; }
.pf { margin-top: 18px; padding-top: 10px; border-top: 1px solid #d6dde8; font-size: 12px; color: #5a6b82; }
.pf b { color: var(--ink); }
.wait { color: #6a7a90; font-style: italic; }

/* ================= room screen ================= */
.room { padding: 14px 24px; max-width: 1920px; margin: 0 auto; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 20px; min-width: 0; }
.tile .k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.tile .v { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tile .v.word { font-size: 38px; line-height: 1.05; min-height: 56px; display: flex; align-items: center; }
.tile .v small { font-size: 28px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.tile .s { color: var(--muted); font-size: 14px; }
.tile.hot .v { color: var(--orange); }
.tile.cool .v { color: var(--jim); }
.grid2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; }
.room .panel { padding: 14px 20px; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.group { margin-top: 8px; }
.group h3 { font-size: 14px; color: var(--orange); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 4px; font-family: var(--body); font-weight: 700; }
.row { display: grid; grid-template-columns: 250px 1fr 56px; gap: 12px; align-items: center; padding: 9px 0; }
.row .track { height: 18px; }
.row .lab { font-size: 16px; }
.row.now .lab { color: #fff; font-weight: 700; }
.row .num { font-family: var(--display); line-height: 18px; font-size: 26px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.mk { position: absolute; width: 20px; height: 17px; margin-left: -10px; border-radius: 5px; font-size: 12px; font-weight: 700; line-height: 17px; text-align: center; color: #0a1624; transition: left 1.2s cubic-bezier(.2,.8,.2,1); z-index: 2; box-shadow: 0 0 0 2px var(--panel); }
.mk.d { background: var(--dave); top: -8px; }
.mk.j { background: var(--jim); bottom: -8px; }
.chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; margin-left: 8px; vertical-align: 2px; }
.chip.gap { background: #5a2a14; color: #ffc08a; }
.chip.top { background: #12483d; color: #8ff0d4; }
.hist { position: relative; height: 156px; display: flex; align-items: flex-end; gap: 4px; padding-top: 48px; margin-top: 8px; border-bottom: 1px solid var(--line); }
.hist .b { flex: 1; background: var(--orange); border-radius: 5px 5px 0 0; min-height: 2px; transition: height .7s cubic-bezier(.2,.8,.2,1); position: relative; }
.hist .b span { position: absolute; top: -20px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hmk { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; transition: left 1.2s cubic-bezier(.2,.8,.2,1); z-index: 2; }
.hmk em { position: absolute; left: 8px; font-style: normal; font-size: 14px; font-weight: 700; white-space: nowrap; }
.hmk.d { background: var(--dave); } .hmk.d em { color: var(--dave); top: 0; }
.hmk.j { background: var(--jim); } .hmk.j em { color: var(--jim); top: 20px; }
.axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.insight { margin-top: 10px; padding: 10px 16px; border-left: 4px solid var(--orange); background: #10233a; border-radius: 0 10px 10px 0; font-size: 17px; }
.size-row { display: grid; grid-template-columns: 110px 1fr 110px; gap: 12px; align-items: center; padding: 5px 0; font-size: 15px; }
.size-row .track { height: 16px; }
.size-row .num { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.join { display: flex; gap: 20px; align-items: center; }
.qr { width: 150px; height: 150px; flex: none; border-radius: 12px; background: #fff; padding: 10px; display: grid; place-items: center; }
.qr svg, .qr img { width: 100%; height: 100%; display: block; }
.join h2 { font-size: 32px; line-height: 1.05; }
.join p { margin: 8px 0 0; color: var(--muted); }
.join .url { color: #fff; font-weight: 700; font-size: 18px; word-break: break-all; }

/* ================= control ================= */
.control { padding: 20px 24px; max-width: 1280px; margin: 0 auto; }
.ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.signin { max-width: 460px; margin: 60px auto; }
.reveal-now { font-family: var(--display); font-size: 34px; font-weight: 700; line-height: 1.1; margin: 6px 0 14px; }
.steps { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; margin: 14px 0 6px; }
.steps i { height: 10px; border-radius: 3px; background: #0d1b2b; border: 1px solid var(--line); }
.steps i.on { background: var(--jim); border-color: var(--jim); }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.toggle input { width: 22px; height: 22px; accent-color: var(--orange); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .8px; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 6px 8px; border-bottom: 1px solid #1d3550; }
.tbl td.n { font-variant-numeric: tabular-nums; }
.tbl input[type=number] { width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: #0a1624; color: var(--text); }
.tblwrap { max-height: 420px; overflow: auto; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input[type=text], .inline input[type=email], .inline input[type=number], .inline input[type=url] { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #0a1624; color: var(--text); min-width: 0; }
.overlay { position: fixed; inset: 0; background: rgba(5,12,20,.92); overflow: auto; z-index: 30; padding-bottom: 30px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: #fff; color: #16202e; padding: 12px 18px; border-radius: 10px; font-weight: 500; opacity: 0; pointer-events: none; transition: all .3s; z-index: 40; max-width: 90vw; }
.toast.on { opacity: 1; transform: translateX(-50%); }

@media (max-width: 1100px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .grid2, .ctl { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .room, .control { padding: 16px; }
  .bar { padding: 10px 16px; }
  .tile .v { font-size: 52px; }
  .row { grid-template-columns: 1fr 50px; }
  .row .track { grid-column: 1 / -1; grid-row: 2; }
  .two2, .plan { grid-template-columns: 1fr; }
  .paper { padding: 20px 16px; border-radius: 0; margin-bottom: 0; }
  .hero { grid-template-columns: 1fr; gap: 10px; }
  .score { font-size: 76px; }
  .cmp { grid-template-columns: 1fr auto; padding: 6px 0; }
  .cmp .tr { grid-column: 1 / -1; grid-row: 2; }
  .cmp .vals { text-align: right; }
  .cmp .vd { display: inline; margin-left: 6px; }
  .join { flex-direction: column; align-items: flex-start; }
}
@media (max-height: 640px) {
  .bignum { font-size: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .fill, .hist .b, .mk, .hmk { transition: none; }
}
@media print {
  @page { size: A4; margin: 9mm; }
  body { background: #fff; }
  .no-print, .reportbar, .toast, .bar { display: none !important; }
  .overlay { position: static; background: none; padding: 0; }
  body.has-overlay .control, body.has-overlay .signin { display: none !important; }
  .paper { box-shadow: none; padding: 0; max-width: none; margin: 0; font-size: 11px; line-height: 1.3; }
  .two2 { grid-template-columns: 1fr 1fr; }
  .plan { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: auto 1fr; margin: 10px 0; }
  .score { font-size: 60px; }
  .hero .head { font-size: 22px; }
  .scale2 { margin: 26px 12px 26px; }
  .sec { margin-top: 9px; }
  .sec h3 { font-size: 16px; margin-bottom: 4px; }
  .cmp { grid-template-columns: 150px 1fr 150px; font-size: 10px; padding: 1px 0; }
  .cmp .tr { height: 12px; grid-column: auto; grid-row: auto; }
  .cmp .y, .cmp .r { height: 6px; }
  .cmp .vd { display: inline; margin-left: 6px; font-size: 9px; }
  .cmphead { margin: 5px 0 0; font-size: 9px; }
  .good, .month { font-size: 10.5px; }
  .month { padding: 8px 10px; }
  .month p { margin: 0 0 5px; }
  .month .lbl { font-size: 9px; }
  .monday { margin-top: 9px; padding: 8px 12px; }
  .monday pre { font-size: 10px; margin-bottom: 0; }
  .pf { margin-top: 8px; padding-top: 6px; font-size: 10px; }
  .month, .monday, .cmp { break-inside: avoid; }
}
