/* Stornet clean system for the server-rendered pages. Mirrors web/app/globals.css so every page looks
   like one product: off-white page, white cards with hairlines, Inter in sentence case, black pill
   buttons, and the Spectrum gradient only on hero and highlight cards (text on it is always ink). */
:root {
  --bg: #f6f6f3; --surface: #ffffff; --surface-2: #f1f1ed; --line: #e7e7e1; --line-2: #d9d9d2;
  --ink: #111111; --ink-2: #5c5f66; --ink-3: #9a9da3;
  --up: #12a35a; --up-soft: #e7f6ee; --up-ink: #0b6b3b; --down: #e5484d; --down-soft: #fdecec; --warn-soft: #fff4dc; --warn-ink: #8a5a00;
  --pop: radial-gradient(60% 80% at 75% 20%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(115deg, #ff3b5c 0%, #ff7a1a 30%, #ffc400 58%, #b8e04a 80%, #34c759 100%);
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 8px 24px rgba(17, 17, 17, .06);
  --radius: 18px; --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { letter-spacing: -.025em; margin: 0; font-weight: 650; }
.c-h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.c-h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.08; letter-spacing: -.03em; font-weight: 600; }
.c-lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); }
.c-muted { color: var(--ink-3); font-size: 13px; }
.c-eyebrow { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.c-wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

/* nav */
.c-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 clamp(16px, 4vw, 32px); background: rgba(246, 246, 243, .88); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.c-wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 650; letter-spacing: -.04em; text-decoration: none; color: var(--ink); }
.c-wordmark i { width: 18px; height: 18px; border-radius: 50%; background: var(--pop); display: inline-block; }
.c-navlinks { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.c-navlinks a { text-decoration: none; }
@media (max-width: 760px) { .c-navlinks { display: none; } }

/* buttons */
.c-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; }
.c-btn:hover { background: #2a2a2a; }
.c-btn.ghost, .c-btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.c-btn.ghost:hover, .c-btn-ghost:hover { border-color: var(--ink-3); background: var(--surface); }
.c-btn.sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.c-btn:disabled { opacity: .35; cursor: not-allowed; }

/* surfaces */
.c-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.c-pop { background: var(--pop); color: var(--ink); border-radius: 24px; padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.c-pop .c-muted, .c-pop .c-lead { color: rgba(17, 17, 17, .72); }
.c-dark { background: #111; color: #fff; border-radius: 24px; padding: clamp(20px, 4vw, 36px); }
.c-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .c-grid.c2 { grid-template-columns: 1fr 1fr; } .c-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.c-stat b { display: block; font-size: clamp(32px, 4.4vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.c-stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); }

/* forms */
.c-field { display: grid; gap: 6px; font-size: 13px; font-weight: 550; color: var(--ink-2); margin-top: 14px; }
.c-field input, .c-field select, .c-field textarea, .c-input { font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px; width: 100%; }
.c-field input:focus, .c-field select:focus, .c-field textarea:focus, .c-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.c-option { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
.c-option:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.c-option[aria-pressed="true"], .c-option.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.c-chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 550; color: var(--ink-2); cursor: pointer; }
.c-chip[aria-pressed="true"], .c-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.c-progress { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.c-progress > * { display: block; height: 100%; background: var(--pop); transition: width .35s ease; }

/* status and feedback */
.c-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.c-badge.ok { background: var(--up-soft); color: var(--up-ink); }
.c-badge.warn { background: var(--warn-soft); color: var(--warn-ink); }
.c-badge.bad { background: var(--down-soft); color: #a3262a; }
.c-toast { padding: 12px 14px; border-radius: 14px; background: var(--up-soft); color: var(--up-ink); font-weight: 550; font-size: 14px; }
.c-toast.err { background: var(--down-soft); color: #a3262a; }
.c-up { color: var(--up); } .c-down { color: var(--down); }

/* icon tiles (pastel) */
.c-tile { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.c-tint-blue { background: #eaf1ff; color: #2f6fed; } .c-tint-pink { background: #fdebf3; color: #d23a7e; } .c-tint-violet { background: #f0ecff; color: #6e4ff0; }
.c-tint-amber { background: #fff3df; color: #c27a00; } .c-tint-green { background: #e6f6ee; color: #12a35a; }

/* tables and code */
.c-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.c-table td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-variant-numeric: tabular-nums; }
.c-code { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; }
.c-foot { border-top: 1px solid var(--line); margin-top: 64px; padding: 28px 0 40px; font-size: 13px; color: var(--ink-3); }
