:root {
    --ink: #0f1e36;
    --navy: #143653;
    --navy-deep: #0b2942;
    --muted: #5e6b83;
    --teal: #1fa39a;
    --teal-deep: #147a75;
    --teal-wash: #e8f5f2;
    --gold: #d49a3a;
    --gold-deep: #9c6918;
    --gold-wash: #fbf0d9;
    --paper: #f4f1ea;
    --panel: #fcfaf4;
    --surface: #f8f6ef;
    --line: #e6e2d5;
    --line-strong: #cfc9b8;
    --danger: #9d3e39;
    --success: #19756b;
    --shadow: 0 18px 45px rgba(21, 33, 44, 0.08);
    --shadow-lifted: 0 24px 64px rgba(21, 33, 44, 0.13);
    --radius: 8px;
    --radius-sm: 6px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-body: "Geist", "Segoe UI", sans-serif;
    --font-editorial: "Instrument Serif", Georgia, serif;
    --z-sticky: 200;
}

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

html {
    color-scheme: light;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-width: 20rem;
    background:
        linear-gradient(90deg, transparent calc(50% - 1px), rgba(20, 54, 83, 0.035) 50%, transparent calc(50% + 1px)),
        var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
}

body.estimator-ready {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom));
}

html[dir="rtl"] body {
    font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .section-heading h2,
html[dir="rtl"] .estimate-content h2 {
    letter-spacing: -0.025em;
    line-height: 1.2;
}

html[dir="rtl"] .hero h1 em,
html[dir="rtl"] .section-index {
    font-family: "Noto Kufi Arabic", "Segoe UI", sans-serif;
    font-style: normal;
}

html[dir="rtl"] .primary-estimate strong,
html[dir="rtl"] .summary-bucket strong,
html[dir="rtl"] .price-chip,
html[dir="rtl"] .stepper-control,
html[dir="rtl"] [data-mobile-summary-primary],
html[dir="rtl"] [data-mobile-summary-meta] {
    direction: ltr;
    unicode-bidi: isolate;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
label {
    -webkit-tap-highlight-color: transparent;
}

button {
    color: inherit;
}

a {
    color: var(--navy);
    text-underline-offset: 0.18em;
}

img,
svg {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.page-shell {
    width: min(100% - 2rem, 88rem);
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    z-index: 1000;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--navy-deep);
    color: var(--panel);
    font-weight: 700;
    transform: translateY(-150%);
    transition: transform 180ms var(--ease);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(20, 54, 83, 0.1);
    background: rgba(244, 241, 234, 0.94);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 4.5rem;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 2.75rem;
}

.brand img {
    width: clamp(7.5rem, 28vw, 9.625rem);
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.4rem;
    min-width: 0;
}

.draft-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #d6bd86;
    border-radius: 999px;
    background: var(--gold-wash);
    color: #704a0e;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.currency-switch,
.language-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0.2rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.currency-switch button,
.language-switch button {
    min-width: 2.8rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.5rem;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 750;
    cursor: pointer;
}

.currency-switch button[aria-pressed="true"],
.language-switch button[aria-pressed="true"] {
    background: var(--navy);
    color: var(--panel);
    box-shadow: 0 2px 8px rgba(20, 54, 83, 0.18);
}

.reset-button {
    min-height: 2.75rem;
    padding: 0.5rem 0.65rem;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.hero {
    position: relative;
    overflow: clip;
    padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    inset-block-start: -7rem;
    inset-inline-end: -5rem;
    width: 15rem;
    aspect-ratio: 1;
    border: 1px solid rgba(31, 163, 154, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 2.25rem rgba(31, 163, 154, 0.025),
        0 0 0 5rem rgba(212, 154, 58, 0.025);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2rem;
}

.eyebrow,
.section-kicker {
    margin: 0;
    color: var(--teal-deep);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.25;
    text-transform: uppercase;
}

.estimator-section .section-kicker {
    color: var(--teal-deep);
    font-size: clamp(0.9375rem, 1.3vw, 1.0625rem);
    letter-spacing: 0.1em;
    line-height: 1.4;
}

html[dir="rtl"] .estimator-section .section-kicker {
    font-size: clamp(1rem, 1.3vw, 1.125rem);
    letter-spacing: 0;
    text-transform: none;
}

.hero h1 {
    max-width: 12ch;
    margin: 0.75rem 0 1rem;
    color: var(--ink);
    font-size: clamp(2.75rem, 11vw, 5.25rem);
    font-weight: 650;
    letter-spacing: -0.065em;
    line-height: 0.94;
}

.hero h1 em {
    color: var(--gold-deep);
    font-family: var(--font-editorial);
    font-weight: 400;
    letter-spacing: -0.035em;
}

.hero-lead {
    max-width: 41rem;
    margin: 0;
    color: var(--muted);
    font-size: clamp(1.0625rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.hero-principles {
    align-self: end;
    max-width: 32rem;
    padding-block-start: 1rem;
    border-top: 1px solid var(--line-strong);
}

.hero-principles p {
    margin: 0;
    padding: 0.75rem 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.hero-principles p + p {
    border-top: 1px solid var(--line);
}

.hero-principles strong {
    color: var(--ink);
}

.hero-principles .managed-note {
    color: var(--navy);
    font-weight: 650;
}

.bootstrap-wrap {
    padding-block: 2rem;
}

.bootstrap-status,
.noscript-message {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.bootstrap-status p,
.noscript-message p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.bootstrap-mark {
    flex: 0 0 auto;
    width: 0.875rem;
    height: 0.875rem;
    margin-block-start: 0.35rem;
    border: 2px solid var(--line-strong);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 900ms linear infinite;
}

.bootstrap-status.is-error .bootstrap-mark {
    border: 0;
    border-radius: 50%;
    background: var(--danger);
    animation: none;
}

.noscript-message {
    margin-block: 2rem;
    color: var(--muted);
}

@keyframes spin {
    to { transform: rotate(1turn); }
}

.estimator-shell {
    display: grid;
    gap: 2rem;
    padding-block: clamp(2.5rem, 6vw, 5rem);
}

.calculator {
    min-width: 0;
    container-name: calculator;
    container-type: inline-size;
}

.estimator-section {
    position: relative;
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    padding-block: 2rem;
    border-top: 2px solid var(--line-strong);
}

.estimator-section:not(:first-child)::before {
    position: absolute;
    inset-block-start: -2px;
    inset-inline-start: 0;
    width: clamp(4rem, 18%, 8rem);
    height: 2px;
    background: var(--teal);
    content: "";
}

.estimator-section:first-child {
    padding-block-start: 0;
    border-top: 0;
}

.section-index {
    display: flex;
    align-self: stretch;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
    color: var(--gold-deep);
    font-family: var(--font-editorial);
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.2;
}

.section-index::after {
    width: 1px;
    min-height: 2rem;
    flex: 1 1 auto;
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--teal) 68%, transparent),
        color-mix(in srgb, var(--teal) 12%, transparent)
    );
    content: "";
}

.section-body {
    min-width: 0;
}

.section-heading {
    display: grid;
    gap: 0.75rem;
    margin-block-end: 1.5rem;
}

.section-heading h2 {
    max-width: 28ch;
    margin: 0.35rem 0 0;
    font-size: clamp(1.75rem, 6vw, 2.5rem);
    font-weight: 650;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.section-heading > p {
    max-width: 36rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.decision-group {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.decision-group + .decision-group,
.decision-group + .disclosure,
.conditional-block + .decision-group,
.disclosure + .decision-group {
    margin-block-start: 2rem;
}

.decision-group legend {
    width: 100%;
    margin-block-end: 0.875rem;
    padding: 0;
    color: var(--ink);
    font-size: 1rem;
    font-weight: 750;
}

.decision-group legend span,
.decision-group legend small {
    margin-inline-start: 0.35rem;
    color: var(--teal-deep);
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.option-grid,
.option-list {
    display: grid;
    gap: 0.75rem;
    min-width: 0;
}

.option-card {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    min-width: 0;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--panel);
    cursor: pointer;
    transition:
        border-color 180ms var(--ease),
        background-color 180ms var(--ease),
        box-shadow 180ms var(--ease),
        transform 180ms var(--ease);
}

.option-card::after {
    content: "";
    position: absolute;
    inset: 0.35rem;
    border: 1px solid transparent;
    border-radius: 4px;
    pointer-events: none;
}

.option-card.is-selected,
.option-card:has(input:checked) {
    border-color: var(--teal);
    background: var(--teal-wash);
    box-shadow: 0 10px 28px rgba(31, 163, 154, 0.1);
}

.option-card.is-selected::after,
.option-card:has(input:checked)::after {
    border-color: rgba(31, 163, 154, 0.18);
}

.option-card input {
    width: 1.2rem;
    height: 1.2rem;
    margin: 0.12rem 0 0;
    accent-color: var(--teal-deep);
    cursor: pointer;
}

.option-content {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.option-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.option-title {
    min-width: 0;
    font-weight: 720;
    line-height: 1.3;
}

.option-description,
.option-detail,
.recommendation-reason {
    margin: 0;
    color: var(--muted);
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.option-detail {
    padding-block-start: 0.4rem;
    border-top: 1px solid rgba(20, 54, 83, 0.1);
}

.recommendation-reason {
    color: var(--teal-deep);
    font-weight: 650;
}

.option-badge {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 1.45rem;
    padding: 0.2rem 0.42rem;
    border-radius: 999px;
    background: var(--gold-wash);
    color: #704a0e;
    font-size: 0.625rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1.1;
    text-transform: uppercase;
}

.option-card.is-selected .option-badge,
.option-card:has(input:checked) .option-badge {
    background: #cfeae6;
    color: #0f5d58;
}

.price-effects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-block-start: 0.15rem;
}

.price-chip {
    display: inline-flex;
    align-items: center;
    min-height: 1.55rem;
    padding: 0.2rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--navy);
    font-size: 0.6875rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.price-chip.quote {
    border-color: #d6bd86;
    background: var(--gold-wash);
    color: #704a0e;
}

.price-chip.external {
    border-color: #c9d5df;
    background: #edf3f7;
    color: var(--navy);
}

.scope-note {
    margin: 0.875rem 0 0;
    padding: 0.75rem 0.875rem;
    border-inline-start: 2px solid var(--gold);
    background: rgba(251, 240, 217, 0.55);
    color: var(--muted);
    font-size: 0.8125rem;
}

.scope-note strong {
    color: var(--ink);
}

.conditional-block {
    margin-block-start: 2rem;
}

.page-stepper {
    display: grid;
    gap: 0.875rem;
    margin-block-start: 0.875rem;
    padding: 1rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--surface);
}

.page-stepper label {
    display: block;
    font-weight: 720;
}

.page-stepper p {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.8125rem;
}

.stepper-control {
    display: grid;
    grid-template-columns: 2.75rem minmax(3.75rem, 5rem) 2.75rem;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--panel);
}

.stepper-control button {
    min-height: 2.75rem;
    border: 0;
    background: var(--panel);
    color: var(--navy);
    font-size: 1.35rem;
    font-weight: 500;
    cursor: pointer;
}

.stepper-control button:active {
    background: var(--teal-wash);
}

.stepper-control input {
    min-width: 0;
    border: 0;
    border-inline: 1px solid var(--line-strong);
    background: var(--panel);
    color: var(--ink);
    font-weight: 750;
    text-align: center;
    appearance: textfield;
}

.stepper-control input::-webkit-inner-spin-button,
.stepper-control input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}

.stepper-price {
    color: var(--teal-deep);
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
}

.disclosure {
    margin-block-start: 1.25rem;
}

.disclosure-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    min-height: 4.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid color-mix(in srgb, var(--teal) 48%, var(--line-strong));
    border-radius: var(--radius-sm);
    background: color-mix(in srgb, var(--teal-wash) 82%, var(--panel));
    color: var(--navy);
    font-size: 1.125rem;
    font-weight: 760;
    text-align: start;
    cursor: pointer;
    transition: transform 160ms var(--ease), border-color 160ms var(--ease), background-color 160ms var(--ease);
}

.disclosure-button span:last-child {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--teal-deep);
    color: var(--panel);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
    transition: transform 180ms var(--ease), background-color 160ms var(--ease);
}

.disclosure-button[aria-expanded="true"] span:last-child {
    background: var(--navy);
    transform: rotate(45deg);
}

.disclosure-panel {
    padding-block-start: 1rem;
}

.estimate-panel {
    position: fixed;
    inset-inline: 0;
    inset-block-end: 0;
    z-index: var(--z-sticky);
    width: 100%;
    border-top: 1px solid rgba(20, 54, 83, 0.16);
    background: var(--panel);
    box-shadow: 0 -16px 40px rgba(15, 30, 54, 0.14);
}

.mobile-summary-toggle {
    display: grid;
    grid-template-areas:
        "label action"
        "total recurring";
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.35rem;
    width: 100%;
    min-height: 5.75rem;
    padding: 0.75rem max(1rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border: 0;
    background: var(--navy-deep);
    color: #f9f6ed;
    text-align: start;
    cursor: pointer;
}

.mobile-summary-primary {
    display: contents;
}

.mobile-summary-toggle small {
    grid-area: label;
    align-self: end;
    display: block;
    margin: 0;
    color: #b8d5d1;
    font-size: 0.6875rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-summary-toggle strong {
    grid-area: total;
    align-self: start;
    display: block;
    min-width: 0;
    font-size: 1.125rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.mobile-summary-meta {
    grid-area: recurring;
    align-self: start;
    max-width: 9rem;
    padding-inline-start: 0.75rem;
    border-inline-start: 1px solid rgba(249, 246, 237, 0.22);
    color: #dfc38d;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: end;
}

.summary-chevron {
    width: 0.9rem;
    height: 0.9rem;
    flex: 0 0 auto;
    transition: transform 180ms var(--ease);
}

.summary-toggle-action {
    grid-area: action;
    align-self: end;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 2rem;
    padding-inline: 0.65rem;
    border: 1px solid rgba(223, 195, 141, 0.42);
    border-radius: 999px;
    background: rgba(249, 246, 237, 0.06);
    color: #dfc38d;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.estimate-panel.is-open .summary-chevron {
    transform: rotate(180deg);
}

.estimate-content {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 100%;
    display: none;
    width: 100%;
    max-height: min(70dvh, 36rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1.25rem max(1rem, env(safe-area-inset-right)) 1.5rem max(1rem, env(safe-area-inset-left));
    border-top: 1px solid rgba(20, 54, 83, 0.16);
    background: var(--panel);
    box-shadow: 0 -16px 40px rgba(15, 30, 54, 0.12);
}

.estimate-panel.is-open .estimate-content {
    display: block;
}

.estimate-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.estimate-topline .currency-switch {
    flex: 0 0 auto;
}

.estimate-topline .currency-switch button {
    min-width: 2.55rem;
    min-height: 2rem;
}

.estimate-content h2 {
    margin: 0.5rem 0 1.25rem;
    font-size: 1.55rem;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.summary-prompt {
    margin: 0;
    padding: 1rem 0;
    border-block: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9375rem;
}

.summary-project {
    margin: 0 0 1rem;
    color: var(--navy);
    font-size: 0.8125rem;
    font-weight: 700;
}

.summary-incomplete {
    display: grid;
    gap: 0.2rem;
    margin-block-end: 0.85rem;
    padding: 0.75rem;
    border: 1px solid #d9c492;
    border-radius: var(--radius-sm);
    background: var(--gold-wash);
    color: #624716;
    font-size: 0.75rem;
    line-height: 1.45;
}

.summary-incomplete strong {
    font-size: 0.8125rem;
}

.primary-estimate {
    padding-block: 1.1rem;
    border-block: 1px solid var(--line-strong);
}

.primary-estimate span {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.primary-estimate strong {
    display: block;
    margin-block-start: 0.25rem;
    color: var(--gold-deep);
    font-family: var(--font-editorial);
    font-size: clamp(2.5rem, 10vw, 3.5rem);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.045em;
    line-height: 1;
    overflow-wrap: anywhere;
}

.summary-buckets {
    display: grid;
    gap: 0.8rem;
    margin-block: 1rem;
}

.summary-bucket-group {
    display: grid;
    gap: 0.35rem;
}

.summary-bucket {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.summary-bucket strong {
    color: var(--ink);
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.summary-bucket-lines {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-bucket-lines li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.6875rem;
    line-height: 1.4;
}

.summary-bucket-lines strong {
    flex: 0 0 auto;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    text-align: end;
}

.summary-detail {
    margin-block-start: 1rem;
    padding-block-start: 1rem;
    border-top: 1px solid var(--line);
}

.summary-detail h3 {
    margin: 0 0 0.55rem;
    color: var(--ink);
    font-size: 0.8125rem;
    font-weight: 750;
}

.summary-detail ul {
    display: grid;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.summary-detail li {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.summary-detail li span:last-child {
    flex: 0 0 auto;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    font-weight: 650;
    text-align: end;
}

.summary-detail.notes li,
.summary-detail.quote li,
.summary-detail.standards li {
    display: block;
    position: relative;
    padding-inline-start: 0.85rem;
}

.summary-detail.notes li::before,
.summary-detail.quote li::before,
.summary-detail.standards li::before {
    content: "";
    position: absolute;
    inset-block-start: 0.48rem;
    inset-inline-start: 0;
    width: 0.32rem;
    height: 0.32rem;
    border-radius: 50%;
    background: var(--teal);
}

.summary-detail.quote li::before {
    background: var(--gold);
}

.exchange-note,
.tax-note,
.disclaimer {
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.6875rem;
    line-height: 1.45;
}

.disclaimer {
    padding: 0.75rem;
    border: 1px solid #d9c492;
    border-radius: var(--radius-sm);
    background: var(--gold-wash);
    color: #624716;
    font-size: 0.75rem;
}

.handoff-actions {
    display: grid;
    gap: 0.55rem;
    margin-block-start: 1rem;
}

.handoff-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--navy);
    border-radius: var(--radius-sm);
    background: var(--navy);
    color: var(--panel);
    font-size: 0.8125rem;
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}

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

.handoff-status {
    min-height: 1.25rem;
    margin: 0.5rem 0 0;
    color: var(--success);
    font-size: 0.75rem;
    font-weight: 650;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #ebe7dd;
}

.footer-inner {
    display: grid;
    justify-items: start;
    gap: 0.75rem;
    padding-block: 2rem;
}

.footer-inner p {
    margin: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

.footer-inner a {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .option-card:hover {
        border-color: #a9b8bb;
        box-shadow: 0 12px 30px rgba(21, 33, 44, 0.08);
        transform: translateY(-1px);
    }

    .handoff-button:hover,
    .reset-button:hover,
    .disclosure-button:hover {
        transform: translateY(-1px);
    }

    .disclosure-button:hover {
        border-color: var(--teal);
        background: var(--teal-wash);
    }

    .handoff-button.secondary:hover {
        background: var(--teal-wash);
    }
}

@media (min-width: 40rem) {
    .page-shell {
        width: min(100% - 3rem, 88rem);
    }

    .header-actions {
        gap: 0.75rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.65fr);
        align-items: end;
        gap: clamp(2rem, 6vw, 5rem);
    }

    .page-stepper {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .stepper-price {
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
    }
}

@container calculator (min-width: 28rem) {
    .section-heading {
        grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.65fr);
        align-items: end;
        gap: 1.5rem;
    }

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

@container calculator (min-width: 46rem) {
    .option-grid-project,
    .option-grid-three {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 48rem) {
    body.estimator-ready {
        padding-bottom: 0;
    }

    .estimator-shell {
        grid-template-columns: minmax(0, 1fr) 18rem;
        align-items: start;
        gap: 1.5rem;
    }

    .estimator-section {
        grid-template-columns: 2.5rem minmax(0, 1fr);
        gap: 1rem;
        padding-block: 3rem;
    }

    .estimate-panel {
        position: sticky;
        inset: auto;
        inset-block-start: 6rem;
        width: auto;
        max-height: calc(100dvh - 7rem);
        overflow: hidden;
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        background: var(--panel);
        box-shadow: var(--shadow-lifted);
    }

    .mobile-summary-toggle {
        display: none;
    }

    .estimate-content {
        position: static;
        display: block;
        width: auto;
        max-height: calc(100dvh - 7rem);
        padding: 1.35rem;
        border-top: 0;
        box-shadow: none;
    }

    .primary-estimate strong {
        font-size: 3rem;
    }

    .handoff-actions {
        grid-template-columns: 1fr 1fr;
    }

}

@media (min-width: 68rem) {
    .estimator-shell {
        grid-template-columns: minmax(0, 1fr) 22rem;
        gap: clamp(3rem, 5vw, 5rem);
    }
}

@media (max-width: 26rem) {
    .draft-badge[data-draft-label] {
        display: none;
    }

    .header-inner {
        gap: 0.4rem;
    }

    .reset-button {
        padding-inline: 0.35rem;
        font-size: 0.75rem;
    }

    .language-switch button {
        min-width: 2.35rem;
        padding-inline: 0.35rem;
    }

    html[dir="rtl"] .brand img {
        width: 6.75rem;
    }

    .estimator-section {
        grid-template-columns: 1.55rem minmax(0, 1fr);
        gap: 0.45rem;
    }

    .option-card {
        padding: 0.875rem;
    }

    .mobile-summary-toggle {
        column-gap: 0.65rem;
    }

    .mobile-summary-meta {
        max-width: 7.25rem;
        padding-inline-start: 0.55rem;
        font-size: 0.6875rem;
    }

    .summary-toggle-action {
        padding-inline: 0.5rem;
        font-size: 0.625rem;
    }
}

@media (pointer: coarse) {
    .currency-switch button,
    .language-switch button,
    .reset-button,
    .disclosure-button,
    .stepper-control button,
    .handoff-button {
        min-height: 2.75rem;
    }
}

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

@media (forced-colors: active) {
    .option-card.is-selected,
    .option-card:has(input:checked),
    .price-chip,
    .draft-badge,
    .disclaimer {
        border: 2px solid CanvasText;
    }

    .option-card.is-selected::after,
    .option-card:has(input:checked)::after {
        display: none;
    }
}

@media print {
    .site-header,
    .hero,
    .calculator,
    .mobile-summary-toggle,
    .handoff-actions,
    .site-footer {
        display: none !important;
    }

    body,
    body.estimator-ready {
        padding: 0;
        background: white;
    }

    .estimator-shell {
        display: block;
        padding: 0;
    }

    .estimate-panel,
    .estimate-content {
        position: static;
        display: block;
        max-height: none;
        overflow: visible;
        border: 0;
        box-shadow: none;
    }
}
