/* ============================================================================
   Scorecard Generator: light editorial web system (THE-BRAIN/BRAND.md §6)

   Light mode only. There is no dark block and no prefers-color-scheme rule in
   this file on purpose: BRAND.md §6 is canonical for icarusgrowthsystems.com
   pages, and a lead-magnet page that changes skin under the visitor is a page
   whose one lime button is no longer predictable.

   The role swap (BRAND.md §6): lime is a BUTTON, never type. Highlight text is
   green #15803D. The editorial accent (eyebrow) is deep purple #8E009E. Ground
   is #F8F8F8.

   No serif anywhere (locked 2026-08-16). DM Sans carries headings and body,
   JetBrains Mono carries every eyebrow, label and count.

   Box budget ([[Boxes Are A Scarce Resource]]): two boxed objects per page,
   maximum. Spent on (1) the email capture card and (2) the question card in
   the app. Everything else is type, 1px rules and whitespace.
   ========================================================================= */

:root {
  --bg: #F8F8F8;
  --panel: #FFFFFF;
  --panel2: #F3F3F5;
  --ink: #14151C;
  --ink-2: #3A3B42;
  --mute: #5F6068;
  --mute2: #8A8B93;
  --line: #E2E2E6;
  --hl: #15803D;
  --accent: #8E009E;
  --orange: #D93F00;

  --tint-hl: rgba(21, 128, 61, .07);
  --line-hl: rgba(21, 128, 61, .34);
  --tint-accent: rgba(142, 0, 158, .035);
  --line-accent: rgba(142, 0, 158, .30);
  --line-orange: rgba(217, 63, 0, .34);
  --glow1: rgba(142, 0, 158, .06);
  --glow2: rgba(21, 128, 61, .045);
  --shadow: 0 8px 24px rgba(20, 21, 28, .10);
  --shadow-h: 0 10px 30px rgba(20, 21, 28, .16);

  /* theme-independent: the button survives the swap, BRAND.md §6 */
  --btn-bg: #E0F014;
  --btn-fg: #14151C;
  --btn-bg-h: #EAFF2E;

  --sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  color-scheme: light;          /* stop the OS repainting inputs in a dark skin */
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;              /* ICG light web system: body >= 19px */
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* two ambient washes so the off-white does not read as a blank document */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60rem 40rem at 88% -8%, var(--glow1), transparent 60%),
    radial-gradient(52rem 36rem at 6% -6%, var(--glow2), transparent 62%);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 80px;      /* side gutter never drops below 20px */
}
.wrap--narrow { max-width: 640px; }

/* ---------- masthead ----------------------------------------------------
   Type only. IcG_Logo.png is a detailed monogram on an opaque white square
   and is illegible below ~40px (BRAND.md §7), so small mastheads are set as
   mono type. It is deliberately not a link. [[One Page One Ask]]: every
   outbound link on a lead-magnet page is a leak. */

.masthead {
  margin-bottom: 44px;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ---------- type --------------------------------------------------------- */

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.asset-name {
  display: block;
  font-size: clamp(1.05rem, 3.4vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.3;
  color: var(--mute);
  margin-bottom: 10px;
}

.transformation {
  display: block;
  font-size: clamp(2rem, 7.6vw, 3.35rem);
  color: var(--hl);
}

.deck {
  margin: 26px 0 0;
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}

h2 {
  margin: 0 0 6px;
  font-size: clamp(1.32rem, 4.2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.section {
  margin-top: 64px;
  padding-top: 34px;
  border-top: 1px solid var(--line);   /* hairline rules beat borders */
}

.section-note {
  margin: 0 0 26px;
  color: var(--mute);
  font-size: 1rem;
  max-width: 36em;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }

/* .deck carries no bottom margin (the card below sets its own top margin), so
   anything that does follow it directly has to open its own gap. */
.deck + p, .deck + ul, .deck + .btn-lime, .deck + .btn-quiet { margin-top: 20px; }
h2 + .stack, .section-note + .stack { margin-top: 20px; }

strong { font-weight: 700; }

a { color: var(--ink); }

/* ---------- the capture card (boxed object 1) ---------------------------- */

.capture {
  margin-top: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

input[type="email"],
input[type="text"],
textarea,
select {
  width: 100%;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 132px; resize: vertical; }
select { appearance: none; background-image: none; }

input:focus, textarea:focus, select:focus {
  border-color: var(--line-hl);
  box-shadow: 0 0 0 3px var(--tint-hl);
}
input::placeholder, textarea::placeholder { color: var(--mute2); }

.field-help {
  margin: 10px 0 0;
  font-size: .92rem;
  line-height: 1.5;
  color: var(--mute);
}

/* ---------- buttons ------------------------------------------------------
   ONE filled lime element per view (BRAND.md §6). .btn-lime is that element.
   .btn-quiet and .quiet-link are everything else. */

.btn-lime {
  display: inline-block;
  width: 100%;
  margin-top: 18px;
  padding: 18px 26px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.btn-lime:hover:not(:disabled) {
  background: var(--btn-bg-h);
  box-shadow: 0 8px 24px rgba(224, 240, 20, .25);
}
.btn-lime:active:not(:disabled) { transform: translateY(1px); }
.btn-lime:disabled { opacity: .5; cursor: progress; }

.btn-quiet {
  display: inline-block;
  padding: 15px 24px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.btn-quiet:hover { border-color: var(--ink-2); background: var(--panel); }

.quiet-link {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.quiet-link:hover { text-decoration-color: var(--hl); color: var(--hl); }

.microcopy {
  margin: 14px 0 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--mute);
}

.form-error {
  margin: 14px 0 0;
  padding-left: 12px;
  border-left: 2px solid var(--line-orange);
  font-size: .95rem;
  line-height: 1.5;
  color: var(--orange);
}
.form-error[hidden] { display: none; }

/* Turnstile sits between the field and the button, unstyled. It refuses to
   render off lm.icarusgrowthsystems.com, so it must collapse to nothing
   rather than leave a hole. */
.turnstile-slot { margin-top: 18px; }
.turnstile-slot:empty { margin-top: 0; }

/* ---------- the deliverable stack ---------------------------------------
   [[Itemize The Deliverable Stack]]. Ticked and counted. Hairline rows, not
   cards: the box budget is spent elsewhere. */

.stack { list-style: none; margin: 0; padding: 0; }

.stack li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.stack li:first-child { border-top: 1px solid var(--line); }

/* An inline SVG, not a check-mark character. A text glyph tick reads as an
   emoji to the humanization checks and to some screen readers; drawn, it is
   just a rule with a corner in it. */
.tick {
  width: 24px;
  height: 24px;
  margin-top: 4px;
  padding: 4px;
  border-radius: 6px;
  background: var(--tint-hl);
  color: var(--hl);
  display: block;
  flex: 0 0 auto;
}

.count {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--hl);
  letter-spacing: -.01em;
}

.stack-close {
  margin: 26px 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}

/* ---------- closing ask -------------------------------------------------- */

.closing { margin-top: 26px; }
.closing .btn-quiet { margin-top: 8px; }

.secondary-cta {
  margin: 22px 0 0;
  font-size: .98rem;
  color: var(--mute);
}

.foot {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute2);
}

/* ---------- the app ------------------------------------------------------ */

.progress-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mute);
}

.progress-rail {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 40px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--hl);
  border-radius: 2px;
  transition: width .3s ease;
}

/* boxed object 2 */
.question-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 26px;
  box-shadow: var(--shadow);
}

.question-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 4.6vw, 1.72rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.22;
}
.question-help {
  margin: 0 0 22px;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--mute);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.nav-row .btn-lime { margin-top: 0; flex: 1 1 220px; width: auto; }
.back-btn {
  background: none;
  border: 0;
  padding: 8px 0;
  font-family: var(--sans);
  font-size: .98rem;
  color: var(--mute);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}
.back-btn:hover { color: var(--ink); }
.back-btn[hidden] { display: none; }

.keyhint {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute2);
}

/* working state */
.working-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hl);
  margin-right: 10px;
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .working-dot { animation: none; opacity: .8; }
  html { scroll-behavior: auto; }
  .progress-fill { transition: none; }
}

.state-list {
  margin: 22px 0 0;
  padding-left: 0;
  list-style: none;
}
.state-list li {
  padding: 10px 0 10px 16px;
  border-left: 2px solid var(--line);
  font-size: 1rem;
  color: var(--mute);
}
.state-list li.is-active { border-left-color: var(--hl); color: var(--ink); font-weight: 500; }
.state-list li.is-done { border-left-color: var(--line-hl); color: var(--ink-2); }

.doc-note {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--line-hl);
  font-size: 1rem;
  color: var(--ink-2);
}

.trouble {
  margin-top: 30px;
  padding-left: 14px;
  border-left: 2px solid var(--line-orange);
  font-size: 1rem;
  color: var(--ink-2);
}

.mono-inline {
  font-family: var(--mono);
  font-size: .9em;
  color: var(--ink);
  word-break: break-word;
}

[hidden] { display: none !important; }

/* ---------- small screens -----------------------------------------------
   400px is the floor this must work at. */

@media (max-width: 460px) {
  /* Body stays at 19px. The ICG light web system sets that as a floor, not a
     desktop-only figure, so the phone does not get the thinner read. */
  .wrap { padding: 30px 18px 60px; }
  .capture { padding: 22px 18px; border-radius: 12px; }
  .question-card { padding: 24px 18px; border-radius: 12px; }
  .transformation { font-size: clamp(1.85rem, 9vw, 2.3rem); }
  .nav-row { flex-direction: column-reverse; align-items: stretch; }
  .nav-row .btn-lime { width: 100%; flex: 0 0 auto; }
  .back-btn { text-align: center; }
  .foot { flex-direction: column; }
  .stack li { grid-template-columns: 22px 1fr; gap: 11px; }
  .tick { width: 22px; height: 22px; }
}
