/* rootcard.org — one stylesheet, no external fonts or assets. Theme: the logo's teal tile and white chip on a deep
   night background. */

:root {
  --bg: #0a0f14;
  --bg-2: #0d141b;
  --surface: #111a23;
  --surface-2: #16212c;
  --line: #1f2c39;
  --line-2: #2a3a4a;
  --text: #e7eef4;
  --muted: #94a5b6;
  --faint: #66788a;
  --teal-900: #0b3f4e;
  --teal-800: #0d4c5e;
  --teal-700: #136579;
  --teal-600: #1a7a91;
  --teal-500: #2493ab;
  --teal-400: #3fb0c6;
  --teal-300: #6fd0df;
  --teal-200: #a6e6ee;
  --ok: #4ed39a;
  --warn: #f2b25c;
  --danger: #ff7a6b;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(36, 147, 171, 0.12), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(19, 101, 121, 0.1), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--teal-300); text-decoration: none; }
a:hover { color: var(--teal-200); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: rgba(63, 176, 198, 0.35); }
code, pre, kbd, .mono { font-family: var(--mono); font-size: 0.92em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.08em 0.4em; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.5rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

.wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(760px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0.5rem; background: var(--teal-600); color: #fff; padding: 0.5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 0.5rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 15, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); }
.brand:hover { text-decoration: none; color: var(--text); }
.brand img { border-radius: 9px; box-shadow: 0 6px 18px -6px rgba(36, 147, 171, 0.7); }
.wordmark { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.03em; }
.wordmark b { color: var(--teal-300); font-weight: 800; }
.wordmark .tld { color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 0.3rem; }
.nav a { color: var(--muted); padding: 0.45rem 0.75rem; border-radius: 9px; font-size: 0.95rem; font-weight: 550; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav a.btn { color: #fff; margin-left: 0.4rem; }
body[data-page="rootcard"] [data-nav="rootcard"],
body[data-page="developers"] [data-nav="developers"],
body[data-page="keytool"] [data-nav="keytool"],
body[data-page="card"] [data-nav="card"],
body[data-page="account"] [data-nav="account"] { color: var(--text); background: rgba(63, 176, 198, 0.12); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 42px; height: 38px; padding: 9px 10px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 3.5px 0; transition: transform 0.2s, opacity 0.2s; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem 1.25rem 1.2rem;
    background: rgba(10, 15, 20, 0.97);
    border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.8rem 0.9rem; font-size: 1.05rem; }
  .nav a.btn { margin: 0.5rem 0 0; text-align: center; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
}

/* ---------- buttons and forms ---------- */

.btn {
  --b: var(--line-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1;
  padding: 0.85rem 1.3rem;
  border-radius: 12px;
  border: 1px solid var(--b);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; color: var(--text); border-color: var(--teal-500); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: progress; transform: none; }
.btn-primary {
  --b: transparent;
  background: linear-gradient(180deg, var(--teal-500), var(--teal-700));
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 10px 28px -10px rgba(36, 147, 171, 0.9);
}
.btn-primary:hover { color: #fff; background: linear-gradient(180deg, #2aa2bb, var(--teal-600)); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { --b: rgba(255, 122, 107, 0.4); color: var(--danger); background: transparent; }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.92rem; border-radius: 10px; }
.btn-lg { padding: 1.05rem 1.6rem; font-size: 1.08rem; border-radius: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

label { display: block; font-weight: 600; font-size: 0.93rem; margin-bottom: 0.4rem; }
.field { margin-bottom: 1.1rem; }
.hint { display: block; color: var(--faint); font-size: 0.85rem; font-weight: 400; margin-top: 0.35rem; }
input[type="text"],
input[type="password"],
input[type="url"],
input[type="search"],
textarea,
select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 0.8rem 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { font-family: var(--mono); font-size: 0.86rem; min-height: 6rem; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--teal-400); box-shadow: 0 0 0 4px rgba(63, 176, 198, 0.16); }
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--teal-500); flex: none; }
.input-group { display: flex; gap: 0.6rem; }
.input-group input { flex: 1; }
@media (max-width: 520px) { .input-group { flex-direction: column; } }

.meter { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; margin-top: 0.5rem; }
.meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width 0.25s, background 0.25s; }

/* ---------- panels and notices ---------- */

.panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)), var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}
.panel + .panel { margin-top: 1.25rem; }
.panel h2 { font-size: 1.45rem; }
.panel h3 { margin-top: 0.2rem; }
.notice { display: flex; gap: 0.8rem; padding: 0.95rem 1.1rem; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); font-size: 0.95rem; }
.notice::before { content: "i"; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; background: var(--teal-700); color: #fff; margin-top: 0.1rem; }
.notice.warn { border-color: rgba(242, 178, 92, 0.35); background: rgba(242, 178, 92, 0.07); }
.notice.warn::before { content: "!"; background: #9a6420; }
.notice.error { border-color: rgba(255, 122, 107, 0.4); background: rgba(255, 122, 107, 0.08); }
.notice.error::before { content: "×"; background: #a33b2f; }
.notice.ok { border-color: rgba(78, 211, 154, 0.35); background: rgba(78, 211, 154, 0.07); }
.notice.ok::before { content: "✓"; background: #1f7d55; }
.notice p:last-child { margin: 0; }
.status { min-height: 1.6rem; margin-top: 1rem; }
.badge { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.3rem 0.65rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--surface-2); }
.badge.ok { color: var(--ok); border-color: rgba(78, 211, 154, 0.35); background: rgba(78, 211, 154, 0.08); }
.badge.warn { color: var(--warn); border-color: rgba(242, 178, 92, 0.35); background: rgba(242, 178, 92, 0.08); }
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06); }

.spinner { width: 1.05rem; height: 1.05rem; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: spin 0.8s linear infinite; display: inline-block; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

pre {
  margin: 0;
  background: #070b0f;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 1rem 1.15rem;
  overflow: auto;
  font-size: 0.86rem;
  line-height: 1.6;
  color: #cfe3ea;
}
pre .c { color: #5f7486; }
pre .k { color: var(--teal-300); }
pre .s { color: #f3cf8a; }

/* ---------- hero ---------- */

.hero { padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero .eyebrow { margin-bottom: 1.3rem; }
.hero p.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 36rem; margin-bottom: 2rem; }
.hero .btn-row { margin-bottom: 1.6rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--faint); font-size: 0.9rem; }
.hero-facts span::before { content: "✓"; color: var(--teal-400); margin-right: 0.45rem; font-weight: 800; }
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; perspective: 1400px; }
.hero-visual .idcard { width: min(440px, 100%); }
.hero-visual .idcard.back-card { position: absolute; transform: translate(9%, 13%) rotate(7deg) scale(0.92); filter: saturate(0.7) brightness(0.65); z-index: 0; }
.hero-visual .idcard.front { position: relative; z-index: 1; transform: rotate(-4deg); }
.glow { position: absolute; inset: 10% 5%; background: radial-gradient(closest-side, rgba(63, 176, 198, 0.35), transparent); filter: blur(30px); z-index: 0; }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; order: -1; padding: 1rem 0 2.5rem; }
  .hero-visual .idcard { width: min(360px, 88%); }
}

/* ---------- the ID card ---------- */

.idcard {
  --c1: #1f8ea6;
  --c2: #0d4c5e;
  position: relative;
  aspect-ratio: 85.6 / 54;
  border-radius: clamp(14px, 3.2cqi, 22px);
  padding: 7% 7.5%;
  color: #fff;
  overflow: hidden;
  container-type: inline-size;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    repeating-radial-gradient(circle at 115% 120%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 9px),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 1px 0 rgba(255, 255, 255, 0.35) inset,
    0 40px 80px -30px rgba(0, 0, 0, 0.85),
    0 18px 40px -18px rgba(16, 90, 110, 0.75);
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
  user-select: text;
}
.idcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 45%, rgba(166, 230, 238, 0.12) 50%, transparent 62%);
  background-size: 250% 100%;
  background-position: var(--sheen, 100%) 0;
  mix-blend-mode: screen;
  pointer-events: none;
  transition: background-position 0.6s;
}
.idcard.recovery { --c1: #2c3440; --c2: #11161d; }
.idcard.recovery .ic-top .ic-kind { color: var(--warn); }
.ic-top { display: flex; justify-content: space-between; align-items: center; font-size: 4.2cqi; }
.ic-brand { display: flex; align-items: center; gap: 0.45em; font-weight: 800; letter-spacing: -0.02em; }
.ic-brand img { width: 1.7em; height: 1.7em; border-radius: 0.4em; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.ic-kind { font-size: 0.68em; font-weight: 750; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.ic-mid { display: flex; align-items: center; gap: 6cqi; }
.ic-chip { width: 17cqi; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); }
.ic-name { min-width: 0; }
.ic-label { font-size: 2.6cqi; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.ic-handle { font-size: 7.4cqi; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-handle .tag { color: var(--teal-200); font-weight: 700; }
.idcard.recovery .ic-handle .tag { color: var(--warn); }
.ic-display { font-size: 3.6cqi; opacity: 0.85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic-bottom { display: grid; grid-template-columns: 1fr auto; gap: 2cqi 5cqi; align-items: end; }
.ic-id { font-family: var(--mono); font-size: 2.85cqi; letter-spacing: 0.06em; line-height: 1.45; opacity: 0.92; }
.ic-meta { text-align: right; font-size: 2.8cqi; line-height: 1.5; }
.ic-meta b { display: block; font-size: 3.4cqi; font-weight: 750; letter-spacing: 0; }
.ic-right { display: flex; align-items: center; gap: 2.2cqi; }
.ic-verified { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.62em; font-weight: 750; letter-spacing: 0.1em; text-transform: uppercase; color: #8ff0c2; background: rgba(10, 40, 30, 0.35); border: 1px solid rgba(78, 211, 154, 0.45); border-radius: 999px; padding: 0.25em 0.7em; }
.ic-verified .dot { width: 0.55em; height: 0.55em; box-shadow: none; }
.idcard .ic-key { font-family: var(--mono); font-size: 3.5cqi; letter-spacing: 0.05em; line-height: 1.55; word-spacing: 0.25em; color: #ffe2b8; }
.card-stage { perspective: 1400px; max-width: 520px; margin: 0 auto 0.9rem; }
.card-stage + p { margin-bottom: 1.25rem; }
.card-stage .idcard { width: 100%; }

/* ---------- sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-head { max-width: 46rem; margin-bottom: 2.6rem; }
.status-note { max-width: 46rem; margin-bottom: 2.6rem; }
.more { margin: 1.8rem 0 0; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-300); margin-bottom: 0.9rem; }
.band { background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.0)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; transition: border-color 0.2s, transform 0.2s; }
.feature:hover { border-color: var(--line-2); transform: translateY(-2px); }
.feature p { color: var(--muted); margin: 0; font-size: 0.97rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.4rem 1.4rem 1.25rem 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--mono); font-size: 0.85rem; font-weight: 700; color: var(--teal-300); display: block; margin-bottom: 0.6rem; }
.step h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.step p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.power { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 760px) { .power { grid-template-columns: 1fr; } }
.power-card { border-radius: var(--radius-lg); padding: 1.6rem; border: 1px solid var(--line); background: var(--surface); }
.power-card.high { background: linear-gradient(160deg, rgba(242, 178, 92, 0.09), transparent 60%), var(--surface); border-color: rgba(242, 178, 92, 0.25); }
.power-card.low { background: linear-gradient(160deg, rgba(63, 176, 198, 0.12), transparent 60%), var(--surface); border-color: rgba(63, 176, 198, 0.25); }
.power-card ul { margin: 0.8rem 0 0; padding: 0; list-style: none; }
.power-card li { padding: 0.45rem 0 0.45rem 1.7rem; position: relative; color: var(--muted); border-top: 1px dashed var(--line); }
.power-card li::before { content: "→"; position: absolute; left: 0.2rem; color: var(--teal-300); }
.power-card.high li::before { color: var(--warn); }
.power-card .who { font-family: var(--mono); font-size: 0.85rem; color: var(--faint); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 760px; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--text); background: var(--surface-2); font-size: 0.88rem; }
td { color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.us, th.us { background: rgba(63, 176, 198, 0.07); color: var(--text); }
th.us { color: var(--teal-200); }

.faq { display: grid; gap: 0.7rem; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.25rem; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { cursor: pointer; padding: 1.05rem 0; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal-300); font-size: 1.3rem; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 1.1rem; }


.stat-row { display: flex; flex-wrap: wrap; gap: 2.5rem; margin-top: 2.2rem; }
.stat b { display: block; font-size: 1.8rem; font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--faint); font-size: 0.88rem; }

.map { font-family: var(--mono); font-size: clamp(0.5rem, 1.15vw, 0.8rem); line-height: 1.35; color: #a9c9d3; white-space: pre; overflow-x: auto; }

/* ---------- app pages ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4rem) 0 1.6rem; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 44rem; }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; padding-bottom: 4rem; }
@media (max-width: 920px) { .app-grid { grid-template-columns: 1fr; } }
.sticky { position: sticky; top: 90px; }
@media (max-width: 920px) { .sticky { position: static; } }

.wizard { display: flex; gap: 0.5rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.wizard li { list-style: none; display: flex; align-items: center; gap: 0.5rem; font-size: 0.88rem; color: var(--faint); font-weight: 600; }
.wizard li + li::before { content: ""; width: 1.4rem; height: 1px; background: var(--line-2); margin-right: 0.1rem; }
.wizard li i { font-style: normal; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 0.8rem; }
.wizard li.active { color: var(--text); }
.wizard li.active i { background: var(--teal-600); border-color: var(--teal-500); color: #fff; }
.wizard li.done i { background: rgba(78, 211, 154, 0.15); border-color: rgba(78, 211, 154, 0.5); color: var(--ok); }
.wizard { padding: 0; margin-top: 0; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.55rem 1.2rem; font-size: 0.93rem; margin: 0; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; word-break: break-all; }
.kv dd.mono { font-size: 0.85rem; }
.kv dd .hint { word-break: normal; font-family: var(--sans); }

.tabs { display: flex; gap: 0.3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; overflow-x: auto; }
.tabs button { font: inherit; font-weight: 600; font-size: 0.95rem; background: none; border: 0; color: var(--muted); padding: 0.7rem 0.9rem; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--teal-400); }
.tabs button:hover { color: var(--text); }

.recovery-text { white-space: pre-wrap; font-family: var(--mono); font-size: 0.86rem; background: #0b0f14; border: 1px dashed rgba(242, 178, 92, 0.45); border-radius: 13px; padding: 1rem 1.15rem; color: #f6e4c8; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); background: rgba(5, 8, 11, 0.6); margin-top: 2rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2.5rem; padding: 3rem 0 2rem; flex-wrap: wrap; }
.footer-brand { max-width: 20rem; }
.footer-brand p { color: var(--faint); font-size: 0.92rem; margin-top: 0.8rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(9rem, auto)); gap: 2.5rem; }
@media (max-width: 640px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.8rem; }
.footer-cols a { display: block; color: var(--muted); font-size: 0.93rem; padding: 0.2rem 0; }
.footer-cols a:hover { color: var(--text); }
.footer-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem 2rem; padding: 1.2rem 0 2rem; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- print: only the recovery card ---------- */

@media print {
  body { background: #fff !important; color: #000; display: block; }
  body > *:not(main), main > *:not(.print-only) { display: none !important; }
  .print-only { display: block !important; }
  .print-card { color: #000; font-family: var(--mono); white-space: pre-wrap; border: 2px solid #000; border-radius: 12px; padding: 1.5rem; font-size: 12pt; max-width: 17cm; }
  .print-card h1 { font-family: var(--sans); font-size: 18pt; margin-bottom: 0.5rem; }
}
.print-only { display: none; }
.align-center { align-items: center; }
.idcard.placeholder { filter: grayscale(0.6) brightness(0.7); }
.center-row { justify-content: center; }
a.feature { color: inherit; display: block; } a.feature:hover { text-decoration: none; color: inherit; }
.btn svg { flex: none; }
.page-head .status-note { margin: 1.2rem 0 0; }
