/* ===========================================================================
   Zero Capital Startup — SITE STYLES
   Mobile-first. All colors/fonts/shape come from tokens.css. Component styles
   below; media queries at min-width to scale up.
   =========================================================================== */

/* ---- Reset / base ---- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; color: var(--ink); letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 2px; border-radius: 4px; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.band { background: var(--paper-2); }
.band-dark { background: var(--dark); color: var(--dark-ink); }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 700;
  font-size: 12.5px; color: var(--brass-2);
}
.band-dark .eyebrow { color: var(--brass); }
.section-head { max-width: 640px; margin-bottom: clamp(28px,5vw,52px); }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(28px, 5vw, 42px); margin-block: 10px 14px; }
.section-head p { color: var(--ink-2); font-size: clamp(16px,2.4vw,19px); }
.band-dark .section-head p { color: var(--dark-ink-2); }
.zcs-ic { width: 24px; height: 24px; flex: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-sans); font-weight: 700; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  text-align: center; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); color: var(--ink); border-color: var(--ink-3); }
.band-dark .btn-ghost, .zcs-hero .btn-ghost { color: var(--dark-ink); border-color: var(--dark-line); }
.band-dark .btn-ghost:hover, .zcs-hero .btn-ghost:hover { background: rgba(255,255,255,.06); color:#fff; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn .zcs-ic { width: 19px; height: 19px; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.on-dark { background: color-mix(in srgb, var(--dark) 82%, transparent); border-bottom-color: var(--dark-line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.on-dark .brand { color: #fff; }
.brand b { color: var(--accent); font-weight: 700; }
.on-dark .brand b { color: #6fd6b6; }
.brand .zero { color: var(--brass); }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.on-dark .nav-links a { color: var(--dark-ink-2); }
.on-dark .nav-links a:hover { color: #fff; }
.nav-actions { display: none; align-items: center; gap: 12px; }
.nav-toggle { display: inline-flex; background: none; border: 1.5px solid var(--line-2); border-radius: 10px; padding: 8px; color: var(--ink); cursor: pointer; }
.on-dark .nav-toggle { color: var(--dark-ink); border-color: var(--dark-line); }
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 14px var(--pad-x) 22px; background: var(--paper); }
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 12px 4px; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; }
@media (min-width: 860px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- Hero ---- */
.zcs-hero { position: relative; background: linear-gradient(165deg, #14232f 0%, #0d1922 60%, #0b1620 100%); color: var(--dark-ink); overflow: hidden; }
.zcs-hero::before { /* subtle blueprint grid */
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(var(--dark-line) 1px, transparent 1px), linear-gradient(90deg, var(--dark-line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: .18; mask-image: radial-gradient(120% 80% at 80% 0%, #000 20%, transparent 72%);
}
.zcs-hero::after { content:""; position:absolute; top:-20%; right:-10%; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(45,124,100,.30), transparent 62%); filter: blur(10px); }
.hero-inner { position: relative; z-index: 1; padding-block: clamp(52px, 9vw, 96px); display: grid; gap: 30px; }
.hero-copy { max-width: 660px; }
.hero-copy h1 { color: #fff; font-size: clamp(34px, 7vw, 62px); line-height: 1.03; }
.hero-copy h1 .hl { color: #7bdcbc; }
.hero-sub { color: var(--dark-ink-2); font-size: clamp(17px, 2.6vw, 21px); margin-top: 20px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.hero-cta .cta-note { color: var(--dark-ink-2); font-size: 14px; }
.hero-strip { position: relative; z-index:1; border-top: 1px solid var(--dark-line); }
.hero-strip .wrap { display: flex; align-items: center; gap: 14px; padding-block: 20px; color: var(--dark-ink-2); font-size: 15px; }
.hero-strip .zcs-ic { color: var(--brass); }

/* ---- Promise ---- */
.promise-quote { font-family: var(--font-display); font-size: clamp(24px, 4.4vw, 38px); line-height: 1.22; color: var(--ink); font-weight: 500; }
.promise-quote .mark { color: var(--brass); }
.promise-body { margin-top: 22px; color: var(--ink-2); font-size: clamp(16px,2.3vw,19px); max-width: var(--maxw-prose); }

/* ---- Generic grid + cards ---- */
.grid { display: grid; gap: clamp(16px, 3vw, 24px); }
@media (min-width: 620px){ .grid.cols-2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 720px){ .grid.cols-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 900px){ .grid.cols-4 { grid-template-columns: repeat(4,1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px,3vw,30px); box-shadow: var(--shadow-sm); }
.card-ic { display:inline-flex; align-items:center; justify-content:center; width:52px; height:52px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); margin-bottom: 18px; }
.card-ic .zcs-ic { width: 26px; height: 26px; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p { color: var(--ink-2); font-size: 15.5px; }

/* ---- Audience list ---- */
.aud-list { display: grid; gap: 16px; }
.aud-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.aud-item .card-ic { margin: 0; width: 46px; height: 46px; }
.aud-item p { color: var(--ink); font-weight: 500; }

/* ---- Ladder (the 5 stages) ---- */
.ladder { display: grid; gap: 16px; counter-reset: rung; }
.rung { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.rung:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.rung-num { font-family: var(--font-display); font-size: 30px; color: var(--brass); font-weight: 600; line-height: 1; }
.rung-ic { display:inline-flex; color: var(--accent); }
.rung-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.rung-head h3 { font-size: 21px; }
.rung-window { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-ink); background: var(--accent-tint); padding: 4px 10px; border-radius: 999px; }
.rung p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }
@media (min-width: 760px){ .rung { grid-template-columns: 64px auto 1fr; align-items: center; } .rung .rung-body { grid-column: 3; } }

/* ---- Rules strip (dark pull-quotes) ---- */
.rules { display: grid; gap: 14px; }
@media (min-width: 720px){ .rules { grid-template-columns: 1fr 1fr; } }
.rule { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--dark-line); border-radius: var(--radius); padding: 20px 22px; background: rgba(255,255,255,.02); }
.rule .zcs-ic { color: #7bdcbc; margin-top: 2px; }
.rule p { font-family: var(--font-display); font-size: 18.5px; line-height: 1.3; color: #fff; font-weight: 500; }

/* ---- FAQ ---- */
.faq { max-width: var(--maxw-prose); margin-inline: auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 26px; color: var(--brass); line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { content: "–"; }
.faq p { padding: 0 0 20px; color: var(--ink-2); }

/* ---- Final CTA ---- */
.final-cta { text-align: center; }
.final-cta .card { background: linear-gradient(160deg, #1b4f41, #163f34); border: 0; color: #eef8f3; max-width: 780px; margin-inline: auto; padding: clamp(34px,6vw,60px); }
.final-cta h2 { color: #fff; font-size: clamp(26px,4.6vw,40px); }
.final-cta p { color: #cfe6dc; margin: 14px auto 26px; max-width: 520px; }

/* ---- Footer ---- */
.site-footer { background: var(--dark-2); color: var(--dark-ink-2); }
.footer-inner { display: grid; gap: 28px; padding-block: clamp(40px,7vw,64px); }
.footer-brand { font-family: var(--font-display); font-size: 22px; color: #fff; }
.footer-brand .zero { color: var(--brass); } .footer-brand b { color: #6fd6b6; }
.footer-cols { display: grid; gap: 24px; }
@media (min-width: 680px){ .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-cols h4 { color: var(--dark-ink); font-family: var(--font-sans); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.footer-cols a { display: block; color: var(--dark-ink-2); padding: 5px 0; font-size: 15px; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--dark-line); padding-block: 20px; display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; color: var(--dark-ink-2); font-size: 13.5px; }

/* ---- Flash messages ---- */
.flash { display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-weight: 600; font-size: 15px; }
.flash-info    { background: var(--accent-tint); color: var(--accent-ink); border: 1px solid #bfe0d3; }
.flash-error   { background: #f8e2dc; color: #7d2e1c; border: 1px solid #eec4b8; }
.flash-success { background: var(--accent-tint); color: var(--accent-ink); border: 1px solid #bfe0d3; }

/* ---- Auth pages ---- */
.auth-shell { min-height: calc(100vh - 64px); display: grid; }
@media (min-width: 940px){ .auth-shell { grid-template-columns: 1.05fr .95fr; } }
.auth-aside { display: none; background: linear-gradient(165deg,#14232f,#0d1922); color: var(--dark-ink); padding: clamp(40px,5vw,64px); position: relative; }
.auth-aside::before { content:""; position:absolute; inset:0; background-image:linear-gradient(var(--dark-line) 1px,transparent 1px),linear-gradient(90deg,var(--dark-line) 1px,transparent 1px); background-size:44px 44px; opacity:.16; mask-image:radial-gradient(100% 60% at 70% 10%,#000,transparent 75%);}
@media (min-width: 940px){ .auth-aside { display: flex; flex-direction: column; justify-content: center; } }
.auth-aside .a-inner { position: relative; z-index: 1; max-width: 420px; }
.auth-aside h2 { color:#fff; font-size: clamp(28px,3vw,40px); }
.auth-aside p { color: var(--dark-ink-2); margin-top: 16px; font-size: 18px; }
.auth-aside .a-points { margin-top: 28px; display: grid; gap: 14px; }
.auth-aside .a-points div { display:flex; gap:12px; align-items:center; color:#dceae3; font-weight:500; }
.auth-aside .a-points .zcs-ic { color:#7bdcbc; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(34px,6vw,64px) var(--pad-x); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card > .eyebrow { display:block; margin-bottom: 8px; }
.auth-card h1 { font-size: clamp(26px,4vw,34px); margin-bottom: 8px; }
.auth-card .sub { color: var(--ink-2); margin-bottom: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 7px; color: var(--ink); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 15px;
  border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.field .hint { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.row-2 { display: grid; gap: 16px; }
@media (min-width: 520px){ .row-2 { grid-template-columns: 1fr 1fr; } }
.auth-alt { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: 15px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- App shell (dashboard + lesson) ---- */
.app-hero { background: var(--dark); color: var(--dark-ink); padding-block: clamp(30px,5vw,46px); }
.app-hero .eyebrow { color: var(--brass); }
.app-hero h1 { color:#fff; font-size: clamp(26px,4vw,38px); margin-top: 8px; }
.app-hero p { color: var(--dark-ink-2); margin-top: 8px; }
.progress { margin-top: 22px; max-width: 520px; }
.progress-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg,#2a7c64,#6fd6b6); transition: width .5s ease; }
.progress-meta { display:flex; justify-content: space-between; margin-top: 10px; font-size: 14px; color: var(--dark-ink-2); }
.progress-meta b { color:#fff; }

.module { margin-top: clamp(26px,4vw,42px); }
.module-title { display:flex; align-items:center; gap: 12px; font-size: 14px; text-transform: uppercase; letter-spacing:.12em; color: var(--brass-2); font-weight: 700; font-family: var(--font-sans); margin-bottom: 14px; }
.module-title::after { content:""; flex:1; height:1px; background: var(--line-2); }
.lesson-list { display: grid; gap: 12px; }
.lesson-row { display:flex; align-items:center; gap: 16px; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .2s ease, border-color .2s; color: var(--ink); }
.lesson-row:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--ink); }
.lesson-check { flex:none; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); display:inline-flex; align-items:center; justify-content:center; color: transparent; }
.lesson-row.done .lesson-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.lesson-check .zcs-ic { width: 17px; height: 17px; }
.lesson-row .l-body { flex: 1; min-width: 0; }
.lesson-row .l-body h3 { font-size: 17px; }
.lesson-row .l-body p { font-size: 14px; color: var(--ink-3); margin-top: 2px; }
.lesson-row .l-meta { flex:none; display:flex; align-items:center; gap: 6px; color: var(--ink-3); font-size: 13px; font-weight:600; }
.lesson-row .l-meta .zcs-ic { width: 15px; height: 15px; }

/* ---- Lesson player ---- */
.lesson-layout { display: grid; gap: 30px; padding-block: clamp(24px,4vw,44px); }
@media (min-width: 940px){ .lesson-layout { grid-template-columns: 260px 1fr; align-items: start; } }
.lesson-rail { position: sticky; top: 80px; background: var(--surface); border:1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm); display: none; }
@media (min-width: 940px){ .lesson-rail { display: block; } }
.lesson-rail h4 { font-family: var(--font-sans); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--brass-2); margin-bottom: 10px; }
.rail-link { display:flex; gap: 10px; align-items:center; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); font-size: 14.5px; font-weight: 600; }
.rail-link:hover { background: var(--paper-2); color: var(--ink); }
.rail-link.active { background: var(--accent-tint); color: var(--accent-ink); }
.rail-link .dot { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--line-2); flex:none; }
.rail-link.done .dot { background: var(--accent); border-color: var(--accent); }
.lesson-main { min-width: 0; }
.lesson-crumb { color: var(--ink-3); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.lesson-main h1 { font-size: clamp(28px,5vw,44px); margin: 8px 0 10px; }
.lesson-lead { color: var(--ink-2); font-size: 19px; margin-bottom: 6px; }
.lesson-time { display:inline-flex; gap:6px; align-items:center; color: var(--ink-3); font-size: 14px; font-weight:600; margin-bottom: 26px; }
.lesson-time .zcs-ic { width:16px; height:16px; }

/* ---- Prose (lesson body typography) ---- */
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: 20px; }
.prose p, .prose li { font-size: 17.5px; color: var(--ink-2); line-height: 1.72; }
.prose h2 { font-size: clamp(23px,3.4vw,30px); margin-top: 40px; }
.prose h3 { font-size: 20px; margin-top: 30px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 24px; display: grid; gap: 8px; }
.prose li::marker { color: var(--brass); }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote { border-left: 4px solid var(--brass); background: var(--brass-tint); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 20px; color: var(--ink); font-style: normal; }
.prose .callout { background: var(--accent-tint); border: 1px solid #c6e2d6; border-radius: var(--radius); padding: 18px 22px; }
.prose .callout p, .prose .callout li { color: var(--accent-ink); }
.prose .callout strong { color: var(--accent-ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 34px; }

/* ---- Lesson footer nav + complete ---- */
.lesson-foot { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); display: grid; gap: 18px; }
.complete-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow-sm); }
.complete-bar.is-done { background: var(--accent-tint); border-color: #bfe0d3; }
.complete-bar .cb-label { font-weight: 700; display:flex; align-items:center; gap:10px; }
.complete-bar .cb-label .zcs-ic { color: var(--accent); }
.lesson-nav { display: flex; justify-content: space-between; gap: 14px; }
.lesson-nav a { display:flex; flex-direction: column; gap: 3px; padding: 14px 18px; border:1px solid var(--line); border-radius: var(--radius); background: var(--surface); flex: 1; box-shadow: var(--shadow-sm); }
.lesson-nav a:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.lesson-nav .ln-dir { font-size: 12px; text-transform: uppercase; letter-spacing:.1em; color: var(--ink-3); font-weight: 700; }
.lesson-nav .ln-title { color: var(--ink); font-weight: 700; font-size: 15px; }
.lesson-nav .next { text-align: right; }
.lesson-nav .spacer { flex: 1; border: 0; background: none; box-shadow: none; pointer-events: none; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal { opacity:1; transform:none; transition:none; } html{scroll-behavior:auto;} }

/* ---- Utility ---- */
.mt-s{margin-top:10px;} .mt-m{margin-top:22px;} .muted{color:var(--ink-3);}
.pill { display:inline-flex; align-items:center; gap:7px; background: var(--brass-tint); color: var(--brass-2); font-weight:700; font-size:13px; padding:6px 12px; border-radius:999px; }
