/* Lead-magnet pages: scorecard, leaks guide, stats. Builds on styles.css tokens. */

.funnel {
  min-height: calc(100vh - var(--header-h));
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, rgba(26, 51, 82, 0.5), transparent 60%),
    linear-gradient(170deg, #0a1628 0%, #070f1c 55%);
}

.funnel__wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.25rem, 6vh, 4rem) var(--gutter) 4rem;
}

.funnel__wrap--wide {
  max-width: 64rem;
}

.funnel h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.3rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: #f7f4ea;
}

.funnel h2 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.12;
  color: #f7f4ea;
}

.funnel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: #f7f4ea;
}

.lede {
  margin: 1.1rem 0 0;
  font-size: clamp(1.08rem, 2vw, 1.25rem);
  color: var(--fog);
  max-width: 38rem;
}

.muted {
  color: var(--mist);
}

.promise {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.promise li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--fog);
}

.promise li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.7rem;
  height: 1px;
  background: var(--gold);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  margin-top: 2rem;
}

.fine {
  font-size: 0.88rem;
  color: var(--mist);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

button.btn {
  font-family: inherit;
  cursor: pointer;
  border-radius: 0;
}

.byline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(197, 160, 89, 0.16);
}

.byline img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--line);
}

.byline p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mist);
  line-height: 1.45;
}

.byline strong {
  color: var(--fog);
  font-weight: 600;
}

/* Steps */
.step[hidden] {
  display: none !important;
}

.progress {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  margin: 0 calc(var(--gutter) * -1) 1.5rem;
  padding: 0.75rem var(--gutter);
  background: rgba(7, 15, 28, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(197, 160, 89, 0.12);
}

.progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--mist);
  margin-bottom: 0.45rem;
}

.progress__bar {
  height: 3px;
  background: rgba(197, 160, 89, 0.15);
}

.progress__fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}

/* Form fields */
.field {
  display: grid;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.field > span,
.field legend {
  font-weight: 600;
  color: #f7f4ea;
  font-size: 0.98rem;
  padding: 0;
}

.field small {
  color: var(--mist);
  font-size: 0.85rem;
}

fieldset.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
  min-width: 0;
}

.input,
select.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--fog);
  background: rgba(18, 35, 58, 0.7);
  border: 1px solid rgba(197, 160, 89, 0.22);
  border-radius: 0;
  appearance: none;
}

select.input {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--gold) 50%),
    linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.input:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.95rem;
  border: 1px solid rgba(197, 160, 89, 0.22);
  background: rgba(18, 35, 58, 0.55);
  color: var(--fog);
  font-size: 0.93rem;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease);
}

.chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
  font-weight: 600;
}

.chip input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Questions */
.area-head {
  margin: 0 0 0.25rem;
}

.area-head p {
  margin: 0.2rem 0 0;
  color: var(--mist);
}

.q {
  margin: 1.1rem 0 0;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(18, 35, 58, 0.5);
  border: 1px solid rgba(197, 160, 89, 0.14);
  border-left: 2px solid rgba(197, 160, 89, 0.35);
}

.q.is-answered {
  border-left-color: var(--gold);
}

.q legend,
fieldset.field legend {
  float: left;
  width: 100%;
}

.q legend + *,
fieldset.field legend + * {
  clear: both;
}

.q legend {
  font-weight: 500;
  color: #f7f4ea;
  font-size: 1.02rem;
  line-height: 1.45;
  margin-bottom: 0.8rem;
  padding: 0;
}

.scale {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}

.scale .chip span {
  width: 100%;
  justify-content: center;
  text-align: center;
  font-size: 0.88rem;
  padding-inline: 0.4rem;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
}

.error {
  margin: 1rem 0 0;
  color: #f0b27a;
  font-size: 0.92rem;
}

/* Gate */
.gate {
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(197, 160, 89, 0.12), transparent 60%),
    var(--navy-2);
}

.gate__teaser {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.gate__score {
  font-family: var(--display);
  font-weight: 400;
  font-size: 2.6rem;
  line-height: 1;
  color: #f7f4ea;
  flex-shrink: 0;
}

.blur {
  filter: blur(7px);
  user-select: none;
}

/* Results */
.score-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--navy-2);
}

.dial {
  position: relative;
  width: clamp(8.5rem, 26vw, 11rem);
  aspect-ratio: 1;
}

.dial svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dial__track {
  stroke: rgba(197, 160, 89, 0.15);
}

.dial__value {
  stroke: var(--gold);
  transition: stroke-dashoffset 1.1s var(--ease);
}

.dial__num {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}

.dial__num strong {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  line-height: 1;
  color: #f7f4ea;
}

.dial__num span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 0.3rem;
}

.band {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.cost {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.cost > div {
  padding: 1.15rem 1.25rem;
  background: rgba(7, 15, 28, 0.45);
  border: 1px solid rgba(197, 160, 89, 0.14);
}

.cost strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.1;
  color: #f7f4ea;
}

.cost span {
  font-size: 0.9rem;
  color: var(--mist);
}

.areas {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.areas li {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr 3rem;
  gap: 0.9rem;
  align-items: center;
  font-size: 0.95rem;
}

.areas__bar {
  height: 10px;
  background: rgba(197, 160, 89, 0.12);
}

.areas__bar i {
  display: block;
  height: 100%;
  background: var(--gold);
  transition: width 0.9s var(--ease);
}

.areas li.is-weak .areas__bar i {
  background: #e08a5a;
}

.areas b {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #f7f4ea;
  font-weight: 600;
}

.leak-card {
  margin-top: 1rem;
  padding: 1.35rem 1.4rem;
  background: rgba(18, 35, 58, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.14);
  border-top: 2px solid #e08a5a;
}

.leak-card p {
  margin: 0.45rem 0 0;
  color: var(--fog);
}

.leak-card .label {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.offer {
  margin-top: 2.25rem;
  padding: clamp(1.6rem, 4vw, 2.4rem);
  border: 1px solid var(--gold);
  background:
    radial-gradient(circle at 100% 0%, rgba(197, 160, 89, 0.16), transparent 55%),
    var(--navy-2);
}

.offer ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.offer li + li {
  margin-top: 0.4rem;
}

.slots {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--gold-soft);
}

.assumptions {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--mist);
}

.assumptions summary {
  cursor: pointer;
  color: var(--gold-soft);
}

.section-gap {
  margin-top: 2.75rem;
}

/* Guide content */
.guide article {
  padding: 1.6rem 0;
  border-top: 1px solid rgba(197, 160, 89, 0.16);
}

.guide .num {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.guide p {
  margin: 0.6rem 0 0;
  color: var(--fog);
}

.guide dl {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.guide dt {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
}

.guide dd {
  margin: 0.15rem 0 0;
  color: var(--fog);
}

.check {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(197, 160, 89, 0.07);
  border-left: 2px solid var(--gold);
  font-size: 0.95rem;
}

/* Homepage tools section */
.tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.7rem;
  background: rgba(18, 35, 58, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.14);
  border-top: 2px solid var(--gold);
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.tool:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.tool h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
  color: #f7f4ea;
}

.tool p {
  margin: 0;
  color: var(--mist);
}

.tool__go {
  margin-top: auto;
  padding-top: 0.6rem;
  color: var(--gold-soft);
  font-weight: 600;
}

/* Stats */
.stats-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
}

.table-scroll {
  overflow-x: auto;
}

.stats-table th,
.stats-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(197, 160, 89, 0.14);
  text-align: right;
  white-space: nowrap;
}

.stats-table th:first-child,
.stats-table td:first-child {
  text-align: left;
}

.stats-table th {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-table td.best {
  color: var(--gold-soft);
  font-weight: 700;
}

@media (max-width: 680px) {
  .score-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cost,
  .tools {
    grid-template-columns: 1fr;
  }

  .areas li {
    grid-template-columns: 1fr 2.5rem;
    gap: 0.35rem 0.75rem;
  }

  .areas li > span:first-child {
    grid-column: 1 / -1;
  }

  .scale {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media print {
  .site-header,
  .site-footer,
  .offer .cta-row,
  .progress {
    display: none !important;
  }

  body,
  .funnel {
    background: #fff !important;
    color: #111 !important;
  }
}

/* ==========================================================================
   Scorecard v2: options, recognition, archetype, filter
   ========================================================================== */

.familiar {
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  background: rgba(18, 35, 58, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.14);
  border-left: 2px solid var(--gold);
}

.familiar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.familiar li {
  color: #f7f4ea;
  font-size: 1.02rem;
}

.opts {
  display: grid;
  gap: 0.45rem;
}

.opt {
  position: relative;
  display: block;
}

.opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.opt span {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(197, 160, 89, 0.2);
  background: rgba(7, 15, 28, 0.35);
  color: var(--fog);
  font-size: 0.97rem;
  line-height: 1.4;
}

.opt span::before {
  content: "";
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  border: 1.5px solid rgba(197, 160, 89, 0.55);
}

.opt:hover span {
  border-color: rgba(197, 160, 89, 0.45);
}

.opt input:checked + span {
  border-color: var(--gold);
  background: rgba(197, 160, 89, 0.12);
  color: #f7f4ea;
}

.opt input:checked + span::before {
  border-color: var(--gold);
  background: radial-gradient(circle, var(--gold) 0 45%, transparent 50%);
}

.opt input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.archetype {
  font-size: clamp(2.1rem, 5vw, 3rem) !important;
  margin-top: 0.1rem !important;
}

.archetype__line {
  margin: 0.6rem 0 0;
  font-size: 1.08rem;
  color: var(--fog);
}

.archetype__trap {
  margin: 0.75rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.archetype__trap strong {
  color: var(--gold-soft);
}

.mirror {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.mirror li {
  position: relative;
  padding: 0.95rem 1.1rem 0.95rem 2.6rem;
  background: rgba(18, 35, 58, 0.55);
  border: 1px solid rgba(197, 160, 89, 0.14);
  color: #f7f4ea;
  font-size: 1.04rem;
}

.mirror li::before {
  content: "“";
  position: absolute;
  left: 0.9rem;
  top: 0.35rem;
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gold);
}

.mirror--small li {
  padding-block: 0.6rem;
  font-size: 0.98rem;
}

.mirror--small li::before {
  content: none;
}

.mirror--small li {
  padding-left: 1.1rem;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tiles > div {
  padding: 1.15rem 1.25rem;
  background: rgba(7, 15, 28, 0.45);
  border: 1px solid rgba(197, 160, 89, 0.14);
}

.tiles strong {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.8rem, 4.6vw, 2.4rem);
  line-height: 1.1;
  color: #f7f4ea;
  margin-bottom: 0.3rem;
}

.tiles span {
  font-size: 0.9rem;
  color: var(--mist);
}

.offer p + p {
  margin-top: 0.8rem;
}

.offer--candid {
  border-color: rgba(197, 160, 89, 0.45);
  background: var(--navy-2);
}

textarea.input {
  min-height: 5.5rem;
  resize: vertical;
  line-height: 1.5;
}

.check-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-top: 1.25rem;
  color: var(--fog);
  font-size: 0.95rem;
  cursor: pointer;
}

.check-field input {
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--gold);
}

.apply .field > span {
  font-weight: 500;
}

@media (max-width: 680px) {
  .tiles {
    grid-template-columns: 1fr;
  }
}
