/* Steadmark design system
   Palette: pine + bone carry ~90% of every screen. Lime is the single accent, used only where money or the
   next action lives (revenue numbers, the primary CTA, active state). Lime is a fill on bone, or text on pine.
   Shape: pills for anything you press, 28px squircles for surfaces, 14px for fields. */

/* Geist and Geist Mono (SIL OFL), self-hosted Latin subsets */
@font-face { font-family: "Geist Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono Variable"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/geist-mono.woff2") format("woff2"); }

:root {
  --pine: #11231d;
  --pine-2: #172e27;
  --pine-3: #1f3a32;
  --bone: #eeede6;
  --bone-2: #e5e4db;
  --bone-3: #f6f5f0;
  --lime: #d4f45a;
  --lime-deep: #c3e544;

  /* semantic (light) */
  --bg: var(--bone);
  --surface: var(--bone-3);
  --sunken: var(--bone-2);
  --ink: var(--pine);
  --ink-2: rgb(17 35 29 / .78);
  --muted: rgb(17 35 29 / .66);
  --line: rgb(17 35 29 / .10);
  --line-2: rgb(17 35 29 / .16);
  --shell: rgb(17 35 29 / .045);
  --highlight: inset 0 1px 0 rgb(255 255 255 / .7);
  --shadow: 0 1px 1px rgb(17 35 29 / .04), 0 24px 48px -24px rgb(17 35 29 / .18);
  --warn: #8a5a12;
  --warn-soft: rgb(196 140 40 / .14);
  --bad: #a3392d;
  --bad-soft: rgb(190 70 55 / .12);

  --r-pill: 999px;
  --r-surface: 28px;
  --r-field: 14px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --font: "Geist Variable", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono Variable", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not(.force-brand) {
    --bg: var(--pine);
    --surface: var(--pine-2);
    --sunken: #0c1a15;
    --ink: var(--bone);
    --ink-2: rgb(238 237 230 / .8);
    --muted: rgb(238 237 230 / .68);
    --line: rgb(238 237 230 / .09);
    --line-2: rgb(238 237 230 / .15);
    --shell: rgb(238 237 230 / .035);
    --highlight: inset 0 1px 0 rgb(255 255 255 / .06);
    --shadow: 0 24px 48px -24px rgb(0 0 0 / .5);
    --warn: #e6b866;
    --warn-soft: rgb(230 184 102 / .12);
    --bad: #f09a8e;
    --bad-soft: rgb(240 154 142 / .12);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
a { color: inherit; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--lime); color: var(--pine); }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 767px) { .wrap { padding: 0 16px; } }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }

/* type */
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(32px, 4vw, 54px); }
h3 { font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
.lead { font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 46ch; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* buttons: pills, optional nested icon island */
.btn {
  --b-bg: var(--surface); --b-ink: var(--ink); --b-ic: var(--shell);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; padding: 14px 22px; border-radius: var(--r-pill);
  border: 0; background: var(--b-bg); color: var(--b-ink); cursor: pointer; text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), background .5s var(--ease), box-shadow .5s var(--ease);
}
.btn:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.btn:active { transform: scale(.98); }
.btn.has-ic { padding: 6px 6px 6px 22px; }
.btn .ic { width: 38px; height: 38px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--b-ic); font-size: 17px; transition: transform .6s var(--ease); }
.btn:hover .ic { transform: translate(2px, -1px) scale(1.05); }
.btn.primary { --b-bg: var(--ink); --b-ink: var(--bg); --b-ic: rgb(127 127 127 / .22); box-shadow: none; }
.btn.accent { --b-bg: var(--lime); --b-ink: var(--pine); --b-ic: rgb(17 35 29 / .1); box-shadow: none; }
.btn.accent:hover { --b-bg: var(--lime-deep); }
.btn.ghost { --b-bg: transparent; box-shadow: none; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink); --b-bg: var(--shell); }
.btn.danger { color: var(--bad); }
.btn.small { padding: 9px 14px; font-size: 13.5px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* fields */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--muted); }
input, select, textarea {
  font: 15px/1.4 var(--font); color: var(--ink); background: var(--bg);
  border: 0; box-shadow: inset 0 0 0 1px var(--line-2); border-radius: var(--r-field); padding: 12px 14px; min-width: 0;
  transition: box-shadow .4s var(--ease);
}
input:focus, select:focus, textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--ink); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { width: 100%; min-height: 240px; resize: vertical; line-height: 1.6; }
input[type=range] { padding: 0; box-shadow: none; background: none; accent-color: var(--ink); }
input[type=checkbox], input[type=radio] { accent-color: var(--ink); width: 18px; height: 18px; box-shadow: none; }

/* surfaces: double bezel (outer translucent shell + inner core with concentric radius) */
.card {
  background: var(--surface); border: 6px solid var(--shell); background-clip: padding-box;
  border-radius: var(--r-surface); padding: 26px;
  box-shadow: 0 0 0 1px var(--line), var(--highlight), var(--shadow);
}
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 550; padding: 4px 10px; border-radius: var(--r-pill); background: var(--shell); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); white-space: nowrap; }
.pill.ok { background: var(--lime); color: var(--pine); box-shadow: none; }
.pill.warn { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.pill.bad { background: var(--bad-soft); color: var(--bad); box-shadow: none; }
.chip { font: 600 15px/1 var(--font); padding: 13px 20px; border-radius: var(--r-pill); border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: transparent; color: var(--ink); cursor: pointer; transition: all .5s var(--ease); }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; }
/* Brand mark: two rising lime bars on a pine tile (reads on light and dark backgrounds) */
.logo-mark { width: 32px; height: 32px; border-radius: 10px; background: #11231d; color: #c7f45a; display: grid; place-items: center; font-size: 17px; box-shadow: inset 0 0 0 1px rgb(199 244 90 / .22); flex: none; }
.logo-mark svg { width: 58%; height: 58%; fill: #c7f45a; display: block; }
.logo { letter-spacing: -0.045em; font-weight: 650; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
