/* ============================================================
   GuidoGerb Publishing — "The Platform" (Direction B)
   Deep navy, modern minimal, hairline grid.
   ============================================================ */

:root {
  --primary: #14366B;
  --ink: #0E1F3C;
  --body: #51607A;
  --muted: #71809A;
  --line: #E6EAF0;
  --soft: #F4F7FB;
  --bg: #FFFFFF;
  --green: #2E7D4F;
  --green-bg: #E7F4EC;
  --amber: #8A6D2B;
  --amber-bg: #F7F0DE;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
  line-height: 1.6;
}

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

a { color: var(--primary); text-decoration: none; }

.shell { max-width: 1140px; margin: 0 auto; padding: 0 32px; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.15; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: color-mix(in oklab, var(--primary), black 18%); }
.btn-outline { border-color: color-mix(in oklab, var(--primary), white 55%); color: var(--primary); background: transparent; }
.btn-outline:hover { border-color: var(--primary); }
.btn-ghost { color: var(--primary); background: transparent; padding-left: 16px; padding-right: 16px; }
.btn-ghost:hover { background: var(--soft); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #E8EEF7; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.15s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.main-nav .btn { padding: 9px 20px; border-radius: 8px; font-size: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (landing) ---------- */
.hero { padding: 84px 0 76px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  border: 1px solid color-mix(in oklab, var(--primary), white 70%);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 24px;
  text-wrap: balance;
}
.lede {
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  max-width: 480px;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.cta-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* format stack */
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 22px;
  font-size: 14.5px;
  font-weight: 600;
}
.stack-item.dark { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip.green { color: var(--green); background: var(--green-bg); }
.chip.amber { color: var(--amber); background: var(--amber-bg); }

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 28px 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat-num { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.stat-label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section.tinted { background: var(--soft); }
.section-head { max-width: 620px; margin-bottom: 48px; }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 700; margin-bottom: 16px; text-wrap: balance; }
.section-head p { color: var(--body); font-size: 16.5px; margin: 0; text-wrap: pretty; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
a.card { color: inherit; }
a.card:hover {
  border-color: color-mix(in oklab, var(--primary), white 50%);
  box-shadow: 0 10px 30px rgba(14, 31, 60, 0.08);
  transform: translateY(-2px);
}
.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in oklab, var(--primary), white 90%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
}
.card h3 { font-size: 18.5px; font-weight: 700; }
.card p { margin: 0; font-size: 14.5px; color: var(--body); }
.card .link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--primary); }

.tag {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: color-mix(in oklab, var(--primary), white 90%);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Feature grid (subpages) ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 26px;
}
.feature h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feature p { margin: 0; font-size: 14.5px; color: var(--body); }
.feature .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

/* ---------- Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 26px;
}
.back-link:hover { color: var(--primary); }
.page-hero h1 {
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 18px;
  max-width: 720px;
  text-wrap: balance;
}
.page-hero .lede { margin-bottom: 0; max-width: 580px; }

/* ---------- Band (CTA / newsletter) ---------- */
.band { background: var(--primary); border-radius: 18px; padding: 56px; color: #fff; }
.band h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; }
.band p { color: rgba(255, 255, 255, 0.78); margin: 0 0 28px; max-width: 520px; font-size: 16px; }
.band-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }

.nl-form { display: flex; gap: 10px; max-width: 460px; }
.nl-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-family: inherit;
  outline: none;
}
.nl-form input[type="email"]:focus { border-color: #9DB8DF; }
.nl-success {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 10px;
}
.nl-form.on-light input[type="email"] { border-color: var(--line); background: #fff; }
.nl-success.on-light {
  background: var(--green-bg);
  border-color: color-mix(in oklab, var(--green), white 60%);
  color: var(--green);
}

/* ---------- How-it-works panels ---------- */
.panel { padding: 88px 0; }
.panel.tinted { background: var(--soft); }
.panel.dark { background: var(--ink); color: #fff; }
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.panel-num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}
.panel.dark .panel-num { color: #8FB4E8; }
.panel h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-bottom: 18px; text-wrap: balance; }
.panel .copy { color: var(--body); font-size: 16.5px; line-height: 1.7; margin: 0 0 28px; text-wrap: pretty; }
.panel.dark .copy { color: rgba(255, 255, 255, 0.75); }

.quote-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(14, 31, 60, 0.06);
}
.panel.dark .quote-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
.quote-card p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  font-style: italic;
}
.panel.dark .quote-card p { color: rgba(255, 255, 255, 0.9); }
.quote-card .who { display: flex; align-items: center; gap: 10px; }
.quote-card .who .dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--primary), white 80%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  font-style: normal;
}
.quote-card .who span { font-size: 13.5px; color: var(--muted); }
.quote-card .who strong { color: var(--ink); font-size: 13.5px; }

/* ---------- Issue list (newsletter) ---------- */
.issues { display: flex; flex-direction: column; }
.issue {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
}
.issue:first-child { border-top: 1px solid var(--line); }
.issue h3 { font-size: 17px; font-weight: 600; }
.issue p { margin: 4px 0 0; font-size: 14px; color: var(--body); }
.issue time { font-size: 13px; color: var(--muted); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--soft); margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 56px 0 40px;
}
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: var(--body); }
.footer-col a:hover { color: var(--primary); }
.footer-blurb { font-size: 14px; color: var(--body); max-width: 280px; margin: 14px 0 0; }

.swatches { display: flex; gap: 8px; margin-top: 4px; }
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  outline-offset: 2px;
  transition: transform 0.12s ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch.active { border-color: #fff; box-shadow: 0 0 0 2px var(--ink); }
.swatch-note { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 31, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(14, 31, 60, 0.35);
  animation: modal-in 0.22s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.modal-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--primary), white 90%);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  margin: 0 auto 20px;
}
.modal h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.modal p { color: var(--body); font-size: 15px; line-height: 1.65; margin: 0 0 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .split, .band-grid, .panel-grid { grid-template-columns: 1fr; gap: 40px; }
  .cards, .features { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid.flip { display: grid; }

  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .main-nav a { padding: 13px 32px; font-size: 16px; }
  .main-nav .btn { margin: 10px 32px 0; justify-content: center; }
  .nav-open .main-nav { display: flex; }
  .nav-toggle { display: flex; }
}

@media (max-width: 600px) {
  .shell { padding: 0 20px; }
  .hero { padding: 56px 0 48px; }
  .section, .panel { padding: 60px 0; }
  .cards, .features { grid-template-columns: 1fr; }
  .band { padding: 36px 28px; }
  .nl-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
