/* ===========================================================================
   Roosterflyt — conversion components
   Token-driven (--c-* are scoped per band in site.css), so every component
   below works on dark and light bands and in every theme. Themes may restyle
   them; none of them depend on a theme.
   =========================================================================== */

/* ---- Shared small parts -------------------------------------------------- */
.checks { display: grid; gap: 0.7rem; }
.checks li { position: relative; padding-left: 1.6rem; line-height: 1.5; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 0.9rem; height: 0.5rem;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg) translateY(-30%);
}

.split { display: grid; gap: clamp(2rem, 1rem + 3vw, 3.5rem); align-items: start; }
@media (min-width: 1020px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.insight {
  margin-top: 3rem; padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--amber);
  background: color-mix(in srgb, var(--amber) 8%, transparent);
}
.insight__k { font-size: var(--t-caption); color: var(--c-muted); margin-bottom: 0.5rem; }
.insight__v { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.9vw, 1.65rem); line-height: 1.3; letter-spacing: -0.02em; text-wrap: balance; }

/* ---- Proof strip: verifiable tiles + optional verified stats --------------- */
.stats { display: grid; gap: 1.25rem; margin-top: 2rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat { padding: 1.25rem 0; border-top: 2px solid var(--amber); }
.stat__v { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); line-height: 1; font-weight: 500; }
.stat__k { margin-top: 0.6rem; font-weight: 500; }
.stat__n { margin-top: 0.25rem; font-size: var(--t-caption); color: var(--c-muted); }

.tiles { display: grid; gap: 1px; margin-top: 2.25rem; background: var(--c-hair); border: 1px solid var(--c-hair); }
@media (min-width: 700px)  { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { background: var(--fog); padding: 1.6rem 1.5rem 1.8rem; }
.tile__i { font-size: 0.8rem; color: var(--c-muted); }
.tile__k { margin-top: 0.9rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.tile__v { margin-top: 0.6rem; font-size: 0.975rem; line-height: 1.5; color: var(--c-muted); }

/* ---- Symptoms: how it looks from the buyer's chair ------------------------ */
.symptoms { display: grid; gap: 1px; margin-top: 2.5rem; background: var(--c-hair); border: 1px solid var(--c-hair); }
@media (min-width: 760px) { .symptoms { grid-template-columns: repeat(2, 1fr); } }
.symptom {
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.4rem;
  padding: 1.7rem 1.6rem; text-decoration: none; color: var(--c-fg);
  background: var(--predawn); transition: background-color 0.25s var(--ease);
}
.symptom:hover { background: var(--predawn-lift); }
.symptom__q { font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem); line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.symptom__leak { font-family: var(--font-mono); font-size: 0.78rem; color: var(--amber); }

/* ---- Challenge matrix ------------------------------------------------------ */
.matrix { border-top: 1px solid var(--c-hair); }
.matrix__head { display: none; }
.mrow { display: grid; gap: 1rem; padding-block: 1.9rem; border-bottom: 1px solid var(--c-hair); scroll-margin-top: 6rem; }
.mrow__q { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
.mrow p { font-size: 0.975rem; line-height: 1.55; }
.mrow__change p { color: var(--c-fg); }
.mrow__check p { color: var(--c-muted); }
.mlabel { display: block; font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-muted); margin-bottom: 0.4rem; }
@media (min-width: 1020px) {
  .mlabel { display: none; }
  .matrix__head, .mrow { display: grid; gap: 0 2rem; grid-template-columns: minmax(0, 1.25fr) 9rem minmax(0, 1.5fr) minmax(0, 1.3fr); align-items: start; }
  .matrix--compact .matrix__head, .matrix--compact .mrow { grid-template-columns: minmax(0, 1.4fr) 10rem minmax(0, 1.6fr); }
  .matrix__head { padding-block: 0.9rem; border-bottom: 1px solid var(--c-hair); font-family: var(--font-mono); font-size: 0.72rem; color: var(--c-muted); }
}

/* ---- Engagement model steps ------------------------------------------------ */
.steps { display: grid; gap: 1px; background: var(--c-hair); border: 1px solid var(--c-hair); counter-reset: none; }
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { display: flex; flex-direction: column; padding: 1.7rem 1.6rem 1.5rem; background: var(--predawn); }
.band--light .step, .band--lift .step { background: var(--fog); }
.step__n { font-size: 0.8rem; color: var(--amber); }
.band--light .step__n, .band--lift .step__n { color: var(--c-muted); }
.step__k { margin-top: 0.8rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.03em; }
.step__v { margin-top: 0.55rem; font-size: 0.975rem; line-height: 1.55; color: var(--c-muted); flex: 1; }
.step__rung { margin-top: 1.25rem; font-family: var(--font-mono); font-size: 0.74rem; color: var(--c-fg); padding-top: 0.9rem; border-top: 1px solid var(--c-hair); }

/* ---- Anatomy of a finding (a document drawn in CSS) ------------------------- */
.finding {
  margin: 0; background: #fff; color: var(--ink);
  border: 1px solid var(--hair-strong-light); border-radius: var(--radius);
  box-shadow: 0 30px 60px -36px rgba(10, 15, 31, 0.45);
  overflow: hidden;
}
.finding__bar { display: flex; justify-content: space-between; gap: 1rem; padding: 0.8rem 1.3rem; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 0.74rem; }
.finding__tag { color: var(--amber); }
.finding__head { padding: 1.4rem 1.3rem 1.1rem; border-bottom: 1px solid var(--hair-on-light); }
.finding__no { display: block; font-size: 0.78rem; color: var(--slate-on-light); }
.finding__title { display: block; margin-top: 0.4rem; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.finding__body { margin: 0; padding: 0.4rem 1.3rem; }
.finding__row { display: grid; gap: 0.2rem; padding-block: 0.95rem; border-bottom: 1px solid var(--hair-on-light); }
.finding__row:last-child { border-bottom: 0; }
@media (min-width: 560px) { .finding__row { grid-template-columns: 8.5rem 1fr; gap: 1.2rem; } }
.finding dt { font-family: var(--font-mono); font-size: 0.74rem; color: var(--slate-on-light); padding-top: 0.2rem; }
.finding dd { margin: 0; font-size: 0.975rem; line-height: 1.5; }
.finding__foot { padding: 1rem 1.3rem; background: #F4F6FA; border-top: 1px solid var(--hair-on-light); font-size: 0.875rem; line-height: 1.45; color: var(--slate-on-light); }

/* ---- Fit / not fit ------------------------------------------------------------ */
.fit { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .fit { grid-template-columns: 1fr 1fr; } }
.fit__col { padding: 1.8rem 1.7rem; border: 1px solid var(--c-hair); }
.fit__h { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.025em; }
.fit__list { margin-top: 1.2rem; display: grid; gap: 0.95rem; }
.fit__list li { position: relative; padding-left: 1.7rem; line-height: 1.5; font-size: 0.99rem; }
.fit__col--yes .fit__list li::before {
  content: ''; position: absolute; left: 0; top: 0.5em; width: 0.85rem; height: 0.48rem;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber); transform: rotate(-45deg) translateY(-30%);
}
.fit__col--no .fit__list li { color: var(--c-muted); }
.fit__col--no .fit__list li::before, .fit__col--no .fit__list li::after {
  content: ''; position: absolute; left: 0.1rem; top: 0.78em; width: 0.8rem; height: 2px; background: var(--c-leak);
}
.fit__col--no .fit__list li::before { transform: rotate(45deg); }
.fit__col--no .fit__list li::after  { transform: rotate(-45deg); }

/* ---- FAQ (native <details>, no JS) ---------------------------------------------- */
.faq { border-top: 1px solid var(--c-hair); max-width: 52rem; }
.faq__item { border-bottom: 1px solid var(--c-hair); }
.faq__q {
  list-style: none; cursor: pointer; position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before, .faq__q::after {
  content: ''; position: absolute; right: 0.2rem; top: 50%; width: 1rem; height: 2px; background: var(--amber);
  transition: transform 0.3s var(--ease);
}
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] .faq__q::after { transform: rotate(0deg); }
.faq__a { padding: 0 3rem 1.6rem 0; max-width: 62ch; line-height: 1.6; color: var(--c-muted); }
.faq__item[open] .faq__a { color: var(--c-fg); }

/* ---- Three ways to start (progressive commitment) --------------------------------- */
.start3 { display: grid; gap: 1.1rem; margin-top: 3.25rem; }
@media (min-width: 900px) { .start3 { grid-template-columns: repeat(3, 1fr); } }
.start3__card {
  display: flex; flex-direction: column; gap: 0.7rem; padding: 1.6rem 1.5rem; text-decoration: none; color: var(--c-fg);
  border: 1px solid var(--c-hair); transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.start3__card:hover { border-color: var(--amber); transform: translateY(-3px); }
.start3__card--hot { border-color: color-mix(in srgb, var(--amber) 60%, transparent); }
.start3__k { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.025em; }
.start3__v { color: var(--c-muted); font-size: 0.96rem; line-height: 1.5; flex: 1; }
.start3__go { font-weight: 600; font-size: 0.95rem; border-bottom: 1px solid var(--amber); align-self: flex-start; padding-bottom: 1px; }

/* ---- Services: chooser table ------------------------------------------------------- */
.chooser { margin-top: 2.5rem; border-top: 1px solid var(--c-hair); }
.chooser__row { display: grid; gap: 0.6rem; padding-block: 1.4rem; border-bottom: 1px solid var(--c-hair); align-items: baseline; }
@media (min-width: 900px) { .chooser__row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; } }
.chooser__sit { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); letter-spacing: -0.02em; line-height: 1.3; text-wrap: balance; }
.chooser__to { font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--amber); justify-self: start; padding-bottom: 1px; }
.chooser__to:hover { background: var(--amber); color: var(--predawn); }
.chooser__row--soft .chooser__sit { color: var(--c-muted); }
.chooser__row--soft .chooser__to { font-weight: 500; color: var(--c-muted); }
.rung-full__cta .btn { min-width: 0; }

/* ---- Sprint page: timeline + price ----------------------------------------------------- */
.timeline { margin-top: 2.5rem; border-top: 1px solid var(--c-hair); counter-reset: none; }
.timeline__item { display: grid; gap: 0.6rem; padding-block: 1.8rem; border-bottom: 1px solid var(--c-hair); }
@media (min-width: 760px) { .timeline__item { grid-template-columns: 9rem minmax(0, 1fr); gap: 2rem; } }
.timeline__d { font-size: 0.85rem; color: var(--c-muted); padding-top: 0.45rem; }
.timeline__k { font-family: var(--font-display); font-size: clamp(1.25rem, 1rem + 0.8vw, 1.6rem); font-weight: 500; letter-spacing: -0.025em; }
.timeline__v { margin-top: 0.5rem; max-width: 60ch; color: var(--c-muted); line-height: 1.6; }

.pricebox { display: grid; gap: 2rem; padding: clamp(1.6rem, 1rem + 2vw, 2.6rem); border: 1px solid var(--c-hair); }
@media (min-width: 900px) { .pricebox { grid-template-columns: auto minmax(0, 1fr); gap: 3.5rem; align-items: center; } }
.pricebox__v { font-size: clamp(2.2rem, 1.4rem + 3.4vw, 4rem); font-weight: 500; line-height: 1; letter-spacing: -0.04em; color: var(--amber); }
.pricebox__k { margin-top: 0.7rem; color: var(--c-muted); font-size: 0.95rem; }
.pricebox__txt p + p { margin-top: 1rem; }

.linklist { margin-top: 1.75rem; display: grid; gap: 0.3rem; max-width: 52rem; }
.linklist a { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--c-hair); text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -0.015em; }
.linklist a:hover span:last-child { text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 4px; }

/* ---- Leak Check ------------------------------------------------------------------------ */
.quiz { display: grid; gap: 1.1rem; max-width: 52rem; }
.qcard { margin: 0; min-width: 0; padding: 1.6rem 1.5rem 1.4rem; border: 1px solid var(--c-hair); background: rgba(255,255,255,0.55); }
.qcard--miss { border-color: var(--c-leak); }
.qcard__q { float: left; width: 100%; display: flex; gap: 0.9rem; padding: 0; margin-bottom: 0; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.qcard__n { flex: none; font-size: 0.8rem; color: var(--c-muted); padding-top: 0.4rem; }
.qcard__opts { clear: both; display: grid; gap: 0.6rem; padding-top: 1.1rem; }
@media (min-width: 820px) { .qcard__opts { grid-template-columns: repeat(3, 1fr); } }
.qopt { position: relative; }
.qopt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.qopt label {
  display: flex; align-items: center; height: 100%; padding: 0.9rem 1rem; font-size: 0.95rem; line-height: 1.35;
  border: 1px solid var(--hair-strong-light); background: #fff; cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.qopt:hover label { border-color: var(--ink); }
.qopt input:checked + label { border-color: var(--ink); background: color-mix(in srgb, var(--amber) 22%, #fff); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.qopt input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 3px; }
.quiz__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 0.8rem; }
.quiz__count { font-family: var(--font-mono); }

.scorebars { display: grid; gap: 1.1rem; max-width: 46rem; }
.scorebar { display: grid; grid-template-columns: 7.5rem 1fr 3.6rem; gap: 1rem; align-items: center; }
.scorebar__k { font-family: var(--font-display); font-size: 1.1rem; font-weight: 500; letter-spacing: -0.02em; }
.scorebar__track { height: 10px; background: var(--hair-on-light); border-radius: 99px; overflow: hidden; }
.scorebar__track i { display: block; height: 100%; background: var(--slate-on-light); border-radius: 99px; transition: width 0.9s var(--ease-out, ease); }
.scorebar--top .scorebar__track i { background: linear-gradient(90deg, #FFB547, #FF7A45); }
.scorebar--top .scorebar__k { color: var(--ink); }
.scorebar__v { font-size: 0.82rem; color: var(--c-muted); text-align: right; }

.takeaway { padding: 1.6rem 1.7rem; border: 1px solid var(--c-hair); border-left: 3px solid var(--amber); background: #fff; margin-bottom: 1.1rem; }
.takeaway__k { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.03em; }
.takeaway__why { margin-top: 0.6rem; line-height: 1.55; }
.takeaway__do { margin-top: 0.8rem; line-height: 1.55; color: var(--c-muted); }
.takeaway__do strong { color: var(--c-fg); }

.lc-next { display: grid; gap: 1.25rem; margin-top: 3rem; }
@media (min-width: 900px) { .lc-next { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.lc-next__card { padding: 1.8rem 1.7rem; border: 1px solid var(--c-hair); background: rgba(255,255,255,0.55); display: flex; flex-direction: column; gap: 0.9rem; }
.lc-next__card--hot { border-color: var(--ink); background: #fff; }
.lc-next__card .form { max-width: none; }
.form--tight .field { margin-bottom: 1rem; }

/* ---- Sticky CTA ----------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed; z-index: 60; left: 0.75rem; right: 0.75rem; bottom: 0.75rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.9rem;
  padding: 0.65rem 0.7rem 0.65rem 1.1rem;
  background: rgba(7, 10, 21, 0.92); color: #fff;
  border: 1px solid rgba(214, 224, 255, 0.18); border-radius: 999px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
  transform: translateY(140%); opacity: 0; transition: transform 0.5s var(--ease), opacity 0.5s var(--ease);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-on { transform: none; opacity: 1; }
.sticky-cta__t { font-size: 0.92rem; font-weight: 500; display: none; }
.sticky-cta__a { display: flex; align-items: center; gap: 0.9rem; margin-left: auto; }
.sticky-cta__link { color: #fff; font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid var(--amber); padding-bottom: 1px; white-space: nowrap; }
.sticky-cta__btn { padding: 0.7rem 1.15rem; font-size: 0.9rem; white-space: nowrap; }
@media (min-width: 760px) {
  .sticky-cta { left: auto; right: 1.25rem; bottom: 1.25rem; max-width: 34rem; }
  .sticky-cta__t { display: block; }
}
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }

/* ---- Form on a dark band ------------------------------------------------------------------------ */
.form--on-dark .field__label { color: var(--fog); }
.form--on-dark .field__hint { color: var(--slate-on-dark); }
.form--on-dark .form__note { color: var(--slate-on-dark); }
.form--on-dark .field__error { color: var(--leak-on-dark); }
.form--on-dark .btn--primary { background: var(--amber); color: var(--predawn); }
