/* ForgeKit Labs: the one look every launch page shares (owner, 17 Nov 2026: "creating a style template for all future pages").
   The palette and type are the public website's (forgekit-website/app/globals.css, the .fk tokens), so a visitor who arrives
   from a Facebook post or a search sees the same ForgeKit they would see at forgekits.build.
   The build (forgekit-os/scripts/flow/launch-check.mjs) links this file first in every page's <head> and adds the ForgeKit
   header and footer, so a page brings only its content. A live page may not set its own palette or fonts (launch-check
   refuses `:root`, font-family and font links); small layout styles of its own are fine.
   Building blocks, in the order a page usually uses them: .wrap, .hero (.kicker, h1 with an accent <span>, .lede),
   .stats/.stat, .card, .grid-2/.grid-3, .tile (.teal/.green/.amber/.violet), .steps, .note, .btn (.ghost), form fields,
   .small, .result-list. Starter page: experiments/labs/runtime/starter.html. */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,400;6..72,500&display=swap');

:root {
  --bg: #F8F7F3; --surface: #FFFFFF; --raised: #F0F2F0; --line: #E5E3DC;
  --ink: #14263D; --ink-soft: rgba(20, 38, 61, .85); --muted: #56677D;
  --teal: #007A89; --teal-soft: #E3F1F0; --green: #178C68; --green-soft: #E4F3EC;
  --violet: #7A4AD9; --violet-soft: #F1EBFC; --amber: #B86E14; --amber-soft: #FCF1E2; --bad: #A3361F;
  --brand-orange: #FF6B00;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16.5px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display { font-family: Newsreader, Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.06; margin: 14px 0 18px; max-width: 820px; }
h1 span, h2 span { color: var(--teal); }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.12; margin: 10px 0 14px; }
h3 { font-size: 21px; line-height: 1.2; margin: 0 0 6px; }
p { margin: .6rem 0; }
a { color: var(--teal); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
pre, code { font: 14px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; }
pre { white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }

/* Header and footer: added by the build to every page. */
.labs-header { border-bottom: 1px solid var(--line); background: rgba(248, 247, 243, .92); }
.labs-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.labs-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.labs-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; }
.labs-mark i { width: 12px; height: 12px; border-radius: 3px; background: var(--brand-orange); display: block; }
.labs-tag { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.labs-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.labs-footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }

/* Layout */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
section { padding: 34px 0; }
.hero { padding: 56px 0 28px; }
.kicker { font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--teal); margin: 0; }
.kicker.amber { color: var(--amber); } .kicker.green { color: var(--green); } .kicker.violet { color: var(--violet); }
.lede { font-size: 18.5px; color: var(--ink-soft); max-width: 760px; margin: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 30px 0 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.stat b { display: block; font-family: Newsreader, Georgia, serif; font-weight: 500; font-size: 40px; line-height: 1; color: var(--ink); }
.stat span { display: block; margin-top: 8px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.stat.teal b { color: var(--teal); } .stat.amber b { color: var(--amber); } .stat.green b { color: var(--green); }
.tile { border-radius: 20px; padding: 18px 20px; background: var(--raised); }
.tile.teal { background: var(--teal-soft); } .tile.green { background: var(--green-soft); }
.tile.amber { background: var(--amber-soft); } .tile.violet { background: var(--violet-soft); }
.tile h3 { font-size: 20px; }
.tile p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.note { border-left: 3px solid var(--teal); padding-left: 16px; margin: 18px 0; }
.steps { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); font-weight: 700; font-size: 14px; display: grid; place-items: center;
}
.result-list { list-style: none; padding: 0; margin: 12px 0 0; }
.result-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.card > .result-list:first-child { margin-top: 0; }
.card > .result-list:first-child > li:first-child { border-top: 0; padding-top: 0; }
.card > .result-list:first-child > li:last-child { padding-bottom: 0; }
.small { font-size: 14px; color: var(--muted); }
.good { color: var(--green); font-weight: 600; } .bad { color: var(--bad); font-weight: 600; }

/* Controls */
label { display: block; font-weight: 600; font-size: 14.5px; margin: 12px 0 6px; }
input, textarea, select, button { font: 16px Inter, system-ui, sans-serif; }
input, textarea, select { width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal); outline-offset: 1px; border-color: transparent; }
.btn, button {
  display: inline-block; padding: 12px 20px; border-radius: 999px; border: 0; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn.ghost, button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn:focus-visible, button:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

@media (max-width: 760px) {
  .grid-2, .grid-3, .stats { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .labs-tag { display: none; }
}
