/* Digital OS: brand tokens + components. Single source of truth for the funnel.
   Standalone (no build step); loaded by index.html + kit.html. Forked in spirit
   from apps/marketing-site/css/brand.css but its own identity: darker, bolder,
   "operator / freedom" energy for a 17-to-mid-30s builder audience. */

:root {
  /* palette */
  --ink: #0E0F14;          /* near-black */
  --ink-2: #1A1C24;
  --paper: #FBFAF7;        /* warm off-white */
  --paper-2: #F2F1EC;
  --card: #FFFFFF;
  --line: #E6E4DD;
  --muted: #6B7280;
  --muted-2: #6B7280;   /* WCAG AA safe (>=4.5:1 on paper); was #9AA0AA which failed */

  --accent: #5A4BFF;       /* electric indigo: primary */
  --accent-600: #4536E0;
  --accent-soft: #EEEBFF;
  --amber: #FFB020;        /* energy highlight */
  --good: #12B76A;

  /* type */
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* rhythm */
  --wrap: 1080px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(14,15,20,.05), 0 18px 40px rgba(14,15,20,.06);
  --shadow-lg: 0 30px 70px rgba(14,15,20,.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
a { color: var(--accent-600); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---- utility ---- */
.eyebrow { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-600); margin-bottom: 14px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 16px; padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 26px rgba(90,75,255,.32); }
.btn-primary:hover { background: var(--accent-600); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-lg { font-size: 17px; padding: 17px 32px; }

/* ---- pills / chips ---- */
.pill { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-600); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }

/* ---- cards ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 26px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 96px 0 64px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto -10%; height: 520px; background: radial-gradient(60% 60% at 30% 20%, rgba(90,75,255,.16), transparent 70%), radial-gradient(50% 50% at 85% 10%, rgba(255,176,32,.14), transparent 70%); z-index: 0; }
.hero > .wrap { position: relative; z-index: 1; }
.h-title { font-size: clamp(38px, 6vw, 68px); }
.h-sub { font-size: clamp(17px, 2.3vw, 21px); color: var(--muted); max-width: 620px; }

/* gradient text accent: kept in the indigo/violet range so every glyph stays
   >=3:1 on the paper background (large text). -webkit-text-fill-color makes the
   clip reliable across WebKit/Safari builds. */
.grad { background: linear-gradient(100deg, var(--accent) 0%, #7C4DFF 60%, #6A3DF0 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---- opt-in form ---- */
.optin { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
.optin input { flex: 1 1 220px; font-family: var(--sans); font-size: 16px; padding: 15px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .12s, box-shadow .12s; }
.optin input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(90,75,255,.14); }
.optin .btn { flex: 0 0 auto; }
.form-note { font-size: 13px; color: var(--muted-2); margin-top: 12px; }
.form-err { color: #DC2626; font-size: 14px; min-height: 1em; margin-top: 10px; font-weight: 600; }

/* ---- section ---- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink h2, .section-ink h3 { color: #fff; }
.section-ink .muted { color: #A7ADB8; }
.section-ink .form-err { color: #F87171; }  /* AA-safe error text on the dark CTA sections */
.s-head { max-width: 640px; margin-bottom: 40px; }
.s-title { font-size: clamp(28px, 4vw, 42px); }

/* ---- feature grid ---- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feat { padding: 24px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }
.feat .num { font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--accent-600); background: var(--accent-soft); width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.feat h3 { font-size: 19px; }
.feat p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- founders row ---- */
.founders { display: flex; gap: 16px; flex-wrap: wrap; }
.founder { flex: 1 1 260px; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); }
/* (founder avatars use .slot.slot-round photo placeholders; the old .av gradient rule was removed) */

/* ---- steps / phases ---- */
.phases { counter-reset: ph; }
.phase { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.phase:last-child { border-bottom: 0; }
.phase .n { font-family: var(--display); font-weight: 700; color: var(--accent-600); font-size: 15px; width: 30px; flex: 0 0 auto; }
.phase h3 { font-size: 18px; margin-bottom: 4px; }
.phase p { font-size: 15px; color: var(--muted); margin: 0; }

/* ================= KIT (gated experience) ================= */
.kit-top { background: var(--ink); color: #fff; padding: 12px 0; position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(255,255,255,.08); }
.kit-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kit-shell { display: grid; grid-template-columns: 260px 1fr; gap: 40px; max-width: 1160px; margin: 0 auto; padding: 34px 22px 100px; }
.kit-nav { position: sticky; top: 78px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; }
.kit-nav a { display: block; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.kit-nav a:hover { background: var(--paper-2); color: var(--ink); }
.kit-nav a.active { background: var(--accent-soft); color: var(--accent-600); font-weight: 600; }
.kit-nav .grp { font-family: var(--display); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-2); padding: 14px 12px 6px; }

.kit-body { min-width: 0; }
.kit-sec { padding: 22px 0 44px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.kit-sec:last-child { border-bottom: 0; }
.kit-sec > .pill { margin-bottom: 16px; }
.kit-sec h2 { font-size: clamp(26px, 3.6vw, 36px); }
.kit-sec h3 { font-size: 20px; margin-top: 28px; }
.kit-sec p, .kit-sec li { font-size: 16px; }
.kit-sec ul, .kit-sec ol { padding-left: 22px; margin: 0 0 1em; }
.kit-sec li { margin: 6px 0; }
.kit-sec li::marker { color: var(--accent); }

.callout { background: var(--accent-soft); border: 1px solid #DAD4FF; border-radius: var(--radius-sm); padding: 18px 20px; margin: 20px 0; }
.callout .lab { font-family: var(--display); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-600); margin-bottom: 6px; }
.callout p:last-child { margin: 0; }

.prompt { background: var(--ink); color: #E6E4DD; border-radius: var(--radius-sm); padding: 16px 18px; margin: 16px 0; font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; overflow-x: auto; }
.prompt .lab { display: block; font-family: var(--display); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin-bottom: 8px; }

.tbl { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font-family: var(--display); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.check li { list-style: none; position: relative; padding-left: 30px; }
.check li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 700; }
.check { padding-left: 0 !important; }

/* ---- footer ---- */
.foot { padding: 44px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot a { color: var(--muted); }
.brandmark { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; font-size: 18px; color: var(--ink); }
.brandmark .dot { color: var(--accent); }
.kit-top .brandmark { color: #fff; }

/* ---- responsive ---- */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .kit-shell { grid-template-columns: 1fr; gap: 0; }
  /* On mobile the section nav becomes a sticky horizontal chip bar instead of hiding */
  .kit-nav { position: sticky; top: 54px; z-index: 30; max-height: none; margin: 0 -22px 14px; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; }
  .kit-nav .grp { display: none; }
  .kit-nav a { display: inline-block; padding: 7px 12px; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 48px; }
  .section { padding: 52px 0; }
  .optin .btn { width: 100%; }
}

/* ================= MEDIA PLACEHOLDER SLOTS (fill with photo/video later) ===== */
.slot { border: 2px dashed #C9C6E8; border-radius: var(--radius); background: repeating-linear-gradient(45deg,#F7F6FF,#F7F6FF 14px,#F1EFFF 14px,#F1EFFF 28px); display:flex; align-items:center; justify-content:center; text-align:center; color:var(--accent-600); position:relative; overflow:hidden; }
.slot .slot-in { padding:22px; }
.slot .slot-ico { font-size:30px; display:block; margin-bottom:8px; opacity:.75; }
.slot .slot-lab { font-family:var(--display); font-weight:600; font-size:14px; }
.slot .slot-sub { font-size:12px; color:var(--muted); margin-top:4px; }
.slot-16x9 { aspect-ratio:16/9; width:100%; min-height:180px; }
.slot-1x1 { aspect-ratio:1/1; width:100%; }
.slot-4x5 { aspect-ratio:4/5; width:100%; min-height:260px; }
.slot-round { border-radius:999px; aspect-ratio:1/1; }
.play { width:58px; height:58px; border-radius:999px; background:rgba(90,75,255,.16); display:flex; align-items:center; justify-content:center; margin:0 auto 10px; }
.play::before { content:''; border-style:solid; border-width:9px 0 9px 15px; border-color:transparent transparent transparent var(--accent-600); margin-left:3px; }

/* ================= PROOF / RESULTS ================= */
.proof-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.proof-card { border:1px solid var(--line); border-radius:var(--radius-sm); background:var(--card); padding:20px; min-height:160px; display:flex; flex-direction:column; gap:12px; }
.proof-card .who { display:flex; align-items:center; gap:10px; margin-top:auto; }
.proof-card .who .slot-round { width:40px; height:40px; flex:0 0 auto; }

/* ================= SALES PAGE ================= */
.vsl-wrap { max-width:820px; margin:0 auto; }
.badge { display:inline-flex; align-items:center; gap:8px; font-family:var(--display); font-weight:600; font-size:13px; padding:7px 14px; border-radius:999px; background:rgba(255,176,32,.16); color:#8A5D00; }
.price-box { border:1px solid var(--line); border-radius:var(--radius); background:var(--card); box-shadow:var(--shadow-lg); padding:30px; text-align:center; max-width:460px; margin:0 auto; }
.price { font-family:var(--display); font-weight:700; font-size:46px; line-height:1; letter-spacing:-0.02em; }
.price .cur { font-size:22px; vertical-align:super; }
.price .old { font-size:20px; color:var(--muted-2); text-decoration:line-through; font-weight:500; margin-left:8px; }
.price-sub { color:var(--muted); font-size:14px; margin-top:8px; }
.stack-list { text-align:left; max-width:580px; margin:0 auto; }
.stack-item { display:flex; align-items:flex-start; gap:12px; padding:15px 0; border-bottom:1px solid var(--line); }
.stack-item:last-child { border-bottom:0; }
.stack-item .ic { width:30px; height:30px; border-radius:8px; background:var(--accent-soft); color:var(--accent-600); display:flex; align-items:center; justify-content:center; flex:0 0 auto; font-weight:700; font-size:14px; }
.stack-item .txt strong { display:block; }
.stack-item .txt span { color:var(--muted); font-size:14px; }
.stack-item .val { margin-left:auto; color:var(--muted); font-size:14px; white-space:nowrap; padding-left:10px; }
.faq-item { border-bottom:1px solid var(--line); padding:18px 0; }
.faq-item:last-child { border-bottom:0; }
.faq-item h3 { font-size:17px; margin-bottom:6px; }
.faq-item p { margin:0; color:var(--muted); font-size:15px; }
.guarantee { border:1px solid #DAD4FF; background:var(--accent-soft); border-radius:var(--radius); padding:28px; text-align:center; max-width:660px; margin:0 auto; }
.steps-row { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
.step-box { text-align:center; padding:16px; }
.step-box .n { width:36px; height:36px; border-radius:999px; background:var(--accent); color:#fff; font-family:var(--display); font-weight:700; display:flex; align-items:center; justify-content:center; margin:0 auto 10px; }
.step-box h3 { font-size:16px; margin-bottom:4px; }
.step-box p { font-size:14px; color:var(--muted); margin:0; }

/* proof-grid tablet rule lives here (after the base .proof-grid above) so source order lets it win */
@media (max-width:900px){ .proof-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:820px){ .steps-row{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .proof-grid{ grid-template-columns:1fr; } .steps-row{ grid-template-columns:1fr; } .price{ font-size:38px; } .stack-item .val{ display:none; } }

/* ================= PROSE (privacy / legal / long-form text) ================= */
.prose-lesson { color: var(--ink); }
.prose-lesson h2 { font-size:22px; margin:28px 0 10px; }
.prose-lesson h3 { font-size:18px; margin:22px 0 8px; }
.prose-lesson p { margin:0 0 14px; color:rgb(30 41 59); }
.prose-lesson ul, .prose-lesson ol { margin:0 0 14px; padding-left:22px; }
.prose-lesson li { margin:6px 0; }
.prose-lesson li::marker { color:var(--accent); }
.prose-lesson strong { color:var(--ink); font-weight:700; }
.prose-lesson a { color:var(--accent-600); text-decoration:underline; }

/* Long unbroken strings (a pasted URL, a REVISE fill-in) can never push page width */
.kit-sec p, .kit-sec li, .prose-lesson p, .prose-lesson li, .stack-item .txt, .faq-item p { overflow-wrap: break-word; }
/* Visually-hidden helper (skip links) that becomes visible on focus */
.sr-skip { position:absolute; left:-9999px; top:0; z-index:100; background:var(--accent); color:#fff; padding:10px 16px; border-radius:0 0 10px 0; font-weight:600; }
.sr-skip:focus { left:0; }
