* {
    box-sizing: border-box;
}

:root {
    --ink: #17212b;
    --muted: #5d6874;
    --line: #dce2e7;
    --soft: #f5f7f8;
    --soft-blue: #edf4f7;
    --brand: #164b67;
    --brand-dark: #10384e;
    --accent: #2e6f8e;
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(23, 33, 43, 0.07);
    --radius: 15px;
    --site-max: 1600px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

a {
    color: inherit;
}

.wrap {
    width: min(var(--site-max), calc(100% - 56px));
    margin: 0 auto;
}

.independence-bar {
    background: var(--brand-dark);
    color: var(--white);
    text-align: center;
    padding: 6px 18px;
    font-size: 0.78rem;
}

.site-header {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: var(--white);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-size: 1.08rem;
    line-height: 1.2;
}

.brand-text small {
    color: var(--muted);
    margin-top: 2px;
    font-size: 0.8rem;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.main-nav a {
    text-decoration: none;
    padding: 9px 11px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
}

.main-nav a:hover,
.main-nav a.active {
    background: var(--soft-blue);
    color: var(--brand-dark);
}

.menu-toggle {
    display: none;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 8px;
    padding: 8px 11px;
    font-weight: 700;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: 0.11em;
    font-weight: 700;
}

.button {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 9px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 0.92rem;
}

.button-primary {
    background: var(--brand);
    color: var(--white);
}

.button-primary:hover {
    background: var(--brand-dark);
}

.button-secondary {
    background: var(--white);
    color: var(--brand-dark);
    border-color: var(--line);
}

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

.text-link {
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* Homepage */
.home-hero {
    background:
        radial-gradient(circle at 84% 18%, rgba(46, 111, 142, 0.12), transparent 30%),
        linear-gradient(180deg, #f7fafb 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line);
    padding: 38px 0 34px;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(380px, 0.62fr);
    gap: 52px;
    align-items: center;
}

.home-hero-copy {
    max-width: 900px;
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(2.35rem, 4vw, 3.7rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    max-width: 820px;
}

.home-hero-lead {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
    max-width: 860px;
}

.hero-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.hero-note {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.home-quick-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px 18px;
}

.home-quick-card h2 {
    margin: 0 0 7px;
    font-size: 1rem;
}

.home-quick-card a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 2px;
    border-top: 1px solid var(--line);
    text-decoration: none;
    font-size: 0.91rem;
    font-weight: 600;
}

.home-quick-card a:hover {
    color: var(--accent);
}

.home-strip {
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.home-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.home-strip-grid div {
    padding: 14px 18px;
    border-right: 1px solid var(--line);
}

.home-strip-grid div:last-child {
    border-right: 0;
}

.home-strip-grid strong,
.home-strip-grid span {
    display: block;
}

.home-strip-grid strong {
    font-size: 0.9rem;
}

.home-strip-grid span {
    margin-top: 1px;
    color: var(--muted);
    font-size: 0.8rem;
}

.home-main-section {
    padding: 38px 0 50px;
}

.page-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 36px;
    align-items: start;
}

.page-main {
    min-width: 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 22px;
}

.section-heading h2,
.split-panel h2,
.content-callout h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.section-heading p:last-child,
.split-panel p,
.content-callout p {
    color: var(--muted);
}

.compact-heading p:last-child {
    margin-top: 9px;
    font-size: 0.96rem;
}

.home-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 19px;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(23, 33, 43, 0.035);
}

.topic-card h3 {
    margin: 12px 0 7px;
    font-size: 1.14rem;
}

.topic-card p {
    color: var(--muted);
    margin: 0;
}

.topic-card ul {
    padding-left: 19px;
    margin: 13px 0;
}

.topic-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    background: var(--soft-blue);
    color: var(--brand);
    font-weight: 700;
    font-size: 0.9rem;
}

.coming-soon {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--muted);
    background: var(--soft);
    border-radius: 999px;
    padding: 5px 9px;
}

.section {
    padding: 52px 0;
}

.section-alt {
    background: var(--soft);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 36px;
    align-items: center;
}

.tool-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 21px;
    box-shadow: var(--shadow);
}

.tool-box h3 {
    margin: 8px 0;
}

.tool-label {
    display: inline-block;
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--accent);
}

.compact-tools {
    padding: 44px 0;
}

.content-callout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px;
    background: var(--white);
}

.compact-bottom {
    padding: 44px 0 50px;
}

/* Sidebar */
.site-sidebar {
    position: sticky;
    top: 104px;
}

.sidebar-heading {
    margin: 0 0 9px;
    color: var(--brand);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.service-ad {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(23, 33, 43, 0.045);
    margin-bottom: 13px;
}

.service-brand-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.service-icon {
    width: 40px;
    height: 40px;
    border-radius: 9px;
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    background: var(--brand);
    color: var(--white);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.service-name {
    color: var(--brand-dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.14;
}

.service-url {
    margin-top: 2px;
    color: var(--accent);
    font-size: 0.75rem;
}

.service-copy {
    color: var(--ink);
    font-size: 0.87rem;
    line-height: 1.4;
    margin: 12px 0 9px;
}

.service-points {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
}

.service-points li {
    position: relative;
    padding-left: 21px;
    margin: 5px 0;
    color: var(--ink);
    font-size: 0.83rem;
    line-height: 1.35;
}

.service-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--brand);
    color: var(--white);
    display: grid;
    place-items: center;
    font-size: 0.64rem;
    font-weight: 700;
}

.service-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 9px 11px;
    border-radius: 8px;
    background: var(--brand);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.87rem;
}

.service-button:hover {
    background: var(--brand-dark);
}

.service-disclosure {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.69rem;
    line-height: 1.4;
}

.sidebar-help {
    border-radius: 14px;
    background: var(--soft-blue);
    padding: 14px 15px;
    color: var(--ink);
}

.sidebar-help strong {
    color: var(--brand-dark);
}

.sidebar-help p {
    margin: 4px 0 7px;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.sidebar-help a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
}

/* Simple pages */
.simple-page {
    padding: 48px 0 64px;
}

.simple-page .content {
    max-width: 820px;
}

.simple-page h1 {
    font-size: clamp(2.1rem, 3.5vw, 3.3rem);
    line-height: 1.05;
    margin: 0 0 18px;
    letter-spacing: -0.035em;
}

.simple-page h2 {
    margin-top: 30px;
}

.simple-page p,
.simple-page li {
    color: var(--muted);
}

.notice {
    background: var(--soft-blue);
    border-left: 4px solid var(--accent);
    padding: 16px 18px;
    margin: 22px 0;
}

/* Footer */
.site-footer {
    background: #111a22;
    color: #d9e0e5;
    padding: 46px 0 22px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr 0.7fr;
    gap: 36px;
}

.site-footer h2,
.site-footer h3 {
    color: var(--white);
    margin-top: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin: 7px 0;
}

.footer-links a {
    color: #d9e0e5;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
    color: #9eabb5;
}


@media (max-width: 1280px) {
    .home-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .page-with-sidebar {
        grid-template-columns: minmax(0, 1fr) 330px;
        gap: 28px;
    }

    .home-hero-grid {
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
        gap: 36px;
    }
}

@media (max-width: 980px) {
    .home-hero-grid,
    .page-with-sidebar,
    .split-panel,
    .content-callout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .sidebar-heading {
        grid-column: 1 / -1;
        margin-bottom: -2px;
    }

    .service-ad {
        margin-bottom: 0;
    }

    .sidebar-help {
        grid-column: 1 / -1;
    }

    .home-quick-card {
        max-width: 620px;
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: 72px;
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: var(--shadow);
        padding: 9px;
    }

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

    .main-nav a {
        width: 100%;
    }
}

@media (max-width: 680px) {
    .wrap {
        width: min(100% - 28px, var(--site-max));
    }

    .home-hero {
        padding: 28px 0 26px;
    }

    .home-hero h1 {
        font-size: 2.35rem;
    }

    .home-strip-grid {
        grid-template-columns: 1fr;
    }

    .home-strip-grid div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-strip-grid div:last-child {
        border-bottom: 0;
    }

    .home-card-grid,
    .site-sidebar {
        grid-template-columns: 1fr;
    }

    .sidebar-heading,
    .sidebar-help {
        grid-column: auto;
    }

    .brand-text small {
        display: none;
    }

    .section,
    .simple-page {
        padding-top: 42px;
        padding-bottom: 48px;
    }
}
