:root {
    --bg: #fffaf6;
    --surface: #ffffff;
    --surface-soft: #fff4e9;
    --text: #201a17;
    --muted: #6f625b;
    --border: #eadfd8;
    --primary: #f97316;
    --primary-dark: #d95708;
    --primary-soft: #ffedd5;
    --success: #15803d;
    --danger: #b91c1c;
    --shadow: 0 24px 70px rgba(118, 55, 11, .12);
    --shadow-soft: 0 12px 32px rgba(118, 55, 11, .08);
    --radius: 24px;
}

html[data-theme="dark"] {
    --bg: #120f0d;
    --surface: #1c1815;
    --surface-soft: #2a211b;
    --text: #fff8f2;
    --muted: #c6b8ae;
    --border: #3b302a;
    --primary: #fb923c;
    --primary-dark: #f97316;
    --primary-soft: #42210d;
    --success: #4ade80;
    --danger: #fca5a5;
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
    --shadow-soft: 0 12px 32px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    transition: background .25s ease, color .25s ease;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(18px);
}
.nav-wrap { height: 74px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; letter-spacing: -.02em; }
.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(145deg, var(--primary), #ffad5c);
    box-shadow: 0 8px 20px rgba(249, 115, 22, .28);
}
.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-soft);
}
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; font-size: 21px; }

.hero { position: relative; overflow: hidden; padding: 72px 0 84px; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(color-mix(in srgb, var(--primary) 18%, transparent) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.55), transparent 82%);
    pointer-events: none;
}
.hero-orb { position: absolute; border-radius: 999px; filter: blur(4px); pointer-events: none; }
.orb-one { width: 430px; height: 430px; right: -180px; top: 40px; background: rgba(249, 115, 22, .12); }
.orb-two { width: 280px; height: 280px; left: -120px; bottom: 20px; background: rgba(255, 168, 82, .14); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); gap: 54px; align-items: center; }
.eyebrow, .mini-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 4px; background: currentColor; }
.hero-copy > h1 {
    max-width: 720px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: .99;
    letter-spacing: -.055em;
}
.hero-copy > p { max-width: 660px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 20px; margin: 25px 0 32px; color: var(--muted); font-size: 14px; font-weight: 650; }
.trust-row span::first-letter { color: var(--success); }

.calculator-card, .lead-card {
    border: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    box-shadow: var(--shadow);
}
.calculator-card { padding: 28px; border-radius: var(--radius); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.card-heading h2 { margin: 8px 0 0; font-size: 25px; letter-spacing: -.035em; }
.rate-pill { flex: 0 0 auto; padding: 9px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: 13px; font-weight: 800; }
.calculator-fields { margin-top: 24px; display: grid; grid-template-columns: 1fr .65fr; gap: 14px; }
.field-group, .form-field { display: grid; gap: 8px; }
.field-group > span, .form-field > span { color: var(--muted); font-size: 13px; font-weight: 750; }
.money-input { display: flex; align-items: center; height: 52px; padding: 0 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--bg); }
.money-input span { color: var(--primary-dark); font-weight: 900; font-size: 20px; }
.money-input input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); padding: 0 8px; font-size: 18px; font-weight: 800; }
.field-group select, .form-field input, .form-field textarea {
    width: 100%;
    height: 52px;
    border: 1px solid var(--border);
    border-radius: 15px;
    padding: 0 15px;
    outline: 0;
    background: var(--bg);
    color: var(--text);
    transition: border-color .2s ease, box-shadow .2s ease;
}
.field-group select:focus, .form-field input:focus, .form-field textarea:focus, .money-input:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.amount-range { width: 100%; margin: 24px 0 4px; accent-color: var(--primary); }
.range-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.result-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result-box { padding: 17px; border: 1px solid var(--border); border-radius: 17px; background: var(--bg); }
.result-box span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.result-box strong { font-size: 21px; letter-spacing: -.03em; }
.result-box.accent { border-color: color-mix(in srgb, var(--primary) 38%, var(--border)); background: var(--primary-soft); }
.result-box.accent strong { color: var(--primary-dark); }
.calculator-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.lead-card { position: relative; padding: 34px; border-radius: 30px; }
.lead-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.45); }
.lead-card-top { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 19px; color: var(--success); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 16%, transparent); }
.lead-card h2 { margin: 0 0 10px; font-size: 34px; line-height: 1.1; letter-spacing: -.045em; }
.lead-card > p { margin: 0 0 26px; color: var(--muted); line-height: 1.6; }
#leadForm { display: grid; gap: 17px; }
.phone-field .iti { width: 100%; }
.phone-field .iti__tel-input { padding-left: 104px !important; }
.iti__country-container { color: #1f1f1f; }
html[data-theme="dark"] .iti__dropdown-content { background: #1c1815; color: #fff8f2; border-color: #3b302a; }
html[data-theme="dark"] .iti__country.iti__highlight { background: #2a211b; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; cursor: pointer; }
.consent-row input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--primary); }
.field-error { min-height: 0; color: var(--danger); font-size: 11px; }
.field-error:empty { display: none; }
.primary-button {
    min-height: 54px;
    border: 0;
    border-radius: 16px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    font-weight: 850;
    box-shadow: 0 14px 30px rgba(249, 115, 22, .25);
    transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 36px rgba(249, 115, 22, .31); }
.privacy-copy { margin: -4px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.hp-field { position: absolute !important; left: -10000px !important; opacity: 0 !important; pointer-events: none !important; }
.alert { padding: 12px 14px; border-radius: 13px; font-size: 13px; line-height: 1.5; }
.alert-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 25%, transparent); }
.alert-success { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); border: 1px solid color-mix(in srgb, var(--success) 25%, transparent); }

.feature-section { padding: 84px 0 100px; border-top: 1px solid var(--border); background: var(--surface); }
.section-heading { max-width: 650px; margin-bottom: 30px; }
.section-heading h2 { margin: 13px 0 0; font-size: clamp(34px, 5vw, 52px); letter-spacing: -.05em; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card { padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--bg); box-shadow: var(--shadow-soft); }
.feature-card > span { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); font-size: 12px; font-weight: 900; }
.feature-card h3 { margin: 21px 0 9px; font-size: 21px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 14px; }
.site-footer { border-top: 1px solid var(--border); background: var(--surface); }
.footer-wrap { min-height: 104px; display: flex; align-items: center; gap: 24px; }
.footer-brand { margin-right: auto; }
.footer-wrap p, .footer-wrap > a { color: var(--muted); font-size: 12px; }
.footer-wrap > a:hover { color: var(--primary); }

.center-page { display: grid; place-items: center; padding: 28px; background: radial-gradient(circle at top, var(--primary-soft), var(--bg) 50%); }
.floating-toggle { position: fixed; top: 22px; right: 22px; }
.success-card { width: min(520px, 100%); padding: 48px; text-align: center; border: 1px solid var(--border); border-radius: 30px; background: var(--surface); box-shadow: var(--shadow); }
.success-icon { width: 76px; height: 76px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg, var(--success), #22c55e); font-size: 35px; font-weight: 900; }
.success-card .eyebrow::before { display: none; }
.success-card h1 { margin: 14px 0 10px; font-size: 48px; letter-spacing: -.05em; }
.success-card p { margin: 0 auto 26px; max-width: 420px; color: var(--muted); line-height: 1.7; }
.inline-button { padding: 0 24px; }

@media (max-width: 940px) {
    .hero { padding-top: 50px; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-copy > h1 { max-width: 760px; }
    .lead-card { max-width: 700px; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 28px, 1160px); }
    .nav-wrap { height: 66px; }
    .brand { font-size: 15px; }
    .brand-mark { width: 34px; height: 34px; border-radius: 11px; }
    .theme-toggle { width: 40px; height: 40px; border-radius: 13px; }
    .hero { padding: 36px 0 56px; }
    .hero-copy > h1 { margin-top: 15px; font-size: clamp(42px, 14vw, 58px); }
    .hero-copy > p { font-size: 16px; }
    .trust-row { display: grid; gap: 9px; }
    .calculator-card, .lead-card { padding: 21px; border-radius: 22px; }
    .card-heading { align-items: center; }
    .card-heading h2 { font-size: 21px; }
    .rate-pill { padding: 8px 10px; font-size: 11px; }
    .calculator-fields, .result-grid { grid-template-columns: 1fr; }
    .lead-card h2 { font-size: 30px; }
    .feature-section { padding: 60px 0 70px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-wrap { padding: 30px 0; flex-wrap: wrap; }
    .footer-brand { width: 100%; }
    .success-card { padding: 34px 22px; border-radius: 24px; }
    .success-card h1 { font-size: 40px; }
}
.footer-links{display:flex;align-items:center;gap:16px}.footer-links a{color:var(--muted);font-size:12px}.footer-links a:hover{color:var(--primary)}
.legal-page{padding:64px 20px 90px}.legal-card{width:min(820px,100%);margin:0 auto;padding:46px;border:1px solid var(--border);border-radius:28px;background:var(--surface);box-shadow:var(--shadow)}.legal-card h1{margin:18px 0 8px;font-size:clamp(40px,7vw,62px);letter-spacing:-.055em}.legal-card h2{margin:30px 0 9px;font-size:20px}.legal-card p{color:var(--muted);line-height:1.75}.legal-card a:not(.primary-button){color:var(--primary-dark);font-weight:750}.legal-date{font-size:12px}.legal-notice{margin:28px 0;padding:16px;border:1px solid color-mix(in srgb,var(--primary) 30%,var(--border));border-radius:15px;background:var(--primary-soft);color:var(--text);font-size:13px;line-height:1.6}
@media(max-width:680px){.footer-links{width:100%;flex-wrap:wrap}.legal-page{padding:32px 14px 60px}.legal-card{padding:28px 20px;border-radius:22px}}
