:root {
    --bg: #edf4ff;
    --bg-soft: #f8fbff;
    --surface: #ffffff;
    --surface-alt: #f3f8ff;
    --ink: #0e2340;
    --muted: #4f6686;
    --line: #d7e4f8;
    --line-strong: #9cb7de;
    --brand: #0d2a4d;
    --brand-strong: #0a223f;
    --accent: #009970;
    --accent-strong: #00795a;
    --warm: #f7902f;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 14px 35px rgba(13, 42, 77, 0.08);
    --shadow-bold: 0 24px 48px rgba(13, 42, 77, 0.14);
}

body.home-refresh {
    margin: 0;
    font-family: "Instrument Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 88% -4%, #bfe5ff 0, transparent 35%), radial-gradient(circle at 10% 0, #d8ffec 0, transparent 35%), linear-gradient(180deg, var(--bg-soft) 0, var(--bg) 100%);
    min-height: 100vh;
}

.home-refresh h1,
.home-refresh h2,
.home-refresh h3 {
    color: var(--ink);
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    letter-spacing: -0.02em;
    margin: 0;
}

.home-refresh p {
    margin: 0;
    color: var(--muted);
}

.wrap {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.page-glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 16% 22%, rgba(36, 164, 255, 0.08), transparent 38%), radial-gradient(circle at 84% 12%, rgba(0, 153, 112, 0.1), transparent 35%);
    z-index: -1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    padding: 1rem 0 0.65rem;
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(122deg, rgba(9, 31, 56, 0.96), rgba(17, 53, 94, 0.93));
    border: 1px solid rgba(147, 191, 243, 0.25);
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(6, 22, 44, 0.25);
    padding: 0.6rem 0.85rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: #f7fbff;
    min-width: fit-content;
}

.brand img {
    height: 1.7rem;
    width: auto;
}

.brand-caption {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(221, 236, 255, 0.88);
}

.site-nav {
    display: flex;
    flex: 1;
    justify-content: center;
    gap: 0.25rem;
}

.site-nav a {
    text-decoration: none;
    color: #d8e8ff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.54rem 0.82rem;
    border-radius: 999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(142, 190, 247, 0.24);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-nav a.is-active {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-cta {
    text-decoration: none;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent) 0, var(--accent-strong) 100%);
    border-radius: 999px;
    padding: 0.58rem 0.95rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-width: fit-content;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(0, 121, 90, 0.28);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(165, 199, 241, 0.5);
    color: #e8f2ff;
    background: rgba(115, 167, 230, 0.16);
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    font-weight: 700;
    font-size: 0.82rem;
}

.hero {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    gap: 1.35rem;
    padding: 2rem 0 0.8rem;
}

.hero-copy {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(244, 250, 255, 0.94));
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(14, 78, 153, 0.09);
    color: #0f4f97;
    border: 1px solid rgba(15, 79, 151, 0.16);
    border-radius: 999px;
    padding: 0.34rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 3.9vw, 3.25rem);
    line-height: 1.08;
}

.lead {
    margin-top: 1rem;
    max-width: 58ch;
    font-size: 1.03rem;
    line-height: 1.65;
}

.hero-tags {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-tags span {
    background: linear-gradient(160deg, #ffffff, #eef6ff);
    color: #1c4d84;
    border: 1px solid #cde1fb;
    border-radius: 999px;
    padding: 0.38rem 0.78rem;
    font-weight: 600;
    font-size: 0.84rem;
}

.hero-kpis {
    margin-top: 1.45rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.hero-kpis article {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: var(--surface-alt);
    padding: 0.84rem;
}

.hero-kpis strong {
    display: block;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
    color: #163b67;
    font-size: 1.14rem;
}

.hero-kpis p {
    margin-top: 0.3rem;
    font-size: 0.79rem;
    line-height: 1.45;
    color: #4e6787;
}

.planner-card {
    background: linear-gradient(180deg, #102f56 0, #0d2645 100%);
    border-radius: var(--radius-xl);
    border: 1px solid #284f7b;
    box-shadow: var(--shadow-bold);
    color: #dcecff;
    padding: clamp(1.25rem, 3.1vw, 2rem);
    position: relative;
    overflow: hidden;
}

.planner-card::before {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 153, 112, 0.22), transparent 72%);
    top: -85px;
    right: -78px;
}

.planner-heading {
    position: relative;
    z-index: 2;
}

.planner-heading h2 {
    font-size: clamp(1.5rem, 2.1vw, 2.05rem);
    color: #f8fbff;
}

.planner-heading p {
    margin-top: 0.45rem;
    color: #b2cae9;
    font-size: 0.93rem;
    line-height: 1.6;
}

.route-form {
    margin-top: 1.05rem;
    position: relative;
    z-index: 2;
    display: grid;
    gap: 0.78rem;
}

.field-block label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.4rem;
    color: #bbd2ee;
}

.home-refresh .custom-select {
    width: 100%;
    border-radius: 0.8rem;
    border: 1px solid #82a7ce;
    background: #f7fbff;
    color: #112845;
    padding: 0.78rem 2.5rem 0.78rem 0.86rem;
    font-size: 0.94rem;
    font-weight: 500;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-refresh .custom-select:focus {
    border-color: #2f8bff;
    box-shadow: 0 0 0 3px rgba(47, 139, 255, 0.2);
    outline: none;
}

.home-refresh .metro-select-dropdown {
    border: 1px solid #c2d8f3;
    border-radius: 0.95rem;
    box-shadow: 0 20px 38px rgba(13, 42, 77, 0.18);
}

.home-refresh .metro-select-option.metro-select-option-highlight,
.home-refresh .metro-select-option:hover {
    background: #ecf5ff;
}

.home-refresh .metro-select-option.active {
    background: #ddf5ee;
    border-left-color: var(--accent);
}

.swap-btn {
    justify-self: end;
    border: 1px solid rgba(167, 201, 238, 0.55);
    border-radius: 999px;
    color: #ecf6ff;
    background: rgba(103, 150, 209, 0.2);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.36rem 0.68rem;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.swap-btn:hover,
.swap-btn:focus-visible {
    transform: translateY(-1px);
    background: rgba(103, 150, 209, 0.34);
}

.primary-btn {
    border: 0;
    border-radius: 0.86rem;
    padding: 0.84rem 1rem;
    background: linear-gradient(130deg, var(--warm), #e87200);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 20px rgba(231, 114, 0, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 15px 24px rgba(231, 114, 0, 0.34);
}

.route-note {
    color: #aac6e8;
    font-size: 0.79rem;
    line-height: 1.45;
}

.planner-links {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.planner-links a {
    text-decoration: none;
    color: #cce0f9;
    background: rgba(124, 166, 217, 0.18);
    border: 1px solid rgba(154, 192, 236, 0.35);
    border-radius: 999px;
    padding: 0.35rem 0.62rem;
    font-size: 0.79rem;
    font-weight: 600;
}

.planner-links a:hover,
.planner-links a:focus-visible {
    color: #ffffff;
    background: rgba(124, 166, 217, 0.3);
}

.section {
    margin-top: 1rem;
    padding: 1.5rem 0 0.8rem;
}

.section-head {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-head h2 {
    font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.section-head p {
    max-width: 68ch;
    line-height: 1.62;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.tool-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 1rem;
    display: grid;
    gap: 0.65rem;
}

.tool-card h3 {
    font-size: 1.05rem;
    line-height: 1.3;
}

.tool-card p {
    font-size: 0.9rem;
    line-height: 1.58;
}

.tool-card a {
    text-decoration: none;
    width: fit-content;
    border-radius: 999px;
    border: 1px solid #c6dbf8;
    color: #0f4f97;
    padding: 0.38rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.tool-card a:hover,
.tool-card a:focus-visible {
    background: #edf5ff;
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.4rem;
}

.panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem;
    display: grid;
    gap: 0.8rem;
}

.panel h2 {
    font-size: 1.35rem;
}

.panel p {
    line-height: 1.58;
}

.route-list {
    display: grid;
    gap: 0.52rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.route-list a {
    display: block;
    text-decoration: none;
    border: 1px solid #cfe0f7;
    border-radius: 0.85rem;
    background: #f7fbff;
    padding: 0.7rem 0.78rem;
    color: #1b4f89;
    font-weight: 600;
    line-height: 1.4;
}

.route-list a:hover,
.route-list a:focus-visible {
    border-color: #9dc0ea;
    background: #ecf5ff;
}

.update-stack {
    display: grid;
    gap: 0.6rem;
}

.update-card {
    text-decoration: none;
    border: 1px solid #cfe0f7;
    border-radius: 0.95rem;
    background: linear-gradient(180deg, #f8fcff 0, #f2f8ff 100%);
    padding: 0.8rem;
    display: grid;
    gap: 0.42rem;
}

.update-card .date {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 700;
    color: #00795a;
}

.update-card strong {
    color: #123f70;
    font-size: 0.95rem;
    line-height: 1.38;
}

.update-card p {
    font-size: 0.83rem;
    line-height: 1.5;
}

.update-card:hover,
.update-card:focus-visible {
    border-color: #a4c4eb;
    background: #ebf4ff;
}

.updates-link {
    width: fit-content;
    text-decoration: none;
    color: #0f4f97;
    border: 1px solid #c6dbf8;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    font-size: 0.8rem;
    font-weight: 700;
}

.updates-link:hover,
.updates-link:focus-visible {
    background: #ecf5ff;
}

.story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.story-card {
    background: linear-gradient(180deg, #ffffff 0, #f3f9ff 100%);
    border: 1px solid #cfe1f7;
    border-radius: 16px;
    padding: 0.95rem;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 0.45rem;
}

.story-card h3 {
    font-size: 1rem;
    color: #16487f;
}

.story-card p {
    font-size: 0.88rem;
    line-height: 1.55;
}

.faq-list {
    display: grid;
    gap: 0.6rem;
}

.faq-list details {
    background: #f6fbff;
    border: 1px solid #d2e3f8;
    border-radius: 14px;
    padding: 0.75rem 0.85rem;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    color: #15497f;
    font-size: 0.93rem;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list details p {
    margin-top: 0.52rem;
    font-size: 0.87rem;
    line-height: 1.58;
}

.freshness-note {
    margin-top: 0.7rem;
    border: 1px solid #bcd6f3;
    border-radius: 14px;
    background: linear-gradient(135deg, #e9f5ff 0, #eefef8 100%);
    padding: 0.85rem 0.95rem;
    display: grid;
    gap: 0.32rem;
}

.freshness-note h3 {
    font-size: 0.95rem;
    color: #12467c;
}

.freshness-note p {
    font-size: 0.86rem;
    line-height: 1.55;
}

.methodology-section .section-head p {
    max-width: 72ch;
}

.methodology-article {
    margin-top: 0.75rem;
    background: linear-gradient(180deg, #ffffff 0, #f5faff 100%);
    border: 1px solid #cfe1f8;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: clamp(1rem, 2.8vw, 1.8rem);
}

.methodology-article h3 {
    font-size: 1.22rem;
    color: #113f73;
    margin-top: 1.1rem;
}

.methodology-article h3:first-child {
    margin-top: 0;
}

.methodology-article h4 {
    font-size: 1rem;
    color: #14508b;
    margin: 0.92rem 0 0;
    font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
}

.methodology-article p {
    margin-top: 0.46rem;
    font-size: 0.9rem;
    line-height: 1.66;
    color: #3f5a7d;
}

.methodology-article ol,
.methodology-article ul {
    margin: 0.55rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.28rem;
}

.methodology-article li {
    color: #3f5a7d;
    font-size: 0.89rem;
    line-height: 1.58;
}

.methodology-article strong {
    color: #103e70;
}

.methodology-article code {
    background: #e9f3ff;
    border: 1px solid #c9dcf7;
    border-radius: 8px;
    padding: 0.05rem 0.35rem;
    font-size: 0.84rem;
    color: #0f4f97;
}

.site-footer {
    background: linear-gradient(160deg, #0c2443, #091a32);
    color: #cbddf3;
    padding: 2.4rem 0 1.2rem;
    border-top: 1px solid rgba(162, 195, 234, 0.2);
}

.footer-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
}

.site-footer h3 {
    font-size: 0.95rem;
    color: #f4f9ff;
    margin-bottom: 0.48rem;
}

.site-footer section {
    display: grid;
    align-content: start;
    gap: 0.4rem;
}

.site-footer p {
    color: #b9cde8;
    font-size: 0.89rem;
    line-height: 1.6;
}

.site-footer a {
    text-decoration: none;
    color: #d6e7fb;
    font-size: 0.85rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: #ffffff;
}

.footer-note {
    margin-top: 1.2rem;
    text-align: center;
    color: #aec7e5;
    font-size: 0.78rem;
}

.footer-note a {
    color: #f0f6ff;
    font-weight: 600;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero {
        grid-template-columns: 1fr;
    }

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

    .split {
        grid-template-columns: 1fr;
    }

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

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

@media (max-width: 840px) {
    .site-header {
        padding-top: 0.8rem;
    }

    .nav-shell {
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .nav-cta {
        display: none;
    }

    .site-nav {
        width: 100%;
        display: none;
        order: 3;
        flex-wrap: wrap;
        justify-content: flex-start;
        background: rgba(11, 39, 71, 0.92);
        border: 1px solid rgba(146, 188, 237, 0.25);
        border-radius: 18px;
        padding: 0.55rem;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        flex: 1 1 calc(50% - 0.4rem);
        text-align: center;
        padding: 0.55rem 0.45rem;
    }

    .hero-kpis {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .wrap {
        width: min(1120px, calc(100% - 1.2rem));
    }

    .hero {
        padding-top: 1.2rem;
        gap: 0.95rem;
    }

    .hero-copy,
    .planner-card,
    .tool-card,
    .panel {
        border-radius: 18px;
        padding: 1rem;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 8.4vw, 2.35rem);
    }

    .lead {
        font-size: 0.95rem;
    }

    .tools-grid,
    .footer-grid,
    .story-grid {
        grid-template-columns: 1fr;
    }

    .section {
        margin-top: 0.35rem;
    }
}
