@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0b0d10;
  --surface: #14171c;
  --line: #262b33;
  --fg: #f2f4f7;
  --muted: #9aa3b2;
  --accent: #7cf29c;
  --on-accent: #0b0d10;
  --danger: #ff8a8a;
  --radius: 14px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body {
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px; line-height: 1.5; min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--fg); }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 20px 48px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }

h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.02; letter-spacing: -0.03em; margin: 40px 0 14px; font-weight: 800; }
h2 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
p.lead { color: var(--muted); font-size: 1.1rem; max-width: 34ch; margin: 0 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 700;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s cubic-bezier(.16,1,.3,1), opacity .15s;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.link { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.how { margin-top: 56px; display: grid; gap: 22px; }
.how div { border-top: 1px solid var(--line); padding-top: 16px; }
.how b { display: block; margin-bottom: 4px; }

.step { display: none; }
.step.on { display: block; animation: rise .35s cubic-bezier(.16,1,.3,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .step.on { animation: none; } .btn { transition: none; } }

.progress { height: 3px; background: var(--accent); width: 0; transition: width .3s; border-radius: 3px; margin: 8px 0 32px; }
label.field { display: block; font-weight: 700; font-size: 1.25rem; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .95rem; margin: 0 0 18px; }
.inputrow { display: flex; gap: 10px; align-items: stretch; }
input[type=number], input[type=email], input[type=text] {
  flex: 1; min-width: 0; height: 58px; padding: 0 16px; font: inherit; font-size: 1.4rem; font-weight: 700;
  color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.unit { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.unit button { background: none; border: 0; color: var(--muted); font: inherit; font-weight: 700; padding: 0 14px; cursor: pointer; }
.unit button.on { background: var(--surface); color: var(--fg); }
.err { color: var(--danger); min-height: 1.4em; font-size: .95rem; margin: 8px 0; }
.nav { display: flex; gap: 12px; margin-top: 18px; }
.nav .btn { flex: 1; }
.illustration { width: 100%; aspect-ratio: 4/3; border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; object-fit: cover; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; margin: 8px 0 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
.tabs button { display: grid; gap: 1px; padding: 9px 10px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.tabs button span { font-size: .75rem; font-weight: 500; }
.tabs button[aria-selected=true] { background: var(--accent); color: var(--on-accent); }

.photo-pick { display: grid; place-items: center; position: relative; overflow: hidden; aspect-ratio: 3/4; max-height: 36vh; margin: 0 auto 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); color: var(--muted); font-weight: 700; cursor: pointer; }
.photo-pick img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-pick span { position: relative; padding: 6px 12px; border-radius: 999px; background: rgba(11,13,16,.7); }
.photo-pick.scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: var(--accent); box-shadow: 0 0 18px var(--accent); animation: scan 1.4s ease-in-out infinite alternate; }
@keyframes scan { from { top: 4%; } to { top: 96%; } }
@media (prefers-reduced-motion: reduce) { .photo-pick.scanning::after { animation: none; top: 50%; } }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: .75rem; color: var(--muted); }

.stat { display: grid; gap: 4px; padding: 22px 0; border-top: 1px solid var(--line); }
.stat .big { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stat .big small { font-size: 1rem; color: var(--muted); font-weight: 600; margin-left: 6px; }
.blur { filter: blur(10px); user-select: none; }
.tier { display: inline-block; background: var(--accent); color: var(--on-accent); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .9rem; width: fit-content; }

.plans { display: grid; gap: 10px; margin: 22px 0; }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.plan.on { border-color: var(--accent); }
.plan input { accent-color: var(--accent); width: 20px; height: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: .95rem; color: var(--muted); }
.check input { accent-color: var(--accent); width: 20px; height: 20px; flex: none; margin-top: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 18px 0; }
.card ul { margin: 8px 0 0; padding-left: 20px; }
.chart { width: 100%; height: auto; display: block; }
.row { display: flex; justify-content: space-between; gap: 12px; }
footer { margin-top: 56px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
footer a { color: var(--muted); }
.legal h1 { font-size: 2rem; margin-top: 24px; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.legal p, .legal li { color: var(--muted); }
