/* ==========================================================================
   Brainy Hearty — design system
   ========================================================================== */

:root {
  /* Palette */
  --cream:         #fdf6ec;
  --parchment:     #f5e9d1;
  --card:          #ffffff;
  --ink:           #1f1912;
  --ink-soft:      #4a3f32;
  --muted:         #7a6b56;
  --line:          #e6d5b5;
  --line-soft:     #efe2c6;

  --terracotta:      #c25e3d;
  --terracotta-dark: #a44d31;
  --terracotta-tint: #f5d8ca;
  --jade:            #2b6049;
  --jade-tint:       #d6e4dc;
  --gold:            #d9a441;
  --gold-tint:       #f4e2ba;
  --plum:            #78455a;

  /* Type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --max-w:  1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px -2px rgba(43, 33, 24, 0.08);
  --shadow-md: 0 10px 30px -8px rgba(43, 33, 24, 0.14);
  --shadow-lg: 0 24px 60px -12px rgba(43, 33, 24, 0.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* Typographic primitives -------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
h1 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 700; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
em { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 16px;
}
.lede {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.55;
}

.section-inner { max-width: var(--max-w); margin: 0 auto; }

/* Buttons ----------------------------------------------------------------- */

.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-ui);
  font-size: 15px; font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--terracotta); color: white;
  box-shadow: 0 4px 14px -4px rgba(194, 94, 61, 0.5);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-1px); box-shadow: 0 8px 20px -6px rgba(194, 94, 61, 0.55); }
.btn-primary .btn-meta {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500; opacity: 0.85;
  border-left: 1px solid rgba(255,255,255,0.35);
  padding-left: 12px; margin-left: 4px;
}
.btn-full { width: 100%; padding: 18px 26px; font-size: 16px; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); background: rgba(0,0,0,0.02); }

/* ==========================================================================
   NAV
   ========================================================================== */

.site-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 32px;
  padding: 14px var(--gutter);
  background: rgba(43, 45, 66, 0.92);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-nav .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: #fff;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.site-nav nav {
  display: flex; gap: 28px;
  margin-left: auto;
}
.site-nav nav a {
  white-space: nowrap;
  font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color .15s ease;
}
.site-nav nav a:hover { color: #fff; }
.site-nav nav a:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 3px;
  border-radius: 4px;
}
.site-nav .brand:focus-visible {
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 4px;
  border-radius: 4px;
}
.nav-cta {
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  padding: 9px 18px;
  background: #5B8C5A; color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s ease;
}
.nav-cta:hover { background: #4a7849; }
.nav-cta:focus-visible {
  outline: 3px solid #5B8C5A;
  outline-offset: 3px;
}

.site-nav nav a.active { color: #fff; }

/* --- Hamburger toggle ---------------------------------------------------- */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 6px; margin-left: auto; flex-direction: column; gap: 5px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .2s, opacity .2s;
}

/* --- Admin Lab dropdown -------------------------------------------------- */
.admin-lab-dropdown { position: relative; }
.admin-lab-trigger {
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,0.7); background: none; border: none;
  cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
  padding: 0; transition: color .15s;
}
.admin-lab-trigger:hover,
.admin-lab-trigger.active { color: #fff; }
.admin-lab-caret { font-size: 10px; }
.admin-lab-menu {
  display: none; position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%); min-width: 160px;
  background: rgba(43, 45, 66, 0.97); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px; padding: 6px 0; box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 60;
}
.admin-lab-dropdown.open .admin-lab-menu { display: block; }
.admin-lab-menu a {
  display: block; padding: 8px 16px; font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7); text-decoration: none; transition: all .12s;
}
.admin-lab-menu a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.admin-lab-menu a.active { color: #fff; }

/* --- Mobile nav ---------------------------------------------------------- */
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav nav { display: none; }
  .site-nav .nav-cta { display: none; }
  .site-nav.nav-open nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(43, 45, 66, 0.97);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0;
  }
  .site-nav.nav-open nav a,
  .site-nav.nav-open nav .admin-lab-trigger {
    padding: 12px var(--gutter); font-size: 15px;
  }
  .site-nav.nav-open .nav-cta {
    display: block; margin: 8px var(--gutter) 12px; text-align: center;
  }
  .site-nav.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .site-nav.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-nav.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .admin-lab-dropdown { width: 100%; }
  .admin-lab-menu {
    position: static; transform: none; min-width: 0;
    border: none; border-radius: 0; box-shadow: none;
    background: rgba(255,255,255,0.04); padding: 0;
  }
  .admin-lab-menu a { padding-left: calc(var(--gutter) + 16px); }
  .au-nav { order: 1; margin-left: auto; margin-right: 8px; }
  .nav-toggle { order: 2; margin-left: 0; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  max-width: var(--max-w); margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero-copy .badge .dot {
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--jade); box-shadow: 0 0 0 4px rgba(43, 96, 73, 0.18);
}
.hero-copy h1 { margin: 0 0 22px; }
.hero-copy h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-weight: 500;
}
.hero-copy .sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 32px;
}
.hero-copy .meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 24px; flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.hero-copy .meta li { position: relative; padding-left: 18px; }
.hero-copy .meta li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--gold);
}

.hero-art {
  position: relative;
}
.hero-art img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-art::before {
  content: ""; position: absolute; inset: 24px -24px -24px 24px;
  background: var(--parchment);
  border-radius: var(--radius-lg);
  z-index: -1;
  transform: rotate(1.5deg);
}
.hero-caption {
  position: absolute; bottom: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink); color: var(--cream);
  font-family: var(--font-display); font-style: italic;
  font-size: 14px;
  padding: 6px 16px; border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; padding: 48px var(--gutter) 32px; }
  .hero-art { max-width: 480px; margin: 12px auto 0; }
  .hero-art::before { inset: 16px -12px -12px 12px; }
}

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */

.how {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background: var(--parchment);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.how .eyebrow { margin-bottom: 12px; }
.how h2 { margin-bottom: 48px; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-num {
  font-family: var(--font-display);
  font-size: 44px; font-weight: 500; font-style: italic;
  color: var(--terracotta);
  line-height: 1;
  margin-bottom: 12px;
}
.step h3 { margin: 0 0 12px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; line-height: 1.55; }

@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================================
   SAMPLES
   ========================================================================== */

.samples { padding: clamp(72px, 10vw, 120px) var(--gutter); }
.samples .eyebrow { margin-bottom: 12px; }
.samples h2 { margin-bottom: 20px; }
.samples .lede { margin-bottom: 24px; }

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 40px;
}
.chips .chip {
  padding: 7px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
}
.chips .chip:nth-child(3n+1) { border-color: var(--terracotta-tint); color: var(--terracotta-dark); }
.chips .chip:nth-child(3n+2) { border-color: var(--jade-tint); color: var(--jade); }
.chips .chip:nth-child(3n+3) { border-color: var(--gold-tint); color: #8a6820; }

.sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.sample-grid figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
  cursor: zoom-in;
  position: relative;
}
.sample-grid figure:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.sample-grid img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block;
}
.sample-grid figcaption {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 18px 12px;
  color: white;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 15px;
  background: linear-gradient(to top, rgba(31,25,18,0.75), rgba(31,25,18,0));
}

@media (max-width: 820px) { .sample-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .sample-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   LIBRARY (cities)
   ========================================================================== */

.library {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background: var(--parchment);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.library .eyebrow { margin-bottom: 12px; }
.library h2 { margin-bottom: 20px; }
.library .lede { margin-bottom: 36px; }

.cities {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}
.city {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.city .flag {
  font-size: 32px;
  margin-bottom: 12px;
  line-height: 1;
}
.city .city-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 6px;
}
.city .city-status {
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.city.available {
  background: var(--ink); color: var(--cream);
  border-color: var(--ink);
}
.city.available .city-name { color: var(--cream); }
.city.available .city-status { color: var(--gold-tint); }
.city.coming { opacity: 0.85; }

/* ==========================================================================
   CREATE / FORM
   ========================================================================== */

.create {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
}
.create-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.view.hidden { display: none; }
.bh-homepage-section.hidden { display: none; }

.create .eyebrow { margin-bottom: 12px; }
.create h2 { margin-bottom: 12px; max-width: 20ch; }
.create .lede { margin-bottom: 40px; max-width: 60ch; }

.form-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: clamp(28px, 3.5vw, 56px);
  box-shadow: var(--shadow-md);
}

.field { display: block; margin-bottom: 26px; }
.field > span, .field > legend {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.field > legend em, .field > span em, .field small {
  font-weight: 400; color: var(--muted); font-style: italic;
  letter-spacing: 0;
}
.field small { display: block; margin-top: 8px; font-size: 12px; }

input[type="text"], select {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-ui);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-tint);
}
select {
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8"><path d="M1 1l5 5 5-5" stroke="%237a6b56" stroke-width="1.6" fill="none" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
input[type="file"] {
  font-family: var(--font-ui);
  font-size: 13px; color: var(--muted);
  padding: 8px 0;
}
input[type="file"]::file-selector-button {
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  padding: 10px 18px; margin-right: 12px;
  background: var(--terracotta-tint); color: var(--terracotta-dark);
  border: none; border-radius: 8px;
  cursor: pointer;
}

.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
@media (max-width: 500px) { .two-col { grid-template-columns: 1fr; } }

/* Interest chip selector */
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-select button {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fffefa;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.chips-select button:hover { border-color: var(--muted); }
.chips-select button.active {
  background: var(--jade); border-color: var(--jade);
  color: white;
  box-shadow: 0 2px 8px -2px rgba(43, 96, 73, 0.4);
}

/* Mode tabs (photo vs attributes) */
.mode-tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--parchment);
  border-radius: 12px;
}
.mode-tabs button {
  flex: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: all .15s ease;
}
.mode-tabs button.active {
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.mode-pane.hidden { display: none; }

.attr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.attr-grid .field { margin-bottom: 0; }
.attr-grid .field.wide { grid-column: 1 / -1; }
@media (max-width: 500px) { .attr-grid { grid-template-columns: 1fr; } }

.checkbox-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 20px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink);
}
.checkbox-row label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  transition: border-color .15s ease, background .15s ease;
}
.checkbox-row label:hover { border-color: var(--muted); }
.checkbox-row input[type="checkbox"] {
  margin: 0;
  accent-color: var(--jade);
  width: 16px; height: 16px;
}

/* ==========================================================================
   WIZARD — progress indicator, step panes, nav
   ========================================================================== */

.wizard-progress {
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px;
  list-style: none; margin: 0 0 32px; padding: 0;
  counter-reset: step;
}
.wizard-progress li {
  flex: 1;
  display: flex; flex-direction: column; align-items: center;
  gap: 8px;
  position: relative;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  text-align: center;
  transition: color .3s ease;
}
.wizard-progress li .num {
  width: 32px; height: 32px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  transition: all .3s ease;
}
.wizard-progress li .label {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}
/* connectors */
.wizard-progress li + li::before {
  content: "";
  position: absolute; top: 16px; left: -50%; right: 50%;
  height: 1.5px;
  background: var(--line);
  z-index: -1;
  transition: background .3s ease;
}
.wizard-progress li.current { color: var(--ink); }
.wizard-progress li.current .num {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
  box-shadow: 0 0 0 4px var(--terracotta-tint);
}
.wizard-progress li.done { color: var(--jade); }
.wizard-progress li.done .num {
  background: var(--jade);
  border-color: var(--jade);
  color: white;
}
.wizard-progress li.done + li::before,
.wizard-progress li.current + li::before { }  /* no-op, kept for clarity */
.wizard-progress li.done::before { background: var(--jade); }
.wizard-progress li.current::before { background: var(--jade); }

@media (max-width: 560px) {
  .wizard-progress li .label { display: none; }
}

/* Wizard step panes */
.wizard-step { animation: fadeInUp .25s ease; }
.wizard-step.hidden { display: none; }
.wizard-step > .eyebrow { margin-bottom: 6px; }
.wizard-step > h2 {
  font-size: clamp(26px, 3vw, 36px);
  margin-bottom: 8px;
  max-width: 22ch;
}
.wizard-step > .lede {
  margin-bottom: 32px;
  font-size: 16px;
  max-width: 62ch;
}
.wizard-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 24px 0 14px;
  color: var(--ink);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step 1 — path tabs */
.path-tabs {
  display: flex; gap: 0; margin: 16px 0 20px;
  border-bottom: 2px solid var(--line);
}
.path-tab {
  flex: 1; padding: 14px 20px; border: none; background: none;
  font-family: var(--font-ui); font-size: 15px; font-weight: 600;
  color: var(--muted); cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.path-tab:hover { color: var(--ink); }
.path-tab.active {
  color: var(--terracotta); border-bottom-color: var(--terracotta);
}
.path-panel { margin-top: 4px; }
.path-panel.hidden { display: none; }

/* Step 2 — library grid + coming-soon cards */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.library-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.library-card:hover { border-color: var(--muted); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.library-card.selected {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-tint);
}
.library-card input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.library-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.library-card .library-meta { padding: 14px 16px 16px; }
.library-card .library-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 17px;
  margin-bottom: 4px;
  color: var(--ink);
}
.library-card .library-pillars {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.library-card .library-check {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--terracotta); color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
  opacity: 0; transform: scale(0.6);
  transition: all .2s ease;
}
.library-card.selected .library-check { opacity: 1; transform: scale(1); }
.library-card.coming-soon { cursor: not-allowed; opacity: 0.7; }
.library-card.coming-soon:hover { transform: none; border-color: var(--line); }
.library-card .coming-soon-thumb {
  aspect-ratio: 4/3;
  background: var(--parchment);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.library-card .coming-soon-thumb .cs-icon {
  font-size: 44px;
  line-height: 1;
  opacity: 0.9;
  filter: saturate(1.1);
}
.library-card .coming-soon-thumb .cs-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(31, 25, 18, 0.55);
  background: rgba(255, 255, 255, 0.65);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* Per-theme swatches for coming-soon library cards */
.library-card[data-theme="school"]    .coming-soon-thumb { background: linear-gradient(135deg, #f4e2ba 0%, #e8c980 55%, #d9a441 100%); }
.library-card[data-theme="curiosity"] .coming-soon-thumb { background: linear-gradient(135deg, #dce9e2 0%, #a8c4b4 55%, #6d9987 100%); }
.library-card[data-theme="heritage"]  .coming-soon-thumb { background: linear-gradient(135deg, #f5d8ca 0%, #e0a888 55%, #c25e3d 100%); }
.library-card[data-theme="emotions"]  .coming-soon-thumb { background: linear-gradient(135deg, #eadfe4 0%, #c9a9b7 55%, #78455a 100%); }
.library-card[data-theme="identity"]  .coming-soon-thumb { background: linear-gradient(135deg, #fdf6ec 0%, #f4e2ba 45%, #d9a441 100%); }
.library-card[data-theme="kindness"]  .coming-soon-thumb { background: linear-gradient(135deg, #fce4d5 0%, #f0a575 55%, #d97c46 100%); }
.library-card[data-theme="night"]     .coming-soon-thumb { background: linear-gradient(135deg, #3a3d68 0%, #4d3d6b 55%, #23233f 100%); }
.library-card[data-theme="sibling"]   .coming-soon-thumb { background: linear-gradient(135deg, #fbeae1 0%, #f2c9c0 55%, #e69d94 100%); }
.library-card[data-theme="nature"]    .coming-soon-thumb { background: linear-gradient(135deg, #cddccd 0%, #7fa87f 55%, #3f6b47 100%); }

/* Step 3 — style-grid */
.style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 8px;
}
.style-card {
  position: relative;
  display: block;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.style-card:hover { border-color: var(--muted); transform: translateY(-2px); }
.style-card.selected {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px var(--terracotta-tint);
}
.style-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.style-card .style-swatch {
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  position: relative;
}
.style-card .style-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.style-card .style-meta { padding: 12px 14px 14px; }
.style-card .style-name {
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.style-card .style-badge {
  display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 2px 8px; border-radius: 4px; margin-bottom: 4px;
}
.style-card .style-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }

/* rule divider */
.rule {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 28px 0;
}

/* ==========================================================================
   CONTENT CARDS — grouped sections inside a wizard step
   ========================================================================== */

.content-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}
.content-card:hover { box-shadow: var(--shadow-md); }

.content-card-head {
  display: flex; gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px dashed var(--line);
}
.content-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.content-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.content-card-sub {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.content-card-body > .field:last-child,
.content-card-body > .mini-card:last-child,
.content-card-body > .add-button:last-child {
  margin-bottom: 0;
}

/* Mini-card — nested item inside a content-card (main char, supp char, etc.) */
.mini-card {
  background: var(--parchment);
  border-radius: 12px;
  padding: 18px 20px 20px;
  margin-bottom: 14px;
  position: relative;
  border: 1px solid transparent;
  transition: border-color .15s ease;
}
.mini-card.hidden { display: none; }

.mini-card-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.mini-card-title span { flex: 1; }

.mini-card-remove {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  width: 26px; height: 26px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.mini-card-remove:hover {
  color: var(--terracotta-dark);
  background: var(--terracotta-tint);
}

.mini-card .field { margin-bottom: 14px; }
.mini-card .field:last-child { margin-bottom: 0; }

.mini-card-hint {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin: 8px 0 0;
}

/* Dashed "+ Add …" button for optional collapsed items */
.add-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px dashed var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  margin-top: 4px;
}
.add-button.hidden { display: none; }
.add-button:hover {
  border-color: var(--terracotta);
  border-style: solid;
  color: var(--terracotta-dark);
  background: var(--terracotta-tint);
}
.add-button em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  margin-left: 2px;
}
.add-button:hover em { color: var(--terracotta-dark); opacity: 0.7; }
.add-icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 300;
  margin-top: -1px;
}

/* Field-label used where we replaced <fieldset><legend> with cleaner markup */
.field-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
.field-label em {
  font-weight: 400; color: var(--muted); font-style: italic;
  letter-spacing: 0;
}

/* When content-card is inside the form, kill the outer form-card padding */
.form-card .content-card:first-of-type { margin-top: 0; }


/* wizard nav bar */
.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.wizard-nav-right { display: flex; gap: 10px; }
.wizard-nav .hidden { display: none; }
.btn-inline { display: inline-flex; padding: 10px 18px; margin-top: 4px; }
.btn-inline-remove {
  background: none; border: none;
  color: var(--terracotta);
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px 0;
  margin-top: 8px;
}
.btn-inline-remove:hover { color: var(--terracotta-dark); }

/* textarea */
textarea {
  width: 100%;
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-ui);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fffefa;
  color: var(--ink);
  resize: vertical;
  min-height: 90px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px var(--terracotta-tint);
}

/* ==========================================================================
   PROGRESS
   ========================================================================== */

.progress-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  padding: 56px 32px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.progress-illustration {
  display: flex; justify-content: center;
  margin-bottom: 32px;
}
.progress-ring {
  position: relative;
  width: 120px; height: 120px;
}
.progress-percent {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 26px; font-weight: 600;
  color: var(--ink);
}
#ring-progress { transition: stroke-dashoffset 0.6s ease; }

.progress-card h2 { margin-bottom: 8px; }
.progress-step-text {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 32px;
}
.stages {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 320px; margin: 0 auto;
  text-align: left;
}
.stage {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px;
  color: var(--muted);
  transition: color .3s ease;
}
.stage .dot {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--line);
  transition: background .3s ease, box-shadow .3s ease;
  flex-shrink: 0;
}
.stage.active { color: var(--ink); font-weight: 500; }
.stage.active .dot { background: var(--terracotta); box-shadow: 0 0 0 4px var(--terracotta-tint); }
.stage.done { color: var(--jade); }
.stage.done .dot { background: var(--jade); }

/* ==========================================================================
   PREVIEW
   ========================================================================== */

.preview-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.preview-header h2 { margin: 4px 0 0; }
.preview-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* AI-transparency panel above the pages grid */
.transparency-panel {
  margin: 0 0 24px;
}
.transparency-panel.hidden { display: none; }
.transparency-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  padding: 14px 18px;
  background: var(--parchment);
  border: 1px dashed var(--line);
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.transparency-toggle:hover { background: var(--gold-tint); border-color: var(--gold); }
.transparency-toggle .tt-icon { font-size: 16px; }
.transparency-toggle .tt-label { font-weight: 500; margin-right: auto; text-align: left; }
.transparency-toggle .tt-chevron {
  font-size: 20px; font-weight: 400;
  color: var(--muted);
  transition: transform .2s ease;
  transform: rotate(0deg);
}
.transparency-toggle.open .tt-chevron { transform: rotate(90deg); }
.transparency-body { padding: 18px 4px 4px; }
.transparency-body.hidden { display: none; }

.prompt-block {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}
.prompt-block-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--parchment);
}
.prompt-block-title {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
}
.prompt-block-tag {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 500;
  color: var(--muted);
  background: var(--card);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.prompt-copy {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.prompt-copy:hover { border-color: var(--terracotta); color: var(--terracotta); }

.prompt-body {
  margin: 0;
  padding: 14px 18px;
  font-family: 'SF Mono', 'Menlo', Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  background: #fdfaf3;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-height: 340px;
  overflow-y: auto;
}

/* Page-card tabs (Illustration / Prompt) */
.page-tabs {
  display: flex; gap: 4px;
  padding: 8px 10px;
  background: var(--parchment);
  border-bottom: 1px solid var(--line-soft);
}
.page-tab {
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.page-tab.active {
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.tab-panel { position: relative; }
.tab-panel.hidden { display: none; }
.prompt-panel {
  aspect-ratio: 1 / 1;
  overflow: auto;
  background: #fdfaf3;
}
.prompt-panel .prompt-body {
  max-height: none;
  height: 100%;
  padding: 20px 22px 32px;
  font-size: 11px;
}
.prompt-copy-inline {
  position: absolute; top: 10px; right: 10px;
  z-index: 2;
}

.pages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.page-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.page-card.cover {
  grid-column: 1 / -1;
  background: var(--ink);
  color: white;
}
.page-card .img {
  aspect-ratio: 1/1;
  background: var(--line-soft);
  overflow: hidden;
  max-width: 60%;
  margin: 16px auto 0;
  border-radius: var(--radius);
}
.page-card .img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.page-card .meta { padding: 18px 20px 20px; }
.page-card.cover .meta { text-align: center; padding: 24px; }
.page-card.cover .meta h3 { color: white; margin: 0 0 6px; font-size: 24px; }
.page-card.cover .meta p { color: rgba(255,255,255,0.75); margin: 0; font-family: var(--font-display); font-style: italic; }

.page-card .meta p.text {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-line;
}
.page-card .meta .vocab {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 10px;
}
.page-card .meta .vocab strong {
  color: var(--terracotta);
  font-weight: 700;
}

/* ==========================================================================
   ERROR
   ========================================================================== */

.error-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--terracotta-tint);
  padding: 40px;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.error-card h2 { color: var(--terracotta); margin-bottom: 12px; }
.error-card p { color: var(--muted); font-family: var(--font-ui); margin: 0 0 24px; }

/* ==========================================================================
   PROMPT EDITOR VIEW
   ========================================================================== */

.editor-header { margin-bottom: 32px; }
.editor-header .eyebrow { color: var(--jade); margin-bottom: 10px; }
.editor-header h2 { margin-bottom: 10px; max-width: 22ch; }
.editor-header .lede { max-width: 62ch; margin: 0; }

.editor-loading {
  display: flex; flex-direction: column; align-items: center;
  gap: 20px; padding: 80px 24px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 15px;
}
.editor-loading.hidden { display: none; }
.editor-spinner {
  width: 42px; height: 42px;
  border: 3px solid var(--line);
  border-top-color: var(--terracotta);
  border-radius: 999px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.editor-body.hidden { display: none; }
.editor-block {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 14px;
}
.editor-block.hidden { display: none; }
.editor-block-head {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: var(--parchment);
  border-bottom: 1px solid var(--line-soft);
}
.editor-block-title {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink);
}
.editor-block-tag {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 500;
  color: var(--muted);
  background: var(--card);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.editor-reset {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.editor-reset:hover { border-color: var(--jade); color: var(--jade); }

.editor-textarea {
  width: 100%;
  border: none;
  padding: 16px 18px;
  background: #fdfaf3;
  color: var(--ink);
  font-family: 'SF Mono', 'Menlo', Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
  white-space: pre-wrap;
}
.editor-textarea:focus {
  background: #fffbf3;
  box-shadow: inset 0 0 0 2px var(--terracotta-tint);
}
.editor-textarea-tall { min-height: 340px; }
.editor-textarea-med { min-height: 220px; }
.editor-textarea-short { min-height: 160px; }

.editor-pages-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--ink);
}
.editor-page-title-inline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin-right: 8px;
}
.editor-page-setting {
  font-family: var(--font-ui);
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.editor-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   ACCESS CODE MODAL
   ========================================================================== */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(31, 25, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  animation: fadeIn .2s ease;
}
.modal-backdrop.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  animation: modalPop .25s cubic-bezier(0.2, 0.9, 0.35, 1.15);
}
@keyframes modalPop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-card .modal-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 14px;
}
.modal-card h2 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink);
}
.modal-card > p {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0 0 24px;
}
.modal-card .field { text-align: left; margin-bottom: 16px; }
.modal-card input[type="text"] {
  text-align: center;
  letter-spacing: 0.04em;
  font-family: var(--font-ui);
}

.access-error {
  color: var(--terracotta-dark);
  background: var(--terracotta-tint);
  border: 1px solid var(--terracotta);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  font-family: var(--font-ui);
  margin: 0 0 12px;
  text-align: center;
}
.access-error.hidden { display: none; }

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: #2B2D42;
  color: #fff;
  padding: 48px var(--gutter) 32px;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.foot-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.foot-tag {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  margin: 0;
}
.foot-links {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.foot-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color .15s;
}
.foot-links a:hover { color: #fff; }
.foot-bottom {
  text-align: center;
}
.foot-fine {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin: 0;
  letter-spacing: 0.02em;
}
@media (max-width: 540px) {
  .foot-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .foot-links { flex-wrap: wrap; justify-content: center; }
}

/* ==========================================================================
   TEXT PREVIEW (MAR-13)
   ========================================================================== */

.text-preview-header { margin-bottom: 32px; }
.text-preview-header .eyebrow { color: var(--jade); margin-bottom: 10px; }
.text-preview-header h2 { margin-bottom: 10px; max-width: 24ch; }
.text-preview-header .lede { max-width: 62ch; margin: 0; }

.text-preview-body.hidden { display: none; }

.text-preview-pages {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.text-page-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.text-page-num {
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.text-page-body textarea {
  min-height: 80px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.55;
}
.text-page-body input[type="text"] {
  font-family: var(--font-display);
  font-weight: 600;
}
.text-page-vocab {
  font-family: var(--font-ui);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}
.text-page-vocab strong { color: var(--terracotta); }
.text-page-brief {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.text-preview-actions {
  display: flex; flex-direction: column; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
}
.text-preview-buttons {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; flex-wrap: wrap;
}

/* Quality picker */
.quality-picker {
  display: flex; flex-direction: column; gap: 8px;
}
.quality-label {
  font-size: 0.85rem; font-weight: 600; color: var(--text-soft);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.quality-options {
  display: flex; gap: 10px;
}
.quality-option {
  flex: 1; cursor: pointer;
}
.quality-option input { display: none; }
.quality-card {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
}
.quality-card strong {
  font-size: 0.95rem; color: var(--text);
}
.quality-desc {
  font-size: 0.8rem; color: var(--text-soft);
}
.quality-option input:checked + .quality-card {
  border-color: var(--accent);
  background: var(--gold-tint, #fdf8ef);
}

/* ==========================================================================
   EDIT MODE (MAR-10)
   ========================================================================== */

.edit-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--gold-tint);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
}
.edit-bar.hidden { display: none; }
.edit-bar-label {
  flex: 1;
  font-family: var(--font-ui);
  font-size: 13px; font-weight: 500;
  color: var(--ink-soft);
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.editable-text.editing {
  outline: 2px dashed var(--terracotta-tint);
  outline-offset: 4px;
  border-radius: 4px;
  cursor: text;
  min-height: 1.5em;
}
.editable-text.editing:focus {
  outline-color: var(--terracotta);
}

/* Regen image controls (edit mode) */
.regen-btn {
  display: block; width: 100%;
  margin: 0; padding: 10px;
  border: none; border-top: 1px solid var(--line-soft);
  background: var(--bg-tint); color: var(--terracotta);
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  cursor: pointer; text-align: center;
  transition: background .15s;
}
.regen-btn:hover { background: var(--terracotta-tint); }
.regen-btn.hidden { display: none; }
.regen-controls { padding: 12px; border-top: 1px solid var(--line-soft); background: var(--bg-tint); }
.regen-controls.hidden { display: none; }
.regen-input-row { display: flex; gap: 8px; align-items: flex-start; }
.regen-prompt {
  flex: 1; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 6px;
  font-family: var(--font-ui); font-size: 13px;
  resize: vertical; min-height: 48px;
  background: var(--card); color: var(--ink);
}
.regen-prompt:focus { border-color: var(--terracotta); outline: none; }
.regen-status { margin-top: 8px; font-size: 13px; color: var(--muted); }
.regen-status.hidden { display: none; }

/* ==========================================================================
   PROGRESSIVE RENDERING (MAR-9)
   ========================================================================== */

.progress-pages {
  display: flex; flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.progress-page-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeInUp .3s ease;
}
.progress-page-card.cover {
  background: var(--ink);
  color: white;
}
.progress-page-card .pp-img {
  aspect-ratio: 1/1;
  background: var(--line-soft);
  overflow: hidden;
}
.progress-page-card.cover .pp-img { background: var(--ink); }
.progress-page-card .pp-img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.progress-page-card .pp-text {
  padding: 16px 20px 16px 0;
  display: flex; flex-direction: column; justify-content: center;
}
.progress-page-card .pp-text h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 18px;
  color: inherit; margin: 0 0 4px;
}
.progress-page-card .pp-text p {
  font-family: var(--font-display);
  font-size: 14px; line-height: 1.5;
  color: inherit; margin: 0;
  opacity: 0.85;
}
.progress-page-card.cover .pp-text h3 { color: white; }
.progress-page-card.cover .pp-text p { color: rgba(255,255,255,0.75); }

@media (max-width: 500px) {
  .progress-page-card { grid-template-columns: 100px 1fr; }
}

/* ==========================================================================
   TEMPLATE PREVIEW MODAL (MAR-8)
   ========================================================================== */

.modal-card-wide {
  max-width: 640px;
  text-align: left;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}
.modal-card-wide h2 {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 8px;
  text-align: left;
}
.modal-card-wide .lede {
  font-size: 15px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.modal-card-wide .eyebrow {
  margin-bottom: 16px;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 36px; height: 36px;
  font-size: 22px; line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.modal-close:hover {
  background: var(--terracotta-tint);
  border-color: var(--terracotta);
  color: var(--terracotta-dark);
}

.template-pages {
  display: flex; flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.template-page {
  background: var(--parchment);
  border-radius: 10px;
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.template-page.cover {
  background: var(--ink);
  color: var(--cream);
}
.template-page strong {
  font-weight: 600;
  color: var(--ink);
}
.template-page.cover strong { color: var(--cream); }
.template-page .vocab {
  font-size: 12px;
  color: var(--muted);
}
.template-page .vocab strong {
  color: var(--terracotta);
}

/* Library card preview button */
.library-preview-btn {
  position: absolute;
  bottom: 12px; right: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  opacity: 0;
  transition: all .15s ease;
  z-index: 2;
}
.library-card:hover .library-preview-btn,
.story-card:hover .library-preview-btn { opacity: 1; }
.library-preview-btn:hover {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

/* ==========================================================================
   CULTURAL ENTRY (MAR-6)
   ========================================================================== */

.cultural-entry {
  animation: fadeInUp .2s ease;
}
.cultural-entry .cultural-type-input {
  width: 100%;
}
.cultural-entry .cultural-value-input {
  width: 100%;
}

/* ==========================================================================
   MY STORIES
   ========================================================================== */

.stories-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.stories-header h2 { margin: 4px 0 0; }

.stories-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--muted);
  font-family: var(--font-ui);
  font-size: 16px;
}
.stories-empty.hidden { display: none; }

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.stories-grid.hidden { display: none; }

.story-card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 22px 24px 20px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--terracotta);
}
.story-card-header h3 {
  font-family: var(--font-display);
  font-weight: 600; font-size: 20px;
  color: var(--ink);
  margin: 0 0 4px;
}
.story-card-subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.story-card-meta {
  display: flex; justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 8px;
}
.story-card-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--gold-tint);
  color: #8a6820;
  font-family: var(--font-ui);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

/* ==========================================================================
   BRAINY HEARTY — HOMEPAGE SECTIONS
   Scoped with bh- prefix so wizard/form tokens stay untouched.
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.bh-paper-grain {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.bh-hero {
  background-color: #A8D8EA;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(168deg, #BFE4F0 0%, #A8D8EA 50%, #C4E3EE 100%);
  padding: clamp(72px, 10vw, 120px) var(--gutter) clamp(48px, 6vw, 72px);
  overflow: hidden;
}
.bh-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
}
.bh-hero-text {
  text-align: left;
}
.bh-hero-kicker {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5B8C5A;
  margin: 0 0 16px;
}
.bh-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #2B2D42;
  margin: 0 0 20px;
}
.bh-hero-sub {
  font-size: clamp(16px, 1.2vw, 19px);
  color: #3a3a4a;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 32px;
}
.bh-cta {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  background: #5B8C5A;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 16px -4px rgba(91,140,90,0.45);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.bh-cta:hover {
  background: #4a7849;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -6px rgba(91,140,90,0.5);
}
.bh-cta:focus-visible {
  outline: 3px solid #5B8C5A;
  outline-offset: 3px;
}

/* Hero book cover */
.bh-hero-cover {
  display: flex;
  justify-content: center;
  position: relative;
}
.bh-cover-frame {
  position: relative;
  z-index: 2;
  transform: rotate(2deg);
  transition: transform .5s cubic-bezier(.22,1,.36,1);
}
.bh-cover-frame:hover {
  transform: rotate(0deg) scale(1.02);
}
.bh-cover-frame-2 {
  transform: rotate(-3deg) translateY(24px);
  margin-left: -16px;
}
.bh-cover-frame-2:hover {
  transform: rotate(0deg) translateY(24px) scale(1.02);
}
.bh-cover-img {
  width: clamp(180px, 20vw, 300px);
  border-radius: 12px;
  box-shadow:
    0 2px 0 0 rgba(90,62,40,0.15),
    0 16px 48px -12px rgba(43,45,66,0.3),
    0 4px 12px -2px rgba(43,45,66,0.12);
}
.bh-cover-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(43,45,66,0.15) 0%, transparent 70%);
  z-index: 1;
}

/* hero load animation */
.bh-hero-inner.bh-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

/* Mobile: stack vertically */
@media (max-width: 768px) {
  .bh-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .bh-hero-cover {
    order: 1;
    margin-top: 0;
  }
  .bh-hero-text {
    text-align: center;
    order: 2;
  }
  .bh-hero-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .bh-cover-img {
    width: clamp(140px, 38vw, 220px);
  }
}

/* ── Pillars ──────────────────────────────────────────────────────────────── */

.bh-pillars {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background: #fff;
}
.bh-pillars-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bh-pillars-intro {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #2B2D42;
  margin: 0 0 12px;
  max-width: 16ch;
}
.bh-pillars-sub {
  font-size: clamp(15px, 1.1vw, 18px);
  color: #4a4a5a;
  line-height: 1.5;
  margin: 0 0 40px;
}
.bh-pillar-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.bh-pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.bh-pillar-card {
  background: var(--pillar-tint, #f5f5f5);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.bh-pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(43,45,66,0.14);
}
.bh-pillar-icon {
  width: 120px; height: 120px;
  margin-bottom: 20px;
}
.bh-pillar-icon svg { width: 100%; height: 100%; }
.bh-pillar-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: #2B2D42;
  margin: 0 0 8px;
}
.bh-pillar-card p {
  font-size: 15px;
  color: #4a4a5a;
  line-height: 1.55;
  margin: 0;
}

/* scroll-reveal for pillar cards */
.bh-pillar-card {
  opacity: 0;
  transform: translateY(24px);
}
.bh-pillar-card.bh-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease;
}

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

/* ── How It Works ─────────────────────────────────────────────────────────── */

.bh-how {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background-color: #F9F5F0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.bh-how-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bh-how-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #2B2D42;
  margin: 0 0 48px;
}
.bh-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bh-step {
  position: relative;
  padding: 0;
}
.bh-step-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
}
.bh-step-icon svg { width: 100%; height: 100%; }
.bh-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #5B8C5A;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.bh-step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: #2B2D42;
  margin: 0 0 8px;
}
.bh-step p {
  font-size: 15px;
  color: #4a4a5a;
  line-height: 1.55;
  margin: 0;
  max-width: 36ch;
}

@media (max-width: 720px) {
  .bh-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Why Parents ──────────────────────────────────────────────────────────── */

.bh-why {
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  background: #fff;
}
.bh-why-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.bh-why-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #2B2D42;
  margin: 0 0 48px;
}
.bh-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bh-quote {
  margin: 0;
  padding: 36px 24px 28px;
  background-color: #F9F5F0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  border-radius: var(--radius);
  border-left: 4px solid #5B8C5A;
  position: relative;
}
.bh-quote-mark {
  position: absolute;
  top: 10px;
  left: 18px;
  font-family: var(--font-display);
  font-size: 48px;
  line-height: 1;
  color: #5B8C5A;
  opacity: 0.25;
}
.bh-quote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: #2B2D42;
  margin: 0;
}
.bh-quote-attr {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
  color: #5B8C5A;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .bh-quotes { grid-template-columns: 1fr; }
}

/* ── Closing CTA ──────────────────────────────────────────────────────────── */

.bh-closing {
  padding: clamp(80px, 10vw, 128px) var(--gutter);
  background: linear-gradient(168deg, #2B2D42 0%, #3a3d58 100%);
  text-align: center;
}
.bh-closing-inner {
  max-width: 680px;
  margin: 0 auto;
}
.bh-closing-heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 20px;
}
.bh-closing-sub {
  font-size: clamp(17px, 1.3vw, 20px);
  color: rgba(255,255,255,0.7);
  margin: 0 0 36px;
  line-height: 1.5;
}
.bh-closing .bh-cta {
  background: #5B8C5A;
  color: #fff;
}
.bh-closing .bh-cta:hover {
  background: #4a7849;
}

/* ── Reduced motion ───────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .bh-hero-inner,
  .bh-pillar-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
