:root {
  --bg: #101114;
  --bg-raise: #181b22;
  --bg-track: #2a2e38;
  --ink: #f4f1ea;
  --ink-soft: #a7aab3;
  --line: rgba(244, 241, 234, 0.12);
  --amber: #f0a35a;
  --amber-deep: #c47a32;
  --amber-ink: #1a1208;
  --danger: #ffb4a8;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --sans: "Manrope", "Segoe UI", sans-serif;
  --display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --content: 1120px;
  --focus: 3px solid var(--amber);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(240, 163, 90, 0.16), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.5;
}

img { max-width: 100%; }

a { color: var(--amber); }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--content), calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(16, 17, 20, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.header-inner { padding: var(--space-4) 0; }

.header-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.01em;
}

.header-link,
.button {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--amber);
  border-radius: 999px;
  background: transparent;
  color: var(--amber);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.header-link { min-height: 40px; padding: 0 16px; }

.header-link::before,
.button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s ease;
}

.header-link:hover,
.button:hover { color: var(--amber-ink); }

.header-link:hover::before,
.button:hover::before { transform: scaleX(1); }

.button:disabled { opacity: 0.65; cursor: progress; }

h1, h2, h3, .brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.01em;
}

h1, h2, h3 { line-height: 0.98; margin: 0 0 var(--space-4); }

h1 { font-size: clamp(52px, 10vw, 92px); max-width: 11ch; }

h2 { font-size: clamp(40px, 5vw, 56px); }

h3 { font-size: 28px; margin-bottom: var(--space-2); }

.kicker {
  margin: 0 0 var(--space-3);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede, .section-lead { margin: 0; max-width: 42rem; color: var(--ink-soft); }

.section-lead { margin-bottom: var(--space-5); }

.hero {
  display: grid;
  gap: var(--space-6);
  padding: var(--space-7) 0 var(--space-8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 14px;
}

.ruler {
  margin: 0;
  padding: var(--space-5);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.ruler figcaption {
  margin-bottom: var(--space-4);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ruler dl { margin: 0; display: grid; gap: 14px; }

.ruler div {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  gap: var(--space-3);
  align-items: center;
  padding: 6px 8px;
  border-radius: 12px;
}

.ruler div:hover,
.ruler .is-picked { background: rgba(240, 163, 90, 0.08); }

.ruler dt, .ruler span {
  font-family: var(--mono);
  font-weight: 600;
}

.ruler dt { font-size: 18px; }

.ruler span {
  width: 6.5rem;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.ruler dd {
  position: relative;
  height: 18px;
  margin: 0;
  border-radius: 999px;
  background: var(--bg-track);
  overflow: hidden;
}

.ruler dd::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: var(--t);
  border-radius: inherit;
  background: rgba(240, 163, 90, 0.45);
}

.ruler .is-picked dd::before,
.ruler div:hover dd::before { background: var(--amber); }

.ruler dd::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 10px var(--amber);
  animation: sweep linear infinite;
  animation-duration: calc(18s / var(--rate));
}

.ruler div:hover dd::after { animation-duration: calc(10s / var(--rate)); }

@keyframes sweep {
  from { left: 0; }
  to { left: calc(100% - 2px); }
}

.look {
  padding: var(--space-7) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #14171d;
}

.shots {
  display: grid;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots figure { margin: 0; }

.frame {
  position: relative;
  aspect-ratio: 600 / 480;
  overflow: hidden;
  border-radius: 8px;
  background: #0c0e12;
  box-shadow: var(--shadow);
}

.frame img {
  position: absolute;
  top: 0;
  right: 0;
  width: 480%;
  max-width: none;
  height: auto;
}

.ring {
  position: absolute;
  left: 34%;
  top: 2%;
  width: 48%;
  height: 22%;
  overflow: visible;
  pointer-events: none;
}

.ring-menu { height: 78%; }

.ring rect {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.shots.is-drawn .ring rect {
  animation: trace 1.5s ease forwards;
}

.shots.is-drawn li:nth-child(2) .ring rect { animation-delay: 0.2s; }

.shots.is-drawn li:nth-child(3) .ring rect { animation-delay: 0.4s; }

@keyframes trace {
  to { stroke-dashoffset: 0; }
}

.shots figcaption {
  margin-top: var(--space-3);
  color: var(--ink-soft);
}

.shots figcaption strong {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
}

.scope, .order, .faq, .install { padding: var(--space-7) 0; }

.install h1 {
  max-width: 16ch;
  font-size: clamp(48px, 8vw, 76px);
}

.install-browser {
  margin: var(--space-7) 0 var(--space-4);
  font-size: clamp(32px, 4vw, 44px);
}

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--amber);
}

.facts, .steps { display: grid; gap: var(--space-4); }

.facts article {
  padding: var(--space-4);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.facts ul { margin: 0; }

.facts li + li { margin-top: var(--space-2); }

.steps {
  position: relative;
  list-style: none;
  padding: 0;
  counter-reset: step;
  gap: 0;
}

.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 20px;
  bottom: 48px;
  width: 2px;
  pointer-events: none;
}

.steps::before { background: var(--line); }

.steps::after {
  bottom: auto;
  height: calc(100% - 68px);
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.1s ease;
}

.steps.is-drawn::after { transform: scaleY(1); }

.steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 0 0 28px;
  background: none;
  border: 0;
}

.steps li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: var(--bg);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.steps h3 { grid-column: 2; margin: 4px 0 6px; }

.steps p { grid-column: 2; margin: 0; }

.steps p, .facts li { color: var(--ink-soft); }

.order-panel {
  display: grid;
  gap: var(--space-5);
  padding: var(--space-5);
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 28px;
}

.order-copy, .form-note, .status { margin: 0; color: var(--ink-soft); }

.price {
  margin: var(--space-4) 0 0;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

form { display: grid; gap: var(--space-3); }

.field { display: grid; gap: 8px; }

label { font-weight: 700; }

input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: #0c0e12;
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
}

input[type="email"]::placeholder { color: #6f7380; }

.field-error {
  margin: 0;
  color: var(--danger);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.field[data-invalid="true"] input[type="email"] {
  box-shadow: inset 0 0 0 2px #e39b90;
}

.consent {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  font-size: 16px;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--amber);
}

.consent-copy { min-width: 0; }

.consent-line { margin: 0; }

.consent[data-invalid="true"] {
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: 14px;
  background: rgba(141, 46, 46, 0.35);
}

.consent[data-invalid="true"] input {
  appearance: none;
  -webkit-appearance: none;
  border: 2px solid #f3b7ae;
  border-radius: 5px;
  background: #3a2422;
  box-shadow: 0 0 0 4px rgba(243, 183, 174, 0.28);
}

.consent label { font-weight: 600; }

.as-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--amber);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.status[data-state="error"] { color: var(--danger); }

.confirm {
  padding: var(--space-4);
  border-radius: 18px;
  background: #24190f;
  border: 1px solid rgba(240, 163, 90, 0.4);
  color: var(--ink);
}

.confirm h3 { font-size: 32px; }

.confirm p { margin: 0 0 var(--space-3); }

.confirm p:last-child { margin-bottom: 0; }

.email-chip {
  display: inline;
  padding: 2px 8px;
  border-radius: 8px;
  background: #0c0e12;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.faq details {
  padding: var(--space-4) 0;
  border-top: 1px solid var(--line);
}

.faq summary { cursor: pointer; font-weight: 700; }

.faq details p { margin: var(--space-3) 0 0; color: var(--ink-soft); }

.site-footer {
  margin-top: var(--space-6);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 14px;
}

.footer-inner { padding: var(--space-5) 0; }

.site-footer p { margin: 0; }

.site-footer p + p { margin-top: var(--space-2); }

dialog {
  width: min(640px, calc(100% - 32px));
  max-height: min(80vh, 720px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--ink);
  background: #16191f;
  box-shadow: var(--shadow);
}

dialog::backdrop { background: rgba(0, 0, 0, 0.72); }

.privacy-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-5) 0;
}

.privacy-head h2 { font-size: 32px; }

.privacy-close {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.privacy-body {
  padding: 0 var(--space-5) var(--space-5);
  overflow: auto;
  max-height: 60vh;
}

.privacy-body h3 { margin-top: var(--space-5); font-size: 24px; }

.privacy-body p, .privacy-body li { color: var(--ink-soft); }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; row-gap: 10px; }
  .brand { font-size: 20px; }
  .header-nav { width: 100%; justify-content: flex-start; }
  .header-nav a { white-space: nowrap; }
}

@media (min-width: 768px) {
  .hero, .facts, .order-panel {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }

  .order-panel { padding: var(--space-7); }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
    margin-top: 28px;
  }

  .steps li {
    display: block;
    padding: 56px 20px 20px;
    background: var(--bg-raise);
    border: 1px solid var(--line);
    border-radius: 20px;
  }

  .steps li::before {
    position: absolute;
    top: -20px;
    left: 20px;
  }

  .steps h3,
  .steps p { margin-left: 0; }

  .steps::before,
  .steps::after {
    top: 0;
    bottom: auto;
    left: 8%;
    width: 84%;
    height: 2px;
  }

  .steps::after {
    height: 2px;
    transform: scaleX(0);
    transform-origin: left center;
  }

  .steps.is-drawn::after { transform: scaleX(1); }

  .steps.steps-vertical {
    grid-template-columns: minmax(0, 40rem);
    margin-top: 0;
  }

  .steps.steps-vertical li {
    display: grid;
    padding: 0 0 28px;
    background: none;
    border: 0;
  }

  .steps.steps-vertical li::before {
    position: relative;
    top: auto;
    left: auto;
  }

  .steps.steps-vertical::before,
  .steps.steps-vertical::after {
    top: 20px;
    bottom: 48px;
    left: 19px;
    width: 2px;
    height: calc(100% - 68px);
  }

  .steps.steps-vertical::after {
    transform: scaleY(0);
    transform-origin: top center;
  }

  .steps.steps-vertical.is-drawn::after { transform: scaleY(1); }
}

@media (min-width: 1024px) {
  .wrap { width: min(var(--content), calc(100% - 80px)); }
  .shots { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .header-link::before,
  .button::before,
  .steps::after { transition: none; }

  .ruler dd::after { animation: none; left: var(--t); }

  .ring rect,
  .shots.is-drawn .ring rect {
    animation: none;
    stroke-dashoffset: 0;
  }
}
