/* ten — resources / lead-magnet layer
 * Extends v2.css (loaded first). Everything here is scoped to the resources
 * tab: the hub, the two guides, the audience calculator, the 24h-prototype
 * request, and the live code-audit tool. Same DNA as v2: warm white ground,
 * near-black text, one saturated accent (indigo → violet), Charter serif body,
 * Helvetica display. Color only ever appears inside contained rounded surfaces.
 */

/* ------------------------------------------------------------------ tokens */
:root {
  --accent: #6A53CE;
  --accent-2: #5B6FE0;
  --accent-grad: linear-gradient(120deg, #4452CE 0%, #6A53CE 55%, #8A66D6 100%);
  --good: #2E9E6B;
  --warn: #D98A3D;
  --crit: #D9534F;
  --r-tool: 18px;
}

/* The ambient .mglow decorative blooms are wider than the viewport and sit at
 * negative offsets, so on narrow screens their right edge pushes the page past
 * 100vw. The home page tolerates this because its glows bleed intentionally; on
 * the resources pages we clip horizontal overflow so the body never scrolls
 * sideways (playbook Appendix A). overflow-x: clip keeps position: sticky working
 * (unlike overflow: hidden, which would break the checklist progress bar). */
body.home { overflow-x: clip; }
.band { overflow-x: clip; }

/* the accent pill CTA (deeper cut of the hero glow; white text passes AA) */
.btn--accent {
  color: #FFFFFF;
  background: var(--accent-grad);
  box-shadow: 0 10px 26px -12px rgba(96, 82, 210, 0.55);
}
.btn--accent:hover, .btn--accent:focus-visible {
  background: linear-gradient(120deg, #3B49C4 0%, #5F49C6 55%, #7E5ACE 100%);
  box-shadow: 0 14px 30px -12px rgba(96, 82, 210, 0.65);
  color: #FFFFFF; transform: translateY(-1px);
}

/* a generic tinted lane tag ("For creators monetizing…" / "For creators building…") */
.lane-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 999px; margin: 0 0 22px;
}
.lane-tag i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.lane-tag--t1 { color: #4260C2; background: rgba(110,134,228,0.12); border: 1px solid rgba(110,134,228,0.26); }
.lane-tag--t3 { color: #7350B8; background: rgba(158,107,216,0.12); border: 1px solid rgba(158,107,216,0.26); }

/* a short back-to link at the top of each tool page */
.res-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.86rem;
  color: var(--mute); text-decoration: none; margin: 0 0 28px;
  transition: color 140ms var(--ease);
}
.res-back:hover, .res-back:focus-visible { color: var(--ink); }
.res-back .arw { transition: transform 140ms var(--ease); }
.res-back:hover .arw { transform: translateX(-3px); }

/* first band on a tool/guide page needs to clear the fixed nav. It also must NOT
 * inherit the home page's full-height vertical centering — content starts at the
 * top and flows naturally, so tools and guides are readable immediately. */
.band--top {
  padding-top: clamp(112px, 14vh, 156px);
  min-height: auto;
  display: block;
}

/* ============================================================ HUB (index) */
/* The hub stacks a hero + two lane sections. Unlike the home page, these should
 * NOT each be a full 100vh screen — the magnet cards are the point and must be
 * reachable fast. Collapse the bands to natural height with generous padding. */
#res-top { min-height: auto; padding-bottom: 0; }
#lane-monetize, #lane-build { min-height: auto; padding-top: clamp(20px, 4vw, 40px); padding-bottom: clamp(40px, 6vw, 72px); display: block; }
#lane-build { padding-bottom: clamp(64px, 9vw, 120px); }

.res-hero { text-align: left; }
.res-hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.3rem, 4.4vw, 3.7rem); letter-spacing: -0.02em; line-height: 1.08;
  /* ~32ch keeps the ~58-char headline to two balanced lines at every width
   * (instead of a fragile forced <br> that produced 3 lines on wide/zoomed
   * screens). text-wrap:balance evens the two lines. */
  max-width: 32ch; text-wrap: balance; margin: 0;
}
.res-hero h1 .it { font-style: italic; }
.res-hero h1 .grad {
  font-style: italic;
  background: linear-gradient(96deg, #5B6FE0 0%, #6A53CE 45%, #9E6BD8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.res-hero-sub {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 1.8vw, 1.34rem);
  line-height: 1.55; color: var(--ink); max-width: 56ch; margin: 26px 0 0;
}

/* lane heading that introduces each group of magnets */
.lane-head { margin: 0 0 6px; }
.lane-head h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -0.02em; line-height: 1.14; margin: 0;
}
.lane-head h2 .it { font-style: italic; }
.lane-sub {
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--mute); margin: 10px 0 0; max-width: 60ch;
}
.lane-block { margin-top: clamp(48px, 7vw, 84px); }
.lane-block:first-of-type { margin-top: clamp(40px, 6vw, 64px); }

/* the magnet cards grid */
.magnet-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px;
}
@media (max-width: 900px) { .magnet-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .magnet-grid { grid-template-columns: 1fr; } }

.magnet {
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 26px 24px 24px; text-decoration: none;
  background: #FFFFFF; border: 1px solid var(--rule); border-radius: var(--r-card);
  box-shadow: 0 24px 44px -34px rgba(40, 36, 70, 0.4);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease);
}
.magnet:hover, .magnet:focus-visible {
  transform: translateY(-4px); border-color: #E0DAF0;
  box-shadow: 0 34px 56px -30px rgba(70, 58, 160, 0.34);
}
.magnet-glow {
  position: absolute; top: -70px; right: -60px; width: 190px; height: 190px;
  border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle at 50% 50%, var(--c1, #B9A8F0) 0%, var(--c2, #7E96E8) 46%, transparent 72%);
  opacity: 0.34; filter: blur(16px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.magnet:hover .magnet-glow { opacity: 0.5; transform: scale(1.12); }
.magnet > *:not(.magnet-glow) { position: relative; z-index: 1; }

.magnet-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  color: #FFFFFF; background: var(--accent-grad); margin-bottom: 18px;
  box-shadow: 0 10px 22px -12px rgba(106,83,206,0.7);
}
.magnet-ico svg { width: 23px; height: 23px; }
.magnet-kind {
  font-family: var(--font-display); font-weight: 500; font-size: 0.64rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0 0 8px;
}
.magnet h3 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 1.34rem; letter-spacing: -0.014em; line-height: 1.2; color: var(--ink); margin: 0;
}
.magnet p {
  font-family: var(--font-body); font-size: 0.99rem; line-height: 1.5;
  color: #3B3D42; margin: 10px 0 0;
}
.magnet-cta {
  margin-top: auto; padding-top: 18px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.magnet-cta .arw { transition: transform 160ms var(--ease); }
.magnet:hover .magnet-cta .arw { transform: translateX(4px); }
.magnet-live {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-display); font-weight: 500; font-size: 0.62rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--good);
  padding: 4px 10px; border-radius: 999px; background: rgba(46,158,107,0.1);
  border: 1px solid rgba(46,158,107,0.24); margin-bottom: 14px;
}
.magnet-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(46,158,107,0.18); }

/* ===================================================== TOOL PAGE SCAFFOLD */
.tool-head { max-width: 46ch; }
.tool-head h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.08; margin: 0;
}
.tool-head h1 .it { font-style: italic; }
.tool-head .grad {
  font-style: italic;
  background: linear-gradient(96deg, #5B6FE0 0%, #6A53CE 45%, #9E6BD8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tool-sub {
  font-family: var(--font-serif); font-size: clamp(1.08rem, 1.7vw, 1.28rem);
  line-height: 1.55; color: var(--ink); margin: 22px 0 0; max-width: 58ch;
}
.tool-sub em { font-style: italic; }

/* a self-contained white panel that holds a tool's UI */
.tool-panel {
  margin-top: clamp(34px, 5vw, 52px);
  background: #FFFFFF; border: 1px solid var(--rule); border-radius: var(--r-panel);
  box-shadow: 0 40px 90px -50px rgba(40, 36, 70, 0.5);
  overflow: hidden;
}
.tool-panel-pad { padding: clamp(24px, 4vw, 40px); }

/* generic labeled field (light surface, unlike the dark contact-card fields) */
.rfield { margin: 0 0 18px; }
.rfield:last-child { margin-bottom: 0; }
.rfield label {
  display: block; font-family: var(--font-display); font-weight: 500; font-size: 0.82rem;
  letter-spacing: 0.01em; color: var(--ink); margin: 0 0 8px;
}
.rfield .hint { font-family: var(--font-display); font-weight: 400; font-size: 0.74rem; color: var(--mute); margin-left: 8px; }
.rfield input, .rfield select, .rfield textarea {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  background: #FBFAF8; border: 1px solid var(--rule); border-radius: 12px;
  padding: 14px 16px; transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.rfield textarea { resize: vertical; min-height: 180px; font-family: var(--font-mono); font-size: 0.86rem; line-height: 1.5; }
.rfield input::placeholder, .rfield textarea::placeholder { color: #9A9DA3; }
.rfield input:hover, .rfield select:hover, .rfield textarea:hover { border-color: #CFC9DE; }
.rfield input:focus, .rfield select:focus, .rfield textarea:focus { outline: none; border-color: var(--accent); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(106,83,206,0.12); }
.rfield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .rfield-row { grid-template-columns: 1fr; } }

/* segmented control (used by the audit input-mode switch + calculator toggles) */
.seg {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--rule);
}
.seg button {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  font-family: var(--font-display); font-weight: 500; font-size: 0.86rem; color: var(--mute);
  padding: 9px 18px; border-radius: 999px; transition: color 140ms var(--ease), background 140ms var(--ease);
}
.seg button.is-on { color: var(--ink); background: #FFFFFF; box-shadow: 0 1px 2px rgba(17,18,19,0.1); }

/* ---------------------------------------------------- AUDIENCE CALCULATOR */
.calc-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; }
@media (max-width: 860px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-inputs { padding: clamp(24px, 4vw, 40px); border-right: 1px solid var(--rule); }
@media (max-width: 860px) { .calc-inputs { border-right: 0; border-bottom: 1px solid var(--rule); } }

/* a slider row: label + live value, then the range input */
.slider-row { margin: 0 0 26px; }
.slider-row:last-child { margin-bottom: 0; }
.slider-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.slider-head label { font-family: var(--font-display); font-weight: 500; font-size: 0.86rem; color: var(--ink); }
.slider-val { font-family: var(--font-body); font-weight: 500; font-size: 1.16rem; letter-spacing: -0.01em; color: var(--accent); }
input[type="range"].slider {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px;
  background: #E4E0F2; outline: none; cursor: pointer;
}
input[type="range"].slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #FFFFFF; border: 2px solid var(--accent); box-shadow: 0 2px 6px rgba(106,83,206,0.4); cursor: pointer;
}
input[type="range"].slider::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--accent);
  box-shadow: 0 2px 6px rgba(106,83,206,0.4); cursor: pointer;
}
.slider-scale { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-display); font-size: 0.68rem; color: #6E6A82; }

/* the result panel (right / bottom) */
.calc-result {
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, rgba(126,150,232,0.07), rgba(158,107,216,0.06));
  display: flex; flex-direction: column;
}
.calc-result-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute); margin: 0 0 10px; }
.calc-big {
  font-family: var(--font-body); font-weight: 500; font-size: clamp(2.8rem, 6vw, 4rem);
  letter-spacing: -0.03em; line-height: 1; color: var(--ink); margin: 0;
  font-feature-settings: 'pnum';
}
.calc-big .per { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; letter-spacing: 0; color: var(--mute); margin-left: 6px; }
.calc-note { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.5; color: #3B3D42; margin: 12px 0 0; }

.calc-breakdown { margin-top: 26px; display: flex; flex-direction: column; gap: 0; border-top: 1px solid rgba(126,150,232,0.24); }
.calc-line { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(126,150,232,0.16); }
.calc-line:last-child { border-bottom: 0; }
.calc-line-k { font-family: var(--font-body); font-size: 0.98rem; color: #3B3D42; }
.calc-line-k b { color: var(--ink); font-weight: 500; }
.calc-line-v { font-family: var(--font-body); font-weight: 500; font-size: 1.06rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.calc-vs {
  margin-top: 22px; padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,0.7); border: 1px solid rgba(126,150,232,0.28);
  font-family: var(--font-body); font-size: 0.98rem; line-height: 1.5; color: #3B3D42;
}
.calc-vs b { color: var(--ink); font-weight: 500; }
.calc-cta-row { margin-top: 26px; }
.calc-disclaimer { font-family: var(--font-display); font-size: 0.72rem; line-height: 1.5; color: var(--mute); margin: 18px 0 0; }
.calc-disclaimer b { color: var(--ink); font-weight: 600; }
.calc-fn { color: var(--accent); text-decoration: none; font-weight: 600; }
.calc-fn sup { font-size: 0.7em; }
#comps { scroll-margin-top: 100px; }
#comps:target { background: rgba(106,83,206,0.1); border-radius: 4px; }

/* ------------------------------------------------------ CODE-AUDIT TOOL */
.audit-modes { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.audit-mode-panel { display: none; }
.audit-mode-panel.is-on { display: block; }

/* file dropzone */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 40px 24px; text-align: center; cursor: pointer;
  border: 1.5px dashed #CFC9DE; border-radius: 16px; background: #FBFAF8;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--accent); background: rgba(106,83,206,0.04); }
.dropzone-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #FFFFFF; background: var(--accent-grad); }
.dropzone-ico svg { width: 22px; height: 22px; }
.dropzone-title { font-family: var(--font-display); font-weight: 500; font-size: 1rem; color: var(--ink); }
.dropzone-sub { font-family: var(--font-display); font-size: 0.82rem; color: var(--mute); }
.dropzone-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.dropzone-list li { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-mono); font-size: 0.8rem; color: #3B3D42; padding: 8px 12px; background: #FFFFFF; border: 1px solid var(--rule); border-radius: 8px; margin: 0; }
.dropzone-list li .rm { cursor: pointer; color: var(--mute); font-family: var(--font-display); }

/* the gate row: email + run button, always required before running */
.audit-gate { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--rule); }
.audit-run-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.audit-run-row .rfield { flex: 1; min-width: 220px; margin: 0; }
.audit-run-row .btn { flex-shrink: 0; align-self: stretch; }
.audit-consent { font-family: var(--font-display); font-size: 0.74rem; line-height: 1.5; color: var(--mute); margin: 12px 0 0; }

/* run state: spinner + status log */
.audit-running { display: none; text-align: center; padding: 44px 24px; }
.audit-running.is-on { display: block; }
.spinner { width: 40px; height: 40px; margin: 0 auto 20px; border-radius: 50%; border: 3px solid #E4E0F2; border-top-color: var(--accent); animation: spin 800ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }
.audit-status { font-family: var(--font-mono); font-size: 0.86rem; color: var(--mute); min-height: 1.4em; }

/* ---- the report ---- */
.report { display: none; }
.report.is-on { display: block; }
.report-summary {
  display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: clamp(22px, 3.5vw, 32px); border-radius: 18px;
  background: linear-gradient(160deg, rgba(126,150,232,0.08), rgba(158,107,216,0.06));
  border: 1px solid rgba(126,150,232,0.24); margin-bottom: 28px;
}
@media (max-width: 560px) { .report-summary { grid-template-columns: 1fr; text-align: center; } }
/* the grade dial */
.report-grade { position: relative; width: 108px; height: 108px; justify-self: center; }
.report-grade svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.report-grade-label { position: absolute; inset: 0; display: grid; place-items: center; }
.report-grade-letter { font-family: var(--font-body); font-weight: 500; font-size: 2.4rem; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.report-summary-body h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.8rem); letter-spacing: -0.015em; line-height: 1.18; margin: 0 0 8px; }
.report-summary-body p { font-family: var(--font-body); font-size: 1rem; line-height: 1.5; color: #3B3D42; margin: 0; }
.report-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.count-pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 500; font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; }
.count-pill i { width: 8px; height: 8px; border-radius: 50%; }
/* darker text on the red/amber tints so the pill labels clear AA (dots keep the
 * brighter --crit/--warn). */
.count-pill.is-crit { color: #B23A35; background: rgba(217,83,79,0.1); } .count-pill.is-crit i { background: var(--crit); }
.count-pill.is-warn { color: #8A5A1E; background: rgba(217,138,61,0.12); } .count-pill.is-warn i { background: var(--warn); }
.count-pill.is-good { color: var(--good); background: rgba(46,158,107,0.1); } .count-pill.is-good i { background: var(--good); }

/* finding cards, grouped by category */
.finding-group { margin-bottom: 26px; }
.finding-group-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.finding-group-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; color: var(--ink); margin: 0; }
.finding-group-head .n { font-family: var(--font-display); font-size: 0.78rem; color: var(--mute); background: var(--panel); padding: 2px 9px; border-radius: 999px; }

.finding {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--rule); background: #FFFFFF;
  margin-bottom: 10px;
}
.finding-sev { flex: 0 0 auto; width: 54px; text-align: center; }
.sev-badge { font-family: var(--font-display); font-weight: 600; font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px; border-radius: 7px; display: inline-block; }
/* darker fills so white badge text clears WCAG AA 4.5:1 (the lighter --crit/--warn
 * stay for dots + icons, where color-only is fine). */
.sev-badge.p0 { color: #FFFFFF; background: #C2352F; }
.sev-badge.p1 { color: #FFFFFF; background: #A9611C; }
.sev-badge.p2 { color: var(--ink); background: var(--panel); border: 1px solid var(--rule); }
.finding-title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: -0.005em; color: var(--ink); margin: 0 0 6px; }
.finding-body { font-family: var(--font-body); font-size: 0.95rem; line-height: 1.55; color: #3B3D42; margin: 0; }
.finding-body code, .finding-where {
  font-family: var(--font-mono); font-size: 0.82rem; background: var(--panel);
  padding: 1px 6px; border-radius: 5px; color: #4A3F94;
}
.finding-where { display: inline-block; margin-top: 8px; }
.finding-fix { margin-top: 8px; font-family: var(--font-body); font-size: 0.92rem; line-height: 1.5; color: #3B3D42; }
.finding-fix b { color: var(--ink); font-weight: 500; }

/* the "locked" deeper-dive CTA that caps the report */
.report-cta {
  margin-top: 30px; padding: clamp(24px, 4vw, 34px); border-radius: 20px;
  background: var(--dark); color: var(--dark-fg); text-align: center;
}
.report-cta h3 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.015em; color: var(--dark-fg); margin: 0 0 10px; }
.report-cta p { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.55; color: var(--dark-mute); margin: 0 auto 22px; max-width: 52ch; }
.report-cta .btn { background: #FFFFFF; color: var(--ink); }
.report-cta .btn:hover { background: #E9E7E2; }

.audit-error { display: none; margin-top: 20px; padding: 16px 18px; border-radius: 12px; background: rgba(217,83,79,0.08); border: 1px solid rgba(217,83,79,0.24); font-family: var(--font-body); font-size: 0.95rem; color: #8B2F2C; }
.audit-error.is-on { display: block; }

/* what-we-check chips under the tool */
.check-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.check-chip { font-family: var(--font-display); font-size: 0.78rem; color: #3B3D42; padding: 7px 14px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--rule); display: inline-flex; align-items: center; gap: 7px; }
.check-chip svg { width: 14px; height: 14px; color: var(--accent); }

/* ------------------------------------------------------ GUIDE (article) */
.guide-wrap { max-width: 760px; margin: 0 auto; }
.guide-hero { max-width: 760px; margin: 0 auto; }
.guide-hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; line-height: 1.1; margin: 0;
}
.guide-hero h1 .it { font-style: italic; }
.guide-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 22px 0 0; font-family: var(--font-display); font-size: 0.82rem; color: var(--mute); }
.guide-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #C9C4B8; }
.guide-lede { font-family: var(--font-serif); font-size: clamp(1.14rem, 1.9vw, 1.34rem); line-height: 1.55; color: var(--ink); margin: 26px 0 0; }
.guide-lede em { font-style: italic; }

/* table of contents card */
.guide-toc {
  margin: 40px 0; padding: 22px 26px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--rule);
}
.guide-toc-title { font-family: var(--font-display); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 9px; }
.guide-toc li { counter-increment: toc; margin: 0; }
.guide-toc a { font-family: var(--font-body); font-size: 1rem; color: var(--ink); text-decoration: none; display: flex; gap: 12px; align-items: baseline; transition: color 140ms var(--ease); }
.guide-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-display); font-weight: 500; font-size: 0.82rem; color: var(--accent); flex: 0 0 auto; }
.guide-toc a:hover { color: var(--accent); }

/* guide body typography */
.guide-body { }
.guide-body h2 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(1.6rem, 2.8vw, 2.1rem); letter-spacing: -0.018em; line-height: 1.18;
  margin: 56px 0 18px; scroll-margin-top: 90px;
}
.guide-body h2 .it { font-style: italic; }
.guide-body h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.24rem; letter-spacing: -0.01em; color: var(--ink); margin: 34px 0 12px; }
.guide-body p { font-family: var(--font-body); font-size: 1.14rem; line-height: 1.68; color: #2E3035; margin: 0 0 1.15em; }
.guide-body p .it, .guide-body em { font-style: italic; }
.guide-body strong { font-weight: 600; color: var(--ink); }
.guide-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(106,83,206,0.3); transition: border-color 140ms var(--ease); }
.guide-body a:hover { border-bottom-color: var(--accent); }
.guide-body ul, .guide-body ol { margin: 0 0 1.3em; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.guide-body ul li, .guide-body ol li { font-family: var(--font-body); font-size: 1.12rem; line-height: 1.6; color: #2E3035; margin: 0; padding-left: 30px; position: relative; }
.guide-body ul li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); opacity: 0.7; }
.guide-body ol { counter-reset: gl; }
.guide-body ol li { counter-increment: gl; }
.guide-body ol li::before { content: counter(gl); position: absolute; left: 0; top: 0.05em; font-family: var(--font-display); font-weight: 600; font-size: 0.86rem; color: var(--accent); width: 20px; text-align: center; }
.guide-body li b, .guide-body li strong { color: var(--ink); font-weight: 600; }

/* pull-quote / key callout */
.guide-callout {
  margin: 34px 0; padding: 24px 28px; border-radius: 16px;
  background: linear-gradient(160deg, rgba(126,150,232,0.08), rgba(158,107,216,0.06));
  border: 1px solid rgba(126,150,232,0.26); border-left: 3px solid var(--accent);
}
.guide-callout p { font-family: var(--font-serif); font-size: 1.16rem; line-height: 1.55; color: var(--ink); margin: 0; }
.guide-callout p:last-child { margin-bottom: 0; }
.guide-callout .k { font-family: var(--font-display); font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px; }

/* interactive checklist (for the launch checklist guide) */
.checklist { margin: 22px 0; display: flex; flex-direction: column; gap: 0; }
.checklist-item {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid var(--rule); cursor: pointer;
}
.checklist-item:first-child { border-top: 1px solid var(--rule); }
.checklist-box {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; margin-top: 1px;
  border: 1.5px solid #CFC9DE; background: #FFFFFF; display: grid; place-items: center;
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.checklist-box svg { width: 14px; height: 14px; color: #FFFFFF; opacity: 0; transition: opacity 120ms var(--ease); }
.checklist-item.is-done .checklist-box { background: var(--accent); border-color: var(--accent); }
.checklist-item.is-done .checklist-box svg { opacity: 1; }
.checklist-body { }
.checklist-item.is-done .checklist-title { color: var(--mute); text-decoration: line-through; text-decoration-color: rgba(110,114,122,0.5); }
.checklist-title { font-family: var(--font-body); font-weight: 500; font-size: 1.08rem; letter-spacing: -0.005em; color: var(--ink); margin: 0; }
.checklist-tag { font-family: var(--font-display); font-weight: 600; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-left: 8px; vertical-align: middle; }
.checklist-tag.blocker { color: #B23A35; background: rgba(217,83,79,0.1); }
.checklist-tag.soft { color: #8A5A1E; background: rgba(217,138,61,0.12); }
.checklist-tag.post { color: var(--mute); background: var(--panel); }
.checklist-note { font-family: var(--font-body); font-size: 0.98rem; line-height: 1.5; color: #5A5D63; margin: 6px 0 0; }
.checklist-note code { font-family: var(--font-mono); font-size: 0.82rem; background: var(--panel); padding: 1px 6px; border-radius: 5px; color: #4A3F94; }
.checklist-progress { position: sticky; top: 76px; z-index: 5; margin: 0 0 8px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,0.86); backdrop-filter: blur(10px); border: 1px solid var(--rule); box-shadow: 0 10px 30px -20px rgba(40,36,70,0.3); }
.checklist-progress-bar { flex: 1; height: 8px; border-radius: 4px; background: #E4E0F2; overflow: hidden; }
.checklist-progress-bar span { display: block; height: 100%; width: 0%; border-radius: 4px; background: var(--accent-grad); transition: width 260ms var(--ease); }
.checklist-progress-txt { font-family: var(--font-display); font-weight: 500; font-size: 0.86rem; color: var(--ink); white-space: nowrap; }

/* the email-to-save band inside guides + the shared bottom capture */
.save-band {
  margin: 48px 0 0; padding: clamp(28px, 4.5vw, 44px); border-radius: 24px;
  background: var(--dark); color: var(--dark-fg);
}
.save-band h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.018em; color: var(--dark-fg); margin: 0 0 10px; }
.save-band p { font-family: var(--font-body); font-size: 1.04rem; line-height: 1.55; color: var(--dark-mute); margin: 0 0 22px; max-width: 54ch; }
.save-band p em { font-family: var(--font-serif); font-style: italic; color: var(--dark-fg); }
.save-form { display: flex; gap: 12px; flex-wrap: wrap; max-width: 520px; }
.save-form input {
  flex: 1; min-width: 220px; font-family: var(--font-body); font-size: 1rem; color: var(--dark-fg);
  background: #1E1F22; border: 1px solid var(--dark-rule); border-radius: 12px; padding: 15px 16px;
  transition: border-color 140ms var(--ease);
}
.save-form input::placeholder { color: #6A6D74; }
.save-form input:focus { outline: none; border-color: #7E8188; }
.save-form .btn { flex-shrink: 0; }
.save-note { font-family: var(--font-display); font-size: 0.74rem; color: var(--dark-mute); margin: 14px 0 0; }
.save-success { display: none; }
.save-success.show { display: block; }
.save-success .big { font-family: var(--font-serif); font-weight: 500; font-size: 1.5rem; color: var(--dark-fg); margin: 0 0 8px; }
.save-form.hide { display: none; }

/* generic success state for tool forms (light) */
.tool-success { display: none; text-align: center; padding: clamp(28px, 5vw, 48px); }
.tool-success.show { display: block; }
.tool-success .ok-ico { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: var(--accent-grad); }
.tool-success .ok-ico svg { width: 30px; height: 30px; }
.tool-success .big { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.6rem, 2.6vw, 2.1rem); letter-spacing: -0.015em; color: var(--ink); margin: 0 0 12px; }
.tool-success p { font-family: var(--font-body); font-size: 1.06rem; line-height: 1.6; color: #3B3D42; margin: 0 auto; max-width: 46ch; }
.tool-form.hide { display: none; }

/* ============================================ PROTOTYPE REQUEST FLOW ===== */
/* a numbered multi-step form: 1 about you · 2 upload · 3 pick a design ·
 * 4 features · then the 24h confirmation. Steps stack; the whole thing lives in
 * one tool-panel so it reads as a single guided flow. */
.proto-steps { counter-reset: step; }
.proto-step { padding: clamp(24px, 4vw, 40px); border-top: 1px solid var(--rule); }
.proto-step:first-child { border-top: 0; }
.proto-step-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.proto-step-n {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  color: #FFFFFF; background: var(--accent-grad); box-shadow: 0 8px 18px -10px rgba(106,83,206,0.7);
}
.proto-step-titles h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -0.015em; line-height: 1.15; margin: 0; }
.proto-step-titles p { font-family: var(--font-body); font-size: 0.98rem; line-height: 1.5; color: var(--mute); margin: 6px 0 0; }
.proto-step-body { padding-left: 48px; }
@media (max-width: 560px) { .proto-step-body { padding-left: 0; } }

/* upload dropzone (reuses .dropzone from the audit tool; add PDF affordance) */
.proto-upload-hint { font-family: var(--font-display); font-size: 0.8rem; color: var(--mute); margin: 10px 0 0; }

/* ---- the template gallery (design picker) ---- */
.tpl-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tpl-filter {
  appearance: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 0.84rem; color: var(--mute);
  padding: 8px 15px; border-radius: 999px; background: #FFFFFF; border: 1px solid var(--rule);
  transition: color 140ms var(--ease), background 140ms var(--ease), border-color 140ms var(--ease);
}
.tpl-filter:hover { border-color: #CFC9DE; color: var(--ink); }
.tpl-filter.is-on { color: #FFFFFF; background: var(--accent); border-color: var(--accent); }

.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 720px) { .tpl-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 440px) { .tpl-grid { grid-template-columns: 1fr 1fr; gap: 12px; } }

.tpl-card {
  position: relative; cursor: pointer; border-radius: 18px; padding: 12px;
  background: linear-gradient(160deg, #F4F1FB, #EDE9F7);
  border: 1.5px solid transparent;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.tpl-card:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(70,58,160,0.4); }
.tpl-card.is-picked { border-color: var(--accent); box-shadow: 0 20px 40px -26px rgba(106,83,206,0.5); }
.tpl-card .pf { pointer-events: none; }
.tpl-check {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #FFFFFF; opacity: 0; transform: scale(0.6);
  transition: opacity 160ms var(--ease), transform 160ms var(--ease);
  box-shadow: 0 4px 10px -3px rgba(106,83,206,0.6);
}
.tpl-check svg { width: 14px; height: 14px; }
.tpl-card.is-picked .tpl-check { opacity: 1; transform: scale(1); }
.tpl-meta { padding: 12px 6px 4px; }
.tpl-name { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.tpl-blurb { font-family: var(--font-body); font-size: 0.82rem; line-height: 1.4; color: var(--mute); margin: 4px 0 0; }
.tpl-picked-count { font-family: var(--font-display); font-size: 0.86rem; color: var(--accent); font-weight: 500; margin: 18px 0 0; min-height: 1.2em; }

/* full-screen template preview modal */
.tpl-modal { position: fixed; inset: 0; z-index: 90; display: none; }
.tpl-modal.is-open { display: block; }
.tpl-modal-back { position: absolute; inset: 0; background: rgba(20,18,30,0.7); backdrop-filter: blur(6px); }
.tpl-modal-panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(340px, 86vw);
}
.tpl-modal-panel .pf { box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6); }
.tpl-modal-cap { text-align: center; color: #FFFFFF; margin-top: 18px; }
.tpl-modal-cap .n { font-family: var(--font-serif); font-size: 1.2rem; }
.tpl-modal-cap .b { font-family: var(--font-body); font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 4px; }
.tpl-modal-pick { margin-top: 18px; display: flex; gap: 10px; justify-content: center; }
.tpl-modal-close { position: absolute; top: max(20px, env(safe-area-inset-top)); right: 22px; z-index: 3; appearance: none; background: rgba(255,255,255,0.14); border: 0; color: #fff; width: 40px; height: 40px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }

/* ---- feature menu (step 4) ---- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }
.feat {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer;
  padding: 14px 16px; border-radius: 13px; background: #FBFAF8; border: 1px solid var(--rule);
  transition: border-color 140ms var(--ease), background 140ms var(--ease);
}
.feat:hover { border-color: #CFC9DE; }
.feat.is-on { border-color: var(--accent); background: rgba(106,83,206,0.05); }
.feat-box { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px; border: 1.5px solid #CFC9DE; background: #FFFFFF; display: grid; place-items: center; transition: border-color 140ms var(--ease), background 140ms var(--ease); }
.feat-box svg { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity 120ms var(--ease); }
.feat.is-on .feat-box { background: var(--accent); border-color: var(--accent); }
.feat.is-on .feat-box svg { opacity: 1; }
.feat-t { font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.feat-d { font-family: var(--font-body); font-size: 0.82rem; line-height: 1.4; color: var(--mute); margin: 2px 0 0; }

/* the final submit bar (sticky-ish at the bottom of the panel) */
.proto-submit { padding: clamp(24px, 4vw, 36px); border-top: 1px solid var(--rule); background: #FBFAF8; }
.proto-summary { font-family: var(--font-body); font-size: 0.95rem; color: #3B3D42; margin: 0 0 18px; line-height: 1.5; }
.proto-summary b { color: var(--ink); font-weight: 600; }

/* a compact "related resources" strip at the bottom of tool/guide pages */
.res-related { margin-top: clamp(56px, 8vw, 96px); }
.res-related h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.018em; margin: 0 0 24px; }
.res-related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .res-related-grid { grid-template-columns: 1fr; } }

/* =============================================== smart lead-capture popup ==== */
.res-pop { position: fixed; inset: 0; z-index: 120; opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease); }
.res-pop.is-open { opacity: 1; pointer-events: auto; }
.res-pop-back { position: absolute; inset: 0; background: rgba(20,18,30,0.55); backdrop-filter: blur(5px); }
.res-pop-card {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) translateY(12px);
  width: min(440px, calc(100vw - 32px));
  background: var(--dark); color: var(--dark-fg);
  border-radius: 24px; padding: clamp(28px, 5vw, 40px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.6);
  transition: transform 260ms var(--ease);
}
.res-pop.is-open .res-pop-card { transform: translate(-50%, -50%); }
.res-pop-x { position: absolute; top: 16px; right: 18px; appearance: none; background: rgba(255,255,255,0.1); border: 0; color: var(--dark-mute); width: 34px; height: 34px; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; transition: background 140ms var(--ease), color 140ms var(--ease); }
.res-pop-x:hover { background: rgba(255,255,255,0.16); color: var(--dark-fg); }
.res-pop-eyebrow { font-family: var(--font-display); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 12px; }
.res-pop-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.85rem); letter-spacing: -0.015em; line-height: 1.15; color: var(--dark-fg); margin: 0 0 12px; }
.res-pop-title .grad, .res-pop-title em { font-style: italic; background: linear-gradient(96deg, #7E96E8, #9E6BD8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.res-pop-body { font-family: var(--font-body); font-size: 1.02rem; line-height: 1.5; color: var(--dark-mute); margin: 0 0 22px; }
.res-pop-form { display: flex; flex-direction: column; gap: 10px; }
.res-pop-email {
  width: 100%; font-family: var(--font-body); font-size: 1rem; color: var(--dark-fg);
  background: #1E1F22; border: 1px solid var(--dark-rule); border-radius: 12px; padding: 15px 16px;
  transition: border-color 140ms var(--ease);
}
.res-pop-email::placeholder { color: #6A6D74; }
.res-pop-email:focus { outline: none; border-color: #7E8188; }
.res-pop-submit { width: 100%; }
.res-pop-alt { font-family: var(--font-display); font-size: 0.86rem; color: var(--dark-mute); text-align: center; margin: 16px 0 0; }
.res-pop-alt a { color: var(--dark-fg); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.25); transition: border-color 140ms var(--ease); }
.res-pop-alt a:hover { border-bottom-color: var(--dark-fg); }
.res-pop-form.hide { display: none; }
.res-pop-form.hide ~ .res-pop-alt { display: none; }
.res-pop-done { display: none; text-align: center; }
.res-pop-done.show { display: block; }
.res-pop-done .big { font-family: var(--font-serif); font-weight: 500; font-size: 1.4rem; color: var(--dark-fg); margin: 0 0 8px; }
.res-pop-done p { font-family: var(--font-body); font-size: 0.98rem; color: var(--dark-mute); margin: 0; }
@media (prefers-reduced-motion: reduce) { .res-pop, .res-pop-card { transition: opacity 240ms var(--ease); } .res-pop-card { transform: translate(-50%, -50%); } }
