/* ==========================================================================
   Laissez — Interactive Animated FTUX Prototype
   Grounded in iqlusion-tokens.css (data-brand="passport") & Paper Storyboard
   ========================================================================== */

:root {
  --ease-passport: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-stamp: cubic-bezier(0.22, 1, 0.36, 1);
  --amber: #b4690e;
  --amber-soft: #fef5e7;
  --amber-line: #f3d9a4;
  --mint-soft: #e6f9f0;
  --mint-line: #b5ecd3;
  --indigo-line: #d3c8f7;
  --danger: #c92a2a;
  --danger-soft: #2e1519;
  --danger-line: #8a2c35;
}

body {
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--iq-paper);
  color: var(--iq-ink);
  font-family: var(--iq-font-sans);
}

/* --- Prototype Chrome Header --- */
.proto-header {
  background: var(--iq-surface);
  border-block-end: 1px solid var(--iq-line);
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
}

.proto-header-inner {
  max-inline-size: 1440px;
  margin-inline: auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}

.proto-brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proto-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--iq-ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.proto-pill {
  font-family: var(--iq-font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: var(--iq-accent-soft);
  color: var(--iq-accent);
}

.proto-flows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  background: var(--iq-paper);
  padding: 0.25rem;
  border-radius: var(--iq-radius-md);
  border: 1px solid var(--iq-line);
}

.flow-tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--iq-muted);
  font-family: var(--iq-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.flow-tab:hover {
  color: var(--iq-ink);
}

.flow-tab[aria-selected="true"] {
  background: var(--iq-ink);
  color: var(--iq-surface);
}

.proto-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.toggle-chip,
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--iq-line);
  background: var(--iq-surface);
  color: var(--iq-ink);
  font-family: var(--iq-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.toggle-chip[aria-pressed="true"] {
  border-color: var(--iq-accent);
  background: var(--iq-accent-soft);
  color: var(--iq-accent);
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--iq-line-strong);
}

.toggle-chip[aria-pressed="true"] .chip-dot {
  background: var(--iq-accent);
}

.icon-btn:hover,
.toggle-chip:hover {
  border-color: var(--iq-line-strong);
}

.proto-stepbar {
  max-inline-size: 1440px;
  margin-inline: auto;
  padding: 0.5rem 1.5rem 0.65rem;
  border-block-start: 1px solid var(--iq-surface-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.step-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.step-pill {
  appearance: none;
  border: 1px solid var(--iq-line);
  background: var(--iq-paper);
  color: var(--iq-muted);
  font-family: var(--iq-font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 160ms ease;
}

.step-pill.is-done {
  background: var(--mint-soft);
  border-color: var(--mint-line);
  color: var(--iq-accent-cta-ink);
}

.step-pill.is-active {
  background: var(--iq-accent);
  border-color: var(--iq-accent);
  color: #ffffff;
}

.step-arrow {
  color: var(--iq-line-strong);
  font-family: var(--iq-font-mono);
  font-size: 0.75rem;
}

.step-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.timer-badge {
  font-family: var(--iq-font-mono);
  font-size: 0.75rem;
  color: var(--iq-muted);
}

.reset-link {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--iq-accent);
  font-family: var(--iq-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* --- Main Stage --- */
.proto-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 2.5rem;
}

.stage-viewport {
  inline-size: 100%;
  max-inline-size: 1220px;
  display: flex;
  justify-content: center;
}

/* --- Surface Shells (Web, Desktop, Mobile, Night Admin) --- */
.shell {
  inline-size: 100%;
  border-radius: 16px;
  border: 1px solid var(--iq-line);
  background: var(--iq-paper);
  box-shadow: 0 22px 54px -26px rgba(16, 22, 34, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shell-desktop {
  flex-direction: row;
}

.desktop-spine {
  inline-size: 8px;
  background: var(--iq-accent);
  flex-shrink: 0;
}

.desktop-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
}

.shell-night {
  background: var(--iq-night);
  border-color: var(--iq-night-line);
  color: var(--iq-night-ink);
}

.shell-mobile {
  max-inline-size: 396px;
  border-radius: 38px;
  border: 6px solid #141923;
  background: var(--iq-paper);
  box-shadow: 0 28px 64px -20px rgba(16, 22, 34, 0.35);
}

.shell-mobile.shell-night {
  background: var(--iq-night);
  color: var(--iq-night-ink);
}

.surface-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.75rem;
  background: var(--iq-surface);
  border-block-end: 1px solid var(--iq-line);
}

.shell-night .surface-bar {
  background: var(--iq-night);
  border-block-end-color: var(--iq-night-line);
}

.surface-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.mono-tag {
  font-family: var(--iq-font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--iq-accent-soft);
  color: var(--iq-accent);
}

.mono-tag.mint {
  background: var(--mint-soft);
  color: var(--iq-accent-cta-ink);
}

.mono-tag.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.mono-tag.dark-mint {
  background: #122b22;
  color: var(--iq-accent-cta);
}

.mono-tag.dark-danger {
  background: var(--danger-soft);
  color: #f59f9f;
}

.banner-amber {
  padding: 0.7rem 1.75rem;
  background: var(--amber-soft);
  border-block-end: 1px solid var(--amber-line);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.banner-indigo {
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--iq-accent-soft);
  border: 1px solid var(--indigo-line);
  color: var(--iq-accent);
  font-size: 0.78rem;
  font-weight: 600;
}

/* --- Layout Helpers --- */
.stage-split {
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  padding: 2.5rem 2.75rem;
  align-items: center;
}

.stage-col {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.stage-center {
  padding: 2.5rem 2.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.stage-pad {
  padding: 2rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.eyebrow {
  font-family: var(--iq-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--iq-accent);
}

.shell-night .eyebrow {
  color: var(--iq-accent-cta);
}

.hero-title {
  font-size: clamp(1.75rem, 2.5vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lead {
  color: var(--iq-muted);
  font-size: 0.96rem;
  line-height: 1.58;
}

.shell-night .lead {
  color: var(--iq-night-muted);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 8px;
  border: 1px solid #24a370;
  background: var(--iq-accent-cta);
  color: var(--iq-accent-cta-ink);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}

.btn-primary:hover {
  background: var(--iq-accent-cta-hover);
}

.btn-primary:active {
  transform: scale(0.985);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--iq-line-strong);
  background: var(--iq-surface);
  color: var(--iq-ink);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease;
}

.btn-secondary:hover {
  background: var(--iq-surface-subtle);
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--danger-line);
  background: var(--danger-soft);
  color: #f59f9f;
  font-family: var(--iq-font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-danger:hover {
  background: #421b20;
}

/* --- Cinematic 3D Multi-Leaf Passport Spread --- */
.passport-stage {
  perspective: 1800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.5rem;
}

.passport-spread {
  position: relative;
  inline-size: 100%;
  max-inline-size: 560px;
  block-size: 388px;
  display: flex;
  justify-content: flex-end;
  transform-style: preserve-3d;
}

/* Right-half book anchor so flipped leaves land cleanly on the left half */
.passport-book {
  position: relative;
  inline-size: 56%;
  block-size: 100%;
  transform-style: preserve-3d;
  transition: transform 680ms var(--ease-passport);
}

.passport-book.is-closed {
  transform: translateX(-36%) rotateX(3deg) rotateY(-5deg);
}

.passport-book.is-open {
  transform: translateX(0%) rotateX(1deg) rotateY(0deg);
}

/* Base right-hand final folio (Folio 04 - Live Interactive Proofs) */
.passport-base-page {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  background:
    radial-gradient(circle at 10px 10px, rgba(59, 45, 122, 0.055) 1px, transparent 1px) 0 0 / 14px 14px,
    #ffffff;
  border: 1px solid var(--iq-line);
  border-inline-start: 4px solid #cfc9e6;
  box-shadow:
    3px 3px 0 -1px #eef1f5,
    3px 3px 0 0 var(--iq-line),
    6px 6px 0 -1px #f7f8fa,
    6px 6px 0 0 #d4dce6,
    0 24px 44px -20px rgba(20, 25, 35, 0.3);
  padding: 1.05rem 1.05rem 0.95rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
  z-index: 1;
}

.passport-ribbon {
  position: absolute;
  inset-block-end: -14px;
  inset-inline-end: 28px;
  inline-size: 16px;
  block-size: 24px;
  background: var(--iq-accent-cta);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 74%, 0 100%);
  box-shadow: 0 6px 12px rgba(6, 21, 14, 0.2);
  z-index: 0;
}

/* Individual 3D Flippable Leaves (Cover + 3 Interior Pages) */
.passport-leaf {
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform-style: preserve-3d;
  transition:
    transform 1350ms cubic-bezier(0.22, 1, 0.36, 1),
    z-index 0ms linear 675ms;
  cursor: pointer;
}

.passport-leaf.is-turned {
  transform: rotateY(-176deg);
}

/* Phase 1: Top-right corner peel exposing the real next page underneath */
.leaf-paper:not(.leaf-back) {
  clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%);
  transition: clip-path 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.passport-leaf.is-peeling .leaf-paper:not(.leaf-back) {
  clip-path: polygon(0 0, calc(100% - 76px) 0, 100% 76px, 100% 100%, 0 100%);
}

.page-corner-wrap {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  inline-size: 76px;
  block-size: 76px;
  pointer-events: none;
  z-index: 6;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  filter: drop-shadow(-5px 5px 8px rgba(20, 25, 35, 0.22));
}

.page-corner-flap {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 0;
  inline-size: 0;
  block-size: 0;
  opacity: 0;
  border-radius: 0 0 0 6px;
  clip-path: polygon(0 0, 0 100%, 100% 100%);
  background: linear-gradient(
    225deg,
    #cfd6e4 0%,
    #eef1f7 38%,
    #ffffff 66%,
    #e8ecf4 100%
  );
  transition:
    inline-size 520ms cubic-bezier(0.22, 1, 0.36, 1),
    block-size 520ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 240ms ease;
}

.passport-leaf.is-peeling .page-corner-flap {
  inline-size: 76px;
  block-size: 76px;
  opacity: 1;
}

/* Soft moving light & shadow sweep as each page arcs across the spine */
.leaf-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    90deg,
    rgba(20, 25, 35, 0.16) 0%,
    rgba(255, 255, 255, 0.22) 42%,
    rgba(20, 25, 35, 0.1) 82%,
    rgba(20, 25, 35, 0.2) 100%
  );
}

.passport-leaf.is-turning .leaf-face::after,
.passport-leaf.is-turning-back .leaf-face::after {
  animation: page-curl-shade 1350ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes page-curl-shade {
  0% {
    opacity: 0;
  }
  44% {
    opacity: 0.85;
  }
  78% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
  }
}

/* Stack order while un-turned (right side) vs turned (left side) */
.passport-leaf[data-leaf="0"] { z-index: 14; }
.passport-leaf[data-leaf="1"] { z-index: 13; }
.passport-leaf[data-leaf="2"] { z-index: 12; }
.passport-leaf[data-leaf="3"] { z-index: 11; }

.passport-leaf[data-leaf="0"].is-turned { z-index: 2; transform: rotateY(-178deg); }
.passport-leaf[data-leaf="1"].is-turned { z-index: 3; transform: rotateY(-176deg); }
.passport-leaf[data-leaf="2"].is-turned { z-index: 4; transform: rotateY(-174deg); }
.passport-leaf[data-leaf="3"].is-turned { z-index: 5; transform: rotateY(-172deg); }

.leaf-face {
  position: absolute;
  inset: 0;
  border-radius: 4px 14px 14px 4px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem 1.1rem 1rem 1.3rem;
}

.leaf-back {
  transform: rotateY(180deg);
  border-radius: 14px 4px 4px 14px;
  padding: 1.15rem 1.3rem 1rem 1.1rem;
}

/* Indigo Cover Leaf (Leaf 0) */
.leaf-cover-front {
  background:
    radial-gradient(circle at 80% 18%, rgba(94, 240, 176, 0.16), transparent 46%),
    linear-gradient(155deg, #483796 0%, #2a1f5f 58%, #1d1547 100%);
  border: 1px solid #6250b5;
  border-inline-start: 14px solid #171038;
  color: #ffffff;
  box-shadow:
    inset 2px 0 0 rgba(182, 172, 232, 0.28),
    0 22px 42px -16px rgba(23, 16, 56, 0.62);
}

.leaf-cover-inside {
  background:
    radial-gradient(circle at 12px 12px, rgba(94, 240, 176, 0.12) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(160deg, #1b153b 0%, #121728 100%);
  border: 1px solid #392d73;
  border-inline-end: 6px solid #171038;
  color: #b6ace8;
  box-shadow: inset -14px 0 22px rgba(0, 0, 0, 0.34);
}

/* Interior Watermarked Paper Pages (Leaves 1–3) */
.leaf-paper {
  background:
    radial-gradient(circle at 10px 10px, rgba(59, 45, 122, 0.06) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(to right, #f3f1f9 0%, #ffffff 14%, #ffffff 100%);
  border: 1px solid #d4dce6;
  border-inline-start: 3px solid #d3c8f7;
  color: var(--iq-ink);
  box-shadow: inset 12px 0 18px -12px rgba(28, 22, 56, 0.18);
}

.leaf-paper.leaf-back {
  background:
    radial-gradient(circle at 10px 10px, rgba(59, 45, 122, 0.05) 1px, transparent 1px) 0 0 / 14px 14px,
    linear-gradient(to left, #f0eef7 0%, #fafbfd 16%, #ffffff 100%);
  border-inline-start: 1px solid #d4dce6;
  border-inline-end: 3px solid #d3c8f7;
  box-shadow: inset -12px 0 18px -12px rgba(28, 22, 56, 0.22);
}

.folio-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--iq-font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--iq-accent);
  border-block-end: 1px solid #e6e9f0;
  padding-block-end: 0.4rem;
}

.folio-foot {
  display: flex;
  justify-content: space-between;
  font-family: var(--iq-font-mono);
  font-size: 0.62rem;
  color: var(--iq-muted);
  border-block-start: 1px solid #eef1f5;
  padding-block-start: 0.4rem;
}

.visa-grid {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.visa-stamp {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1.5px dashed var(--iq-accent);
  background: rgba(239, 234, 252, 0.55);
  font-family: var(--iq-font-mono);
  font-size: 0.66rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.visa-stamp.mint {
  border-color: #1f8f60;
  background: rgba(230, 249, 240, 0.65);
  color: #0b3b27;
}

.visa-stamp.amber {
  border-color: var(--amber);
  background: rgba(254, 245, 231, 0.72);
  color: var(--amber);
}

.compact-pillar {
  appearance: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 9px;
  border: 1px solid var(--indigo-line);
  background: var(--iq-accent-soft);
  cursor: pointer;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.compact-pillar:hover {
  transform: translateX(2px);
}

.compact-pillar.p-clean {
  background: var(--mint-soft);
  border-color: var(--mint-line);
}

.compact-pillar.p-practices {
  background: var(--amber-soft);
  border-color: var(--amber-line);
}

.compact-pillar[aria-pressed="false"] {
  background: #fdf2f2;
  border-color: #f5b5b5;
}

.passport-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.passport-toggle-btn {
  appearance: none;
  border: 1px solid var(--iq-line);
  background: var(--iq-surface);
  color: var(--iq-muted);
  font-family: var(--iq-font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

.passport-toggle-btn:hover {
  color: var(--iq-ink);
  border-color: var(--iq-line-strong);
}

.passport-page-indicator {
  font-family: var(--iq-font-mono);
  font-size: 0.68rem;
  color: var(--iq-muted);
  padding-inline: 0.35rem;
}

/* --- Passport Booklet & Pillar Cards --- */
.booklet-card {
  background: var(--iq-surface);
  border: 1px solid var(--iq-line);
  border-inline-start: 6px solid var(--iq-accent);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  perspective: 900px;
}

.booklet-cover {
  inline-size: 290px;
  min-block-size: 380px;
  border-radius: 16px;
  background: var(--iq-accent);
  border-inline-start: 14px solid var(--iq-accent-hover);
  padding: 1.75rem 1.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 280ms var(--ease-passport), box-shadow 280ms var(--ease-passport);
  flex-shrink: 0;
}

.booklet-cover:hover {
  transform: translateY(-4px) rotateY(-4deg);
  box-shadow: 0 24px 44px -18px rgba(37, 27, 85, 0.55);
}

.pillar-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--indigo-line);
  background: var(--iq-accent-soft);
  cursor: pointer;
  transition: transform 180ms var(--ease-passport), border-color 180ms ease, background-color 180ms ease;
}

.pillar-btn:hover {
  transform: translateX(3px);
}

.pillar-btn.p-clean {
  background: var(--mint-soft);
  border-color: var(--mint-line);
}

.pillar-btn.p-practices {
  background: var(--amber-soft);
  border-color: var(--amber-line);
}

.pillar-btn[aria-pressed="false"] {
  background: #fdf2f2;
  border-color: #f5b5b5;
}

.pillar-kicker {
  font-family: var(--iq-font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--iq-accent);
}

.pillar-btn.p-clean .pillar-kicker {
  color: var(--iq-accent-cta-ink);
}

.pillar-btn.p-practices .pillar-kicker {
  color: var(--amber);
}

.pillar-btn[aria-pressed="false"] .pillar-kicker {
  color: var(--danger);
}

.pillar-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--iq-ink);
}

.pillar-status {
  font-family: var(--iq-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* --- Biometric Presence Lock --- */
.bio-panel {
  background: var(--iq-night);
  color: var(--iq-night-ink);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}

.bio-ring-outer {
  width: 118px;
  height: 118px;
  border-radius: 999px;
  border: 1px solid #245743;
  background: #122620;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bio-breathe 2.2s cubic-bezier(0.22, 1, 0.36, 1) 1 both;
}

.bio-ring-inner {
  width: 82px;
  height: 82px;
  border-radius: 999px;
  border: 2px solid var(--iq-accent-cta);
  background: #16382b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 320ms var(--ease-passport), background-color 240ms ease;
}

.bio-panel.is-locked .bio-ring-outer {
  animation: none;
  border-color: var(--iq-accent-cta);
  box-shadow: 0 0 0 10px rgba(61, 220, 151, 0.14);
}

.bio-panel.is-locked .bio-ring-inner {
  transform: scale(1.06);
  background: var(--iq-accent-cta);
}

.bio-panel.is-locked .bio-ring-inner svg {
  stroke: var(--iq-accent-cta-ink);
}

/* --- Org Stamp Emboss --- */
.stamp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  border-radius: 12px;
  border: 2px dashed var(--iq-accent);
  background: var(--iq-accent-soft);
  transform: rotate(-2deg);
}

.stamp-monogram {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--iq-accent);
  color: var(--iq-accent-cta);
  font-family: var(--iq-font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Rows, Code, Cards --- */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--iq-paper);
  border: 1px solid var(--iq-line);
  font-size: 0.86rem;
}

.check-row.is-armed {
  background: var(--mint-soft);
  border-color: var(--mint-line);
}

.check-row.is-warn {
  background: var(--amber-soft);
  border-color: var(--amber-line);
}

.code-block {
  background: var(--iq-night);
  color: var(--iq-night-ink);
  border: 1px solid var(--iq-night-line);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  font-family: var(--iq-font-mono);
  font-size: 0.78rem;
  line-height: 1.55;
  overflow-x: auto;
}

.code-mint {
  color: var(--iq-accent-cta);
}

.code-muted {
  color: var(--iq-night-muted);
}

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-box {
  flex: 1 1 240px;
  background: var(--iq-surface);
  border: 1px solid var(--iq-line);
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.shell-night .card-box {
  background: var(--iq-night-surface);
  border-color: var(--iq-night-line);
}

.card-box.is-admitted {
  border-color: var(--iq-accent-cta);
}

.card-box.is-revoked {
  border-color: #f06565;
  background: #231419;
  animation: revoke-flash 380ms var(--ease-passport);
}

.qr-banner {
  background: var(--iq-night);
  color: var(--iq-night-ink);
  border-radius: 14px;
  padding: 1.35rem 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  transition: border-color 240ms ease;
  border: 1px solid var(--iq-night-line);
}

.qr-banner.is-paired {
  border-color: var(--iq-accent-cta);
  background: #10241d;
}

.fallback-drawer {
  overflow: hidden;
  max-block-size: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: max-block-size 360ms var(--ease-passport), opacity 280ms ease, transform 320ms var(--ease-passport);
}

.fallback-drawer.is-open {
  max-block-size: 320px;
  opacity: 1;
  transform: translateY(0);
}

/* --- Mobile Frame Internals --- */
.mobile-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.35rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.mobile-body {
  padding: 0.75rem 1.35rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Bottom Motion Inspector --- */
.motion-inspector {
  background: var(--iq-night);
  color: var(--iq-night-ink);
  border-block-start: 1px solid var(--iq-night-line);
}

.inspector-inner {
  max-inline-size: 1440px;
  margin-inline: auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.inspector-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.inspector-tag {
  font-family: var(--iq-font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--iq-accent-cta);
}

.inspector-desc,
.inspector-curve {
  font-family: var(--iq-font-mono);
  font-size: 0.74rem;
  color: var(--iq-night-muted);
}

/* --- Signature Keyframes --- */
@keyframes passport-unfold {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(-12deg) translateX(16px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateX(0);
  }
}

@keyframes cascade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes stamp-emboss {
  0% {
    opacity: 0;
    transform: scale(1.26) rotate(-7deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(-2deg);
  }
}

@keyframes bio-breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes revoke-flash {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  100% {
    transform: translateX(0);
  }
}

.anim-unfold {
  animation: passport-unfold 480ms var(--ease-passport) both;
}

.anim-cascade {
  animation: cascade-in 320ms var(--ease-passport) both;
  animation-delay: calc(var(--stagger, 0) * 90ms);
}

.anim-stamp {
  animation: stamp-emboss 380ms var(--ease-stamp) both;
}

/* --- Reduced Motion (System OR Prototype Toggle) --- */
@media (prefers-reduced-motion: reduce) {
  .anim-unfold,
  .anim-cascade,
  .anim-stamp,
  .bio-ring-outer,
  .card-box.is-revoked {
    animation: none !important;
    transition: opacity 180ms ease !important;
  }

  .passport-book,
  .passport-leaf {
    transition: opacity 200ms ease !important;
  }

  .passport-leaf.is-turned {
    transform: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

html[data-reduced-motion="true"] .anim-unfold,
html[data-reduced-motion="true"] .anim-cascade,
html[data-reduced-motion="true"] .anim-stamp,
html[data-reduced-motion="true"] .bio-ring-outer,
html[data-reduced-motion="true"] .card-box.is-revoked {
  animation: none !important;
  transition: opacity 180ms ease !important;
}

html[data-reduced-motion="true"] .passport-book,
html[data-reduced-motion="true"] .passport-leaf {
  transition: opacity 200ms ease !important;
}

html[data-reduced-motion="true"] .passport-leaf.is-turned {
  transform: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
