@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-grotesque-latin-wght-normal.woff2?v=a97804dc9f') format('woff2-variations');
}
@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/hanken-grotesk-latin-wght-normal.woff2?v=e9201eddf1') format('woff2-variations');
}

:root {
  --bg: #eef3f1;
  --text: #12201d;
  --muted: #4b5d58;
  --accent: #0c7650;
  --accent-solid: #0f7d55;
  --accent-hover: #0b6947;
  --accent-soft: #dcf1e7;
  --rule: color-mix(in srgb, var(--text) 12%, transparent);
  /* Borders of controls people operate: 3:1 against the page. */
  --control-border: color-mix(in srgb, var(--text) 45%, transparent);
  --font-display: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1615;
    --text: #e3ede9;
    --muted: #9bafa9;
    --accent: #52cc9b;
    --accent-solid: #3fb889;
    --accent-hover: #52c898;
    --accent-soft: #163a2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 4px;
  background: linear-gradient(90deg, #d0743d, #e0864a 26%, #3db487 32%, #228f67);
}

main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(3rem, 12vh, 8rem) 1.5rem 3rem;
}

.wordmark { display: block; height: clamp(2.5rem, 7vw, 3.5rem); width: auto; }
.wordmark img { height: 100%; width: auto; display: block; }

.status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 2.75rem 0 1rem;
  padding: .25rem .75rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: .8125rem;
  letter-spacing: .02em;
}
.status::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: currentColor;
}

h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.lede { margin: 0; color: var(--muted); font-size: 1.1875rem; max-width: 36rem; }

ul.features {
  list-style: none;
  margin: 2.5rem 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}
ul.features li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}
ul.features strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.0625rem;
}
ul.features span { color: var(--muted); }

.cta {
  display: inline-block;
  padding: .7rem 1.25rem;
  border-radius: .5rem;
  background: var(--accent-solid);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
@media (prefers-color-scheme: dark) { .cta { color: #0d1615; } }
.cta:hover { background: var(--accent-hover); }
.cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--muted);
  font-size: .875rem;
}

/* Site header / nav */
.site-header {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header .home { display: block; height: 2.5rem; }
.site-header .home img { height: 100%; width: auto; display: block; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-header nav a:hover { color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--accent); }

main.wide { max-width: 64rem; padding-top: clamp(2.5rem, 8vh, 5rem); }
footer.wide { max-width: 64rem; }
main.wide .status { margin-top: 0; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: 1.5rem;
  margin: 3rem 0;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--rule);
  border-radius: 1rem;
  background: color-mix(in srgb, var(--bg) 60%, #fff);
}
@media (prefers-color-scheme: dark) {
  .plan { background: color-mix(in srgb, var(--bg) 92%, #52cc9b); }
}
.plan h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

/* Selectable plans: a hidden radio per card; its label stretches over the
   whole card, and the card's buttons sit above it. */
.plan:has(.plan-pick) { position: relative; transition: border-color .15s ease, box-shadow .15s ease; }
.plan-pick { position: absolute; opacity: 0; pointer-events: none; }
.plan h2 label { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.plan h2 label::after {
  content: "";
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--control-border);
  border-radius: 50%;
  transition: border-color .15s ease, background-color .15s ease;
}
.plan h2 label::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.plan:has(.plan-pick):hover { border-color: var(--accent); }
.plan:has(.plan-pick:checked) { border-color: var(--accent-solid); box-shadow: 0 0 0 1px var(--accent-solid); }
.plan:has(.plan-pick:checked) h2 label::after {
  border-color: var(--accent-solid);
  background: radial-gradient(var(--accent-solid) 0 40%, transparent 45%);
}
.plan:has(.plan-pick:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
/* The selected card echoes the estimate; a card that can't hold the team dims. */
.plan .your-cost { display: none; margin: .75rem 0 0; font-weight: 650; color: var(--accent); }
.plan:has(.plan-pick:checked) .your-cost, .plan.over-limit .your-cost { display: block; }
.plan.over-limit .your-cost { color: var(--muted); }
.plan.over-limit .price { opacity: .5; }
.plan .price {
  margin: 1.25rem 0 .25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.plan .price small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0;
}
.plan .then { margin: 0; color: var(--muted); }
.plan .then strong { color: var(--text); }
.plan ul {
  list-style: none;
  margin: 1.5rem 0 2rem;
  padding: 0;
  flex: 1;
}
.plan ul li { padding: .5rem 0 .5rem 1.75rem; position: relative; }
.plan ul li::before {
  content: "";
  position: absolute;
  left: .25rem;
  top: 1rem;
  width: .6rem;
  height: .35rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-50%) rotate(-45deg);
}
.plan .tbd-note { color: var(--muted); font-style: italic; }
/* A placeholder plan: one dashed strip under the others. */
.plan.tbd {
  grid-column: 1 / -1;
  flex-flow: row wrap;
  align-items: center;
  gap: .75rem 1.5rem;
  padding: 1.5rem 2rem;
  background: transparent;
  border-style: dashed;
}
.plan.tbd .price { margin: 0; font-size: 1.5rem; color: var(--muted); }
.plan.tbd .then { flex: 1 1 16rem; }
.plans-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: -1rem 0 3rem; color: var(--muted); }

/* Cost estimator */
.estimator {
  margin: 2.5rem 0 0;
  padding: 2rem;
  border-radius: 1rem;
  background: var(--accent-soft);
}
.estimator h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}
.estimator .hint { margin: -.5rem 0 1.25rem; color: var(--muted); }
.estimator .hint a { color: var(--accent); }
.estimator label { display: block; font-weight: 600; margin-bottom: .5rem; }
.estimator .row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.estimator input[type="range"] { flex: 1; min-width: 8rem; height: 1.5rem; accent-color: var(--accent-solid); }
.estimator input[type="number"] {
  width: 5.5rem;
  padding: .4rem .5rem;
  border: 1px solid var(--control-border);
  border-radius: .4rem;
  background: #fff;
  color: var(--text);
  font: inherit;
}
/* As tall as the longest estimate, so the page below doesn't jump. */
.estimator output { display: block; min-height: 7rem; margin-top: 1.25rem; font-size: 1.125rem; }
@media (prefers-color-scheme: dark) { .estimator input[type="number"] { background: var(--bg); } }
/* Narrow screens wrap the longest estimate onto five or six lines. */
@media (max-width: 40rem) { .estimator output { min-height: 14rem; } }
.estimator output .aside { display: block; margin-top: .5rem; color: var(--muted); font-size: 1rem; }
.estimator output button.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}
.estimator output strong { font-family: var(--font-display); font-size: 1.5rem; }

.faq { max-width: 44rem; }
.faq h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 0 0 1rem; }
.faq dt { font-weight: 650; margin-top: 1.25rem; }
.faq dd { margin: .25rem 0 0; color: var(--muted); }

.site-header.narrow { max-width: 44rem; }
.lede a { color: var(--accent); }
.pricing-teaser { margin-bottom: 2rem; }
.plan ul li.tbd-note::before { border: 0; width: .6rem; height: 2px; background: var(--muted); transform: translateY(-50%); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Monthly / annual billing toggle */
.billing-toggle {
  display: inline-flex;
  margin: 2.5rem 0 0;
  padding: .25rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--accent-soft);
}
.billing-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.billing-toggle label {
  padding: .45rem 1.1rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.billing-toggle input:checked + label { background: var(--accent-solid); color: #fff; }
@media (prefers-color-scheme: dark) { .billing-toggle input:checked + label { color: #0d1615; } }
.billing-toggle input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.billing-toggle .save { font-weight: 500; font-size: .8125rem; opacity: .85; }
.billing-toggle + .plans { margin-top: 1.5rem; }
