/*
  assets/site-editions.css — v2 "AI Agent Factory" components.

  Layered AFTER site.css + site-marketing.css. Reuses the shared tokens
  (--accent, --grad, --surface, --border, fonts…); adds only the edition
  catalog / carousel / assembly-line / foundation / pack-grid components used by
  index.html + editions/*.html. Per-edition accent comes from an inline
  --ea custom property on the element (set from editions.js / markup), so one
  rule set themes every edition. No framework.
*/

/* ── Status badges ─────────────────────────────────────────────────────────── */
.ed-badge{ display:inline-flex; align-items:center; gap:6px; font-family:var(--mono); font-size:10.5px;
  letter-spacing:.06em; text-transform:uppercase; font-weight:600; padding:4px 10px; border-radius:999px;
  border:1px solid var(--border-strong); color:var(--ink-muted); background:var(--surface); white-space:nowrap; }
.ed-badge::before{ content:""; width:7px; height:7px; border-radius:50%; background:var(--ink-faint); }
.ed-badge.available{ color:var(--good); border-color:rgba(5,150,105,.35); background:rgba(5,150,105,.08); }
.ed-badge.available::before{ background:var(--good); }
.ed-badge.development{ color:#B45309; border-color:rgba(180,83,9,.3); background:rgba(217,119,6,.08); }
.ed-badge.development::before{ background:#D97706; }
.ed-badge.planned{ color:var(--ink-muted); }

/* ── Edition carousel (homepage) ───────────────────────────────────────────── */
.ed-carousel{ margin-top:40px; }
.ed-carousel-head{ display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; }
.ed-nav{ display:flex; gap:8px; }
.ed-nav button{ width:40px; height:40px; border-radius:10px; border:1px solid var(--border-strong);
  background:var(--surface); color:var(--ink); font-size:16px; display:flex; align-items:center;
  justify-content:center; transition:border-color .2s ease, color .2s ease, transform .2s ease; }
.ed-nav button:hover{ border-color:var(--accent2); color:var(--accent2); }
.ed-nav button:disabled{ opacity:.35; cursor:default; }
.ed-track{ display:grid; grid-auto-flow:column; grid-auto-columns:minmax(320px,1fr); gap:18px;
  overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; padding:4px 4px 18px;
  scrollbar-width:thin; }
@media (min-width:1040px){ .ed-track{ grid-auto-columns:calc((100% - 36px)/3); } }
.ed-track::-webkit-scrollbar{ height:8px; }
.ed-track::-webkit-scrollbar-thumb{ background:var(--border-strong); border-radius:999px; }
.ed-card{ scroll-snap-align:start; position:relative; display:flex; flex-direction:column;
  border:1px solid var(--border); border-radius:16px; background:var(--surface); overflow:hidden;
  transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; min-width:0; }
.ed-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); border-color:color-mix(in srgb, var(--ea,#2563EB) 45%, transparent); }
.ed-card .ed-top{ height:6px; background:linear-gradient(90deg, var(--ea,#2563EB), color-mix(in srgb, var(--ea,#2563EB) 40%, #8B5CF6)); }
.ed-card .ed-body{ padding:24px; display:flex; flex-direction:column; flex:1; }
.ed-card .ed-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:14px; }
.ed-card .ed-mark{ width:40px; height:40px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-size:19px; background:color-mix(in srgb, var(--ea,#2563EB) 12%, var(--surface)); border:1px solid color-mix(in srgb, var(--ea,#2563EB) 24%, transparent); }
.ed-card h3{ font-size:19px; margin-bottom:6px; }
.ed-card .ed-tag{ font-size:14px; color:var(--ea,#2563EB); font-weight:600; font-family:var(--display); margin-bottom:10px; }
.ed-card .ed-blurb{ font-size:13.5px; color:var(--ink-muted); line-height:1.55; flex:1; }
.ed-chips{ display:flex; flex-wrap:wrap; gap:7px; margin-top:16px; }
.ed-chip{ font-family:var(--mono); font-size:11px; padding:5px 10px; border-radius:999px;
  border:1px solid var(--border); background:var(--surface-2); color:var(--ink-muted); }
.ed-chip.more{ color:var(--ea,#2563EB); border-color:color-mix(in srgb, var(--ea,#2563EB) 30%, transparent); background:transparent; }
.ed-card .ed-cta{ margin-top:18px; display:inline-flex; align-items:center; gap:6px; font-size:13.5px; font-weight:600; color:var(--ea,#2563EB); }
.ed-card.soon .ed-body{ opacity:.96; }
.ed-dots{ display:flex; gap:8px; justify-content:center; margin-top:8px; }
.ed-dots button{ width:8px; height:8px; padding:0; border-radius:50%; border:none; background:var(--border-strong); transition:background .2s, transform .2s; }
.ed-dots button[aria-current="true"]{ background:var(--accent2); transform:scale(1.3); }

/* ── Editions overview grid ────────────────────────────────────────────────── */
.ed-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:44px; }
@media (max-width:980px){ .ed-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .ed-grid{ grid-template-columns:1fr; } }

/* ── Assembly line (6 stages) ──────────────────────────────────────────────── */
.asm{ display:grid; grid-template-columns:repeat(6,1fr); gap:0; margin-top:44px; counter-reset:asm; }
@media (max-width:980px){ .asm{ grid-template-columns:1fr 1fr 1fr; row-gap:28px; } }
@media (max-width:560px){ .asm{ grid-template-columns:1fr; } }
.asm-step{ position:relative; padding:0 18px; }
.asm-step + .asm-step::before{ content:"→"; position:absolute; left:-9px; top:30px; color:var(--accent2);
  font-family:var(--mono); font-size:15px; transform:translateX(-50%); }
@media (max-width:980px){ .asm-step + .asm-step::before{ display:none; } }
.asm-step .n{ width:36px; height:36px; border-radius:10px; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:13px; font-weight:600; color:#fff; background:var(--grad);
  box-shadow:0 0 18px rgba(99,102,241,.35); margin-bottom:14px; }
.asm-step h4{ font-size:14.5px; margin-bottom:7px; }
.asm-step p{ font-size:13px; color:var(--ink-muted); line-height:1.5; }

/* ── Shared foundation (stacked layers) ────────────────────────────────────── */
.foundation{ margin-top:44px; display:flex; flex-direction:column; gap:12px; max-width:760px; }
.flayer{ border:1px solid var(--border); border-radius:14px; padding:18px 22px; background:var(--surface); }
.flayer .ft{ font-family:var(--display); font-weight:700; font-size:15px; margin-bottom:4px; }
.flayer .fd{ font-size:13px; color:var(--ink-muted); line-height:1.5; }
.flayer.top{ background:linear-gradient(135deg, rgba(37,99,235,.06), rgba(139,92,246,.09)); border-color:rgba(99,102,241,.3); }
.flayer.mid{ margin:0 18px; }
.flayer.base{ margin:0 36px; background:var(--surface-2); }

/* ── Pack catalog (edition page) ───────────────────────────────────────────── */
.pack-cats{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; margin-top:40px; }
@media (max-width:760px){ .pack-cats{ grid-template-columns:1fr; } }
.pack-cat{ border:1px solid var(--border); border-radius:16px; background:var(--surface); padding:24px; }
.pack-cat h4{ font-size:13px; font-family:var(--mono); letter-spacing:.06em; text-transform:uppercase;
  color:var(--ea,#2563EB); margin-bottom:16px; }
.pack-item{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:11px 0;
  border-top:1px solid var(--border); }
.pack-item:first-of-type{ border-top:none; }
.pack-item .pn{ font-size:14.5px; font-weight:600; color:var(--ink); }
.pack-item .pid{ font-family:var(--mono); font-size:11px; color:var(--ink-faint); white-space:nowrap; }

/* ── Edition hero accent band ──────────────────────────────────────────────── */
.ed-hero .kicker{ color:var(--ea,#2563EB); }
.ed-hero .kicker::before{ background:var(--ea,#2563EB); }
.ed-hero h1 .accenttext{ color:var(--ea,#2563EB); }

/* ── Honest "coming" note ──────────────────────────────────────────────────── */
.soon-note{ margin-top:14px; font-size:12.5px; color:var(--ink-faint); font-family:var(--mono); }
