/* frontend4 — /fixplan/ : the two fix paths off the /find/ growth report.
   Almost everything here is borrowed:
     · css/pages/growth-plan.css — the segmented toggle, expanded rows, sub-boxes,
       status pills, buttons.
     · css/pages/gsm.css        — the offer box (.gsmq/.ofr) and the animated
       "Redeem your offer" section (.gsm-start/.apl/.gs).
     · css/learn.css            — page chrome, the .rs results carousel.
   Only the page frame, the summary strip and the calculating sequence live here. */

.fxp { max-width: 1040px; margin: 0 auto; padding-bottom: clamp(40px, 6vw, 80px); }

/* ---- top row: back to the report + a one-glance recap of the score ---- */
.fxp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 4px 0 18px; }
.fxp-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.fxp-back:hover { color: var(--ink); }
.fxp-back svg { width: 16px; height: 16px; }
.fxp-sum { display: inline-flex; align-items: center; gap: 10px; }
.fxp-sum__score { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.fxp-sum__score b { font-size: 18px; font-weight: 600; }
.fxp-sum__score small { color: var(--ink-mute); }
.fxp-sum__v, .fxp-sum__n {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .01em; text-transform: none;
    color: var(--ink-mute); border: 1px solid rgba(17,17,16,.12); border-radius: 999px; padding: 5px 11px;
}

/* ---- the path toggle: same segmented control as the Growth Plan detail view ---- */
.fxp-toggle { margin: 0 0 clamp(24px, 3vw, 38px); }
.fxp-toggle .gp-segmented { max-width: 460px; margin: 0 auto; }
/* growth-plan.css only knows the grow/diy pair — these are self/price */
.fxp-toggle .gp-segmented[data-active="price"] .gp-seg-highlight { transform: translateX(100%); }

/* the sale countdown belongs to the offer, so it only shows on the price path */
.fxp-page[data-active-path="self"] .fxp-cdbar { display: none; }

/* ---- PATH A · fix it yourself ---- */
.fxp-head { margin: 0 0 clamp(22px, 3vw, 34px); }
.fxp-head h1 {
    font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'SOFT' 50;
    font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; letter-spacing: -0.025em;
    color: var(--ink); margin: 0 0 10px;
}
.fxp-lead { font-size: 15.5px; font-weight: 300; line-height: 1.65; color: var(--ink-soft); margin: 0; max-width: 70ch; }

/* the GROW Methodology feature at the top of the DIY path */
.fxp-meth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 44px);
    align-items: start;
    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(24px, 3vw, 36px);
    margin: 0 0 clamp(28px, 3.6vw, 44px);
}
.fxp-meth__eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .01em; text-transform: none; color: var(--ink-mute); margin: 0 0 10px; }
.fxp-meth__head h2 {
    font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'SOFT' 50;
    font-size: clamp(24px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -0.02em;
    color: var(--ink); margin: 0 0 10px;
}
.fxp-meth__head h2 sup { font-size: .5em; vertical-align: top; position: relative; top: .3em; }
.fxp-meth__lead { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--ink-soft); margin: 0 0 16px; }
.fxp-meth__link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink); }
.fxp-meth__link svg { width: 14px; height: 14px; }
.fxp-meth__link:hover { opacity: .7; }
.fxp-meth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: fxpm; }
.fxp-meth__points li { position: relative; padding-left: 32px; }
.fxp-meth__points li::before {
    counter-increment: fxpm; content: counter(fxpm);
    position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); color: #fff;
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center;
}
.fxp-meth__points b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.fxp-meth__points span { font-size: 13.5px; font-weight: 300; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 760px) { .fxp-meth { grid-template-columns: 1fr; } }

/* numbered step inside each how-to box */
.fxp-step .gp-subbox-title { display: flex; align-items: flex-start; gap: 10px; }
.fxp-step-n {
    flex: 0 0 auto; width: 21px; height: 21px; border-radius: 50%;
    background: rgba(17,17,16,.07); color: var(--ink);
    font-family: var(--font-mono); font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
@media (min-width: 860px) { .fxp-panel .gp-subbox-grid { grid-template-columns: 1fr 1fr; } }

.fxp-nudge { margin-top: 8px; }

/* ---- PATH B · calculating the price ---- */
.fxp-calc {
    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, 42px);
    max-width: 620px;
    margin: clamp(10px, 2vw, 28px) auto;
    transition: opacity .38s ease, transform .38s ease;
}
.fxp-calc.is-out { opacity: 0; transform: translateY(-8px); }
.fxp-calc__h {
    font-family: var(--font-serif); font-weight: 400; font-variation-settings: 'SOFT' 50;
    font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; letter-spacing: -0.02em;
    color: var(--ink); margin: 0 0 20px; text-align: center;
}
.fxp-calc__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fxp-calc__row { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 300; color: var(--ink-mute); opacity: .45; transition: opacity .3s ease, color .3s ease; }
.fxp-calc__row.is-working, .fxp-calc__row.is-done { opacity: 1; }
.fxp-calc__row.is-done { color: var(--ink); }
.fxp-calc__ico { position: relative; flex: 0 0 auto; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; }
.fxp-calc__spin {
    width: 16px; height: 16px; border-radius: 50%;
    border: 2px solid rgba(17,17,16,.14); border-top-color: var(--ink);
    opacity: 0; animation: fxp-spin .7s linear infinite;
}
.fxp-calc__row.is-working .fxp-calc__spin { opacity: 1; }
.fxp-calc__tick { position: absolute; width: 17px; height: 17px; color: var(--status-strong, #16a34a); opacity: 0; transform: scale(.7); transition: opacity .25s ease, transform .25s cubic-bezier(.2,.8,.2,1); }
.fxp-calc__row.is-done .fxp-calc__tick { opacity: 1; transform: scale(1); }
@keyframes fxp-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .fxp-calc__spin { animation: none; } .fxp-calc { transition: none; } }

/* "5 ways GROW can help you" — under the testimonials, above Redeem.
   Reuses the .steps numbered cards from css/learn.css. */
.fxp-ways { padding: clamp(44px, 6vw, 84px) 0; border-top: 1px solid rgba(17,17,16,.08); margin-top: clamp(40px, 5vw, 72px); }
.fxp-ways__list { max-width: 780px; margin: 0 auto; }
/* .steps li b is a block heading by default — here the bold is mid-sentence */
.fxp-ways__list li b { display: inline; font-size: inherit; margin: 0; }
.fxp-ways__list li sup { font-size: .55em; vertical-align: top; position: relative; top: .2em; }

/* intro above the offer box — sets up who GROW are before the price */
.fxp-intro {
    max-width: 74ch;
    margin: 0 auto clamp(24px, 3vw, 38px);
    text-align: center;
    font-size: clamp(16px, 1.15vw, 18.5px);
    font-weight: 300;
    line-height: 1.6;
    color: var(--ink-soft);
}
.fxp-intro b { font-weight: 600; color: var(--ink); }
.fxp-intro sup { font-size: .55em; vertical-align: top; position: relative; top: .2em; }

/* the offer + prices content sit flush inside the panel — the offer runs straight
   into the testimonials with no rule between them, same as on /…/prices/ */
.fxp-panel .gsmq { padding-top: 0; }
/* last thing on the price path — opens the shared contact overlay (js/contact.js) */
.fxp-ask { text-align: center; padding: clamp(40px, 5vw, 72px) 0 0; border-top: 1px solid rgba(17,17,16,.08); margin-top: clamp(40px, 5vw, 72px); }
.fxp-ask__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 18px;
}
.fxp-ask__btn { display: inline-flex; }

@media (max-width: 640px) {
    .fxp-top { padding-bottom: 12px; }
    .fxp-sum__v { display: none; }
}
