@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Source+Sans+3:wght@400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6faf9;
  --ink: #243b39;         /* near-black — matches main site body/headings */
  --muted: #5e726f;
  --navy: #15736F;        /* dark teal — matches main-site link colour; headings & emphasis */
  --teal: #1da19e;        /* YC primary teal — interactive / buttons / links */
  --teal-2: #7eb9ad;      /* YC turquoise — soft fills + secondary accent */
  --olive: #7eb9ad;       /* lime retired per Aiyman -> aliased to turquoise */
  --olive-dark: #7EB9AD;
  --green: #1e9246;       /* YC dark green — success only */
  --blue: #1da19e;        /* legacy alias of primary teal */
  --blue-dark: #15736F;   /* deep teal — gradient depth */
  --blue-soft: #f6faf9;   /* light teal tint — soft fills */
  --clay: #1e9246;        /* was off-brand terracotta -> YC green */
  --line: #dce7e4;
  --shadow: 0 14px 34px rgba(36, 59, 57, 0.07);
  --shadow-soft: 0 4px 16px rgba(36, 59, 57, 0.05);
  --radius: 6px;
  --max: 1200px;
  --font-display: Montserrat, system-ui, sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-header {
  background: #fff;
}

.top-strip {
  background: linear-gradient(90deg, #15736f 0%, var(--blue) 100%);
  color: #fff;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.top-strip-inner {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 38px;
}

.top-strip .container {
  max-width: 1280px;
}

.top-strip a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* Centred ESS brand banner — scrolls away; only the nav below stays sticky */
.ess-banner {
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 16px 20px 12px;
}

.ess-banner img {
  height: 88px;
  width: auto;
  object-fit: contain;
}

.nav-shell {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(29, 161, 158, 0.16);
  border-top: 1px solid rgba(29, 161, 158, 0.1);
  backdrop-filter: blur(18px);
  box-shadow: 0 4px 20px rgba(36, 59, 57, 0.05);
}

.nav-shell .container {
  max-width: 1280px;
}

.nav-inner {
  align-items: center;
  display: grid;
  grid-template-areas: "brand nav actions";
  grid-template-columns: minmax(190px, 0.8fr) minmax(470px, 1.6fr) minmax(170px, 0.7fr);
  gap: 26px;
  min-height: 72px;
  position: relative;
}

.brand {
  align-items: center;
  display: flex;
  grid-area: brand;
  justify-self: start;
}

.brand img {
  max-height: 40px;
  object-fit: contain;
  width: auto;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: clamp(14px, 2.2vw, 34px);
  grid-area: nav;
  justify-self: center;
  padding: 0;
  width: 100%;
}

.nav-links a {
  border-radius: 6px;
  color: var(--ink);
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  padding: 24px 12px 25px;
  position: relative;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links > a {
  flex: 1 1 0;
}

.nav-links a:hover {
  background: transparent;
  color: var(--navy);
}

.nav-links a.active {
  background: transparent;
  color: var(--blue-dark);
  box-shadow: none;
}

.nav-links a::after {
  background: var(--teal);
  bottom: 13px;
  content: "";
  display: block;
  height: 3px;
  left: 12px;
  opacity: 0;
  position: absolute;
  right: 12px;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  align-items: center;
  display: flex;
  grid-area: actions;
  justify-self: end;
}

.menu-button {
  background: #fff;
  border: 1px solid rgba(29, 161, 158, 0.28);
  border-radius: 4px;
  color: var(--navy);
  display: none;
  height: 44px;
  place-items: center;
  width: 44px;
}

.mobile-panel {
  background: #fff;
  border-top: 1px solid rgba(29, 161, 158, 0.14);
  display: grid;
  gap: 10px;
  padding: 16px 18px 20px;
}

.mobile-panel a {
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  padding: 11px 10px;
}

.mobile-panel a.active {
  background: rgba(29, 161, 158, 0.12);
}

/* ── Dropdown nav group ───────────────────────────────────── */
.nav-group {
  display: flex;
  flex: 1 1 0;
  position: relative;
}

.nav-group::after {
  content: "";
  height: 14px;
  left: -8px;
  position: absolute;
  right: -8px;
  top: 100%;
}

.nav-group-trigger {
  align-items: center;
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  font-size: 15.5px;
  font-weight: 800;
  gap: 6px;
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1.1;
  padding: 24px 12px 25px;
  position: relative;
  text-transform: uppercase;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  width: 100%;
}

.nav-group-trigger:hover,
.nav-group-trigger.active {
  background: transparent;
  color: var(--navy);
}

.nav-group-trigger.active {
  background: transparent;
  color: var(--blue-dark);
  box-shadow: none;
}

.nav-chevron {
  flex-shrink: 0;
  opacity: 0.6;
  transition: transform 0.2s ease;
}

.nav-group-open .nav-chevron {
  transform: rotate(-180deg);
}

.nav-dropdown {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(36, 59, 57, 0.12);
  display: flex;
  flex-direction: column;
  left: 0;
  min-width: 270px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translate(0, -6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 100;
}

.nav-group-open .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translate(0, 0);
}

.nav-dropdown a {
  border-radius: 5px;
  color: var(--ink);
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  padding: 12px 16px;
  text-align: left;
  text-transform: none;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a.active {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

/* ── Mobile dropdown children ─────────────────────────────── */
.mobile-group {
  display: grid;
}

.mobile-children {
  border-left: 2px solid var(--line);
  display: grid;
  gap: 2px;
  margin-left: 10px;
  padding: 4px 0 4px 10px;
}

.mobile-children a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 10px;
}

.mobile-children a.active {
  background: rgba(29, 161, 158, 0.1);
  color: var(--blue-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(29, 161, 158, 0.45);
  outline-offset: 3px;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: 60px 0;
}

.section.compact {
  padding: 48px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  border-radius: 5px;
  background: var(--blue-soft);
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

.h1,
h1,
h2,
h3 {
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0;
}

h1,
.h1 {
  font-size: clamp(30px, 2.75vw, 42px);
  letter-spacing: 0;
  font-weight: 700;
  text-transform: none;
}

h2 {
  font-size: clamp(24px, 2.05vw, 30px);
  font-weight: 700;
}

/* Major headings in dark teal for distinction/hierarchy (review — Other Notes);
   applied to h1/h2 only, so sub-heads (h3), labels, and body stay near-black. */
h1,
h2,
.h1 {
  color: #15736f;
}

h3 {
  font-size: 20px;
  font-weight: 700;
}

.lead {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  max-width: 760px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.card.pad {
  padding: 24px;
}

.band {
  background: var(--surface-2);
}

.dark-band {
  background: linear-gradient(135deg, #15736f 0%, var(--blue) 100%);
  color: #fff;
}

.dark-band h2,
.dark-band h3 {
  color: #fff;
}

.dark-band .lead {
  color: rgba(255, 255, 255, 0.9);
}

.dark-band .muted {
  color: rgba(255, 255, 255, 0.8);
}

.btn {
  align-items: center;
  border: 0;
  border-radius: 6px;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0;
  min-height: 44px;
  padding: 12px 20px;
  text-transform: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(29, 161, 158, 0.24);
  color: #fff;
}

.btn.secondary {
  background: #fff;
  border: 1.5px solid rgba(29, 161, 158, 0.35);
  color: var(--navy);
}

.btn.ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
}

.nav-actions .btn {
  font-size: 15px;
  font-weight: 700;
  min-height: 50px;
  padding: 12px 22px;
  white-space: nowrap;
}

.page-hero {
  overflow: hidden;
  padding: 58px 0 46px;
  position: relative;
}

.page-hero::before {
  background:
    radial-gradient(circle at 86% 12%, rgba(29, 161, 158, 0.09), transparent 28%),
    linear-gradient(155deg, #ffffff 0%, #ffffff 54%, var(--surface-2) 100%);
  content: "";
  inset: 0;
  position: absolute;
  z-index: -1;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-start;
}

.pill {
  border: 1px solid rgba(29, 161, 158, 0.18);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
}

.hero-copy {
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.split {
  align-items: center;
  display: grid;
  gap: 58px;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
}

.split > * {
  min-width: 0;
}

.stat {
  border-left: 4px solid var(--blue);
  padding-left: 16px;
}

.stat strong {
  color: var(--navy);
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.field input,
.field select,
.field textarea {
  border: 1.5px solid rgba(29, 161, 158, 0.28);
  border-radius: 8px;
  color: var(--ink);
  padding: 12px 14px;
  width: 100%;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab {
  border: 1px solid rgba(29, 161, 158, 0.22);
  border-radius: 4px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  padding: 9px 14px;
}

.tab.active {
  background: var(--blue);
  color: #fff;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 42px 1fr;
}

.timeline-num {
  align-items: center;
  background: rgba(29, 161, 158, 0.12);
  border: 1px solid rgba(29, 161, 158, 0.28);
  border-radius: 999px;
  color: var(--navy);
  display: flex;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.how-step-card {
  align-items: flex-start;
  display: grid;
  gap: 14px;
  grid-template-columns: 42px 1fr;
}

.how-step-card h3 {
  margin-bottom: 8px;
}

.how-step-card p {
  margin: 0;
}

.step-link {
  color: var(--blue);
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  margin-top: 12px;
}

.privacy-card p {
  margin: 0 0 12px;
}

.testimonial-mini {
  display: grid;
  gap: 14px;
}

.testimonial-mini p {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.testimonial-mini cite {
  color: var(--blue);
  font-style: normal;
  font-weight: 800;
}

.footer {
  background:
    radial-gradient(circle at 18% 4%, rgba(126, 185, 173, 0.32), transparent 34%),
    linear-gradient(135deg, #15736f 0%, #1da19e 48%, #15736F 100%);
  color: rgba(255, 255, 255, 0.78);
  padding: 72px 0 28px;
  position: relative;
}

.footer::before {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.footer h3 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.footer-grid {
  align-items: start;
  display: grid;
  gap: clamp(34px, 5vw, 76px);
  grid-template-columns: minmax(320px, 1.1fr) minmax(330px, 0.95fr) minmax(260px, 0.75fr);
}

.footer-brand {
  display: grid;
  gap: 22px;
  justify-items: start;
}

.footer-logo {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(36, 59, 57, 0.24);
  display: inline-flex;
  min-height: 116px;
  padding: 18px 24px 16px;
}

.footer-logo img {
  display: block;
  height: auto;
  max-width: 240px;
}

.footer p {
  font-size: 17px;
  line-height: 1.72;
  margin: 0;
  max-width: 500px;
}

.footer a,
.footer span {
  display: block;
}

.footer-links {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer a {
  color: #fff;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer a:hover {
  color: var(--teal-2);
}

.footer-contact a,
.footer-contact span {
  align-items: center;
  color: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: 20px 1fr;
  margin-bottom: 16px;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.78);
}

.footer-contact svg {
  color: var(--teal-2);
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin-top: 54px;
  padding-top: 22px;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 330px;
  text-align: left;
}

.article-card {
  display: grid;
  gap: 26px;
}

.article-card section {
  border-top: 1px solid rgba(29, 161, 158, 0.14);
  padding-top: 22px;
}

.reference-list {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
  padding-left: 20px;
}

.article-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 120px;
  text-align: left;
}

.card,
.pill,
.btn,
.tab {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s ease,
    background-color 0.24s ease,
    color 0.24s ease;
}

main .section .card {
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

main .section .grid .card:nth-child(2) { animation-delay: 0.04s; }
main .section .grid .card:nth-child(3) { animation-delay: 0.08s; }
main .section .grid .card:nth-child(4) { animation-delay: 0.12s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  main .section .card {
    animation: none;
  }
}

@media (max-width: 920px) {
  .grid.two,
  .grid.three,
  .grid.four,
  .split {
    grid-template-columns: 1fr;
  }

  .page-hero .split {
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .page-hero {
    padding-top: 86px;
  }

  .top-strip {
    display: none;
  }

  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .menu-button {
    display: grid !important;
    flex-shrink: 0;
    margin-left: 0;
    position: relative;
    z-index: 2;
  }

  .nav-inner {
    display: flex;
    justify-content: space-between;
    min-height: 64px;
  }

  .brand {
    width: auto;
  }

  .brand img {
    max-height: 34px;
  }

  .ess-banner {
    padding: 12px 18px 8px;
  }

  .ess-banner img {
    height: 58px;
  }

  .footer-grid,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 42px;
  }

  .footer-bottom {
    display: grid;
    gap: 8px;
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .container {
    padding: 0 18px;
    width: 100%;
  }

  .section {
    padding: 72px 0;
  }

  h1,
  .h1 {
    font-size: clamp(31px, 10vw, 38px);
    line-height: 1.1;
  }

  .lead {
    font-size: 17px;
    overflow-wrap: break-word;
  }

  .btn {
    width: 100%;
  }

  .footer {
    padding: 56px 0 24px;
  }

  .footer-logo {
    min-height: 100px;
    padding: 16px 18px 14px;
    width: 100%;
  }

  .footer-logo img {
    max-width: min(238px, 100%);
  }

  .footer-links {
    gap: 28px;
    grid-template-columns: 1fr;
  }
}
