/* ---------------------------------------------------------------------
 * Prson mobile-app landing — light theme, amber accents, Inter only.
 * Mirrors the prson-website (Nuxt) brand: black logo on white, amber-400
 * primary buttons, soft pill shapes, gentle spring transitions.
 * ------------------------------------------------------------------- */

:root {
  --bg-0: #ffffff;
  --bg-1: #fafaf9;
  --bg-2: #f5f5f4;
  --bg-deep: #18181b;
  --ink-0: #0a0a0a;
  --ink-1: #1f2937;
  --ink-2: #52525b;
  --ink-3: #9ca3af;
  --ink-soft: #d4d4d8;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-300: #fcd34d;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-900: #78350f;
  --border: rgba(10, 10, 10, 0.08);
  --border-strong: rgba(10, 10, 10, 0.16);
  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 16px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 10, 10, 0.10);
  --shadow-amber: 0 8px 32px rgba(245, 158, 11, 0.20);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --content-max: 1180px;
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--ink-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: var(--amber-100);
  color: var(--ink-0);
}

/* --------------------------------------------------------------------- */
/* Background canvas — soft amber halo + subtle dot grid                 */
/* --------------------------------------------------------------------- */
.background-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(251, 191, 36, 0.10), transparent 70%),
    radial-gradient(ellipse 70% 40% at 90% 30%, rgba(245, 158, 11, 0.06), transparent 70%),
    var(--bg-0);
}

.background-canvas .grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(10, 10, 10, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, black 30%, transparent 100%);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------- */
/* Top nav                                                                */
/* --------------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 4vw, 48px);
  background: transparent;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.55);
  border-bottom-color: var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-0);
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--amber-400);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25), inset 0 0 0 1px rgba(10, 10, 10, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  width: 18px;
  height: 18px;
  display: block;
}

.brand-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink-0);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 24px);
}

.nav-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--ink-0); }

.nav-links .cta-link {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  background: var(--amber-400);
  color: var(--ink-0);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.04);
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-links .cta-link:hover {
  background: var(--amber-300);
  color: var(--ink-0);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .nav-links a:not(.cta-link) { display: none; }
}

/* --------------------------------------------------------------------- */
/* Buttons                                                                */
/* --------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.2s var(--spring), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.btn-primary {
  color: var(--ink-0);
  background: var(--amber-400);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.30), inset 0 0 0 1px rgba(10, 10, 10, 0.08);
}

.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--amber-300);
  box-shadow: 0 10px 28px rgba(245, 158, 11, 0.38), inset 0 0 0 1px rgba(10, 10, 10, 0.10);
}

.btn-primary .btn-glow { display: none; }

.btn-ghost {
  color: var(--ink-1);
  background: rgba(10, 10, 10, 0.04);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(10, 10, 10, 0.08);
  color: var(--ink-0);
}

/* --------------------------------------------------------------------- */
/* Hero                                                                   */
/* --------------------------------------------------------------------- */
.hero {
  padding: clamp(48px, 9vh, 100px) clamp(20px, 4vw, 48px) clamp(60px, 10vh, 110px);
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.hero-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  display: block;
  animation: hero-logo-pulse 2.6s ease-in-out infinite;
}

@keyframes hero-logo-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-logo { animation: none; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-2);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.02);
  margin-bottom: 24px;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-500);
  box-shadow: 0 0 8px var(--amber-400);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink-0);
  margin: 0 auto 22px;
  max-width: 18ch;
}

.gradient-text {
  position: relative;
  color: var(--amber-600);
  /* keep semantic name but render as the brand amber, with a soft underline accent */
}

.gradient-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4%;
  height: 0.30em;
  background: var(--amber-100);
  z-index: -1;
  border-radius: 4px;
}

.hero-sub {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-2);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.hero-sub .hl {
  color: var(--ink-0);
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}

.hero-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-0);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}

.meta-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber-500);
}

.meta-pill-strong {
  color: var(--ink-0);
  border-color: rgba(245, 158, 11, 0.45);
  background: var(--amber-50);
}

.meta-pill-strong .meta-dot {
  background: var(--amber-500);
  box-shadow: 0 0 8px var(--amber-400);
}

/* --------------------------------------------------------------------- */
/* Sections                                                               */
/* --------------------------------------------------------------------- */
.section {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(60px, 9vh, 96px) clamp(20px, 4vw, 48px);
}

.section-alt {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: 100%;
  padding-left: max(20px, calc((100vw - var(--content-max)) / 2 + 20px));
  padding-right: max(20px, calc((100vw - var(--content-max)) / 2 + 20px));
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin-bottom: 44px;
  max-width: 22ch;
}

/* --------------------------------------------------------------------- */
/* Feature grid                                                           */
/* --------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature {
  position: relative;
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--amber-400);
  border-radius: 0 0 2px 2px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.feature:hover::before { opacity: 1; }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--amber-50);
  border: 1px solid rgba(245, 158, 11, 0.20);
  margin-bottom: 18px;
  color: var(--amber-600);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}

.feature p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.feature-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--amber-600);
  font-weight: 600;
  text-decoration: none;
}

.feature-link:hover { text-decoration: underline; }

/* --------------------------------------------------------------------- */
/* Challenges section                                                     */
/* --------------------------------------------------------------------- */
.section-challenges {
  position: relative;
}

.challenges-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

@media (max-width: 920px) {
  .challenges-shell { grid-template-columns: 1fr; }
}

.challenges-intro .section-title { margin-bottom: 22px; }

.challenges-lede {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 28px;
}

.challenges-lede .hl-strong {
  color: var(--ink-0);
  font-weight: 700;
  background: var(--amber-100);
  padding: 1px 8px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.challenges-list {
  list-style: none;
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}

.challenges-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

.challenges-list strong {
  color: var(--ink-0);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.challenges-bullet {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 7px;
  background: var(--amber-100);
  border: 1px solid rgba(245, 158, 11, 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.challenges-bullet::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--amber-500);
}

.challenges-tagline {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
  color: var(--ink-1);
  letter-spacing: -0.015em;
  margin-top: 8px;
}

.challenges-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 560px) {
  .challenges-examples { grid-template-columns: 1fr; }
}

.challenge-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.challenge-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.challenge-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber-900);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(245, 158, 11, 0.40);
  background: var(--amber-50);
  margin-bottom: 14px;
}

.challenge-card h3 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}

.challenge-card p {
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.6;
}

.challenge-card strong {
  color: var(--ink-0);
  font-weight: 600;
}

/* --------------------------------------------------------------------- */
/* Live-capture animation block                                           */
/* --------------------------------------------------------------------- */
.capture-block {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 820px) {
  .capture-block { grid-template-columns: 1fr; gap: 28px; }
}

.capture-copy h3 {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-0);
  margin-bottom: 14px;
  line-height: 1.15;
}

.capture-copy p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.viewfinder {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 360px;
  margin: 0 auto;
  border-radius: 22px;
  background: linear-gradient(160deg, #18181b 0%, #27272a 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.viewfinder-frame {
  position: absolute;
  inset: 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.viewfinder-bracket {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--amber-400);
  border-style: solid;
}

.viewfinder-bracket.tl { top: 22px; left: 22px;  border-width: 2px 0 0 2px; border-radius: 6px 0 0 0; }
.viewfinder-bracket.tr { top: 22px; right: 22px; border-width: 2px 2px 0 0; border-radius: 0 6px 0 0; }
.viewfinder-bracket.bl { bottom: 22px; left: 22px;  border-width: 0 0 2px 2px; border-radius: 0 0 0 6px; }
.viewfinder-bracket.br { bottom: 22px; right: 22px; border-width: 0 2px 2px 0; border-radius: 0 0 6px 0; }

.viewfinder-scan {
  position: absolute;
  left: 22px;
  right: 22px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber-400), transparent);
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
  top: 22px;
  animation: scan 3.4s ease-in-out infinite;
}

@keyframes scan {
  0%   { top: 22px;       opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 22px); opacity: 0; }
}

.viewfinder-rec {
  position: absolute;
  top: 36px;
  left: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
}

.viewfinder-rec::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  animation: rec-blink 1.2s ease-in-out infinite;
}

@keyframes rec-blink {
  0%, 60% { opacity: 1; }
  80%, 100% { opacity: 0.25; }
}

.viewfinder-timer {
  position: absolute;
  top: 36px;
  right: 36px;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.85);
  font-variant-numeric: tabular-nums;
}

.viewfinder-prompt {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 100px;
  text-align: center;
  color: rgba(255, 255, 255, 0.95);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.viewfinder-prompt span {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.viewfinder-identity {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  animation: identity-fade 3.4s ease-in-out infinite;
}

@keyframes identity-fade {
  0%, 30%  { opacity: 0; transform: translateY(4px); }
  50%, 90% { opacity: 1; transform: translateY(0); }
  100%     { opacity: 0; transform: translateY(0); }
}

.viewfinder-identity-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--amber-400);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.viewfinder-identity-mark::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #0a0a0a;
}

.viewfinder-identity-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.viewfinder-identity-label small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
  .viewfinder-scan,
  .viewfinder-rec::before,
  .viewfinder-identity { animation: none; }
}

/* --------------------------------------------------------------------- */
/* Steps                                                                  */
/* --------------------------------------------------------------------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 30px 28px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.step:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--amber-900);
  background: var(--amber-100);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}

.step p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------- */
/* Crypto animation section                                               */
/* --------------------------------------------------------------------- */
.section-crypto {
  background: var(--bg-deep);
  color: #fafafa;
  border-radius: 0;
  max-width: 100%;
  padding: clamp(72px, 12vh, 120px) clamp(20px, 4vw, 48px);
  border-top: 1px solid #27272a;
  border-bottom: 1px solid #27272a;
}

.section-crypto .crypto-shell {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

@media (max-width: 920px) {
  .section-crypto .crypto-shell { grid-template-columns: 1fr; }
}

.section-crypto .section-eyebrow { color: var(--amber-300); }

.section-crypto .section-title {
  color: #fff;
  margin-bottom: 18px;
}

.section-crypto .section-title .gradient-text {
  color: var(--amber-300);
}

.section-crypto .section-title .gradient-text::after {
  background: rgba(252, 211, 77, 0.18);
}

.crypto-lede {
  color: rgba(250, 250, 250, 0.75);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.crypto-points {
  list-style: none;
  display: grid;
  gap: 14px;
}

.crypto-points li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  color: rgba(250, 250, 250, 0.70);
  font-size: 14.5px;
  line-height: 1.6;
}

.crypto-points strong {
  color: #fff;
  font-weight: 600;
  display: block;
}

.crypto-points .tick {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(252, 211, 77, 0.14);
  border: 1px solid rgba(252, 211, 77, 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  color: var(--amber-300);
}

.crypto-points .tick svg { width: 12px; height: 12px; }

.crypto-pipeline {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 24px;
  border-radius: 20px;
  background: linear-gradient(160deg, #27272a 0%, #18181b 100%);
  border: 1px solid #3f3f46;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.40);
}

.crypto-pipeline::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(252, 211, 77, 0.25), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.crypto-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crypto-tag {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.50);
}

.crypto-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-300);
}

.crypto-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber-300);
  box-shadow: 0 0 8px rgba(252, 211, 77, 0.7);
  animation: dot-pulse 2s ease-in-out infinite;
}

.crypto-stage {
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.crypto-stage-label {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250, 250, 250, 0.45);
  margin-bottom: 8px;
}

.crypto-stage .crypto-line {
  display: block;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 12.5px;
  line-height: 1.5;
  color: #fafafa;
  opacity: 0;
  transform: translateY(4px);
  animation: crypto-line-in 6s var(--spring) infinite;
}

.crypto-stage .crypto-line.l1 { animation-delay: 0s;    }
.crypto-stage .crypto-line.l2 { animation-delay: 0.45s; color: var(--amber-300); }
.crypto-stage .crypto-line.l3 { animation-delay: 0.9s;  color: var(--amber-300); font-weight: 600; }

@keyframes crypto-line-in {
  0%, 5%   { opacity: 0; transform: translateY(4px); }
  15%, 80% { opacity: 1; transform: translateY(0); }
  90%, 100% { opacity: 0.55; }
}

.crypto-arrow {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(252, 211, 77, 0.7);
}

.crypto-arrow svg {
  width: 18px;
  height: 18px;
  animation: arrow-drift 1.8s ease-in-out infinite;
}

@keyframes arrow-drift {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(3px); opacity: 1; }
}

.crypto-stage-sig {
  border: 1px solid rgba(252, 211, 77, 0.30);
  background: rgba(252, 211, 77, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .crypto-status::before,
  .crypto-arrow svg,
  .crypto-stage .crypto-line { animation: none; opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------- */
/* Trust cards                                                            */
/* --------------------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.trust-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-2px);
  border-color: var(--amber-300);
  box-shadow: var(--shadow-md);
}

.trust-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
  color: var(--ink-0);
}

.trust-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------- */
/* CTA card                                                               */
/* --------------------------------------------------------------------- */
.section-cta {
  padding-top: clamp(40px, 7vh, 72px);
  padding-bottom: clamp(80px, 12vh, 128px);
}

.cta-card {
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--amber-50) 0%, var(--bg-0) 60%);
  border: 1px solid rgba(245, 158, 11, 0.30);
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 3.8vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin: 8px auto 16px;
  max-width: 22ch;
  position: relative;
}

.cta-sub {
  color: var(--ink-2);
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 16px;
  position: relative;
}

.section-cta .cta-row {
  margin-bottom: 0;
  position: relative;
}

/* --------------------------------------------------------------------- */
/* Footer                                                                 */
/* --------------------------------------------------------------------- */
.footer {
  padding: 28px clamp(20px, 4vw, 48px) 36px;
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: var(--content-max);
  margin: 0 auto 12px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

.footer-links a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease;
}

.footer-links a:hover { color: var(--ink-0); }

.footer-fine {
  max-width: var(--content-max);
  margin: 0 auto;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------- */
/* Selective-disclosure section                                           */
/* --------------------------------------------------------------------- */
.disclose-lede {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.7;
  max-width: 64ch;
  margin: -22px 0 36px;
}

.disclose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.disclose-card {
  position: relative;
  padding: 24px 24px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.disclose-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.disclose-question {
  display: inline-block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink-0);
  letter-spacing: -0.005em;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--amber-100);
  border: 1px solid rgba(245, 158, 11, 0.30);
  margin-bottom: 10px;
}

.disclose-without {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 12px;
}

.disclose-without::before {
  content: '✕';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.06);
  color: var(--ink-2);
  font-size: 9px;
  font-weight: 700;
  flex-shrink: 0;
}

.disclose-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.disclose-card em {
  color: var(--ink-0);
  font-style: normal;
  font-weight: 600;
}

/* --------------------------------------------------------------------- */
/* Legal pages (privacy, terms)                                           */
/* --------------------------------------------------------------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) clamp(20px, 4vw, 40px) clamp(64px, 10vh, 112px);
}

.legal-back {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s ease;
}

.legal-back:hover { color: var(--ink-0); }

.legal-title {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--ink-3);
  font-size: 13px;
  margin-bottom: 36px;
}

.legal section {
  margin-bottom: 28px;
}

.legal h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-0);
  margin-bottom: 12px;
}

.legal h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-1);
  margin-top: 14px;
  margin-bottom: 8px;
}

.legal p,
.legal li {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.7;
}

.legal p + p { margin-top: 10px; }

.legal ul {
  margin: 8px 0 0 22px;
  padding: 0;
}

.legal ul li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--amber-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.30);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.legal a:hover {
  color: var(--amber-900);
  border-bottom-color: var(--amber-600);
}

.legal strong { color: var(--ink-0); font-weight: 600; }

/* --------------------------------------------------------------------- */
/* Early-access form                                                      */
/* --------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.access-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.access-form-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 14px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--bg-0);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-0);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}

.access-form-input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}

.access-form-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

.access-form .btn {
  flex: 0 0 auto;
}

.access-form-note {
  flex-basis: 100%;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-2);
  text-align: center;
  min-height: 1.2em;
  transition: color 0.2s ease;
}

.access-form-note.is-success { color: var(--amber-900); font-weight: 600; }
.access-form-note.is-error   { color: #b91c1c; font-weight: 600; }

.access-form-fine {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.55;
}

.access-form-fine a {
  color: var(--amber-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.30);
}

.access-form-fine a:hover { color: var(--amber-900); }

/* --------------------------------------------------------------------- */
/* 404 page                                                               */
/* --------------------------------------------------------------------- */
.notfound {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(64px, 14vh, 140px) clamp(20px, 4vw, 40px) clamp(64px, 10vh, 112px);
  text-align: center;
}

.notfound-code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--amber-600);
  margin-bottom: 18px;
}

.notfound-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink-0);
  margin: 0 auto 18px;
  max-width: 16ch;
}

.notfound-sub {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 36px;
}

.notfound-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.notfound-path {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}

.notfound-path-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: left;
}

.notfound-path code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13.5px;
  color: var(--ink-0);
  word-break: break-all;
  text-align: left;
}

/* --------------------------------------------------------------------- */
/* Universal-link fallback pages (/identity/*, /id/*)                     */
/* --------------------------------------------------------------------- */
.deep-link {
  max-width: 640px;
  margin: 0 auto;
  padding: clamp(48px, 10vh, 96px) clamp(20px, 4vw, 40px) clamp(64px, 10vh, 112px);
  text-align: center;
}

.deep-link .eyebrow { margin-bottom: 22px; }

.deep-link-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink-0);
  margin: 0 auto 20px;
  max-width: 18ch;
}

.deep-link-sub {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 520px;
  margin: 0 auto 32px;
}

.deep-link-card {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  margin: 0 auto 28px;
  max-width: 100%;
}

.deep-link-card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--amber-600);
}

.deep-link-id {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 13.5px;
  color: var(--ink-0);
  word-break: break-all;
  text-align: left;
}

.deep-link-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.deep-link-stores {
  margin: 0 auto 28px;
}

.deep-link-fine {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto;
}

.deep-link-fine a {
  color: var(--amber-600);
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 158, 11, 0.30);
}

.deep-link-fine a:hover { color: var(--amber-900); }

/* --------------------------------------------------------------------- */
/* Store badges (Remote-Config-gated)                                     */
/* --------------------------------------------------------------------- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.store-badges[hidden] { display: none; }

.store-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.2s var(--spring), filter 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.store-badge img {
  height: 100%;
  width: auto;
  display: block;
}

.store-badge-play img {
  /* Google's PNG ships with extra transparent padding around the
     artwork; cropping visually with a small negative margin keeps
     it visually balanced next to Apple's tighter SVG. */
  height: 84px;
  margin: -14px 0;
}

@media (max-width: 420px) {
  .store-badge { height: 48px; }
  .store-badge-play img { height: 72px; margin: -12px 0; }
}

/* --------------------------------------------------------------------- */
/* Scroll reveal                                                          */
/* --------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s var(--spring), transform 0.55s var(--spring);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------------------
 * Token pages: /verify, /challenge, /share
 *
 * Three landing pages served as static HTML + ES modules. They share
 * the existing brand (white background, amber accents, Inter) — only
 * page-specific layout lives here. Visit:
 *   • verify.html   → multi-proof viewer with GyroFrame + drawers
 *   • challenge.html → challenge slots + "Open in Prson" CTA
 *   • share.html    → identity card + signed-fragment badges
 * ------------------------------------------------------------------- */

.page-token main.token-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 48px;
}

.token-eyebrow-row {
  margin-bottom: 6px;
}

/* Shared loading / error states */
.token-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 64px 0;
  color: var(--ink-2);
  font-size: 14px;
}

.dots-loader {
  display: inline-flex;
  gap: 6px;
}
.dots-loader span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber-400);
  animation: dotPulse 1.2s ease-in-out infinite;
}
.dots-loader span:nth-child(2) { animation-delay: 0.15s; }
.dots-loader span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0.65); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

.token-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}
.token-error-card {
  text-align: center;
  max-width: 420px;
  padding: 28px 24px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.token-error-card .verify-error-icon,
.token-error-card .challenge-error-icon,
.token-error-card .share-error-icon {
  color: var(--amber-600);
}
.token-error-card .share-error-icon.is-expired {
  color: var(--amber-500);
}
.token-error-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-0);
  margin: 0;
}
.token-error-msg {
  color: var(--ink-2);
  font-size: 15px;
  margin: 0 0 6px;
}

/* Spin animation reused by inline SVGs marked .spin */
.spin {
  animation: tokenSpin 1.1s linear infinite;
  transform-origin: 50% 50%;
}
@keyframes tokenSpin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------------
 * verify.html
 * ------------------------------------------------------------------- */

.verify-viewer {
  position: relative;
  margin-top: 8px;
}

.verify-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.verify-title-block { min-width: 0; }
.verify-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.verify-title {
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-0);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.verify-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.verify-chip.is-strong  { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.verify-chip.is-weak    { color: var(--amber-900); background: var(--amber-50); border-color: var(--amber-300); }
.verify-chip.is-failed  { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.verify-chip.is-neutral { color: var(--ink-2); background: var(--bg-2); border-color: var(--border); }

.verify-stage-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  min-height: 320px;
  box-shadow: var(--shadow-sm);
}

.verify-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 280px;
  perspective: 1500px;
}

.verify-empty {
  color: var(--ink-3);
  font-size: 14px;
  padding: 48px 16px;
}

.gyro-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  perspective: 1500px;
  overflow: hidden;
}
.gyro-frame {
  position: relative;
  width: min(86vw, 480px);
  max-height: 64vh;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b0b0c;
  box-shadow: 0 20px 60px -10px rgba(10, 10, 10, 0.22);
  transition: transform 80ms linear;
  transform-style: preserve-3d;
  will-change: transform;
}
.gyro-frame .media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.verify-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--bg-0);
  color: var(--ink-1);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, transform 0.12s ease, color 0.15s ease;
}
.verify-nav-btn:hover {
  background: var(--bg-1);
  color: var(--ink-0);
  transform: translateY(-50%) scale(1.04);
}
.verify-nav-btn.left  { left: 6px; }
.verify-nav-btn.right { right: 6px; }
.verify-nav-btn[hidden] { display: none; }

.verify-actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verify-action-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-0);
  border: 1px solid var(--border);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.verify-action-btn:hover {
  background: var(--bg-1);
  color: var(--ink-0);
}
.verify-action-btn.is-active {
  background: var(--amber-50);
  color: var(--amber-900);
  border-color: var(--amber-300);
}
.verify-action-btn[hidden] { display: none; }

.verify-position {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

/* Drawer */
.verify-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 80;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.verify-drawer-backdrop.is-open { opacity: 1; }
.verify-drawer {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-0);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 8px 16px 24px;
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(10, 10, 10, 0.12);
  transform: translateY(100%);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.verify-drawer-backdrop.is-open .verify-drawer { transform: translateY(0); }

.verify-drawer-handle {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--ink-soft);
  margin: 0 auto 8px;
}
.verify-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
}
.verify-drawer-head h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--ink-0);
}
.verify-drawer-close {
  background: transparent;
  border: 0;
  color: var(--ink-2);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  display: inline-flex;
}
.verify-drawer-close:hover { color: var(--ink-0); background: var(--bg-2); }

.verify-index-list {
  list-style: none;
  margin: 0;
  padding: 0 4px 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.verify-index-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 12px;
  background: transparent;
  border: 0;
  color: var(--ink-1);
  cursor: pointer;
  text-align: left;
  transition: background 0.12s ease;
}
.verify-index-row:hover { background: var(--bg-1); }
.verify-index-row.is-active { background: var(--amber-50); }
.verify-index-num {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.verify-index-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.verify-index-type {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: capitalize;
}
.verify-index-verdict {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 6px;
  text-transform: uppercase;
}
.verify-index-verdict.is-strong  { background: #ecfdf5; color: #047857; }
.verify-index-verdict.is-weak    { background: var(--amber-50); color: var(--amber-900); }
.verify-index-verdict.is-failed  { background: #fef2f2; color: #b91c1c; }
.verify-index-verdict.is-neutral { background: var(--bg-2); color: var(--ink-2); }

.verify-details-body {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
}
.verify-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.verify-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  font-size: 14px;
}
.verify-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
}
.verify-card-value {
  color: var(--ink-0);
  text-align: right;
}
.verify-card-pill {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 6px;
}
.verify-card-pill.is-strong  { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.verify-card-pill.is-weak    { background: var(--amber-50); color: var(--amber-900); border: 1px solid var(--amber-300); }
.verify-card-pill.is-failed  { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.verify-card-pill.is-neutral { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--border); }

.verify-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
}
.verify-notes {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-2);
}
.verify-notes summary {
  cursor: pointer;
  color: var(--ink-2);
}
.verify-notes ul {
  margin: 8px 0 0;
  padding-left: 16px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------
 * challenge.html
 * ------------------------------------------------------------------- */

.challenge-header {
  max-width: 560px;
  margin: 0 auto 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.challenge-prompt {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-0);
  margin: 0;
}
.challenge-expiry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-size: 13px;
}

.challenge-slot-list-wrap {
  max-width: 560px;
  margin: 0 auto;
}
.challenge-slot-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin: 12px 0 10px;
}
.challenge-slot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.challenge-slot-card {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-1);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.challenge-slot-num {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
  border: 1px solid var(--amber-300);
}
.challenge-slot-body {
  flex: 1;
  min-width: 0;
}
.challenge-slot-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.challenge-slot-icon {
  color: var(--ink-3);
  display: inline-flex;
}
.challenge-slot-name {
  font-weight: 600;
  color: var(--ink-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.challenge-slot-type-pill {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-2);
  white-space: nowrap;
  margin-left: auto;
}
.challenge-slot-desc {
  font-size: 13px;
  color: var(--ink-2);
  margin: 6px 0 0;
}
.challenge-slot-detail {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  margin: 6px 0 0;
}
.challenge-constraints {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--amber-50, rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.challenge-constraint-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
}
.challenge-constraint-line svg {
  flex: 0 0 auto;
  color: var(--amber-600, #d97706);
}
.challenge-slot-reqs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.challenge-req-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-900);
  border: 1px solid var(--amber-300);
}

.challenge-cta {
  max-width: 560px;
  margin: 28px auto 0;
}
.challenge-open-btn {
  width: 100%;
}
.challenge-fine {
  font-size: 12px;
  color: var(--ink-3);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.55;
}

/* ---------------------------------------------------------------------
 * share.html
 * ------------------------------------------------------------------- */

.share-content {
  max-width: 640px;
  margin: 0 auto;
}

.share-identity-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin: 12px 0 16px;
}
.share-avatar {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--amber-50);
  color: var(--amber-900);
  border: 1px solid var(--amber-300);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.share-identity-meta {
  min-width: 0;
  flex: 1;
}
.share-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink-0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-signed-by {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}

.share-empty {
  padding: 36px 16px;
  text-align: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  font-size: 14px;
}

.share-properties {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-property {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.share-property-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.share-property-icon {
  color: var(--ink-2);
  flex-shrink: 0;
  margin-top: 2px;
}
.share-property-meta {
  min-width: 0;
  flex: 1;
}
.share-property-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-0);
}
.share-property-value {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  color: #047857;
  margin-top: 3px;
  word-break: break-all;
}
.share-property-hash {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
}
.share-property-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
}

/* Fragment badges (rendered by signed-fragment-badges.js) */
.fragment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fragment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid;
}
.fragment-pill .fragment-icon {
  display: inline-flex;
  align-items: center;
}
.fragment-pill .fragment-shield {
  display: inline-flex;
  opacity: 0.7;
}
.fragment-pill.is-pending {
  background: var(--amber-50);
  color: var(--amber-900);
  border-color: var(--amber-300);
}
.fragment-pill.is-valid {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}
.fragment-pill.is-invalid {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}
.fragment-pill.is-expired {
  background: var(--bg-2);
  color: var(--ink-2);
  border-color: var(--border);
}
.fragment-tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.8;
  padding: 0 2px;
}

/* Action row */
.share-actions {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
}
@media (min-width: 540px) {
  .share-actions { grid-template-columns: 1fr 1fr; }
}
.share-action-btn { width: 100%; }
.share-pdf-error {
  font-size: 13px;
  color: #b91c1c;
  margin: 8px 0 0;
  text-align: center;
}

/* Trust cert section */
.share-cert-section {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
.share-cert-head {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.share-cert-head-icon {
  color: #047857;
  flex-shrink: 0;
  margin-top: 2px;
}
.share-cert-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-0);
}
.share-cert-sub-title {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  line-height: 1.55;
}
.share-cert-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 13px;
}
.share-cert-fingerprint {
  border: 1px solid var(--border);
  background: var(--bg-0);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 14px;
}
.share-cert-fp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.share-cert-fp-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.share-cert-fp {
  flex: 1;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  color: #047857;
  word-break: break-all;
}
.share-cert-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-0);
  color: var(--ink-2);
  cursor: pointer;
  flex-shrink: 0;
}
.share-cert-copy:hover { background: var(--bg-1); color: var(--ink-0); }
.share-cert-sub {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 6px;
}
.share-cert-sub .share-cert-subject,
.share-cert-sub .share-cert-nb,
.share-cert-sub .share-cert-na {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  color: var(--ink-1);
}
.share-cert-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid #a7f3d0;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  margin-bottom: 14px;
}
.share-cert-download-btn:hover { background: #d1fae5; }
.share-cert-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
}
.share-cert-steps li { margin-bottom: 6px; }
.share-cert-steps code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  background: var(--bg-0);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border);
}
.share-cert-steps .share-ok { color: #047857; }
.share-cert-note {
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 12px;
  line-height: 1.55;
}

.share-footnote {
  margin-top: 28px;
  text-align: center;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
}
