/* expressWAI: mobile-first styles (light theme only) */

:root {
  color-scheme: light;

  --navy: #13294B;
  --slate: #4A515B;
  --mist: #EEF0F2;
  --line: #D3D7DC;
  --teal: #19C3C0;
  --teal-deep: #0E7C80;

  --font-head: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;

  --radius: 10px;
  --gutter: 20px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--slate);
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-weight: 800; font-size: clamp(2.4rem, 8vw, 4.25rem); letter-spacing: -0.02em; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 5vw, 2.6rem); }
h3 { font-weight: 700; font-size: 1.25rem; }

p { margin: 0 0 1em; }
strong { color: var(--navy); }

/* Links on light backgrounds */
a {
  color: var(--teal-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 760px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--navy);
  color: #FFFFFF;
  font-weight: 700;
  border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons & links ---------- */

/* Default (light sections): navy button, white text */
.btn {
  display: inline-block;
  padding: 14px 24px;
  background: var(--navy);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  transition: transform 0.12s ease, background-color 0.12s ease;
}
.btn:hover { color: #FFFFFF; background: var(--slate); border-color: var(--slate); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-small { padding: 10px 16px; font-size: 1rem; }

.text-link { font-weight: 700; }

/* On navy backgrounds: teal button, navy text */
.founding .btn,
.final-cta .btn {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--navy);
}
.founding .btn:hover,
.final-cta .btn:hover {
  background: var(--mist);
  border-color: var(--mist);
  color: var(--navy);
}
.founding :focus-visible,
.final-cta :focus-visible,
.site-footer :focus-visible { outline-color: var(--teal); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.logo:hover { color: var(--navy); }
.logo-mark {
  background: var(--teal);
  color: var(--navy);
  padding: 0 0.18em;
  margin-left: 0.04em;
  border-radius: 3px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 8px;
  font: 700 1rem var(--font-body);
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.site-nav a:not(.btn) {
  display: block;
  padding: 10px 0;
  font-weight: 600;
}
.site-nav .btn { margin-top: 8px; }

/* With JS on small screens, the menu collapses behind the toggle */
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; }
.js .site-nav.is-open { display: block; }

/* ---------- Sections ---------- */

.hero { padding: 56px 0 64px; }
.hero h1 { text-wrap: balance; }
.lead {
  font-size: clamp(1.2rem, 3vw, 1.4rem);
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: 28px;
}

/* "Works with what you use" chips */
.works-with {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 32px;
}
.works-with p {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chips li {
  padding: 4px 14px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

/* Phones: full-width primary button, centered secondary link */
@media (max-width: 599px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn { width: 100%; text-align: center; }
  .hero-actions .text-link { align-self: center; }
}

.section { padding: 64px 0; }
.section-tint { background: #FFFFFF; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.4em;
}

/* Sound familiar? */
.quote-grid {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
.quote-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 6px;
}
.quote-card blockquote { margin: 0; }
.quote-card p {
  color: var(--navy);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.45;
}

/* Start here */
.feature-grid {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.feature-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-top: 6px solid var(--teal);
  border-radius: var(--radius);
  padding: 24px 24px 8px;
}
.feature-card h3 { font-size: 1.35rem; }

/* Also on the menu */
.menu-grid {
  display: grid;
  gap: 32px;
  margin-top: 24px;
}
.menu-group h3 {
  padding-bottom: 10px;
  border-bottom: 2px solid var(--navy);
}
.menu-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-group li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.menu-group li:last-child { border-bottom: 0; }

/* How it works */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 24px 0 32px;
  padding: 0;
  display: grid;
  gap: 24px;
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 64px;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #FFFFFF;
  border: 3px solid var(--teal);
  border-radius: 50%;
  font: 800 1.25rem var(--font-head);
}
.step h3 { margin-top: 8px; margin-bottom: 0.3em; }

/* Founding clients: full navy band */
.founding {
  background: var(--navy);
  border-top: 6px solid var(--teal);
  color: var(--mist);
  padding: 56px 0;
}
.founding h2 {
  color: #FFFFFF;
  font-size: clamp(1.5rem, 4vw, 2rem);
}
.founding p { max-width: 60ch; margin-bottom: 28px; }

/* About */
.about {
  display: grid;
  gap: 24px;
  align-items: start;
}
.about p { max-width: 60ch; }
.headshot {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--navy);
}
.headshot-placeholder {
  display: grid;
  place-items: center;
  background: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Questions */
.faq { margin-top: 24px; }
.faq details {
  border-bottom: 1px solid var(--navy);
}
.faq details:first-child { border-top: 1px solid var(--navy); }
.faq summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 20px 44px 20px 0;
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-right: 44px; margin-bottom: 20px; }

/* Final call */
.final-cta {
  background: var(--navy);
  color: var(--mist);
  padding: 72px 0;
  text-align: center;
}
.final-cta h2 { color: #FFFFFF; }
.final-cta .lead { margin: 0 auto 28px; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: var(--mist);
  border-top: 1px solid var(--slate);
  padding: 36px 0 44px;
}
.site-footer a { color: #FFFFFF; }
.site-footer a:hover { color: var(--teal); }
.footer-inner {
  display: grid;
  gap: 16px;
}
.logo-footer { color: #FFFFFF; margin: 0; }
.site-footer address { font-style: normal; line-height: 1.7; }
.copyright { margin: 0; font-size: 0.95rem; }

/* ---------- Larger screens ---------- */

@media (min-width: 720px) {
  :root { --gutter: 32px; }

  .js .nav-toggle { display: none; }
  .site-nav,
  .js .site-nav { display: block; width: auto; }
  .header-inner { flex-wrap: nowrap; min-height: 72px; }
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 0;
  }
  .site-nav a:not(.btn) { padding: 6px 0; }
  .site-nav .btn { margin-top: 0; }

  .works-with,
  .chips { flex-wrap: nowrap; }

  .hero { padding: 96px 0 104px; }
  .section { padding: 88px 0; }
  .founding { padding: 72px 0; }

  .quote-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .menu-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 56px; }
  .about { grid-template-columns: 160px 1fr; gap: 40px; }
  .headshot { width: 160px; height: 160px; }

  .footer-inner {
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 40px;
  }
}

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step { padding-left: 0; padding-top: 60px; }
  .step h3 { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover,
  .btn:active { transform: none; }
}
