/*
 * WorthIt / Edition One
 *
 * A quiet editorial interface: no gradients, glass surfaces, floating cards,
 * or decorative blobs. Layout, proportions, typography, and fine rules do
 * the visual work. The same design system supports light and dark modes.
 */

:root {
    color-scheme: light;

    --canvas: #f6f5f1;
    --paper: #fdfcf8;
    --ink: #20221f;
    --muted: #595d57;
    --quiet: #767a72;
    --line: #c9cbc4;
    --line-light: #e0e1db;
    --accent: #874938;
    --accent-contrast: #fffdf8;
    --accent-tint: #efe4df;
    --control: #ffffff;
    --focus: #b56c45;
    --positive: #38654e;
    --positive-wash: #eff4ee;
    --negative: #98502e;
    --negative-wash: #f8efea;
    --number-surface: #e9e8e2;

    --font-sans: "Aptos", "Segoe UI", Arial, sans-serif;
    --font-serif: "Iowan Old Style", "Baskerville", "Libre Baskerville", Georgia, serif;
}

:root[data-theme="dark"] {
    color-scheme: dark;

    --canvas: #151816;
    --paper: #1c201d;
    --ink: #f3efe5;
    --muted: #c2beb4;
    --quiet: #a7aa9f;
    --line: #575b54;
    --line-light: #363b35;
    --accent: #d8a583;
    --accent-contrast: #1b1d1a;
    --accent-tint: #342c27;
    --control: #232823;
    --focus: #e8be88;
    --positive: #b0d9ad;
    --positive-wash: #24352a;
    --negative: #efb189;
    --negative-wash: #382a24;
    --number-surface: #252923;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.58;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible,
.choice:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

button[hidden],
[hidden] {
    display: none !important;
}

.page-shell {
    max-width: 1248px;
    padding: 0 40px;
    margin: 0 auto;
}

.site-header {
    min-height: 95px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--ink);
}

.brand {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.075em;
    line-height: 1;
    white-space: nowrap;
}

.brand span {
    font-style: italic;
    font-weight: 500;
}

.brand b {
    color: var(--accent);
    font-style: normal;
}

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(24px, 5vw, 76px);
}

.header-descriptor,
.masthead-label,
.rail-overline,
.step-count,
.step-overline,
.subhead,
.recommendation-label,
.report-edition,
.site-footer {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.45;
}

.header-descriptor {
    color: var(--quiet);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 0 0 16px;
    border: 0;
    border-left: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    font-size: 0.76rem;
    font-weight: 750;
    letter-spacing: 0.045em;
    white-space: nowrap;
}

.theme-icon {
    position: relative;
    width: 19px;
    height: 19px;
    border: 1.5px solid var(--ink);
    border-radius: 50%;
    overflow: hidden;
}

.theme-icon::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 19px;
    top: -2px;
    right: -2px;
    background: var(--ink);
}

.introduction {
    display: grid;
    grid-template-columns: 1.65fr 0.6fr;
    gap: 56px;
    align-items: end;
    padding: clamp(42px, 7vw, 100px) 0 67px;
}

.masthead-label {
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 0 28px;
}

.masthead-rule {
    display: inline-block;
    width: 28px;
    height: 1px;
    background: var(--accent);
}

.introduction h1,
.step-intro h2,
.report h2 {
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.introduction h1 {
    margin: 0;
    font-size: clamp(3.7rem, 6.9vw, 6.5rem);
}

.introduction h1 em,
.report h2 em {
    font-style: italic;
    font-weight: 400;
}

.intro-note {
    max-width: 255px;
    margin: 0 0 10px;
    padding-left: 19px;
    border-left: 2px solid var(--accent);
    color: var(--muted);
    font-family: var(--font-serif);
    font-size: 1.32rem;
    line-height: 1.45;
}

.experience {
    display: grid;
    grid-template-columns: minmax(210px, 27%) minmax(0, 1fr);
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
}

.rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 70px;
    padding: 51px 30px 45px 0;
    border-right: 1px solid var(--line);
    background: var(--canvas);
}

.rail-overline {
    margin: 0 0 12px;
    color: var(--accent);
}

.rail-intro {
    margin: 0 0 46px;
    font-family: var(--font-serif);
    font-size: 1.53rem;
    line-height: 1.24;
    letter-spacing: -0.025em;
}

.rail-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.rail-steps li {
    display: flex;
    align-items: baseline;
    gap: 16px;
    padding: 17px 0;
    border-top: 1px solid var(--line-light);
    color: var(--quiet);
}

.rail-steps li:last-child {
    border-bottom: 1px solid var(--line-light);
}

.rail-steps span {
    font-size: 0.78rem;
    font-weight: 750;
    font-variant-numeric: tabular-nums;
}

.rail-steps strong {
    font-weight: 550;
    font-size: 0.99rem;
}

.rail-steps li.is-current {
    color: var(--accent);
    border-top-color: var(--accent);
}

.rail-steps li.is-complete {
    color: var(--ink);
}

.rail-footer {
    color: var(--muted);
    max-width: 220px;
}

.rail-note-mark {
    display: block;
    font-family: var(--font-serif);
    color: var(--accent);
    font-size: 2.8rem;
    line-height: 0.8;
}

.rail-footer p {
    margin: 9px 0 0;
    font-size: 0.93rem;
}

.workspace {
    min-width: 0;
    padding: 48px clamp(30px, 5.6vw, 80px) 62px;
}

.step-header,
.report-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 47px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line-light);
}

.step-count,
.report-edition {
    color: var(--accent);
    margin: 0;
}

.step-description {
    color: var(--quiet);
    font-size: 0.92rem;
    margin-right: auto;
}

.step-progress {
    display: flex;
    gap: 5px;
}

.progress-segment {
    width: 24px;
    height: 3px;
    background: var(--line);
}

.progress-segment.active {
    background: var(--accent);
}

.step-intro {
    margin-bottom: 41px;
}

.step-overline {
    color: var(--accent);
    margin: 0 0 12px;
}

.step-intro h2,
.report h2 {
    margin: 0;
    font-size: clamp(2.6rem, 4.7vw, 4.55rem);
}

.helper {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 590px;
}

.field {
    margin-bottom: 28px;
}

.field label,
.choice-group legend {
    display: block;
    margin-bottom: 10px;
    font-weight: 650;
    font-size: 1.06rem;
    line-height: 1.45;
}

.optional-label {
    color: var(--quiet);
    font-weight: 450;
    font-size: 0.87rem;
}

input:not([type="radio"]),
select {
    width: 100%;
    min-height: 60px;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 13px 16px;
    color: var(--ink);
    background: var(--control);
    font-size: 1.16rem;
    font-weight: 500;
}

input::placeholder {
    color: var(--quiet);
    opacity: 1;
}

input[type="radio"] {
    width: 21px;
    height: 21px;
    accent-color: var(--accent);
    flex: 0 0 auto;
    margin: 0;
}

.input-with-prefix,
.input-with-suffix {
    display: flex;
    align-items: center;
    min-height: 60px;
    border: 1px solid var(--line);
    background: var(--control);
}

.input-with-prefix span,
.input-with-suffix span {
    padding: 0 0 0 17px;
    font-size: 1.12rem;
    color: var(--quiet);
    font-weight: 650;
}

.input-with-suffix span {
    padding: 0 17px 0 0;
}

.input-with-prefix input,
.input-with-suffix input {
    min-width: 0;
    border: 0;
    background: transparent;
}

.input-with-prefix:focus-within,
.input-with-suffix:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.input-with-prefix input:focus,
.input-with-suffix input:focus {
    outline: none;
}

.field-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 22px;
}

.field-row .field {
    margin-bottom: 15px;
}

.field-help,
.pair-help {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 9px 0 0;
}

.pair-help {
    margin: 0 0 38px;
}

.purchase-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 32px 0 0;
    padding: 25px 0;
    border-top: 1px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.subhead {
    color: var(--quiet);
}

.purchase-total p {
    margin: 4px 0 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.purchase-total strong {
    font-family: var(--font-serif);
    font-size: clamp(2.15rem, 4vw, 3.8rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.06em;
    font-variant-numeric: lining-nums tabular-nums;
    overflow-wrap: anywhere;
}

.question-panel {
    padding: 32px 0 13px;
    margin-top: 22px;
    border-top: 1px solid var(--line);
}

.question-heading {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.question-number {
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-style: italic;
    color: var(--accent);
    line-height: 1.05;
}

.question-heading h3 {
    margin: 0 0 3px;
    font-family: var(--font-serif);
    font-size: 1.55rem;
    line-height: 1.23;
    font-weight: 500;
}

.question-heading p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.96rem;
}

.compact-field {
    margin-bottom: 20px;
}

.disclosure {
    margin: 12px 0 23px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.disclosure summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 18px 38px 18px 0;
    font-weight: 650;
    font-size: 1.02rem;
}

.disclosure summary::-webkit-details-marker {
    display: none;
}

.disclosure summary::after {
    content: "+";
    position: absolute;
    right: 2px;
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    color: var(--accent);
}

.disclosure[open] summary::after {
    content: "−";
}

.disclosure-body {
    padding: 2px 0 24px;
}

.choice-group {
    border: 0;
    padding: 0;
    margin: 0 0 34px;
    min-width: 0;
}

.choice-group legend {
    margin-bottom: 14px;
    padding: 0;
}

.choice {
    display: flex;
    gap: 13px;
    align-items: center;
    min-height: 58px;
    padding: 13px 4px;
    border-bottom: 1px solid var(--line-light);
    cursor: pointer;
    font-weight: 500;
}

.choice:first-of-type {
    border-top: 1px solid var(--line-light);
}

.choice:hover {
    color: var(--accent);
}

.horizontal-choices .choice {
    display: inline-flex;
    padding-right: 17px;
    margin-right: 7px;
    border-top: 0;
}

.error {
    margin: 10px 0 0;
    min-height: 0;
    color: var(--negative);
    font-weight: 650;
}

.error:empty {
    display: none;
}

.actions,
.report-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding-top: 30px;
    margin-top: 29px;
    border-top: 1px solid var(--line-light);
}

.button {
    min-height: 56px;
    min-width: 170px;
    padding: 12px 23px;
    font-size: 1rem;
    font-weight: 700;
    border: 1px solid var(--ink);
    border-radius: 0;
    transition: background-color 120ms linear, color 120ms linear;
}

.button-primary {
    background: var(--ink);
    color: var(--canvas);
}

.button-primary:hover {
    background: var(--accent);
    color: var(--accent-contrast);
    border-color: var(--accent);
}

.button-secondary {
    background: transparent;
    color: var(--ink);
}

.button-secondary:hover {
    background: var(--number-surface);
}

.button span {
    margin-left: 16px;
}

.report h2 {
    margin: 0 0 14px;
}

.report-topline {
    margin-bottom: 30px;
}

.report-item {
    color: var(--muted);
    margin: 0 0 34px;
    font-size: 1.06rem;
}

.recommendation {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 25px 0 28px;
}

.recommendation.good {
    border-top-color: var(--positive);
}

.recommendation.caution,
.recommendation.warning {
    border-top-color: var(--negative);
}

.recommendation-mark {
    font-family: var(--font-serif);
    font-size: 2rem;
    line-height: 1;
    color: var(--accent);
}

.recommendation.good .recommendation-mark {
    color: var(--positive);
}

.recommendation.caution .recommendation-mark,
.recommendation.warning .recommendation-mark {
    color: var(--negative);
}

.recommendation-label {
    color: var(--quiet);
    margin: 0 0 9px;
}

.recommendation h3 {
    margin: 0 0 10px;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 500;
    line-height: 1.12;
}

.recommendation p:last-child {
    margin: 0;
    color: var(--muted);
}

.report-grid,
.runway-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.report-grid {
    margin: 42px 0 35px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.report-stat {
    padding: 24px 18px 26px 0;
    min-width: 0;
}

.report-stat + .report-stat {
    border-left: 1px solid var(--line);
    padding-left: 22px;
}

.report-stat span,
.runway-card span,
.cost-per-use span {
    display: block;
    color: var(--muted);
    font-size: 0.94rem;
}

.report-stat strong,
.runway-card strong,
.cost-per-use strong {
    display: block;
    margin-top: 8px;
    color: var(--ink);
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 3vw, 2.55rem);
    font-weight: 500;
    letter-spacing: -0.05em;
    line-height: 1.15;
    font-variant-numeric: lining-nums tabular-nums;
    overflow-wrap: anywhere;
}

.report-stat small {
    display: block;
    margin-top: 6px;
    font-size: 0.84rem;
    color: var(--quiet);
}

.result-section {
    padding: 34px 0;
    border-top: 1px solid var(--line);
}

.section-title-row {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 19px;
}

.section-index {
    flex: 0 0 26px;
    color: var(--accent);
    font-size: 0.83rem;
    font-weight: 700;
}

.section-title-row h3 {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.55rem, 2.5vw, 2.05rem);
    line-height: 1.17;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.plain-result {
    padding-left: 44px;
    color: var(--muted);
}

.plain-result-title {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.12rem;
    font-weight: 700;
}

.plain-result.good .plain-result-title {
    color: var(--positive);
}

.plain-result.warning .plain-result-title {
    color: var(--negative);
}

.plain-result p:last-child {
    margin: 0;
}

.section-help,
.value-summary,
.goal-note,
.less-income p,
.disclaimer {
    color: var(--muted);
}

.section-help,
.value-summary {
    margin: 0 0 23px 44px;
}

.runway-grid {
    margin-left: 44px;
    background: var(--number-surface);
}

.runway-card {
    padding: 20px;
}

.runway-card + .runway-card {
    border-left: 1px solid var(--line);
}

.goal-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 12px 44px;
    font-size: 0.93rem;
    font-weight: 700;
}

#goalStatus {
    color: var(--accent);
}

.safety-meter {
    margin-left: 44px;
    height: 7px;
    background: var(--line-light);
}

#safetyMeterFill {
    height: 100%;
    width: 0;
    background: var(--positive);
    transition: width 200ms ease;
}

.safety-meter.below-goal #safetyMeterFill {
    background: var(--negative);
}

.goal-note {
    margin: 10px 0 0 44px;
    font-size: 0.93rem;
}

.less-income {
    margin: 28px 0 0 44px;
    padding-top: 20px;
    border-top: 1px solid var(--line-light);
}

.less-income-header {
    display: flex;
    gap: 14px;
}

.small-icon {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--accent);
    line-height: 1;
}

.less-income h4 {
    margin: 0;
    font-size: 1.06rem;
}

.less-income p {
    margin: 8px 0 0;
}

.cost-per-use {
    margin-left: 44px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 17px 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.cost-per-use strong {
    white-space: nowrap;
}

.math-details {
    margin-top: 10px;
}

.explanation {
    padding: 0 0 14px;
    color: var(--muted);
    font-size: 0.94rem;
}

.explanation p {
    margin: 0 0 12px;
}

.disclaimer {
    margin: 32px 0 0;
    font-size: 0.86rem;
    line-height: 1.55;
}

.report-actions {
    justify-content: flex-start;
}

.site-footer {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 24px;
    color: var(--quiet);
    padding: 24px 0 35px;
    text-transform: uppercase;
}

.site-footer span:last-child {
    text-align: right;
    max-width: 380px;
    text-transform: none;
    font-weight: 500;
    letter-spacing: 0;
    font-size: 0.82rem;
}

@media (max-width: 900px) {
    .page-shell {
        padding: 0 28px;
    }

    .introduction {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 58px 0 48px;
    }

    .intro-note {
        max-width: 540px;
    }

    .experience {
        grid-template-columns: 190px minmax(0, 1fr);
    }

    .workspace {
        padding: 38px 32px 44px;
    }

    .rail {
        padding: 40px 22px 32px 0;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 680px) {
    .page-shell {
        padding: 0 20px;
    }

    .site-header {
        min-height: 78px;
    }

    .brand {
        font-size: 1.85rem;
    }

    .header-descriptor {
        display: none;
    }

    .theme-toggle {
        padding-left: 12px;
        font-size: 0.69rem;
    }

    .introduction {
        padding: 52px 0 39px;
    }

    .introduction h1 {
        font-size: clamp(3.25rem, 10.5vw, 4.85rem);
    }

    .intro-note {
        font-size: 1.15rem;
    }

    .experience {
        display: block;
    }

    .rail {
        padding: 21px 0 18px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        gap: 0;
    }

    .rail-overline,
    .rail-intro,
    .rail-footer {
        display: none;
    }

    .rail-steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .rail-steps li,
    .rail-steps li:last-child {
        display: block;
        padding: 9px 0 0;
        border-top: 2px solid var(--line-light);
        border-bottom: 0;
    }

    .rail-steps li.is-current {
        border-top-color: var(--accent);
    }

    .rail-steps span {
        display: block;
        margin-bottom: 2px;
    }

    .rail-steps strong {
        font-size: 0.81rem;
        line-height: 1.2;
    }

    .workspace {
        padding: 31px 0 43px;
    }

    .step-header {
        margin-bottom: 32px;
    }

    .step-description {
        display: none;
    }

    .step-intro {
        margin-bottom: 30px;
    }

    .step-intro h2,
    .report h2 {
        font-size: clamp(2.65rem, 9.6vw, 3.85rem);
    }

    .purchase-total {
        gap: 5px;
    }

    .report-grid,
    .runway-grid {
        grid-template-columns: 1fr;
    }

    .report-stat + .report-stat,
    .runway-card + .runway-card {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
    }

    .runway-card + .runway-card {
        padding-left: 20px;
    }

    .section-help,
    .value-summary,
    .plain-result,
    .runway-grid,
    .goal-heading,
    .safety-meter,
    .goal-note,
    .less-income,
    .cost-per-use {
        margin-left: 0;
        padding-left: 0;
    }

    .button {
        width: 100%;
    }

    .actions,
    .report-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }

    .site-footer span:last-child {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/*
 * WorthIt v0.9 — The Green Light
 *
 * The new purchase plan follows the existing editorial design system:
 * typography, deliberate whitespace, horizontal rules and no dashboard cards.
 */
.green-light {
    margin: 36px 0 12px;
    padding: 30px 0 26px;
    border-top: 3px double var(--ink);
    border-bottom: 1px solid var(--line);
}

.green-light-heading {
    max-width: 38rem;
    margin-bottom: 27px;
}

.green-light-heading .step-overline {
    margin: 0 0 11px;
    color: var(--accent);
}

.green-light-heading h3 {
    font-family: var(--font-serif);
    font-size: clamp(2.1rem, 3.2vw, 2.95rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin: 0 0 11px;
}

.green-lede {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.green-light-main {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.green-light-main > div:first-child {
    min-width: 0;
    padding: 24px 22px 24px 0;
}

.green-light-detail {
    display: grid;
    grid-template-columns: 1fr;
    align-content: center;
    min-width: 0;
    padding: 21px 12px 22px 24px;
    border-left: 1px solid var(--line);
    gap: 5px;
}

.green-small-label {
    display: block;
    margin-bottom: 8px;
    color: var(--quiet);
    font-size: 0.70rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.green-limit {
    display: block;
    margin: 3px 0 9px;
    font-family: var(--font-serif);
    font-size: clamp(2.45rem, 4.4vw, 4rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 1;
    overflow-wrap: anywhere;
    font-variant-numeric: lining-nums tabular-nums;
}

.green-small-note {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.green-light-detail strong {
    display: block;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.green-gap-label {
    margin-top: 16px;
}

.green-result {
    margin-top: 22px;
    padding: 0 0 0 17px;
    border-left: 3px solid var(--line);
}

.green-result.good {
    border-color: var(--positive);
}

.green-result.caution {
    border-color: var(--negative);
}

.green-result.incomplete {
    border-color: var(--accent);
}

.green-result-heading {
    margin: 0 0 5px;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.15;
}

.green-result p:last-child {
    margin: 0;
    color: var(--muted);
}

.green-goal {
    margin: 26px 0 0;
    padding: 0;
    border: 0;
}

.green-goal legend {
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.green-goal-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.green-goal label {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--line);
    margin-right: -1px;
    padding: 10px 17px;
    font-size: 0.86rem;
    color: var(--muted);
}

.green-goal label:has(input:checked) {
    color: var(--ink);
    background: var(--number-surface);
    border-color: var(--ink);
    z-index: 1;
}

.green-goal input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.green-goal label:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
    z-index: 2;
}

.green-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.text-action {
    min-height: 44px;
    padding: 6px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ink);
    font-weight: 700;
    color: var(--ink);
    text-align: left;
}

.green-save-feedback {
    color: var(--muted);
    font-size: 0.86rem;
}

@media (max-width: 680px) {
    .green-light {
        margin-top: 30px;
    }

    .green-light-main {
        grid-template-columns: 1fr;
    }

    .green-light-main > div:first-child {
        padding: 22px 0 24px;
    }

    .green-light-detail {
        grid-template-columns: 1fr;
        gap: 6px;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: 20px 0;
    }

    .green-goal-choices {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .green-goal label {
        padding: 9px 7px;
        margin-right: -1px;
        text-align: center;
    }
}

/*
 * The Second Thought Check (v1.0)
 *
 * Fits WorthIt's existing editorial system. No floating dashboard cards,
 * gradient fills, or decorative animation; just typography and hairline rules.
 */
.second-thought {
    margin: 42px 0 35px;
    padding: 30px 0;
    border-top: 3px double var(--ink);
    border-bottom: 1px solid var(--line);
}

.second-thought-intro {
    max-width: 42rem;
    margin-bottom: 25px;
}

.second-thought-intro h3 {
    margin: 0 0 12px;
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 3.5vw, 3.15rem);
    font-weight: 500;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.second-thought-intro p:last-child {
    color: var(--muted);
    margin: 0;
}

.thought-choices {
    border: 0;
    padding: 0;
    margin: 0 0 28px;
    min-width: 0;
}

.thought-choices legend {
    padding: 0 0 12px;
    color: var(--muted);
    font-size: 0.91rem;
    font-weight: 650;
}

.thought-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.thought-choice {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 65px;
    padding: 14px 17px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    background: var(--paper);
    cursor: pointer;
    line-height: 1.3;
    font-size: 0.98rem;
}

.thought-choice:hover {
    background: var(--number-surface);
}

.thought-choice:has(input:checked) {
    background: var(--accent-tint);
    box-shadow: inset 3px 0 var(--accent);
    font-weight: 700;
}

.thought-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.thought-choice:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
    z-index: 1;
}

.thought-answer {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.thought-answer-header {
    max-width: 42rem;
}

.thought-answer-header h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: clamp(1.8rem, 2.65vw, 2.5rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin: 0 0 11px;
}

.thought-answer-header p:last-child {
    margin: 0 0 24px;
    color: var(--muted);
}

.thought-options {
    margin: 0 0 22px;
}

.thought-options > p,
.thought-options > label {
    display: block;
    margin: 0 0 10px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--muted);
}

.thought-segmented {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    flex-wrap: wrap;
}

.thought-scenario,
.thought-wait {
    min-height: 46px;
    border: 1px solid var(--line);
    margin-right: -1px;
    padding: 8px 19px;
    background: transparent;
    color: var(--muted);
    font-weight: 650;
}

.thought-scenario.is-active,
.thought-wait.is-active {
    background: var(--number-surface);
    color: var(--ink);
    border-color: var(--ink);
    position: relative;
}

.thought-money-field {
    display: flex;
    align-items: center;
    max-width: 250px;
    min-height: 54px;
    background: var(--control);
    border: 1px solid var(--line);
}

.thought-money-field span {
    flex: none;
    padding-left: 14px;
    color: var(--muted);
}

.thought-money-field input {
    min-width: 0;
    width: 100%;
    min-height: 52px;
    border: 0;
    background: transparent;
    padding: 8px 12px;
    color: var(--ink);
}

.thought-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 0 22px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.thought-metric {
    padding: 22px 18px 22px 0;
    min-width: 0;
}

.thought-metric + .thought-metric {
    border-left: 1px solid var(--line);
    padding-left: 22px;
}

.thought-metric span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.35;
    color: var(--muted);
    margin-bottom: 10px;
}

.thought-metric strong {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.1vw, 2.8rem);
    letter-spacing: -0.04em;
    font-weight: 500;
    line-height: 1;
    overflow-wrap: anywhere;
    font-variant-numeric: lining-nums tabular-nums;
}

.thought-finding {
    border-left: 3px solid var(--accent);
    padding: 2px 0 2px 17px;
    margin: 14px 0 19px;
}

.thought-finding.caution,
.thought-finding.warning {
    border-color: var(--negative);
}

.thought-finding-heading {
    margin: 0 0 5px;
    font-family: var(--font-serif);
    font-size: 1.52rem;
    font-weight: 600;
    line-height: 1.2;
}

.thought-finding p:last-child {
    margin: 0;
    color: var(--muted);
}

.thought-caveat {
    margin: 0;
    font-size: 0.86rem;
    color: var(--quiet);
    line-height: 1.5;
}

@media (max-width: 680px) {
    .second-thought {
        margin-top: 30px;
        padding-top: 22px;
    }

    .thought-choice-grid {
        grid-template-columns: 1fr;
    }

    .thought-choice {
        min-height: 58px;
    }

    .thought-metric {
        padding-right: 12px;
    }

    .thought-metric + .thought-metric {
        padding-left: 15px;
    }

    .thought-metric strong {
        font-size: 1.85rem;
    }
}

/*
 * WorthIt v1.1 — Credit card comparison
 *
 * Only shown when the user chooses a card. No extra wizard screen,
 * minimal decoration, and large controls in both color themes.
 */
.payment-choice {
    margin: 30px 0 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.payment-choice legend {
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 650;
}

.payment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 14px 16px;
    cursor: pointer;
    background: var(--paper);
    color: var(--ink);
}

.payment-option + .payment-option {
    border-left: 1px solid var(--line);
}

.payment-option:has(input:checked) {
    background: var(--accent-tint);
    box-shadow: inset 0 -3px 0 var(--accent);
    font-weight: 700;
}

.payment-option:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: -3px;
}

.credit-fields {
    margin: 0 0 8px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--line);
}

.card-payoff-choice {
    margin-top: 26px;
}

.card-full-note {
    margin-top: 12px;
}

.card-monthly-fields {
    padding: 24px 0 0;
}

.card-monthly-fields .field {
    margin-bottom: 8px;
}

.card-report {
    margin: 35px 0 0;
    padding: 28px 0 26px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.card-report .section-title-row {
    margin-bottom: 12px;
}

.card-summary {
    margin: 0 0 22px;
    max-width: 670px;
    line-height: 1.6;
}

.card-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    margin: 0 0 24px;
    border-top: 1px solid var(--line);
}

.card-numbers > div {
    min-width: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

.card-numbers span {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
}

.card-numbers strong {
    display: block;
    margin: 4px 0 0;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-family: var(--font-serif);
    font-weight: 500;
    overflow-wrap: anywhere;
}

.card-paycheck-note {
    padding: 16px 18px;
    background: var(--number-surface);
    border-left: 3px solid var(--accent);
}

.card-caveat {
    margin: 16px 0 0;
}

@media (max-width: 680px) {
    .payment-options,
    .card-numbers {
        grid-template-columns: 1fr;
    }

    .payment-option + .payment-option {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}

/*
 * WorthIt v1.2 — Smart Pay
 *
 * Extends the editorial report using ruled comparisons rather than cards,
 * gradients, shadows, or dashboard-style ornamentation.
 */
.smart-pay {
    margin: 42px 0 38px;
    padding: 30px 0 26px;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
}

.smart-pay .section-title-row {
    margin-bottom: 8px;
}

.smart-pay-intro {
    max-width: 690px;
    margin: 0 0 24px;
    color: var(--muted);
}

.smart-recommendation {
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.smart-recommendation .step-overline {
    margin-top: 0;
}

.smart-recommendation h4 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 500;
    line-height: 1.18;
}

.smart-recommendation p:last-child {
    margin: 0;
    color: var(--muted);
}

.smart-methods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 28px 0 34px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.smart-method {
    min-width: 0;
    padding: 24px 20px 26px;
}

.smart-method:first-child {
    padding-left: 0;
}

.smart-method:last-child {
    padding-right: 0;
}

.smart-method + .smart-method {
    border-left: 1px solid var(--line);
}

.smart-method-top {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 15px;
}

.smart-method-number {
    color: var(--quiet);
    font-size: 0.76rem;
    font-weight: 700;
}

.smart-method h4 {
    font-size: 1rem;
    line-height: 1.35;
    margin: 0;
}

.smart-method strong {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.22rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.smart-method p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.smart-payment-planner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(200px, 0.8fr);
    gap: 30px;
    margin-bottom: 26px;
}

.smart-payment-planner h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1.55rem;
    margin: 0 0 10px;
}

.smart-payment-planner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.smart-payment-input label {
    display: block;
    margin-bottom: 9px;
    font-size: 0.94rem;
    font-weight: 700;
}

.smart-payment-input .text-action {
    display: inline-block;
    margin-top: 13px;
}

.smart-facts {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 4px 0;
}

.smart-facts p {
    margin: 0;
    padding: 12px 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.smart-facts p + p {
    border-top: 1px solid var(--line-light);
}

.smart-caveat {
    margin-top: 20px;
}

@media (max-width: 950px) {
    .smart-methods {
        grid-template-columns: 1fr;
    }

    .smart-method,
    .smart-method:first-child,
    .smart-method:last-child {
        padding: 20px 0;
    }

    .smart-method + .smart-method {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .smart-payment-planner {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/*
 * WorthIt v1.3 — Whole-card debt comparison.
 *
 * Ruled columns match the existing editorial design. No gradients,
 * decorative cards, or additional visual noise.
 */
.smart-debt-comparison {
    margin: 12px 0 30px;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.smart-debt-comparison h4 {
    margin: 0 0 8px;
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.5vw, 1.85rem);
    font-weight: 500;
}

.smart-debt-note {
    max-width: 750px;
    margin: 8px 0 16px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.93rem;
}

.smart-debt-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 18px 0;
}

.smart-debt-grid > div {
    min-width: 0;
    padding: 20px 18px 20px 0;
}

.smart-debt-grid > div + div {
    border-left: 1px solid var(--line);
    padding-left: 18px;
}

.smart-debt-grid span {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.smart-debt-grid strong {
    display: block;
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 500;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.smart-debt-grid p {
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.91rem;
}

.smart-debt-difference {
    margin: 0 0 18px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    line-height: 1.6;
}

@media (max-width: 680px) {
    .smart-debt-grid {
        grid-template-columns: 1fr;
    }

    .smart-debt-grid > div + div {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }
}
