:root {
  color-scheme: dark;
  --ink: #0b0c0f;
  --panel: #14161b;
  --panel-2: #1a1d23;
  --soft: #f2f1ee;
  --paper: #faf9f6;
  --line: #2a2e36;
  --muted: #9da3ad;
  --muted-dark: #60646c;
  --red: #c6242d;
  --red-bright: #e5343d;
  --red-deep: #7a1319;
  --green: #39b876;
  --shadow: 0 24px 80px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
[data-device-only][hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.topbar {
  min-height: 82px;
  padding: 18px clamp(20px, 5vw, 74px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: relative;
  z-index: 3;
}
.brand { color: #fff; text-decoration: none; display: flex; align-items: center; }
.brand img { width: clamp(205px, 22vw, 275px); height: auto; display: block; }
.private-badge {
  border: 1px solid rgba(255,255,255,.15); color: #c9ccd1; border-radius: 999px;
  padding: 8px 12px; font-size: 12px; display: inline-flex; align-items: center; gap: 7px;
}
.private-badge span { color: var(--green); font-size: 9px; }

.hero {
  min-height: 680px;
  padding: 86px clamp(20px, 7vw, 110px) 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, .75fr);
  align-items: center;
  gap: clamp(52px, 9vw, 140px);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(11,12,15,.97) 0 42%, rgba(11,12,15,.80) 70%, rgba(11,12,15,.92) 100%),
    radial-gradient(circle at 76% 42%, rgba(198,36,45,.24), transparent 35%),
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 1px, transparent 1px 14px);
}
.hero::before {
  content: ""; position: absolute; width: 440px; height: 140%; right: 8%; top: -20%;
  background: linear-gradient(180deg, transparent, rgba(198,36,45,.13), transparent);
  transform: skewX(-18deg); filter: blur(1px); pointer-events: none;
}
.hero::after {
  content: "RTD"; position: absolute; right: -25px; bottom: -98px;
  font-size: clamp(190px, 28vw, 430px); font-weight: 950; letter-spacing: -.09em;
  color: rgba(255,255,255,.025); pointer-events: none;
}
.hero-copy, .readiness-card { position: relative; z-index: 1; }
.eyebrow { color: var(--red-bright); letter-spacing: .2em; font-size: 12px; font-weight: 850; margin: 0 0 20px; }
.hero h1 { font-size: clamp(52px, 7.2vw, 104px); line-height: .88; letter-spacing: -.055em; margin: 0; font-weight: 900; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.44); }
.hero-intro { color: #bdc1c9; max-width: 600px; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.65; margin: 30px 0 22px; }
.device-picker { max-width: 600px; margin: 28px 0 0; }
.device-picker > strong { display: block; margin-bottom: 12px; font-size: 14px; }
.device-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.device-option { min-height: 76px; padding: 14px 16px; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; background: rgba(20,22,27,.82); color: white; text-align: left; transition: .2s ease; }
.device-option:hover { border-color: rgba(229,52,61,.7); transform: translateY(-1px); }
.device-option.selected { border-color: var(--red-bright); background: rgba(198,36,45,.14); box-shadow: inset 0 0 0 1px rgba(229,52,61,.25); }
.device-option span { display: block; font-size: 18px; font-weight: 900; }
.device-option small { display: block; margin-top: 4px; color: #9ea4ae; font-size: 12px; }
.device-option:focus-visible { outline: 3px solid rgba(229,52,61,.4); outline-offset: 3px; }
.privacy-note { display: flex; gap: 10px; color: #858b95; max-width: 570px; font-size: 13px; line-height: 1.5; }
.privacy-note svg { width: 18px; min-width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.primary-btn, .secondary-btn {
  border: 0; border-radius: 4px; padding: 15px 19px; font-weight: 800; transition: .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}
.primary-btn { background: var(--red); color: white; box-shadow: 0 12px 32px rgba(198,36,45,.20); }
.primary-btn:hover { background: var(--red-bright); transform: translateY(-1px); }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.primary-btn:focus-visible, .secondary-btn:focus-visible, .step-tab:focus-visible, .summary-tab:focus-visible, #reset-btn:focus-visible { outline: 3px solid rgba(229,52,61,.4); outline-offset: 3px; }
.hero .primary-btn { margin-top: 34px; padding: 17px 22px; }
.primary-btn.compact { padding: 13px 17px; }
.secondary-btn { background: #e9e8e4; color: #1c1d20; }
.secondary-btn:hover { background: white; }
.secondary-btn:disabled { opacity: .4; cursor: not-allowed; }

.readiness-card {
  background: linear-gradient(145deg, rgba(30,33,40,.93), rgba(15,16,20,.96));
  border: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow); border-radius: 10px;
  min-height: 450px; padding: 43px; display: flex; flex-direction: column; align-items: center; text-align: center;
}
.readiness-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, transparent, var(--red), transparent); }
.gauge {
  --progress: 0deg; width: 174px; aspect-ratio: 1; border-radius: 50%; padding: 9px;
  background: conic-gradient(var(--red) var(--progress), #30343c 0);
  position: relative; margin-bottom: 26px;
}
.gauge::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #17191e; }
.gauge > div { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; }
.gauge strong { font-size: 42px; letter-spacing: -.05em; }
.gauge span { font-size: 9px; letter-spacing: .25em; color: var(--muted); font-weight: 800; }
.status-kicker { font-size: 10px; color: var(--red-bright); letter-spacing: .2em; font-weight: 900; margin: 0 0 9px; }
.status-copy h2 { font-size: 23px; margin: 0 0 9px; }
.status-copy > p:last-child { color: #969ca6; line-height: 1.55; font-size: 13px; margin: 0; max-width: 300px; }
.mini-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); margin-top: auto; padding-top: 24px; }
.mini-stats div:first-child { border-right: 1px solid var(--line); }
.mini-stats strong { display: block; font-size: 22px; }
.mini-stats span { color: #858b95; font-size: 11px; }

.guide { background: var(--paper); color: #17181b; padding: 98px clamp(20px, 7vw, 110px) 112px; }
.section-heading { max-width: 710px; margin-bottom: 46px; }
.section-heading h2 { font-size: clamp(37px, 5vw, 62px); line-height: 1; letter-spacing: -.05em; margin: 0 0 17px; }
.section-heading > p:last-child { color: var(--muted-dark); font-size: 16px; line-height: 1.6; margin: 0; }
.step-nav { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid #d7d5cf; margin-bottom: 35px; overflow-x: auto; }
.step-tab {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 0 12px 18px;
  text-align: left; color: #82858b; min-width: 135px;
}
.step-tab span { display: block; font-size: 11px; font-weight: 900; letter-spacing: .13em; margin-bottom: 7px; }
.step-tab em { font-style: normal; font-size: 13px; font-weight: 750; }
.step-tab.active { color: var(--red); border-color: var(--red); }
.step-tab.done span::after { content: " ✓"; color: var(--green); }
.step-shell { background: white; border: 1px solid #dddcd8; box-shadow: 0 24px 70px rgba(25,27,32,.09); }
.step-panel { display: none; grid-template-columns: .85fr 1.15fr; min-height: 560px; }
.step-panel.active { display: grid; }
.step-panel[hidden] { display: none !important; }
.step-copy { padding: clamp(35px, 5vw, 68px); background: #17191e; color: #fff; position: relative; overflow: hidden; }
.step-copy::after { content: ""; position: absolute; width: 180px; height: 180px; border: 28px solid rgba(198,36,45,.06); border-radius: 50%; bottom: -85px; right: -65px; }
.step-number { color: var(--red-bright); font-weight: 900; letter-spacing: .19em; font-size: 11px; }
.step-copy h3 { font-size: clamp(31px, 3.5vw, 50px); letter-spacing: -.045em; line-height: 1; margin: 22px 0; }
.step-copy > p:not(.step-number) { color: #adb2ba; line-height: 1.68; }
.tip, .warning, .danger { position: relative; z-index: 1; margin-top: 34px; border-left: 3px solid var(--red); padding: 4px 0 4px 17px; display: grid; gap: 7px; }
.tip strong, .warning strong, .danger strong { color: var(--red-bright); font-size: 10px; letter-spacing: .18em; }
.tip span, .warning span, .danger span { color: #c3c6cc; line-height: 1.55; font-size: 13px; }
.danger { border-color: #ffb020; }
.danger strong { color: #ffbd49; }
.tip code { color: white; font-size: 12px; }
.text-link { color: #fff; display: inline-flex; gap: 9px; margin-top: 25px; font-size: 13px; font-weight: 750; text-decoration-color: var(--red); text-underline-offset: 4px; }
.checklist { padding: clamp(25px, 4vw, 58px); display: grid; align-content: center; gap: 12px; }
.check-item { display: grid; gap: 8px; }
.check-row { border: 1px solid #e2e0db; border-radius: 5px; padding: 17px; display: grid; grid-template-columns: 25px 38px minmax(0, 1fr); gap: 13px; align-items: start; cursor: pointer; transition: .2s; }
.check-row:hover { border-color: #bbb9b3; transform: translateX(2px); }
.check-row input { position: absolute; opacity: 0; pointer-events: none; }
.box { width: 23px; height: 23px; border: 2px solid #b9b8b3; border-radius: 3px; position: relative; margin-top: 1px; }
.item-number { min-width: 38px; height: 25px; display: inline-grid; place-items: center; border: 1px solid #ead5d7; border-radius: 3px; background: #f8eeee; color: var(--red-deep); font-size: 12px; font-weight: 900; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.check-row input:checked + .box { background: var(--red); border-color: var(--red); }
.check-row input:checked + .box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check-row:has(input:checked) { background: #fff9f8; border-color: rgba(198,36,45,.32); }
.check-row strong { display: block; font-size: 14px; }
.check-row small { display: block; color: #71747a; font-size: 12px; line-height: 1.45; margin-top: 4px; }
.sheet-download { margin-left: 89px; padding: 11px 13px; border: 1px solid #2e323a; border-left: 3px solid var(--red); border-radius: 4px; background: #17191e; color: #fff; display: flex; align-items: center; gap: 11px; text-decoration: none; transition: .2s; }
.sheet-download:hover { border-color: #4a4f59; border-left-color: var(--red-bright); transform: translateY(-1px); }
.sheet-download:focus-visible { outline: 3px solid rgba(198,36,45,.28); outline-offset: 3px; }
.sheet-download-icon { width: 27px; height: 27px; border: 1px solid #4a4f59; border-radius: 3px; display: inline-grid; place-items: center; color: var(--red-bright); font-weight: 900; flex: 0 0 auto; }
.sheet-download strong { display: block; font-size: 13px; }
.sheet-download small { display: block; margin-top: 2px; color: #9399a3; font-size: 12px; }
.step-controls { min-height: 88px; border-top: 1px solid #e4e2dd; padding: 18px 24px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.step-controls > button { width: 154px; }
.step-controls > button:last-child { justify-self: end; }
.step-controls p { margin: 0; text-align: center; font-weight: 800; font-size: 13px; }
.step-controls small { display: block; color: #8a8d92; margin-top: 3px; font-weight: 500; font-size: 11px; }

.final { background: #121419; padding: 100px clamp(20px, 7vw, 110px) 56px; position: relative; }
.final::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(198,36,45,.7), transparent); }
.section-heading.light > p:last-child { color: #9298a2; }
.summary-grid { display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line); background: #17191e; min-height: 390px; }
.summary-score { padding: clamp(35px, 5vw, 65px); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.summary-score > span { color: var(--red-bright); font-size: clamp(58px, 7vw, 90px); font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.summary-score h3 { margin: 20px 0 10px; font-size: 23px; }
.summary-score p { margin: 0; color: #9298a2; line-height: 1.6; font-size: 13px; }
.progress-track { height: 5px; background: #2a2e35; margin-top: 30px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--red); width: 0; transition: width .3s; }
.summary-score small { color: #777d87; font-size: 10px; margin-top: 9px; letter-spacing: .07em; text-transform: uppercase; }
.summary-list-wrap { padding: clamp(27px, 4vw, 52px); }
.summary-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.summary-tab { background: none; border: 0; color: #777d87; padding: 0 0 14px; margin-right: 20px; font-weight: 800; border-bottom: 2px solid transparent; }
.summary-tab span { font-size: 10px; padding: 3px 7px; background: #2a2e35; border-radius: 999px; margin-left: 4px; }
.summary-tab.active { color: white; border-color: var(--red); }
.summary-list { list-style: none; padding: 20px 0 0; margin: 0; max-height: 290px; overflow: auto; }
.summary-list li { padding: 11px 4px; border-bottom: 1px solid rgba(255,255,255,.055); display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: #bcc0c7; font-size: 13px; line-height: 1.4; }
.summary-list li::before { content: "○"; color: var(--red-bright); }
.summary-list.complete li::before { content: "✓"; color: var(--green); font-weight: 900; }
.summary-list .empty { display: block; color: #8a9099; padding: 45px 0; text-align: center; border: 0; }
.summary-list .empty::before { content: none; }
.action-bar { background: var(--soft); color: #1c1d20; padding: 23px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.action-bar > div:first-child { display: grid; gap: 4px; }
.action-bar span { color: #696d73; font-size: 11px; }
.action-buttons { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.light-button { background: white; border: 1px solid #d5d3ce; padding: 12px 15px; }
.mistakes { margin-top: 28px; border: 1px solid var(--line); background: #17191e; }
.mistakes > h3 { margin: 0; padding: 21px 24px; font-size: 16px; font-weight: 800; }
.mistakes > div { border-top: 1px solid var(--line); padding: 19px 24px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; color: #9da3ad; font-size: 13px; line-height: 1.55; }
.mistakes strong { color: #fff; }
.reset-row { display: flex; align-items: center; justify-content: space-between; margin-top: 35px; gap: 20px; color: #737984; font-size: 12px; }
#reset-btn { background: none; color: #aeb3bc; border: 0; text-decoration: underline; text-underline-offset: 4px; }

footer { padding: 28px clamp(20px, 5vw, 74px); background: #090a0c; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; border-top: 1px solid #202329; color: #747a84; font-size: 11px; }
footer > div { display: grid; }
.footer-brand img { width: 185px; height: auto; justify-self: start; }
footer span { color: var(--red-bright); margin-top: 5px; }
footer p { text-align: center; }
footer a { color: #adb2bb; }
.site-version { justify-self: end; margin: 0; padding: 6px 9px; border: 1px solid #2b2e34; border-radius: 3px; color: #858b95; font-weight: 800; letter-spacing: .08em; }
.toast { position: fixed; z-index: 9; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: #fff; color: #17181b; padding: 12px 18px; border-radius: 4px; box-shadow: var(--shadow); font-weight: 800; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 66px; }
  .hero-copy { max-width: 700px; }
  .readiness-card { min-height: 390px; }
  .step-panel { grid-template-columns: 1fr; }
  .step-copy { min-height: auto; }
  .checklist { min-height: 480px; }
  .summary-grid { grid-template-columns: 1fr; }
  .summary-score { border-right: 0; border-bottom: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; text-align: center; }
  .site-version { justify-self: center; }
}

@media (max-width: 620px) {
  .topbar { padding: 14px 17px; }
  .brand img { width: 205px; }
  .private-badge { font-size: 0; padding: 9px; }
  .private-badge span { font-size: 10px; }
  .hero { padding: 58px 20px 72px; min-height: auto; gap: 52px; }
  .hero h1 { font-size: clamp(47px, 15vw, 70px); }
  .hero-intro { font-size: 16px; }
  .device-options { grid-template-columns: 1fr; }
  .readiness-card { padding: 35px 24px; }
  .guide, .final { padding-inline: 16px; padding-block: 72px; }
  .section-heading { margin-inline: 4px; }
  .section-heading h2 { font-size: 41px; }
  .step-nav { margin-right: -16px; padding-right: 16px; }
  .step-copy, .checklist { padding: 30px 23px; }
  .step-copy h3 { font-size: 37px; }
  .checklist { min-height: auto; }
  .check-row { padding: 15px 13px; }
  .sheet-download { margin-left: 0; }
  .step-controls { grid-template-columns: 1fr 1fr; gap: 12px; padding: 15px; }
  .step-controls p { grid-column: 1 / -1; grid-row: 1; }
  .step-controls button { width: 100%; }
  .summary-score, .summary-list-wrap { padding: 30px 23px; }
  .summary-tabs { overflow-x: auto; }
  .summary-tab { white-space: nowrap; }
  .action-bar { align-items: stretch; flex-direction: column; }
  .action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .action-buttons .primary-btn { grid-column: 1 / -1; }
  .mistakes > div { grid-template-columns: 1fr; }
  .reset-row { align-items: flex-start; }
  .footer-brand img { justify-self: center; }
}

@media print {
  :root { color-scheme: light; }
  body { background: white; color: black; }
  .topbar, .hero, .guide, footer, .action-buttons, .mistakes, .reset-row, .summary-tabs { display: none !important; }
  .final { background: white; color: black; padding: 24px; }
  .section-heading.light > p:last-child { color: #444; }
  .summary-grid { display: block; border-color: #bbb; background: white; }
  .summary-score { border: 0; padding: 20px; }
  .summary-score > span { color: #a71921; }
  .summary-score p, .summary-score small { color: #444; }
  .summary-list-wrap { padding: 20px; }
  .summary-list { max-height: none; }
  .summary-list li { color: #222; border-color: #ddd; }
  .summary-list .empty { display: none; }
  .action-bar { background: white; border: 1px solid #bbb; }
  .progress-track { background: #ddd; }
}

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