/* ============================================================
   SAMMY REFERENCES — DARK LUXURY THEME
   Anchored on Nirvani (midnight + chrome + champagne) and
   Integrity Agency (gold L-bracket card chrome). Shimmer + glow.
   ============================================================ */

:root {
  /* Surface — pure midnight scale */
  --bg-0: #000000;
  --bg-1: #050505;
  --bg-2: #0A0A0A;
  --bg-3: #0F0F0F;
  --bg-4: #161616;
  --bg-card: #0C0C0C;
  --bg-elevated: #181818;
  --bg-input: #131313;

  /* Ink — chrome + silver scale */
  --ink: #FFFFFF;
  --ink-1: #F1F5F9;
  --ink-2: #D7DDE8;
  --ink-3: #B0B8C4;
  --ink-soft: rgba(255, 255, 255, 0.78);
  --ink-muted: rgba(255, 255, 255, 0.52);
  --ink-faint: rgba(255, 255, 255, 0.34);

  /* Lines */
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.06);
  --line-3: rgba(255, 255, 255, 0.18);

  /* Champagne / gold — the hero accent */
  --gold: #D4C9AC;
  --gold-deep: #B8A882;
  --gold-shine: #F2ECD9;
  --gold-bright: #FFE9B0;
  --gold-glow: rgba(212, 201, 172, 0.32);
  --gold-glow-soft: rgba(212, 201, 172, 0.16);

  /* Status */
  --mint: #5EE0BB;
  --mint-glow: rgba(94, 224, 187, 0.28);
  --warn: #E89B6E;
  --warn-soft: rgba(232, 155, 110, 0.10);
  --warn-deep: #D67A45;

  /* Gradients — chrome, platinum, champagne, midnight */
  --grad-platinum: linear-gradient(135deg, #ECE9E6, #FFFFFF, #E2E2E2, #FFFFFF);
  --grad-platinum-champagne: linear-gradient(135deg, #ECE9E6 0%, #FFFFFF 22%, #F2ECD9 50%, #D4C9AC 78%, #B8A882 100%);
  --grad-chrome: linear-gradient(135deg, #E6E6E6 0%, #FFFFFF 25%, #B0B0B0 50%, #FFFFFF 75%, #E6E6E6 100%);
  --grad-mercury: linear-gradient(135deg, #FFFFFF 0%, #C0C0C0 50%, #808080 100%);
  --grad-midnight: linear-gradient(135deg, #0F0F0F 0%, #1C1C1C 50%, #0A0A0A 100%);
  --grad-obsidian: linear-gradient(135deg, #1A1A1A 0%, #050505 100%);
  --grad-champagne-warm: linear-gradient(135deg, #FFE9B0 0%, #F2ECD9 35%, #D4C9AC 65%, #B8A882 100%);
  --grad-button: linear-gradient(135deg, #F2ECD9 0%, #D4C9AC 50%, #B8A882 100%);

  /* Type */
  --serif: 'Fraunces', 'Georgia', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --hand: 'Caveat', cursive;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 48px rgba(0, 0, 0, 0.55);
  --shadow-lift: 0 8px 24px rgba(0, 0, 0, 0.6), 0 28px 64px rgba(0, 0, 0, 0.55), 0 0 32px rgba(212, 201, 172, 0.10);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-1);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

body::before {
  /* Static mercury sheen across the canvas — no motion */
  content: "";
  position: fixed;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 40% at 20% 25%, rgba(212, 201, 172, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 35% at 80% 70%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(212, 201, 172, 0.07), transparent 65%);
  filter: blur(40px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}

button { font-family: inherit; }

.serif-italic {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144;
}
.gradient-text {
  background: var(--grad-chrome);
  background-size: 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  filter: drop-shadow(0 2px 8px rgba(212, 201, 172, 0.18));
}

/* ============================================================
   ANIMATED BACKGROUND BLOBS (champagne, behind everything)
   ============================================================ */
.bg-blobs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.40;
  will-change: transform;
}
.blob-1 {
  width: 580px; height: 580px;
  background: radial-gradient(circle, rgba(253, 229, 176, 0.65) 0%, transparent 65%);
  top: -200px; left: -180px;
}
.blob-2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(212, 201, 172, 0.55) 0%, transparent 65%);
  top: 38%; right: -160px;
}
.blob-3 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(184, 168, 130, 0.40) 0%, transparent 65%);
  bottom: -140px; left: 28%;
  opacity: 0.45;
}

/* ============================================================
   PAGE HEADER (dark luxury hero)
   ============================================================ */
.page-header {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 60% 40% at 30% 10%, rgba(212, 201, 172, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 100%, rgba(253, 229, 176, 0.10), transparent 60%),
    linear-gradient(180deg, #0A0A0A 0%, #050505 60%, transparent 100%);
  color: var(--ink);
  padding: 56px 20px 64px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-header::before,
.page-header::after {
  /* Subtle hairline shimmer crawling across the top edge */
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(212, 201, 172, 0.45) 50%, transparent 100%);
  pointer-events: none;
}
.page-header::before { top: 0; }
.page-header::after  { bottom: 0; opacity: 0.4; }

.header-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
  z-index: 2;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 700;
  text-shadow: 0 0 14px var(--gold-glow);
}
.header-h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-variation-settings: "opsz" 144;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.2;
  margin: 0 0 22px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}

/* ============================================================
   FEATURED NAME CARD — IA hover treatment, Nirvani glow
   ============================================================ */
.featured-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  padding: 32px 28px 28px;
  text-align: center;
  border-radius: 22px;
  border: 1px solid var(--gold-glow);
  background:
    linear-gradient(var(--gold), var(--gold)) top 12px left 12px / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 12px left 12px / 1px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 12px right 12px / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 12px right 12px / 1px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px left 12px / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px left 12px / 1px 26px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px right 12px / 26px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px right 12px / 1px 26px no-repeat,
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(212, 201, 172, 0.16), transparent 60%),
    linear-gradient(180deg, #0E0E0E 0%, #050505 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 -1px 0 rgba(0, 0, 0, 0.50) inset,
    0 18px 48px rgba(0, 0, 0, 0.55),
    0 0 60px var(--gold-glow-soft),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  overflow: hidden;
  cursor: default;
  transform-style: preserve-3d;
  transform-origin: center center;
  transition: transform 460ms var(--ease), box-shadow 460ms var(--ease), background 460ms var(--ease), border-color 460ms var(--ease);
  outline: none;
}
.featured-card::before {
  /* Diagonal gold shimmer sweep on hover (IA pattern) */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(212, 201, 172, 0.18) 48%,
    rgba(255, 255, 255, 0.10) 52%,
    transparent 70%);
  background-size: 220% 100%;
  background-position: -100% 0;
  transition: background-position 1100ms var(--ease);
  pointer-events: none;
  border-radius: inherit;
  z-index: 0;
}
.featured-card::after {
  /* Top chrome reflection hairline (between the L-brackets) */
  content: "";
  position: absolute;
  top: 0; left: 14%; right: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), rgba(212, 201, 172, 0.50), transparent);
  pointer-events: none;
  z-index: 1;
}
.featured-card > * { position: relative; z-index: 2; }

.featured-card:hover,
.featured-card:focus-visible {
  transform: perspective(1000px) translateY(-5px) rotateX(2deg);
  border-color: var(--gold);
  background:
    linear-gradient(#FDE58C, #FDE58C) top 12px left 12px / 36px 1px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) top 12px left 12px / 1px 36px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) top 12px right 12px / 36px 1px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) top 12px right 12px / 1px 36px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) bottom 12px left 12px / 36px 1px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) bottom 12px left 12px / 1px 36px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) bottom 12px right 12px / 36px 1px no-repeat,
    linear-gradient(#FDE58C, #FDE58C) bottom 12px right 12px / 1px 36px no-repeat,
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(253, 229, 140, 0.22), transparent 60%),
    linear-gradient(180deg, #131313 0%, #060606 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.10) inset,
    0 -1px 0 rgba(0, 0, 0, 0.50) inset,
    0 24px 64px rgba(0, 0, 0, 0.65),
    0 0 80px var(--gold-glow),
    0 0 0 1px rgba(253, 229, 140, 0.20);
}
.featured-card:hover::before,
.featured-card:focus-visible::before { background-position: 200% 0; }

.featured-glow {
  /* Static radial halo that sits behind the seal */
  position: absolute;
  inset: -10%;
  background: radial-gradient(ellipse 50% 50% at 50% 30%, rgba(212, 201, 172, 0.18), transparent 60%);
  filter: blur(18px);
  pointer-events: none;
  z-index: 0;
}
.featured-seal {
  display: inline-flex;
  margin-bottom: 14px;
  filter: drop-shadow(0 6px 20px rgba(212, 201, 172, 0.45)) drop-shadow(0 0 32px rgba(212, 201, 172, 0.30));
}
.featured-eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 4px;
  font-weight: 700;
}
.featured-name {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 144;
  font-weight: 500;
  font-size: clamp(38px, 7vw, 60px);
  line-height: 1.05;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}
.featured-tag {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
  font-weight: 600;
}
.page-header h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 6.5vw, 54px);
  line-height: 1.15;
  margin: 6px 0 6px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.page-header h1 .gradient-text {
  display: block;
  margin-top: 6px;
  font-size: 1.08em;
}
.header-sub {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 15.5px;
  margin: 0;
  line-height: 1.6;
}
.header-sub strong { color: var(--ink); font-weight: 600; }

/* Benefit cards — dark glass with gold L-brackets (IA chrome) */
.benefit-cards {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 720px;
}
.benefit-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  background:
    linear-gradient(var(--gold), var(--gold)) top 8px left 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 8px left 8px / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 8px right 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 8px right 8px / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 8px left 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 8px left 8px / 1px 18px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 8px right 8px / 18px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 8px right 8px / 1px 18px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.20));
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: all 360ms var(--ease);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.benefit-card:hover {
  border-color: var(--gold-glow);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 24px var(--gold-glow-soft);
  background:
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 8px left 8px / 26px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 8px left 8px / 1px 26px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 8px right 8px / 26px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 8px right 8px / 1px 26px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 8px left 8px / 26px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 8px left 8px / 1px 26px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 8px right 8px / 26px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 8px right 8px / 1px 26px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.20));
}
.benefit-icon {
  /* Nirvani tile-icon language: radial champagne wash + multi-layer glow */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: radial-gradient(circle at 35% 30%, rgba(212, 201, 172, 0.22) 0%, rgba(0, 0, 0, 0.6) 70%);
  border: 1px solid rgba(212, 201, 172, 0.42);
  color: var(--gold-shine);
  flex-shrink: 0;
  box-shadow:
    0 0 12px rgba(212, 201, 172, 0.28),
    0 0 24px rgba(212, 201, 172, 0.14),
    inset 0 0 12px rgba(212, 201, 172, 0.08);
  transition: all 360ms var(--ease);
}
.benefit-card:hover .benefit-icon {
  background: radial-gradient(circle at 35% 30%, rgba(253, 229, 140, 0.32) 0%, rgba(0, 0, 0, 0.4) 70%);
  border-color: rgba(253, 229, 140, 0.55);
  box-shadow:
    0 0 24px rgba(253, 229, 140, 0.32),
    0 0 44px rgba(212, 201, 172, 0.20),
    inset 0 0 16px rgba(253, 229, 140, 0.12);
  color: #FFE9B0;
}
.benefit-icon svg {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefit-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.benefit-text strong {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.benefit-text span {
  color: var(--ink-muted);
  font-size: 11.5px;
  font-weight: 500;
  margin-top: 1px;
}

/* ============================================================
   CONTAINER + PROGRESS
   ============================================================ */
.container {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: -28px auto 0;
  padding: 0 20px 120px;
}

.progress {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  margin: 0 auto 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow:
    var(--shadow-card),
    0 0 24px var(--gold-glow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  width: fit-content;
}
.progress li {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-3);
  border: 1px solid var(--line);
  transition: all 380ms var(--ease);
}
.progress li.complete {
  background: var(--grad-button);
  color: #1A1500;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow-soft), 0 0 16px var(--gold-glow);
}
.progress li.active {
  background: var(--bg-3);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow-soft), 0 0 18px var(--gold-glow);
  transform: scale(1.06);
}

/* ============================================================
   CARDS (dark, with gold L-bracket chrome — IA pattern)
   ============================================================ */
.card {
  position: relative;
  background:
    linear-gradient(var(--gold), var(--gold)) top 12px left 12px / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 12px left 12px / 1px 24px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 12px right 12px / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 12px right 12px / 1px 24px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px left 12px / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px left 12px / 1px 24px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px right 12px / 24px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 12px right 12px / 1px 24px no-repeat,
    linear-gradient(180deg, var(--bg-card) 0%, #060606 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 28px 28px;
  margin-bottom: 16px;
  box-shadow:
    var(--shadow-card),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -1px 0 rgba(0, 0, 0, 0.40);
  scroll-margin-top: 24px;
  transition: box-shadow 460ms var(--ease), transform 460ms var(--ease), background 460ms var(--ease), border-color 460ms var(--ease);
  overflow: hidden;
}
.card::after {
  /* Static chrome reflection hairline at the very top — like polished metal */
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 201, 172, 0.55), transparent);
  pointer-events: none;
}
.card::before {
  /* Diagonal shimmer sweep on hover */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg,
    transparent 32%,
    rgba(212, 201, 172, 0.10) 50%,
    transparent 68%);
  background-size: 220% 100%;
  background-position: -100% 0;
  transition: background-position 1100ms var(--ease);
  pointer-events: none;
  z-index: 0;
  border-radius: 18px;
}
.card > * { position: relative; z-index: 1; }
.card:focus-within {
  border-color: var(--gold-glow);
  box-shadow: var(--shadow-lift);
}
.card:focus-within::before {
  background-position: 200% 0;
}

.card-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}
.card-num {
  font-family: var(--serif);
  font-style: italic;
  font-variation-settings: "opsz" 9;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--grad-platinum-champagne);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.card h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-variation-settings: "opsz" 144;
  font-size: clamp(24px, 4.2vw, 30px);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.card-sub {
  margin: 0 0 22px;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
}
.sub-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin: 28px 0 12px;
}

/* ============================================================
   COLLAPSED CARD STATE
   ============================================================ */
.card-collapsed {
  display: none;
  align-items: center;
  gap: 14px;
}
.card.is-done .card-body { display: none; }
.card.is-done {
  padding: 18px 22px;
  background:
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 10px left 10px / 18px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 10px left 10px / 1px 18px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 10px right 10px / 18px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 10px right 10px / 1px 18px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 10px left 10px / 18px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 10px left 10px / 1px 18px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 10px right 10px / 18px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 10px right 10px / 1px 18px no-repeat,
    linear-gradient(180deg, rgba(212, 201, 172, 0.06), rgba(0, 0, 0, 0.30));
  border-color: var(--gold-glow-soft);
}
.card.is-done .card-collapsed { display: flex; }
.card-check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--grad-button);
  color: #1A1500;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  box-shadow: 0 0 14px var(--gold-glow);
}
.card-summary-content {
  flex: 1;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.card-summary-content strong {
  color: var(--ink);
  font-weight: 600;
  font-size: 13.5px;
}
.summary-text {
  color: var(--ink-muted);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-edit {
  font-size: 13px;
  color: var(--gold);
  background: rgba(212, 201, 172, 0.08);
  border: 1px solid var(--gold-glow-soft);
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-family: inherit;
  flex-shrink: 0;
  transition: all 240ms var(--ease);
}
.card-edit:hover {
  background: var(--grad-button);
  color: #1A1500;
  border-color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--gold-glow);
}

/* ============================================================
   DONE BUTTON + ERRORS
   ============================================================ */
.card-actions {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.done-btn {
  /* Nirvani btn-nav: black core with champagne+chrome multi-layer halo */
  position: relative;
  padding: 13px 28px;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--sans);
  background: #000000;
  color: #FFFFFF;
  border: 1px solid rgba(212, 201, 172, 0.50);
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  transition: all 320ms var(--ease);
  box-shadow:
    0 0 0 1px rgba(212, 201, 172, 0.10),
    0 0 24px rgba(212, 201, 172, 0.32),
    0 0 48px rgba(212, 201, 172, 0.18),
    inset 0 0 12px rgba(212, 201, 172, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  overflow: hidden;
}
.done-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 700ms var(--ease);
  pointer-events: none;
}
.done-btn:hover {
  transform: translateY(-2px);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow:
    0 0 0 1px rgba(253, 229, 176, 0.22),
    0 0 36px rgba(212, 201, 172, 0.50),
    0 0 72px rgba(212, 201, 172, 0.32),
    inset 0 0 16px rgba(253, 229, 140, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.done-btn:hover::after { transform: translateX(100%); }
.done-btn:active { transform: translateY(0); }

.section-error {
  margin: 0;
  padding: 10px 14px;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  border-radius: 8px;
  font-size: 13px;
  color: var(--warn);
  font-weight: 500;
  align-self: stretch;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}
.card.shake { animation: shake 420ms ease-in-out; }

/* ============================================================
   FIELDS
   ============================================================ */
.field { margin-bottom: 14px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 7px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.field input,
.field textarea,
.statement-area {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 50%),
    var(--bg-input);
  border: 1px solid var(--line-3);
  border-radius: 12px;
  transition: all 260ms var(--ease);
  -webkit-appearance: none;
  appearance: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 0 0 1px rgba(0, 0, 0, 0.20);
}
.field input::placeholder,
.field textarea::placeholder,
.statement-area::placeholder {
  color: var(--ink-faint);
}
.field input:focus,
.field textarea:focus,
.statement-area:focus {
  outline: none;
  background: #1C1C1C;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow-soft), 0 0 24px var(--gold-glow-soft);
}
.field.hidden { display: none; }

/* ============================================================
   CHIPS
   ============================================================ */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.20)),
    var(--bg-3);
  border: 1px solid var(--line-3);
  border-radius: 999px;
  cursor: pointer;
  transition: all 280ms var(--ease);
  -webkit-user-select: none;
  user-select: none;
  letter-spacing: -0.005em;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.chip::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(212, 201, 172, 0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 700ms var(--ease);
}
.chip:hover {
  background: #1C1C1C;
  border-color: var(--gold-glow);
  transform: translateY(-1px);
  color: var(--gold-shine);
}
.chip:hover::after { transform: translateX(120%); }
.chip:active { transform: translateY(0); }
.chip.selected {
  background: var(--grad-button);
  color: #1A1500;
  border-color: var(--gold);
  box-shadow: 0 6px 18px var(--gold-glow), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.chip.selected:hover {
  background: var(--grad-button);
  color: #1A1500;
}
.chip.trait.selected {
  background: var(--grad-champagne-warm);
  color: #1A1500;
  border-color: var(--gold-bright);
  box-shadow: 0 6px 18px rgba(255, 233, 176, 0.32);
}

.trait-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.trait-counter {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 8px 0 16px;
  text-align: right;
  font-weight: 500;
}
.trait-counter span {
  color: var(--gold-bright);
  font-weight: 800;
  font-size: 15px;
}

.reveal {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.reveal summary {
  cursor: pointer;
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 600;
  list-style: none;
  -webkit-user-select: none;
  user-select: none;
}
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary:hover { color: var(--gold-shine); }
.reveal textarea {
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 14.5px;
  background: var(--bg-input);
  border: 1px solid var(--line-3);
  border-radius: 10px;
  color: var(--ink);
  resize: vertical;
}

/* ============================================================
   STATEMENT TABS
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  background: var(--bg-3);
  padding: 5px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
}
.tab {
  flex: 1;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 240ms var(--ease);
}
.tab.active {
  background: linear-gradient(180deg, rgba(212, 201, 172, 0.14), rgba(212, 201, 172, 0.06));
  color: var(--gold-shine);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), inset 0 1px 0 var(--gold-glow-soft);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.ai-status {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: all 240ms var(--ease);
}
.ai-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-faint);
  flex-shrink: 0;
  transition: background 240ms var(--ease);
  box-shadow: 0 0 0 0 transparent;
}
.ai-status.loading .dot {
  background: var(--gold);
  box-shadow: 0 0 14px var(--gold-glow), 0 0 28px var(--gold-glow-soft);
}
.ai-status.ready .dot {
  background: var(--mint);
  box-shadow: 0 0 14px var(--mint-glow);
}
.ai-status.error .dot { background: var(--warn); }

.statement-area {
  min-height: 320px;
  font-family: var(--serif);
  font-variation-settings: "opsz" 144;
  font-size: 17px;
  line-height: 1.7;
  resize: vertical;
  background: var(--bg-input);
  color: var(--ink-1);
  border: 1px solid var(--line-3);
}
.statement-area:focus {
  background: #1C1C1C;
  border-color: var(--gold);
}

.statement-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-muted);
}
.statement-meta .hint { color: var(--ink-faint); font-style: italic; }
#word-count-ai, #word-count-manual {
  font-weight: 800;
  color: var(--gold);
  font-size: 15px;
  text-shadow: 0 0 12px var(--gold-glow-soft);
}

.link-btn {
  background: none;
  border: none;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 240ms var(--ease);
}
.link-btn:hover:not(:disabled) {
  background: rgba(212, 201, 172, 0.10);
  color: var(--gold-shine);
}
.link-btn:disabled {
  color: var(--ink-faint);
  cursor: not-allowed;
}

/* ============================================================
   SIGNATURE
   ============================================================ */
.signature-frame {
  position: relative;
  background:
    linear-gradient(180deg, #FBFAF5, #F0EBDC);
  border: 1.5px solid var(--gold-glow);
  border-radius: 14px;
  height: 220px;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: crosshair;
  transition: all 360ms var(--ease);
  box-shadow: inset 0 0 24px rgba(212, 201, 172, 0.20), 0 0 28px var(--gold-glow-soft);
}
.signature-frame.has-signature {
  border-color: var(--gold);
  box-shadow: inset 0 0 24px rgba(212, 201, 172, 0.30), 0 0 32px var(--gold-glow);
}
#signature-pad {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.signature-baseline {
  position: absolute;
  bottom: 28px;
  left: 32px;
  right: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  opacity: 0.55;
  transition: opacity 240ms var(--ease);
}
.signature-frame.has-signature .signature-baseline { opacity: 0; }
.x-mark {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold-deep);
  line-height: 1;
}
.sig-line {
  flex: 1;
  height: 1px;
  background: var(--gold-deep);
}
.sig-label {
  font-family: var(--hand);
  font-size: 18px;
  color: var(--gold-deep);
  position: absolute;
  bottom: -22px;
  left: 44px;
}
.signature-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.affirm {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background:
    linear-gradient(var(--gold), var(--gold)) top 6px left 6px / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 6px left 6px / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 6px right 6px / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) top 6px right 6px / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 6px left 6px / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 6px left 6px / 1px 14px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 6px right 6px / 14px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) bottom 6px right 6px / 1px 14px no-repeat,
    linear-gradient(180deg, rgba(212, 201, 172, 0.06), rgba(0, 0, 0, 0.20));
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 18px;
  transition: all 280ms var(--ease);
}
.affirm:hover {
  border-color: var(--gold-glow);
  background:
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 6px left 6px / 20px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 6px left 6px / 1px 20px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 6px right 6px / 20px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) top 6px right 6px / 1px 20px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 6px left 6px / 20px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 6px left 6px / 1px 20px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 6px right 6px / 20px 1px no-repeat,
    linear-gradient(var(--gold-shine), var(--gold-shine)) bottom 6px right 6px / 1px 20px no-repeat,
    linear-gradient(180deg, rgba(212, 201, 172, 0.10), rgba(0, 0, 0, 0.20));
}
.affirm input[type="checkbox"] {
  margin: 2px 0 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}

/* ============================================================
   SUBMIT — the showpiece
   ============================================================ */
.submit-bar {
  margin-top: 36px;
  text-align: center;
}
.submit-btn {
  /* Nirvani btn-nav, scaled up — the showpiece */
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 520px;
  padding: 22px 36px;
  font-size: 14px;
  font-weight: 700;
  font-family: var(--sans);
  color: #FFFFFF;
  background: #000000;
  border: 1px solid rgba(212, 201, 172, 0.55);
  border-radius: 16px;
  cursor: pointer;
  transition: all 360ms var(--ease);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 0 0 1px rgba(212, 201, 172, 0.12),
    0 0 32px rgba(212, 201, 172, 0.42),
    0 0 64px rgba(212, 201, 172, 0.22),
    0 16px 48px rgba(0, 0, 0, 0.50),
    inset 0 0 16px rgba(212, 201, 172, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.submit-btn::before {
  /* Static chrome top reflection */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}
.submit-btn::after {
  /* Hover-only champagne sweep */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(212, 201, 172, 0.50) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 800ms var(--ease);
  pointer-events: none;
  border-radius: inherit;
}
.submit-btn:not(:disabled):hover::after { transform: translateX(100%); }
.submit-btn:not(:disabled):hover {
  transform: translateY(-3px);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
  box-shadow:
    0 0 0 1px rgba(253, 229, 176, 0.28),
    0 0 48px rgba(212, 201, 172, 0.62),
    0 0 96px rgba(212, 201, 172, 0.36),
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 0 22px rgba(253, 229, 140, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.submit-btn:not(:disabled):active { transform: translateY(0); }
.submit-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  filter: grayscale(0.6) brightness(0.7);
  background: #1A1A1A;
  border-color: var(--line);
  color: var(--ink-muted);
  box-shadow: none;
}
.submit-btn:disabled::before,
.submit-btn:disabled::after { display: none; }

.submit-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

.submit-meta {
  margin: 14px 0 0;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.form-error {
  margin-top: 16px;
  padding: 12px 16px;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  color: var(--warn);
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  display: none;
  font-weight: 500;
}
.form-error.visible { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.page-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 28px 20px 40px;
  color: var(--ink-muted);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(212, 201, 172, 0.04));
}
.footer-privacy { margin: 0; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: all 280ms var(--ease);
}
.footer-brand:hover {
  border-color: var(--gold);
  color: var(--gold-shine);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow);
  background: var(--bg-4);
}
.footer-brand strong {
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--ink);
  text-transform: uppercase;
}
.footer-brand:hover strong { color: var(--gold-bright); }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 540px) {
  .page-header { padding: 40px 18px 48px; }
  .container { padding: 0 14px 140px; margin-top: -22px; }
  .card { padding: 26px 20px 22px; border-radius: 16px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .chip { padding: 12px 16px; font-size: 14px; }
  .progress { gap: 7px; padding: 11px 16px; }
  .progress li { width: 28px; height: 28px; font-size: 11px; }

  .benefit-cards { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
  .benefit-card { padding: 12px 13px; gap: 9px; }
  .benefit-icon { width: 36px; height: 36px; }
  .benefit-icon svg { width: 18px; height: 18px; }
  .benefit-text strong { font-size: 12.5px; }
  .benefit-text span { font-size: 11px; }

  .featured-card { padding: 26px 22px 22px; max-width: 100%; }
  .featured-name { font-size: clamp(34px, 10vw, 48px); }
  .featured-eyebrow { font-size: 9px; letter-spacing: 0.24em; }
  .featured-tag { font-size: 11px; letter-spacing: 0.12em; }

  .submit-bar {
    position: sticky;
    bottom: 0;
    margin: 32px -14px -120px;
    padding: 16px 14px 28px;
    background: linear-gradient(180deg, transparent, var(--bg-1) 35%);
  }
  .submit-btn { max-width: 100%; padding: 20px 28px; }

  .signature-frame { height: 180px; }
  .blob { filter: blur(80px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }
}
