/*
  Brand colors. Keep these in sync with theme_color in site.webmanifest
  and the theme-color meta tag in index.html.
  --brand      #059669 base fill. Near-black text on this fill (4.7:1).
  --brand-dark #04694A dark half. White text on this fill (6.7:1).
  --brand-text #34D399 emerald text and links on dark backgrounds.
  --brand-ink  #047857 emerald text and links on white (5.5:1).
*/
:root {
  --brand: #059669;
  --brand-dark: #04694A;
  --brand-text: #34D399;
  --brand-ink: #047857;
  --ink: #111827;
  --paper: #f4f7f5;
  --white: #ffffff;
  --muted: #3a4150;
  --line: #dce5e0;
  --brand-soft: color-mix(in srgb, var(--brand) 14%, var(--white));
  --brand-line: color-mix(in srgb, var(--brand) 58%, var(--white));
  --hero-a: #0e3b2e;
  --hero-b: #071612;
  --on-dark: #f7f8fc;
  --on-dark-soft: #d5ebe3;
  --wrap: 1120px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
p,
blockquote,
ul,
ol,
figure {
  margin: 0;
}

h1,
h2,
h3,
.lead {
  text-wrap: balance;
}

p,
li {
  text-wrap: pretty;
}

a {
  color: var(--brand-ink);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--brand-dark);
  outline-offset: 3px;
}

.hero :focus-visible,
.close :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

.panel :focus-visible {
  outline-color: var(--brand-dark);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 30;
  background: var(--white);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

[id] {
  scroll-margin-top: 84px;
}

.logo {
  display: block;
  height: 36px;
  width: auto;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section {
  padding: clamp(64px, 8vw, 104px) 0;
}

.section-head {
  max-width: 42rem;
  margin-bottom: 32px;
}

.section-head h2,
.close h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.lede {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.6;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--white) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  min-height: 72px;
  padding: 12px 0;
}

.brand {
  display: block;
  text-decoration: none;
  line-height: 0;
}

.nav {
  display: none;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 999px;
}

.nav a:hover {
  background: var(--brand-soft);
  text-decoration: none;
}

.header-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--brand-dark);
  color: var(--white);
  text-decoration: none;
}

/* Hero */

.hero {
  color: var(--on-dark);
  background:
    radial-gradient(720px 340px at 100% 0%, color-mix(in srgb, var(--brand) 48%, transparent), transparent 68%),
    linear-gradient(165deg, var(--hero-a), var(--hero-b) 74%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  padding: clamp(48px, 7vw, 88px) 0 clamp(56px, 8vw, 96px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin-bottom: 16px;
  padding: 0 12px 0 10px;
  border: 1px solid color-mix(in srgb, var(--white) 42%, transparent);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow .star {
  width: 12px;
  height: 12px;
}

h1 {
  max-width: 12em;
  font-size: clamp(2.15rem, 4.6vw, 4.05rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lead {
  margin-top: 16px;
  max-width: 22em;
  color: var(--white);
  font-size: clamp(1.3rem, 2.3vw, 1.75rem);
  line-height: 1.28;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-copy .body {
  margin-top: 16px;
  max-width: 40rem;
  color: var(--on-dark-soft);
  font-size: 1.0625rem;
}

.audience {
  margin-top: 14px;
  color: var(--on-dark-soft);
  font-weight: 600;
}

/* Forms */

.panel {
  background: var(--white);
  color: var(--ink);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 18px 50px rgba(8, 10, 20, 0.28);
}

.panel-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.signup {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.signup label {
  font-size: 0.95rem;
  font-weight: 600;
}

.signup input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #c5cad6;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.signup input::placeholder {
  color: #4b5563;
}

.signup input:user-invalid {
  border-color: #9f1239;
}

.signup button {
  appearance: none;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.signup button:hover {
  background: var(--brand-dark);
  color: var(--white);
}

.fine,
.status {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.status:empty {
  display: none;
}

/* Ownership */

.promise {
  margin: 4px 0 40px;
  padding: 4px 0 4px 20px;
  border-left: 4px solid var(--brand);
  max-width: 44rem;
}

.promise p:first-child {
  font-size: clamp(1.45rem, 2.6vw, 2.05rem);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.promise p + p {
  margin-top: 10px;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

.pillars {
  display: grid;
  gap: 28px;
  margin-bottom: 56px;
}

.star {
  width: 16px;
  height: 16px;
  color: var(--brand-dark);
  flex: none;
}

.eyebrow .star {
  color: var(--brand-text);
}

.pillars h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.history h3 {
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.timeline {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 22px;
}

.timeline li {
  position: relative;
  padding-left: 72px;
  min-height: 48px;
}

.timeline li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: -22px;
  width: 2px;
  background: var(--brand-line);
}

.node {
  position: absolute;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.timeline h4 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin-bottom: 4px;
}

.timeline p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Features */

.grid,
.who-grid {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}

.card:hover {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
}

.idx {
  display: block;
  margin-bottom: 12px;
  color: var(--brand-ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card h3 {
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Who */

.who {
  background: var(--paper);
}

.who .card {
  background: var(--white);
}

/* Close + footer */

.close {
  color: var(--on-dark);
  background:
    radial-gradient(640px 280px at 0% 100%, color-mix(in srgb, var(--brand) 42%, transparent), transparent 70%),
    linear-gradient(165deg, var(--hero-a), var(--hero-b));
}

.close-grid {
  display: grid;
  gap: 28px;
  align-items: center;
}

.close .kicker {
  color: var(--brand-text);
}

.close h2 {
  max-width: 14em;
}

.close .lede {
  color: var(--on-dark-soft);
  max-width: 36rem;
}

.site-footer {
  color: var(--on-dark-soft);
  background: var(--hero-b);
  border-top: 1px solid color-mix(in srgb, var(--white) 14%, transparent);
  padding: 28px 0 36px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--on-dark);
  font-weight: 600;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.footer-nav a,
.site-footer a {
  color: var(--brand-text);
  font-weight: 600;
}

.footer-note {
  margin-left: auto;
  color: var(--on-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.875rem;
}

@media (min-width: 800px) {
  .nav {
    display: flex;
  }

  .pillars {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .pillars article {
    padding: 0 28px;
    border-left: 1px solid var(--line);
  }

  .pillars article:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .pillars article:last-child {
    padding-right: 0;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 960px) {
  .hero-grid,
  .close-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.72fr);
    gap: 48px;
  }

  .who-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
  }

  .timeline li {
    padding-left: 0;
  }

  .timeline li::before {
    display: none;
  }

  .node {
    position: relative;
    margin-bottom: 16px;
    z-index: 1;
  }

  .timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 48px;
    right: -22px;
    top: 23px;
    height: 2px;
    background: var(--brand-line);
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
