/* =====================
   DESIGN TOKENS
   ===================== */
:root {
  --white:        #FFFFFF;
  --cream:        #E7DDD5;
  --light-blue:   #D5DFE7;
  --grey-blue:    #464F5D;
  --black-blue:   #2A2F37;
  --forest-green: #2D6A4F;
  --forest-hover: #245a42;
  --sage:         #95C8AE;
  --error:        #C0392B;
  --success:      #27AE60;

  --xs:  4px;
  --sm:  8px;
  --md:  16px;
  --lg:  24px;
  --xl:  40px;
  --2xl: 64px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-card:  0 2px 8px rgba(0,0,0,0.10);
  --shadow-modal: 0 8px 32px rgba(0,0,0,0.16);

  --max-width: 1200px;
}

/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', sans-serif;
  color: var(--black-blue);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: var(--grey-blue);
  line-height: 1.2;
}
h1 { font-size: clamp(1.875rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1rem; }
p { font-size: 1rem; }
.text-large { font-size: 1.125rem; }
.caption { font-size: 0.875rem; }
.legal { font-size: 0.75rem; }
.label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-label {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--forest-green);
  margin-bottom: var(--sm);
}

/* =====================
   LAYOUT
   ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--md);
}
section { padding: var(--xl) 0; }

/* =====================
   HEADER / NAV
   ===================== */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--light-blue);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo svg { height: 34px; width: auto; }
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--xl);
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--grey-blue);
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--forest-green); }
.main-nav a.btn-primary { color: var(--white); }
.main-nav a.btn-primary:hover { color: var(--white); }
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--xs);
  color: var(--grey-blue);
}

@media (max-width: 700px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--md);
    border-bottom: 1px solid var(--light-blue);
    box-shadow: var(--shadow-card);
    gap: var(--md);
  }
  .main-nav.open { display: flex; }
  .mobile-menu-btn { display: flex; }
}

/* =====================
   ISSUE TAB NAV
   ===================== */
.tab-nav {
  background: var(--white);
  border-bottom: 1px solid var(--light-blue);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--md);
  display: flex;
}
.tab-link {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--grey-blue);
  padding: var(--md) var(--lg);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.tab-link:hover { color: var(--forest-green); }
.tab-link.active {
  color: var(--forest-green);
  border-bottom-color: var(--forest-green);
}
.tab-link.coming-soon {
  color: #9ca3af;
  cursor: default;
  pointer-events: none;
}
.tab-link.coming-soon::after {
  content: ' (soon)';
  font-weight: 400;
  font-size: 0.75rem;
}

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sm);
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  padding: 11px var(--lg);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border: 2px solid transparent;
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--forest-green);
  color: var(--white);
  border-color: var(--forest-green);
}
.btn-primary:hover { background: var(--forest-hover); border-color: var(--forest-hover); }
.btn-secondary {
  background: transparent;
  color: var(--forest-green);
  border-color: var(--forest-green);
}
.btn-secondary:hover { background: #f0f8f4; }
.btn-ghost {
  background: transparent;
  color: var(--grey-blue);
  border-color: var(--light-blue);
}
.btn-ghost:hover { background: var(--light-blue); }
.btn-lg { font-size: 1.0625rem; padding: 14px var(--xl); }
.btn-sm { font-size: 0.875rem; padding: 8px var(--md); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* =====================
   FORMS / INPUTS
   ===================== */
.form-group { display: flex; flex-direction: column; gap: var(--sm); }
.form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--grey-blue);
}
.form-helper { font-size: 0.75rem; color: #6b7280; line-height: 1.4; }
.form-input {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 1rem;
  color: var(--black-blue);
  background: var(--white);
  border: 1.5px solid var(--light-blue);
  border-radius: var(--radius-md);
  padding: 10px var(--md);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-input:focus {
  outline: none;
  border-color: var(--grey-blue);
  box-shadow: 0 0 0 2px rgba(70,79,93,0.15);
}
.form-input.error { border-color: var(--error); }
.form-error { font-size: 0.75rem; color: var(--error); }

/* =====================
   COMPOUND EXPOSURE CALLOUT
   ===================== */
.compound-callout {
  background: var(--forest-green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--lg);
  margin-bottom: var(--lg);
}
.compound-callout-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--sm);
}
.compound-callout-message { font-size: 0.9375rem; line-height: 1.5; }
.compound-wa-note {
  font-size: 0.8125rem;
  margin-top: var(--sm);
  opacity: 0.9;
  font-style: italic;
}

/* =====================
   HERO
   ===================== */
.hero { padding: var(--2xl) 0 var(--xl); background: var(--white); }
.hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--md); }
.hero h1 { max-width: 820px; margin-bottom: var(--lg); }
.hero-sub {
  font-size: 1.125rem;
  max-width: 660px;
  margin-bottom: var(--xl);
  color: var(--black-blue);
}
.hero-ctas { display: flex; gap: var(--md); flex-wrap: wrap; align-items: center; }
.hero-cta-note { font-size: 0.875rem; color: #6b7280; margin-top: var(--sm); }

/* =====================
   TRUST BAR
   ===================== */
.trust-bar { background: var(--grey-blue); }
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--lg) var(--md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--lg);
}
.trust-stat {}
.stat-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--white);
  margin-bottom: var(--xs);
  line-height: 1.2;
}
.stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.78); line-height: 1.4; }
@media (max-width: 768px) { .trust-bar-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .trust-bar-inner { grid-template-columns: 1fr; } }

/* =====================
   HOW IT WORKS
   ===================== */
.how-it-works { background: var(--cream); }
.how-it-works-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--xl) var(--md); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--lg);
  margin-top: var(--xl);
}
.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--xl) var(--lg);
  box-shadow: var(--shadow-card);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--forest-green);
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--md);
  flex-shrink: 0;
}
.step-card h3 { font-size: 1.125rem; margin-bottom: var(--sm); }
.step-card p { font-size: 0.9375rem; color: #4b5563; }
@media (max-width: 700px) { .steps-grid { grid-template-columns: 1fr; } }

/* =====================
   ISSUE PREVIEW (homepage)
   ===================== */
.issue-section { background: var(--white); }
.issue-section-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--xl) var(--md); }

.deadline-bar {
  background: var(--forest-green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--md) var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--md);
  margin-bottom: var(--lg);
}
.deadline-bar-text { font-weight: 600; font-size: 0.9375rem; }
.deadline-bar-count { font-size: 0.875rem; opacity: 0.9; }

.issue-card {
  border: 1px solid var(--light-blue);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.issue-card-head {
  background: var(--grey-blue);
  padding: var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--md);
  flex-wrap: wrap;
}
.issue-card-head h3 { color: var(--white); font-size: 1rem; margin: 0; }
.issue-card-body { padding: var(--lg); }
.issue-headline {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--grey-blue);
  margin-bottom: var(--md);
  line-height: 1.3;
}
.issue-description { font-size: 0.9375rem; color: #4b5563; line-height: 1.65; margin-bottom: var(--lg); }
.issue-ctas { display: flex; gap: var(--md); flex-wrap: wrap; align-items: center; }

/* Coming-soon issue grid (homepage) */
.coming-soon-section { margin-top: var(--xl); padding-top: var(--xl); border-top: 1px solid var(--light-blue); }
.coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--md);
  margin-top: var(--lg);
}
.coming-soon-card {
  border: 1px solid var(--light-blue);
  border-radius: var(--radius-md);
  padding: var(--lg);
}
.coming-soon-tag {
  display: inline-block;
  background: var(--light-blue);
  color: var(--grey-blue);
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px var(--sm);
  border-radius: var(--radius-sm);
  margin-bottom: var(--sm);
}
.coming-soon-card h4 { font-size: 0.9375rem; margin-bottom: var(--xs); }
.coming-soon-card p { font-size: 0.8125rem; color: #6b7280; }

/* Substack preview */
.substack-preview {
  background: var(--light-blue);
  border-radius: var(--radius-md);
  padding: var(--md);
  margin-bottom: var(--lg);
}
.substack-preview .label { color: var(--grey-blue); margin-bottom: var(--sm); }
.substack-title { font-weight: 600; font-size: 0.9375rem; margin-bottom: var(--xs); color: var(--grey-blue); }
.substack-excerpt { font-size: 0.875rem; color: #4b5563; line-height: 1.4; }

/* =====================
   SAMPLE COMMUNICATIONS
   ===================== */
.samples-section { background: var(--cream); }
.samples-inner { max-width: var(--max-width); margin: 0 auto; padding: var(--xl) var(--md); }
.samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--lg);
  margin-top: var(--xl);
}
.sample-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--lg);
  box-shadow: var(--shadow-card);
}
.sample-type {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest-green);
  margin-bottom: var(--sm);
}
.sample-desc { font-size: 0.9375rem; font-weight: 600; color: var(--grey-blue); margin-bottom: var(--sm); line-height: 1.4; }
.sample-recipient { font-size: 0.8125rem; color: #6b7280; }

/* =====================
   EDITORIAL POSITIONING
   ===================== */
.editorial-section { background: var(--light-blue); }
.editorial-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--xl) var(--md);
  text-align: center;
}
.editorial-inner h2 { margin-bottom: var(--md); }
.editorial-inner p { color: #4b5563; }

/* =====================
   FOOTER CTA
   ===================== */
.footer-cta { background: var(--grey-blue); text-align: center; }
.footer-cta-inner { max-width: 680px; margin: 0 auto; padding: var(--2xl) var(--md); }
.footer-cta h2 { color: var(--white); margin-bottom: var(--md); }
.footer-cta .footer-cta-sub { color: rgba(255,255,255,0.82); font-size: 1.0625rem; margin-bottom: var(--xl); }

/* =====================
   SITE FOOTER
   ===================== */
.site-footer { background: var(--white); border-top: 1px solid var(--light-blue); }
.footer-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--xl) var(--md) var(--lg);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--lg);
  flex-wrap: wrap;
}
.footer-brand {}
.footer-logo-wrap { margin-bottom: var(--sm); }
.footer-logo-wrap svg { height: 28px; width: auto; }
.footer-legal-name { font-size: 0.75rem; color: #6b7280; }
.footer-links { display: flex; gap: var(--lg); align-items: center; flex-wrap: wrap; }
.footer-links a { font-size: 0.875rem; color: var(--grey-blue); transition: color 0.2s; }
.footer-links a:hover { color: var(--forest-green); }
.footer-disclosure {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--md) var(--md) var(--lg);
  border-top: 1px solid var(--light-blue);
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
}
.footer-canonical {
  text-align: center;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--grey-blue);
  padding: var(--md);
  border-top: 1px solid var(--light-blue);
  letter-spacing: 0.02em;
}

/* =====================
   ISSUE PAGE
   ===================== */
.issue-page-header { background: var(--white); padding: var(--xl) 0 0; }
.issue-page-header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--md) var(--xl); }
.issue-deadline-bar {
  background: var(--forest-green);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--md) var(--lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--md);
  margin-bottom: var(--xl);
}
.issue-deadline-text { font-weight: 600; font-size: 0.9375rem; }
.issue-deadline-count { font-size: 0.875rem; opacity: 0.9; }
.issue-page-header h1 { margin-bottom: var(--sm); }
.issue-page-header .issue-deck { font-size: 1.0625rem; color: #4b5563; max-width: 680px; }

.issue-body { max-width: var(--max-width); margin: 0 auto; padding: var(--lg) var(--md) var(--2xl); }
.issue-grid { display: grid; grid-template-columns: 1fr 360px; gap: var(--2xl); }

.key-facts { margin-top: var(--lg); border-top: 1px solid var(--light-blue); }
.key-fact { padding: var(--md) 0; border-bottom: 1px solid var(--light-blue); }
.key-fact-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--forest-green);
  margin-bottom: var(--xs);
}
.key-fact-value { font-size: 1.0625rem; font-weight: 700; color: var(--grey-blue); margin-bottom: var(--xs); }
.key-fact-context { font-size: 0.8125rem; color: #6b7280; line-height: 1.4; }

.issue-sidebar-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: var(--xl);
  position: sticky;
  top: 80px;
}
.issue-sidebar-card h3 { margin-bottom: var(--md); }
.issue-sidebar-card p { font-size: 0.9375rem; color: #4b5563; margin-bottom: var(--lg); }
.sidebar-contact {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--md);
  font-size: 0.875rem;
  margin-bottom: var(--lg);
}
.sidebar-contact .label { color: var(--grey-blue); margin-bottom: var(--sm); }
.sidebar-contact p { color: #4b5563; word-break: break-all; }

.substack-section {
  background: var(--light-blue);
  border-radius: var(--radius-md);
  padding: var(--lg);
  margin-top: var(--xl);
}
.substack-section .label { color: var(--grey-blue); margin-bottom: var(--md); }

@media (max-width: 900px) {
  .issue-grid { grid-template-columns: 1fr; }
  .issue-sidebar-card { position: static; }
}

/* =====================
   SUBSCRIBE PAGE
   ===================== */
.subscribe-hero { background: var(--cream); text-align: center; }
.subscribe-hero-inner { max-width: 640px; margin: 0 auto; padding: var(--2xl) var(--md) var(--xl); }
.subscribe-hero h1 { margin-bottom: var(--md); }
.subscribe-hero p { color: #4b5563; font-size: 1.0625rem; margin-bottom: var(--xl); }
.subscribe-form {
  display: flex;
  gap: var(--sm);
  max-width: 460px;
  margin: 0 auto;
}
.subscribe-form .form-input { flex: 1; }
.subscribe-note { font-size: 0.8125rem; color: #6b7280; margin-top: var(--md); }
@media (max-width: 480px) { .subscribe-form { flex-direction: column; } }

/* =====================
   COMING SOON ISSUE PAGE
   ===================== */
.coming-soon-hero { background: var(--white); padding: var(--2xl) 0 var(--xl); }
.coming-soon-hero-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--md); }
.coming-soon-hero h1 { margin-bottom: var(--md); }
.coming-soon-hero .deck { font-size: 1.0625rem; color: #4b5563; max-width: 640px; margin-bottom: var(--xl); }
.coming-soon-phase {
  display: inline-block;
  background: var(--light-blue);
  color: var(--grey-blue);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: var(--xs) var(--md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--lg);
}

/* =====================
   FUTURE ISSUES PAGE
   ===================== */
.future-issue-card {
  border: 1px solid var(--light-blue);
  border-radius: var(--radius-md);
  padding: var(--xl);
  background: var(--white);
}
.future-issue-card h3 { font-size: 1.125rem; margin-bottom: var(--sm); }
.future-issue-card p { font-size: 0.9375rem; color: #4b5563; }
.future-issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--lg);
  margin-top: var(--xl);
}

/* =====================
   NOT YET IN YOUR STATE
   ===================== */
.fallback-hero { text-align: center; }
.fallback-hero-inner { max-width: 560px; margin: 0 auto; padding: var(--2xl) var(--md); }
.fallback-hero h1 { margin-bottom: var(--md); }
.fallback-hero p { color: #4b5563; margin-bottom: var(--xl); }

/* =====================
   PRIVACY PAGE
   ===================== */
.prose { max-width: 720px; margin: 0 auto; padding: var(--xl) var(--md) var(--2xl); }
.prose h1 { margin-bottom: var(--lg); }
.prose h2 { font-size: 1.25rem; margin-top: var(--xl); margin-bottom: var(--md); }
.prose p { margin-bottom: var(--md); color: #4b5563; }

/* =====================
   UTILITY
   ===================== */
.hidden { display: none !important; }
.mt-sm { margin-top: var(--sm); }
.mt-md { margin-top: var(--md); }
.mt-lg { margin-top: var(--lg); }
.mt-xl { margin-top: var(--xl); }
.mb-sm { margin-bottom: var(--sm); }
.mb-md { margin-bottom: var(--md); }
.mb-lg { margin-bottom: var(--lg); }
.text-muted { color: #6b7280; }
.text-center { text-align: center; }
.text-green { color: var(--forest-green); }
