/* =========================================================================
   PM AI Opportunity Finder — intro, wizard, pills, and report shell.
   Loaded after landing.css. Tokens come from app.css; nothing redefines them.
   ========================================================================= */

/* ---------- Intro: hero -------------------------------------------------- */
.of-intro .of-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem 3rem;
  align-items: start;
}

.of-intro .of-hero__copy { min-width: 0; }

.of-intro .of-hero__label {
  display: inline-block;
  max-width: 360px;
  font-size: 0.8rem;
}

.of-intro .of-hero__title {
  font-size: clamp(2.3rem, 4.8vw, 3.6rem);
  margin: 1.3rem 0 1rem;
}

.of-intro .of-hero__lead {
  font-size: 1.08rem;
  max-width: 62ch;
}

.of-intro .of-hero__for {
  font-weight: 700;
  max-width: 60ch;
}

.of-intro .of-hero__list {
  margin: 1.2rem 0 0;
  padding-left: 1.15rem;
  max-width: 60ch;
}

.of-intro .of-hero__list li { margin-bottom: 0.45rem; }

.of-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-top: 1.5rem;
}

.of-cta-note {
  margin: 0.9rem 0 0;
  font-weight: 600;
  font-size: 0.9rem;
}

.of-privacy {
  margin-top: 1.6rem;
  padding-top: 1.2rem;
  border-top: 2px dashed rgba(17, 17, 17, 0.35);
  font-size: 0.9rem;
  max-width: 62ch;
}

.of-privacy p { margin-bottom: 0.5rem; }
.of-privacy p:last-child { margin-bottom: 0; }

.of-beta-tag { display: inline-block; margin-right: 0.5rem; }

/* Sample ranking card */
.of-hero__sample { min-width: 0; }

.of-sample {
  border: var(--border);
  border-radius: 16px;
  background: var(--report-surface);
  box-shadow: 5px 6px 0 var(--ink);
  padding: 1rem;
  transform: rotate(1.2deg);
}

.of-sample__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.of-sample__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}

.of-sample__caption {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.of-sample .rank { margin-bottom: 8px; }
.of-sample .rank:last-of-type { margin-bottom: 0; }

/* ---------- Intro: sections ---------------------------------------------- */
.of-section { padding: 72px 0; }

.of-section--surface {
  background: var(--report-surface);
  border-top: var(--border);
  border-bottom: var(--border);
}

.of-section__head {
  max-width: 72ch;
  margin-bottom: 2rem;
}

.of-section__title {
  font-size: clamp(1.9rem, 3.8vw, 2.8rem);
  margin: 0.4rem 0 0.8rem;
}

.of-section__lead { font-size: 1.05rem; }

/* Six-step guide */
.of-six {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 2.4rem;
}

.of-six__step {
  border: var(--border);
  border-radius: 14px;
  background: var(--report-surface);
  box-shadow: var(--shadow-hard-sm);
  padding: 0.9rem 0.8rem;
  min-width: 0;
}

.of-six__icon__yellow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-yellow);
  margin-bottom: 0.6rem;
}

.of-six__icon__yellow svg { width: 18px; height: 18px; }

.of-six__icon__pink {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-pink);
  margin-bottom: 0.6rem;
}

.of-six__icon__pink svg { width: 18px; height: 18px; }
.of-six__icon__teal {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-teal);
  margin-bottom: 0.6rem;
}

.of-six__icon__teal svg { width: 18px; height: 18px; }
.of-six__icon__blue {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-blue);
  margin-bottom: 0.6rem;
}

.of-six__icon__blue svg { width: 18px; height: 18px; }
.of-six__icon__lime {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-lime);
  margin-bottom: 0.6rem;
}

.of-six__icon__lime svg { width: 18px; height: 18px; }
.of-six__icon__warning {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-warning);
  margin-bottom: 0.6rem;
}

.of-six__icon__warning svg { width: 18px; height: 18px; }
.of-six__num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.of-six__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.of-six__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  counter-reset: six;
}

.of-six__detail {
  border-top: 2px dashed rgba(17, 17, 17, 0.3);
  padding-top: 0.9rem;
}

.of-six__detail h3 {
  font-size: 1.25rem;
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  margin-bottom: 0.3rem;
}

.of-six__detail h3::before {
  counter-increment: six;
  content: counter(six);
  font-size: 1.25rem;
  color: var(--muted);
}

.of-six__detail p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--muted);
}

/* Scoring + report preview */
.of-scoring {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.4rem 3rem;
  align-items: start;
}

.of-score-block { margin-bottom: 1.5rem; }

.of-score-block h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.of-score-block p {
  margin: 0;
  color: var(--muted);
}

.of-scoring__visuals {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.of-scoring__visuals figure { margin: 0; }

.of-scoring__visuals figcaption {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

/* FAQ + closing */
.of-final {
  background: var(--lemon);
  border-top: var(--border);
}

.of-final__inner {
  padding-top: 64px;
  padding-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 3rem;
  align-items: center;
  justify-content: space-between;
}

.of-final h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  max-width: 22ch;
}

.of-final__actions {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: flex-start;
}

/* ---------- Wizard shell ------------------------------------------------- */
.of-flow__hero {
  background: var(--lemon);
  border-bottom: var(--border);
}

.of-flow__hero-inner {
  padding-top: 26px;
  padding-bottom: 24px;
}

.of-flow__hero-inner .breadcrumbs { margin-bottom: 0.9rem; }

.of-flow__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.of-flow__eyebrow { color: var(--ink); }

.of-flow__progress {
  margin-top: 0.55rem;
  background: #fff;
}

.of-flow__body { padding: 40px 0 64px; }

.of-flow__wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.of-step-title {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 0.8rem;
  padding-bottom: 12px;
}

.of-step-lead {
  color: var(--muted);
  max-width: 72ch;
  font-size: 1.02rem;
}

.of-step-kicker {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.of-step-card {
  background: var(--report-surface);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-hard);
  padding: 1.4rem;
  margin: 1.2rem 0;
}

.of-step-card--accent { background: var(--report-surface-soft); }
.of-step-card h3 { margin-bottom: 0.4rem; }

.of-step-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.4rem;
}

.of-caption {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0.55rem 0 0;
}

.of-inline-notice {
  margin: 1rem 0 0;
  padding: 0.65rem 0.85rem;
  background: var(--report-surface-soft);
  border: 1px solid rgba(17, 17, 17, 0.25);
  border-left: 4px solid var(--report-yellow);
  border-radius: 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  max-width: 72ch;
}

/* ---------- Pill controls ------------------------------------------------ */
.of-fieldset {
  border: 0;
  margin: 0 0 1.4rem;
  padding: 0;
  min-width: 0;
}

.of-legend {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  padding: 0;
  margin-bottom: 0.7rem;
}

.of-help {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.of-required { color: var(--report-danger); }

.of-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.of-pills--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.of-pill {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.of-pill__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.of-pill__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.95rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--report-surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  box-shadow: var(--shadow-hard-sm);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.12s ease;
}

.of-pill:hover .of-pill__label {
  transform: translate(-1px, -1px);
}

.of-pill__input:focus-visible + .of-pill__label {
  outline: 3px solid var(--report-blue);
  outline-offset: 2px;
}

.of-pill__input[type="radio"]:checked + .of-pill__label {
  background: var(--report-pink);
  box-shadow: none;
  transform: translate(1px, 1px);
}

.of-pill__input[type="checkbox"]:checked + .of-pill__label {
  background: var(--report-teal);
  box-shadow: none;
  transform: translate(1px, 1px);
}

.of-pills--warm .of-pill__input:checked + .of-pill__label {
  background: var(--report-yellow);
}

.of-pills--lime .of-pill__input:checked + .of-pill__label {
  background: var(--report-lime);
}

.of-pill__input:checked + .of-pill__label::before {
  content: "\2713";
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.82rem;
}

.of-pill__input:disabled + .of-pill__label {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.of-pill__input:disabled + .of-pill__label,
.of-pill:hover .of-pill__input:disabled + .of-pill__label {
  transform: none;
}

.of-limit-note {
  margin: 0.7rem 0 0;
  padding: 0.55rem 0.8rem;
  border: 2px dashed var(--ink);
  border-radius: 10px;
  background: var(--report-yellow);
  font-size: 0.86rem;
  font-weight: 700;
}

.of-limit-note[hidden] { display: none; }

.of-pill__sub {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--muted);
}

.of-pill__input:checked + .of-pill__label .of-pill__sub { color: var(--ink); }

/* ---------- Ranking list ------------------------------------------------- */
.of-rank-list {
  list-style: none;
  margin: 1.4rem 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.of-rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.9rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--report-surface);
  padding: 0.7rem 0.9rem;
}

.of-rank-row--top { background: var(--report-lime); }

.of-rank-row__num {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
}

.of-rank-row__pain {
  font-family: var(--font-display);
  font-weight: 800;
  min-width: 0;
}

.of-rank-row__meta {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.of-rank-row__score {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
}

/* ---------- Report shell ------------------------------------------------- */
.of-report-body { overflow-x: clip; }

.of-report-hero {
  background: var(--lemon);
  border-bottom: var(--border);
}

.of-report-hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 20px 34px;
}

.of-report-hero__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.of-report-hero__label {
  display: inline-block;
  transform: rotate(-2deg);
}

.of-report-hero h1 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin: 1rem 0 0.4rem;
}

.of-report-hero__sub {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.of-report-hero__instruction {
  max-width: 68ch;
  margin: 0;
}

.of-report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.3rem;
}

.of-inline-form { display: inline; margin: 0; }

.of-report-progress {
  margin-top: 1.4rem;
  max-width: 520px;
}

.of-report-hero .pm-progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.of-report-hero .pm-progress__track {
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.of-report-hero .pm-progress__fill {
  height: 100%;
  background: var(--report-pink);
}

.of-report-body .pm-report__wrap { padding-top: 28px; }

.of-report-body .pm-report__wrap .of-report-hero {
  border: var(--border);
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 1.6rem;
}

.of-score-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.of-report-hero .pm-topbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 0.8rem;
}

/* ---------- Responsive --------------------------------------------------- */
@media (max-width: 1024px) {
  .of-intro .of-hero__grid,
  .of-scoring {
    grid-template-columns: minmax(0, 1fr);
  }

  .of-six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .of-hero__sample { max-width: 520px; }
}

@media (max-width: 768px) {
  .of-six { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .of-section { padding: 52px 0; }

  .of-flow__body { padding: 28px 0 48px; }

  .of-step-card { padding: 1.1rem; }

  .of-final__inner { padding-top: 48px; padding-bottom: 48px; }

  .of-report-actions .btn,
  .of-final__actions .btn { width: 100%; }

  .of-report-actions .of-inline-form,
  .of-final__actions form { display: block; width: 100%; }

  .of-report-actions,
  .of-final__actions { align-items: stretch; }
}

@media (max-width: 520px) {
  .of-six { grid-template-columns: minmax(0, 1fr); }

  .of-rank-row {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .of-rank-row__score {
    grid-column: 2;
    font-size: 1rem;
  }

  .of-pills--grid { grid-template-columns: minmax(0, 1fr); }

  .of-cta-row { flex-direction: column; align-items: stretch; }
  .of-cta-row form { width: 100%; }
  .of-cta-row .btn { width: 100%; }
}

/* ---------- Print -------------------------------------------------------- */
@media print {
  .of-report-hero,
  .of-report-body .pm-topbar,
  .of-report-actions,
  .of-inline-form,
  .of-report-sticker {
    display: none !important;
  }

  .of-report-hero,
  .landing-hero,
  .of-final,
  .of-flow__hero {
    background: #fff !important;
    border: 0 !important;
  }
}
