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

:root {
  --navy:   #25284C;
  --cream:  #F6F1E7;
  --mint:   #E6FFC9;
  --sky:    #A0E6F3;
  --teal:   #E3F4F8;
  --cyan:   #00D7FF;
  --gray:   #6B7280;
  --grad:   linear-gradient(135deg, #E6FFC9 0%, #A0E6F3 100%);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* HERO shell, shared design system */
.hero {
  background: linear-gradient(135deg, #b8f0d8 0%, #c8effa 50%, #a8e4f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 36px 24px 90px;
  position: relative;
  overflow: hidden;
}
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 70%;
  background: url('../img/s88-header-image.jpg') center bottom / cover no-repeat;
  opacity: 0.85;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.28) 24%, rgba(0,0,0,0.7) 42%, black 56%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.28) 24%, rgba(0,0,0,0.7) 42%, black 56%);
}

/* Pill nav */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 100px;
  padding: 12px 12px 12px 26px;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 10;
  box-shadow: 0 4px 24px rgba(37,40,76,0.08);
}
.nav-logo { height: 26px; width: auto; display: block; flex-shrink: 0; }
.nav-pill > a { margin-right: auto; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--navy);
  padding: 9px 21px;
  border-radius: 100px;
  transition: background 0.2s;
}
.nav-links a:hover { background: rgba(37,40,76,0.06); }
.nav-links .services-link { display: flex; align-items: center; gap: 4px; }
.nav-links .services-link svg { opacity: 0.5; transition: transform 0.2s; }
.nav-links li:hover .services-link svg { transform: rotate(180deg); }
.nav-cta {
  background: var(--navy) !important;
  color: #fff !important;
  padding: 9px 23px !important;
  border-radius: 100px !important;
  font-weight: 600 !important;
}
.nav-links li { position: relative; }

/* Mega menu */
.mega-menu {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  width: 660px;
  padding-top: 10px;
  z-index: 100;
}
.nav-links li:hover .mega-menu { display: block; }
.mega-inner {
  background: #fff;
  border: 1px solid rgba(37,40,76,0.09);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(37,40,76,0.12);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.mega-item {
  padding: 22px 24px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background 0.18s;
  cursor: pointer;
}
.mega-item:hover { background: #F6F1E7; }
.nav-links a.mega-item { display: flex; padding: 22px 24px; border-radius: 14px; }
.nav-links a.mega-item:hover { background: #F6F1E7; }
.mega-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
}
.mega-title { font-size: 16px; font-weight: 700; color: var(--navy); letter-spacing: -0.01em; line-height: 1.3; }
.mega-desc { font-size: 14px; color: var(--gray); line-height: 1.5; }
.mega-menu-footer {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(37,40,76,0.07);
  margin-top: 4px;
  padding: 14px 16px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mega-menu-footer span { font-size: 14px; color: var(--gray); }
.mega-menu-footer a {
  font-size: 14px; font-weight: 600; color: var(--navy);
  display: flex; align-items: center; gap: 6px;
  padding: 0 !important; border-radius: 0 !important;
}
.mega-menu-footer a:hover { background: none !important; opacity: 0.65; }

/* Simple dropdown */
.simple-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  padding-top: 10px;
  z-index: 100;
  min-width: 160px;
}
.nav-links li:hover .simple-dropdown { display: block; }
.simple-inner {
  background: #fff;
  border: 1px solid rgba(37,40,76,0.09);
  border-radius: 14px;
  box-shadow: 0 12px 36px rgba(37,40,76,0.1);
  padding: 6px;
  display: flex;
  flex-direction: column;
}
.simple-dropdown a {
  font-size: 15px !important; font-weight: 500 !important; color: var(--navy) !important;
  padding: 10px 18px !important; border-radius: 10px !important;
  white-space: nowrap; display: block;
}
.simple-dropdown a:hover { background: #F6F1E7 !important; }

/* Newsletter hero content */
.nl-hero-content {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 760px;
  padding: 64px 0 110px;
}
.crumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
  padding: 7px 16px;
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 100px;
  color: var(--navy);
}
.crumb .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }
.nl-hero-content h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
}
.nl-hero-content .sub {
  font-size: 17px;
  color: rgba(37,40,76,0.78);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* Signup card: overlaps the hero bottom */
.nl-card-wrap {
  padding: 0 24px;
  margin-top: -72px;
  position: relative;
  z-index: 6;
}
.nl-card {
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(37,40,76,0.08);
  border-radius: 24px;
  box-shadow: 0 22px 60px rgba(37,40,76,0.14);
  padding: 36px 34px 28px;
  position: relative;
}
.nl-card .card-tag {
  position: absolute;
  top: -14px; left: 28px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
  padding: 7px 14px;
  border-radius: 100px;
}
.nl-card h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.nl-card .card-sub { font-size: 14.5px; color: var(--gray); line-height: 1.6; margin-bottom: 20px; }

/* HubSpot form styling (matches site form design) */
.hs-form-slot .hs-form-field { margin-bottom: 14px; }
.hs-form-slot label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  display: block;
  margin-bottom: 7px;
}
.hs-form-slot input.hs-input,
.hs-form-slot input[type="text"],
.hs-form-slot input[type="email"] {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15.5px;
  color: var(--navy);
  background: #fff;
  border: 1px solid rgba(37,40,76,0.15);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100% !important;
}
.hs-form-slot input.hs-input:focus,
.hs-form-slot input[type="text"]:focus,
.hs-form-slot input[type="email"]:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,215,255,0.12);
}
.hs-form-slot input.hs-button,
.hs-form-slot button[type="submit"] {
  display: block;
  width: 100%;
  background: var(--grad);
  color: var(--navy);
  border: 0;
  cursor: pointer;
  padding: 15px 30px;
  border-radius: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 15.5px;
  font-weight: 700;
  margin-top: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hs-form-slot input.hs-button:hover,
.hs-form-slot button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,215,255,0.18); }
.hs-form-slot .hs-error-msgs, .hs-form-slot .hs-error-msg {
  list-style: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: #C0392B;
  margin-top: 4px;
}
.hs-form-slot .submitted-message {
  background: #EDFBF0;
  border: 1px solid #7AD48A;
  border-radius: 12px;
  padding: 18px;
  font-size: 15px;
  color: var(--navy);
  line-height: 1.6;
}
.card-note {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--gray);
  margin-top: 14px;
  text-align: center;
}

/* What's in every issue */
.issue { max-width: 1140px; margin: 0 auto; padding: 88px 24px 96px; }
.issue-top { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.issue-top .sec-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.issue-top h2 { font-size: clamp(25px, 2.7vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 12px; }
.issue-top p { font-size: 16px; color: var(--gray); line-height: 1.7; }
.issue-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.issue-card { background: var(--cream); border-radius: 18px; padding: 32px 30px; }
.issue-card .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 14px;
}
.issue-card h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin-bottom: 8px; }
.issue-card p { font-size: 14.5px; color: var(--gray); line-height: 1.65; }
.issue-close {
  text-align: center;
  margin-top: 44px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.issue-close a { color: var(--navy); border-bottom: 1.5px solid var(--cyan); }
.issue-close a:hover { opacity: 0.65; }

/* Footer */
footer { padding: 64px 80px 40px; border-top: 1px solid rgba(37,40,76,0.07); }
.footer-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
}
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 16px; }
.footer-tagline { font-size: 14.5px; color: var(--gray); line-height: 1.65; max-width: 240px; }
.footer-col .footer-h {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
  font-family: 'IBM Plex Mono', monospace;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14.5px; color: var(--gray); transition: color 0.18s; }
.footer-col a:hover { color: var(--navy); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(37,40,76,0.07);
  font-size: 13.5px;
  color: var(--gray);
  font-family: 'IBM Plex Mono', monospace;
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: var(--gray); transition: color 0.18s; }
.footer-legal a:hover { color: var(--navy); }

/* Responsive */
@media (max-width: 900px) {
  .nav-links li:not(:last-child) { display: none; }
  .issue-grid { grid-template-columns: 1fr; }
  .issue { padding: 64px 24px 72px; }
  .nl-hero-content { padding: 52px 0 96px; }
  footer { padding: 48px 28px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== S88 MOBILE THEME (shared) ===== */
/* Heading wrap control: no <br> in headings; width + balance handle wrapping */
.hero h1 { margin-left: auto; margin-right: auto; text-wrap: balance; }
.nav-pill > a.nav-home { margin-right: auto; display: block; flex-shrink: 0; }
.nav-links a.mega-item.active { background: #F6F1E7; box-shadow: inset 0 0 0 1.5px rgba(0,215,255,0.4); }
.nav-burger { display: none; }
.mobile-menu { display: none; }
@media (max-width: 900px) {
  .nav-pill { padding: 10px 10px 10px 20px; }
  .nav-links { display: none !important; }
  .hero h1 { max-width: 75%; }
  .nav-burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--navy);
    border-radius: 100px;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-burger span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.25s, opacity 0.2s; }
  body.mm-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.mm-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.mm-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  body.mm-open .mobile-menu { display: flex; }
  .mobile-menu {
    width: 100%;
    max-width: 900px;
    margin-top: 10px;
    position: relative;
    z-index: 9;
    flex-direction: column;
    gap: 2px;
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 10px;
    box-shadow: 0 12px 36px rgba(37,40,76,0.10);
  }
  .mobile-menu a, .mobile-menu summary {
    font-size: 16px;
    font-weight: 600;
    color: var(--navy);
    padding: 14px 18px;
    border-radius: 14px;
    display: block;
    cursor: pointer;
  }
  .mobile-menu a:active, .mobile-menu summary:active { background: rgba(37,40,76,0.06); }
  .mm-group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; }
  .mm-group summary::-webkit-details-marker { display: none; }
  .mm-group summary::after { content: '+'; font-family: 'IBM Plex Mono', monospace; font-size: 18px; color: var(--cyan); }
  .mm-group[open] summary::after { content: '\2013'; }
  .mm-sub { display: flex; flex-direction: column; padding: 0 6px 6px; }
  .mm-sub a { font-weight: 500; font-size: 15px; padding: 11px 16px; color: var(--gray); }
  .mm-cta { background: var(--navy); color: #fff !important; text-align: center; margin-top: 6px; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .btn-grad, .btn-solid, .hero-btn { width: 100%; justify-content: center; }
  .hero h1 { font-size: clamp(24px, 7vw, 32px); max-width: 100%; }
}
/* legal hero is short; let nav dropdowns escape */
.hero { overflow: visible; }
