/* Custody Craft — calculator-first spousal support landing page */
.calc-lp {
    --calc-navy: #0f172a;
    --calc-ink: #111827;
    --calc-muted: #5b6473;
    --calc-border: rgba(15, 23, 42, 0.12);
    --calc-soft: #f8fafc;
    --calc-indigo: #eef2ff;
    --calc-green: #15803d;
    padding: 0;
    color: var(--calc-ink);
}

.calc-lp section { border-bottom: 1px solid rgba(15, 23, 42, 0.09); }
.calc-lp .container { width: min(1180px, calc(100% - 40px)); }
.calc-lp p { padding: 0; }
.calc-lp h1,
.calc-lp h2,
.calc-lp h3 { margin: 0; padding: 0; }

.calc-eyebrow {
    margin-bottom: 0.8rem !important;
    color: #596579;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.1em;
    line-height: 1.35 !important;
    text-transform: uppercase;
}

.calc-hero {
    padding: clamp(3.5rem, 8vw, 7rem) 0;
    background: linear-gradient(145deg, #edf1ff 0%, #f6f8ff 55%, #ffffff 100%);
}

.calc-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.82fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.calc-hero h1 {
    max-width: 700px;
    font-family: Merriweather, "Times New Roman", serif;
    font-size: clamp(2.7rem, 6vw, 5.4rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
    color: #07152f;
}

.calc-hero__lead {
    max-width: 680px;
    margin: 1.5rem 0 1.25rem !important;
    color: #465267;
    font-size: clamp(1.05rem, 1.8vw, 1.23rem) !important;
    line-height: 1.75 !important;
}

.calc-hero__promise {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.calc-hero__promise span {
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    background: rgba(255,255,255,0.7);
    color: #334155;
    font-size: 0.86rem;
    font-weight: 700;
}

.calc-start-button { border: 0; cursor: pointer; }
.calc-hero__fineprint {
    margin-top: 0.75rem !important;
    color: #667085;
    font-size: 0.86rem !important;
}

.calc-hero__card {
    position: relative;
    padding: clamp(1rem, 3vw, 2rem);
}

.calc-hero__card::before,
.calc-hero__card::after {
    content: "";
    position: absolute;
    border-radius: 30px;
    background: rgba(255,255,255,0.55);
    border: 1px solid rgba(15,23,42,0.08);
}

.calc-hero__card::before { inset: 8% 2% 0 12%; transform: rotate(5deg); }
.calc-hero__card::after { inset: 4% 8% 4% 5%; transform: rotate(-3deg); }

.calc-mini-window {
    position: relative;
    z-index: 2;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.15);
}

.calc-mini-window__bar { display: flex; gap: 7px; margin-bottom: 2.4rem; }
.calc-mini-window__bar i { width: 9px; height: 9px; border-radius: 50%; background: #cbd5e1; }
.calc-mini-window__label { color: #64748b; font-size: 0.78rem !important; font-weight: 800 !important; letter-spacing: 0.08em; text-transform: uppercase; }
.calc-mini-window strong { display: block; margin: 0.65rem 0; color: #0f172a; font-size: clamp(2.6rem, 6vw, 4.5rem); line-height: 1; letter-spacing: -0.07em; }
.calc-mini-window > p:last-of-type { color: #64748b; font-size: 0.93rem !important; }
.calc-mini-window__meter { height: 10px; margin: 1.5rem 0; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.calc-mini-window__meter span { display: block; width: 68%; height: 100%; border-radius: inherit; background: #111827; }
.calc-mini-window ul { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.calc-mini-window li { position: relative; margin: 0; padding-left: 1.45rem; color: #334155; font-size: 0.93rem; }
.calc-mini-window li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 900; }

.calculator-section { padding: clamp(3.5rem, 8vw, 6rem) 0; background: #fff; }
.calculator-shell { max-width: 900px !important; }
.calculator-header { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 1.8rem; }
.calculator-header h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; color: #07152f; }
.calculator-progress { min-width: 220px; color: #64748b; font-size: 0.82rem; font-weight: 700; text-align: right; }
.calculator-progress__track { width: 100%; height: 7px; margin-top: 0.55rem; overflow: hidden; border-radius: 999px; background: #e5e7eb; }
.calculator-progress__track span { display: block; width: 12.5%; height: 100%; border-radius: inherit; background: #111827; transition: width 240ms ease; }

.estimator {
    overflow: hidden;
    border: 1px solid var(--calc-border);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
}

.estimator-stage { min-height: 350px; padding: clamp(1.6rem, 5vw, 3.5rem); }
.estimator-step fieldset { min-width: 0; border: 0; }
.estimator-step legend { max-width: 700px; color: #0f172a; font-family: "Merriweather", serif; font-size: clamp(1.65rem, 4vw, 2.45rem); font-weight: 700; line-height: 1.22; }
.field-help { margin: 0.75rem 0 1.5rem !important; color: #64748b; font-size: 0.98rem !important; }
.field-error { min-height: 1.5rem; margin-top: 0.8rem !important; color: #b42318; font-size: 0.88rem !important; font-weight: 650 !important; }

.money-field {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    max-width: 620px;
    overflow: hidden;
    border: 2px solid #cbd5e1;
    border-radius: 18px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}
.money-field:focus-within { border-color: #111827; box-shadow: 0 0 0 5px rgba(17,24,39,.08); }
.money-field__symbol { padding-left: 1.25rem; color: #334155; font-size: 1.45rem; font-weight: 800; }
.money-field input { min-width: 0; width: 100%; padding: 1.15rem 0.8rem; border: 0; outline: 0; color: #0f172a; font: inherit; font-size: 1.45rem; font-weight: 750; }
.money-field__suffix { padding-right: 1.2rem; color: #64748b; font-size: 0.88rem; white-space: nowrap; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; margin-top: 1.6rem; }
.choice-grid--three { grid-template-columns: repeat(3, minmax(0,1fr)); }
.choice-card { position: relative; display: block; cursor: pointer; }
.choice-card input { position: absolute; opacity: 0; pointer-events: none; }
.choice-card span { display: flex; min-height: 116px; padding: 1.25rem; border: 2px solid #e2e8f0; border-radius: 18px; flex-direction: column; justify-content: center; background: #fff; transition: all 160ms ease; }
.choice-card strong { color: #0f172a; font-size: 1.02rem; }
.choice-card small { display: block; margin-top: 0.35rem; color: #64748b; font-size: 0.82rem; line-height: 1.5; }
.choice-card:hover span { border-color: #94a3b8; transform: translateY(-2px); }
.choice-card input:focus-visible + span { outline: 3px solid #ffbf47; outline-offset: 3px; }
.choice-card input:checked + span { border-color: #111827; background: #f8fafc; box-shadow: inset 0 0 0 1px #111827; }

.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.85rem; margin-top: 1.6rem; }
.check-grid label { position: relative; display: flex; align-items: center; gap: 0.8rem; min-height: 64px; padding: 0.95rem 1rem; border: 1px solid #dbe1ea; border-radius: 14px; cursor: pointer; }
.check-grid label:hover { border-color: #94a3b8; }
.check-grid input { width: 20px; height: 20px; accent-color: #111827; }
.check-grid span { color: #334155; font-size: 0.92rem; font-weight: 650; }

.estimator-actions { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem clamp(1.4rem, 5vw, 3.5rem); border-top: 1px solid var(--calc-border); background: #f8fafc; }
.estimator-back,
.result-restart { border: 0; background: transparent; color: #334155; font: inherit; font-weight: 750; text-decoration: underline; cursor: pointer; }
.estimator-back:disabled { opacity: 0.35; cursor: not-allowed; }
.estimator-next { border: 0; cursor: pointer; }

.estimate-loading { padding: clamp(3rem, 8vw, 5rem); border: 1px solid var(--calc-border); border-radius: 28px; text-align: center; box-shadow: 0 24px 70px rgba(15,23,42,.08); }
.estimate-loading__spinner { width: 54px; height: 54px; margin: 0 auto 1.4rem; border: 5px solid #e2e8f0; border-top-color: #111827; border-radius: 50%; animation: calcSpin .85s linear infinite; }
.estimate-loading h2 { font-family: Merriweather, "Times New Roman", serif; font-size: clamp(1.8rem, 4vw, 2.7rem); }
.estimate-loading p { margin-top: 0.7rem !important; color: #64748b; font-size: 1rem !important; }
.estimate-loading__bar { max-width: 430px; height: 8px; margin: 1.5rem auto 0; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.estimate-loading__bar span { display: block; width: 35%; height: 100%; border-radius: inherit; background: #111827; animation: calcLoad 1.35s ease-in-out infinite; }
@keyframes calcSpin { to { transform: rotate(360deg); } }
@keyframes calcLoad { 0% { transform: translateX(-120%); } 100% { transform: translateX(380%); } }

.estimate-result { overflow: hidden; border: 1px solid var(--calc-border); border-radius: 28px; box-shadow: 0 28px 80px rgba(15,23,42,.12); }
.estimate-result__top { display: grid; grid-template-columns: 1fr 230px; gap: 2rem; align-items: center; padding: clamp(1.7rem,5vw,3.2rem); background: linear-gradient(145deg,#f8fafc,#eef2ff); }
.estimate-result__top h2 { color: #07152f; font-size: clamp(2.7rem, 7vw, 4.8rem); letter-spacing: -0.06em; line-height: 1; }
.estimate-result__top h2 small { font-size: 1rem; letter-spacing: 0; }
.estimate-result__top p:last-child { max-width: 620px; margin-top: 0.9rem !important; color: #586477; font-size: 0.95rem !important; }
.estimate-confidence { padding: 1.2rem; border: 1px solid rgba(15,23,42,.1); border-radius: 18px; background: rgba(255,255,255,.72); }
.estimate-confidence > span { display: block; color: #64748b; font-size: 0.75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.estimate-confidence strong { display: block; margin: .3rem 0 .7rem; font-size: 1.25rem; }
.estimate-confidence > div { height: 8px; overflow: hidden; border-radius: 999px; background: #dbe2ea; }
.estimate-confidence i { display: block; width: 40%; height: 100%; border-radius: inherit; background: #111827; }

.result-email-note { margin: clamp(1rem,3vw,1.5rem) clamp(1.5rem,4vw,2.5rem) 0; padding: .8rem 1.1rem !important; border: 1px solid rgba(21,128,61,.25); border-radius: 12px; background: #f0fdf4; color: var(--calc-green); font-size: .88rem !important; font-weight: 700 !important; }
.result-email-note::before { content: "✓ "; }

.complexity-alert { display: flex; gap: 1rem; margin: clamp(1.5rem,4vw,2.5rem); padding: 1.25rem; border: 1px solid #d7ebe2; border-radius: 18px; background: #f4fbf8; }
.complexity-alert__icon { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #15803d; color: #fff; font-weight: 900; }
.complexity-alert h3 { font-size: 1.05rem; }
.complexity-alert p { margin-top: .25rem !important; color: #475569; font-size: .9rem !important; }
.estimate-detail-toggle { margin: 0 clamp(1.5rem,4vw,2.5rem) clamp(1rem,3vw,1.5rem); }
.estimate-detail-toggle summary { color: #334155; font-weight: 750; font-size: .92rem; cursor: pointer; list-style: none; }
.estimate-detail-toggle summary::-webkit-details-marker { display: none; }
.estimate-detail-toggle summary::before { content: "▸ "; color: #64748b; }
.estimate-detail-toggle[open] summary::before { content: "▾ "; }
.estimate-detail-list { margin-top: .85rem; padding: .9rem 1rem; border: 1px solid var(--calc-border); border-radius: 14px; background: #fff; }
.estimate-detail-row { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; border-bottom: 1px solid rgba(15,23,42,.06); color: #334155; font-size: .88rem; }
.estimate-detail-row:last-of-type { border-bottom: 0; }
.estimate-detail-row strong { color: #0f172a; text-align: right; }
.estimate-detail-warning { margin-top: .75rem !important; color: #92400e; font-size: .82rem !important; }

.estimate-error { padding: clamp(2.5rem,7vw,4rem); border: 1px solid var(--calc-border); border-radius: 28px; text-align: center; background: #fff; box-shadow: 0 24px 70px rgba(15,23,42,.08); }
.estimate-error h2 { font-family: Merriweather, "Times New Roman", serif; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: #07152f; }
.estimate-error p { margin: .75rem 0 1.4rem !important; color: #64748b; font-size: .98rem !important; }

.result-factors { padding: 0 clamp(1.5rem,4vw,2.5rem) clamp(1.5rem,4vw,2.5rem); }
.result-factors h3 { margin-bottom: 1rem; font-size: 1.2rem; }
.result-factors ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem 1.2rem; margin: 0; padding: 0; list-style: none; }
.result-factors li { position: relative; margin: 0; padding-left: 1.45rem; color: #334155; font-size: .92rem; }
.result-factors li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 900; }
.result-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: 1.4rem clamp(1.5rem,4vw,2.5rem); border-top: 1px solid var(--calc-border); background: #f8fafc; }
.result-guarantee { padding: 0 clamp(1.5rem,4vw,2.5rem) 1.5rem !important; background: #f8fafc; color: #64748b; font-size: .82rem !important; }

.comparison-section { padding: clamp(4rem,8vw,7rem) 0; background: #f8fafc; }
.section-heading { max-width: 820px; margin: 0 auto 3rem; text-align: center; }
.section-heading h2 { font-family: Merriweather, "Times New Roman", serif; font-size: clamp(2.1rem,5vw,3.8rem); line-height: 1.08; color: #07152f; }
.section-heading > p:last-child { max-width: 740px; margin: 1rem auto 0 !important; color: #586477; font-size: 1.02rem !important; line-height: 1.75 !important; }
.comparison-card { max-width: 950px; margin: 0 auto; overflow: hidden; border: 1px solid var(--calc-border); background: #fff; box-shadow: 0 18px 55px rgba(15,23,42,.08); }
.comparison-card__head,
.comparison-card__row { display: grid; grid-template-columns: 1fr 1fr; }
.comparison-card__head { background: #0f172a; color: #fff; font-weight: 800; }
.comparison-card__head > div,
.comparison-card__row > div { padding: 1.15rem 1.35rem; }
.comparison-card__head > div:first-child,
.comparison-card__row > div:first-child { border-right: 1px solid rgba(15,23,42,.12); }
.comparison-card__row { border-top: 1px solid rgba(15,23,42,.1); }
.comparison-card__row > div:first-child { color: #64748b; }
.comparison-card__row > div:last-child { color: #0f172a; font-weight: 700; }

.decision-section { padding: clamp(4rem,8vw,7rem) 0; background: #fff; }
.decision-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem,6vw,6rem); align-items: start; }
.decision-grid h2 { font-family: Merriweather, "Times New Roman", serif; font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.08; color: #07152f; }
.decision-lead { margin-top: 1rem !important; color: #586477; font-size: 1.03rem !important; line-height: 1.8 !important; }
.decision-questions { border-top: 1px solid var(--calc-border); }
.decision-questions article { display: grid; grid-template-columns: 58px 1fr; gap: 1rem; align-items: center; padding: 1.35rem 0; border-bottom: 1px solid var(--calc-border); }
.decision-questions span { color: #94a3b8; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.decision-questions p { color: #0f172a; font-size: clamp(1.15rem,2vw,1.45rem) !important; font-weight: 700 !important; }

.report-offer-section { padding: clamp(4rem,8vw,7rem) 0; background: linear-gradient(145deg,#edf1ff,#fff); }
.report-offer { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(2rem,6vw,5rem); align-items: center; }
.report-offer__copy h2 { max-width: 720px; font-family: Merriweather,"Times New Roman",serif; font-size: clamp(2.2rem,5vw,3.8rem); line-height: 1.08; color: #07152f; }
.report-offer__copy > p:last-of-type { margin: 1rem 0 1.5rem !important; color: #586477; font-size: 1rem !important; line-height: 1.8 !important; }
.report-offer__copy ul { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.report-offer__copy li { position: relative; margin: 0; padding-left: 1.55rem; color: #334155; }
.report-offer__copy li::before { content: "✓"; position: absolute; left: 0; color: #10b981; font-weight: 900; }
.report-offer__price { padding: clamp(1.5rem,4vw,2.4rem); border: 1px solid var(--calc-border); border-radius: 28px; background: #fff; text-align: center; box-shadow: 0 24px 70px rgba(15,23,42,.12); }
.report-offer__price p { color: #64748b; font-size: .78rem !important; font-weight: 800 !important; letter-spacing: .08em; text-transform: uppercase; }
.report-offer__price strong { display: block; margin: .7rem 0 .2rem; color: #0f172a; font-size: clamp(3.5rem,7vw,5rem); line-height: 1; letter-spacing: -.07em; }
.report-offer__price > span { display: block; margin-bottom: 1.25rem; color: #64748b; }
.report-offer__price .btn { width: 100%; }
.report-offer__price small { display: block; margin-top: 1rem; color: #64748b; line-height: 1.45; }

.credential-section { padding: 1.6rem 0; background: #fff; }
.credential-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; }
.credential-item { display: flex; justify-content: center; align-items: center; gap: 1rem; }
.credential-item img { width: auto; max-width: 150px; height: 32px; filter: grayscale(65%); object-fit: contain; }
.credential-item--ctec img { height: 38px; }
.credential-item span { color: rgba(8,21,47,.76); font-size: .74rem; font-weight: 800; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.credential-divider { width: 1px; height: 38px; background: linear-gradient(to bottom,transparent,rgba(8,21,47,.25),transparent); }
.calculator-disclaimer { padding: 1.6rem 0; border-bottom: 0 !important; background: #f8fafc; }
.calculator-disclaimer p { color: #64748b; font-size: .78rem !important; line-height: 1.6 !important; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
    .calc-hero__inner,
    .decision-grid,
    .report-offer { grid-template-columns: 1fr; }
    .calc-hero__copy { text-align: center; }
    .calc-hero h1,
    .calc-hero__lead { margin-left: auto !important; margin-right: auto !important; }
    .calc-hero__promise { justify-content: center; }
    .calc-hero__card { width: min(520px,100%); margin: 0 auto; }
    .choice-grid--three { grid-template-columns: 1fr; }
    .choice-card span { min-height: 90px; }
    .estimate-result__top { grid-template-columns: 1fr; }
    .estimate-confidence { max-width: 300px; }
}

@media (max-width: 700px) {
    .calc-lp .container { width: min(100% - 28px, 1180px); }
    .calc-hero { padding: 2.7rem 0 3.2rem; }
    .calc-hero h1 { font-size: clamp(2.45rem,12vw,3.6rem); }
    .calc-hero__promise { display: grid; grid-template-columns: 1fr; }
    .calc-hero__promise span { width: 100%; }
    .calc-hero__card { padding: .4rem; }
    .calculator-header { display: block; }
    .calculator-progress { min-width: 0; margin-top: 1.1rem; text-align: left; }
    .estimator { border-radius: 22px; }
    .estimator-stage { min-height: 390px; padding: 1.5rem; }
    .choice-grid,
    .check-grid,
    .result-factors ul { grid-template-columns: 1fr; }
    .money-field { grid-template-columns: auto 1fr; }
    .money-field__suffix { grid-column: 1 / -1; padding: 0 1.2rem .8rem; }
    .estimator-actions { padding: 1rem 1.25rem; }
    .estimator-next { padding: 13px 18px; font-size: 17px; }
    .estimate-result__top h2 { font-size: clamp(2.4rem,15vw,3.7rem); }
    .result-actions { align-items: stretch; flex-direction: column; }
    .result-actions .btn { width: 100%; text-align: center; }
    .comparison-card__head { display: none; }
    .comparison-card__row { grid-template-columns: 1fr; padding: 1rem; }
    .estimate-detail-row { flex-direction: column; gap: .1rem; }
    .estimate-detail-row strong { text-align: left; }
    .comparison-card__row > div { padding: .35rem 0; border: 0 !important; }
    .comparison-card__row > div:first-child::before { content: "Free: "; color: #475569; font-weight: 800; }
    .comparison-card__row > div:last-child::before { content: "Custody Craft: "; font-weight: 800; }
    .credential-grid { grid-template-columns: 1fr; gap: 1rem; }
    .credential-item { flex-direction: column; text-align: center; }
    .credential-divider { width: 100%; height: 1px; background: linear-gradient(to right,transparent,rgba(8,21,47,.2),transparent); }
}

@media (prefers-reduced-motion: reduce) {
    .estimate-loading__spinner,
    .estimate-loading__bar span { animation: none; }
    * { scroll-behavior: auto !important; }
}
