/* Kit download pages (webdev.peaceandai.org, bizdev.peaceandai.org).
   Built on the Peace & AI brand: tokens.css is copied from
   ~/projects/peace-ai/brand/ at build time and loaded first. Never hard-code a
   hex here; use the tokens. Layout grammar from brand.md §6: bands (paper,
   cream, teal panel), keels, mono eyebrows, square corners, rules over boxes.
   The same file is used by both kits — keep them in step. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; }
img, svg { max-width: 100%; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.pad { padding-inline: clamp(1.25rem, 5vw, 3rem); }
.wrap { max-width: 1180px; margin-inline: auto; }
.band { position: relative; overflow: hidden; padding-block: clamp(3.25rem, 7vw, 6rem); border-top: 1px solid var(--border); }
.band.inverted, .band-cream, .band-cream + .band, .band.inverted + .band { border-top: 0; }

/* type */
h1 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); max-width: 22ch; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); max-width: 24ch; margin-bottom: 1.25rem; }
h3 { font-size: 1.25rem; letter-spacing: -.01em; margin-bottom: .4rem; }
.lead { font-size: clamp(1.12rem, 1.9vw, 1.3rem); line-height: 1.6; max-width: 56ch; margin-top: 1.4rem; }
.read { line-height: 1.6; color: var(--fg-soft); max-width: var(--measure); }
.small { font-family: var(--font-ui); font-size: .9rem; line-height: 1.55; color: var(--fg-muted); max-width: var(--measure); }
.label { margin-bottom: .9rem; }
strong { font-weight: 600; color: var(--fg); }

/* header */
.site-head { padding-block: clamp(1rem, 2.4vw, 1.5rem); border-bottom: 1px solid var(--border); }
.site-head .row { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; flex-wrap: wrap; }
.lockup { display: inline-flex; align-items: center; gap: .6rem; min-height: 48px; color: var(--fg); text-decoration: none; }
.lockup:hover { color: var(--fg); text-decoration: none; }
.lockup svg { width: 40px; height: 40px; flex: none; }
.wordmark { font-family: var(--font-voice); font-size: 1.3rem; font-weight: 400; letter-spacing: var(--track-display); white-space: nowrap; }
.wordmark b { font-weight: 700; }
.nav { display: flex; gap: clamp(1rem, 3vw, 2rem); }
.nav a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-ui); font-weight: 500; font-size: .92rem;
  color: var(--fg-soft); text-decoration: none; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--fg); border-bottom-color: var(--accent); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--brand); }

/* hero, with the brand's soft blob shapes (v0.6) */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.hero > .wrap { position: relative; }
.blob { position: absolute; border-radius: 50%; width: var(--s); height: var(--s); background: var(--c); opacity: var(--o); filter: blur(2px); pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 2rem; }
.meta { font-family: var(--font-data); font-size: .8rem; letter-spacing: var(--track-data); color: var(--fg-muted); margin: 0; }

/* buttons (brand.md §6) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .8rem 1.4rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none;
  border: 2px solid var(--brand); color: var(--brand); background: none; border-radius: var(--radius);
  transition: background-color 160ms ease-out, color 160ms ease-out; }
.btn:hover { background: var(--brand); color: var(--on-brand); text-decoration: none; }
.btn--fill { background: var(--brand); color: var(--on-brand); }
.btn--fill:hover { background: transparent; color: var(--brand); }

/* the three steps: keeled columns, mono numbers */
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; counter-reset: s; }
.steps > li { min-width: 0; border-top: 2px solid var(--relational); padding-top: 1.1rem; counter-increment: s; }
.steps > li::before { content: "0" counter(s); display: block; font: 500 .8rem/1 var(--font-data); letter-spacing: var(--track-data); color: var(--fg-muted); margin-bottom: .9rem; }
.steps p { color: var(--fg-soft); }
.option { border-top: 1px solid var(--border); padding-top: .9rem; margin-top: 1rem; }
.option h4 { font: 600 1rem/1.3 var(--font-ui); margin: 0 0 .3rem; }
.option p { font-size: .95rem; margin-bottom: .7rem; }
.option .btn { min-height: 44px; padding: .6rem 1rem; font-size: .88rem; margin: 0 .4rem .5rem 0; }
.prompt { font-family: var(--font-voice); font-weight: 600; font-size: 1.2rem; color: var(--fg); border-left: 3px solid var(--accent-fill); padding: .2rem 0 .2rem 1rem; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; } }

/* what happens: a grid of one-liners */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1.75rem 2.5rem; margin-top: .5rem; }
.item { border-top: 1px solid var(--border-strong); padding-top: .9rem; }
.item h3 { font-size: 1.08rem; }
.item p { margin: 0; color: var(--fg-soft); }
.band-cream .item { border-top-color: var(--line); }
@media (min-width: 900px) { .cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* costs */
.ledger { width: 100%; max-width: 860px; border-collapse: collapse; font-family: var(--font-ui); font-size: .98rem; }
.ledger td { text-align: left; padding: .9rem .7rem .9rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.ledger td:first-child { font-weight: 600; width: 34%; padding-right: 1.5rem; }
.ledger td:last-child { color: var(--fg-soft); }
@media (max-width: 639px) {
  .ledger, .ledger tbody, .ledger tr, .ledger td { display: block; width: auto; }
  .ledger tr { padding: .8rem 0; border-bottom: 1px solid var(--border); }
  .ledger td { border: 0; padding: .1rem 0; }
  .ledger td:first-child { width: auto; }
}

/* the teal panel: the other kit */
.inverted h2 { max-width: 22ch; }
.inverted .lead { color: var(--fg-soft); }
.inverted .label { color: var(--fg-soft); }

/* footer */
.site-foot { padding-block: 2.5rem 4rem; border-top: 1px solid var(--border); }
.site-foot p { font-family: var(--font-ui); font-size: .84rem; color: var(--fg-muted); max-width: var(--measure); }
.site-foot a { color: var(--fg-muted); text-decoration: underline; }
.site-foot .descriptor { color: var(--fg-soft); font-size: .92rem; }

/* on a phone the hero blobs sit behind the text: keep them faint there */
@media (max-width: 639px) { .hero .blob { opacity: calc(var(--o) * .5); } }

/* one orchestrated moment: the hero settles in (brand.md §6) */
@media (prefers-reduced-motion: no-preference) {
  .hero .wrap > * { animation: rise 620ms cubic-bezier(.2, .7, .3, 1) both; }
  .hero .wrap > *:nth-child(2) { animation-delay: 70ms; }
  .hero .wrap > *:nth-child(3) { animation-delay: 140ms; }
  .hero .wrap > *:nth-child(4) { animation-delay: 210ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
