:root {
  --bg: #0A0B0D;
  --bg-alt: #0E1013;
  --surface: #131519;
  --line: #24272D;
  --line-strong: #3A3E46;
  --text: #F2F3F5;
  --text-soft: #C9CDD3;
  --muted: #A3A9B3;
  --faint: #8A909A;
  --accent: #C8FF3D;
  --accent-hover: #E2FF8F;
  --danger: #FF8A7A;
  --radius: 16px;
  --display: "Unbounded", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; font-weight: 600; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 760px; }
.band { border-top: 1px solid var(--line); padding: 96px 0; }
.band--alt { background: var(--bg-alt); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }
.row--tight { gap: 20px; }
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.grid--types { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }

.kicker { font-family: var(--mono); font-size: 14px; color: var(--accent); }
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; color: var(--faint); }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.lead--light { color: var(--text-soft); }
.label { font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 14px; padding: 0; }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.head--center { text-align: center; align-items: center; margin: 0 auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 14px 26px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--bg); font: 600 16px/1.2 var(--body);
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--bg); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 15px; border-radius: 10px; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); font-weight: 500; }
.btn--ghost:hover { background: var(--surface); color: var(--text); }
.btn--block { width: 100%; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* header */
.topbar { border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(10, 11, 13, .88); backdrop-filter: blur(10px); }
.topbar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { font-family: var(--mono); font-size: 18px; font-weight: 500; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
@media (max-width: 720px) { .nav { order: 3; width: 100%; gap: 8px 20px; } }

/* hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero__side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; }
.timer__value { font-size: 22px; white-space: nowrap; }

.photo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #6E747E; font-size: 15px; text-align: center; }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--square { aspect-ratio: 1 / 1; flex: 1 1 320px; min-width: 0; }
.photo img, .case__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* challenge */
.cta-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 24px 28px; font-size: 19px; font-weight: 500; }

/* cases */
.case { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.case__img { position: relative; aspect-ratio: 16 / 10; background: #1A1D22; display: flex; align-items: center; justify-content: center; color: #6E747E; font-size: 15px; }
.case__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
.case h3 { font-size: 24px; }
.tag { font-family: var(--mono); font-size: 13px; color: var(--muted); }

/* calculator */
.calc { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.calc__main { flex: 999 1 520px; min-width: 0; }
.calc__total { flex: 1 1 300px; min-width: 0; border-color: var(--line-strong); gap: 20px; position: sticky; top: 96px; }
.total { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 44px); line-height: 1; color: var(--accent); }
.summary { margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.summary div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }

.opt {
  text-align: left; cursor: pointer; width: 100%;
  background: var(--surface); color: var(--text); font-family: inherit;
  border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .15s;
}
.opt:hover { border-color: var(--line-strong); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.opt--type { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.opt--type b { font-size: 18px; font-weight: 600; }
.opt--type small { font-size: 14px; color: var(--muted); }
.opt--type .mono { font-size: 14px; color: var(--accent); }
.opt--addon { padding: 14px 18px; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; border-radius: 12px; }
.opt--addon[aria-pressed="true"] { box-shadow: none; }
.opt__left { display: flex; align-items: center; gap: 14px; }
.box { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #555B65; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.box svg { opacity: 0; }
.opt--addon[aria-pressed="true"] .box { background: var(--accent); border-color: var(--accent); }
.opt--addon[aria-pressed="true"] .box svg { opacity: 1; }
.opt__price { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { border-top: 2px solid var(--line-strong); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.steps li .mono { color: var(--muted); }
.steps li.is-first { border-top-color: var(--accent); }
.steps li.is-first .mono { color: var(--accent); }
.steps b { font-size: 20px; font-weight: 600; }

/* about */
.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about > .stack { flex: 999 1 480px; min-width: 0; gap: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-family: var(--mono); }

/* form */
.form { display: flex; flex-direction: column; gap: 20px; padding: 32px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 15px; color: var(--muted); }
.form input[type="text"], .form textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 14px 16px; color: var(--text); font: 16px/1.4 var(--body); width: 100%;
}
.form textarea { resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: #6E747E; }
.form input[aria-invalid="true"] { border-color: var(--danger); }
.form .check { flex-direction: row; gap: 12px; align-items: flex-start; font-size: 14px; }
.form .check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.form__error { color: var(--danger); font-size: 15px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.done { border-color: var(--accent); padding: 40px 32px; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.done__title { font-family: var(--display); font-size: 28px; font-weight: 700; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 14px; color: var(--faint); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; padding-top: 40px; padding-bottom: 40px; }
.footer__name { color: var(--text-soft); }
.footer__right { max-width: 460px; }

/* challenge off */
.no-challenge [data-challenge] { display: none !important; }

@media (max-width: 600px) {
  .band { padding: 64px 0; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .card, .form { padding: 22px; }
  .calc__total { position: static; }
}

/* privacy page */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 24px; }
.doc h2 { font-family: var(--body); font-size: 20px; font-weight: 600; letter-spacing: 0; margin: 32px 0 12px; }
.doc p, .doc li { color: var(--text-soft); margin: 0 0 10px; }
