/* IDForm website. Colors are the app's own palette (ui/Palette.kt). */
:root {
  --navy: #0B1B33;
  --card: #13294B;
  --line: #2A4775;
  --ink: #FFFFFF;
  --muted: #A3B3C9;
  --blue: #2F6FED;
  --blue-2: #6E9BF7;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-2); }
img, svg { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow > * { max-width: 720px; }
.center.narrow > * { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.center .btn { margin-top: 8px; }
.muted { color: var(--muted); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(26px, 3.6vw, 34px); margin-bottom: 28px; }
h3 { font-size: 18px; margin-bottom: 6px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgba(11, 27, 51, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 32px; height: 32px; }
.bar nav { display: flex; gap: 24px; margin-left: auto; }
.bar nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.bar nav a:hover { color: var(--ink); }
.lang { background: var(--navy); border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 6px 8px; font: 600 13px var(--mono); cursor: pointer; }
@media (max-width: 700px) { .bar nav { display: none; } .lang { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--blue); color: #fff; text-decoration: none; border-radius: 10px; padding: 13px 20px; font-weight: 600; border: 1px solid var(--blue); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn:hover { filter: brightness(1.08); }
.play svg { width: 22px; height: 22px; }
.play span { line-height: 1.15; }
.play small { display: block; font-size: 11px; font-weight: 500; opacity: .85; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.eyebrow { font: 600 14px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--blue-2); margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 32px; max-width: 34em; }
@media (max-width: 820px) { .hero { padding-top: 56px; } .hero-in { grid-template-columns: 1fr; gap: 40px; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.form-demo { font: 14px var(--mono); }
.form-demo .mrz { margin: 0 0 10px; color: var(--blue-2); letter-spacing: .08em; white-space: nowrap; overflow: hidden; opacity: .8; }
.form-demo div { display: grid; grid-template-columns: 120px 1fr; border-top: 1px solid var(--line); padding: 10px 0; }
.form-demo i { font-style: normal; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; align-self: center; }
.form-demo em { font-style: normal; overflow: hidden; white-space: nowrap; border-right: 2px solid var(--blue-2); width: 0; animation: type 1s steps(12) forwards; }
.form-demo div:nth-of-type(2) em { animation-delay: 1.1s; }
.form-demo div:nth-of-type(3) em { animation-delay: 2.2s; }
.form-demo div:nth-of-type(4) em { animation-delay: 3.3s; }
@keyframes type { to { width: 100%; border-right-color: transparent; } }
@media (prefers-reduced-motion: reduce) { .form-demo em { animation: none; width: auto; border: 0; } }

/* ---------- sections ---------- */
.sec { padding: 72px 0; border-top: 1px solid var(--line); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: s; }
.steps li { display: grid; gap: 6px; align-content: start; }
.steps li::before { counter-increment: s; content: "0" counter(s); font: 600 13px var(--mono); color: var(--blue-2); letter-spacing: .1em; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); }

.grid { display: grid; gap: 32px 40px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feat h3 { font-size: 20px; }
.feat p { margin: 0; color: var(--muted); }

.prices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 8px; }
.price { display: grid; gap: 6px; align-content: start; }
.price.best { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.price .amount { font: 700 28px var(--mono); }
.price .amount small { font: 500 14px system-ui, sans-serif; }
.tag { font: 600 10px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-2); border: 1px solid var(--blue); border-radius: 99px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.note { margin-top: 20px; color: var(--muted); font-size: 15px; }

details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font: 600 20px var(--mono); color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.foot a { color: var(--muted); }

/* ---------- text pages (privacy) ---------- */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.doc h1 { font-size: 34px; margin-bottom: 8px; }
.doc h2 { font-size: 21px; margin: 32px 0 8px; }
.doc p, .doc li { color: #D5DEEA; }
.doc ul { padding-left: 20px; }
.doc .date { color: var(--muted); font-size: 14px; }
.doc .summary { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 24px 0; }
