/* ============================================================
   Alfred AI — deck.css
   Shared 16:9 slide-layout library for on-brand presentation decks.
   Authored at a 1280×720 design size; pairs with deck-stage.js (runtime)
   and ds-base.js (loads styles.css tokens + the component bundle).

   A deck is a sequence of <section> slides inside <deck-stage>. Each slide
   is: <section data-label="…"><div class="frame BG"> … </div></section>
   where BG is one of: bg-cover · bg-white · bg-canvas · bg-ink · bg-grad.
   Everything is driven by design-system CSS custom properties — including the
   brand gradient (--gradient-brand); only the soft radial glows use raw rgba.

   Light context only (no [data-theme="dark"]): headlines = Clash Display
   (--font-display), body = Satoshi (--font-sans).
   ============================================================ */

/* ---------- frame + backgrounds ---------- */
.frame {
  width: 100%; height: 100%; position: relative; overflow: hidden;
  box-sizing: border-box; font-family: var(--font-sans); color: var(--ink-900);
}
.bg-white  { background: #fff; }
.bg-canvas { background: var(--bg-canvas); }
.bg-ink    { background: var(--ink-900); color: #fff; }
.bg-cover  { background:
  radial-gradient(70% 80% at 92% 96%, rgba(255,176,123,0.30) 0%, rgba(255,176,123,0) 60%),
  radial-gradient(60% 70% at 4% 4%, rgba(167,167,252,0.18) 0%, rgba(167,167,252,0) 60%), #fff; }
.bg-ink.glow::before, .frame.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 70% at 100% 100%, rgba(255,132,49,0.30) 0%, rgba(255,132,49,0) 60%); }
.bg-grad { background: var(--gradient-brand); color: #fff; }

/* ---------- padding shells ---------- */
.pad   { padding: 88px 110px; box-sizing: border-box; width: 100%; height: 100%; }
.pad.center { display: flex; flex-direction: column; justify-content: center; }
.pad.tight { padding: 72px 96px; }

/* ---------- chrome: eyebrow, logo, page number, footer ---------- */
.eyebrow { font-family: var(--font-sans); font-size: 15px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--periwinkle-600); }
.eyebrow.on-dark { color: rgba(255,255,255,0.82); }
.eyebrow.on-grad { color: rgba(255,255,255,0.92); }
.logo-bl { position: absolute; left: 110px; bottom: 64px; height: 28px; }
.logo-tr { position: absolute; right: 110px; top: 80px; height: 26px; opacity: .92; }
.page { position: absolute; right: 110px; bottom: 66px; font-size: 15px; font-weight: 700; color: var(--ink-400); }
.page.on-dark { color: rgba(255,255,255,0.5); }

/* ---------- typography ---------- */
.h1 { font-family: var(--font-display); font-weight: 700; font-size: 76px; line-height: 0.98;
  letter-spacing: -0.03em; margin: 0; }
.h2 { font-family: var(--font-display); font-weight: 600; font-size: 50px; line-height: 1.04;
  letter-spacing: -0.025em; color: var(--ink-900); margin: 0; }
.h3 { font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.1;
  letter-spacing: -0.015em; color: var(--ink-900); margin: 0; }
.lead { font-size: 22px; font-weight: 500; line-height: 1.5; color: var(--ink-600); margin: 0; }
.body { font-size: 18px; line-height: 1.5; color: var(--ink-700); margin: 0; }
.muted { color: var(--ink-500); }
.on-dark, .on-dark .h2, .on-dark .h3 { color: #fff; }
.on-dark .lead { color: var(--periwinkle-200); }
.on-dark .body { color: rgba(255,255,255,0.82); }
.accent { color: var(--orange-500); }
.rule { width: 96px; height: 4px; background: var(--orange-500); border-radius: 2px; margin: 30px 0 22px; }
.rule.sm { width: 64px; margin: 18px 0 24px; }
.divider { height: 1px; background: var(--gray-150); border: 0; margin: 24px 0; }

/* ---------- cover ---------- */
.cover-title { font-family: var(--font-display); font-weight: 700; font-size: 84px; line-height: 0.98;
  letter-spacing: -0.03em; color: var(--orange-500); max-width: 940px; margin: 24px 0 0; }
.cover-sub { font-size: 22px; font-weight: 500; color: var(--ink-600); margin: 22px 0 0; max-width: 760px; }

/* ---------- section divider ---------- */
.s-motif { position: absolute; inset: 0; width: 100%; height: 100%; }
.sec-copy { position: absolute; left: 110px; bottom: 92px; right: 110px; }
.sec-title { font-family: var(--font-display); font-weight: 700; font-size: 78px; letter-spacing: -0.02em;
  color: #fff; margin: 12px 0 0; line-height: 1; }
.sec-sub { color: rgba(255,255,255,0.9); font-size: 20px; font-weight: 500; margin: 16px 0 0; max-width: 720px; }

/* ---------- statement / big quote ---------- */
.statement { font-family: var(--font-display); font-weight: 600; font-size: 56px; line-height: 1.1;
  letter-spacing: -0.02em; max-width: 1000px; margin: 0; }
.statement .accent { color: var(--orange-500); }
.statement-sub { font-size: 20px; color: var(--ink-500); margin: 28px 0 0; }

/* ---------- agenda / index ---------- */
.ix-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 90px; margin-top: 46px; }
.ix-item { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--gray-150); }
.ix-num { font-family: var(--font-display); font-weight: 600; font-size: 22px; color: var(--periwinkle-500); width: 40px; flex: none; }
.ix-t { font-size: 20px; font-weight: 600; color: var(--ink-900); }
.ix-d { font-size: 14px; color: var(--ink-500); margin-top: 3px; }

/* ---------- points (bulleted) ---------- */
.pt { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.pt:last-child { margin-bottom: 0; }
.pt-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--orange-50); flex: none;
  display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.pt-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); }
.pt p { font-size: 18px; color: var(--ink-700); line-height: 1.45; margin: 0; }
.pt b { color: var(--ink-900); }
.on-dark .pt-dot { background: rgba(255,255,255,0.12); }
.on-dark .pt p { color: rgba(255,255,255,0.84); }
.on-dark .pt b { color: #fff; }

/* ---------- grids ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 72px; align-items: center; height: 100%; }
.split.even { grid-template-columns: 1fr 1fr; }
.col { display: flex; flex-direction: column; }

/* ---------- cards ---------- */
.card { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl);
  padding: 26px; box-shadow: var(--shadow-sm); }
.card.soft { background: var(--bg-canvas); box-shadow: none; }
.card.ink { background: var(--ink-900); color: #fff; border: none; position: relative; overflow: hidden; }
.card.grad { background: var(--gradient-brand); color: #fff; border: none; }
.card .c-h { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  color: var(--ink-900); margin: 14px 0 8px; }
.card.ink .c-h, .card.grad .c-h { color: #fff; }
.card .c-b { font-size: 15.5px; line-height: 1.5; color: var(--ink-600); margin: 0; }
.card.ink .c-b { color: var(--periwinkle-200); }
.card.grad .c-b { color: rgba(255,255,255,0.92); }
.card-ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--orange-50);
  display: flex; align-items: center; justify-content: center; }
.card-ic.peri { background: var(--periwinkle-50); }
.card.ink .card-ic, .card.grad .card-ic { background: rgba(255,255,255,0.14); }

/* ---------- metric / KPI tile ---------- */
.metric { background: #fff; border: 1px solid var(--border-subtle); border-radius: var(--radius-2xl);
  padding: 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 8px; }
.m-lab { font-size: 14px; font-weight: 600; color: var(--ink-500); }
.m-val { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1;
  letter-spacing: -0.03em; color: var(--ink-900); }
.m-val.grad { background: var(--gradient-brand-reverse); -webkit-background-clip: text; background-clip: text; color: transparent; }
.m-delta { font-size: 14px; font-weight: 700; color: var(--success-500); }
.m-delta.down { color: var(--danger-500); }
.m-sub { font-size: 13px; color: var(--ink-500); }

/* ---------- ink stat block (one hero number) ---------- */
.stat { background: var(--ink-900); border-radius: var(--radius-3xl); padding: 44px 42px;
  position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 80% at 100% 100%, rgba(255,132,49,0.5) 0%, rgba(255,132,49,0) 60%); }
.stat-big { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 100px;
  line-height: 1; letter-spacing: -0.04em; background: var(--gradient-brand-reverse);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-cap { position: relative; font-size: 20px; color: #fff; margin-top: 12px; font-weight: 500; }
.stat-sub { position: relative; font-size: 15px; color: var(--periwinkle-200); margin-top: 8px; }

/* ---------- big-number band (3-up hero stats) ---------- */
.band { display: grid; gap: 32px; align-items: start; }
.band .bn { font-family: var(--font-display); font-weight: 700; font-size: 72px; line-height: 1;
  letter-spacing: -0.03em; background: var(--gradient-brand-reverse);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.band .bl { font-size: 16px; color: var(--ink-600); line-height: 1.45; margin-top: 10px; }
.on-dark .band .bl { color: rgba(255,255,255,0.78); }

/* ---------- process steps ---------- */
.steps { display: grid; gap: 0; }
.step { position: relative; padding: 0 22px; }
.step:first-child { padding-left: 0; }
.step-rail { position: absolute; top: 19px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px;
  background: var(--border-default); }
.step-n { width: 40px; height: 40px; border-radius: var(--radius-md); position: relative; z-index: 1;
  background: var(--gradient-brand); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; box-shadow: var(--shadow-brand); }
.step-t { font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink-900); margin: 14px 0 6px; letter-spacing: -0.01em; }
.step-b { font-size: 14.5px; color: var(--ink-600); line-height: 1.45; }

/* ---------- comparison (them vs Alfred) ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.vs-col { border-radius: var(--radius-2xl); padding: 26px; }
.vs-them { background: var(--bg-canvas); border: 1px solid var(--border-subtle); }
.vs-alfred { background: var(--ink-900); color: #fff; position: relative; overflow: hidden; }
.vs-h { font-family: var(--font-sans); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-500); margin-bottom: 16px; }
.vs-alfred .vs-h { color: var(--periwinkle-200); }
.vs-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--gray-150); font-size: 16px; color: var(--ink-700); }
.vs-alfred .vs-row { border-top-color: rgba(255,255,255,0.12); color: rgba(255,255,255,0.88); }
.vs-row:first-of-type { border-top: none; }
.vs-mark { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-family: var(--font-sans); }
.tbl th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-500); padding: 14px 18px; border-bottom: 2px solid var(--gray-150); }
.tbl td { font-size: 16px; color: var(--ink-700); padding: 15px 18px; border-bottom: 1px solid var(--gray-150); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr td:first-child { font-weight: 700; color: var(--ink-900); }
.tbl .hl { background: var(--orange-50); }
.tbl .hl td:first-child { color: var(--orange-600); }

/* ---------- pills / tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; line-height: 1; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag.plain::before { display: none; }
.tag.orange { background: var(--orange-50); color: var(--orange-600); }
.tag.peri   { background: var(--periwinkle-50); color: var(--periwinkle-600); }
.tag.green  { background: var(--success-100); color: var(--success-500); }
.tag.amber  { background: var(--warning-100); color: var(--orange-600); }
.tag.red    { background: var(--danger-100); color: var(--danger-500); }
.tag.neutral{ background: var(--gray-100); color: var(--ink-600); }
.tag.on-dark{ background: rgba(255,255,255,0.14); color: #fff; }

/* ---------- quote / testimonial ---------- */
.quote-mark { font-family: var(--font-display); font-size: 96px; line-height: 0.6; color: var(--orange-500); }
.quote { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.22;
  letter-spacing: -0.02em; color: var(--ink-900); max-width: 940px; margin: 18px 0 0; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.byline .ava { width: 48px; height: 48px; border-radius: 50%; background: var(--gradient-brand); flex: none; }
.byline .nm { font-size: 17px; font-weight: 700; color: var(--ink-900); }
.byline .rl { font-size: 14px; color: var(--ink-500); }

/* ---------- timeline (horizontal) ---------- */
.timeline { display: grid; gap: 0; position: relative; margin-top: 14px; }
.tl { position: relative; padding: 0 20px; }
.tl-rail { position: absolute; top: 9px; left: 0; right: 0; height: 2px; background: var(--border-default); }
.tl-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--orange-500); position: relative; z-index: 1;
  box-shadow: 0 0 0 5px var(--orange-50); }
.tl-w { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--periwinkle-600); margin: 16px 0 6px; }
.tl-t { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink-900); margin-bottom: 6px; }
.tl-b { font-size: 14px; color: var(--ink-600); line-height: 1.45; }

/* ---------- progress bar ---------- */
.bar { height: 9px; background: var(--gray-100); border-radius: var(--radius-pill); overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-pill); background: var(--gradient-brand-reverse); }

/* ---------- key/value list ---------- */
.kv { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-top: 1px solid var(--gray-150); }
.kv:first-child { border-top: none; }
.kv .k { font-size: 16px; color: var(--ink-600); }
.kv .v { font-size: 16px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }

/* ---------- CTA / closing ---------- */
.cta-title { font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1.02;
  letter-spacing: -0.03em; color: #fff; max-width: 900px; margin: 0; }
.cta-sub { font-size: 20px; color: var(--periwinkle-200); margin: 22px 0 0; max-width: 640px; }
.cta-chip { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; padding: 14px 26px;
  background: var(--orange-500); color: #fff; border-radius: var(--radius-pill); font-weight: 700; font-size: 17px;
  box-shadow: var(--shadow-brand); }

/* ---------- icon (tinted via CSS mask; set --i to a url(...assets/icons/NAME.svg)) ---------- */
.ic { width: 22px; height: 22px; display: inline-block; background: var(--orange-500);
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ic.peri  { background: var(--periwinkle-500); }
.ic.white { background: #fff; }
.ic.ink   { background: var(--ink-700); }
.ic.lg { width: 26px; height: 26px; }

/* ---------- logo / integration wall ---------- */
.wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 36px; }
.wall .cell { height: 96px; border-radius: var(--radius-xl); border: 1px solid var(--border-subtle);
  background: #fff; display: flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 16px; color: var(--ink-700); box-shadow: var(--shadow-xs); }
.wall .cell .swatch { width: 30px; height: 30px; border-radius: var(--radius-sm); flex: none; }
