/* Greenrun website: one stylesheet for every page. Light and dark follow the visitor's device.
   Type: Geist (text) and Geist Mono (figures, keys), saved in /fonts and served from this site, not from Google.
   Both are free under the SIL Open Font License (licence files are in /fonts). */
@font-face { font-family: 'Geist'; src: url(fonts/geist-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #fcfdfc;
  --surface: #f4f6f5;
  --raised: #ffffff;
  --text: #141b17;
  --text2: #4f5c55;
  --muted: #6b7871;
  --line: rgba(20, 27, 23, 0.1);
  --accent: #1f845a;
  --accent-ink: #176a48;
  --on-accent: #ffffff;
  --fail: #c9372c;
  --idle: #c3cbc7;
  --shadow: 0 1px 2px rgba(20, 27, 23, 0.06), 0 12px 32px rgba(20, 27, 23, 0.08);
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111513;
    --surface: #171c19;
    --raised: #1c221f;
    --text: #e8eeea;
    --text2: #a6b2ab;
    --muted: #8a968f;
    --line: rgba(232, 238, 234, 0.1);
    --accent: #4bce97;
    --accent-ink: #7ee2b8;
    --on-accent: #0f1a14;
    --fail: #f2766c;
    --idle: #46514b;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 120ms ease-out; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
strong { font-weight: 500; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface); padding: 0 4px; border-radius: 4px; overflow-wrap: anywhere; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* The run bar: a thin strip of a test run (green passed, one red failed, grey not run). The one signature detail. */
.runbar { display: flex; height: 4px; }
.runbar i { display: block; }
.runbar i:nth-child(1) { flex: 14; background: var(--accent); }
.runbar i:nth-child(2) { flex: 1; background: var(--fail); }
.runbar i:nth-child(3) { flex: 3; background: var(--idle); }

header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px; flex-wrap: wrap; }
.logo { font-weight: 500; font-size: 18px; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo:hover { color: var(--text); }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: inline-block; }
nav { display: flex; gap: 24px; flex-wrap: wrap; }
nav a { color: var(--text2); text-decoration: none; font-size: 15px; transition: color 120ms ease-out; }
nav a:hover, nav a.on { color: var(--text); }

main.wrap { padding-bottom: 80px; }
h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; letter-spacing: -0.02em; font-weight: 500; margin: 0 0 20px; }
h2 { font-size: 24px; line-height: 1.3; font-weight: 500; margin: 48px 0 12px; }
h3 { font-size: 17px; font-weight: 500; margin: 24px 0 4px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--text2); max-width: 52ch; margin: 0 0 32px; }
.updated { color: var(--muted); font-size: 14px; font-family: var(--mono); }

/* Buttons */
.actions { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin: 0 0 24px; }
.button { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--on-accent); padding: 12px 20px; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: 15px; border: 0; cursor: pointer; font-family: var(--sans); transition: background-color 120ms ease-out, transform 80ms ease-out; }
.button:hover { background: var(--accent-ink); color: var(--on-accent); }
.button:active { transform: scale(0.98); }
@media (prefers-color-scheme: dark) { .button:hover { background: #7ee2b8; } }
.button.quiet { background: transparent; color: var(--text); border: 1px solid var(--line); }
.button.quiet:hover { background: var(--surface); color: var(--text); }
.textlink { color: var(--text2); font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; color: var(--text2); margin: 0; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }

/* Home: hero as a split, copy on the left and a drawing of the real screen on the right */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; padding: 72px 0 64px; }
.app { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
.app-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.app-top strong { font-size: 15px; }
.app-top span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.seg { display: flex; gap: 2px; height: 8px; margin: 20px 20px 8px; }
.seg i { display: block; border-radius: 4px; }
.seg i:nth-child(1) { flex: 14; background: var(--accent); }
.seg i:nth-child(2) { flex: 1; background: var(--fail); }
.seg i:nth-child(3) { flex: 3; background: var(--idle); }
.legend { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 0 20px 16px; }
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.rows li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows li:last-child { border-bottom: 0; }
.rows .key { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rows .title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows .res { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text2); }
.rows .res::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--idle); }
.rows .pass::before { background: var(--accent); }
.rows .fail { color: var(--text); }
.rows .fail::before { background: var(--fail); }
.rows .run::before { background: transparent; border: 1.5px solid var(--accent); }
.caption { font-size: 12px; color: var(--muted); margin: 12px 4px 0; }

/* Home: sections below the hero */
.section { border-top: 1px solid var(--line); padding-top: 32px; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.section h2 { margin: 0; }
.section p:last-child { margin-bottom: 0; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; margin: 0; padding: 0; list-style: none; }
.features li { border-top: 1px solid var(--line); padding-top: 16px; }
.features strong { display: block; margin-bottom: 4px; }
.features span { color: var(--text2); font-size: 15px; }
.price { display: flex; gap: 48px; flex-wrap: wrap; }
.price div { min-width: 160px; }
.price .num { display: block; font-size: 40px; line-height: 1.1; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price .per { display: block; color: var(--text2); font-size: 15px; margin-top: 8px; max-width: 28ch; }

/* Support page */
.steps { margin: 0; padding: 0; list-style: none; }
.steps > li { border-top: 1px solid var(--line); padding: 32px 0; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.steps h2 { margin: 0; font-size: 20px; }
.steps ul { margin: 0 0 16px; padding-left: 20px; }
.steps li li { margin: 4px 0; }
.address { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 0 0 16px; }
.address code { background: none; padding: 0; font-size: 17px; }
.address .copy { margin-left: auto; }
.small { font-size: 14px; color: var(--muted); }

/* Help and privacy pages: a narrower reading column */
.doc { max-width: 792px; padding-top: 56px; }
.doc .lead { margin-bottom: 24px; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 24px; margin: 0 0 8px; }
.toc ol { margin: 8px 0 0; padding-left: 20px; }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin: 24px 0; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px 8px; vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
.table-scroll { overflow-x: auto; }
.confirm { background: #fff7d6; color: #7f5f01; padding: 0 4px; border-radius: 4px; font-weight: 500; }
@media (prefers-color-scheme: dark) { .confirm { background: #533f04; color: #f5cd47; } }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; padding: 24px 0 40px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer nav { gap: 24px; }
footer nav a { color: var(--muted); font-size: 14px; }
footer nav a:hover { color: var(--text); }

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 48px 0 48px; }
  .section, .steps > li { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .bar { padding: 16px; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .rows li { grid-template-columns: minmax(0, 1fr) auto; }
  .rows .key { display: none; }
  .price { gap: 32px; }
  .address .copy { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
