/* ─────────────────────────────────────────
   TOKENS
───────────────────────────────────────── */
:root {
  --bg:           #FAF8F5;
  --bg-warm:      #F2EDE8;
  --bg-dark:      #1A1815;
  --bg-card:      #F6F2EE;
  --text:         #1A1815;
  --text-mid:     #6B6459;
  --text-light:   #FAF8F5;
  --accent:       #E8501C;
  --accent-pale:  #FCE8DF;
  --accent-dark:  #C43E12;
  --border:       #DDD5CC;
  --border-focus: #E8501C;
  --green:        #4A7C59;
  --green-pale:   #D8EDE0;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max:    1120px;
  --gutter: clamp(1.5rem, 5vw, 4rem);

  --radius: 4px;
  --t:      0.22s ease;
}

/* ─────────────────────────────────────────
   RESET
───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--sans); }

/* ─────────────────────────────────────────
   NAV
───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(250,248,245,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-wordmark {
  display: flex;
  align-items: center;
}
.nav-logo-full {
  height: 20px;
  width: auto;
  display: block;
}
.nav-logo-mark {
  height: 22px;
  width: auto;
  display: none;
}
@media (max-width: 480px) {
  .nav-logo-full { display: none; }
  .nav-logo-mark { display: block; }
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-cta {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
  transition: opacity var(--t);
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.7; }
@media (max-width: 480px) { .nav-cta { display: none; } }

.btn-ghost {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-mid);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  transition: color var(--t), background var(--t);
}
.btn-ghost:hover { color: var(--accent); background: var(--accent-pale); }

/* ─────────────────────────────────────────
   TOOL HERO
───────────────────────────────────────── */
.tool-hero {
  padding: 8rem 0 5rem;
  border-bottom: 1px solid var(--border);
}
.tool-hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.hero-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.tool-headline {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1.75rem;
  max-width: 16ch;
}
.tool-headline em { font-style: italic; color: var(--accent); }
.tool-sub {
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  color: var(--text-mid);
  max-width: 52ch;
  line-height: 1.8;
}

/* ─────────────────────────────────────────
   INTAKE FORM
───────────────────────────────────────── */
.intake-form { padding: 0 0 6rem; }
.form-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.form-section {
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}
.form-section:last-of-type { border-bottom: none; }
.form-section--api {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-top: 2rem;
  border: 1px solid var(--border);
}

.form-section-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.field-group {
  margin-bottom: 1.75rem;
}
.field-group:last-child { margin-bottom: 0; }

.field-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.field-label .req { color: var(--accent); font-weight: 400; }

.field-hint {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

.field-input {
  width: 100%;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.5;
  transition: border-color var(--t), box-shadow var(--t);
  -webkit-appearance: none;
  appearance: none;
}
.field-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(196,113,74,0.12);
}
.field-input::placeholder { color: #B8AFA7; }

.field-textarea { resize: none; min-height: 90px; margin-top: 0.6rem; }

/* QUICK PICKS */
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}
.quick-pick {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-mid);
  background: var(--bg);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), color var(--t);
  user-select: none;
}
.quick-pick:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--accent-pale);
}
.quick-pick.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quick-pick.active::after {
  content: ' ✓';
  font-size: 0.7rem;
  opacity: 0.85;
}

/* VOICE INPUT */
.voice-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
}
.voice-wrap .field-textarea {
  display: block;
  padding-bottom: 2.75rem;
  resize: none;
}
.voice-wrap--tag {
  display: block;
}
.voice-wrap--tag .tag-field {
  padding-right: 2.5rem;
}
.voice-btn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: border-color var(--t), color var(--t), background var(--t), box-shadow var(--t);
  z-index: 2;
  flex-shrink: 0;
}
.voice-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
}
.voice-btn.listening {
  border-color: #D94F4F;
  background: #FEF0F0;
  color: #D94F4F;
  animation: voice-pulse 1.4s ease-in-out infinite;
}
@keyframes voice-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 79, 79, 0.25); }
  50%       { box-shadow: 0 0 0 6px rgba(217, 79, 79, 0); }
}
.voice-wrap--tag .voice-btn {
  bottom: auto;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

/* REFERENCE LINKS */
.ref-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.ref-link-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ref-link-row .field-input { margin: 0; }
.ref-link-remove {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-mid);
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: border-color var(--t), color var(--t), background var(--t);
}
.ref-link-remove:hover {
  border-color: #D94F4F;
  color: #D94F4F;
  background: #FEF0F0;
}
.btn-add-ref {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  padding: 0;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: opacity var(--t);
}
.btn-add-ref:hover { opacity: 0.7; }

/* EXISTING ASSETS */
.assets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 560px) {
  .assets-grid { grid-template-columns: 1fr; }
}
.asset-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.asset-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-mid);
}
.asset-input {
  font-size: 0.875rem !important;
}
.scratch-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-top: 0.85rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-mid);
  line-height: 1.5;
}
.scratch-label input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
  width: 14px;
  height: 14px;
  cursor: pointer;
}
.assets-grid.disabled { opacity: 0.35; pointer-events: none; }
.existing-mats-wrap.disabled { opacity: 0.35; pointer-events: none; }

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6459' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field-select option { font-weight: 400; }

/* TAG FIELD */
.tag-field {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  min-height: 46px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  transition: border-color var(--t), box-shadow var(--t);
  cursor: text;
}
.tag-field:focus-within {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(196,113,74,0.12);
}
.tag-list {
  display: contents;
}
.tag-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: var(--accent-pale);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.2rem 0.6rem 0.2rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-remove {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 0.9rem;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--t);
}
.tag-remove:hover { opacity: 1; }
.tag-input {
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--text);
  flex: 1;
  min-width: 120px;
  padding: 0.15rem 0;
}
.tag-input::placeholder { color: #B8AFA7; }

/* API KEY */
.api-note {
  font-size: 0.78rem;
  color: var(--text-mid);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.api-key-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}
.api-key-row .field-input { flex: 1; }
.btn-reveal {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: background var(--t);
  white-space: nowrap;
}
.btn-reveal:hover { background: var(--accent-pale); color: var(--accent-dark); }
.api-key-save-row {
  margin-top: 0.6rem;
}
.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-mid);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  width: 14px; height: 14px;
  accent-color: var(--accent);
}

/* SUBMIT */
.form-submit-row {
  padding: 3rem 0 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.btn-generate {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 2rem;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--t), transform var(--t);
}
.btn-generate:hover { background: var(--accent); transform: translateY(-1px); }
.btn-generate:active { transform: none; }
.btn-generate:disabled {
  background: var(--border);
  color: var(--text-mid);
  cursor: not-allowed;
  transform: none;
}
.btn-arrow { font-size: 1rem; transition: transform var(--t); }
.btn-generate:hover .btn-arrow { transform: translateX(3px); }
.submit-note {
  font-size: 0.78rem;
  color: var(--text-mid);
}

.form-error {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  background: #FDF0EC;
  border: 1px solid rgba(196,113,74,0.3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  color: var(--accent-dark);
  line-height: 1.6;
}

/* ─────────────────────────────────────────
   CAPTURE SCREEN
───────────────────────────────────────── */
.capture-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem var(--gutter);
  background: var(--bg);
}
.capture-inner {
  width: 100%;
  max-width: 520px;
  text-align: center;
}
.capture-ready {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.capture-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.capture-sub {
  font-size: 0.95rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}
.capture-form { text-align: left; }
.capture-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.capture-field-wrap { display: flex; flex-direction: column; }
.capture-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 2rem;
  cursor: pointer;
}
.capture-check-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.capture-check-label span {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.capture-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.capture-skip {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-mid);
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
  opacity: 0.7;
  transition: opacity var(--t);
}
.capture-skip:hover { opacity: 1; color: var(--text); }
.capture-error {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #FDF0EC;
  border: 1px solid rgba(196,113,74,0.3);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--accent-dark);
}

/* Divider above capture */
.capture-divider {
  width: 32px;
  height: 1px;
  background: var(--border);
  margin: 2rem auto;
}

@media (max-width: 480px) {
  .capture-fields { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   LOADING
───────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}
.loading-inner {
  text-align: center;
  max-width: 360px;
  padding: 2rem;
}
.loading-mark {
  margin: 0 auto 2rem;
  width: 48px;
  height: 48px;
  position: relative;
}
.loading-ring {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent-pale);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-label {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.loading-sub {
  font-size: 0.82rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
}
.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
}
.loading-step {
  font-size: 0.78rem;
  color: var(--border);
  padding-left: 1.25rem;
  position: relative;
  transition: color 0.4s ease;
}
.loading-step::before {
  content: '·';
  position: absolute;
  left: 0;
  color: inherit;
  font-size: 1.2rem;
  line-height: 1.2;
}
.loading-step.active { color: var(--accent); }
.loading-step.done { color: var(--text-mid); }
.loading-step.done::before { content: '✓'; font-size: 0.8rem; top: 1px; }

/* ─────────────────────────────────────────
   RESULTS
───────────────────────────────────────── */
#view-results { padding-top: 57px; }

.results-nav {
  position: sticky;
  top: 57px;
  z-index: 100;
  background: rgba(250,248,245,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.results-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow-x: auto;
}
.results-nav-links {
  display: flex;
  gap: 1.75rem;
  flex-shrink: 0;
}
.results-nav-links a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  white-space: nowrap;
  transition: color var(--t);
}
.results-nav-links a:hover { color: var(--accent); }
.btn-export {
  flex-shrink: 0;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-mid);
  transition: border-color var(--t), color var(--t);
}
.btn-export:hover { border-color: var(--accent); color: var(--accent); }

/* Results sections */
.results-body { padding-bottom: 6rem; }

.r-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}
.r-section:last-of-type { border-bottom: none; }
.r-section--dark {
  background: var(--bg-dark);
  color: var(--text-light);
}
.r-section--warm { background: var(--bg-warm); }

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

.r-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}
.r-label--light { color: rgba(196,113,74,0.8); }

.r-heading {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.r-heading--light { color: var(--text-light); }

/* Project Summary banner */
.summary-banner {
  background: var(--bg-dark);
  padding: 5rem var(--gutter);
  color: var(--text-light);
}
.summary-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
}
.summary-org {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(196,113,74,0.8);
  margin-bottom: 1rem;
}
.summary-type {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 3rem;
  max-width: 20ch;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(250,248,245,0.1);
}
.summary-item-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196,113,74,0.7);
  margin-bottom: 0.6rem;
}
.summary-item-text {
  font-size: 0.88rem;
  color: rgba(250,248,245,0.8);
  line-height: 1.7;
}

/* Core Narrative */
.narrative-statement {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  max-width: 36ch;
  margin-bottom: 2.5rem;
}
.narrative-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.narrative-meta-item-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.5rem;
}
.narrative-meta-item-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
}
.emotional-arc {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.arc-step {
  display: flex;
  align-items: center;
  gap: 0;
}
.arc-label {
  background: var(--accent-pale);
  color: var(--accent-dark);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  white-space: nowrap;
}
.arc-arrow {
  padding: 0 0.4rem;
  color: var(--border);
  font-size: 0.8rem;
}

/* Story Themes */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}
.theme-card {
  background: var(--bg);
  padding: 2rem;
  transition: background var(--t);
}
.theme-card:hover { background: var(--bg-warm); }
.theme-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.theme-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.theme-reason {
  font-size: 0.75rem;
  color: var(--accent);
  font-style: italic;
  line-height: 1.5;
}

/* Priority Audiences */
.audiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.audience-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  background: var(--bg);
  transition: box-shadow var(--t), transform var(--t);
}
.audience-card:hover {
  box-shadow: 0 4px 20px rgba(26,24,21,0.07);
  transform: translateY(-2px);
}
.audience-name {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.audience-item-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
}
.audience-item-label:first-of-type { margin-top: 0; }
.audience-item-text {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Roadmap Timeline */
.roadmap-timeline {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.roadmap-moment {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 3rem;
  align-items: start;
}
.roadmap-moment:last-child { border-bottom: 1px solid var(--border); }
.moment-left { padding-top: 0.2rem; }
.moment-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}
.moment-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
}
.moment-timing {
  font-size: 0.75rem;
  color: var(--text-mid);
}
.moment-right {}
.moment-goal-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.4rem;
}
.moment-goal { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 1.25rem; }
.moment-message-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.4rem;
}
.moment-message {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
  max-width: 44ch;
}
.moment-artifacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.artifact-pill {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.75rem;
  color: var(--text-mid);
}
.moment-creative {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.7;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--accent-pale);
  font-style: italic;
}

/* Artifact Recommendations */
.artifacts-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}
.artifact-row {
  background: var(--bg);
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 1fr 80px 2fr;
  gap: 2rem;
  align-items: start;
  transition: background var(--t);
}
.artifact-row:hover { background: var(--bg-warm); }
.artifact-type {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}
.artifact-priority {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-align: center;
  width: fit-content;
}
.priority-high { background: rgba(196,113,74,0.12); color: var(--accent-dark); }
.priority-medium { background: rgba(107,100,89,0.1); color: var(--text-mid); }
.priority-low { background: var(--bg-warm); color: var(--text-mid); }
.artifact-details {}
.artifact-why {
  font-size: 0.83rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 0.4rem;
}
.artifact-looks {
  font-size: 0.78rem;
  color: var(--text-mid);
  line-height: 1.65;
  font-style: italic;
  opacity: 0.8;
}

/* Sample Messaging */
.messaging-section {
  background: var(--bg-dark);
  color: var(--text-light);
}
.headlines-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}
.headline-option {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border: 1px solid rgba(250,248,245,0.1);
  border-radius: var(--radius);
  transition: border-color var(--t), background var(--t);
  cursor: default;
}
.headline-option:hover {
  border-color: rgba(196,113,74,0.5);
  background: rgba(196,113,74,0.05);
}
.messaging-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(250,248,245,0.08);
}
.messaging-block-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(196,113,74,0.75);
  margin-bottom: 1rem;
}
.sample-caption {
  font-size: 0.9rem;
  color: rgba(250,248,245,0.7);
  line-height: 1.75;
  font-style: italic;
}
.sample-para {
  font-size: 0.9rem;
  color: rgba(250,248,245,0.7);
  line-height: 1.75;
}

/* Next Steps */
.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
}
.next-steps-block {}
.next-steps-block-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.next-steps-focus {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  max-width: 32ch;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.step-item {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
}
.step-num {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  min-width: 1.25rem;
  flex-shrink: 0;
  padding-top: 0.1rem;
}
.step-text {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}
.priority-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.priority-item {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding-left: 1rem;
  position: relative;
}
.priority-item::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  opacity: 0.5;
}

/* Confidence Notes */
.confidence-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.confidence-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.confidence-card-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 0.75rem;
}
.confidence-list li {
  font-size: 0.8rem;
  color: var(--text-mid);
  line-height: 1.65;
  padding-left: 0.9rem;
  position: relative;
  margin-bottom: 0.3rem;
}
.confidence-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Footer */
.results-footer {
  background: var(--bg-dark);
  padding: 2.5rem var(--gutter);
}
.results-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-org {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--text-light);
}
.footer-meta {
  font-size: 0.75rem;
  color: rgba(250,248,245,0.4);
}
.footer-restart {
  background: none;
  border: none;
  font-size: 0.75rem;
  color: rgba(196,113,74,0.7);
  transition: color var(--t);
}
.footer-restart:hover { color: var(--accent); }

/* ─────────────────────────────────────────
   FADE-IN
───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 900px) {
  .summary-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .narrative-meta { grid-template-columns: 1fr; }
  .roadmap-moment { grid-template-columns: 1fr; gap: 1.5rem; }
  .artifact-row { grid-template-columns: 1fr 80px; gap: 1rem; }
  .artifact-details { grid-column: 1 / -1; }
  .messaging-row { grid-template-columns: 1fr; gap: 2rem; }
  .next-steps-grid { grid-template-columns: 1fr; }
  .confidence-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .tool-hero { padding: 7rem var(--gutter) 3.5rem; }
  .form-section--api { padding: 1.75rem; margin: 0; border-radius: 0; border-left: none; border-right: none; }
  .results-nav-links { gap: 1.25rem; }
}
