/* frontend4 — /find/ RESULTS report.
   The report itself is built out of components that already exist:
     · css/pages/growth-plan.css — report card (dark bar, meta grid, growth-score
       row), numbered finding rows + priority pills, meter/ring, expanded rows,
       value panel, timeline, buttons.  Same layout as the Growth Plan results.
     · css/pages/gsm.css        — the offer box (.gsmq/.ofr) and the animated
       "Redeem your offer" getting-started section (.gsm-start/.apl/.gs).
     · css/learn.css            — page chrome, .facts/.fact, .sc-link foot row.
   Only what none of those own lives here. */

/* the report sits on the page background, not in a card — same width as the
   Growth Plan report (.gp-card.gp-results) so every band lines up */
.fnd { max-width: 1040px; margin: 0 auto; }
.fnd-section { margin: 0 0 clamp(30px, 4vw, 48px); }
.fnd-section:last-child { margin-bottom: 0; }

.fnd-section > h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: 'SOFT' 50;
    font-size: clamp(24px, 2.5vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
}
.fnd-lead {
    font-size: 15.5px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 22px;
    max-width: 68ch;
}
.fnd-lead sup { font-size: .6em; vertical-align: top; position: relative; top: .2em; }

/* "Same budget, more profit" — the personalised money read-out */
.fnd-facts { margin: 0 0 12px; }
@media (max-width: 720px) { .fnd-facts { grid-template-columns: 1fr; } }

/* homepage promise, restated at the top of the value panel */
.gp-value-panel .fnd-value-lead {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.65;
    color: var(--ink-soft);
    margin: 0 0 16px;
    max-width: 70ch;
}
.gp-value-panel .fnd-value-lead sup { font-size: .6em; vertical-align: top; position: relative; top: .2em; }

/* the scorecard: wheel + one bar per principle. The bars carry the plain-English
   status rather than a number — the underlying score is a three-band read, and
   "0 / 100" reads harsher than it means. */
.fnd .gp-meter { max-width: 620px; gap: 9px; }
.fnd .gp-meter-row { grid-template-columns: 220px minmax(80px, 1fr) 84px; font-size: 12.5px; }
.fnd .gp-meter-label { color: var(--ink); }
.fnd .gp-meter-val { font-family: var(--font-sans); font-size: 11.5px; font-weight: 500; color: var(--ink-mute); text-align: right; }
.fnd .gp-meter-track { height: 6px; }
@media (max-width: 620px) {
    .fnd .gp-meter-row { grid-template-columns: minmax(0, 1fr) 56px 72px; gap: 6px; font-size: 12px; }
    .fnd .gp-meter-label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; }
    .fnd .gp-meter-val { font-size: 11px; }
}

/* ---- the details gate in front of the report ----
   Fields come from css/pages/gsm.css (.gsm-form) so this form and the prices
   quiz's are the same control; only the width differs. */
.sc-lead { max-width: 620px; }
.sc-lead__form { margin-top: 22px; }
.sc-lead .gsm-form__err { margin-top: 4px; }

/* ---- the one decision under the report: which fix path ----
   A dashed connector runs out of the bottom of the report card into the choice
   box, so the two read as one flow rather than two stacked sections. */
/* the report card carries a 24px bottom margin — pull the connector up over it
   so the dashes start ON the card's edge rather than 24px below it */
.fnd-flow { position: relative; margin-top: -24px; height: calc(clamp(46px, 6vw, 68px) + 24px); display: flex; justify-content: center; }
.fnd-flow::before {
    content: '';
    width: 0;
    border-left: 2px dashed rgba(17,17,16,.28);
    height: 100%;
}
.fnd-flow__dot {
    position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px; border-radius: 50%;
    background: var(--ink);
}

.fnd-path {
    background: #fff;
    border: 1px solid var(--card-border, rgba(17,17,16,.10));
    border-radius: 22px;
    box-shadow: 0 1px 2px rgba(17,17,16,.04), 0 20px 50px -30px rgba(17,17,16,.4);
    padding: clamp(26px, 3.4vw, 40px) clamp(20px, 3vw, 40px);
    text-align: center;
}
.fnd-path__h {
    font-family: var(--font-serif);
    font-weight: 400;
    font-variation-settings: 'SOFT' 50;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 8px;
}
.fnd-path__lead { font-size: 15px; font-weight: 300; line-height: 1.6; color: var(--ink-soft); margin: 0 auto 22px; max-width: 52ch; }
/* the two paths are .sc-opt cards — the same control the five questions use, so
   the last step reads as one more answer to pick */
.fnd-path__opts { max-width: 860px; margin: 0 auto; gap: 14px; }
/* .sc-opt rests on a transparent border (it turns solid when picked) — these
   two are never "picked", so give them a subtle one to sit in */
.fnd-path__opts .sc-opt { align-items: flex-start; border-color: rgba(17,17,16,.12); }
.fnd-path__opts .sc-opt i { margin-top: 2px; }
.fnd-path__opts .sc-opt:hover { border-color: rgba(17,17,16,.32); }
@media (max-width: 560px) { .fnd-path__opts { grid-template-columns: 1fr; } }

/* the report's finding rows are a read-out here, not links — /fixplan/ owns the detail */
.gp-finding-row--static { cursor: default; }

/* foot row (results link · start again · methodology) — last thing on the page.
   The link pill's fixed-width input would push past the page gutter on a phone. */
.fnd-foot { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 4vw, 40px) 0 8px; flex-wrap: wrap; }
.fnd-foot > [data-link-slot] { display: flex; min-width: 0; max-width: 100%; }
.fnd-foot .sc-link { min-width: 0; max-width: 100%; }
.fnd-foot .sc-link__url { min-width: 0; flex: 1 1 auto; width: clamp(110px, 24vw, 340px); }

/* .sc-r__foot sets `display`, which beats the UA's [hidden] rule — it only ever
   shows on the results screen (js/scorecard.js). */
#fnd-foot[hidden] { display: none !important; }
