/* Instagram DM ROI calculator (2026-10-30). Same language as homepage v9:
   a black frame with the header over it, a white floor, filled tiles with no
   outlines, one lime marker per heading.
   Every rule is scoped to #roi so the older shared stylesheets cannot move it.
   !important appears only where homepage-clean.css uses it on h2. */

#roi {
    --roi-wrap: min(1256px, calc(100% - 2 * clamp(16px, 4vw, 56px)));
    --roi-gap: clamp(64px, 6.2vw, 88px);
    --roi-ink: #000000;
    --roi-lime: #d1fe17;
    --roi-tile: #f4f4f5;
    --roi-line: #e5e7eb;
    --roi-text: #374151;
    --roi-mute: #6b7280;
    --roi-on-ink: #a1a1aa;
    --roi-on-ink-line: rgba(255, 255, 255, 0.16);
    --roi-dm: #3797f0;
    background: #ffffff;
}

#roi .roi-page { display: block; margin: 0; padding: 0; background: #ffffff; }
#roi .roi-page * { box-sizing: border-box; }
#roi .roi-wrap { width: var(--roi-wrap); margin: 0 auto; }
#roi .roi-section { margin: 0; padding: var(--roi-gap) 0 0; background: transparent; }

/* Headings */
#roi .roi-head { max-width: 800px; margin: 0 0 clamp(24px, 2.6vw, 36px); }
#roi .roi-head h2,
#roi .roi-how h2,
#roi .tool-related__title {
    margin: 0 0 12px !important;
    font-size: clamp(30px, 3.1vw, 44px) !important;
    line-height: 1.12 !important;
    letter-spacing: -0.025em;
    font-weight: 500;
    text-align: left !important;
    color: var(--roi-ink) !important;
}
#roi .roi-head p { margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--roi-mute); }
#roi .roi-mark { padding: 0 0.16em; background: var(--roi-lime); color: var(--roi-ink); border-radius: 8px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Buttons */
#roi a.roi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
#roi a.roi-btn--lime { background: var(--roi-lime); color: var(--roi-ink); }
#roi a.roi-btn--lime:hover { background: #ffffff; color: var(--roi-ink); }
#roi a.roi-btn--ink { background: var(--roi-ink); color: #ffffff; }
#roi a.roi-btn--ink:hover { background: var(--roi-lime); color: var(--roi-ink); }
#roi a.roi-btn--white { background: #ffffff; color: var(--roi-ink); }
#roi a.roi-btn--white:hover { background: var(--roi-ink); color: #ffffff; }
#roi a.roi-btn--ghost { background: transparent; color: #ffffff; border-color: var(--roi-on-ink-line); }
#roi a.roi-btn--ghost:hover { background: #ffffff; color: var(--roi-ink); }

/* Hero frame */
#roi .roi-hero {
    margin: 8px 8px 0;
    padding: 96px 0 clamp(24px, 3vw, 40px);
    background: var(--roi-ink);
    border-radius: 24px;
}
#roi .roi-hero__head { margin: 0 auto 28px; text-align: center; }
#roi .roi-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 7px 16px;
    font-size: 13px;
    line-height: 1.3;
    color: #ffffff;
    border: 1px solid var(--roi-on-ink-line);
    border-radius: 999px;
}
#roi .roi-pill i { width: 1px; height: 14px; background: var(--roi-on-ink-line); }
#roi .roi-pill span:last-child { color: var(--roi-on-ink); }
#roi .roi-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 4.3vw, 62px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-align: center;
    color: #ffffff;
}
#roi .roi-hero__sub { margin: 0; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; text-align: center; color: var(--roi-on-ink); }

/* Calculator */
#roi .roi-calc { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
#roi .roi-form,
#roi .roi-result { padding: 24px; background: #ffffff; border-radius: 20px; }
#roi .roi-form { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
#roi .roi-form__title {
    margin: 0 0 2px !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 500;
    text-align: left !important;
    color: var(--roi-ink) !important;
}
#roi .roi-form__note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--roi-mute); }
#roi .roi-sliders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 32px; }
#roi .roi-slider__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
#roi .roi-slider__top label { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 400; color: var(--roi-text); }
#roi .roi-slider__val { display: inline-flex; align-items: baseline; flex: none; font-size: 16px; font-weight: 500; color: var(--roi-ink); font-variant-numeric: tabular-nums; }
#roi .roi-slider__val input {
    width: 3ch;
    margin: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed transparent;
    border-radius: 0;
    outline: 0;
    font: inherit;
    text-align: right;
    color: inherit;
    -moz-appearance: textfield;
}
@supports (field-sizing: content) {
    #roi .roi-slider__val input { width: auto !important; min-width: 1ch; field-sizing: content; }
}
#roi .roi-slider__val input:hover,
#roi .roi-slider__val input:focus { border-bottom-color: var(--roi-ink); }
#roi .roi-slider__val input::-webkit-outer-spin-button,
#roi .roi-slider__val input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#roi .roi-range {
    --p: 50%;
    display: block;
    width: 100%;
    height: 20px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
#roi .roi-range::-webkit-slider-runnable-track {
    height: 3px;
    background: linear-gradient(to right, var(--roi-ink) var(--p), var(--roi-line) var(--p));
    border-radius: 999px;
}
#roi .roi-range::-moz-range-track { height: 3px; background: var(--roi-line); border-radius: 999px; }
#roi .roi-range::-moz-range-progress { height: 3px; background: var(--roi-ink); border-radius: 999px; }
#roi .roi-range::-webkit-slider-thumb {
    width: 16px;
    height: 16px;
    margin-top: -6.5px;
    background: var(--roi-ink);
    border: 0;
    border-radius: 50%;
    -webkit-appearance: none;
}
#roi .roi-range::-moz-range-thumb { width: 16px; height: 16px; background: var(--roi-ink); border: 0; border-radius: 50%; }
#roi .roi-range:focus-visible { outline: 2px solid var(--roi-ink); outline-offset: 2px; border-radius: 8px; }

#roi .roi-accounts { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#roi .roi-accounts label { margin: 0; font-size: 14px; color: var(--roi-text); }
#roi .roi-stepper { display: inline-flex; align-items: center; gap: 4px; }
#roi .roi-stepper button {
    width: 32px;
    height: 32px;
    padding: 0;
    font: inherit;
    font-size: 18px;
    line-height: 1;
    color: var(--roi-ink);
    background: var(--roi-tile);
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
}
#roi .roi-stepper button:hover { background: var(--roi-ink); color: #ffffff; }
#roi .roi-stepper input {
    width: 40px;
    height: 32px;
    margin: 0;
    padding: 0;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: var(--roi-ink);
    background: transparent;
    border: 0;
    outline: 0;
    -moz-appearance: textfield;
}
#roi .roi-stepper input::-webkit-outer-spin-button,
#roi .roi-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

#roi .roi-chips-label { margin: 0 0 8px; font-size: 14px; color: var(--roi-text); }
#roi .roi-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#roi .roi-chip { position: relative; display: inline-flex; margin: 0; cursor: pointer; }
#roi .roi-chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
#roi .roi-chip > span {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--roi-ink);
    background: var(--roi-tile);
    border-radius: 999px;
    transition: background-color 0.15s, color 0.15s;
}
#roi .roi-chip:hover > span { background: var(--roi-line); }
#roi .roi-chip input:checked + span { background: var(--roi-ink); color: #ffffff; }
#roi .roi-chip input:focus-visible + span { outline: 2px solid var(--roi-ink); outline-offset: 2px; }

/* Result */
#roi .roi-result { display: flex; flex-direction: column; color: var(--roi-ink); }
#roi .roi-result__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; }
#roi .roi-result__label { margin: 0; font-size: 15px; color: var(--roi-text); }
#roi .roi-verdict { flex: none; margin: 0; padding: 4px 12px; font-size: 13px; line-height: 1.3; font-weight: 600; color: var(--roi-ink); background: var(--roi-tile); border-radius: 999px; }
#roi .roi-verdict--worth,
#roi .roi-verdict--free { background: var(--roi-ink); color: #ffffff; }
#roi .roi-result__value { margin: 0 0 8px; font-size: clamp(52px, 5.4vw, 76px); line-height: 1; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#roi .roi-result__value span { display: inline-block; padding: 4px 12px 6px; background: var(--roi-lime); border-radius: 12px; }
#roi .roi-result__multiple { min-height: 22px; margin: 0 0 12px; font-size: 15px; line-height: 1.4; color: var(--roi-text); }
#roi .roi-rows { margin: 0 0 16px; padding: 0; list-style: none; }
#roi .roi-rows li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0; padding: 5px 0; font-size: 14px; line-height: 1.35; color: var(--roi-mute); }
#roi .roi-rows li[hidden] { display: none; }
#roi .roi-rows strong { flex: none; font-size: 15px; font-weight: 600; color: var(--roi-ink); font-variant-numeric: tabular-nums; }

#roi .roi-planbox { display: flex; flex-direction: column; margin-top: auto; padding: 18px; background: var(--roi-ink); border-radius: 14px; color: #ffffff; }
#roi .roi-yourplan { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 4px; font-size: 18px; line-height: 1.3; font-weight: 500; color: #ffffff; }
#roi .roi-yourplan[hidden] { display: none; }
#roi .roi-yourplan b { margin-left: 6px; font-weight: 600; color: var(--roi-lime); }
#roi .roi-yourplan__cost { flex: none; font-size: 14px; font-weight: 400; color: var(--roi-on-ink); }
#roi .roi-planbox__reason { margin: 0 0 14px; font-size: 14px; line-height: 1.4; color: var(--roi-on-ink); }
#roi .roi-planbox__upsell { margin: -6px 0 14px; font-size: 14px; line-height: 1.4; color: #ffffff; }
#roi .roi-planbox__upsell[hidden] { display: none; }
#roi .roi-planbox__actions { display: flex; flex-direction: column; gap: 8px; }
#roi .roi-planbox__secondary { align-self: center; font-size: 14px; font-weight: 500; color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
#roi .roi-planbox__secondary:hover { color: var(--roi-lime); }
#roi .roi-planbox__secondary[hidden],
#roi .roi-planbox__note[hidden] { display: none; }
#roi .roi-planbox__note { margin: 0; text-align: center; font-size: 13px; color: var(--roi-on-ink); }
#roi .roi-result__fine { margin: 10px 0 0; font-size: 12px; line-height: 1.4; text-align: center; color: var(--roi-mute); }

/* Plans: filled tiles, the visitor's plan turns black */
#roi .roi-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#roi .roi-plan { display: flex; flex-direction: column; padding: 24px; background: var(--roi-tile); border-radius: 24px; transition: background-color 0.2s, color 0.2s; }
#roi .roi-plan__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 28px; margin: 0 0 10px; }
#roi .roi-plan__name { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--roi-ink); }
#roi .roi-plan__flag { display: none; padding: 4px 10px; font-size: 12px; line-height: 1.2; font-weight: 600; background: var(--roi-lime); color: var(--roi-ink); border-radius: 999px; }
#roi .roi-plan__price { margin: 0; font-size: 48px; line-height: 1.05; font-weight: 500; letter-spacing: -0.03em; color: var(--roi-ink); }
#roi .roi-plan__price small { font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--roi-mute); }
#roi .roi-plan__yearly { min-height: 20px; margin: 4px 0 16px; font-size: 14px; line-height: 1.4; color: var(--roi-mute); }
#roi .roi-plan__peraccount { margin: -12px 0 16px; font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--roi-ink); }
#roi .roi-plan.is-rec .roi-plan__peraccount { color: var(--roi-lime); }
#roi .roi-meter { margin: 0 0 16px; }
#roi .roi-meter__track { height: 6px; margin: 0 0 8px; background: var(--roi-line); border-radius: 999px; overflow: hidden; }
#roi .roi-meter__bar { display: block; height: 100%; min-width: 2px; background: var(--roi-ink); border-radius: 999px; }
#roi .roi-meter__text { margin: 0; font-size: 13px; line-height: 1.35; color: var(--roi-text); }
#roi .roi-plan ul { margin: 0 0 20px; padding: 0; list-style: none; }
#roi .roi-plan li { position: relative; margin: 0; padding: 4px 0 4px 24px; font-size: 15px; line-height: 1.4; color: var(--roi-text); }
#roi .roi-plan li svg { position: absolute; left: 0; top: 7px; width: 16px; height: 16px; color: var(--roi-ink); }
#roi .roi-plan a.roi-btn { width: 100%; margin-top: auto; }
#roi .roi-plan__note { margin: 8px 0 0; text-align: center; font-size: 13px; line-height: 1.35; color: var(--roi-mute); }
#roi .roi-plan.is-rec .roi-plan__note { color: var(--roi-on-ink); }
#roi .roi-plan.is-rec { background: var(--roi-ink); }
#roi .roi-plan.is-rec .roi-plan__flag { display: inline-block; }
#roi .roi-plan.is-rec .roi-plan__name,
#roi .roi-plan.is-rec .roi-plan__price,
#roi .roi-plan.is-rec li svg { color: #ffffff; }
#roi .roi-plan.is-rec .roi-plan__price small,
#roi .roi-plan.is-rec .roi-plan__yearly,
#roi .roi-plan.is-rec .roi-meter__text,
#roi .roi-plan.is-rec li { color: var(--roi-on-ink); }
#roi .roi-plan.is-rec .roi-meter__track { background: var(--roi-on-ink-line); }
#roi .roi-plan.is-rec .roi-meter__bar { background: var(--roi-lime); }
#roi .roi-plan.is-rec a.roi-btn { background: var(--roi-lime); color: var(--roi-ink); }
#roi .roi-plan.is-rec a.roi-btn:hover { background: #ffffff; }

/* Paid features: tiles with drawn product moments */
#roi .roi-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#roi .roi-tile { padding: 24px; background: var(--roi-tile); border-radius: 24px; }
#roi .roi-tile h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--roi-ink); }
#roi .roi-tile p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--roi-text); }

/* Drawn Instagram surfaces */
#roi .roi-key { margin-left: auto; padding: 2px 8px; font-size: 12px; font-weight: 700; background: var(--roi-lime); color: var(--roi-ink); border-radius: 6px; }
#roi .roi-bubble { align-self: flex-start; max-width: 86%; padding: 9px 13px; font-size: 13px; line-height: 1.35; background: #ffffff; color: var(--roi-ink); border-radius: 16px 16px 16px 4px; }
#roi .roi-bubble--out { align-self: flex-end; background: var(--roi-dm); color: #ffffff; border-radius: 16px 16px 4px 16px; }
#roi .roi-mock-btn { align-self: flex-end; padding: 8px 14px; font-size: 13px; font-weight: 600; background: var(--roi-ink); color: #ffffff; border-radius: 8px; }

/* How it works: steps beside a phone */
#roi .roi-how__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 72px); align-items: center; }
#roi .roi-how__lead { margin: 0 0 20px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; color: var(--roi-mute); }
#roi .roi-steps { margin: 0; padding: 0; list-style: none; }
#roi .roi-steps li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 14px; margin: 0; padding: 12px 0; }
#roi .roi-steps b { grid-row: span 2; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; font-size: 14px; font-weight: 600; color: #ffffff; background: var(--roi-ink); border-radius: 50%; }
#roi .roi-steps h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--roi-ink); }
#roi .roi-steps p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--roi-text); }
#roi .roi-how__stage { padding: clamp(24px, 3vw, 40px); background: var(--roi-tile); border-radius: 24px; }
#roi .roi-phone { width: min(100%, 340px); margin: 0 auto; padding: 16px; background: #ffffff; border: 6px solid var(--roi-ink); border-radius: 36px; color: var(--roi-ink); }
#roi .roi-phone__head { display: flex; align-items: center; gap: 10px; padding: 0 0 12px; margin: 0 0 12px; border-bottom: 1px solid #f3f4f6; }
#roi .roi-phone__head img { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
#roi .roi-phone__head b { display: block; font-size: 14px; font-weight: 600; }
#roi .roi-phone__chat { display: flex; flex-direction: column; gap: 8px; }
#roi .roi-phone .roi-bubble { background: #f3f4f6; }
#roi .roi-phone .roi-bubble--out { background: var(--roi-dm); }
#roi .roi-phone .roi-bubble small { display: block; margin: 0 0 4px; font-size: 11px; color: var(--roi-mute); }
#roi .roi-phone .roi-key { display: inline-block; margin: 0; }
#roi .roi-phone__card { align-self: flex-end; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 92%; padding: 10px 10px 10px 14px; font-size: 13px; line-height: 1.3; border: 1px solid var(--roi-line); border-radius: 14px; }
#roi .roi-phone__card b { display: block; font-weight: 600; }
#roi .roi-phone__card small { font-size: 12px; color: var(--roi-mute); }
#roi .roi-phone__card span.roi-mock-btn { flex: none; align-self: center; }

/* Proof */
#roi .roi-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
#roi .roi-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; margin: 0; padding: 24px; background: var(--roi-tile); border-radius: 24px; }
#roi .roi-quote blockquote { margin: 0; padding: 0; border: 0; font-size: clamp(20px, 1.9vw, 26px); line-height: 1.22; font-weight: 500; font-style: normal; letter-spacing: -0.015em; color: var(--roi-ink); }
#roi .roi-quote figcaption { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.3; color: var(--roi-mute); }
#roi .roi-quote figcaption img { flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 50%; }
#roi .roi-quote figcaption b { display: block; font-weight: 600; color: var(--roi-ink); }

/* Method */
#roi .roi-method { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 5vw, 72px); align-items: start; }
#roi .roi-method .roi-head { margin-bottom: 16px; }
#roi .roi-method__text p { margin: 0 0 12px; font-size: 16px; line-height: 1.55; color: var(--roi-text); }
#roi .roi-formula { margin: 0; padding: 8px 24px; list-style: none; background: var(--roi-tile); border-radius: 24px; }
#roi .roi-formula li { margin: 0; padding: 12px 0; }
#roi .roi-formula b { display: block; margin: 0 0 2px; font-size: 15px; line-height: 1.35; font-weight: 600; color: var(--roi-ink); }
#roi .roi-formula span { display: block; font-size: 14px; line-height: 1.4; color: var(--roi-mute); }

/* Compare */
#roi .roi-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
#roi .roi-table th,
#roi .roi-table td { padding: 14px 20px; font-size: 15px; line-height: 1.4; font-weight: 400; text-align: left; vertical-align: top; color: var(--roi-text); background: transparent; border: 0; }
#roi .roi-table thead th { font-size: 16px; font-weight: 500; color: var(--roi-ink); }
#roi .roi-table tbody th { font-weight: 500; color: var(--roi-ink); padding-left: 0; }
#roi .roi-table thead th:first-child { padding-left: 0; }
#roi .roi-table .roi-table__us { background: var(--roi-ink); color: #ffffff; }
#roi .roi-table thead .roi-table__us { border-radius: 16px 16px 0 0; color: var(--roi-lime); font-weight: 600; }
#roi .roi-table tbody tr:last-child .roi-table__us { border-radius: 0 0 16px 16px; }

/* FAQ */
#roi .roi-faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(32px, 5vw, 72px); align-items: start; }
#roi .roi-faq .roi-head { position: sticky; top: 92px; margin: 0; }
#roi .roi-faq__list { display: flex; flex-direction: column; gap: 8px; }
#roi .roi-faq__item { background: var(--roi-tile); border-radius: 14px; }
#roi .roi-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; font-size: 16px; line-height: 1.35; font-weight: 500; color: var(--roi-ink); cursor: pointer; list-style: none; }
#roi .roi-faq__item summary::-webkit-details-marker { display: none; }
#roi .roi-faq__item summary svg { flex: none; width: 18px; height: 18px; transition: transform 0.15s; }
#roi .roi-faq__item[open] summary svg { transform: rotate(45deg); }
#roi .roi-faq__item p { margin: 0; padding: 0 20px 18px; font-size: 15px; line-height: 1.55; color: var(--roi-text); }
#roi .roi-faq__item p a { color: var(--roi-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Shared related tools partial, on this page's grid */
#roi .tool-related { margin: 0; padding: var(--roi-gap) 0 0; background: transparent; }
#roi .tool-related__container { width: var(--roi-wrap); max-width: none; margin: 0 auto; padding: 0; }
#roi .tool-related__title { margin-bottom: clamp(24px, 2.6vw, 36px) !important; }
#roi .tool-related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: none; margin: 0; }
#roi .tool-related__card { display: flex; flex-direction: column; height: 100%; padding: 24px; background: var(--roi-tile); border: 0; border-radius: 24px; box-shadow: none; transition: background-color 0.15s; }
#roi .tool-related__card:hover { background: var(--roi-line); transform: none; box-shadow: none; }
#roi .tool-related__card-name { margin: 0 0 6px; font-size: 18px; line-height: 1.3; font-weight: 500; text-align: left; color: var(--roi-ink); }
#roi .tool-related__card-description { margin: 0 0 16px; font-size: 15px; line-height: 1.45; text-align: left; color: var(--roi-text); }
#roi .tool-related__card-link { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--roi-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Shared closing section, as a centred black frame with no dashboard tile */
#roi .cf-final-cta { margin: var(--roi-gap) 0 0; padding: 0 8px 8px; background: transparent; }
#roi .cf-final-cta__inner { width: 100%; max-width: none; margin: 0; padding: 0; }
#roi .cf-final-cta__card { display: block; max-width: none; padding: clamp(48px, 6.5vw, 96px) 20px; background: var(--roi-ink); border-radius: 24px; text-align: center; }
#roi .cf-final-cta__content { display: block; max-width: 820px; margin: 0 auto; text-align: center; }
#roi .cf-final-cta__visual { display: none; }
#roi .cf-final-cta__title { margin: 0 0 12px !important; font-size: clamp(32px, 4.4vw, 60px) !important; line-height: 1.06 !important; letter-spacing: -0.03em; text-align: center !important; }
#roi .cf-final-cta__subtitle { max-width: 620px; margin: 0 auto 28px; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.5; text-align: center; color: var(--roi-on-ink); }
#roi .cf-final-cta__button { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin: 0 4px 8px; padding: 12px 28px; font-size: 16px; border-radius: 8px; }
#roi .cf-final-cta__button--alt { background: transparent; color: #ffffff; border: 1px solid var(--roi-on-ink-line); }
#roi .cf-final-cta__button--alt:hover { background: #ffffff; color: var(--roi-ink); }

/* Same grid as the other tool pages: heading on the left, content on the right */
@media (min-width: 1081px) {
    #roi .roi-wrap:has(> .roi-tiles),
    #roi .roi-wrap:has(> .roi-quotes),
    #roi .roi-wrap:has(> .roi-table) { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
    #roi .roi-wrap:has(> .roi-tiles) .roi-head,
    #roi .roi-wrap:has(> .roi-quotes) .roi-head,
    #roi .roi-wrap:has(> .roi-table) .roi-head { margin: 0; }
    #roi .roi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #roi .roi-quote blockquote { font-size: 18px; line-height: 1.3; }
    #roi .roi-faq,
    #roi .roi-method { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 80px); }
    #roi .tool-related__container { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 80px); align-items: start; }
    #roi .tool-related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#roi .roi-head h2,
#roi .tool-related__title { font-size: clamp(26px, 2.5vw, 36px) !important; line-height: 1.14 !important; letter-spacing: -0.02em; }

#roi .roi-peek { display: none; }

@media (max-width: 1080px) {
    #roi .roi-calc,
    #roi .roi-plans,
    #roi .roi-quotes,
    #roi .roi-method,
    #roi .roi-faq,
    #roi .roi-how__grid,
    #roi .tool-related__grid { grid-template-columns: minmax(0, 1fr); }
    #roi .roi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #roi .roi-plan.is-rec { order: -1; }
    #roi .roi-faq .roi-head { position: static; margin-bottom: 8px; }
    #roi .roi-peek {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 12px;
        z-index: 90;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 10px 10px 16px;
        background: var(--roi-ink);
        color: #ffffff;
        border: 1px solid var(--roi-on-ink-line);
        border-radius: 12px;
    }
    #roi .roi-peek.is-on { display: flex; }
    #roi .roi-peek span { font-size: 13px; line-height: 1.25; color: var(--roi-on-ink); }
    #roi .roi-peek strong { display: block; font-size: 20px; font-weight: 500; color: #ffffff; }
    #roi .roi-peek a.roi-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
}

@media (max-width: 640px) {
    #roi .roi-hero { padding-top: 84px; }
    #roi .roi-form,
    #roi .roi-result { padding: 18px; }
    #roi .roi-sliders,
    #roi .roi-tiles { grid-template-columns: minmax(0, 1fr); }
    #roi a.roi-btn { white-space: normal; }

    /* The table becomes one stacked card per row */
    #roi .roi-table,
    #roi .roi-table tbody,
    #roi .roi-table tr,
    #roi .roi-table th,
    #roi .roi-table td { display: block; width: 100%; }
    #roi .roi-table thead { display: none; }
    #roi .roi-table tbody { display: flex; flex-direction: column; gap: 8px; }
    #roi .roi-table tr { padding: 16px; background: var(--roi-tile); border-radius: 16px; }
    #roi .roi-table tbody th { padding: 0 0 8px; font-weight: 600; }
    #roi .roi-table td { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; }
    #roi .roi-table td::before { content: attr(data-col); flex: none; color: var(--roi-mute); }
    #roi .roi-table td > span,
    #roi .roi-table td { text-align: right; }
    #roi .roi-table td.roi-table__us { margin-top: 6px; padding: 8px 12px; border-radius: 8px; }
    #roi .roi-table tbody tr:last-child .roi-table__us { border-radius: 8px; }
    #roi .roi-table td.roi-table__us::before { color: var(--roi-on-ink); }
}

@media (prefers-reduced-motion: reduce) {
    #roi .roi-page * { transition: none; }
}
