/* ==========================================================================
   Exponential Entrepreneurs — exponential-entrepreneurs.com
   Brand tokens and shared styles. Hand-coded, no dependencies.

   Legibility floor is deliberate: Jay Abraham is in his seventies and this
   audience reads production quality as a credibility signal before they read
   a word of the content. Body text never below 1.15rem. Headlines are large
   without apology.
   ========================================================================== */

:root {
  --ink:        #101418;
  --ink-soft:   #3A434D;
  --ink-faint:  #6B7682;
  --paper:      #F6F4EF;
  --paper-warm: #EFEBE2;
  --card:       #FFFFFF;
  --rule:       #DCD6C9;
  --green:      #1F6F5C;
  --green-deep: #14503F;
  --gold:       #B98527;
  --shadow:     0 1px 2px rgba(16,20,24,.04), 0 8px 28px rgba(16,20,24,.06);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;

  --measure: 34rem;
  --wide:    72rem;
}

* { box-sizing: border-box; }

/* The site header is sticky, so anchored jumps must stop clear of it. */
html { scroll-padding-top: 5.5rem; }
[id] { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.15rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.75rem; }
.narrow { max-width: var(--measure); }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; letter-spacing: -.015em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.9rem, 7.2vw, 5.6rem); }
h2 { font-size: clamp(2rem, 3.9vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.7rem); line-height: 1.22; }

p { margin: 0 0 1.25rem; max-width: var(--measure); }
.lede { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.5; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1.4rem;
}
.eyebrow.on-dark { color: #8FC9B8; }

em.term { font-style: italic; color: var(--ink); }
section.dark em.term { color: #fff; }
section.dark .lede { color: #C6CDD5; }
strong { font-weight: 700; }

/* --- layout -------------------------------------------------------------- */

section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
section.tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
section.dark { background: var(--ink); color: var(--paper); }
section.dark h1, section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #C6CDD5; }
section.warm { background: var(--paper-warm); }

hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 44rem) { .grid.two { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
@media (min-width: 60rem) { .grid.three { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.85rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
section.dark .card { background: #191F27; border-color: #2A323C; }

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  padding: 1.15rem 2rem;
  border: 2px solid var(--green);
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--green); }
.btn.ghost:hover { background: var(--green); color: #fff; }
section.dark .btn.ghost { color: #8FC9B8; border-color: #8FC9B8; }
section.dark .btn.ghost:hover { background: #8FC9B8; color: var(--ink); }
.btn[disabled] { opacity: .35; pointer-events: none; }

.btn-note { font-size: .95rem; color: var(--ink-faint); margin-top: .85rem; }

/* --- lists --------------------------------------------------------------- */

ul.plain { list-style: none; padding: 0; margin: 0 0 1.5rem; max-width: var(--measure); }
ul.plain li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .9rem;
}
ul.plain li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: .5rem; height: .5rem;
  background: var(--green);
  border-radius: 50%;
}
section.dark ul.plain li::before { background: #8FC9B8; }

/* --- header / footer ----------------------------------------------------- */

header.site {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 1.15rem; padding-bottom: 1.15rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand .mark { color: var(--green); }
nav.site a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  margin-left: 1.5rem;
}
nav.site a:hover { color: var(--green); }
/* On a phone the brand is nowrap at 268px and the remaining nav link cannot be
   squeezed past it, so the page scrolled sideways by ~21px — the "wiggle" found
   in the room 23 Aug 2026. The wordmark scales with the viewport instead of
   holding one width, and the header (not every .wrap on the site) tightens. */
@media (max-width: 42rem) {
  nav.site a { margin-left: .85rem; font-size: .92rem; }
  nav.site a.hide-sm { display: none; }
  header.site .wrap { gap: .85rem; padding-left: 1.15rem; padding-right: 1.15rem; }
  .brand { font-size: clamp(1rem, 4.6vw, 1.32rem); }
}

/* Below about 480px the full call to action wraps to three lines and pushes the
   header to triple height beside the wordmark. A short label keeps it on one
   line; the long one returns as soon as there is room for it. */
nav.site a { white-space: nowrap; }
nav.site .lbl-sm { display: none; }
@media (max-width: 30rem) {
  nav.site .lbl-lg { display: none; }
  nav.site .lbl-sm { display: inline; }
}

/* A long unbroken word in a display headline must fold rather than push the
   page wider than the screen. */
h1, h2, h3 { overflow-wrap: break-word; }

footer.site {
  background: var(--ink);
  color: #8B95A1;
  padding: 3.5rem 0;
  font-size: 1rem;
}
footer.site a { color: #C6CDD5; }

/* --- the number strip ---------------------------------------------------- */

.figures { display: grid; gap: 2rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figure .n {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: var(--green);
  display: block;
  margin-bottom: .35rem;
}
section.dark .figure .n { color: #8FC9B8; }
.figure .lbl { font-size: 1rem; color: var(--ink-faint); line-height: 1.35; }
section.dark .figure .lbl { color: #97A2AE; }

/* --- diagnostic ---------------------------------------------------------- */

.q { display: none; }
.q.active { display: block; animation: rise .28s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.q-count { font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; margin-bottom: 1rem; }
.q h2 { max-width: 26rem; }
.q .hint { color: var(--ink-faint); font-size: 1rem; margin-bottom: 1.75rem; }

.opts { display: grid; gap: .75rem; max-width: 40rem; margin-bottom: 2rem; }
.opt {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: 1.05rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  font-size: 1.08rem;
  line-height: 1.45;
  text-align: left;
  font-family: var(--sans);
  color: var(--ink);
  transition: border-color .14s ease, background .14s ease;
}
.opt:hover { border-color: var(--green); }
.opt[aria-pressed="true"] { border-color: var(--green); background: #EAF3F0; box-shadow: inset 0 0 0 1px var(--green); }
.opt .key {
  flex: 0 0 auto;
  width: 1.6rem; height: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; color: var(--ink-faint);
}
.opt[aria-pressed="true"] .key { background: var(--green); border-color: var(--green); color: #fff; }

textarea.free {
  width: 100%; max-width: 40rem;
  min-height: 9rem;
  padding: 1.1rem 1.25rem;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  resize: vertical;
  margin-bottom: 2rem;
}
textarea.free:focus { outline: none; border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }

/* Back one question. Quiet by design — it is a way out of a mistake, not a
   call to action competing with the answers. */
.back-step {
  display: inline-block;
  margin-top: .5rem;
  padding: .5rem 0;
  background: none;
  border: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
}
.back-step:hover { color: var(--green); }

.progress { height: 3px; background: var(--rule); }
.progress .bar { height: 100%; width: 0; background: var(--green); transition: width .3s ease; }

.result-constraint {
  border-left: 4px solid var(--green);
  padding-left: 1.5rem;
  margin: 0 0 2.5rem;
}
.prescription { display: grid; gap: .75rem; max-width: 44rem; margin-bottom: 2.5rem; }
.rx {
  display: flex; gap: 1.1rem; align-items: baseline;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}
.rx .num { font-family: var(--serif); font-size: 1.5rem; color: var(--green); flex: 0 0 2.4rem; }
.rx .body strong { display: block; font-size: 1.1rem; }
.rx .body span { color: var(--ink-faint); font-size: 1rem; }

/* --- course home --------------------------------------------------------- */

.dash { display: grid; gap: 1.5rem; }
@media (min-width: 62rem) { .dash { grid-template-columns: 1.65fr 1fr; gap: 2rem; align-items: start; } }

.panel {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.panel > h3 { margin-bottom: 1rem; }
.panel-label {
  font-size: .78rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: .9rem;
}

.challenge { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.challenge h3 { color: #fff; }
.challenge .panel-label { color: #8FC9B8; }
.challenge .test {
  border-top: 1px solid #2A323C;
  margin-top: 1.35rem; padding-top: 1.35rem;
  color: #C6CDD5; font-size: 1.03rem;
}
.challenge .test b { color: #fff; display: block; margin-bottom: .3rem; }

.track { list-style: none; margin: 0; padding: 0; }
.track li {
  display: flex; align-items: center; gap: .9rem;
  padding: .78rem 0;
  border-bottom: 1px solid var(--rule);
  font-size: 1.05rem;
}
.track li:last-child { border-bottom: 0; }
.dot { flex: 0 0 auto; width: .95rem; height: .95rem; border-radius: 50%; border: 2px solid var(--rule); }
.dot.done { background: var(--green); border-color: var(--green); }
.dot.now  { border-color: var(--green); box-shadow: inset 0 0 0 3px #fff, 0 0 0 3px #D6E7E1; }
.track li .when { margin-left: auto; color: var(--ink-faint); font-size: .95rem; white-space: nowrap; }
.track li.muted { color: var(--ink-faint); }

.meter { height: 8px; background: var(--paper-warm); border-radius: 99px; overflow: hidden; margin: .5rem 0 .35rem; }
.meter i { display: block; height: 100%; background: var(--green); }
.meter-note { font-size: .95rem; color: var(--ink-faint); }

.pod { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.who {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--paper-warm); border-radius: 99px;
  padding: .42rem .85rem .42rem .45rem; font-size: .98rem;
}
.who .av {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
}

a.quiet { color: var(--green); font-weight: 600; text-decoration: none; }
a.quiet:hover { text-decoration: underline; }

.tag {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 3px;
  background: #EAF3F0; color: var(--green-deep);
}
.tag.warn { background: #FBF0DC; color: #8A5F13; }

.draft-flag {
  background: var(--gold); color: #241a05;
  font-size: .92rem; font-weight: 700; text-align: center;
  padding: .6rem 1rem;
}
