/* ─────────────────────────────────────────────
   The Family Dinner Method — Shared Article Styles
   ───────────────────────────────────────────── */

:root {
  --rust:     #C8523A;
  --rust-dk:  #A83D28;
  --rust-lt:  #F0C4BA;
  --sage:     #6B8F5E;
  --sage-dk:  #547249;
  --sage-lt:  #EBF2E8;
  --lav:      #C5B8D4;
  --lav-lt:   #EDE8F5;
  --cream:    #F5EDDF;
  --cream-lt: #FFFDF7;
  --charcoal: #1C1208;
  --mid:      #6B5E52;
  --mustard:  #D4A54A;
  --r:        16px;
  --rs:       999px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
img  { display: block; max-width: 100%; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── NOISE ─── */
#noise {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999;
  opacity: 0.03;
}

/* ─── NAV ─── */
nav.topnav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 500;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 2.5rem;
  background: rgba(245,237,223,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--charcoal);
}
.nav-brand {
  font-family: 'Fraunces', serif;
  font-weight: 900; font-size: 0.95rem;
  letter-spacing: -0.02em; color: var(--charcoal);
  text-decoration: none;
}
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-link { font-family: 'Baloo 2', cursive; font-weight: 700; font-size: 0.8rem; color: var(--charcoal); text-decoration: none; transition: color 0.15s; }
.nav-link:hover, .nav-link.active { color: var(--rust); }
.nav-cta {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.82rem;
  padding: 0.45rem 1.2rem;
  background: var(--rust); color: var(--cream);
  border: 2px solid var(--rust); border-radius: var(--rs);
  text-decoration: none;
  transition: background 0.15s, transform 0.12s;
}
.nav-cta:hover { background: var(--rust-dk); border-color: var(--rust-dk); }
.nav-cta:active { transform: scale(0.97); }

/* ─── ARTICLE HERO ─── */
#hero {
  background: var(--rust);
  padding: 5rem 2.5rem 4rem;
  border-bottom: 2.5px solid var(--charcoal);
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  margin-bottom: 1.5rem;
}
.hero-eyebrow a {
  color: rgba(255,255,255,0.78); text-decoration: none;
  transition: color 0.15s;
}
.hero-eyebrow a:hover { color: white; }
.article-title {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 0.95; letter-spacing: -0.03em;
  color: var(--cream); margin-bottom: 1.25rem;
}
.article-title em { font-style: italic; opacity: 0.78; }
.article-meta {
  font-size: 0.8rem; color: rgba(255,255,255,0.65);
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}

/* ─── LAYOUT ─── */
.article-layout {
  display: grid;
  grid-template-columns: 1fr min(680px, 100%) 1fr;
  padding: 4rem 1rem;
  gap: 0;
}
.article-layout > * { grid-column: 2; }
.full-bleed { grid-column: 1 / -1; }

/* ─── ARTICLE BODY ─── */
.article-body { max-width: 680px; }

.article-body p { margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.75; }
.article-body p:last-child { margin-bottom: 0; }

.article-body h2 {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 3rem 0 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--charcoal);
}
.article-body h3 {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  margin: 1.75rem 0 0.5rem;
}
.article-body ul, .article-body ol {
  padding-left: 1.5rem; margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.5rem; font-size: 1rem; line-height: 1.65; }
.article-body strong { font-weight: 700; }
.article-body em { font-style: italic; }
.article-body a { color: var(--rust-dk); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--rust); }

/* ─── PROMPT BOX ─── */
.prompt-box {
  background: var(--charcoal);
  border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  position: relative;
}
.prompt-box-label {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mustard); margin-bottom: 0.75rem; display: block;
}
.prompt-box pre {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem; color: rgba(245,237,223,0.9);
  white-space: pre-wrap; line-height: 1.6; margin: 0;
}
.copy-btn {
  position: absolute; top: 1rem; right: 1rem;
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.7rem; padding: 0.3rem 0.75rem;
  background: transparent; color: rgba(245,237,223,0.55);
  border: 1.5px solid rgba(245,237,223,0.25); border-radius: var(--rs);
  cursor: pointer; transition: all 0.15s;
}
.copy-btn:hover { color: var(--cream); border-color: rgba(245,237,223,0.5); }
.copy-btn:active { transform: scale(0.97); }

/* ─── PROMPT GATE (email capture) ─── */
.prompt-locked-wrap {
  position: relative;
  margin: 1.75rem 0;
}
.prompt-locked-wrap .prompt-box { margin: 0; }
.prompt-locked-wrap.is-locked .prompt-box {
  filter: blur(6px);
  user-select: none;
  pointer-events: none;
  border-radius: var(--r);
  overflow: hidden;
}
.prompt-lock-overlay {
  display: none;
  position: absolute; inset: 0;
  border-radius: var(--r);
  align-items: center; justify-content: center;
  background: rgba(28,18,8,0.45);
  cursor: pointer;
}
.prompt-locked-wrap.is-locked .prompt-lock-overlay { display: flex; }
.lock-icon { font-size: 1.6rem; opacity: 0.75; }

.prompt-gate {
  background: var(--charcoal);
  border: 2px solid var(--charcoal);
  border-radius: var(--r);
  padding: 2rem 2rem 1.75rem;
  margin: 2.5rem 0;
  box-shadow: 4px 4px 0 var(--rust);
}
.gate-label {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mustard); margin-bottom: 0.6rem; display: block;
}
.gate-title {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em;
  color: var(--cream); margin-bottom: 0.5rem;
}
.gate-sub {
  font-size: 0.85rem; color: rgba(245,237,223,0.72);
  margin-bottom: 1.25rem; line-height: 1.6;
}
.gate-fields {
  display: flex; gap: 0.6rem; flex-wrap: wrap;
  margin-bottom: 0.6rem;
}
.gate-fields input {
  flex: 1; min-width: 130px;
  font-family: 'Nunito', sans-serif; font-size: 0.88rem;
  padding: 0.6rem 0.9rem;
  border: 1.5px solid rgba(245,237,223,0.25); border-radius: 8px;
  background: rgba(245,237,223,0.08); color: var(--cream);
  outline: none; transition: border-color 0.15s;
}
.gate-fields input::placeholder { color: rgba(245,237,223,0.35); }
.gate-fields input:focus { border-color: var(--mustard); }
.gate-btn {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: 0.88rem; padding: 0.6rem 1.4rem;
  background: var(--rust); color: var(--cream);
  border: 1.5px solid var(--rust); border-radius: var(--rs);
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s, transform 0.12s;
}
.gate-btn:hover { background: var(--rust-dk); }
.gate-btn:active { transform: scale(0.97); }
.gate-note {
  font-size: 0.7rem; color: rgba(245,237,223,0.4);
  margin-top: 0.5rem;
}
.gate-error {
  display: none;
  font-size: 0.78rem; color: var(--rust-lt);
  margin-top: 0.5rem;
}
.gate-success {
  display: none;
  text-align: center; padding: 0.5rem 0;
}
.gate-success-title {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 1.15rem; color: var(--cream);
  margin-bottom: 0.35rem;
}
.gate-success-body {
  font-size: 0.82rem; color: rgba(245,237,223,0.72);
}

/* ─── CALLOUT ─── */
.callout {
  border-left: 4px solid var(--rust);
  background: var(--rust-lt);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.callout p { margin-bottom: 0; font-size: 0.92rem; }

/* ─── INLINE CTA ─── */
.inline-cta {
  background: var(--lav);
  border: 2px solid var(--charcoal);
  border-radius: var(--r);
  padding: 1.75rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
}
.inline-cta p {
  font-family: 'Fraunces', serif; font-weight: 700;
  font-size: 1.1rem; color: var(--charcoal);
  margin-bottom: 0.75rem !important;
}
.btn-inline {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: 0.9rem; padding: 0.7rem 1.5rem;
  background: var(--rust); color: var(--cream);
  border: 2px solid var(--charcoal); border-radius: var(--rs);
  text-decoration: none; display: inline-block;
  transition: background 0.15s, transform 0.12s;
}
.btn-inline:hover { background: var(--rust-dk); }
.btn-inline:active { transform: scale(0.97); }

/* ─── STAT ROW ─── */
.stat-row {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin: 1.75rem 0;
}
.stat-card {
  flex: 1; min-width: 140px;
  background: var(--cream-lt);
  border: 2px solid var(--charcoal); border-radius: var(--r);
  padding: 1.25rem 1rem; text-align: center;
}
.stat-n {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 2rem; color: var(--rust);
  line-height: 1;
}
.stat-l {
  font-size: 0.75rem; color: var(--mid);
  margin-top: 0.3rem; line-height: 1.4;
}

/* ─── TOC ─── */
.toc {
  background: var(--sage-lt);
  border: 2px solid var(--charcoal); border-radius: var(--r);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.5rem;
}
.toc-title {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--sage-dk); margin-bottom: 0.75rem;
}
.toc ol { padding-left: 1.25rem; }
.toc li { margin-bottom: 0.4rem; }
.toc a {
  font-size: 0.88rem; color: var(--charcoal);
  text-decoration: none; font-weight: 600;
}
.toc a:hover { color: var(--rust); text-decoration: underline; }

/* ─── COMPARISON TABLE ─── */
.comparison-table {
  width: 100%; border-collapse: collapse;
  margin: 1.75rem 0; font-size: 0.88rem;
}
.comparison-table th {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.75rem 1rem; text-align: left;
  background: var(--charcoal); color: var(--cream);
  border: 1.5px solid var(--charcoal);
}
.comparison-table td {
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(28,18,8,0.15);
  vertical-align: top; line-height: 1.55;
}
.comparison-table tr:nth-child(even) td { background: var(--cream-lt); }
.comparison-table .winner { color: var(--sage-dk); font-weight: 700; }
.comparison-table .loser { color: var(--mid); }

/* ─── NUMBERED STEPS LIST ─── */
.steps-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.steps-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(28,18,8,0.1);
}
.steps-list li:last-child { border-bottom: none; }
.step-num {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 1.4rem; color: var(--rust);
  line-height: 1; min-width: 2rem; text-align: center;
  padding-top: 0.1rem;
}
.step-body { flex: 1; }
.step-label {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.95rem; color: var(--charcoal);
  margin-bottom: 0.25rem;
}
.step-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.6; margin: 0; }

/* ─── FAQ ─── */
.faq-item {
  border-top: 1.5px solid var(--charcoal);
  padding: 1.25rem 0;
}
.faq-q {
  font-family: 'Baloo 2', cursive; font-weight: 700;
  font-size: 0.98rem; color: var(--charcoal);
  margin-bottom: 0.6rem;
}
.faq-a { font-size: 0.93rem; color: var(--mid); line-height: 1.7; }

/* ─── FOOTER CTA ─── */
.article-footer-cta {
  background: var(--rust);
  border-top: 2px solid var(--charcoal);
  padding: 4rem 2.5rem;
  text-align: center;
}
.afc-title {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--cream); line-height: 1.05;
  letter-spacing: -0.025em; margin-bottom: 0.75rem;
}
.afc-sub {
  font-size: 0.95rem; color: rgba(245,237,223,0.8);
  margin-bottom: 1.75rem; max-width: 480px; margin-left: auto; margin-right: auto;
}
.btn-afc {
  font-family: 'Baloo 2', cursive; font-weight: 800;
  font-size: 1rem; padding: 0.9rem 2rem;
  background: var(--cream); color: var(--charcoal);
  border: 2px solid var(--charcoal); border-radius: var(--rs);
  text-decoration: none; display: inline-block;
  transition: all 0.15s;
}
.btn-afc:hover { background: var(--charcoal); color: var(--cream); }
.btn-afc:active { transform: scale(0.97); }

/* ─── FOOTER ─── */
footer {
  background: var(--cream);
  border-top: 2px solid var(--charcoal);
  padding: 2rem 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  font-family: 'Fraunces', serif; font-weight: 900;
  font-size: 0.88rem; color: var(--charcoal);
  text-decoration: none;
}
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a {
  font-family: 'Baloo 2', cursive; font-weight: 600;
  font-size: 0.78rem; color: var(--mid);
  text-decoration: none; transition: color 0.15s;
}
.footer-links a:hover { color: var(--rust); }

/* ─── RESPONSIVE ─── */
@media (max-width: 700px) {
  nav.topnav { padding: 0.9rem 1.25rem; }
  #hero { padding: 4rem 1.25rem 3rem; }
  .article-layout { padding: 2.5rem 1.25rem; }
  .article-footer-cta { padding: 3rem 1.25rem; }
  footer { padding: 1.5rem 1.25rem; }
  .stat-row { flex-direction: column; }
  .comparison-table { font-size: 0.8rem; }
  .comparison-table th, .comparison-table td { padding: 0.6rem 0.65rem; }
}