/* ==========================================================================
   Lexicon Veritas — Public Site
   Design tokens
   ========================================================================== */

:root {
  /* Lexicon Veritas brand palette — per official colour cheat sheet.
     Rule: white-dominant, cobalt-led, silver-supported, gold-accented.
     Gold is reserved ONLY for tokens/rewards/achievements/celebration —
     never used decoratively. */
  --cobalt: #2446B8;
  --cobalt-deep: #1A3690;
  --cobalt-tint: #EDF1FC;
  --charcoal: #172033;
  --charcoal-2: #182033;
  --silver: #E1E4E9;
  --silver-deep: #C7CCD4;
  --white: #FFFFFF;
  --gold: #E6A23C;
  --gold-tint: #FBF0DE;

  /* semantic aliases used throughout the stylesheet below */
  --ink: var(--charcoal);
  --ink-soft: #4A5468;
  --deep: var(--cobalt);
  --deep-2: var(--cobalt-deep);
  --mid: var(--cobalt);
  --sky: var(--gold);
  --sky-soft: var(--cobalt-tint);
  --bg: var(--white);
  --paper: var(--white);
  --line: var(--silver);

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1140px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  margin: 0;
  color: var(--deep);
  letter-spacing: -0.01em;
}

p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--mid);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Nav — deliberately minimal, no dense navigation
   ========================================================================== */

.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  padding: 28px 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.01em;
}

.wordmark .mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
}

.nav-secondary {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-secondary a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14.5px;
}

.nav-secondary a:hover { color: #fff; }

@media (max-width: 560px) {
  .nav-secondary { gap: 12px; }
}

/* on light-background pages (journey page) the nav needs dark text */
.nav.on-light .wordmark { color: var(--deep); }
.nav.on-light .wordmark .mark { border-color: var(--deep); }
.nav.on-light .nav-secondary a { color: var(--ink-soft); }
.nav.on-light .nav-secondary a:hover { color: var(--deep); }
.nav.on-light { position: sticky; background: var(--bg); border-bottom: 1px solid var(--line); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--paper);
  color: var(--deep);
}
.btn-primary:hover { background: var(--sky-soft); }

.btn-ghost {
  border-color: rgba(255,255,255,0.55);
  color: var(--paper);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-text {
  color: var(--paper);
  padding: 13px 6px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.4);
  text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-color: #fff; }

.btn-deep {
  background: var(--deep);
  color: var(--paper);
}
.btn-deep:hover { background: var(--deep-2); }

/* ==========================================================================
   HERO — Page 1
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #101833 0%, #172033 34%, #1E33A0 78%, #2446B8 100%);
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 5;
  padding-top: 90px;
  max-width: 640px;
}

.hero-content h1 {
  color: var(--paper);
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.12;
  margin-bottom: 24px;
}

.hero-content .lede {
  color: rgba(255,255,255,0.86);
  font-size: 18px;
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hero-pin {
  position: absolute;
  right: 9%;
  bottom: 14%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.65);
  font-size: 13px;
}

@media (max-width: 720px) {
  .hero-pin { display: none; }
  .hero-content { padding-top: 130px; }
}

/* ==========================================================================
   Section shell
   ========================================================================== */

.section {
  padding: 96px 0;
}

.section-tight { padding: 64px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 18px;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 520px;
}

.on-deep { background: var(--deep); }
.on-deep h2, .on-deep h3 { color: var(--paper); }
.on-deep p { color: rgba(255,255,255,0.8); }

/* ==========================================================================
   Journey tiles (hover / tap to flip)
   ========================================================================== */

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .tiles { grid-template-columns: 1fr; }
}

.tile {
  perspective: 1200px;
  height: 190px;
}

.tile-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
  transform-style: preserve-3d;
}

.tile.is-flipped .tile-inner,
.tile:hover .tile-inner {
  transform: rotateY(180deg);
}

.tile-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.tile-front {
  background: var(--paper);
  border: 1px solid var(--line);
}

.tile-front .tile-index {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--mid);
  margin-bottom: auto;
}

.tile-front h3 {
  font-size: 20px;
  color: var(--deep);
}

.tile-back {
  background: var(--deep);
  transform: rotateY(180deg);
  justify-content: center;
}

.tile-back p {
  color: rgba(255,255,255,0.92);
  font-size: 14.5px;
  line-height: 1.5;
}

.tile-back .tile-tag {
  color: var(--sky);
  font-size: 13px;
  margin-top: 12px;
  display: block;
}

/* ==========================================================================
   Economics transparency strip
   ========================================================================== */

.economics {
  background: var(--sky-soft);
  border-radius: 6px;
  padding: 40px 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

@media (max-width: 760px) {
  .economics { grid-template-columns: 1fr; padding: 32px 28px; }
}

.economics-item h3 {
  font-size: 17px;
  color: var(--deep);
  margin-bottom: 8px;
}

.economics-item p {
  color: var(--ink-soft);
  font-size: 15px;
}

.economics-item .kicker {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  color: var(--mid);
  margin-bottom: 6px;
}

/* ==========================================================================
   Credibility strip
   ========================================================================== */

.credibility {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 56px;
}

.credibility-item {
  flex: 1 1 200px;
}

.credibility-item .num {
  font-family: var(--serif);
  font-size: 30px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

.credibility-item .label {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

/* ==========================================================================
   Auth pages — Login / Create Account
   ========================================================================== */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

.auth-side {
  background: linear-gradient(165deg, #101833 0%, #172033 34%, #1E33A0 78%, #2446B8 100%);
  color: var(--white);
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-side::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,162,60,0.16) 0%, rgba(230,162,60,0) 70%);
}

.auth-side .quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 26px;
  line-height: 1.4;
  max-width: 420px;
  position: relative;
  z-index: 2;
}

.auth-side .quote-attribution {
  display: block;
  margin-top: 20px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
}

.auth-milestones {
  display: flex;
  gap: 36px;
  position: relative;
  z-index: 2;
}

.auth-milestones .m-num {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--gold);
  display: block;
}

.auth-milestones .m-label {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card .wordmark {
  color: var(--deep);
  margin-bottom: 44px;
}
.auth-card .wordmark .mark {
  border-color: var(--deep);
  color: var(--deep);
}

/* The auth-side panel already shows the wordmark on wide screens —
   the card's own wordmark only appears once that panel is hidden,
   so the logo is never shown twice at once. */
.auth-card .wordmark-mobile-only { display: none; }
@media (max-width: 900px) { .auth-card .wordmark-mobile-only { display: flex; } }

.auth-card h1 {
  font-size: 30px;
  margin-bottom: 10px;
}

.auth-card .sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin-bottom: 34px;
}

.auth-card .sub a { color: var(--deep); text-decoration: none; font-weight: 500; }
.auth-card .sub a:hover { text-decoration: underline; }

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  margin-bottom: 18px;
}

.field label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}

.field input,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--silver);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--deep);
}

.field-hint {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 6px;
}

.field-error {
  font-size: 12.5px;
  color: #B3261E;
  margin-top: 6px;
  display: none;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 22px 0 26px;
}

.checkbox-row input { margin-top: 3px; accent-color: var(--deep); }
.checkbox-row label { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.checkbox-row a { color: var(--deep); text-decoration: underline; text-decoration-color: var(--silver-deep); }

.btn-block { width: 100%; padding: 14px 24px; font-size: 15.5px; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0;
  color: var(--ink-soft);
  font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--silver);
}

.form-status {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 13.5px;
  margin-bottom: 20px;
  display: none;
}
.form-status.show { display: block; }
.form-status.error { background: #FBEAEA; color: #8A2E27; border: 1px solid #EFC6C3; }
.form-status.success { background: var(--gold-tint); color: #7A5219; border: 1px solid #EFD8AC; }

.otp-boxes {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.otp-boxes input {
  width: 46px;
  height: 54px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  padding: 0;
}

.step-indicator {
  display: flex;
  gap: 8px;
  margin-bottom: 28px;
}
.step-indicator .dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--silver);
}
.step-indicator .dot.active { background: var(--deep); }
.step-indicator .dot.done { background: var(--gold); }

/* ==========================================================================
   Room shell — persistent nav for the Rooms 1-8 demo
   ========================================================================== */

.room-shell { min-height: 100vh; background: var(--bg); }

.room-topbar {
  background: var(--charcoal);
  color: var(--white);
  padding: 16px 0;
}

.room-topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .room-topbar .demo-pill { display: none; }
  .room-topbar .profile-chip .nm { display: none; }
}

.room-topbar .wordmark { color: var(--white); font-size: 17px; }
.room-topbar .wordmark .mark { border-color: rgba(255,255,255,0.6); color: var(--white); }

.demo-pill {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 20px;
  padding: 4px 12px;
}

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,162,60,0.14);
  border: 1px solid rgba(230,162,60,0.4);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13.5px;
  color: var(--gold);
  font-weight: 600;
  white-space: nowrap;
}
.wallet-chip .coin { width: 14px; height: 14px; border-radius: 50%; background: var(--gold); display: inline-block; }

.room-tabs {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  position: sticky;
  top: 0;
  z-index: 30;
  overflow-x: auto;
}

.room-tabs .container {
  display: flex;
  gap: 4px;
  padding-top: 0;
  padding-bottom: 0;
}

.room-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.room-tab .n {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--silver);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.room-tab:hover { color: var(--deep); }
.room-tab.active { color: var(--deep); border-bottom-color: var(--deep); }
.room-tab.active .n { background: var(--deep); color: var(--white); }
.room-tab.done .n { background: var(--gold); color: var(--white); }

.room-main { padding: 56px 0 90px; }

.room-header { margin-bottom: 40px; }
.room-header .eyebrow { color: var(--deep); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 10px; display: block; }
.room-header h1 { font-size: clamp(26px, 3.2vw, 36px); margin-bottom: 12px; }
.room-header p { color: var(--ink-soft); font-size: 16px; max-width: 620px; }

.room-footnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--silver);
}
.room-footnav a { text-decoration: none; font-size: 14px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.room-footnav a:hover { color: var(--deep); }
.room-footnav .next { color: var(--deep); font-weight: 500; }

/* ==========================================================================
   Journey map (Room 1)
   ========================================================================== */

.journey-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 60px 0 20px;
}

.journey-track::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 21px;
  right: 21px;
  height: 2px;
  background: var(--silver);
  z-index: 0;
}

.journey-track .fill {
  position: absolute;
  top: 21px;
  left: 21px;
  height: 2px;
  background: var(--deep);
  z-index: 1;
  width: 38%;
}

.journey-stop {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex: 1;
  text-align: center;
}

.journey-stop .dot {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 2.5px solid var(--silver-deep);
  color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 17px;
}

.journey-stop.done .dot { background: var(--deep); border-color: var(--deep); color: var(--white); }
.journey-stop.current .dot { background: var(--white); border-color: var(--deep); color: var(--deep); box-shadow: 0 0 0 5px var(--cobalt-tint); }
.journey-stop .label { font-size: 13.5px; font-weight: 600; color: var(--charcoal); }
.journey-stop .sub { font-size: 12px; color: var(--ink-soft); max-width: 110px; }

/* ==========================================================================
   Progress ring (Room 2)
   ========================================================================== */

.progress-ring-wrap { display: flex; align-items: center; gap: 28px; }
.progress-ring { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
.progress-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.progress-ring .bg { fill: none; stroke: var(--silver); stroke-width: 8; }
.progress-ring .fg { fill: none; stroke: var(--deep); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.progress-ring .pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; color: var(--charcoal); }

/* ==========================================================================
   Card / panel primitives
   ========================================================================== */

.panel {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 8px;
  padding: 28px;
}

.panel-gold { border-color: #EFD8AC; background: var(--gold-tint); }
.panel-cobalt { border-color: #C9D6F4; background: var(--cobalt-tint); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Confetti (Room 2 / Room 7 celebration)
   ========================================================================== */

.confetti-piece {
  position: absolute;
  width: 8px; height: 14px;
  opacity: 0;
  animation: confetti-fall 2.4s ease-in forwards;
}
@keyframes confetti-fall {
  0% { opacity: 0; transform: translateY(-20px) rotate(0deg); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(220px) rotate(340deg); }
}

/* ==========================================================================
   Token pill / gate
   ========================================================================== */

.token-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-tint);
  border: 1px solid #EFD8AC;
  color: #8A5E13;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.token-pill .coin { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); display: inline-block; }

.gate-lock {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #FAFAFA;
  border: 1px dashed var(--silver-deep);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ==========================================================================
   Calendar + cart (Room 4)
   ========================================================================== */

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-top: 16px;
}
.calendar-grid .dow { text-align: center; font-size: 11.5px; color: var(--ink-soft); font-weight: 600; padding-bottom: 6px; }
.calendar-grid .day {
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--charcoal);
  border: 1px solid transparent;
  cursor: pointer;
}
.calendar-grid .day:hover { background: var(--cobalt-tint); }
.calendar-grid .day.muted { color: var(--silver-deep); cursor: default; }
.calendar-grid .day.selected { background: var(--deep); color: var(--white); font-weight: 600; }
.calendar-grid .day.today { border-color: var(--deep); }

.stepper-qty {
  display: flex; align-items: center; gap: 10px;
}
.stepper-qty button {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--silver-deep);
  background: var(--white);
  color: var(--deep);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.stepper-qty button:hover { border-color: var(--deep); }
.stepper-qty .val { min-width: 18px; text-align: center; font-weight: 600; }

.sku-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--silver);
  gap: 16px;
}
.sku-row:last-child { border-bottom: none; }
.sku-row .name { font-weight: 500; color: var(--charcoal); font-size: 14.5px; }
.sku-row .meta { font-size: 12.5px; color: var(--ink-soft); }

.cart-summary { position: sticky; top: 90px; }
.cart-line { display: flex; justify-content: space-between; font-size: 14px; padding: 9px 0; color: var(--ink-soft); }
.cart-line.total { border-top: 1px solid var(--silver); margin-top: 8px; padding-top: 16px; font-size: 17px; color: var(--charcoal); font-weight: 600; }
.cart-line.total .amt { color: var(--deep); }

/* ==========================================================================
   Timeline / checklist (Room 5, Room 6)
   ========================================================================== */

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--silver); }
.timeline-item { position: relative; padding-bottom: 30px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item .marker {
  position: absolute; left: -36px; top: 2px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--silver-deep);
  display: flex; align-items: center; justify-content: center;
}
.timeline-item.done .marker { border-color: var(--deep); background: var(--deep); }
.timeline-item.active .marker { border-color: var(--deep); box-shadow: 0 0 0 4px var(--cobalt-tint); }
.timeline-item .t-title { font-weight: 600; font-size: 14.5px; color: var(--charcoal); }
.timeline-item .t-sub { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.timeline-item .t-time { font-size: 12px; color: var(--silver-deep); margin-top: 3px; }

.checklist-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--silver);
  border-radius: 8px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.checklist-step.done { border-color: #EFD8AC; background: var(--gold-tint); }
.checklist-step .cbox {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--silver-deep);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: transparent;
  font-size: 14px;
  margin-top: 2px;
}
.checklist-step.done .cbox { background: var(--gold); border-color: var(--gold); color: var(--white); }
.checklist-step .body { flex: 1; }
.checklist-step .s-title { font-weight: 600; color: var(--charcoal); font-size: 15px; margin-bottom: 4px; }
.checklist-step .s-sub { font-size: 13.5px; color: var(--ink-soft); }
.checklist-step .s-num { font-size: 12px; color: var(--silver-deep); font-weight: 700; margin-right: 6px; }

/* ==========================================================================
   Certificate (Room 7)
   ========================================================================== */

.certificate {
  background: var(--white);
  border: 1px solid var(--silver);
  border-radius: 10px;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.certificate::before {
  content: "";
  position: absolute; inset: 10px;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  pointer-events: none;
}
.certificate .cert-kicker { text-align: center; color: var(--mid); font-size: 12.5px; letter-spacing: 0.08em; font-weight: 600; }
.certificate .cert-name { text-align: center; font-family: var(--serif); font-size: 32px; color: var(--charcoal); margin: 14px 0 6px; }
.certificate .cert-course { text-align: center; color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }
.certificate .cert-meta { display: flex; justify-content: center; gap: 40px; font-size: 12.5px; color: var(--silver-deep); }

/* ==========================================================================
   Survey (Room 8)
   ========================================================================== */

.survey-q { margin-bottom: 26px; }
.survey-q label { display: block; font-size: 14.5px; font-weight: 500; color: var(--charcoal); margin-bottom: 10px; }
.survey-q textarea, .survey-q input[type=text] {
  width: 100%; border: 1.5px solid var(--silver); border-radius: 6px; padding: 12px 14px;
  font-family: var(--sans); font-size: 14.5px; color: var(--ink); resize: vertical;
}
.survey-q textarea:focus, .survey-q input:focus { outline: none; border-color: var(--deep); }

.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-select .chip {
  padding: 9px 16px; border-radius: 20px; border: 1.5px solid var(--silver);
  font-size: 13.5px; color: var(--ink-soft); cursor: pointer; user-select: none;
}
.chip-select .chip.selected { background: var(--deep); border-color: var(--deep); color: var(--white); }

.pill-tab-group { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.pill-tab {
  padding: 9px 18px; border-radius: 20px; font-size: 13.5px; font-weight: 500;
  border: 1.5px solid var(--silver); color: var(--ink-soft); cursor: pointer; background: var(--white);
}
.pill-tab.active { background: var(--charcoal); border-color: var(--charcoal); color: var(--white); }

/* ==========================================================================
   Admin shell — sidebar layout, visually distinct from the doctor-facing
   Room top-tab shell (deliberate: this is internal tooling)
   ========================================================================== */

.admin-shell { min-height: 100vh; display: flex; background: var(--bg); }

.admin-sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--charcoal);
  color: var(--white);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar .wordmark { color: var(--white); padding: 0 24px 24px; font-size: 16.5px; }
.admin-sidebar .wordmark .mark { border-color: rgba(255,255,255,0.5); color: var(--white); }

.admin-role-chip {
  margin: 0 24px 20px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
}
.admin-role-chip .who { font-size: 13.5px; font-weight: 600; color: var(--white); }
.admin-role-chip .role { font-size: 11.5px; color: var(--gold); margin-top: 2px; letter-spacing: 0.02em; }

.admin-nav-group { margin-bottom: 22px; }
.admin-nav-label { padding: 0 24px; font-size: 10.5px; letter-spacing: 0.08em; color: rgba(255,255,255,0.4); font-weight: 700; margin-bottom: 8px; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 24px;
  font-size: 14px; color: rgba(255,255,255,0.72);
  text-decoration: none;
  border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: rgba(255,255,255,0.04); color: var(--white); }
.admin-nav-item.active { background: rgba(230,162,60,0.1); border-left-color: var(--gold); color: var(--white); font-weight: 500; }
.admin-nav-item .ic { width: 18px; text-align: center; opacity: 0.9; }

.admin-exit { margin-top: auto; padding: 16px 24px 0; border-top: 1px solid rgba(255,255,255,0.1); }
.admin-exit a { color: rgba(255,255,255,0.55); font-size: 13px; text-decoration: none; }
.admin-exit a:hover { color: var(--white); }

.admin-main { flex: 1; min-width: 0; }

.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--silver);
  padding: 18px 36px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 20;
}
.admin-topbar .crumb { font-size: 13px; color: var(--ink-soft); }
.admin-topbar .crumb strong { color: var(--charcoal); }
.demo-pill-light { font-size: 11.5px; color: var(--ink-soft); border: 1px solid var(--silver-deep); border-radius: 20px; padding: 4px 12px; }

.admin-body { padding: 36px; max-width: 1240px; }

/* Stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 32px; }
@media (max-width: 1000px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--white); border: 1px solid var(--silver); border-radius: 8px; padding: 22px; }
.stat-card .label { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 8px; }
.stat-card .value { font-family: var(--serif); font-size: 28px; color: var(--charcoal); }
.stat-card .delta { font-size: 12px; margin-top: 6px; }
.stat-card .delta.up { color: #1F7A4C; }
.stat-card .delta.gold { color: #8A5E13; }

/* Simple CSS bar chart */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.bar-chart .bar { flex: 1; background: var(--cobalt-tint); border-radius: 4px 4px 0 0; position: relative; }
.bar-chart .bar .fill { position:absolute; bottom:0; left:0; right:0; background: var(--deep); border-radius: 4px 4px 0 0; }
.bar-chart .bar .lbl { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--ink-soft); }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--silver); border-radius: 8px; overflow: hidden; }
.data-table th { text-align: left; font-size: 11.5px; letter-spacing: 0.03em; color: var(--ink-soft); font-weight: 600; padding: 12px 16px; background: #FAFAFA; border-bottom: 1px solid var(--silver); }
.data-table td { padding: 14px 16px; font-size: 14px; color: var(--charcoal); border-bottom: 1px solid var(--silver); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #FAFBFC; }

.status-badge { display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:600; padding:4px 10px; border-radius:12px; }
.status-badge.green { background:#E4F3EA; color:#1F7A4C; }
.status-badge.amber { background:var(--gold-tint); color:#8A5E13; }
.status-badge.gray { background:var(--silver); color:var(--ink-soft); }
.status-badge.blue { background:var(--cobalt-tint); color:var(--deep); }
.status-badge.red { background:#FBEAEA; color:#8A2E27; }

.toolbar { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; gap:16px; flex-wrap:wrap; }
.search-input { border:1.5px solid var(--silver); border-radius:6px; padding:9px 14px; font-size:13.5px; min-width:240px; font-family:var(--sans); }
.search-input:focus { outline:none; border-color:var(--deep); }

.icon-btn { background:none; border:1.5px solid var(--silver); border-radius:6px; padding:7px 14px; font-size:12.5px; color:var(--ink-soft); cursor:pointer; }
.icon-btn:hover { border-color:var(--deep); color:var(--deep); }
.icon-btn.danger:hover { border-color:#B3261E; color:#B3261E; }

.toggle-switch { position:relative; display:inline-block; width:38px; height:21px; }
.toggle-switch input { opacity:0; width:0; height:0; }
.toggle-slider { position:absolute; cursor:pointer; inset:0; background:var(--silver-deep); border-radius:20px; transition:0.2s; }
.toggle-slider::before { content:""; position:absolute; width:15px; height:15px; left:3px; top:3px; background:#fff; border-radius:50%; transition:0.2s; }
.toggle-switch input:checked + .toggle-slider { background: var(--deep); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(17px); }

.tab-strip { display:flex; gap:4px; border-bottom:1px solid var(--silver); margin-bottom:24px; }
.tab-strip .t { padding:12px 18px; font-size:13.5px; font-weight:500; color:var(--ink-soft); cursor:pointer; border-bottom:2.5px solid transparent; }
.tab-strip .t.active { color:var(--deep); border-bottom-color:var(--deep); }

/* Role-selector segmented control on the login page */
.role-switch { display:flex; background:#F2F3F5; border-radius:8px; padding:4px; margin-bottom:28px; }
.role-switch .opt { flex:1; text-align:center; padding:10px; font-size:13.5px; font-weight:500; color:var(--ink-soft); border-radius:6px; cursor:pointer; }
.role-switch .opt.active { background:var(--white); color:var(--charcoal); box-shadow:0 1px 3px rgba(0,0,0,0.08); }

/* ==========================================================================
   Modal — shared across admin quick-action mockups
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(16,24,51,0.55);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  max-height: 88vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  animation: modal-in 0.18s ease;
}
.modal-box.wide { max-width: 640px; }
@keyframes modal-in { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }

.modal-close {
  position: absolute; top: 20px; right: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  border: none; background: #F2F3F5; color: var(--ink-soft);
  font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--silver); color: var(--charcoal); }

.modal-title { font-size: 19px; color: var(--charcoal); margin-bottom: 6px; padding-right: 30px; }
.modal-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 24px; }
.modal-field { margin-bottom: 16px; }
.modal-field label { display:block; font-size:13px; font-weight:500; color:var(--charcoal); margin-bottom:6px; }
.modal-field input, .modal-field select, .modal-field textarea {
  width: 100%; border: 1.5px solid var(--silver); border-radius: 6px; padding: 10px 13px;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
}
.modal-field input:focus, .modal-field select:focus, .modal-field textarea:focus { outline:none; border-color:var(--deep); }
.modal-actions { display:flex; gap:10px; margin-top:24px; }
.modal-actions .btn { flex:1; }
.modal-success { display:none; text-align:center; padding: 12px 0; }
.modal-success .ic { width:52px; height:52px; border-radius:50%; background:var(--gold-tint); color:#8A5E13; display:flex; align-items:center; justify-content:center; font-size:24px; margin:0 auto 16px; }

/* Doctor topbar profile chip + sign-out (Room shell) */
.profile-chip {
  display: flex; align-items: center; gap: 9px;
  cursor: pointer; text-decoration: none;
  padding: 4px 10px 4px 4px; border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.18);
}
.profile-chip:hover { background: rgba(255,255,255,0.06); }
.profile-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.profile-chip .nm { font-size: 13px; color: rgba(255,255,255,0.9); }
.signout-btn {
  background: none; border: 1px solid rgba(255,255,255,0.25); color: rgba(255,255,255,0.75);
  border-radius: 20px; padding: 7px 14px; font-size: 12.5px; cursor: pointer; font-family: var(--sans);
}
.signout-btn:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ==========================================================================
   Index page — specialties, credibility, value props, footer
   ========================================================================== */

.top-accent { height: 3px; background: linear-gradient(90deg, var(--cobalt-deep) 0%, var(--deep) 55%, var(--gold) 100%); }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 22px;
}
.hero-kicker .sep { color: rgba(255,255,255,0.35); }

.specialties {
  background: var(--white);
  padding: 0 0 88px;
  margin-top: -1px;
}

.specialty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--silver);
  border: 1px solid var(--silver);
  border-radius: 8px;
  overflow: hidden;
}
@media (max-width: 780px) { .specialty-grid { grid-template-columns: 1fr; } }

.specialty-card {
  background: var(--white);
  padding: 36px 32px;
}
.specialty-card .ic { color: var(--deep); margin-bottom: 18px; }
.specialty-card h3 { font-size: 18px; margin-bottom: 8px; }
.specialty-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

.credibility-strip {
  background: var(--white);
  border-top: 1px solid var(--silver);
  border-bottom: 1px solid var(--silver);
  padding: 44px 0;
}
.credibility-strip .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
}
.cstat { display: flex; align-items: center; gap: 14px; }
.cstat .ic { color: var(--deep); flex-shrink: 0; }
.cstat .num { font-family: var(--serif); font-size: 24px; color: var(--charcoal); display: block; line-height: 1.1; }
.cstat .lbl { font-size: 12.5px; color: var(--ink-soft); }

.value-section { padding: 96px 0; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .value-grid { grid-template-columns: 1fr; gap: 40px; } }

.value-list { list-style: none; margin: 28px 0 0; padding: 0; }
.value-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--silver); }
.value-list li:first-child { border-top: none; }
.value-list .vnum { font-family: var(--serif); color: var(--gold); font-size: 15px; flex-shrink: 0; width: 26px; }
.value-list .vtext h4 { font-size: 15.5px; color: var(--charcoal); font-weight: 600; margin-bottom: 4px; }
.value-list .vtext p { font-size: 13.5px; color: var(--ink-soft); }

.slide-visual {
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(155deg, #101833 0%, #172033 45%, #1E33A0 100%);
  position: relative;
  overflow: hidden;
}

.closing { position: relative; overflow: hidden; }
.closing .grain { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }

.footer-pro { background: var(--charcoal-2); color: rgba(255,255,255,0.6); padding: 64px 0 28px; }
.footer-pro .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; margin-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 780px) { .footer-pro .top { grid-template-columns: 1fr 1fr; } }
.footer-pro .wordmark { color: var(--white); margin-bottom: 14px; }
.footer-pro .wordmark .mark { border-color: rgba(255,255,255,0.5); }
.footer-pro .blurb { font-size: 13.5px; line-height: 1.6; max-width: 260px; }
.footer-pro .col-title { color: rgba(255,255,255,0.85); font-size: 12px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-pro .col a { display: block; color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13.5px; margin-bottom: 11px; }
.footer-pro .col a:hover { color: var(--white); }
.footer-pro .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,0.4); }

.footer {
  background: var(--deep-2);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  font-size: 13.5px;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
}
.footer a:hover { color: #fff; }

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

/* ==========================================================================
   Closing CTA band
   ========================================================================== */

.closing {
  background: var(--paper);
  padding: 90px 0;
  text-align: center;
}

.closing h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  max-width: 560px;
  margin: 0 auto 28px;
}

.closing-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
