/* Lifted from src/theme.js, so the site and the product are recognisably the
   same thing. Values are the app's, not approximations of them.

   Dark only, and deliberately: the app has no light mode, so a site that
   flipped to cream under prefers-color-scheme would stop looking like it. Every
   colour is still painted explicitly rather than inherited from the browser. */
:root {
  /* the page gradient — colors.gradient, at colors.gradientStops */
  --g-top: #123028;
  --g-mid: #0a1c17;
  --g-bottom: #050f0c;

  /* colors.card / colors.cardBorder — light laid over the page, not a colour
     of its own, which is what stops a card looking pasted on */
  --card: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.04);

  /* colors.glass / colors.glassBorder — recessed controls */
  --glass: rgba(20, 29, 22, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);
  --chip: rgba(255, 255, 255, 0.03);
  --hairline: rgba(255, 255, 255, 0.05);

  /* text, brightest first */
  --text: #ffffff;
  --text-secondary: #bec5c0;
  --text-muted: #849487;
  --text-faint: #647367;

  /* brand */
  --accent: #66bb6a;
  --accent-soft: #a5d6a7;
  --on-accent: #0f1f10;

  /* shadows.card — 0 4px 14px at 25% */
  --lift-card: 0 4px 14px rgba(0, 0, 0, 0.25);
  --lift-bar: 0 14px 34px rgba(0, 0, 0, 0.45);

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --measure: 36rem;
}

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

body {
  margin: 0;
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* 160deg — twenty degrees off vertical, the same lean as the app */
  background: var(--g-bottom);
  background-image: linear-gradient(160deg, var(--g-top) 0%, var(--g-mid) 45%, var(--g-bottom) 100%);
  background-attachment: fixed;
}

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* --- the eyebrow --------------------------------------------------------
   The app's section label, unchanged: 11px, 700, +0.8 tracking, uppercase. */
.eyebrow {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

/* --- masthead, as the floating tab bar ----------------------------------- */
.masthead {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(var(--measure), calc(100% - 32px));
  margin: 12px auto 0;
  padding: 8px 8px 8px 14px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: var(--lift-bar);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.3px;
  text-decoration: none;
}
.wordmark img { border-radius: 7px; display: block; }
.masthead nav { display: flex; gap: 6px; }

/* colors.chip, and the accent fill the app uses for a selected pill */
.pill {
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--chip);
  color: var(--text-secondary);
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}
.pill:hover { color: var(--text); }
.pill.is-active {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
}
.pill.is-active:hover { color: var(--on-accent); }

/* --- page ---------------------------------------------------------------- */
main {
  width: min(var(--measure), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 8px;
}

/* titleStyle: 30px, 700, -0.5 tracking */
main h1 {
  color: var(--text);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.18;
  text-wrap: balance;
  margin: 0 0 20px;
}

/* --- cards --------------------------------------------------------------- */
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--lift-card);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card h2 {
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin: 0 0 8px;
}

main p { margin: 0 0 12px; }
main ul { margin: 0 0 12px; padding-left: 18px; }
main li { margin-bottom: 6px; }
main li::marker { color: var(--text-faint); }
main strong { color: var(--text); font-weight: 600; }
main em { color: var(--text-muted); font-style: normal; font-size: 13px; }

/* --- home ---------------------------------------------------------------- */
.home h1 { font-size: 34px; margin-bottom: 14px; }
.lede {
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.55;
  margin-bottom: 26px;
}

.features {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0 0 28px;
  list-style: none;
}
.features li {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--lift-card);
  padding: 16px 18px;
  margin: 0;
}
.home .features h2 {
  margin: 0 0 5px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent-soft);
}
.features p { margin: 0; font-size: 14px; color: var(--text-muted); }

.home hr {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0 0 26px;
}
.home h2 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 10px;
}

/* --- footer -------------------------------------------------------------- */
footer {
  width: min(var(--measure), calc(100% - 32px));
  margin: 40px auto 0;
  padding: 22px 0 56px;
  border-top: 1px solid var(--hairline);
  color: var(--text-faint);
  font-size: 13px;
}
footer p { margin: 0 0 5px; }
footer .eyebrow { color: var(--text-muted); }
.fineprint { margin-top: 14px; font-size: 12px; line-height: 1.5; }

@media (max-width: 30rem) {
  main { padding-top: 30px; }
  .home h1 { font-size: 28px; }
  main h1 { font-size: 26px; }
  .lede { font-size: 16px; }
}
