/* FotoID.me marketing site — shared styles
   Brand: blue → violet gradient on deep navy (matches the app and FotoID.Demo.Web). */

:root {
  --navy-950: #070d1a;
  --navy-900: #0b1426;
  --navy-800: #111d36;
  --navy-700: #1a2a4a;
  --ink: #142033;
  --ink-2: #33415a;
  --muted: #5f6b7d;
  --line: #e3e8ef;
  --line-dark: rgba(255, 255, 255, .1);
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --brand-a: #4f8ef7;
  --brand-b: #7c3aed;
  --brand-grad: linear-gradient(135deg, var(--brand-a), var(--brand-b));
  --ok: #12805c;
  --ok-bg: #e7f6ef;
  --ok-bright: #3fb950;
  --warn: #9a6700;
  --warn-bg: #fff6dc;
  --bad: #b42318;
  --bad-bg: #fdecea;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px rgba(16, 24, 40, .08);
  --shadow-lg: 0 30px 80px rgba(7, 13, 26, .35);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--brand-a); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 3px solid rgba(79, 142, 247, .55); outline-offset: 2px; border-radius: 6px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ── Typography ─────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: inherit; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-b);
}
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

section { padding: 96px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--navy-900); color: #e6edf6; }
.section-dark .lead, .section-dark p { color: #a9b6c9; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 650; font-size: 1rem; line-height: 1.2;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease, border-color .2s;
  text-decoration: none !important; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px rgba(79, 142, 247, .35); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(124, 58, 237, .4); }
.btn-dark { background: var(--navy-900); color: #fff; }
.btn-dark:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-ghost-light { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .18); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { padding: 8px 14px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-fotoid { background: var(--brand-grad); color: #fff; box-shadow: 0 6px 18px rgba(79, 142, 247, .35); }
.fotoid-mark {
  width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center;
  background: rgba(255, 255, 255, .22); font-size: 12px; font-weight: 800; letter-spacing: -.5px;
}

/* ── Header / nav ───────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 13, 26, .78); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand-logo { width: 34px; height: 34px; flex: none; }
.brand .dot { color: var(--brand-a); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: #c3cedd; font-weight: 550; font-size: .95rem; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-cta .btn-ghost-light { display: none; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    position: absolute; top: 68px; left: 0; right: 0; padding: 12px 16px 20px;
    background: var(--navy-950); border-bottom: 1px solid var(--line-dark);
  }
  .site-header.open .nav-links a { display: block; padding: 10px 0; font-size: 1.05rem; }
}
@media (max-width: 420px) { .nav-cta .btn-primary { display: none; } }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 10%, rgba(124, 58, 237, .35), transparent 60%),
              radial-gradient(800px 500px at 0% 90%, rgba(79, 142, 247, .28), transparent 60%),
              var(--navy-950);
  color: #fff; padding: 88px 0 110px;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lead { color: #b5c2d6; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12);
  color: #d5deeb; font-size: .85rem; font-weight: 550; margin-bottom: 24px;
}
.pill b { background: var(--brand-grad); color: #fff; padding: 2px 9px; border-radius: 999px; font-size: .72rem; letter-spacing: .04em; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; color: #93a3ba; font-size: .9rem; list-style: none; padding: 0; margin: 0; }
.hero-trust li { display: inline-flex; gap: 8px; align-items: center; }
.hero-trust svg { width: 18px; height: 18px; color: var(--ok-bright); flex: none; }
@media (max-width: 960px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* Hero visual: phone + floating cards */
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 560px; }
.float-card {
  position: absolute; z-index: 3; background: rgba(17, 29, 54, .92); border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: 12px 14px; color: #e6edf6; font-size: .82rem; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px); animation: bob 6s ease-in-out infinite;
}
.float-card .k { color: #8b9bb3; font-family: var(--mono); font-size: .74rem; }
.float-card .v { font-family: var(--mono); color: #c9d4e3; }
.float-card.fc-1 { top: 40px; left: -10px; }
.float-card.fc-2 { bottom: 70px; right: -14px; animation-delay: -3s; }
.float-card .row { display: flex; gap: 8px; align-items: center; }
.float-card .ok { color: var(--ok-bright); font-weight: 700; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 520px) { .float-card { display: none; } .hero-visual { min-height: 0; } }

/* ── Phone frame (shared by hero + demo) ───────────── */
.phone {
  position: relative; width: 290px; height: 590px; flex: none;
  background: #fff; color: var(--ink); border-radius: 46px; border: 10px solid #0c1018;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2a3140;
  overflow: hidden; display: flex; flex-direction: column; font-size: 14px;
}
.phone-notch { position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 96px; height: 26px; background: #0c1018; border-radius: 20px; z-index: 6; }
.phone-status { display: flex; justify-content: space-between; padding: 11px 24px 4px; font-size: 12px; font-weight: 650; flex: none; }
.phone-screen { flex: 1; overflow-y: auto; padding: 14px 16px; position: relative; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.phone-home { width: 110px; height: 4px; border-radius: 3px; background: #0c1018; margin: 6px auto 8px; flex: none; }

.app-logo {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin: 0 auto 10px;
  background: var(--brand-grad); color: #fff; font-weight: 800; font-size: 20px; box-shadow: 0 8px 20px rgba(124, 58, 237, .3);
}
.id-card {
  border-radius: 16px; padding: 14px; color: #fff; margin-bottom: 12px;
  background: linear-gradient(135deg, #1f3b73, #4f2c9b); box-shadow: 0 10px 24px rgba(31, 59, 115, .3);
}
.id-card-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; opacity: .92; font-weight: 650; }
.id-level { font-size: 10px; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.2); }
.id-name { font-size: 18px; font-weight: 750; margin-top: 22px; }
.id-sub { font-size: 11px; opacity: .8; }

.req-head { text-align: center; padding: 4px 0 10px; }
.req-logo { width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 8px; display: grid; place-items: center; background: #f5b400; color: #0f2a4a; font-weight: 900; font-size: 22px; }
.req-title { font-weight: 750; font-size: 15px; }
.req-sub { color: var(--muted); font-size: 12px; }
.field-list { list-style: none; margin: 8px 0 12px; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.field-list li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); }
.field-list li:first-child { border-top: 0; }
.field-list input { width: 17px; height: 17px; accent-color: var(--brand-b); flex: none; }
.field-list .fl { font-size: 10.5px; color: var(--muted); line-height: 1.2; }
.field-list .fv { font-size: 13px; font-weight: 600; line-height: 1.3; }
.field-list li.off .fv { color: #9aa5b5; text-decoration: line-through; }
.phone-note { font-size: 11px; color: var(--muted); background: #f5f7fb; border-radius: 8px; padding: 7px 9px; display: flex; gap: 6px; }

/* ── Cards / grids ──────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #d6deea; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon-badge {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(79,142,247,.14), rgba(124,58,237,.14)); color: var(--brand-b);
}
.icon-badge svg { width: 24px; height: 24px; }
.section-dark .card { background: var(--navy-800); border-color: var(--line-dark); }
.section-dark .card h3 { color: #fff; }
.section-dark .card p { color: #a9b6c9; }
.section-dark .icon-badge { background: rgba(124, 58, 237, .18); color: #b9a2ff; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; margin-bottom: 16px;
  background: var(--brand-grad); color: #fff; font-weight: 800;
}
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Architecture diagram */
.arch { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 0; align-items: stretch; position: relative; }
.arch-node {
  background: var(--navy-800); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 22px; position: relative; z-index: 1;
}
.arch-node h4 { color: #fff; font-size: 1rem; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.arch-node .tag { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8b9bb3; }
.arch-node ul { list-style: none; padding: 0; margin: 14px 0 0; font-size: .88rem; color: #b5c2d6; }
.arch-node li { display: flex; gap: 8px; padding: 4px 0; }
.arch-node li .y { color: var(--ok-bright); }
.arch-node li .n { color: #f0857c; }
.arch-node.center { border-color: rgba(124, 58, 237, .5); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); margin: 0 28px; }
.arch-flow { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.arch-flow .msg { font-family: var(--mono); font-size: .8rem; background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.14); color: #c9d4e3; border-radius: 10px; padding: 10px 12px; }
.arch-flow .msg b { color: #b9a2ff; font-weight: 600; }
.lock-line { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; background: linear-gradient(90deg, var(--brand-a), var(--brand-b)); opacity: .5; z-index: 0; }
@media (max-width: 900px) {
  .arch { grid-template-columns: 1fr; gap: 16px; }
  .arch-node.center { margin: 0; }
  .lock-line { display: none; }
}

/* Use cases */
.usecase { display: flex; flex-direction: column; gap: 10px; }
.usecase .fields { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.chip { font-family: var(--mono); font-size: .74rem; padding: 3px 8px; border-radius: 6px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.chip.live { background: #f1ebff; border-color: #e0d3ff; color: var(--brand-b); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 28px 24px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; }
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.stat .lbl { color: #93a3ba; font-size: .9rem; margin-top: 6px; }
.stat .num { white-space: nowrap; }
@media (max-width: 480px) { .stat { padding: 22px 16px; } .stat .num { font-size: 1.5rem; } }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line-dark); } }

/* ── Code blocks + tabs ─────────────────────────────── */
.code-card { background: #0d1117; border: 1px solid #20242d; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.code-tabs { display: flex; gap: 2px; padding: 8px 8px 0; background: #161b27; border-bottom: 1px solid #20242d; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tab {
  background: none; border: 0; color: #8b949e; padding: 9px 14px; font-size: .85rem; font-weight: 600;
  border-radius: 8px 8px 0 0; white-space: nowrap;
}
.code-tab:hover { color: #e6edf3; }
.code-tab[aria-selected="true"] { color: #fff; background: #0d1117; box-shadow: inset 0 2px 0 var(--brand-a); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 14px; background: #161b27; border-bottom: 1px solid #20242d; color: #8b949e; font-size: .8rem; font-family: var(--mono); }
.code-body { position: relative; }
.code-body pre { margin: 0; padding: 18px 20px; overflow-x: auto; font-size: .83rem; line-height: 1.65; color: #e6edf3; tab-size: 2; }
.copy-btn {
  position: absolute; top: 10px; right: 10px; background: #232b3a; color: #c9d4e3; border: 1px solid #2f3a4e;
  font-size: .75rem; padding: 4px 10px; border-radius: 7px; opacity: .85;
}
.copy-btn:hover { opacity: 1; color: #fff; }
.tok-k { color: #ff7b72; } .tok-s { color: #a5d6ff; } .tok-c { color: #8b949e; font-style: italic; }
.tok-f { color: #d2a8ff; } .tok-n { color: #79c0ff; } .tok-p { color: #7ee787; }
:not(pre) > code { font-size: .86em; background: var(--bg-soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--ink-2); }
.section-dark :not(pre) > code { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #d5deeb; }

/* ── Interactive demo ───────────────────────────────── */
.demo-shell { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .demo-shell { grid-template-columns: 1fr; justify-items: center; } .demo-shell > * { width: 100%; } .demo-phone-wrap { display: flex; justify-content: center; } }
.browser { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #eef1f6; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: #d4d9e2; display: block; }
.browser-dots i:nth-child(1) { background: #ff6058; } .browser-dots i:nth-child(2) { background: #ffbd2e; } .browser-dots i:nth-child(3) { background: #28c940; }
.browser-url { flex: 1; min-width: 0; background: #fff; border-radius: 8px; padding: 5px 12px; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; gap: 6px; align-items: center; }
.browser-url svg { width: 12px; height: 12px; color: var(--ok); flex: none; }
.acme-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0f2a4a; color: #fff; padding: 14px 22px; }
.acme-brand { display: flex; gap: 10px; align-items: center; font-weight: 750; }
.acme-logo { width: 34px; height: 34px; border-radius: 9px; background: #f5b400; color: #0f2a4a; display: grid; place-items: center; font-weight: 900; font-size: 19px; }
.acme-head small { opacity: .75; font-weight: 500; font-size: .78rem; }
.acme-body { padding: 26px 26px 28px; min-height: 520px; }
@media (max-width: 560px) { .acme-body { padding: 20px 16px; } }
.acme-body h3 { font-size: 1.45rem; margin-bottom: 6px; }
.acme-body .sub { color: var(--muted); margin-bottom: 18px; font-size: .96rem; }

.scenarios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
@media (max-width: 560px) { .scenarios { grid-template-columns: 1fr; } }
.scenario { text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; color: var(--ink); }
.scenario:hover { border-color: #c5d3ea; }
.scenario[aria-pressed="true"] { border-color: var(--brand-a); box-shadow: 0 0 0 3px rgba(79,142,247,.15); }
.scenario b { display: block; font-size: .95rem; }
.scenario span { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; margin-top: 2px; }

.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: 6px; }
.form-row .hint { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.input { width: 100%; padding: 11px 14px; border: 1px solid #cfd7e3; border-radius: 10px; background: #fff; color: var(--ink); }
.input:focus { outline: none; border-color: var(--brand-a); box-shadow: 0 0 0 3px rgba(79,142,247,.18); }
.req-summary { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 18px; }

.wait-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
@media (max-width: 640px) { .wait-grid { grid-template-columns: 1fr; } }
.timeline { list-style: none; padding: 0; margin: 14px 0 18px; }
.timeline li { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #94a0b1; font-weight: 550; font-size: .94rem; }
.timeline .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #c8d1dd; flex: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done .dot { border-color: var(--ok); background: var(--ok); box-shadow: inset 0 0 0 2px #fff; }
.timeline li.active { color: var(--ink); }
.timeline li.active .dot { border-color: var(--brand-a); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-panel { text-align: center; background: #fafbfd; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.qr-panel .qr { background: #fff; border-radius: 10px; padding: 8px; display: inline-block; border: 1px solid var(--line); }
.qr-panel svg { width: 168px; height: 168px; display: block; }
.qr-panel .t { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.qr-panel .s { font-size: .78rem; color: var(--muted); margin: 8px 0 0; }
.countdown { font-family: var(--mono); font-size: .82rem; color: var(--muted); }

.result-banner { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 12px; margin-bottom: 16px; }
.result-banner.ok { background: var(--ok-bg); color: #0b5c41; }
.result-banner.bad { background: var(--bad-bg); color: var(--bad); }
.result-banner .ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 800; }
.result-banner.ok .ic { background: var(--ok); }
.result-banner.bad .ic { background: var(--bad); }
.result-banner b { display: block; font-size: 1.05rem; }
.result-banner span { font-size: .88rem; opacity: .9; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .93rem; margin: 0 0 16px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-info { background: #eaf1fe; color: #2a62c9; }

.devview { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .devview { grid-template-columns: 1fr; } }
.devview .code-body pre { max-height: 300px; font-size: .76rem; }
.devview .code-head b { color: #e6edf3; font-family: var(--sans); font-weight: 650; }

.event-log { margin-top: 16px; background: #0d1117; border: 1px solid #20242d; border-radius: var(--radius); overflow: hidden; }
.event-log ol { list-style: none; margin: 0; padding: 12px 0; max-height: 240px; overflow-y: auto; font-family: var(--mono); font-size: .78rem; }
.event-log li { display: grid; grid-template-columns: 70px 92px 1fr; gap: 10px; padding: 3px 16px; color: #c9d4e3; animation: fadein .3s ease; }
@media (max-width: 560px) { .event-log li { grid-template-columns: 1fr; gap: 0; padding: 5px 16px; } }
.event-log .ts { color: #6b7280; }
.event-log .who { font-weight: 700; }
.event-log .who.site { color: #f5b400; } .event-log .who.api { color: #79c0ff; } .event-log .who.phone { color: #d2a8ff; } .event-log .who.crypto { color: #7ee787; }
.event-log .empty { color: #6b7280; display: block; grid-column: 1 / -1; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Phone states in demo */
.notif {
  position: absolute; top: 38px; left: 10px; right: 10px; z-index: 5; font: inherit; cursor: pointer;
  background: rgba(245, 247, 251, .97); border: 1px solid #e3e8ef; border-radius: 16px; padding: 10px 12px;
  box-shadow: 0 10px 30px rgba(7, 13, 26, .2); display: flex; gap: 10px; text-align: left; width: auto; color: var(--ink);
  transform: translateY(-160%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .3s;
}
.notif.show { transform: translateY(0); opacity: 1; }
.notif .app-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.notif b { font-size: 12.5px; display: block; }
.notif small { font-size: 11.5px; color: var(--muted); display: block; line-height: 1.3; }
.notif .when { font-size: 10px; color: var(--muted); margin-left: auto; }
.face-scan { text-align: center; padding: 22px 0 6px; }
.face-ring { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 14px; position: relative; display: grid; place-items: center; background: #f1f4fa; }
.face-ring::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 4px solid transparent; border-top-color: var(--brand-a); border-right-color: var(--brand-b); animation: spin 1.1s linear infinite; }
.face-ring.ok::before { animation: none; border-color: var(--ok-bright); }
.face-ring svg { width: 82px; height: 82px; color: #9aa7bb; }
.face-ring.ok svg { color: var(--ok); }
.phone-center { text-align: center; padding-top: 40px; }
.big-check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 30px; font-weight: 800; }
.phone-btn-row { display: grid; gap: 8px; }
.phone .btn { padding: 11px 14px; font-size: 14px; border-radius: 12px; }
.mini-label { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin: 12px 0 6px; }
.mini-list { border: 1px solid var(--line); border-radius: 12px; font-size: 12.5px; }
.mini-list div { display: flex; justify-content: space-between; padding: 7px 10px; border-top: 1px solid var(--line); gap: 10px; }
.mini-list div:first-child { border-top: 0; }
.mini-list span { color: var(--muted); }

/* ── FAQ ────────────────────────────────────────────── */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 650; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; font-weight: 300; color: var(--brand-b); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ── CTA + footer ───────────────────────────────────── */
.cta {
  border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 20% 0%, rgba(79,142,247,.45), transparent 60%),
              radial-gradient(600px 300px at 90% 100%, rgba(124,58,237,.5), transparent 60%), var(--navy-900);
}
.cta h2 { color: #fff; }
.cta p { color: #b5c2d6; max-width: 560px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; margin: 0; }
@media (max-width: 600px) { .cta { padding: 44px 20px; } }

.site-footer { background: var(--navy-950); color: #93a3ba; padding: 56px 0 32px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: .9rem; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 4px 0; }
.footer-grid a { color: #93a3ba; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line-dark); margin-top: 40px; padding-top: 24px; font-size: .84rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ── Developers page ────────────────────────────────── */
.docs-hero { padding: 72px 0 56px; background: radial-gradient(700px 400px at 90% 0%, rgba(124,58,237,.3), transparent 60%), var(--navy-950); color: #fff; }
.docs-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); color: #fff; }
.docs-hero .lead { color: #b5c2d6; }
.docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding: 56px 0 96px; }
.docs-nav { position: sticky; top: 92px; align-self: start; font-size: .92rem; }
.docs-nav h4 { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav ul { list-style: none; padding: 0; margin: 0; }
.docs-nav a { display: block; padding: 5px 10px; border-left: 2px solid var(--line); color: var(--ink-2); }
.docs-nav a:hover, .docs-nav a.active { color: var(--brand-b); border-left-color: var(--brand-b); text-decoration: none; }
@media (max-width: 900px) { .docs-layout { grid-template-columns: 1fr; } .docs-nav { display: none; } }
.doc-section { padding: 0 0 56px; }
.doc-section + .doc-section { border-top: 1px solid var(--line); padding-top: 48px; }
.doc-section h2 { font-size: 1.75rem; }
.doc-section h3 { margin-top: 28px; }
.doc-section p, .doc-section li { color: var(--ink-2); }
.doc-section .code-card { margin: 18px 0 24px; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: var(--bg-soft); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
td code { white-space: nowrap; }
.method { font-family: var(--mono); font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.m-post { background: #e7f6ef; color: var(--ok); } .m-get { background: #eaf1fe; color: #2a62c9; } .m-del { background: var(--bad-bg); color: var(--bad); }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #f1ebff; border: 1px solid #e0d3ff; color: #3f2580; font-size: .93rem; margin: 16px 0; }
.callout.warn { background: var(--warn-bg); border-color: #f3e1a6; color: #6b4a00; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.callout p { margin: 0; color: inherit; }
.checklist { list-style: none; padding: 0; }
.checklist li { display: flex; gap: 10px; padding: 6px 0; }
.checklist li::before { content: "✓"; color: var(--ok); font-weight: 800; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
