/* ================= LIGHT THEME ================= */

:root,
[data-theme="light"] {
    --bg: #EFF5F6;
    --card: #FFFFFF;
    --card-2: #E1ECEF;

    --text: #173B42;
    --text-2: #516B72;
    --text-3: #738A91;

    --line: #D2E1E5;

    --navy: #174B55;

    --amber: #C65322;
    --amber-soft: #FCE5D8;

    --blue: #2866A3;
    --blue-soft: #DFEDF9;

    --green: #23846F;
    --green-soft: #DAEFE8;

    --shadow: 0 8px 24px -14px rgba(23, 59, 66, .28);
}

/* ================= DARK THEME ================= */

[data-theme="dark"] {
    --bg: #0B1C21;
    --card: #142B32;
    --card-2: #1D3840;

    --text: #ECF7F8;
    --text-2: #A9C0C6;
    --text-3: #829EA6;

    --line: #2C454D;

    --navy: #D4EEF0;

    --amber: #FF9964;
    --amber-soft: #493025;

    --blue: #86BFFF;
    --blue-soft: #1E3850;

    --green: #69D5B5;
    --green-soft: #1B4038;

    --shadow: 0 8px 24px -14px rgba(0, 0, 0, .82);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6;
    transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; border-top: 1px solid var(--line); }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.split .side { position: sticky; top: 96px; }
.side .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.side h2 { font-size: 30px; line-height: 1.2; font-weight: 700; margin-bottom: 12px; }
.side p { color: var(--text-2); font-size: 15px; }

/* buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; border-radius: 10px; font-weight: 700; font-size: 15px; border: 1px solid transparent;
    cursor: pointer; background: var(--navy); color: var(--bg); transition: transform .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn.outline { background: transparent; color: var(--text); border-color: var(--line); }
.btn.amber { background: var(--amber); color: #14213D; }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.spin { display: none; width: 14px; height: 14px; border: 2px solid rgba(255,255,255,.4); border-top-color: currentColor; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.loading .txt { display: none; } .btn.loading .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* reveal */
.r { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease; }
.r.show { opacity: 1; transform: none; }

/* header */
header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.logo span { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); color: var(--bg); display: grid; place-items: center; font-size: 14px; }
.links { display: flex; gap: 22px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.links a { padding: 22px 0; border-bottom: 2px solid transparent; }
.links a:hover, .links a.on { color: var(--text); border-color: var(--amber); }
.acts { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; display: grid; place-items: center; }
.menu-btn { display: none; }
.mobile { display: none; position: fixed; inset: 68px 0 0; background: var(--bg); padding: 20px; z-index: 40; }
.mobile.open { display: block; }
.mobile a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; }

/* hero */
.hero { padding: 64px 0 72px; border-top: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; font-weight: 700; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero p.lead { color: var(--text-2); font-size: 18px; max-width: 520px; margin-bottom: 24px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.checks { display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.checks li { list-style: none; display: flex; gap: 8px; align-items: center; }
.checks i { color: var(--green); }

.planner { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.planner h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.planner .sub { font-size: 13px; color: var(--text-3); margin-bottom: 14px; }
.planner-grid { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; }
.donut { width: 170px; height: 170px; }
.donut circle { fill: none; stroke-width: 22; transition: stroke-dasharray .4s ease; }
.donut text { font-weight: 700; fill: var(--text); }
.field { margin-bottom: 10px; }
.field label { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.field label b { font-weight: 700; }
.field input[type="range"] { width: 100%; accent-color: var(--blue); }
.money { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); }
.money input { border: 0; background: transparent; width: 100%; font-size: 15px; font-weight: 600; color: var(--text); outline: none; }
.result { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 12px; display: grid; gap: 6px; font-size: 14px; }
.result .row { display: flex; justify-content: space-between; }
.result .row b { font-weight: 700; }
.tip { background: var(--amber-soft); border-radius: 8px; padding: 10px 12px; font-size: 13.5px; margin-top: 8px; }
.legend { display: flex; gap: 12px; font-size: 12px; color: var(--text-3); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* about */
.about-list { display: grid; gap: 14px; }
.about-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.about-item .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--blue-soft); display: grid; place-items: center; font-size: 18px; }
.about-item h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.about-item p { color: var(--text-2); font-size: 14.5px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.values div { background: var(--card-2); border-radius: 10px; padding: 12px; font-size: 13.5px; font-weight: 600; text-align: center; }

/* services */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.chip.on { background: var(--navy); color: var(--bg); border-color: var(--navy); }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--card); margin-bottom: 14px; }
.search input { border: 0; background: transparent; width: 100%; outline: none; color: var(--text); font-size: 15px; }
.list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line); align-items: start; animation: rowIn .35s ease both; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--card-2); }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.item .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; font-size: 20px; }
.item h4 { font-size: 15.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .cat { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.item p { font-size: 14px; color: var(--text-2); margin-top: 4px; line-height: 1.55; }
.item .btn { align-self: center; }
.count { font-size: 13px; color: var(--text-3); margin-bottom: 8px; }
.none { padding: 24px; color: var(--text-3); font-size: 14px; text-align: center; }

/* benefits */
.ben-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ben { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; display: flex; gap: 12px; }
.ben .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--green-soft); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.ben h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.ben p { font-size: 14px; color: var(--text-2); }

/* process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; position: relative; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--amber); color: #14213D; font-weight: 700; display: grid; place-items: center; font-size: 13px; margin-bottom: 12px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--text-2); }

/* testimonials */
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.t { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.t .stars { color: var(--amber); font-size: 13px; letter-spacing: 2px; margin-bottom: 8px; }
.t p { font-size: 14.5px; color: var(--text-2); margin-bottom: 12px; }
.t .who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.t .av { width: 34px; height: 34px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.t .who small { display: block; color: var(--text-3); }

/* faq */
.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.faq button { width: 100%; text-align: left; padding: 14px 16px; background: none; border: 0; color: var(--text); font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; gap: 12px; cursor: pointer; }
.faq button i { transition: transform .25s; color: var(--blue); }
.faq.open button i { transform: rotate(180deg); }
.faq .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq.open .a { grid-template-rows: 1fr; }
.faq .a > div { overflow: hidden; }
.faq .a p { padding: 0 16px 14px; color: var(--text-2); font-size: 14.5px; }

/* forms */
.fg { margin-bottom: 12px; }
.fg label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-2); }
.fg input, .fg select, .fg textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text); font-size: 15px; outline: none; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--blue); }
.fg textarea { min-height: 110px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agree { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text-2); margin: 4px 0 12px; }
.agree input { margin-top: 3px; accent-color: var(--blue); }
.agree a { color: var(--blue); font-weight: 600; text-decoration: underline; }
.link-btn { background: none; border: 0; color: var(--text-3); text-decoration: underline; cursor: pointer; font-size: 13px; margin-top: 10px; }

.newsletter { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.newsletter h2 { font-size: 26px; font-weight: 700; margin-bottom: 8px; }
.newsletter p { color: var(--text-2); font-size: 15px; }

.contact-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.info { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.info:last-child { border-bottom: 0; }
.info .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--card-2); display: grid; place-items: center; }
.info small { display: block; color: var(--text-3); font-size: 12px; }

.cta { background: var(--navy); color: var(--bg); border-radius: 16px; padding: 40px 24px; text-align: center; }
.cta h2 { font-size: clamp(24px, 3.6vw, 36px); font-weight: 700; margin-bottom: 8px; }
.cta p { opacity: .8; max-width: 480px; margin: 0 auto 18px; }
.cta .btn { background: var(--amber); color: #14213D; }

footer { padding: 48px 0 24px; border-top: 1px solid var(--line); }
.fgrid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 24px; margin-bottom: 28px; }
.fgrid p { color: var(--text-2); font-size: 14px; margin-top: 10px; max-width: 280px; }
.social { display: flex; gap: 8px; margin-top: 12px; }
.social a { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.fcol h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 10px; }
.fcol ul { list-style: none; }
.fcol li { margin-bottom: 7px; }
.fcol a { font-size: 14px; color: var(--text-2); }
.fcol a:hover { color: var(--text); }
.fbot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 13px; color: var(--text-3); }
.fbot button { background: none; border: 0; color: var(--text-3); text-decoration: underline; cursor: pointer; font-size: 13px; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: grid; place-items: center; padding: 20px; z-index: 100; opacity: 0; visibility: hidden; transition: .25s; }
.overlay.open { opacity: 1; visibility: visible; }
.modal { background: var(--card); border-radius: 14px; width: min(520px, 100%); max-height: 80vh; overflow: auto; border: 1px solid var(--line); }
.mh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); }
.mh h3 { font-size: 17px; font-weight: 700; }
.mh button { background: none; border: 0; font-size: 20px; cursor: pointer; color: var(--text); }
.mb { padding: 18px; color: var(--text-2); font-size: 14.5px; }
.mb h4 { color: var(--text); margin: 12px 0 4px; font-size: 15px; }

#toasts { position: fixed; top: 16px; right: 16px; z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); padding: 12px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; animation: rowIn .3s ease; }

/* Policy page content */
.policy-content { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.policy-content h4 { margin: 18px 0 8px; font-size: 16px; color: var(--text); }
.policy-content p { color: var(--text-2); font-size: 15px; line-height: 1.7; margin-bottom: 10px; }

.page-hero { padding: 60px 0 40px; border-top: 0; text-align: center; }
.page-hero .label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; display: inline-block; }
.page-hero h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.2; font-weight: 700; margin-bottom: 12px; }
.page-hero p { color: var(--text-2); font-size: 17px; max-width: 600px; margin: 0 auto; }

@media (max-width: 960px) {
    .split { grid-template-columns: 1fr; gap: 24px; }
    .split .side { position: static; }
    .hero-grid, .newsletter, .contact-grid, .ben-grid { grid-template-columns: 1fr; }
    .steps, .tgrid { grid-template-columns: 1fr 1fr; }
    .fgrid { grid-template-columns: 1fr 1fr; }
    .values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .links, .desk-only { display: none; }
    .menu-btn { display: grid; }
    .steps, .tgrid, .two, .fgrid, .planner-grid { grid-template-columns: 1fr; }
    .donut { margin: 0 auto; }
    .item { grid-template-columns: 40px 1fr; }
    .item .btn { grid-column: 2; justify-self: start; }
    section { padding: 56px 0; }
}

/* Footer legal links - styled to match old button look */
.fbot a {
    color: var(--text-3);
    text-decoration: underline;
    font-size: 13px;
    cursor: pointer;
}
.fbot a:hover { color: var(--text); }

/* Link button (used for unsubscribe link in newsletter) */
.link-btn {
    background: none;
    border: 0;
    color: var(--text-3);
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
    margin-top: 10px;
    display: inline-block;
}