/* ── Fonts ────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Nunito+Sans:wght@400;500;600;700&display=swap');

/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso:     #2D1B14;
  --brown:        #6B4226;
  --brown-light:  #8B6340;
  --terracotta:   #C45D3E;
  --teal:         #1A7A6D;
  --teal-dark:    #0E4A45;
  --teal-light:   #E6F5F3;
  --magenta:      #B5295A;
  --cream:        #FDF6ED;
  --cream-dark:   #F0E4D4;
  --parchment:    #F7EFDF;
  --gold:         #E8A838;
  --gold-light:   #F2C560;
  --text:         #2D1B14;
  --text-light:   #7A6B5D;
  --white:        #FFFFFF;
  --green:        #1A7A6D;
  --green-soft:   #E6F5F3;
  --red:          #C0392B;
  --red-soft:     #FCEAE8;
  --gold-soft:    #FEF5E0;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow:       0 2px 20px rgba(60,36,21,.08);
  --shadow-hover: 0 8px 32px rgba(60,36,21,.14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Nunito Sans', 'Segoe UI', sans-serif;
  --ease-out:     cubic-bezier(.23, 1, .32, 1);
  --ease-bounce:  cubic-bezier(.34, 1.56, .64, 1);
}

/* ── Breakpoints ──────────────────────────────────────
   --bp-sm: 600px   (phone landscape / small tablet)
   --bp-md: 768px   (tablet portrait)
   --bp-lg: 1024px  (desktop)
   Direction: mobile-first (min-width only)
   Exception: max-width: 400px allowed for narrow-screen adjustments
   ─────────────────────────────────────────────────────── */

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ── Header ──────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 48px 24px 40px;
  background: linear-gradient(135deg, var(--teal) 0%, #14605A 50%, var(--teal-dark) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,168,56,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(196,93,62,.15) 0%, transparent 60%);
  pointer-events: none;
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--magenta), var(--gold), var(--terracotta));
}

.site-header h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: .03em;
  position: relative;
  animation: fadeSlideDown .8s var(--ease-out) both;
}

.site-header .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  margin-top: 6px;
  font-size: 1.1rem;
  opacity: .8;
  letter-spacing: .04em;
  position: relative;
  animation: fadeSlideDown .8s .15s var(--ease-out) both;
}

.header-flourish {
  display: block;
  margin: 16px auto 0;
  width: 120px;
  height: 2px;
  background: var(--gold);
  position: relative;
  animation: flourishReveal .6s .4s var(--ease-out) both;
}

.header-flourish::before,
.header-flourish::after {
  content: '';
  position: absolute;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.header-flourish::before { left: -4px; }
.header-flourish::after  { right: -4px; }

/* ── Progress Bar ────────────────────────────────────── */
.progress-wrap {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  padding: 12px 20px;
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity .3s, transform .3s var(--ease-out);
}

.progress-wrap.visible {
  opacity: 1;
  transform: translateY(0);
}

.progress-label {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-track {
  width: 100%;
  height: 6px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 3px;
  transition: width .4s var(--ease-out);
}

/* ── Passphrase Gate ─────────────────────────────────── */
.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  padding: 32px 24px;
  animation: gateFadeIn 1s .3s var(--ease-out) both;
}

.gate-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  color: var(--teal);
  opacity: .8;
}

.gate h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
  letter-spacing: .01em;
}

.gate p {
  color: var(--text-light);
  margin-bottom: 28px;
  font-size: .95rem;
  max-width: 320px;
}

.gate-input-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.gate input[type="password"] {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  text-align: center;
  background: var(--white);
  transition: border-color .3s, box-shadow .3s;
}

.gate input[type="password"]:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,122,109,.15);
}

.gate .error {
  color: var(--red);
  font-size: .85rem;
  margin-top: 10px;
  min-height: 1.2em;
}

/* ── Cards ───────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  margin-bottom: 24px;
  position: relative;
  border: 1px solid rgba(240,230,216,.6);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-hover);
}

/* Scroll reveal animation */
.card.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out),
              box-shadow .3s var(--ease-out);
}

.card.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: none;
  position: relative;
  letter-spacing: .01em;
}

.card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  border-radius: 2px;
}

/* ── Intro Text ──────────────────────────────────────── */
.intro-text {
  text-align: center;
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--text-light);
  font-size: .95rem;
  line-height: 1.7;
  animation: fadeSlideUp .6s var(--ease-out) both;
}

/* ── Form Fields ─────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: .9rem;
  color: var(--espresso);
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  background: var(--parchment);
  transition: border-color .3s, box-shadow .3s, background .3s;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(26,122,109,.12);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* ── Questions ───────────────────────────────────────── */
.question {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cream-dark);
}

.question:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.question p {
  font-size: .95rem;
  margin-bottom: 10px;
  line-height: 1.55;
}

.options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.options label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  padding: 8px 18px;
  min-height: 48px;
  border: 2px solid var(--cream-dark);
  border-radius: 24px;
  font-size: .88rem;
  font-weight: 500;
  transition: all .2s var(--ease-out);
  user-select: none;
  background: var(--parchment);
}

.options label:hover {
  border-color: var(--teal);
  background: var(--cream-dark);
}

.options label:has(input:checked[value="Yes"]) {
  border-color: var(--teal);
  background: var(--teal-light);
  color: var(--teal-dark);
  font-weight: 700;
  transform: scale(1.03);
}

.options label:has(input:checked[value="No"]) {
  border-color: var(--red);
  background: var(--red-soft);
  color: #8B2020;
  font-weight: 700;
  transform: scale(1.03);
}

.options label:has(input:checked[value="Not Sure"]) {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: #8B6914;
  font-weight: 700;
  transform: scale(1.03);
}

.options input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--cream-dark);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all .2s var(--ease-out);
}

.options label:has(input:checked[value="Yes"]) input {
  border-color: var(--teal);
  background: var(--teal);
  box-shadow: inset 0 0 0 3px var(--white);
}

.options label:has(input:checked[value="No"]) input {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--white);
}

.options label:has(input:checked[value="Not Sure"]) input {
  border-color: var(--gold);
  background: var(--gold);
  box-shadow: inset 0 0 0 3px var(--white);
}

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--teal);
  color: var(--cream);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: all .25s var(--ease-out);
  text-align: center;
  letter-spacing: .02em;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.1) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform .5s;
}

.btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,122,109,.25);
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--terracotta));
  color: var(--white);
  font-size: 1.05rem;
  padding: 16px 48px;
}

.btn--gold:hover {
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  box-shadow: 0 6px 24px rgba(196,110,74,.3);
}

/* ── Success Screen ──────────────────────────────────── */
.success {
  text-align: center;
  padding: 56px 28px;
}

.success .checkmark {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  background: var(--teal-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--teal);
  animation: popIn .5s var(--ease-bounce) both;
}

.success h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--espresso);
  margin-bottom: 12px;
  animation: fadeSlideUp .5s .2s var(--ease-out) both;
}

.success h2::after { display: none; }

.success p {
  color: var(--text-light);
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.7;
  animation: fadeSlideUp .5s .35s var(--ease-out) both;
}

/* ── Results Bars ────────────────────────────────────── */
.result-question {
  margin-bottom: 22px;
}

.result-question p {
  font-size: .93rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--espresso);
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
  font-size: .85rem;
}

.bar-label {
  width: 70px;
  text-align: right;
  color: var(--text-light);
  flex-shrink: 0;
  font-weight: 500;
}

.bar-track {
  flex: 1;
  height: 24px;
  background: var(--cream-dark);
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  transition: width .6s var(--ease-out);
}

.bar-fill--yes   { background: linear-gradient(90deg, var(--teal), #2E9E8E); }
.bar-fill--no    { background: linear-gradient(90deg, var(--red), #D4574A); }
.bar-fill--maybe { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }

.bar-count {
  width: 28px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--espresso);
}

.total-responses {
  text-align: center;
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.total-responses strong {
  font-family: var(--font-display);
  color: var(--espresso);
  font-size: 2rem;
  display: block;
  margin-bottom: 2px;
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 24px;
  font-size: .8rem;
  color: var(--text-light);
  opacity: .6;
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: .03em;
}

/* ── Utilities ───────────────────────────────────────── */
.hidden { display: none !important; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.text-center { text-align: center; }

/* ── Animations ──────────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes gateFadeIn {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes flourishReveal {
  from { width: 0; opacity: 0; }
  to   { width: 120px; opacity: 1; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(.5); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Insights Page ──────────────────────────────────── */
.insights-container {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 14px 40px;
}

/* Status banner */
.insights-status {
  text-align: center;
  padding: 16px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 8px;
  border-left: 4px solid var(--gold);
}

.insights-status .status-count {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--espresso);
}

.insights-status .status-pending {
  color: var(--text-light);
  font-size: .85rem;
  margin-top: 2px;
}

.pending-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

/* Section headings */
.section-heading {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-align: center;
  margin: 36px 0 18px;
}

.section-heading::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Highlight grid — mobile: 1 column */
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  border-top: 4px solid var(--teal);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.highlight-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.highlight-card.unanimous { border-top-color: var(--teal); }
.highlight-card.strong    { border-top-color: var(--gold); }
.highlight-card.split     { border-top-color: var(--terracotta); }

.highlight-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 10px;
  text-align: center;
}

.highlight-card ul {
  list-style: none;
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.75;
}

.highlight-card.unanimous li::before {
  content: '\2713  ';
  color: var(--teal);
  font-weight: 700;
}

.highlight-card.strong li::before {
  content: '\2713  ';
  color: var(--gold);
  font-weight: 700;
}

.highlight-card.split li::before {
  content: '~  ';
  color: var(--terracotta);
  font-weight: 700;
}

/* Vote breakdown — tighter spacing */
.insights-container .card {
  padding: 22px 24px 18px;
  margin-bottom: 16px;
}

.insights-container .card h2 {
  font-size: 1.2rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
}

.insights-container .result-question {
  margin-bottom: 14px;
}

.insights-container .result-question p {
  font-size: .88rem;
  margin-bottom: 6px;
}

.insights-container .bar-row {
  margin-bottom: 3px;
  font-size: .82rem;
}

/* Mobile base: tighter bar labels */
.insights-container .bar-label {
  width: 48px;
  font-size: .74rem;
}

/* Mobile base: tighter bar tracks */
.insights-container .bar-track {
  height: 18px;
}

.insights-container .bar-count {
  width: 24px;
  font-size: .82rem;
}

/* Theme cards — mobile: 1 column */
.theme-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 8px;
}

.theme-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  border: 1px solid rgba(240,230,216,.6);
  transition: box-shadow .3s var(--ease-out);
}

.theme-card:hover {
  box-shadow: var(--shadow-hover);
}

.theme-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--cream-dark);
}

.theme-card .theme-takeaway {
  font-size: .84rem;
  color: var(--espresso);
  font-weight: 600;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--cream-dark);
  line-height: 1.55;
}

.quote-block {
  margin: 8px 0;
  padding: 8px 12px;
  background: var(--parchment);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .84rem;
  line-height: 1.5;
  color: var(--text);
}

.quote-block .quote-author {
  display: block;
  margin-top: 3px;
  font-weight: 700;
  font-size: .78rem;
  color: var(--teal);
}

/* Roadmap */
.roadmap-phase {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px 18px;
  margin-bottom: 16px;
}

.roadmap-phase-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.phase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}

.phase-1 .phase-badge { background: var(--teal); }
.phase-2 .phase-badge { background: var(--gold); }
.phase-3 .phase-badge { background: var(--magenta); }
.phase-4 .phase-badge { background: var(--terracotta); }
.phase-5 .phase-badge { background: var(--text-light); }

.roadmap-phase-header h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--espresso);
}

/* Mobile base: no indent for phase description */
.roadmap-phase-header .phase-desc {
  width: 100%;
  font-size: .84rem;
  color: var(--text-light);
  margin-top: -6px;
  padding-left: 0;
}

/* Mobile base: single column roadmap features */
.roadmap-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.roadmap-feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--parchment);
  border-radius: var(--radius);
  border: 1px solid var(--cream-dark);
  font-size: .86rem;
  transition: border-color .2s, background .2s;
}

.roadmap-feature:hover {
  border-color: var(--teal);
  background: var(--teal-light);
}

.vote-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
}

.vote-badge.high    { background: var(--teal-light); color: var(--teal-dark); }
.vote-badge.medium  { background: var(--gold-soft); color: #8B6914; }
.vote-badge.low     { background: var(--red-soft); color: #8B2020; }
.vote-badge.neutral { background: var(--cream-dark); color: var(--text-light); }

/* ══════════════════════════════════════════════════════
   PHASE 1: PUBLIC SITE
   ══════════════════════════════════════════════════════ */

/* -- Wide Container (mobile base) -- */
.container-wide {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

/* -- Navigation -- */
#site-nav {
  min-height: 61px; /* reserve space to prevent CLS (60px nav + 1px border) */
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--cream-dark);
  box-shadow: 0 1px 8px rgba(45,27,20,.06);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
  letter-spacing: .02em;
}

.nav-brand:hover { color: var(--teal); }

/* Mobile base: drawer nav */
.nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 80px 20px 32px;
  gap: 4px;
  list-style: none;
  transform: translateX(100%);
  transition: transform .3s var(--ease-out);
  box-shadow: -4px 0 24px rgba(45,27,20,.1);
  z-index: 1001;
}

.nav-menu.open { transform: translateX(0); }

.nav-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  transition: color .2s, background .2s;
}

.nav-menu a:hover {
  color: var(--teal);
  background: var(--teal-light);
}

.nav-menu a.active {
  color: var(--teal);
  background: var(--teal-light);
}

/* Mobile base: hamburger visible */
.nav-toggle {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45,27,20,.4);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s;
}

.nav-overlay.open {
  display: block;
  opacity: 1;
}

/* -- Hero (mobile base) -- */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  background: linear-gradient(135deg, var(--teal) 0%, #14605A 50%, var(--teal-dark) 100%);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(232,168,56,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(196,93,62,.15) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold), var(--magenta), var(--gold), var(--terracotta));
}

/* Mobile base: smaller hero text */
.hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: .03em;
  position: relative;
  animation: fadeSlideDown .8s var(--ease-out) both;
  margin-bottom: 12px;
}

/* Mobile base: smaller tagline */
.hero .hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  opacity: .85;
  position: relative;
  animation: fadeSlideDown .8s .15s var(--ease-out) both;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  animation: fadeSlideUp .8s .3s var(--ease-out) both;
}

.btn--outline {
  background: transparent;
  border: 2px solid rgba(253,246,237,.6);
  color: var(--cream);
}

.btn--outline:hover {
  background: rgba(253,246,237,.15);
  border-color: var(--cream);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

/* -- Section Titles (public pages) -- */
.section-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  margin: 10px auto 0;
  border-radius: 2px;
}

/* -- Currently Reading (mobile base: column layout) -- */
.currently-reading {
  padding: 48px 20px;
}

.reading-card {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  border: 1px solid rgba(240,230,216,.6);
}

/* Mobile base: smaller cover */
.reading-cover {
  width: 120px;
  min-width: 120px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.reading-info h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 4px;
}

.reading-info .reading-author {
  font-size: .95rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.reading-info .reading-meta {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 12px;
}

.reading-info .reading-desc {
  font-size: .9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

/* Mobile base: centered reading links */
.reading-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.reading-links a {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  min-height: 48px;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 20px;
  text-decoration: none;
  transition: all .2s;
}

.link-tumas {
  background: #F3E8F9;
  color: #6B2F8A;
}

.link-tumas:hover {
  background: #6B2F8A;
  color: var(--white);
}

.link-amazon {
  background: var(--gold-soft);
  color: #8B6914;
}

.link-amazon:hover {
  background: var(--gold);
  color: var(--white);
}

/* -- Book Cards / Library -- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-pill {
  padding: 8px 20px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--cream-dark);
  border-radius: 24px;
  background: var(--parchment);
  font-size: .85rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text-light);
  cursor: pointer;
  transition: all .2s var(--ease-out);
}

.filter-pill:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.filter-pill.active {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

/* Mobile base: single column book grid */
.book-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 360px;
  margin: 0 auto;
}

.book-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(240,230,216,.6);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.book-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

/* Mobile base: smaller book cover emoji */
.book-cover {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
}

.book-details {
  padding: 16px 18px 20px;
}

.book-details h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 2px;
  line-height: 1.3;
}

.book-details .book-author {
  font-size: .85rem;
  color: var(--text-light);
  margin-bottom: 8px;
}

.book-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 8px;
}

.book-tag--memoir   { background: var(--teal-light); color: var(--teal-dark); }
.book-tag--fiction   { background: var(--gold-soft); color: #8B6914; }
.book-tag--poetry    { background: #F3E8F9; color: #6B2F8A; }
.book-tag--nonfiction { background: var(--red-soft); color: #8B2020; }

.book-date {
  font-size: .78rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.book-purchase {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.book-purchase a {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  min-height: 48px;
  font-size: .75rem;
  font-weight: 600;
  border-radius: 16px;
  text-decoration: none;
  transition: all .2s;
}

/* -- Member Cards / About -- */
.story-section {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}

.story-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 16px;
}

/* Mobile base: single column member grid */
.member-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 360px;
  margin: 0 auto;
}

.member-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(240,230,216,.6);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.member-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.member-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--espresso);
  margin-bottom: 2px;
}

.member-role {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal);
  margin-bottom: 10px;
}

.member-bio {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.55;
  margin-bottom: 10px;
}

.member-fav {
  font-size: .8rem;
  color: var(--text-light);
  font-style: italic;
}

.member-fav strong {
  color: var(--espresso);
}

/* -- Photo Gallery (mobile base: single column) -- */
.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 400px;
  margin: 0 auto;
}

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: box-shadow .3s var(--ease-out), transform .3s var(--ease-out);
}

.photo-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.photo-placeholder {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.photo-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .25;
  color: var(--white);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(45,27,20,.7));
  color: var(--white);
}

.photo-caption .caption-title {
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.photo-caption .caption-date {
  font-size: .75rem;
  opacity: .8;
}

/* -- Social Mock -- */
.social-section {
  padding: 48px 20px;
  text-align: center;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  max-width: 480px;
  margin: 0 auto 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.social-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-tile svg {
  width: 32px;
  height: 32px;
  opacity: .3;
  color: var(--white);
}

.social-handle {
  font-size: .9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* -- Photo Preview Strip (homepage) -- */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto 24px;
}

.photo-strip .photo-card {
  height: 200px;
}

.photo-strip .photo-placeholder {
  height: 100%;
}

/* -- Footer Full -- */
.footer-full {
  background: var(--espresso);
  color: var(--cream);
  padding: 48px 24px 32px;
}

/* Mobile base: single column footer */
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--cream);
}

/* Mobile base: center footer description */
.footer-desc {
  font-size: .85rem;
  color: rgba(253,246,237,.6);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--gold);
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  font-size: .85rem;
  color: rgba(253,246,237,.7);
  text-decoration: none;
  transition: color .2s;
  padding: 12px 0;
  display: inline-block;
}

.footer-col a:hover {
  color: var(--cream);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  margin-top: 32px;
  border-top: 1px solid rgba(253,246,237,.1);
  font-size: .8rem;
  color: rgba(253,246,237,.4);
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════
   RESPONSIVE: min-width breakpoints (mobile-first)
   ══════════════════════════════════════════════════════ */

/* ── 600px: phone landscape / small tablet ───────────── */
@media (min-width: 600px) {
  .container { padding: 40px 32px 80px; }
  .container-wide { padding: 40px 32px 80px; }
  .site-header { padding: 56px 32px 48px; }
  .site-header h1 { font-size: 3rem; }
  .gate h2 { font-size: 2.4rem; }
  .card { padding: 32px 32px 28px; }

  .hero { padding: 100px 32px 80px; }
  .hero h1 { font-size: 3.6rem; }
  .hero .hero-tagline { font-size: 1.2rem; }

  .reading-card {
    flex-direction: row;
    text-align: left;
    gap: 32px;
    padding: 32px;
  }
  .reading-cover { width: 140px; min-width: 140px; font-size: 4rem; }
  .reading-links { justify-content: flex-start; }

  .book-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
  .book-cover { font-size: 4.5rem; }
  .member-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); max-width: none; margin: 0; }
  .photo-strip { grid-template-columns: repeat(3, 1fr); }
}

/* ── 768px: tablet portrait ──────────────────────────── */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    position: static;
    width: auto;
    height: auto;
    background: none;
    flex-direction: row;
    align-items: center;
    padding: 0;
    gap: 4px;
    transform: none;
    transition: none;
    box-shadow: none;
    z-index: auto;
  }
  .nav-menu a {
    font-size: .9rem;
    padding: 14px 16px;
  }

  .insights-container { padding: 40px 32px 64px; }
  .insights-container .bar-label { width: 58px; font-size: .78rem; }
  .insights-container .bar-track { height: 20px; }
  .highlight-grid { grid-template-columns: repeat(3, 1fr); }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-phase-header .phase-desc { padding-left: 44px; }
  .roadmap-features { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    text-align: left;
  }
  .footer-desc { margin: 0; }
}

/* ── 1024px: desktop ─────────────────────────────────── */
@media (min-width: 1024px) {
  .book-grid { grid-template-columns: repeat(3, 1fr); }
  .member-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 400px: narrow-screen exception ──────────────────── */
@media (max-width: 400px) {
  .options { gap: 8px; }
  .options label { padding: 6px 12px; font-size: .82rem; gap: 5px; }
  .options input[type="radio"] { width: 16px; height: 16px; }
  .progress-label { font-size: .7rem; }
  .card { padding: 22px 18px 20px; }
  .card h2 { font-size: 1.25rem; }
  .gate h2 { font-size: 1.7rem; }
  .btn--gold { padding: 14px 36px; font-size: 1rem; }
  .section-heading { font-size: 1.4rem; margin: 28px 0 14px; }
  .highlight-card { padding: 16px 14px; }
  .highlight-card h3 { font-size: .95rem; }
  .highlight-card ul { font-size: .8rem; }
  .insights-container .card { padding: 18px 16px 14px; }
  .insights-container .card h2 { font-size: 1.1rem; }
  .insights-container .result-question p { font-size: .84rem; }
  .roadmap-phase { padding: 18px 16px 14px; }
  .roadmap-phase-header h3 { font-size: 1.05rem; }
  .roadmap-feature { padding: 8px 12px; font-size: .82rem; }
  .theme-card { padding: 16px; }
  .theme-card h3 { font-size: .98rem; }
  .quote-block { font-size: .8rem; padding: 7px 10px; }
}
