/* ===========================
   Speaking Between the Lines
   Stylesheet — Navy Minimal
   =========================== */

:root {
  /* Core surfaces: two adjacent navy tones create section rhythm,
     a deeper near-black navy marks accent "chapter" panels. */
  --cream: #0E1728;          /* base page background */
  --ivory: #16223A;          /* secondary section / card background */
  --charcoal: #070B14;       /* deepest accent panel background (DC section, footer) */

  /* Text */
  --warm-brown: #93A0B8;     /* secondary / muted text (cool gray-blue) */

  /* Accent */
  --rust: #C1663D;           /* primary terracotta accent */
  --terracotta: #D98A63;     /* lighter hover accent */
  --navy: #33465C;
  --sage: #8A9A82;

  --border-soft: rgba(243, 239, 230, 0.12);
  --text: #F3EFE6;           /* primary light text */

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--rust);
  margin-bottom: 0.9em;
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--warm-brown);
  max-width: 640px;
}

section { padding: 96px 0; position: relative; }
section.tight { padding: 64px 0; }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--rust);
  color: #0A121F;
}
.btn-primary:hover { background: var(--terracotta); }

.btn-secondary {
  background: transparent;
  border-color: var(--text);
  color: var(--text);
}
.btn-secondary:hover { background: var(--text); color: var(--charcoal); }

.btn-ghost {
  background: transparent;
  color: var(--rust);
  padding: 8px 0;
  border-radius: 0;
  border-bottom: 1.5px solid var(--rust);
}

/* ---------- Header / Nav ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 23, 40, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand span {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--warm-brown);
}
.nav-links a:hover { color: var(--rust); }
.nav-cta { display: flex; align-items: center; gap: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

/* ---------- Hero ---------- */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  overflow: hidden;
}
.hero-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { margin-bottom: 1.2em; }
.hero h1 { max-width: 780px; margin-left: auto; margin-right: auto; }
.hero .lede { margin: 24px auto 40px; text-align: center; }
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-quote {
  margin: 64px auto 0;
  max-width: 560px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--warm-brown);
  border-top: 1px solid var(--border-soft);
  padding-top: 32px;
}

/* ---------- Problem section ---------- */
.problem {
  background: var(--ivory);
}
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.compare-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
}
.compare-list li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  color: var(--warm-brown);
}
.compare-list li strong { color: var(--text); min-width: 130px; }

.quiz-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px;
}
.quiz-card .phrase {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-style: italic;
  margin-bottom: 20px;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}
.quiz-options button {
  text-align: left;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  background: var(--ivory);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quiz-options button:hover { border-color: var(--terracotta); }
.quiz-options button.selected { border-color: var(--rust); background: #24314A; }
.quiz-answer {
  font-weight: 600;
  color: var(--rust);
  min-height: 1.4em;
}

/* ---------- Card grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 32px 28px;
}
.card .icon-num {
  font-family: var(--serif);
  font-size: 0.9rem;
  color: var(--rust);
  border: 1px solid var(--rust);
  border-radius: 999px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card p { color: var(--warm-brown); margin-bottom: 0; }
.card ul { color: var(--warm-brown); padding-left: 18px; margin: 10px 0 0; }
.card ul li { margin-bottom: 4px; }

/* ---------- Scenarios (accordion) ---------- */
.scenario {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--ivory);
  overflow: hidden;
}
.scenario-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text);
}
.scenario-trigger .plus {
  font-family: var(--sans);
  font-size: 1.4rem;
  color: var(--rust);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.scenario.open .plus { transform: rotate(45deg); }
.scenario-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 30px;
}
.scenario.open .scenario-body {
  padding-bottom: 28px;
}
.scenario-body p { color: var(--warm-brown); }
.scenario-body ul { color: var(--warm-brown); padding-left: 18px; }

/* ---------- Who it's for ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.audience-item {
  background: var(--ivory);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--text);
}

/* ---------- How it works ---------- */
.format-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.format-item {
  padding: 26px 28px;
  border-radius: 16px;
  background: var(--ivory);
  border: 1px solid var(--border-soft);
}
.format-item p { color: var(--warm-brown); margin-bottom: 0; }

/* ---------- DC section ---------- */
.dc-section {
  background: var(--charcoal);
  color: var(--text);
}
.dc-section h2, .dc-section .eyebrow { color: var(--text); }
.dc-section .eyebrow { color: var(--terracotta); }
.dc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.dc-section p { color: var(--warm-brown); }
.dc-mark {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 40px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text);
}

/* ---------- Philosophy ---------- */
.philosophy {
  text-align: center;
}
.philosophy blockquote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-style: italic;
  max-width: 780px;
  margin: 0 auto 28px;
  color: var(--text);
}
.philosophy cite {
  font-style: normal;
  color: var(--warm-brown);
  font-size: 0.95rem;
}

/* ---------- Community / Newsletter ---------- */
.community {
  background: var(--ivory);
}
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.newsletter-card {
  background: var(--cream);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 36px;
}
.newsletter-card .tag {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rust);
}
.newsletter-card .sample-phrase {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  margin: 14px 0;
  color: var(--text);
}
.signup-form {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.signup-form input {
  flex: 1;
  min-width: 200px;
  padding: 13px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border-soft);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--ivory);
  color: var(--text);
}
.signup-form input::placeholder { color: var(--warm-brown); }
.signup-form input:focus { outline: 2px solid var(--terracotta); }
.form-note {
  font-size: 0.85rem;
  color: var(--warm-brown);
  margin-top: 10px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--rust);
  color: #0A121F;
}
.final-cta h2 { color: #0A121F; }
.final-cta p { color: #3A1F10; max-width: 560px; margin: 0 auto 32px; }
.final-cta .btn-primary { background: #0A121F; color: var(--text); }
.final-cta .btn-primary:hover { background: var(--charcoal); }
.final-cta .btn-secondary { border-color: #0A121F; color: #0A121F; }
.final-cta .btn-secondary:hover { background: #0A121F; color: var(--rust); }

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: var(--warm-brown);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand span { color: var(--text); font-family: var(--sans); font-size: 0.95rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links h4 { color: var(--text); font-family: var(--sans); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.92rem; }
.footer-links a { text-decoration: none; color: var(--warm-brown); }
.footer-links a:hover { color: var(--rust); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #5B6478;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-secondary { display: none; }
  .nav-toggle { display: block; }
  .problem-grid, .dc-grid, .community-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .format-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .card-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { flex-direction: column; }
}

/* Mobile nav drawer */
.nav-links.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream);
  flex-direction: column;
  padding: 24px 32px;
  gap: 18px;
  border-bottom: 1px solid var(--border-soft);
}
