:root {
    color-scheme: light;
    --navy: #061846;
    --navy-2: #102d68;
    --navy-bg: #061846;
    --on-navy: #ffffff;
    --cream: #ffffff;
    --cream-2: #f6f9fc;
    --paper: #ffffff;
    --field-bg: #ffffff;
    --ink: #11182d;
    --text: #364154;
    --muted: #6f7788;
    --line: #d9e2ea;
    --blue: #72bdd0;
    --blue-soft: #edf8fb;
    --coral: #f44945;
    --coral-soft: #fff1f1;
    --amber: #ffa92b;
    --amber-soft: #fff7e3;
    --plum: #9d3564;
    --plum-soft: #f9edf4;
    --green: #207d70;
    --green-soft: #ecf7f4;
    --radius: 8px;
    --shadow: 0 18px 44px rgba(6, 24, 70, 0.09);
    --header-bg: rgba(255, 255, 255, 0.97);
    --button-border: rgba(6, 24, 70, 0.18);
    --lead: #4f5668;
    --primary-hover: #d93c39;
    --bullet-ring: #ffffff;
    --logo-bg: #ffffff;
    --max: 1180px;
}

html[data-theme="dark"] {
    color-scheme: dark;
    --navy: #f4f8ff;
    --navy-2: #c8ddff;
    --navy-bg: #061846;
    --on-navy: #ffffff;
    --cream: #081321;
    --cream-2: #0d1d31;
    --paper: #102238;
    --field-bg: #0b1a2d;
    --ink: #f4f8ff;
    --text: #dce6f2;
    --muted: #a9b6c7;
    --line: #263a52;
    --blue: #7cc9da;
    --blue-soft: #123345;
    --coral: #ff6863;
    --coral-soft: #3a1b23;
    --amber: #ffbd54;
    --amber-soft: #382916;
    --plum: #e47cab;
    --plum-soft: #321c2c;
    --green: #62cbb9;
    --green-soft: #17372f;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
    --header-bg: rgba(8, 19, 33, 0.96);
    --button-border: #31475f;
    --lead: #b7c5d6;
    --primary-hover: #ff7b77;
    --bullet-ring: var(--paper);
    --logo-bg: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Nunito Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: var(--cream);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -52px;
    z-index: 50;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--navy-bg);
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.skip-link:focus {
    top: 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.nav {
    max-width: var(--max);
    min-height: 70px;
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 1000;
    line-height: 1.05;
    min-width: 0;
}

.brand img {
    width: 50px;
    height: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
    background: var(--logo-bg);
}

.brand span {
    display: block;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.menu-button {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--button-border);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--navy);
    cursor: pointer;
}

.menu-lines,
.menu-lines::before,
.menu-lines::after {
    width: 18px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transition: transform 170ms ease, opacity 170ms ease;
}

.menu-lines {
    position: relative;
}

.menu-lines::before,
.menu-lines::after {
    position: absolute;
    left: 0;
}

.menu-lines::before {
    top: -6px;
}

.menu-lines::after {
    top: 6px;
}

.menu-button[aria-expanded="true"] .menu-lines {
    transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] .menu-lines::before {
    transform: translateY(6px) rotate(90deg);
}

.menu-button[aria-expanded="true"] .menu-lines::after {
    opacity: 0;
}

.nav-links {
    position: fixed;
    inset: 70px 0 auto;
    display: none;
    max-height: calc(100vh - 70px);
    overflow: auto;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.nav-links.open {
    display: grid;
    gap: 4px;
}

.nav-link,
.dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 10px;
    border: 0;
    border-radius: var(--radius);
    color: var(--navy);
    background: transparent;
    text-decoration: none;
    text-align: left;
    font: inherit;
    font-size: 0.97rem;
    font-weight: 900;
    cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.dropdown-toggle:hover,
.dropdown-toggle:focus-visible {
    background: var(--cream-2);
    outline: none;
}

.dropdown-toggle::after {
    content: "+";
    color: var(--plum);
    font-weight: 1000;
}

.dropdown.open .dropdown-toggle::after {
    content: "-";
}

.dropdown-menu {
    display: none;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.dropdown.open .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: var(--blue-soft);
    outline: none;
}

.dropdown-menu strong {
    color: var(--navy);
    line-height: 1.2;
}

.dropdown-menu span {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.nav-cta {
    margin-top: 8px;
    background: var(--coral) !important;
    color: #fff !important;
    text-align: center;
    justify-content: center;
}

.theme-toggle {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 45;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--navy);
    box-shadow: 0 12px 30px rgba(6, 24, 70, 0.16);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    border-color: var(--blue);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
    outline: none;
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
}

html[data-theme="light"] .theme-toggle {
    color: var(--navy-bg);
}

html[data-theme="dark"] .theme-toggle {
    background: var(--amber-soft);
    color: var(--amber);
}

main {
    overflow: hidden;
}

section,
.page-section {
    padding: 56px 18px;
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.07;
    letter-spacing: 0;
    font-weight: 1000;
}

h1 {
    max-width: 850px;
    font-size: 2.45rem;
}

h2 {
    font-size: 1.9rem;
}

h3 {
    font-size: 1.08rem;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--plum);
    font-size: 0.78rem;
    font-weight: 1000;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    margin-top: 16px;
    max-width: 720px;
    color: var(--lead);
    font-size: 1.04rem;
}

.button-row {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--navy);
    background: var(--paper);
    text-decoration: none;
    font-weight: 1000;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(6, 24, 70, 0.12);
    outline: none;
}

.button.primary {
    background: var(--coral);
    color: #fff;
}

.button.primary:hover,
.button.primary:focus-visible {
    background: var(--primary-hover);
}

.button.secondary {
    border-color: var(--line);
    background: var(--cream-2);
}

.hero {
    padding-top: 42px;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.hero-grid,
.split-grid,
.contact-grid {
    display: grid;
    gap: 28px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 10px;
    border: 1px solid rgba(112, 189, 208, 0.55);
    border-radius: var(--radius);
    background: var(--blue-soft);
    color: var(--navy);
    font-size: 0.86rem;
    font-weight: 1000;
}

.pill::before {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--blue);
    content: "";
}

.hero-panel,
.card,
.feature-card,
.price-card,
.review,
.notice {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 1px 0 rgba(6, 24, 70, 0.04);
}

.hero-panel {
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel-media {
    display: grid;
    place-items: center;
    padding: 18px 18px 0;
    background: var(--blue-soft);
}

.panel-media img {
    width: min(230px, 76vw);
    border-radius: var(--radius);
}

.finder,
.panel-body {
    padding: 18px;
    display: grid;
    gap: 12px;
}

.finder h2 {
    font-size: 1.28rem;
}

.field-grid {
    display: grid;
    gap: 10px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 1000;
}

select,
input,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--field-bg);
    color: var(--text);
    padding: 0 12px;
    font: inherit;
}

textarea {
    min-height: 112px;
    padding-top: 10px;
    resize: vertical;
}

.muted,
.finder-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.stats-band {
    margin-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stat {
    min-height: 96px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.stat strong {
    display: block;
    color: var(--navy);
    font-size: 1.52rem;
    line-height: 1;
}

.stat span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.trust-strip {
    background: var(--navy-bg);
    color: #fff;
    padding: 22px 18px;
}

.trust-grid {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.trust-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    align-items: start;
}

.trust-mark {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: var(--amber);
    font-weight: 1000;
}

.trust-item strong {
    display: block;
    color: #fff;
}

.trust-item span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.section-head {
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
}

.section-head p {
    max-width: 720px;
    color: var(--muted);
}

.cream-2 {
    background: var(--cream-2);
}

.navy-section {
    background: var(--navy-bg);
    color: var(--on-navy);
}

.navy-section h1,
.navy-section h2,
.navy-section h3,
.navy-section .eyebrow {
    color: #fff;
}

.navy-section p,
.navy-section .muted {
    color: rgba(255, 255, 255, 0.74);
}

.navy-section .feature-card,
.navy-section .card {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.07);
}

.navy-section .feature-card h3,
.navy-section .card h3 {
    color: #fff;
}

.navy-section .feature-card p,
.navy-section .card p,
.navy-section .feature-card li,
.navy-section .card li {
    color: rgba(255, 255, 255, 0.74);
}

.grid-2,
.grid-3,
.grid-4,
.dense-grid,
.subject-grid,
.price-grid,
.review-grid,
.faq-grid {
    display: grid;
    gap: 12px;
}

.card,
.feature-card,
.price-card,
.review,
.notice {
    padding: 18px;
}

.card p,
.feature-card p,
.price-card p,
.review p {
    margin-top: 8px;
    color: var(--muted);
}

.card-link {
    display: grid;
    gap: 10px;
    color: inherit;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.card-link:hover,
.card-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    outline: none;
}

.tag {
    display: inline-flex;
    width: fit-content;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius);
    color: var(--navy);
    background: var(--amber-soft);
    font-size: 0.76rem;
    font-weight: 1000;
    white-space: nowrap;
}

.tag.blue {
    background: var(--blue-soft);
    color: #235d70;
}

.tag.red {
    background: var(--coral-soft);
    color: #a92d2a;
}

.tag.plum {
    background: var(--plum-soft);
    color: var(--plum);
}

.tag.green {
    background: var(--green-soft);
    color: var(--green);
}

.subject-top,
.price-row,
.review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.bullet-list,
.check-list,
.topic-list,
.plain-list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.bullet-list li,
.check-list li,
.plain-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    color: var(--text);
    font-size: 0.94rem;
}

.bullet-list li::before,
.check-list li::before {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    border-radius: 50%;
    background: var(--blue);
    content: "";
    box-shadow: inset 0 0 0 6px var(--bullet-ring);
    border: 1px solid var(--blue);
}

.plain-list li::before {
    color: var(--coral);
    content: "•";
    font-weight: 1000;
}

.topic-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.topic-list li {
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    font-size: 0.79rem;
    font-weight: 900;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}

.mini-table th,
.mini-table td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.mini-table th {
    color: var(--navy);
    background: var(--blue-soft);
    font-size: 0.88rem;
}

.price {
    color: var(--navy);
    font-size: 2.25rem;
    font-weight: 1000;
    line-height: 1;
    white-space: nowrap;
}

.price span {
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 900;
}

.price-card.recommended {
    border-color: rgba(244, 73, 69, 0.45);
    box-shadow: var(--shadow);
}

.stars {
    color: var(--amber);
    letter-spacing: 0.08em;
    font-weight: 1000;
}

blockquote {
    margin: 12px 0 0;
    color: var(--text);
}

.review footer {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 900;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border: 0;
    background: transparent;
    color: var(--navy);
    text-align: left;
    font: inherit;
    font-weight: 1000;
    cursor: pointer;
}

.faq-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background: var(--blue-soft);
    color: var(--navy);
    flex: 0 0 auto;
    font-weight: 1000;
    transition: transform 160ms ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 220ms ease;
}

.faq-answer div {
    padding: 0 16px 16px;
    color: var(--muted);
    font-size: 0.95rem;
}

.cta-band {
    background: var(--navy-bg);
    color: var(--on-navy);
}

.cta-band h2,
.cta-band .eyebrow {
    color: #fff;
}

.cta-band .lead {
    color: rgba(255, 255, 255, 0.74);
}

.site-footer {
    padding: 36px 18px 24px;
    border-top: 1px solid var(--line);
    background: var(--cream-2);
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    gap: 24px;
}

.footer-grid {
    display: grid;
    gap: 18px;
}

.footer-col h3 {
    font-size: 0.96rem;
}

.footer-col ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.footer-col a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-col a:hover,
.footer-col a:focus-visible {
    color: var(--navy);
    outline: none;
}

.footer-bottom {
    display: grid;
    gap: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

@media (min-width: 640px) {
    h1 {
        font-size: 3.35rem;
    }

    h2 {
        font-size: 2.35rem;
    }

    .button-row {
        flex-direction: row;
        align-items: center;
    }

    .field-grid,
    .stats-band,
    .trust-grid,
    .grid-2,
    .dense-grid,
    .subject-grid,
    .price-grid,
    .review-grid,
    .faq-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .notice.wide {
        grid-column: 1 / -1;
    }
}

@media (min-width: 940px) {
    .menu-button {
        display: none;
    }

    .nav {
        min-height: 78px;
        padding-inline: 24px;
    }

    .brand img {
        width: 56px;
        height: 56px;
    }

    .nav-links {
        position: static;
        display: flex;
        align-items: center;
        gap: 4px;
        max-height: none;
        overflow: visible;
        padding: 0;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .nav-links.open {
        display: flex;
    }

    .dropdown {
        position: relative;
    }

    .nav-link,
    .dropdown-toggle {
        width: auto;
        padding: 8px 10px;
        font-size: 0.9rem;
    }

    .dropdown-toggle::after {
        content: "▾";
        font-size: 0.72rem;
    }

    .dropdown.open .dropdown-toggle::after {
        content: "▾";
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        width: 330px;
        display: grid;
        visibility: hidden;
        opacity: 0;
        transform: translateY(6px);
        padding: 10px;
        box-shadow: var(--shadow);
        transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
    }

    .dropdown:hover .dropdown-menu,
    .dropdown:focus-within .dropdown-menu,
    .dropdown.open .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .nav-cta {
        margin: 0 0 0 6px;
        padding-inline: 14px !important;
    }

    section,
    .page-section {
        padding: 82px 24px;
    }

    h1 {
        font-size: 4.25rem;
    }

    h2 {
        font-size: 3rem;
    }

    .hero {
        padding-top: 62px;
    }

    .hero-grid,
    .split-grid,
    .contact-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
        align-items: center;
    }

    .stats-band,
    .trust-grid,
    .grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .grid-3,
    .subject-grid,
    .price-grid,
    .review-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .faq-grid {
        grid-template-columns: 1fr;
        max-width: 860px;
    }

    .footer-grid {
        grid-template-columns: 1.2fr repeat(4, 1fr);
    }

    .footer-bottom {
        grid-template-columns: 1fr auto;
        align-items: center;
    }
}
