/* ═══════════════════════════════════════════
   MailerDot Design System
   Basecamp-inspired: flat, clean, content-first
   White pages, black text, green accents
   ═══════════════════════════════════════════ */

:root {
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --black: #111111;
  --text: #333333;
  --text-secondary: #666666;
  --text-tertiary: #999999;
  --bg: #FFFFFF;
  --bg-warm: #FFFDF7;
  --bg-gray: #F5F5F5;
  --border: #E0E0E0;

  --green: #1D7A46;
  --green-hover: #15603A;
  --green-light: #E8F5EE;
  --blue: #1862B3;
  --blue-light: #EBF3FC;
  --orange: #E8760B;
  --orange-light: #FFF4E6;
  --red: #CC3D26;
  --red-light: #FFF0ED;

  --max-w: 980px;
  --max-w-content: 680px;
  --max-w-narrow: 520px;
  --transition: 0.15s ease;
}


/* ═══ Reset ═══ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }


/* ═══ Layout ═══ */

.container { max-width: var(--max-w-narrow); margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-content { max-width: var(--max-w-content); margin: 0 auto; padding: 0 24px; }

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-wrapper > main { flex: 1; }


/* ═══ Navigation ═══ */

.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav.scrolled { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }

.nav-inner { display: flex; justify-content: space-between; align-items: center; }

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--black);
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--green);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark svg { width: 16px; height: 16px; color: white; }

.logo-wordmark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-wordmark em {
  font-style: normal;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
}

.nav-links a:hover { color: var(--black); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: white !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}

.nav-cta:hover { background: var(--green-hover); }
.nav-cta svg { width: 15px; height: 15px; }

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  padding: 4px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; }


/* ═══ Hero ═══ */

.hero {
  padding: 48px 0 56px;
  background: var(--bg);
  text-align: center;
}

.hero-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.hero-illustration-wrap {
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-illustration-wrap svg {
  width: 100%;
  height: auto;
}

.hero-content {
  max-width: 620px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 16px;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ═══ Subscribe Card (Hero) ═══ */

.subscribe-card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  max-width: 440px;
  margin: 0 auto;
  text-align: left;
}

.subscribe-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.subscribe-card > p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}


/* ═══ How It Works ═══ */

.how-section {
  padding: 64px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 8px;
}

.section-header h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--green);
  color: white;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-icon svg { width: 22px; height: 22px; color: var(--green); }

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 4px;
}

.step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ═══ What's Inside ═══ */

.inside-section {
  padding: 64px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.digest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  list-style: none;
  max-width: 800px;
  margin: 0 auto;
}

.digest-feature {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 20px;
}

.digest-feature:hover {
  border-color: var(--green);
}

.digest-feature-emoji {
  font-size: 24px;
  display: block;
  margin-bottom: 10px;
}

.digest-feature h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 2px;
}

.digest-feature p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}


/* ═══ Preview ═══ */

.preview-section {
  padding: 64px 0;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
}

.preview-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 32px;
  max-width: 580px;
  margin: 0 auto;
  border: 2px solid var(--border);
}

.preview-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

.preview-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-badge svg { width: 14px; height: 14px; }

.preview-read-time {
  font-size: 12px;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.preview-read-time svg { width: 14px; height: 14px; }

.preview-subject {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.preview-greeting {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.preview-rows { list-style: none; }

.preview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
}

.preview-row:last-child { padding-bottom: 0; }
.preview-row-emoji { font-size: 15px; width: 24px; text-align: center; flex-shrink: 0; }
.preview-row-name { font-size: 13px; font-weight: 700; color: var(--black); flex-shrink: 0; min-width: 100px; }

.preview-row-teaser {
  font-size: 13px;
  color: var(--text-tertiary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preview-cta { text-align: center; margin-top: 20px; }

.preview-cta a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}

.preview-cta a:hover { text-decoration: underline; }
.preview-cta a svg { width: 16px; height: 16px; }


/* ═══ Cities ═══ */

.cities-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.cities-section h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.cities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto;
}

.city-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.city-chip:hover {
  border-color: var(--green);
  color: var(--green);
}

.city-chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.cities-note { margin-top: 14px; font-size: 13px; color: var(--text-tertiary); }


/* ═══ CTA Section ═══ */

.cta-section {
  padding: 64px 0;
  background: var(--bg-gray);
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.cta-section .cta-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.cta-form {
  display: flex;
  gap: 8px;
  max-width: 460px;
  margin: 0 auto;
}

.cta-form input {
  flex: 1;
  padding: 11px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.cta-form input::placeholder { color: var(--text-tertiary); }

.cta-form input:focus {
  outline: none;
  border-color: var(--green);
}

.cta-form button {
  padding: 11px 20px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background var(--transition);
}

.cta-form button:hover { background: var(--green-hover); }


/* ═══ Forms ═══ */

.form-group { margin-bottom: 14px; position: relative; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.form-input,
.form-select {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 6px;
  appearance: none;
  outline: none;
}

.form-input::placeholder { color: var(--text-tertiary); }

.form-input:focus,
.form-select:focus {
  border-color: var(--green);
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.form-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.form-footer-note svg { width: 14px; height: 14px; }


/* ═══ Autocomplete ═══ */

.autocomplete-wrapper { position: relative; }

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 2px solid var(--border);
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 220px;
  overflow-y: auto;
  z-index: 50;
  display: none;
}

.autocomplete-list.open { display: block; }

.autocomplete-item {
  padding: 9px 12px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--green-light);
  color: var(--green);
}

.autocomplete-item svg { width: 16px; height: 16px; color: var(--text-tertiary); flex-shrink: 0; }
.autocomplete-item:hover svg,
.autocomplete-item.active svg { color: var(--green); }

.autocomplete-hint {
  padding: 9px 12px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.form-input.has-autocomplete:focus {
  border-radius: 6px 6px 0 0;
}


/* ═══ Buttons ═══ */

.btn-primary {
  width: 100%;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  color: white;
  background: var(--green);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--green-hover); }
.btn-primary:active { background: var(--green-hover); }

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ═══ Cards ═══ */

.card {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 28px;
}


/* ═══ Messages ═══ */

.message {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.4;
  display: none;
}

.message.show { display: block; }

.message-success {
  background: var(--green-light);
  border: 1px solid #B8E0CA;
  color: var(--green);
}

.message-error {
  background: var(--red-light);
  border: 1px solid #F5C6BF;
  color: var(--red);
}

.message a { color: inherit; font-weight: 600; text-decoration: underline; }


/* ═══ Legal Text ═══ */

.legal-text {
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  margin-top: 10px;
  line-height: 1.4;
}

.legal-text a {
  color: var(--text-secondary);
  text-decoration: underline;
}

.legal-text a:hover { color: var(--green); }


/* ═══ City Page ═══ */

.city-hero {
  padding: 48px 0 40px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.city-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 6px;
}

.city-tagline { font-size: 15px; color: var(--text-secondary); margin-bottom: 24px; }

.city-subscribe { display: flex; gap: 8px; max-width: 400px; margin: 0 auto; }

.city-subscribe input {
  flex: 1;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg);
}

.city-subscribe input:focus { outline: none; border-color: var(--green); }
.city-subscribe input::placeholder { color: var(--text-tertiary); }

.city-subscribe button {
  padding: 10px 20px;
  background: var(--green);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background var(--transition);
}

.city-subscribe button:hover { background: var(--green-hover); }

.city-readers { text-align: center; color: var(--text-secondary); font-size: 13px; margin-bottom: 10px; }
.city-readers strong { color: var(--black); }

.success-inline {
  display: none;
  background: var(--green);
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  max-width: 400px;
  margin: 0 auto;
}

.success-inline.show { display: block; }


/* ═══ Digest Card ═══ */

.digest-section { padding: 40px 0 0; }

.digest-card-wrap {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 28px 32px;
}

.digest-card-wrap:hover { border-color: var(--green); }

.digest-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 12px;
}

.digest-label svg { width: 14px; height: 14px; }

.digest-meta-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.digest-date { font-size: 14px; font-weight: 500; color: var(--text-secondary); }

.digest-headline {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.digest-greeting { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

.digest-group-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin: 24px 0 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.digest-group-label:first-of-type { margin-top: 16px; }

.digest-block { margin-bottom: 16px; }
.digest-block:last-child { margin-bottom: 0; }

.digest-block-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.digest-block-emoji { font-size: 15px; }

.digest-block p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.digest-block p strong { color: var(--black); font-weight: 600; }
.digest-block-meta { font-size: 12px; color: var(--text-tertiary); margin-top: 2px; }

.digest-footer-note {
  font-size: 12px;
  color: var(--text-tertiary);
  font-style: italic;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}


/* ═══ Archive ═══ */

.archive-section { padding: 40px 0 56px; }

.archive-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
}

.archive-list { list-style: none; padding: 0; margin: 0; }

.archive-list li { border-bottom: 1px solid var(--border); }
.archive-list li:first-child { border-top: 1px solid var(--border); }

.archive-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 6px;
  text-decoration: none;
  color: inherit;
}

.archive-row:hover { background: var(--bg-gray); }

.archive-row-date {
  font-size: 13px;
  color: var(--text-tertiary);
  flex-shrink: 0;
  width: 130px;
  font-variant-numeric: tabular-nums;
}

.archive-row-emoji { font-size: 15px; flex-shrink: 0; width: 20px; text-align: center; }

.archive-row-subject {
  font-size: 14px;
  font-weight: 500;
  color: var(--black);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.archive-row:hover .archive-row-subject { color: var(--green); }

.archive-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: 14px;
}

.archive-nav a {
  color: var(--green);
  text-decoration: none;
  font-weight: 500;
}

.archive-nav a:hover { text-decoration: underline; }

.load-more-wrap { text-align: center; margin-top: 20px; }

.load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  background: var(--bg);
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
}

.load-more-btn:hover { border-color: var(--green); color: var(--green); }
.load-more-btn svg { width: 14px; height: 14px; }

.archive-hidden { display: none; }
.archive-hidden.show { display: flex; }
.load-more-count { font-size: 12px; color: var(--text-tertiary); margin-top: 6px; }


/* ═══ Newsletter Content (Archive) ═══ */

.newsletter-content { font-size: 15px; line-height: 1.7; color: var(--text-secondary); }

.newsletter-content h1 { font-size: 1.4rem; font-weight: 800; color: var(--black); margin-bottom: 0.75rem; }
.newsletter-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--black); margin: 1.75rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.newsletter-content h3 { font-size: 1rem; font-weight: 700; color: var(--black); margin: 1.25rem 0 0.5rem; }
.newsletter-content p { margin-bottom: 0.75rem; color: var(--text-secondary); }
.newsletter-content a { color: var(--green); text-decoration: underline; }
.newsletter-content a:hover { color: var(--green-hover); }
.newsletter-content ul, .newsletter-content ol { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.newsletter-content li { margin-bottom: 0.3rem; color: var(--text-secondary); }
.newsletter-content strong { color: var(--black); font-weight: 600; }
.newsletter-content em { font-style: italic; }
.newsletter-content blockquote { border-left: 3px solid var(--green); padding-left: 1rem; margin: 1rem 0; font-style: italic; color: var(--text-secondary); }
.newsletter-content hr { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }

.newsletter-content section {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border-radius: 6px;
  background: var(--bg-gray);
}

.newsletter-content section h2 { margin-top: 0; border-bottom: none; padding-bottom: 0; }

.newsletter-content section.spotlight,
.newsletter-content section.local-fact {
  background: var(--green-light);
  border-left: 3px solid var(--green);
}


/* ═══ Container Article ═══ */

.container-article {
  width: 100%;
  max-width: var(--max-w-content);
  margin: 0 auto;
  padding: 0 24px;
}


/* ═══ Page Card ═══ */

.page-card { padding: 2.5rem 2rem; }


/* ═══ Mobile Sticky CTA ═══ */

.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  z-index: 99;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.mobile-sticky-cta.visible { transform: translateY(0); }

.mobile-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--green);
  color: white;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-sticky-cta a svg { width: 18px; height: 18px; }

@media (max-width: 768px) {
  .mobile-sticky-cta { display: block; }
}


/* ═══ Mobile Nav ═══ */

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s;
}

.mobile-nav.open { opacity: 1; }

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 260px;
  max-width: 80vw;
  height: 100%;
  background: var(--bg);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  border-left: 1px solid var(--border);
}

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

.mobile-nav-close { display: flex; justify-content: flex-end; margin-bottom: 20px; }

.mobile-nav-close button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 4px;
}

.mobile-nav-close button svg { width: 24px; height: 24px; }

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 6px;
}

.mobile-nav-links a:hover { background: var(--bg-gray); }

.mobile-nav-links .mobile-subscribe-btn {
  background: var(--green);
  color: white;
  font-weight: 600;
  margin-top: 12px;
  justify-content: center;
  border-radius: 6px;
}

.mobile-nav-links .mobile-subscribe-btn:hover { background: var(--green-hover); }


/* ═══ Legal Pages ═══ */

.legal-container { max-width: var(--max-w-content); }

.brand { text-align: center; margin-bottom: 2rem; }

.brand-name {
  font-size: clamp(2rem, 6vw, 2.8rem);
  font-weight: 800;
  color: var(--black);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.brand-dot { display: inline-block; color: var(--green); font-style: normal; }

.tagline { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }

.brand-link { text-decoration: none; color: inherit; display: inline-block; }

.legal-content {
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: 2.5rem 2rem;
}

.legal-title { font-size: clamp(1.4rem, 4vw, 1.8rem); font-weight: 800; color: var(--black); margin-bottom: 0.25rem; }
.legal-updated { font-size: 13px; color: var(--text-tertiary); margin-bottom: 2rem; }
.legal-content h3 { font-size: 1.1rem; font-weight: 700; color: var(--black); margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content h4 { font-size: 1rem; font-weight: 700; color: var(--black); margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.75rem; }
.legal-content ul { list-style: none; padding: 0; margin-bottom: 0.75rem; }

.legal-content ul li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  padding-left: 1.25rem;
  position: relative;
  margin-bottom: 0.35rem;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.legal-content ul li strong,
.legal-content strong { color: var(--black); font-weight: 600; }
.legal-content a { color: var(--green); text-decoration: underline; }
.legal-content a:hover { color: var(--green-hover); }

@media (max-width: 480px) { .legal-content { padding: 1.75rem 1.25rem; } }


/* ═══ Footer ═══ */

footer {
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
}

.footer-inner { display: flex; justify-content: space-between; align-items: center; }

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover { color: var(--green); }

.footer-links .sep { color: var(--border); user-select: none; }
.footer-copy { font-size: 12px; color: var(--text-tertiary); margin-top: 0.75rem; }

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
}


/* ═══ Spinner ═══ */

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}


/* ═══ Honeypot ═══ */

.ohnohoney {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}


/* ═══ Scroll Reveal ═══ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }


/* ═══ Animations ═══ */

@keyframes spin { to { transform: rotate(360deg); } }


/* ═══ Description (simple pages) ═══ */

.description {
  text-align: center;
  margin-bottom: 2rem;
}

.description p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

.description strong { color: var(--black); font-weight: 600; }


/* ═══ Responsive ═══ */

@media (max-width: 768px) {
  .hero { padding: 32px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-description { font-size: 16px; }
  .how-section, .inside-section, .preview-section { padding: 48px 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 24px; }
  .digest-grid { grid-template-columns: repeat(2, 1fr); }
  .preview-card { padding: 24px; }
  .preview-row-teaser { display: none; }
  .section-header h2 { font-size: 26px; }
  .city-hero h1 { font-size: 30px; }
  .city-subscribe { flex-direction: column; }
  .digest-card-wrap { padding: 24px; }
  .archive-row { gap: 8px; flex-wrap: wrap; padding: 10px 4px; }
  .archive-row-date { width: auto; }
  .cta-form { flex-direction: column; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .subscribe-card { padding: 24px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .digest-grid { grid-template-columns: 1fr; max-width: 320px; }
  .digest-card-wrap { padding: 20px; }
}


/* ═══ Accessibility ═══ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
