/* ===== Good Period Calculator — v3 (guided argument) ===== */
/* Brand tokens extracted live from good-period.org */

:root {
  --ink: #2C3638;
  --ink-72: rgba(44, 54, 56, 0.86);   /* secondary text — darkened for readability */
  --ink-50: rgba(44, 54, 56, 0.66);   /* muted text — darkened for readability */
  --ink-14: rgba(44, 54, 56, 0.14);
  --ink-07: rgba(44, 54, 56, 0.07);
  --paper: #F6F6F6;
  --white: #FFFFFF;
  --coral: #DA4738;
  --coral-12: rgba(218, 71, 56, 0.12);

  --radius-card: 26px;
  --radius-pill: 40px;
  --shadow: 0 1px 2px rgba(44,54,56,.04), 0 16px 38px -26px rgba(44,54,56,.24);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 760px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: "Manrope", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  background-image: radial-gradient(110% 50% at 88% -6%, rgba(218,71,56,.05), transparent 60%);
  background-attachment: fixed;
}

.page { max-width: var(--maxw); margin: 0 auto; padding: 22px 22px 60px; }

/* ---------- Header ---------- */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; text-decoration: none; }
.wordmark__logo { height: 22px; width: auto; display: block; }
.masthead__tag { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-50); font-weight: 600; text-align: right; }

/* ---------- Kickers ---------- */
.eyebrow, .foot__kicker {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-50); font-weight: 700;
}

/* ---------- Hero ---------- */
.hero { padding: 44px 0 28px; animation: rise .7s var(--ease) both; }
.eyebrow { display: block; margin-bottom: 16px; color: var(--coral); }
.hero__title { font-size: clamp(2rem, 5.6vw, 3.1rem); line-height: 1.05; letter-spacing: -0.045em; font-weight: 700; max-width: 18ch; }
.hero__lede { margin-top: 18px; font-size: clamp(1rem, 2.2vw, 1.14rem); color: var(--ink-72); max-width: 58ch; }

/* ---------- Intake (two inputs) ---------- */
.intake {
  background: var(--white); border-radius: var(--radius-card); padding: 26px 28px;
  box-shadow: var(--shadow); border-top: 3px solid var(--coral);
  animation: rise .7s var(--ease) .08s both;
}
.intake__title { font-weight: 700; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.intake__title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); flex: none; }
.intake__fields { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
@media (min-width: 620px) { .intake__fields { grid-template-columns: 1fr 1fr; } }
.intake__note { font-size: 14px; color: var(--ink-72); margin-top: 16px; line-height: 1.5; }

.field > label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input[type="text"] {
  width: 100%; font-family: inherit; font-size: 22px; font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink); background: var(--white); border: 1.5px solid var(--ink-14);
  border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s;
}
.field input[type="text"]:hover { border-color: var(--ink-50); }
.field input[type="text"]:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-12); }

/* ---------- The argument (numbered spine) ---------- */
.argument { margin-top: 40px; }
.step { position: relative; padding-left: 60px; padding-bottom: 40px; animation: rise .6s var(--ease) backwards; }
.step:nth-child(1) { animation-delay: .12s; }
.step:nth-child(2) { animation-delay: .20s; }
.step:nth-child(3) { animation-delay: .28s; }
.step:nth-child(4) { animation-delay: .36s; }
.step:nth-child(5) { animation-delay: .44s; }
/* connector line down the spine */
.step:not(.step--last)::before {
  content: ""; position: absolute; left: 19px; top: 44px; bottom: -4px; width: 2px; background: var(--ink-14);
}
.step__n {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  background: var(--coral-12); color: var(--coral); font-weight: 800; font-size: 16px;
  display: flex; align-items: center; justify-content: center; z-index: 1;
}
.step__assert { font-size: clamp(1.08rem, 2.6vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; }
.step__num {
  font-size: clamp(2.2rem, 8vw, 3rem); font-weight: 800; color: var(--coral);
  letter-spacing: -0.045em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums;
}
.step__unit { font-size: 0.34em; font-weight: 700; color: var(--ink-50); letter-spacing: -0.01em; }
.step__lead { font-size: clamp(1.45rem, 4vw, 2.1rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; margin-top: 28px; max-width: 30ch; }
.step__lead strong { color: var(--coral); }
.step__list { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; max-width: 60ch; }
.step__list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink-72); line-height: 1.5; }
.step__list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.li-embed { margin: 24px 0; max-width: 504px; }
.li-embed iframe { width: 100%; height: 640px; border: 1px solid var(--ink-14); border-radius: 14px; background: var(--white); display: block; }
@media (max-width: 520px) { .li-embed iframe { height: 600px; } }
.step--payoff .step__num { font-size: clamp(2.3rem, 9vw, 4.4rem); }
.step__formula {
  display: inline-block; margin-top: 14px; font-size: 14.5px; color: var(--ink);
  background: var(--paper); padding: 10px 15px; border-radius: 10px;
  font-variant-numeric: tabular-nums; letter-spacing: -0.01em; font-weight: 500;
}
.step__src { font-size: 14.5px; color: var(--ink-72); margin-top: 14px; max-width: 60ch; line-height: 1.55; }
.step__src em { font-style: italic; }
.step__note {
  margin-top: 18px; font-size: 15px; color: var(--ink); max-width: 58ch; line-height: 1.55;
  border-left: 3px solid var(--coral); padding-left: 16px;
}
.transition {
  margin-top: 20px; font-size: 14.5px; color: var(--ink-72); max-width: 60ch;
  line-height: 1.55;
}

/* ---------- Verified scenario (compact, secondary) ---------- */
.scenario { margin-top: 22px; background: var(--paper); border-radius: 16px; padding: 20px; }
.scenario__head { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tag-illus { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--coral); background: var(--coral-12); padding: 3px 9px; border-radius: 20px; }
.scenario__copy { font-size: 14px; color: var(--ink-72); margin-top: 10px; max-width: 56ch; }
.scenario__copy strong { color: var(--ink); }
.scenario__controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; margin-top: 16px; }
.field--inline { flex: 1; min-width: 200px; }
.field--inline label { font-size: 12.5px; color: var(--ink-72); }
.field--inline input { font-size: 18px; padding: 10px 13px; }
.presets { display: inline-flex; gap: 5px; padding: 4px; background: var(--ink-07); border-radius: var(--radius-pill); }
.preset { border: 0; background: transparent; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink-72); padding: 8px 15px; border-radius: var(--radius-pill); cursor: pointer; transition: background .2s, color .2s; }
.preset:hover { color: var(--ink); }
.preset.is-active { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(44,54,56,.06), 0 6px 16px -10px rgba(44,54,56,.3); }
.scenario__flag { font-size: 12px; color: var(--coral); font-weight: 600; margin-top: 14px; }

/* ---------- Footnotes ---------- */
sup { line-height: 0; }
.fn { color: var(--coral); text-decoration: none; font-weight: 700; font-size: 0.7em; padding: 0 1px; }
.fn:hover { text-decoration: underline; }

/* ---------- Partner roster ---------- */
.roster {
  margin-top: 28px; background: var(--white); border: 1px solid var(--ink-14);
  border-radius: var(--radius-card); padding: clamp(28px, 5vw, 40px); box-shadow: var(--shadow);
}
.roster__kicker { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.roster__lead { margin-top: 14px; font-size: clamp(1.05rem, 2.4vw, 1.2rem); font-weight: 600; letter-spacing: -0.02em; max-width: 50ch; }
.roster__lead strong { color: var(--coral); }
.roster__grid { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.roster__grid li {
  border: 1px solid var(--ink-14); border-radius: 12px; padding: 14px 18px;
  min-height: 64px; flex: 1 1 140px; max-width: 184px;
  display: flex; align-items: center; justify-content: center; background: var(--white);
}
.roster .logo { max-height: 28px; max-width: 116px; object-fit: contain; filter: grayscale(1); opacity: 0.72; transition: opacity .2s, filter .2s; }
.roster__grid li:hover .logo { filter: none; opacity: 1; }
.roster__scarcity {
  font-size: 15px; color: var(--ink); max-width: 62ch; line-height: 1.55;
  border-left: 3px solid var(--coral); padding-left: 16px;
}
.roster__scarcity strong { color: var(--coral); }

/* ---------- CTA ---------- */
.cta { margin-top: 28px; background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius-card); padding: clamp(30px, 5vw, 46px); box-shadow: var(--shadow); }
.cta__from { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); font-weight: 700; margin-bottom: 14px; }
.cta__sub { max-width: 56ch; color: var(--ink); font-size: clamp(1.05rem, 2.4vw, 1.22rem); font-weight: 500; letter-spacing: -0.01em; line-height: 1.5; }
.btn { display: inline-block; margin-top: 24px; background: var(--coral); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; text-decoration: none; padding: 15px 30px; border-radius: var(--radius-pill); transition: transform .2s var(--ease), box-shadow .2s; box-shadow: 0 10px 24px -12px rgba(218,71,56,.7); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(218,71,56,.8); }

/* ---------- Lead magnet ---------- */
.leadgen {
  margin-top: 28px; background: var(--white); border: 1px solid var(--ink-14);
  border-radius: var(--radius-card); padding: clamp(30px, 5vw, 46px); box-shadow: var(--shadow);
}
.leadgen__kicker { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--coral); font-weight: 700; margin-bottom: 14px; }
.leadgen__lead { font-size: clamp(1.3rem, 3.4vw, 1.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.18; max-width: 22ch; }
.leadgen__sub { margin-top: 12px; font-size: clamp(1rem, 2.2vw, 1.1rem); color: var(--ink-72); max-width: 52ch; line-height: 1.5; }
.leadgen__form { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 22px; align-items: end; }
@media (min-width: 620px) { .leadgen__form { grid-template-columns: 1fr 1fr auto; } }
.leadgen__form .field input { width: 100%; font-family: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink-14); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.leadgen__form .field input:hover { border-color: var(--ink-50); }
.leadgen__form .field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-12); }
.leadgen__form .btn { margin-top: 0; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.leadgen__form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.leadgen__status { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-72); min-height: 1.2em; }

/* ---------- Footer ---------- */
.foot { margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--ink-14); }
.foot__kicker { margin-bottom: 16px; }
.foot__list { list-style: none; display: grid; gap: 12px; font-size: 14px; color: var(--ink-72); line-height: 1.5; }
.foot__list li { padding-left: 26px; position: relative; }
.foot__n { position: absolute; left: 0; top: 1px; font-weight: 800; font-size: 11px; color: var(--coral); background: var(--coral-12); width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.foot__list em { font-style: italic; }
.foot__list a { color: var(--coral); text-decoration: none; font-weight: 600; }
.foot__list a:hover { text-decoration: underline; }
.foot__fine { margin-top: 18px; font-size: 13px; color: var(--ink-50); max-width: 72ch; line-height: 1.5; }
:target { scroll-margin-top: 24px; }
.foot__list li:target { animation: flash 1.6s var(--ease); border-radius: 8px; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: var(--coral-12); } 100% { background: transparent; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ===== Report Card quiz ===== */
.quiz { margin-top: 36px; display: grid; gap: 16px; }
.quiz__error { color: var(--coral); font-weight: 600; font-size: 14px; min-height: 1.2em; }
.quiz .btn { justify-self: start; border: 0; cursor: pointer; font-family: inherit; margin-top: 8px; }

.qcard { border: 1px solid var(--ink-14); border-radius: 18px; padding: 22px 22px 18px; background: var(--white); }
/* float + width:100% defeats the <legend> quirk where a 2-line question overflows
   the top border of its <fieldset> card. Options clear beneath it. */
.qcard__q { font-size: clamp(1.02rem, 2.4vw, 1.14rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; float: left; width: 100%; margin-bottom: 16px; }
.qcard__n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 11px; border-radius: 50%; background: var(--coral-12); color: var(--coral); font-size: 13px; font-weight: 800; vertical-align: 2px; }
.qcard__opts { display: grid; gap: 8px; clear: both; }
.qopt { display: flex; align-items: center; gap: 11px; padding: 12px 15px; border: 1.5px solid var(--ink-14); border-radius: 12px; cursor: pointer; font-size: 15px; transition: border-color .15s, background .15s; }
.qopt:hover { border-color: var(--ink-50); }
.qopt input { position: absolute; opacity: 0; pointer-events: none; }
.qopt__dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--ink-14); transition: border-color .15s, box-shadow .15s; }
.qopt:has(input:checked) { border-color: var(--coral); background: var(--coral-12); }
.qopt:has(input:checked) .qopt__dot { border-color: var(--coral); box-shadow: inset 0 0 0 4px var(--coral); }
.qopt:has(input:focus-visible) { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---- Result ---- */
.result { margin-top: 40px; background: var(--white); border: 1px solid var(--ink-14); border-radius: var(--radius-card); padding: clamp(28px, 5vw, 44px); box-shadow: var(--shadow); animation: rise .6s var(--ease) both; }
.result__kicker { font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--coral); font-weight: 700; }
.result__head { display: flex; align-items: center; gap: 22px; margin-top: 16px; flex-wrap: wrap; }
.result__grade { width: 96px; height: 96px; flex: none; border-radius: 50%; background: var(--coral-12); color: var(--coral); display: flex; align-items: center; justify-content: center; font-size: 52px; font-weight: 800; letter-spacing: -0.04em; }
.result__headline { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 700; letter-spacing: -0.025em; }
.result__characterization { font-size: 15px; color: var(--ink-72); margin-top: 6px; max-width: 40ch; line-height: 1.5; }

.result__pillars { display: grid; gap: 14px; margin-top: 28px; }
.pillar__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.pillar__label { font-size: 14px; font-weight: 600; }
.pillar__grade { font-size: 13px; font-weight: 800; color: var(--coral); }
.pillar__track { height: 10px; border-radius: 6px; background: var(--ink-14); overflow: hidden; }
.pillar__fill { display: block; height: 100%; background: var(--coral); border-radius: 6px; transition: width .5s var(--ease); }

.result__standard { background: var(--paper); border-radius: 16px; padding: 22px 24px; margin-top: 28px; }
.result__standard-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-50); font-weight: 700; margin-bottom: 14px; }
.result__list { list-style: none; display: grid; gap: 9px; }
.result__list li { position: relative; padding-left: 22px; font-size: 14.5px; color: var(--ink); line-height: 1.45; }
.result__list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.result__list em { font-style: italic; }
.result__note { margin-top: 22px; font-size: 14.5px; color: var(--ink); line-height: 1.55; max-width: 62ch; border-left: 3px solid var(--coral); padding-left: 16px; }

.result__nextmove { margin-top: 28px; background: var(--coral-12); border-radius: 16px; padding: 22px 24px; }
.result__nextmove-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral); font-weight: 800; margin-bottom: 12px; }
.result__nextmove p { font-size: 14.5px; color: var(--ink); line-height: 1.55; max-width: 60ch; }
.result__nextmove p + p.move__ask { margin-top: 12px; }
.result__nextmove .move__ask strong { color: var(--coral); font-weight: 700; }

.result__capture { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--ink-14); }
.result__capture-title { font-size: clamp(1.1rem, 2.6vw, 1.3rem); font-weight: 700; letter-spacing: -0.02em; }
.result__capture-sub { font-size: 14.5px; color: var(--ink-72); margin-top: 8px; max-width: 50ch; line-height: 1.5; }
.card-form { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 20px; align-items: end; }
@media (min-width: 620px) { .card-form { grid-template-columns: 1fr 1fr auto; } }
.card-form .field input { width: 100%; font-family: inherit; font-size: 17px; font-weight: 500; color: var(--ink); background: var(--white); border: 1.5px solid var(--ink-14); border-radius: 14px; padding: 13px 15px; transition: border-color .2s, box-shadow .2s; }
.card-form .field input:hover { border-color: var(--ink-50); }
.card-form .field input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-12); }
.card-form .btn { margin-top: 0; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.card-form .btn:disabled { opacity: 0.6; cursor: default; transform: none; }
.field .opt { font-weight: 400; color: var(--ink-50); }
.result__status { margin-top: 16px; font-size: 14.5px; font-weight: 600; color: var(--ink-72); min-height: 1.2em; }
