/* VerifiedWallet — 2026 design system.
   Light, airy surfaces; brand blues from the logo (#010E2A → #00CDFD); one gradient used sparingly
   for emphasis; glass cards; mono for anything cryptographic. Fonts are self-hosted (no Google). */

@font-face { font-family: "Sora"; src: url("/fonts/sora-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  color-scheme: light;

  /* brand (from the logo) */
  --ink: #010e2a;
  --royal: #011e69;
  --blue: #0045f4;
  --electric: #006ffc;
  --sky: #009efc;
  --cyan: #00cdfd;

  /* surfaces */
  --bg: #f4f7fe;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --glass: rgba(255, 255, 255, 0.72);
  --line: #dde5f6;
  --line-strong: #c7d3ee;

  /* text */
  --text: var(--ink);
  --muted: #4b5a7c;
  --faint: #8591ad;

  /* status */
  --green: #00a676;
  --green-soft: #e3f8f0;
  --amber: #c27c00;
  --amber-soft: #fff4dc;
  --red: #e0383e;
  --red-soft: #fde9ea;

  --grad: linear-gradient(100deg, var(--blue) 0%, var(--electric) 35%, var(--sky) 68%, var(--cyan) 100%);
  --grad-deep: linear-gradient(135deg, var(--ink) 0%, var(--royal) 100%);

  --shadow-sm: 0 1px 2px rgba(1, 14, 42, 0.06), 0 1px 1px rgba(1, 14, 42, 0.04);
  --shadow: 0 1px 2px rgba(1, 14, 42, 0.05), 0 12px 32px -12px rgba(1, 30, 105, 0.18);
  --shadow-lg: 0 2px 4px rgba(1, 14, 42, 0.04), 0 32px 64px -24px rgba(1, 30, 105, 0.28);
  --glow: 0 10px 30px -8px rgba(0, 111, 252, 0.55);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Sora", "Inter", -apple-system, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --max: 1180px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Footer always sits at the bottom of the window, however short the page. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
body > .footer { flex-shrink: 0; }

/* Soft aurora + fine grid behind the top of every page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 920px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(42% 52% at 82% 8%, rgba(0, 205, 253, 0.22), transparent 70%),
    radial-gradient(38% 46% at 12% 0%, rgba(0, 69, 244, 0.16), transparent 70%),
    radial-gradient(30% 40% at 55% 30%, rgba(0, 158, 252, 0.10), transparent 70%);
}
body::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 920px;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(1, 30, 105, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 30, 105, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 0%, #000 30%, transparent 75%);
}

img { max-width: 100%; display: block; }
a { color: var(--electric); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
code, .mono { font-family: var(--mono); font-size: 0.88em; }
.mono { word-break: break-all; }
:focus-visible { outline: 3px solid rgba(0, 111, 252, 0.45); outline-offset: 2px; border-radius: 6px; }

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

/* --- typography --- */

h1, h2, h3 { font-family: var(--display); color: var(--ink); letter-spacing: -0.035em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 750; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--electric);
}
.eyebrow .pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(0, 205, 253, 0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 205, 253, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(0, 205, 253, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 205, 253, 0); }
}

.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.65; max-width: 62ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* --- buttons --- */

.btn, button {
  --pad-y: 0.85rem;
  --pad-x: 1.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: var(--pad-y) var(--pad-x);
  border: 0;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  color: #fff;
  background: var(--grad);
  background-size: 140% 100%;
  background-position: 0% 0;
  box-shadow: var(--glow);
  transition: background-position 0.35s ease, transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
  white-space: nowrap;
}
.btn:hover, button:hover { color: #fff; background-position: 100% 0; transform: translateY(-1px); box-shadow: 0 14px 34px -8px rgba(0, 111, 252, 0.6); }
.btn:active, button:active { transform: translateY(0); }
button:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn.secondary, button.secondary {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn.secondary:hover, button.secondary:hover { color: var(--blue); border-color: var(--electric); background: var(--surface); }

.btn.ghost { color: var(--ink); background: transparent; box-shadow: none; padding-left: 0.4rem; padding-right: 0.4rem; }
.btn.ghost:hover { color: var(--blue); transform: none; box-shadow: none; }

.btn.sm, button.sm { --pad-y: 0.62rem; --pad-x: 1.1rem; font-size: 0.9rem; }
.btn.lg { --pad-y: 1.05rem; --pad-x: 1.8rem; font-size: 1.05rem; }
.btn.block, button.block { width: 100%; }
.btn svg, button svg { width: 18px; height: 18px; flex-shrink: 0; }

/* --- header --- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 254, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.82); }
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.logo { display: flex; flex-shrink: 0; }
.logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 0.3rem; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: rgba(0, 111, 252, 0.08); }
@media (max-width: 820px) {
  .nav-inner { gap: 0.75rem; height: 64px; }
  .logo img { height: 24px; }
  .nav-links .optional { display: none; }
  .nav-links a { padding: 0.45rem 0.6rem; font-size: 0.9rem; }
}
@media (max-width: 560px) {
  /* Phones: just Home next to the logo and the button. */
  .nav-inner { gap: 0.4rem; }
  .nav-links a:not(.home) { display: none; }
  .nav-links a { padding: 0.4rem 0.55rem; }
}
@media (max-width: 420px) {
  .logo img { height: 22px; }
  .nav .btn.sm { --pad-x: 0.85rem; font-size: 0.85rem; }
}
@media (max-width: 400px) {
  .nav-inner { gap: 0.25rem; }
  .logo img { height: 20px; width: auto; }
  .nav-links a { padding: 0.4rem 0.45rem; font-size: 0.86rem; }
  .nav .btn.sm { --pad-x: 0.8rem; font-size: 0.84rem; }
}
@media (max-width: 350px) {
  .logo img { height: 18px; }
  .nav-links a { padding: 0.4rem 0.35rem; }
  .nav .btn.sm { --pad-x: 0.65rem; font-size: 0.8rem; }
}

/* --- sections --- */

section { padding: clamp(4rem, 9vw, 7.5rem) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { margin: 0.9rem 0 1rem; }
.section-head.center .lede { margin: 0 auto; }

/* --- hero --- */

.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin: 1.3rem 0 1.4rem; }
.hero .lede { margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 550;
  color: var(--muted);
  backdrop-filter: blur(8px);
}
.chip svg { width: 15px; height: 15px; color: var(--electric); }
.hero-grid > *, .split > *, .cert-layout > *, .cert-fields > * { min-width: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* --- the certificate visual (hero + certificate page) --- */

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.cert-card {
  --angle: 0deg;
  position: relative;
  border-radius: var(--r-lg);
  padding: 1px;
  background: conic-gradient(from var(--angle), rgba(0, 69, 244, 0.9), rgba(0, 205, 253, 0.9), rgba(0, 158, 252, 0.25), rgba(0, 69, 244, 0.15), rgba(0, 69, 244, 0.9));
  box-shadow: var(--shadow-lg), 0 30px 80px -30px rgba(0, 158, 252, 0.45);
  animation: spin-border 8s linear infinite;
}
@keyframes spin-border { to { --angle: 360deg; } }

.cert-inner {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 1px);
  background:
    radial-gradient(80% 60% at 100% 0%, rgba(0, 205, 253, 0.12), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(0, 69, 244, 0.08), transparent 60%),
    #fff;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.cert-inner::before { /* faint guilloche-style rings, like a banknote */
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 11px, rgba(0, 111, 252, 0.07) 11px 12px);
  pointer-events: none;
}
.cert-inner .scan {
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  top: -90px;
  background: linear-gradient(180deg, transparent, rgba(0, 205, 253, 0.13), transparent);
  animation: scan 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan { 0% { top: -90px; } 60%, 100% { top: 110%; } }

.cert-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; }
.cert-brand { display: flex; align-items: center; gap: 0.65rem; }
.cert-brand img { width: 40px; height: 40px; }
.cert-brand .label { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--faint); text-transform: uppercase; }
.cert-brand .title { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em; }
.cert-serial { font-family: var(--mono); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.04em; margin: 1.5rem 0 0.2rem; position: relative; }
.cert-serial-label { font-family: var(--mono); font-size: 0.68rem; color: var(--faint); letter-spacing: 0.14em; text-transform: uppercase; }

.cert-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.4rem; margin: 1.4rem 0; position: relative; }
.cert-fields .full { grid-column: 1 / -1; }
.cert-fields dt { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.cert-fields dd { margin: 0; font-weight: 550; font-size: 0.95rem; }
.cert-fields dd.mono { font-size: 0.84rem; }
@media (max-width: 480px) { .cert-fields { grid-template-columns: 1fr; } }

.checks { border-top: 1px dashed var(--line-strong); padding-top: 1.1rem; display: grid; gap: 0.55rem; position: relative; }
.check { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; font-weight: 550; }
.check .tick {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--faint);
}
.check .tick svg { width: 14px; height: 14px; }
.check.ok .tick { background: var(--green-soft); color: var(--green); }
.check.bad .tick { background: var(--red-soft); color: var(--red); }
.check.pending .tick { background: var(--surface-2); }
.check.pending .tick::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  border-right-color: transparent;
  animation: spin 0.8s linear infinite;
}
.check.pending .tick svg { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.check .algo { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; color: var(--faint); }

.sig-line {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
}

/* hero-only: checks tick in one after another */
.cert-demo .check .tick { animation: tick-in 0.5s ease both; }
.cert-demo .check:nth-child(1) .tick { animation-delay: 0.6s; }
.cert-demo .check:nth-child(2) .tick { animation-delay: 1.1s; }
.cert-demo .check:nth-child(3) .tick { animation-delay: 1.6s; }
@keyframes tick-in { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.example-tag {
  position: absolute;
  top: -12px;
  left: 24px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* --- badges --- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 650;
  background: var(--surface-2);
  color: var(--muted);
  white-space: nowrap;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: rgba(0, 111, 252, 0.1); color: var(--electric); }
.badge.gray { background: var(--surface-2); color: var(--muted); }

/* --- stat strip --- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat { padding: 1.6rem 1.8rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat .num { font-family: var(--display); font-weight: 700; font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; line-height: 1; }
.stat .num .gradient-text { padding-right: 2px; }
.stat .what { color: var(--muted); font-size: 0.92rem; margin-top: 0.55rem; }
@media (max-width: 820px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* --- cards --- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
  box-shadow: var(--glow);
  margin-bottom: 1.3rem;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.soft { background: rgba(0, 111, 252, 0.1); color: var(--electric); box-shadow: none; }

.step { position: relative; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.step .n { position: absolute; top: 1.6rem; right: 1.7rem; font-family: var(--mono); font-size: 0.8rem; color: var(--faint); }
.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--muted); font-size: 0.97rem; }

/* --- pricing --- */

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 960px) { .tiers { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }
.tier { display: flex; flex-direction: column; gap: 1.1rem; position: relative; }
.tier .name { font-family: var(--mono); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--electric); }
.tier h3 { font-size: 1.45rem; }
.tier .price { font-family: var(--display); font-weight: 700; font-size: 3rem; letter-spacing: -0.05em; line-height: 1; }
.tier .price small { font-family: var(--font); font-size: 0.95rem; font-weight: 500; letter-spacing: 0; color: var(--faint); margin-left: 0.3rem; }
.tier ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; flex: 1; align-content: start; }
.tier li { display: flex; gap: 0.65rem; color: var(--muted); font-size: 0.96rem; line-height: 1.45; }
.tier li svg { width: 19px; height: 19px; flex-shrink: 0; color: var(--sky); margin-top: 1px; }
.tier .fine { font-size: 0.8rem; color: var(--faint); line-height: 1.5; }
.tier.featured { border: 0; padding: calc(clamp(1.4rem, 3vw, 2rem) + 1px); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 1px solid transparent; box-shadow: var(--shadow-lg); }
.tier.featured .ribbon {
  position: absolute;
  top: -13px;
  right: 22px;
  background: var(--grad);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--glow);
}
.tier.soon { background: rgba(255, 255, 255, 0.55); border-style: dashed; }
.tier.soon .price { color: var(--faint); font-size: 2rem; }

/* --- split / code window --- */

.split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }
.bullets { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 1.1rem; }
.bullets li { display: flex; gap: 0.9rem; }
.bullets li .icon-tile { width: 38px; height: 38px; border-radius: 11px; margin: 0; flex-shrink: 0; }
.bullets li .icon-tile svg { width: 19px; height: 19px; }
.bullets strong { display: block; font-weight: 650; margin-bottom: 0.15rem; }
.bullets span { color: var(--muted); font-size: 0.96rem; }

.code-window {
  background: var(--grad-deep);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  overflow: hidden;
  color: #c9d6f5;
  position: relative;
}
.code-window::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  height: 90%;
  background: radial-gradient(closest-side, rgba(0, 205, 253, 0.22), transparent);
  pointer-events: none;
}
.code-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.code-bar i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.code-bar span { margin-left: 0.6rem; font-family: var(--mono); font-size: 0.75rem; color: #7f93c2; }
.code-window pre { margin: 0; padding: 1.4rem 1.5rem 1.6rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.75; overflow-x: auto; position: relative; }
.code-window .k { color: #7fd8ff; }
.code-window .s { color: #9ff0c9; }
.code-window .n { color: #ffc77a; }
.code-window .c { color: #5f73a3; }

/* --- use cases --- */

.use { transition: transform 0.2s, box-shadow 0.2s; }
.use:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.use h3 { font-size: 1.08rem; margin-bottom: 0.5rem; }
.use p { color: var(--muted); font-size: 0.94rem; }

/* --- FAQ --- */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open] { border-color: var(--line-strong); box-shadow: var(--shadow); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem 1.5rem;
  font-weight: 650;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23006FFC' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 1.5rem 1.4rem; color: var(--muted); }
.faq .answer p + p { margin-top: 0.7rem; }

/* --- CTA band --- */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000 60%);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.86); margin-top: 0.8rem; font-size: 1.1rem; }
.cta-band .btn { background: #fff; color: var(--blue); box-shadow: 0 12px 30px -10px rgba(1, 14, 42, 0.45); }
.cta-band .btn:hover { color: var(--ink); }
.cta-band .btn.secondary { background: rgba(1, 30, 105, 0.28); color: #fff; border-color: rgba(255, 255, 255, 0.55); box-shadow: none; }
.cta-band .btn.secondary:hover { background: rgba(1, 30, 105, 0.4); color: #fff; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; } }

/* --- footer --- */

.footer { margin-top: clamp(4rem, 8vw, 6rem); background: var(--grad-deep); color: #a9b7da; position: relative; overflow: hidden; }
.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: var(--grad);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.footer .logo img { height: 28px; }
.footer p { font-size: 0.9rem; line-height: 1.65; margin-top: 1rem; max-width: 44ch; }
.footer h4 { color: #fff; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.3rem 0 1rem; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: #cfdaf5; text-decoration: none; font-size: 0.93rem; }
.footer a:hover { color: var(--cyan); }
.footer-base { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.4rem 0 2rem; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #7d8db5; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* --- app pages (start, complete, certificate, verify, legal) --- */

.page { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-head { max-width: 720px; margin-bottom: 2.2rem; }
.page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0.9rem 0 0.9rem; }
.narrow { max-width: 620px; }
/* Get certified, payment complete, multisig: the full page width like every other page — title and
   "what you need" on the left (staying in view), the steps on the right; one column on phones. */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 4.5vw, 4rem); align-items: start; }
.flow-side { position: sticky; top: 96px; }
.flow-side .page-head { margin-bottom: 1.6rem; }
.flow-side .needs { margin: 0; grid-template-columns: 1fr; gap: 0.85rem; padding: 1.1rem 1.2rem; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; gap: 1.6rem; } .flow-side { position: static; } }

.panel {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.stepper { display: flex; gap: 0.5rem; margin-bottom: 1.8rem; }
.stepper .s { flex: 1; }
.stepper .bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.stepper .bar::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--grad); transition: width 0.5s ease; }
.stepper .s.active .bar::after { width: 50%; }
.stepper .s.done .bar::after { width: 100%; }
.stepper .lbl { font-size: 0.8rem; font-weight: 600; color: var(--faint); margin-top: 0.55rem; display: flex; gap: 0.4rem; }
.stepper .lbl b { font-family: var(--mono); font-weight: 600; }
.stepper .s.active .lbl, .stepper .s.done .lbl { color: var(--ink); }

.wallet-options { display: grid; gap: 0.75rem; }
.option-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.2rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  white-space: normal;
  line-height: 1.35;
  justify-content: flex-start;
}
.option-btn:hover { color: var(--ink); background: var(--surface); border-color: var(--electric); transform: translateY(-1px); box-shadow: var(--shadow); }
.option-btn .icon-tile { margin: 0; width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }
.option-btn .icon-tile svg { width: 21px; height: 21px; }
.option-btn strong { display: block; font-size: 1rem; font-weight: 650; }
.option-btn small { display: block; font-size: 0.85rem; font-weight: 450; color: var(--muted); margin-top: 0.15rem; }
.option-btn .tag { margin-left: auto; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; color: var(--electric); background: rgba(0, 111, 252, 0.1); padding: 0.25rem 0.55rem; border-radius: 999px; flex-shrink: 0; }
.option-btn:disabled { opacity: 0.55; }
.option-btn:disabled:hover { border-color: var(--line); transform: none; box-shadow: var(--shadow-sm); }

.field { display: grid; gap: 0.45rem; margin: 1.1rem 0; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; line-height: 1.45; font-size: 0.86rem; word-break: break-all; }
.field textarea[readonly] { background: var(--surface-2); }
.field small { font-size: 0.8rem; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(0, 111, 252, 0.14); }
.field input.mono,
.field textarea.mono { font-family: var(--mono); }

.connected {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 0.4rem 0 1.2rem;
}
.connected .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); flex-shrink: 0; }
.connected .mono { font-size: 0.86rem; }
.connected small { display: block; color: var(--muted); font-size: 0.78rem; }

.notice {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  margin: 1rem 0;
}
.notice.warn { background: var(--amber-soft); border-color: #f3d899; color: #7a5200; }
.notice.error { background: var(--red-soft); border-color: #f6c0c2; color: #a3191e; }
.notice.ok { background: var(--green-soft); border-color: #b5ead6; color: #006e4e; }
.notice a { color: inherit; font-weight: 600; }

.searchbar {
  display: flex;
  gap: 0.5rem;
  padding: 0.5rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.searchbar:focus-within { border-color: var(--electric); box-shadow: var(--shadow), 0 0 0 4px rgba(0, 111, 252, 0.12); }
.searchbar svg.lead { width: 20px; height: 20px; color: var(--faint); margin: auto 0 auto 0.9rem; flex-shrink: 0; }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; font-family: var(--mono); font-size: 0.95rem; color: var(--ink); background: transparent; padding: 0 0.3rem; }
@media (max-width: 520px) { .searchbar { border-radius: var(--r); flex-wrap: wrap; } .searchbar .btn, .searchbar button { width: 100%; } .searchbar svg.lead { display: none; } .searchbar input { padding: 0.7rem 0.6rem; } }

.result {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border-radius: var(--r);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.result:hover { color: var(--ink); border-color: var(--electric); transform: translateY(-2px); box-shadow: var(--shadow); }
.result img { width: 38px; height: 38px; flex-shrink: 0; }
.result .meta { font-size: 0.85rem; color: var(--muted); }
.result .go { margin-left: auto; display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.result .go svg { width: 18px; height: 18px; color: var(--faint); }
.results { display: grid; gap: 0.7rem; margin-top: 1.6rem; }
@media (max-width: 520px) { .result { flex-wrap: wrap; } .result .go { margin-left: 0; width: 100%; justify-content: space-between; } }

.cert-face.revoked .cert-inner::after {
  content: "REVOKED";
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--red);
  border: 5px solid var(--red);
  padding: 0.2rem 1.4rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}
.cert-face.revoked { animation: none; background: var(--red); }

.cert-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 1.6rem; align-items: start; }
@media (max-width: 900px) { .cert-layout { grid-template-columns: 1fr; } }
.side-card h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.side-card p { color: var(--muted); font-size: 0.93rem; }
.side-card + .side-card { margin-top: 1rem; }
.copy-row { display: flex; gap: 0.5rem; margin-top: 0.9rem; }
.copy-row input { flex: 1; min-width: 0; font-family: var(--mono); font-size: 0.8rem; padding: 0.6rem 0.75rem; border-radius: 10px; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface-2); }

.prose { max-width: 760px; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.prose p { color: var(--muted); margin: 0.6rem 0; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.45); border-right-color: #fff; animation: spin 0.8s linear infinite; }
.loading-row { display: flex; align-items: center; gap: 0.8rem; color: var(--muted); }
.loading-row .spinner { border-color: var(--line-strong); border-right-color: var(--electric); }

/* --- scroll reveal (js/site.js adds .in) --- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* --- badge builder (certificate page) --- */

.badge-preview {
  display: grid;
  place-items: center;
  min-height: 108px;
  margin: 1rem 0 0.8rem;
  padding: 1rem;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  background: repeating-conic-gradient(#f6f8fd 0% 25%, #fff 0% 50%) 0 0 / 16px 16px;
  transition: background 0.2s;
}
.badge-preview.dark { background: #0b1530; border-color: #1b2b57; }
.badge-preview img { max-width: 100%; height: auto; }
.seg { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.seg-gap { width: 0.6rem; }
.seg-btn {
  --pad-y: 0.42rem;
  --pad-x: 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--muted);
  box-shadow: none;
  border: 1px solid transparent;
}
.seg-btn:hover { background: var(--surface-2); color: var(--ink); transform: none; box-shadow: none; }
.seg-btn.on { background: #fff; color: var(--blue); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

.share-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.7rem; }
.share-row .btn svg { width: 15px; height: 15px; }

/* --- animated explainer: the two signatures (js/explainer.js) ---
   js sets data-step (the active step), .aN on the active step (its entrance animations play) and
   .dN on steps already finished (their pieces just stay visible, no replay). */

.explainer {
  --ex-dur: 5200ms;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: clamp(1.2rem, 3vw, 2rem);
}
.ex-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.6rem; }
.ex-tab {
  --pad-y: 0;
  --pad-x: 0;
  display: block;
  text-align: left;
  background: none;
  box-shadow: none;
  color: var(--faint);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: normal;
  line-height: 1.3;
}
.ex-tab:hover { background: none; color: var(--ink); transform: none; box-shadow: none; }
.ex-tab b { font-family: var(--mono); font-weight: 600; margin-right: 0.3rem; }
.ex-tab[aria-selected="true"] { color: var(--ink); }
.ex-bar { display: block; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; margin-bottom: 0.65rem; }
.ex-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
.ex-tab.done .ex-bar i { width: 100%; }
.ex-tab[aria-selected="true"] .ex-bar i { animation: ex-fill var(--ex-dur) linear forwards; }
.explainer.paused .ex-tab[aria-selected="true"] .ex-bar i { animation-play-state: paused; }
.explainer.static .ex-tab[aria-selected="true"] .ex-bar i { animation: none; width: 100%; }
@keyframes ex-fill { to { width: 100%; } }

.ex-stage { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; }
.ex-node {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.4s, box-shadow 0.4s, opacity 0.4s, transform 0.4s;
  opacity: 0.55;
}
.explainer[data-step="1"] .ex-a,
.explainer[data-step="2"] .ex-b,
.explainer[data-step="3"] .ex-c { opacity: 1; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(0, 111, 252, 0.1), var(--shadow); transform: translateY(-3px); }
.explainer.d1 .ex-a, .explainer.d2 .ex-b { opacity: 0.85; }

.ex-head { display: flex; align-items: center; gap: 0.7rem; }
.ex-head small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.ex-head strong { font-family: var(--display); font-size: 1.02rem; letter-spacing: -0.02em; }
.ex-ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(0, 111, 252, 0.1); color: var(--electric); flex-shrink: 0; }
.ex-ico svg { width: 20px; height: 20px; }
.ex-ico.brand { background: var(--surface-2); }

.ex-label { font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.3rem; }
.ex-node code { font-family: var(--mono); font-size: 0.74rem; color: var(--ink); }
.ex-msg { background: var(--surface-2); border-radius: 10px; padding: 0.7rem 0.8rem; line-height: 1.55; }
.ex-msg code { color: var(--muted); }
.ex-key, .ex-pubkey { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.ex-key svg, .ex-pubkey svg { width: 16px; height: 16px; color: var(--sky); flex-shrink: 0; }

.ex-sig, .ex-seal, .ex-pubkey, .ex-check, .ex-verdict, .ex-arrives { opacity: 0; }
.ex-sig { border: 1px dashed var(--electric); border-radius: 10px; padding: 0.6rem 0.8rem; background: rgba(0, 111, 252, 0.04); }
.ex-type { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; }

.explainer.a1 .ex-sig { animation: ex-in 0.4s ease 0.9s forwards; }
.explainer.a1 .ex-type { animation: ex-type 1.4s steps(22) 1.2s forwards; }
.explainer.d1 .ex-sig { opacity: 1; }
.explainer.d1 .ex-type { max-width: 100%; }
@keyframes ex-type { to { max-width: 100%; } }

.ex-core { border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.8rem; }
.ex-row { display: flex; justify-content: space-between; gap: 0.6rem; font-size: 0.74rem; padding: 0.22rem 0; border-bottom: 1px dashed var(--line); }
.ex-row:last-child { border-bottom: 0; }
.ex-row span { color: var(--faint); font-family: var(--mono); }
.explainer.a2 .ex-arrives { animation: ex-arrive 0.8s ease 0.9s forwards; }
.explainer.d2 .ex-arrives { opacity: 1; }
@keyframes ex-arrive {
  0% { opacity: 0; transform: translateX(-14px); background: rgba(0, 205, 253, 0.25); }
  60% { opacity: 1; transform: none; background: rgba(0, 205, 253, 0.25); }
  100% { opacity: 1; background: transparent; }
}

.ex-seal { display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.8rem; border-radius: 12px; color: #fff; background: var(--grad); box-shadow: var(--glow); }
.ex-seal svg { width: 28px; height: 28px; flex-shrink: 0; }
.ex-seal strong { display: block; font-size: 0.86rem; }
.ex-seal code { color: rgba(255, 255, 255, 0.85); font-size: 0.7rem; }
.explainer.a2 .ex-seal { animation: ex-stamp 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) 1.9s forwards; }
.explainer.d2 .ex-seal { opacity: 1; }
@keyframes ex-stamp { 0% { opacity: 0; transform: scale(1.35) rotate(-6deg); } 100% { opacity: 1; transform: none; } }

.ex-pubkey { padding: 0.55rem 0.7rem; border-radius: 10px; background: var(--surface-2); }
.ex-checks { display: grid; gap: 0.5rem; }
.ex-check { display: flex; align-items: center; gap: 0.55rem; font-size: 0.84rem; font-weight: 600; }
.ex-check code { margin-left: auto; color: var(--faint); font-size: 0.68rem; }
.ex-tick { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex-shrink: 0; }
.ex-tick svg { width: 12px; height: 12px; }
.ex-verdict { margin-top: auto; display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--muted); }
.explainer.a3 .ex-pubkey { animation: ex-in 0.5s ease 0.9s forwards; }
.explainer.a3 .ex-c1 { animation: ex-tick 0.45s ease 1.7s forwards; }
.explainer.a3 .ex-c2 { animation: ex-tick 0.45s ease 2.3s forwards; }
.explainer.a3 .ex-verdict { animation: ex-in 0.5s ease 3s forwards; }
@keyframes ex-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ex-tick { 0% { opacity: 0; transform: scale(0.85); } 100% { opacity: 1; transform: none; } }

.ex-link { position: relative; align-self: center; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, var(--line-strong) 0 6px, transparent 6px 12px); }
.ex-dot { position: absolute; top: 50%; left: 0; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(0, 158, 252, 0.2), var(--glow); opacity: 0; }
.explainer[data-step="2"] .ex-link-ab .ex-dot,
.explainer[data-step="3"] .ex-link-bc .ex-dot { animation: ex-travel 0.9s ease-in-out 0.1s forwards; }
@keyframes ex-travel { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 12px); opacity: 0; } }

.ex-captions { margin-top: 1.4rem; min-height: 4.8em; }
.ex-cap { display: none; color: var(--muted); max-width: 780px; }
.ex-cap strong { color: var(--ink); }
.explainer[data-step="1"] .ex-cap[data-cap="1"],
.explainer[data-step="2"] .ex-cap[data-cap="2"],
.explainer[data-step="3"] .ex-cap[data-cap="3"] { display: block; animation: ex-in 0.45s ease both; }

/* Without motion (or before the script runs) everything is shown in its finished state. */
.explainer.static .ex-sig, .explainer.static .ex-seal, .explainer.static .ex-pubkey, .explainer.static .ex-check,
.explainer.static .ex-verdict, .explainer.static .ex-arrives { opacity: 1; animation: none !important; }
.explainer.static .ex-type { max-width: 100%; animation: none !important; }
.explainer.static .ex-node { opacity: 1; }

@media (max-width: 900px) {
  .ex-stage { grid-template-columns: 1fr; }
  .ex-node { min-height: 0; }
  .ex-link { height: 34px; width: 2px; margin: 4px auto; background: repeating-linear-gradient(180deg, var(--line-strong) 0 6px, transparent 6px 12px); }
  .ex-dot { left: 50%; top: 0; margin: 0 0 0 -6px; }
  .explainer[data-step="2"] .ex-link-ab .ex-dot,
  .explainer[data-step="3"] .ex-link-bc .ex-dot { animation-name: ex-travel-v; }
  @keyframes ex-travel-v { 0% { top: 0; opacity: 1; } 90% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }
  .ex-tabs { gap: 0.5rem; }
  .ex-tab { font-size: 0.78rem; }
}
section[id] { scroll-margin-top: 64px; }

/* --- works with: networks, wallets, address checker --- */

.nets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.75rem; margin-bottom: 1.4rem; }
.net {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.net:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.net img { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.net.more { color: var(--electric); background: rgba(0, 111, 252, 0.06); border-style: dashed; box-shadow: none; }
.net-plus { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }

.works-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
@media (max-width: 900px) { .works-grid { grid-template-columns: 1fr; } }
.works-grid > *, .wallet > div { min-width: 0; }
.wallets { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 480px) { .wallets { grid-template-columns: 1fr; } }
.wallet { display: flex; align-items: center; gap: 0.7rem; padding: 0.65rem 0.75rem; border-radius: 12px; background: var(--surface-2); }
.wallet img { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; }
.wallet strong { display: block; font-size: 0.92rem; }
.wallet small { display: block; font-size: 0.78rem; color: var(--muted); }
.wallet-mail { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--grad); color: #fff; flex-shrink: 0; }
.wallet-mail svg { width: 18px; height: 18px; }

.checker-form { display: flex; gap: 0.5rem; }
.checker-form input {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.88rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}
.checker-form input:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(0, 111, 252, 0.12); }
.checker-result:empty { display: none; }
.checker-result { margin-top: 1rem; border-radius: 14px; padding: 1rem 1.1rem; display: flex; gap: 0.85rem; align-items: flex-start; animation: ex-in 0.3s ease both; }
.checker-result.yes { background: var(--green-soft); border: 1px solid #b5ead6; }
.checker-result.soon { background: var(--amber-soft); border: 1px solid #f3d899; }
.checker-result.no { background: var(--surface-2); border: 1px solid var(--line); }
.checker-result img, .checker-result .cr-ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.checker-result .cr-ico { display: grid; place-items: center; color: #fff; }
.checker-result.yes .cr-ico { background: var(--green); }
.checker-result.no .cr-ico { background: var(--faint); }
.checker-result .cr-ico svg { width: 20px; height: 20px; }
.checker-result strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.checker-result p { font-size: 0.9rem; color: var(--muted); }
.checker-result p + p { margin-top: 0.45rem; }
.checker-result .btn { margin-top: 0.8rem; }

/* --- coming soon --- */

/* flex, not grid, so a short last row sits centred whatever the number of cards */
.soon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; }
.soon-grid > * { flex: 0 1 calc((100% - 2.4rem) / 3); }
@media (max-width: 960px) { .soon-grid > * { flex-basis: calc((100% - 1.2rem) / 2); } }
@media (max-width: 640px) { .soon-grid > * { flex-basis: 100%; } }
.soon-card { position: relative; background: rgba(255, 255, 255, 0.6); border-style: dashed; }
.soon-card::after {
  content: "Soon";
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--electric);
  background: rgba(0, 111, 252, 0.1);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.soon-card img, .soon-ico { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 1rem; filter: saturate(0.85); }
.soon-ico { display: grid; place-items: center; background: rgba(0, 111, 252, 0.1); color: var(--electric); }
.soon-ico svg { width: 22px; height: 22px; }
.soon-card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.soon-card p { color: var(--muted); font-size: 0.93rem; }

/* --- "what you'll need" (start page) --- */

.needs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.2rem; margin: 0 0 1.6rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface-2); }
@media (max-width: 520px) { .needs { grid-template-columns: 1fr; } }
.need { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.88rem; color: var(--muted); line-height: 1.45; }
.need svg { width: 18px; height: 18px; color: var(--electric); flex-shrink: 0; margin-top: 1px; }
.need strong { color: var(--ink); font-weight: 600; }
.needs-nets { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.35rem; }
.needs-nets span { white-space: nowrap; }
.needs-nets img { width: 18px; height: 18px; border-radius: 5px; }

.cert-nets { display: flex; align-items: center; flex-wrap: wrap; gap: 0.3rem; font-size: 0.86rem !important; color: var(--muted); }
.cert-nets img { width: 18px; height: 18px; border-radius: 5px; }
.cert-nets span { margin-left: 0.35rem; }
.option-logo { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }

.sign-hint { align-items: center; gap: 0.6rem; margin: 0 0 1rem; }
.sign-hint.waiting::before { content: ""; width: 16px; height: 16px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line-strong); border-right-color: var(--electric); animation: spin 0.8s linear infinite; }
.sign-hint.waiting { background: rgba(0, 111, 252, 0.06); border-color: rgba(0, 111, 252, 0.25); color: var(--ink); }
.kyc-steps { margin: 0.4rem 0 1.2rem; padding-left: 1.2rem; color: var(--muted); font-size: 0.93rem; display: grid; gap: 0.35rem; }

/* Wallet guide (wallets.html) */
.guide-detect h2, .guide-section h2 { font-size: 1.35rem; }
.guide-detect { margin-bottom: 2.4rem; }
.detect-rows { display: grid; gap: 0.7rem; }
.detect-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.detect-row > div { display: grid; gap: 0.25rem; min-width: 0; }
.detect-row strong { font-size: 0.97rem; }
.detect-row .faint { font-size: 0.88rem; }
.detect-found { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.guide-small { font-size: 0.86rem; margin-top: 1rem; }
.guide-section { margin: 0 0 2.8rem; padding: 0; }
.guide-section > h2 { margin-bottom: 0.4rem; }
.guide-section > .muted { margin: 0 0 1.2rem; }
.guide-how { margin: 1.2rem 0; }
.guide-how h3 { font-size: 1.08rem; margin-bottom: 0.6rem; }
.guide-how ol, .guide-list { margin: 0.4rem 0 0; padding-left: 1.25rem; color: var(--muted); display: grid; gap: 0.45rem; }
.guide-how code, .guide-list code, .guide-small code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 0.05rem 0.35rem; border-radius: 6px; }
.guide-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; align-items: start; }
.guide-wallet { display: grid; gap: 0.8rem; min-width: 0; }
.guide-wallet p { color: var(--muted); font-size: 0.93rem; margin: 0; }
.gw-head { display: flex; align-items: center; gap: 0.8rem; }
.gw-head h3 { font-size: 1.1rem; margin: 0 0 0.2rem; }
.gw-head .tag { font-size: 0.7rem; font-weight: 700; color: var(--green); background: var(--green-soft); padding: 0.2rem 0.5rem; border-radius: 999px; }
.gw-mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-family: var(--display, inherit); font-weight: 800; font-size: 1.15rem; color: #fff; flex-shrink: 0; }
.gw-mark.xverse { background: #181818; }
.gw-mark.leather { background: #bc8e5b; }
.gw-mark.unisat { background: #f7931a; color: #1b1b1b; }
.gw-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.guide-safety { border-color: #f3d899; background: linear-gradient(180deg, var(--amber-soft), #fff 70%); }
.guide-safety h2 { margin-bottom: 0.6rem; }
.guide-cta { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; margin-top: 2rem; }

/* Guides (public/guides/*, built by scripts/guides/build.py) */
.crumbs { font-size: 0.86rem; color: var(--faint); margin-bottom: 1.2rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--electric); }
.guide-updated { font-size: 0.85rem; margin-top: 0.4rem; }
.guide-article { max-width: 820px; }
.guide-article h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.guide-article h2:first-child { margin-top: 0.2rem; }
.guide-article h3 { font-size: 1.08rem; margin: 1.4rem 0 0.5rem; }
.guide-article ul, .guide-article ol { color: var(--muted); padding-left: 1.3rem; display: grid; gap: 0.45rem; margin: 0.6rem 0; }
.guide-article li b, .guide-article p b { color: var(--ink); }
.guide-article code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 0.05rem 0.35rem; border-radius: 6px; word-break: break-word; }
.guide-article .notice { margin-top: 1.4rem; }
.guide-table { width: 100%; border-collapse: collapse; margin: 0.8rem 0 1rem; font-size: 0.92rem; display: block; overflow-x: auto; }
.guide-table th, .guide-table td { text-align: left; padding: 0.6rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table th { color: var(--ink); font-weight: 600; background: var(--surface-2); }
.guide-table td { color: var(--muted); }
.guide-pre { font-family: var(--mono); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; font-size: 0.8rem; line-height: 1.55; background: #0b1530; color: #dbe6ff; padding: 1rem 1.1rem; border-radius: 14px; overflow-x: auto; white-space: pre; margin: 0.8rem 0 1.1rem; }
.guide-faq { margin-top: 0.6rem; }
.guide-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 1.3rem; margin: 2.2rem 0 0.4rem; border-radius: 16px; background: linear-gradient(135deg, rgba(0, 69, 244, 0.07), rgba(0, 205, 253, 0.1)); border: 1px solid var(--line); }
.guide-cta-box p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.93rem; }
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin: 1rem 0 1.2rem; }
.guide-card { display: grid; gap: 0.4rem; text-decoration: none; transition: border-color 0.15s, transform 0.15s; min-width: 0; }
.guide-card:hover { border-color: var(--electric); transform: translateY(-1px); }
.guide-card h3 { font-size: 1.02rem; color: var(--ink); margin: 0; }
.guide-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Privacy draft: placeholders still to fill in (remove with the brackets once final) */
.pp-fill { background: #fff4d6; color: #7a5200; padding: 0 0.25rem; border-radius: 4px; font-weight: 600; }
.prose ul { color: var(--muted); padding-left: 1.3rem; display: grid; gap: 0.45rem; margin: 0.6rem 0; }
.prose li b, .prose p b { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: 0.86em; background: var(--surface-2); padding: 0.05rem 0.35rem; border-radius: 6px; }

/* Consent checkbox (complete.html, before the identity check) */
.consent { display: flex; gap: 0.7rem; align-items: flex-start; margin: 1rem 0 1.1rem; padding: 0.9rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 0.88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 1.15rem; height: 1.15rem; margin-top: 0.15rem; flex-shrink: 0; accent-color: var(--electric); cursor: pointer; }
.consent a { color: var(--electric); }
.contact-email { font-size: 1.25rem; font-weight: 600; color: var(--electric); }

/* Patent notice, a strip above the bottom footer line */
.footer-patent { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 1.1rem 0; text-align: center; font-size: 0.8rem; color: #9aa9cc; letter-spacing: 0.01em; }
.footer-patent + .footer-base { border-top: 1px solid rgba(255, 255, 255, 0.08); }
.field select { width: 100%; font: inherit; font-size: 1rem; padding: 0.8rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.field select:focus { outline: none; border-color: var(--electric); box-shadow: 0 0 0 4px rgba(0, 111, 252, 0.14); }

/* Tier 3: chains Didit can't screen aren't offered (js/start.js) */
body.tier3 #ton-btn, body.tier3 #ada-wallets, body.tier3 #ada-none, body.tier3 #cosmos-wallets, body.tier3 #sui-wallets, body.tier3 #aptos-wallets { display: none !important; }

/* Home "works with": one full-width card, checker on top, wallets below (3 columns on desktop) */
.works-card { padding-bottom: 1.6rem; }
.works-card .checker { max-width: 760px; margin: 0 auto; text-align: center; }
.works-card .checker .checker-form { max-width: 620px; margin: 0 auto; }
.works-card .checker .checker-result { text-align: left; max-width: 620px; margin-left: auto; margin-right: auto; }
.works-wallets { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line, rgba(1, 30, 105, 0.08)); }
.works-card .wallets { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .works-card .wallets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .works-card .wallets { grid-template-columns: 1fr; } }

/* Business tier: the wallet options wait for the company details (js/start.js) */
body.tier4:not(.biz-ready) #wallet-choice, body.tier4:not(.biz-ready) #no-wallet-notice { display: none !important; }

/* Multisig signing room (multisig.html) */
.ms-progress { margin: 1.2rem 0 0.4rem; }
.ms-progress-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ms-progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--electric), #00cdfd); transition: width 0.4s ease; }
.ms-signers { list-style: none; padding: 0; margin: 0.8rem 0; display: grid; gap: 0.4rem; }
.ms-signers li { display: flex; gap: 0.8rem; align-items: center; padding: 0.55rem 0.8rem; border: 1px solid var(--line); border-radius: 12px; font-size: 0.9rem; }
.ms-signers li b { margin-left: auto; font-size: 0.8rem; color: var(--muted, #5b6b8c); }
.ms-signers li.done b { color: #0b8a5f; }
#ms-room h3, #ms-pay h3 { margin: 1.6rem 0 0.4rem; }

/* Home pricing: the Business tier, a full-width card under the three personal tiers */
.business-tier { margin-top: 1.2rem; display: grid; grid-template-columns: 1.1fr 1.4fr 0.8fr; gap: 1.6rem; align-items: center; }
.business-tier ul { margin: 0; }
@media (max-width: 960px) { .business-tier { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }

a.option-btn { text-decoration: none; color: inherit; }

/* Headings: no single word left alone on the last line (without re-flowing the rest) */
h1, h2, h3 { text-wrap: pretty; }
/* A heading whose coloured part is its own second line ("Works with" on home) */
h2.two-line .gradient-text { display: block; }

/* Reading pages: the text plus an "On this page" list (js/site.js) */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.doc-layout > .prose { max-width: none; }
.doc-toc { position: sticky; top: 96px; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.doc-toc-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--electric); margin: 0 0 0.7rem; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; }
.doc-toc a { display: block; padding: 0.35rem 0.6rem; border-radius: 8px; font-size: 0.88rem; color: var(--muted); text-decoration: none; line-height: 1.35; }
.doc-toc a:hover { color: var(--ink); background: var(--surface-2); }
.doc-toc a.active { color: var(--ink); background: var(--surface-2); font-weight: 600; }
.prose h2[id] { scroll-margin-top: 96px; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } .doc-toc { display: none; } }

/* Contact form (contact.html) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.contact-grid .field { margin: 0.6rem 0; }
.contact-grid .full { grid-column: 1 / -1; }
.contact-grid input, .contact-grid textarea { width: 100%; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form .field textarea { word-break: normal; font-size: 1rem; }
.prose .contact-form label { margin: 0; }
.req { color: #d1242f; font-weight: 700; }
.phone-row { display: flex; gap: 0.5rem; }
.phone-row select { flex: 0 0 auto; width: 7.5rem; font: inherit; font-size: 1rem; padding: 0.85rem 0.6rem; border-radius: 12px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.phone-row input { flex: 1; min-width: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #d1242f; }
.turnstile-box { margin: 0.4rem 0 0.8rem; min-height: 0; }

/* Public key page (public-key.html) */
.pk-box { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; background: var(--surface-2); }
.pk-row { display: flex; gap: 1rem; align-items: baseline; flex-wrap: wrap; margin: 0.3rem 0; }
.pk-label { flex: 0 0 6.5rem; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
.pk-value { flex: 1; min-width: 0; word-break: break-all; }
.pk-json, .pk-code { background: #010e2a; color: #dbe6ff; border-radius: 12px; padding: 1rem 1.1rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.55; overflow-x: auto; white-space: pre; margin: 0.9rem 0; }
.pk-code code { background: none; padding: 0; color: inherit; font-size: inherit; }
.pk-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* Partner verification links: no price, no card (js/start.js) */
body.partner-flow .needs .need:last-child { display: none; }
body.partner-flow #multisig-option { display: none !important; }

/* Developers: live demo (developers.html) */
.demo-box { border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem; background: var(--surface-2); }
.demo-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.demo-row select { flex: 1; min-width: 220px; }
#demo-json { max-height: 460px; overflow: auto; }
.price-table { width: 100%; border-collapse: collapse; margin: 0.6rem 0 1rem; font-size: 0.95rem; }
.price-table th, .price-table td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--line); }
.price-table td:last-child, .price-table th:last-child { text-align: right; white-space: nowrap; font-weight: 600; }

/* ---------- Developer portal (dev.verifiedwallet.io, public/dev/*) ---------- */
.dev-tag { margin-left: 0.55rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--electric); border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem 0.55rem; }
.devportal .logo { display: inline-flex; align-items: center; }
.dev-footer { padding: 2rem 0 2.6rem; font-size: 0.85rem; color: var(--muted); }
.dev-footer a { color: inherit; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: 1rem; }
.auth-side h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0.8rem 0; }
.auth-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 0.8rem; }
.auth-points li { padding-left: 1.7rem; position: relative; color: var(--muted); }
.auth-points li::before { content: "✓"; position: absolute; left: 0; color: var(--electric); font-weight: 700; }
.auth-points b { color: var(--ink); }
.auth-card { padding: 1.8rem 1.9rem; }
.auth-card .field { margin: 0.9rem 0; }
.auth-foot { margin: 1.1rem 0 0; font-size: 0.88rem; color: var(--muted); text-align: center; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.dash-head h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0.6rem 0 0.3rem; }
.dash-head .lede { margin: 0; }
.dsec { padding: 1.6rem 1.8rem; margin-bottom: 1.25rem; }
.dsec h2 { font-size: 1.2rem; margin: 0 0 0.6rem; }
.dsec h3 { font-size: 0.8rem; font-family: var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 1.6rem 0 0.6rem; }
.dsec-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.dsec-actions { display: flex; gap: 0.5rem; }
.dsec .table-scroll { margin: 0.6rem -1.8rem 0; }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.dtable th { text-align: left; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 0.6rem 1.8rem 0.5rem; border-bottom: 1px solid var(--line); }
.dtable td { padding: 0.7rem 1.8rem; border-bottom: 1px solid var(--line); }
.dtable tr:last-child td { border-bottom: none; }
.dtable td:last-child { text-align: right; }
.dtable tr.total td { font-weight: 700; }
#b-bill .dtable td, #b-prices .dtable td { padding-left: 0; padding-right: 0; }
.steps { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.7rem; }
.steps li { display: flex; gap: 0.8rem; align-items: flex-start; }
.steps .tick { flex: 0 0 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; font-size: 0.8rem; font-weight: 700; color: #fff; }
.steps li.done .tick { background: #0b8a5f; border-color: #0b8a5f; }
.steps li div { display: grid; gap: 0.1rem; }
.steps li span { color: var(--muted); font-size: 0.9rem; }
.steps li.done strong { color: var(--muted); }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.3rem; }
@media (max-width: 720px) { .form-2 { grid-template-columns: 1fr; } }
.form-2 .field, .dsec .field { margin: 0.7rem 0; }
.devportal .form-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; margin-top: 1rem; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0.9rem; margin-top: 0.4rem; }
.plan { display: grid; gap: 0.35rem; align-content: start; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 14px; }
.plan.current { border-color: var(--electric); box-shadow: 0 0 0 3px rgba(0, 111, 252, 0.08); }
.plan span { color: var(--muted); font-size: 0.9rem; }
.plan button, .plan .badge { justify-self: start; margin-top: 0.4rem; }
.newkey { display: grid; gap: 0.5rem; }
.keyline { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.keyline code { font-family: var(--mono); font-size: 0.86rem; background: #fff; padding: 0.4rem 0.6rem; border-radius: 8px; word-break: break-all; }
.linkish { background: none; border: none; padding: 0; color: var(--electric); font: inherit; cursor: pointer; text-decoration: underline; box-shadow: none; }
details.quick { margin-top: 1.2rem; }
details.quick summary { cursor: pointer; font-weight: 600; }
.dev-cta { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; margin: 1.2rem 0; }
.dev-cta .btn { text-decoration: none; }

/* Password box with a Show / Hide button (developer portal) */
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 4.6rem; }
.pw-toggle { position: absolute; right: 0.45rem; top: 50%; transform: translateY(-50%); background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 0.35rem 0.7rem; font-size: 0.82rem; font-weight: 600; box-shadow: none; cursor: pointer; }
.pw-toggle:hover { background: #fff; }
.support-card { padding: 1.7rem 1.8rem; }
.support-card .form-2 .field, .support-card .field { margin: 0.6rem 0; }
.support-card textarea { width: 100%; }
.support-card .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Verification Links (/v/<slug> and dashboard → Links) */
.link-head { max-width: none; }
.link-card { max-width: none; }
.link-steps { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 0.7rem; }
.link-steps li { display: flex; gap: 0.8rem; align-items: center; }
.link-steps .num { flex: none; width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--blue); font-weight: 700; font-size: 0.9rem; }
.vl-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 1rem; align-items: end; margin: 1rem 0 1.2rem; }
.vl-form .field { margin-bottom: 0.9rem; }
.vl-form .vl-monitor, .vl-form .form-actions { margin-bottom: 0.9rem; }
.dtable tr.off td { opacity: 0.6; }

/* Check before you send (/check) and the business directory (/directory) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.page-head.wide { max-width: none; }
.check-card, .dir-card, .dir-join { max-width: none; margin-bottom: 1.4rem; }
.check-form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.check-form input { flex: 1 1 320px; min-width: 0; }
.check-result:empty { display: none; }
.check-result { margin-top: 1.4rem; }
.verdict { border-radius: 16px; padding: 1.3rem 1.4rem; border: 1px solid var(--line); background: var(--surface-2); }
.verdict.green { background: var(--green-soft); border-color: #b5ead6; }
.verdict.red { background: var(--red-soft); border-color: #f6c0c2; }
.verdict.amber { background: var(--amber-soft); border-color: #f3d899; }
.verdict-text { font-size: 1.12rem; font-weight: 600; margin: 0.8rem 0 0.4rem; }
.verdict .addr { word-break: break-all; margin: 0 0 0.8rem; }
.verdict h3 { font-size: 0.95rem; margin: 1.1rem 0 0.4rem; }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
ul.plain .mono { word-break: break-all; }
.check-explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; }
.check-explain h3 { margin-top: 0; }
.dir-tools { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dir-tools input { flex: 1 1 280px; min-width: 0; }
.dir-table td, .dir-table th { padding-left: 0.6rem; padding-right: 0.6rem; }
.dir-table td.mono { word-break: break-all; font-size: 0.85rem; }
.dir-table td:last-child { text-align: left; }

/* Reuse a verified identity (complete page) */
.reuse-box { border: 1px solid #b5ead6; background: var(--green-soft); border-radius: 16px; padding: 1.1rem 1.2rem; margin-bottom: 1.4rem; }
.reuse-box p { margin: 0.4rem 0 0.9rem; }

/* Developer portal: team, security, account switcher */
.dash-side { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.dash-side select { width: auto; max-width: 280px; }
select.coin-select.sm { padding: 0.35rem 2rem 0.35rem 0.6rem; font-size: 0.88rem; width: auto; }
.totp-setup { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: flex-start; margin: 0.6rem 0 1rem; }
.totp-setup #s-qr svg { display: block; border: 1px solid var(--line); border-radius: 12px; }
.totp-setup > div:last-child { flex: 1 1 260px; }
#s-recovery pre { margin: 0.8rem 0 0; }

/* Status and changelog */
.status-card, .changelog .change { max-width: none; margin-bottom: 1.4rem; }
.status-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: none; }
.status-name { display: flex; flex-direction: column; }
.uptime-bar { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(90, 1fr); gap: 2px; height: 26px; }
.uptime-bar span { border-radius: 2px; background: var(--surface-2); }
.uptime-bar .ok { background: var(--green); }
.uptime-bar .warn { background: var(--amber); }
.uptime-bar .bad { background: var(--red); }
.incident { padding: 0.7rem 0; border-bottom: 1px solid var(--line); }
.incident:last-child { border-bottom: none; }
.change time { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.change h2 { margin: 0.4rem 0 0.8rem; }
.change ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.45rem; }
@media (max-width: 600px) { .uptime-bar { grid-template-columns: repeat(45, 1fr); } .uptime-bar span:nth-child(-n+45) { display: none; } }
