/* IDMyKey.com — single stylesheet, no external fonts or assets */

:root {
  --ink: #0E1726;
  --ink-2: #1E2A3D;
  --text: #1B2433;
  --muted: #5B6676;
  --paper: #F7F5F0;
  --card: #FFFFFF;
  --line: #E3DFD6;
  --brass: #D4A23A;
  --brass-ink: #8A6416;
  --teal: #14B8A6;
  --teal-ink: #0B7F73;
  --ok: #0B7F73;
  --err: #B42318;
  --btn-bg: var(--ink);
  --btn-fg: #FFFFFF;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(14, 23, 38, .06), 0 8px 24px rgba(14, 23, 38, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

/* Dark follows the system unless the visitor picked light; data-theme is set by js/theme.js. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #E6E9EE;
    --muted: #A2ABB8;
    --paper: #0B111C;
    --card: #131C2B;
    --line: #243147;
    --brass-ink: #E2B65A;
    --teal-ink: #2DD4BF;
    --ok: #2DD4BF;
    --err: #F97066;
    --btn-bg: var(--brass);
    --btn-fg: var(--ink);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --text: #E6E9EE;
  --muted: #A2ABB8;
  --paper: #0B111C;
  --card: #131C2B;
  --line: #243147;
  --brass-ink: #E2B65A;
  --teal-ink: #2DD4BF;
  --ok: #2DD4BF;
  --err: #F97066;
  --btn-bg: var(--brass);
  --btn-fg: var(--ink);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal-ink); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---- header ------------------------------------------------------------ */
.site-head {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); }
.brand .mark { width: 38px; height: 38px; }
.brand .word { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.word b { color: var(--teal-ink); font-weight: 800; }
.mark { color: var(--text); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--text); }
@media (max-width: 820px) { .nav a:not(.btn) { display: none; } }
@media (max-width: 400px) { .nav .btn { display: none; } }

/* ---- theme switch ------------------------------------------------------ */
.theme-toggle {
  flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:hover { border-color: var(--muted); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
.theme-toggle[hidden] { display: none; }

/* ---- buttons / forms --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg); font: 700 16px/1 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; }

.join { display: grid; gap: 10px; max-width: 520px; }
.join-row { display: flex; gap: 8px; flex-wrap: wrap; }
.join input[type=email], .join select {
  flex: 1 1 220px; min-height: 48px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  font: 16px var(--font);
}
.join select { flex: 1 1 100%; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.join .btn { min-height: 48px; flex: 0 0 auto; }
@media (max-width: 480px) { .join .btn { flex: 1 1 100%; } }
.join .fine { font-size: 13px; color: var(--muted); margin: 0; }
.join .status { font-size: 15px; font-weight: 600; margin: 0; min-height: 1.4em; }
.join .status.ok { color: var(--ok); }
.join .status.err { color: var(--err); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---- hero -------------------------------------------------------------- */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; gap: 56px; } .hero { padding: 80px 0 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-ink); margin: 0 0 14px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
h1 { font-size: clamp(38px, 6vw, 62px); line-height: 1.04; letter-spacing: -0.035em; margin: 0 0 18px; }
h1 em { font-style: normal; color: var(--brass-ink); }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.platforms { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; font-size: 14px; color: var(--muted); }
.platforms span { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--card); }

/* phone mockup */
.phone {
  width: min(330px, 86vw); margin: 0 auto; aspect-ratio: 9 / 18.5; border-radius: 44px;
  background: #05080E; padding: 12px; box-shadow: 0 30px 60px rgba(14, 23, 38, .28), inset 0 0 0 2px #2A3446;
  position: relative;
}
.screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background: radial-gradient(120% 80% at 50% 30%, #1B2638 0%, #0A0F18 70%); }
.screen .notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; border-radius: 12px; background: #05080E; z-index: 2; }
.screen .cam { position: absolute; inset: 0; }
.screen .cam svg { width: 100%; height: 100%; }
.match {
  position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3;
  background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 18px; padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.match .hit { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em; color: var(--teal-ink); }
.match .hit::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .2); }
.match .name { font-size: 20px; font-weight: 800; margin: 4px 0 2px; letter-spacing: -0.01em; }
.match .path { font-size: 13px; color: #5B6676; margin: 0 0 10px; }
.match .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.match .chips span { font-size: 12px; font-weight: 600; background: #F1EEE6; border-radius: 999px; padding: 3px 10px; }
.scanline { animation: scan 3.2s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(-70px); opacity: .0; } 15%, 85% { opacity: .9; } 50% { transform: translateY(70px); } }
@media (prefers-reduced-motion: reduce) { .scanline { animation: none; opacity: .8; } }

/* ---- sections ---------------------------------------------------------- */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 88px 0; } }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.1; letter-spacing: -0.03em; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 19px; margin: 0 0 40px; max-width: 40em; }
h3 { font-size: 20px; letter-spacing: -0.01em; margin: 0 0 6px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 720px) { .g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .g5 { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 640px) and (max-width: 999px) { .g5 { grid-template-columns: repeat(2, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.alt .card { background: var(--paper); box-shadow: none; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--teal) 14%, transparent); color: var(--teal-ink); }
.icon.brass { background: color-mix(in srgb, var(--brass) 18%, transparent); color: var(--brass-ink); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 24px; left: 24px;
  width: 32px; height: 32px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); font-weight: 800;
  display: grid; place-items: center; font-size: 15px; }
.step { padding: 72px 24px 24px; }

/* audience */
.who .card h3 { font-size: 17px; }
.who .card p { font-size: 15px; }

/* privacy band */
.privacy-band { background: var(--ink); color: #E6E9EE; }
.privacy-band h2 { color: #fff; }
.privacy-band .section-lede { color: #A2ABB8; }
.privacy-band .card { background: #131C2B; border-color: #243147; box-shadow: none; }
.privacy-band .card h3 { color: #fff; }
.privacy-band .card p { color: #A2ABB8; }
.privacy-band .icon { background: rgba(20, 184, 166, .16); color: #2DD4BF; }

/* pricing */
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 15px; font-weight: 700; color: var(--brass-ink); margin: 0 0 12px; }
.plan ul { margin: 14px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.plan li { padding: 6px 0 6px 26px; position: relative; border-top: 1px solid var(--line); }
.plan li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 10px; height: 6px;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.plan.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow); }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 18px; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* final cta */
.cta { text-align: left; }
.cta .card { display: grid; gap: 24px; padding: 32px 24px; }
@media (min-width: 900px) { .cta .card { grid-template-columns: 1fr 1fr; align-items: center; padding: 48px; } }

/* footer */
.site-foot { padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.site-foot .brand .word { font-size: 18px; }
.site-foot .brand .mark { width: 30px; height: 30px; }
.site-foot nav { margin-left: auto; display: flex; gap: 20px; }
.site-foot a { color: var(--muted); }

/* simple pages */
.page { padding: 56px 0 72px; }
.page .wrap { max-width: 780px; }
.page h1 { font-size: clamp(34px, 5vw, 46px); }
.page h2 { font-size: 24px; margin-top: 36px; }
.page p, .page li { color: var(--text); }
.page .updated { color: var(--muted); font-size: 15px; }
