/* ─── Fonts ─────────────────────────────────────────────────── */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/hanken-grotesk.woff2') format('woff2');
}

/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --parchment: #ECE4D6;
  --ivory: #F6F1E7;
  --espresso: #3A2E26;
  --espresso-soft: #6A5A4C;
  --cognac: #A65E3A;
  --teal: #2E4F4A;
  --hairline: #D8CDB9;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --radius: 2px;
  --transition: .18s ease;
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; }

/* ─── Base ───────────────────────────────────────────────────── */
body {
  font-family: var(--body);
  background: var(--parchment);
  color: var(--espresso);
  line-height: 1.55;
  min-height: 100vh;
}

/* ─── App wrapper ────────────────────────────────────────────── */
#app { min-height: 100vh; }

/* ─── Loading ────────────────────────────────────────────────── */
#loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--espresso-soft);
}

/* ─── Screen ─────────────────────────────────────────────────── */
.screen {
  display: none;
  min-height: 100vh;
}
.screen.active { display: block; }

/* ─── Container ──────────────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 64px) clamp(20px, 6vw, 48px);
}
.container--narrow {
  max-width: 560px;
}
.container--wide {
  max-width: 920px;
}

/* ─── Typography ─────────────────────────────────────────────── */
.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cognac);
  font-weight: 600;
  margin-bottom: 12px;
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--muted { color: var(--espresso-soft); }

h1, .h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.015em;
}
h2, .h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -.01em;
}
h3, .h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.1rem, 3.5vw, 1.5rem);
  line-height: 1.2;
}
.italic { font-style: italic; }
.lede {
  font-size: clamp(1rem, 2.5vw, 1.125rem);
  color: var(--espresso-soft);
  max-width: 50ch;
  line-height: 1.6;
}
.caption {
  font-size: 12.5px;
  color: var(--espresso-soft);
  line-height: 1.55;
}
.rule {
  height: 1px;
  background: var(--hairline);
  margin: clamp(24px, 4vw, 40px) 0;
  border: none;
}

/* ─── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 36px);
}
.card--flat {
  background: transparent;
  border-color: var(--hairline);
}
.placard {
  background: #fffdf8;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px 24px;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  min-height: 48px;
}
.btn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.btn--primary {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}
.btn--primary:hover { background: #2a2018; border-color: #2a2018; }

.btn--cognac {
  background: var(--cognac);
  color: var(--ivory);
  border-color: var(--cognac);
}
.btn--cognac:hover { background: #8E4E2E; border-color: #8E4E2E; }

.btn--ghost {
  background: transparent;
  color: var(--espresso);
  border-color: var(--espresso);
}
.btn--ghost:hover { background: var(--espresso); color: var(--ivory); }

.btn--teal {
  background: var(--teal);
  color: var(--ivory);
  border-color: var(--teal);
}
.btn--teal:hover { background: #243e3a; border-color: #243e3a; }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--teal);
  text-decoration: underline;
  cursor: pointer;
}
.link-btn:hover { color: var(--cognac); }

.vibe-textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.6;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--espresso);
  resize: vertical;
  transition: border-color var(--transition);
}
.vibe-textarea:focus { outline: none; border-color: var(--espresso-soft); }
.vibe-textarea::placeholder { color: var(--hairline); font-style: italic; }

.btn--wide { width: 100%; justify-content: center; }
.btn--sm { font-size: 13px; padding: 10px 18px; min-height: 40px; }

/* ─── Progress bar ───────────────────────────────────────────── */
.progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--hairline);
  z-index: 100;
}
.progress-bar__fill {
  height: 100%;
  background: var(--cognac);
  transition: width .3s ease;
}

/* ─── Quiz question card ─────────────────────────────────────── */
.quiz-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.quiz-header {
  padding: clamp(24px, 5vw, 40px) clamp(20px, 6vw, 48px) 0;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.quiz-counter {
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 600;
  margin-bottom: 20px;
}
.quiz-body {
  flex: 1;
  padding: clamp(24px, 4vw, 36px) clamp(20px, 6vw, 48px) clamp(32px, 6vw, 56px);
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.quiz-question {
  font-family: var(--display);
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: clamp(24px, 4vw, 36px);
}
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--espresso);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  min-height: 56px;
}
.quiz-option:hover {
  background: #fffdf8;
  border-color: var(--cognac);
}
.quiz-option.selected {
  background: var(--espresso);
  color: var(--ivory);
  border-color: var(--espresso);
}
.quiz-option-key {
  font-weight: 600;
  color: var(--cognac);
  margin-right: 10px;
  font-size: 12px;
  letter-spacing: .06em;
}
.quiz-option.selected .quiz-option-key { color: var(--hairline); }

/* ─── Result / interstitial ──────────────────────────────────── */
.result-screen {
  min-height: 100vh;
}
.identity-headline {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.75rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.identity-headline em { font-style: italic; color: var(--teal); }

/* ─── Palette swatches ───────────────────────────────────────── */
.palette-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.08);
  flex-shrink: 0;
  position: relative;
}
.swatch-lg {
  width: 56px;
  height: 56px;
}
.swatch-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--ivory);
  color: var(--espresso);
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}
.swatch--removable:hover .swatch-remove,
.swatch-remove:focus-visible { opacity: 1; }
.swatch-remove:hover { background: var(--cognac); color: var(--ivory); border-color: var(--cognac); }
/* touch devices can't hover — keep the control visible */
@media (hover: none) {
  .swatch-remove { opacity: 1; }
}
.swatch-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.swatch-label {
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  text-align: center;
  font-weight: 600;
  max-width: 52px;
  line-height: 1.2;
}
.palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

/* ─── Metal chip ─────────────────────────────────────────────── */
.metal-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--espresso-soft);
}
.metal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}

/* ─── Section tags / eyebrow helpers ─────────────────────────── */
.tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  color: var(--espresso-soft);
}
.tag--cognac { border-color: var(--cognac); color: var(--cognac); }
.tag--teal { border-color: var(--teal); color: var(--teal); }

/* ─── Ruling / divider helpers ───────────────────────────────── */
.section-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: clamp(28px, 5vw, 48px) 0;
}
.section-rule::before,
.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.section-rule span {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 600;
  white-space: nowrap;
}

/* ─── Resume banner ──────────────────────────────────────────── */
.resume-banner {
  background: #fffdf8;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.resume-banner p {
  font-size: 14px;
  color: var(--espresso-soft);
}
.resume-banner strong { color: var(--espresso); }
.resume-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Landing / sales page ───────────────────────────────────── */
.landing-hero {
  padding: clamp(48px, 10vw, 100px) clamp(20px, 6vw, 48px) clamp(40px, 6vw, 64px);
  max-width: 720px;
  margin: 0 auto;
}
.landing-hero .h1 span { display: block; }
.landing-hero .italic { color: var(--teal); }

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.5;
}
.feature-list li::before {
  content: '—';
  color: var(--cognac);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ─── Value Finder embedded ──────────────────────────────────── */
.vf-wrap { width: 100%; }
.vf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 640px) {
  .vf-grid { grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }
}

.vf-stage { position: relative; }
.vf-dropzone {
  aspect-ratio: 4/5;
  width: 100%;
  border: 1.5px dashed var(--cognac);
  border-radius: var(--radius);
  background: #fffdf8;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  gap: 12px;
  transition: background var(--transition), border-color var(--transition);
}
.vf-dropzone:hover, .vf-dropzone.drag { background: #F3ECDD; border-color: var(--teal); }
.vf-dropzone .mark { font-family: var(--display); font-size: 40px; color: var(--cognac); line-height: 1; }
.vf-dropzone p { font-size: 14px; color: var(--espresso-soft); max-width: 24ch; }
.vf-dropzone .cta { font-weight: 600; color: var(--espresso); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--cognac); }

.vf-canvas-frame {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e8e2d6;
  border: 1px solid var(--hairline);
  touch-action: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.vf-canvas-frame.dragging { cursor: grabbing; }
.vf-stage.has-photo .vf-canvas-frame { display: block; }
.vf-canvas-frame canvas {
  display: block;
  width: 112%;
  height: 112%;
  margin: -6% 0 0 -6%;
  object-fit: cover;
  filter: grayscale(1) blur(0px);
  transition: filter .12s linear;
}
.vf-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.vf-guide::before {
  content: '';
  position: absolute;
  left: 50%; top: 46%;
  transform: translate(-50%, -50%);
  width: 62%; height: 74%;
  border: 1px solid rgba(255,253,248,.7);
  border-radius: 50%;
  box-shadow: 0 0 0 9999px rgba(58,46,38,.12);
}
.vf-guide span {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fffdf8;
  text-shadow: 0 1px 3px rgba(0,0,0,.45);
  font-weight: 600;
}
.vf-stage.has-photo .vf-dropzone { display: none; }

.vf-squint { margin-top: 18px; }
.vf-squint.hidden { display: none; }
.vf-squint-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.vf-squint-val { font-family: var(--display); font-style: italic; color: var(--teal); font-size: 15px; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  outline-offset: 4px;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cognac);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--cognac);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cognac);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1px var(--cognac);
  cursor: pointer;
}

.vf-reading { opacity: .35; transition: opacity .35s ease; }
.vf-reading.live { opacity: 1; }

.vf-scale-wrap { margin: 6px 0 4px; }
.vf-scale {
  display: flex;
  height: 30px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.vf-scale span { flex: 1; }
.vf-scale-track { position: relative; height: 14px; margin-top: 6px; }
.vf-marker {
  position: absolute;
  top: -2px;
  transform: translateX(-50%);
  transition: left .4s cubic-bezier(.2,.7,.2,1);
}
.vf-marker::before {
  content: '';
  display: block;
  width: 0; height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid var(--espresso);
  margin: 0 auto;
}
.vf-scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  margin-top: 2px;
  font-weight: 600;
}
.vf-stat .k {
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 600;
}
.vf-stat .v {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
  margin-top: 3px;
}
.vf-reading-row { display: flex; gap: 26px; margin-bottom: 18px; }
.vf-privacy {
  margin-top: 20px;
  font-size: 12px;
  color: var(--espresso-soft);
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.vf-privacy .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 5px;
  flex-shrink: 0;
}
.vf-use-btn { margin-top: 20px; }

/* ─── Undertone options ──────────────────────────────────────── */
.tone-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.tone-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--espresso);
  text-align: center;
  transition: all var(--transition);
  min-height: 80px;
}
.tone-btn:hover { border-color: var(--cognac); background: #fffdf8; }
.tone-btn.selected { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }

/* ─── Occasion pill selector ─────────────────────────────────── */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  padding: 10px 18px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--espresso);
  transition: all var(--transition);
  cursor: pointer;
}
.pill:hover { border-color: var(--cognac); background: #fffdf8; }
.pill.selected { background: var(--espresso); color: var(--ivory); border-color: var(--espresso); }
.tone-swatch {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.1);
}

/* ─── Reading list ───────────────────────────────────────────── */
.book-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.book-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
}
.book-title {
  font-weight: 600;
  font-size: 15px;
}
.book-author {
  font-size: 13px;
  color: var(--espresso-soft);
}
.book-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--cognac);
  text-decoration: none;
  margin-top: 6px;
}
.book-link:hover { text-decoration: underline; }
.affiliate-disclosure {
  font-size: 12px;
  color: var(--espresso-soft);
  font-style: italic;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

/* ─── Formula Builder ────────────────────────────────────────── */
.theme-block {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}
.theme-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--ivory);
  border-bottom: 1px solid var(--hairline);
}
.theme-name-input {
  flex: 1;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  background: none;
  border: none;
  outline: none;
  color: var(--espresso);
}
.theme-name-input::placeholder { color: var(--hairline); font-style: italic; }
.formula-slots {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.formula-slot {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.formula-num {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cognac);
  font-weight: 600;
  padding-top: 10px;
  flex-shrink: 0;
  width: 20px;
}
.formula-input {
  flex: 1;
  font-family: var(--body);
  font-size: 14px;
  line-height: 1.5;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--espresso);
  resize: none;
  min-height: 60px;
  transition: border-color var(--transition);
}
.formula-input:focus { outline: none; border-color: var(--espresso-soft); }
.formula-input::placeholder { color: var(--hairline); }
.fb-add-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  background: none;
  border: 1.5px dashed var(--teal);
  border-radius: var(--radius);
  padding: 12px 20px;
  width: 100%;
  justify-content: center;
  transition: all var(--transition);
}
.fb-add-btn:hover { background: rgba(46,79,74,.06); }

/* ─── Share block ────────────────────────────────────────────── */
.share-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-url {
  flex: 1;
  font-size: 13px;
  background: var(--parchment);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 10px 14px;
  color: var(--espresso-soft);
  font-family: monospace;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: text;
  user-select: all;
}
.copy-feedback {
  font-size: 12px;
  color: var(--teal);
  font-weight: 600;
  opacity: 0;
  transition: opacity .2s;
}
.copy-feedback.show { opacity: 1; }

/* ─── Collapsible ────────────────────────────────────────────── */
.collapsible-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--espresso-soft);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: .04em;
}
.collapsible-trigger::before {
  content: '+';
  width: 18px; height: 18px;
  background: var(--hairline);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  line-height: 18px;
  text-align: center;
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}
.collapsible-trigger.open::before { content: '−'; background: var(--espresso); color: var(--ivory); }
.collapsible-body { display: none; margin-top: 12px; }
.collapsible-body.open { display: block; }

/* ─── Silhouette rules list ──────────────────────────────────── */
.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rules-list li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
}
.rules-list li::before {
  content: '—';
  color: var(--teal);
  font-weight: 600;
  flex-shrink: 0;
}

/* ─── Blend badge ────────────────────────────────────────────── */
.blend-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--espresso-soft);
  margin-bottom: 8px;
}

/* ─── Print styles ───────────────────────────────────────────── */
@media print {
  .progress-bar,
  .btn,
  .share-block,
  header,
  nav { display: none !important; }
  body { background: white; }
  .card { border: 1px solid #ccc; }
}

/* ─── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── Utilities ──────────────────────────────────────────────── */
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.gap-12 { gap: 12px; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.text-muted { color: var(--espresso-soft); }
.text-cognac { color: var(--cognac); }
.text-teal { color: var(--teal); }
.font-display { font-family: var(--display); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── AI interview ───────────────────────────────────────────── */
.ai-disclosure {
  font-size: 11.5px;
  color: var(--espresso-soft);
  border-left: 2px solid var(--hairline);
  padding-left: 12px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.considering {
  text-align: center;
  padding: clamp(32px, 8vw, 64px) 0;
}
.considering .placard-label {
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--espresso-soft);
  font-weight: 600;
  margin-bottom: 14px;
}
.considering-line {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.15rem, 4vw, 1.35rem);
  color: var(--teal);
}
.considering-shimmer {
  height: 2px;
  width: 120px;
  margin: 20px auto 0;
  background: linear-gradient(90deg, transparent, var(--cognac), transparent);
  background-size: 200% 100%;
  animation: ai-shimmer 1.1s linear infinite;
  border-radius: 2px;
}
@keyframes ai-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .considering-shimmer { animation: none; opacity: .6; }
}
