@import url("../../assets/css/theme.css");

:root {
    --ink: #071943;
    --ink-soft: #34446b;
    --green: #00a85a;
    --green-dark: #007f43;
    --green-light: #e9fff2;
    --blue: #0878ff;
    --blue-dark: #0b369d;
    --blue-light: #ecf7ff;
    --mint: #ddfaea;
    --line: rgba(7, 25, 67, 0.1);
    --surface: #ffffff;
    --shadow: 0 18px 54px rgba(15, 64, 88, 0.12);
    --radius-lg: 32px;
    --radius-md: 22px;
    --radius-sm: 15px;
    --shell: 1220px;
    --hero-desktop-min-height: 560px;
    --hero-desktop-media-height: 440px;
    --hero-desktop-gap: 56px;
    --hero-desktop-padding: 56px;
    --hero-tablet-media-height: 390px;
    --hero-tablet-gap: 32px;
    --hero-tablet-padding-top: 48px;
    --hero-tablet-padding-bottom: 36px;
    --hero-mobile-media-height: 310px;
    --hero-mobile-gap: 24px;
    --hero-mobile-padding-top: 40px;
    --hero-mobile-padding-bottom: 28px;
    --font: var(--system-font-family, Inter, "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: #f7fffb;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 16px;
    border-radius: 10px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 0;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 78px;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    flex: 0 0 auto;
    min-height: 44px;
    align-items: center;
    transition: opacity 180ms ease;
}

.brand:hover,
.brand:focus-visible {
    opacity: .86;
}

.brand img {
    width: 207px;
    height: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-left: auto;
    font-size: 14px;
    font-weight: 750;
}

.desktop-nav-link,
.desktop-nav-trigger {
    position: relative;
    padding: 12px 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.desktop-nav-link::after,
.desktop-nav-trigger::after {
    position: absolute;
    right: 50%;
    bottom: 5px;
    left: 50%;
    height: 2px;
    border-radius: 999px;
    background: var(--green);
    content: "";
    transition: right 180ms ease, left 180ms ease;
}

.desktop-nav-link:hover::after,
.desktop-nav-link:focus-visible::after,
.desktop-nav-link[aria-current="page"]::after,
.desktop-nav-trigger:hover::after,
.desktop-nav-trigger:focus-visible::after,
.desktop-nav-dropdown.is-current .desktop-nav-trigger::after,
.desktop-nav-trigger[aria-expanded="true"]::after {
    right: 0;
    left: 0;
}

.desktop-nav-link[aria-current="page"],
.desktop-nav-dropdown.is-current .desktop-nav-trigger {
    color: var(--green-dark);
}

.desktop-nav-dropdown {
    position: relative;
}

.desktop-nav-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-caret {
    font-size: 17px;
    line-height: 1;
    transition: transform 180ms ease;
}

.desktop-nav-trigger[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
}

.desktop-nav-menu {
    position: absolute;
    z-index: 70;
    top: calc(100% + 10px);
    left: 50%;
    display: grid;
    width: 250px;
    gap: 4px;
    padding: 10px;
    border: 1px solid rgba(7, 25, 67, .1);
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 20px 45px rgba(7, 25, 67, .16);
    transform: translateX(-50%);
}

.desktop-nav-menu--wide {
    width: 320px;
}

.desktop-nav-menu[hidden] {
    display: none;
}

.desktop-nav-menu a {
    display: grid;
    gap: 2px;
    padding: 11px 13px;
    border-radius: 12px;
    color: var(--ink);
    line-height: 1.25;
}

.desktop-nav-menu a:hover,
.desktop-nav-menu a:focus-visible,
.desktop-nav-menu a[aria-current="page"] {
    color: var(--green-dark);
    background: #effcf4;
}

.desktop-nav-menu strong {
    font-size: 14px;
}

.desktop-nav-menu small {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 11px 24px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    line-height: 1.2;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(8, 120, 255, 0.35);
    outline-offset: 3px;
}

.button--login,
.button--primary {
    color: #fff;
    background: linear-gradient(135deg, #17bb6d 0%, #008f4d 100%);
    box-shadow: 0 10px 24px rgba(0, 151, 80, 0.23);
}

.button--login {
    min-width: 108px;
    padding-inline: 19px;
    border-radius: 12px;
}

.button--blue {
    color: #fff;
    background: linear-gradient(135deg, #3a9bff 0%, #0065ee 100%);
    box-shadow: 0 10px 24px rgba(0, 105, 238, 0.21);
}

.button--large {
    min-height: 54px;
    padding-inline: 29px;
    font-size: 17px;
}

.button--wide {
    width: 100%;
}

.button--outline,
.button--outline-blue {
    border: 1.5px solid var(--green);
    color: var(--green-dark);
    background: #fff;
    box-shadow: none;
}

.button--outline-blue {
    border-color: var(--blue);
    color: var(--blue-dark);
}

.menu-button {
    display: none;
    width: 46px;
    height: 46px;
    padding: 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-button[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-button[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    border-top: 1px solid var(--line);
    background: #fff;
}

.mobile-menu nav {
    display: grid;
    width: min(calc(100% - 40px), var(--shell));
    margin: auto;
    padding: 12px 0 20px;
}

.mobile-nav-primary,
.mobile-nav-group summary {
    display: flex;
    min-height: 46px;
    align-items: center;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
    font-weight: 750;
}

.mobile-nav-primary[aria-current="page"],
.mobile-nav-group.is-current > summary {
    color: var(--green-dark);
}

.mobile-nav-group summary {
    justify-content: space-between;
    list-style: none;
}

.mobile-nav-group summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-group summary::after {
    color: var(--green-dark);
    content: "+";
    font-size: 22px;
    line-height: 1;
}

.mobile-nav-group[open] summary::after {
    content: "−";
}

.mobile-nav-submenu {
    display: grid;
    padding: 6px 0 10px 16px;
    border-bottom: 1px solid var(--line);
}

.mobile-nav-submenu a {
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 650;
}

.mobile-nav-submenu a:hover,
.mobile-nav-submenu a:focus-visible,
.mobile-nav-submenu a[aria-current="page"] {
    color: var(--green-dark);
    background: #effcf4;
}

#learning-paths {
    scroll-margin-top: 94px;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 0;
    background:
        radial-gradient(circle at 84% 12%, rgba(127, 216, 255, 0.42), transparent 31%),
        linear-gradient(124deg, #fff 0%, #effff5 47%, #e9f9ff 100%);
}

.hero::after {
    position: absolute;
    z-index: 0;
    right: -120px;
    bottom: 46px;
    width: 520px;
    height: 220px;
    border-radius: 50%;
    background: rgba(136, 226, 165, 0.18);
    content: "";
    filter: blur(2px);
}

.hero-blob {
    position: absolute;
    z-index: 0;
    border-radius: 48% 52% 58% 42%;
    background: rgba(255, 255, 255, 0.55);
    transform: rotate(18deg);
}

.hero-blob--one {
    top: 76px;
    left: -100px;
    width: 390px;
    height: 300px;
}

.hero-blob--two {
    top: -90px;
    left: 44%;
    width: 340px;
    height: 210px;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 510px;
    grid-template-columns: minmax(0, 0.85fr) minmax(520px, 1.15fr);
    align-items: center;
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding: 34px 0 62px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 590px;
    margin: 0;
    font-size: clamp(45px, 5vw, 70px);
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.07;
}

.hero h1 span {
    display: inline-block;
}

.hero h1 span,
.section-heading h2 span {
    color: var(--green);
}

.marker-line {
    width: 230px;
    height: 13px;
    margin: 10px 0 8px 2px;
    border-top: 5px solid var(--green);
    border-radius: 55% 35% 50% 35%;
    transform: rotate(-2deg);
}

.hero-mantra {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 7px 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.hero-mantra i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green);
}

.hero-description {
    max-width: 535px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-top: 26px;
}

.text-link {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 800;
}

.text-link:hover,
.text-link:focus-visible {
    color: var(--green-dark);
}

.hero-visual {
    position: relative;
    align-self: end;
    min-height: 495px;
}

.hero-visual img {
    position: absolute;
    z-index: 2;
    right: -116px;
    bottom: -3px;
    width: min(810px, 67vw);
    height: auto;
    max-width: none;
    filter: drop-shadow(0 25px 24px rgba(34, 83, 71, 0.12));
}

.hero-note {
    position: absolute;
    z-index: 4;
    padding: 8px 17px;
    border-radius: 12px;
    color: #0751b7;
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 10px 25px rgba(17, 87, 122, 0.13);
    font-family: "Comic Sans MS", cursive;
    font-weight: 800;
    transform: rotate(-4deg);
}

.hero-note--progress {
    right: 0;
    bottom: 98px;
    padding: 12px 15px;
    font-size: 15px;
    line-height: 1.15;
    transform: rotate(5deg);
}

.trust-row {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 24px 24px 0 0;
    background: rgba(255, 255, 255, 0.89);
    box-shadow: 0 -6px 34px rgba(32, 100, 83, 0.06);
}

.trust-item {
    display: flex;
    min-height: 86px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 14px 24px;
}

.trust-item + .trust-item {
    border-left: 1px solid var(--line);
}

.trust-item strong,
.trust-item small {
    display: block;
}

.trust-item strong {
    font-size: 14px;
}

.trust-item small {
    color: var(--ink-soft);
    font-size: 12px;
}

.trust-icon {
    display: flex;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: var(--green-dark);
    background: var(--green-light);
    font-size: 15px;
    font-weight: 900;
}

.trust-icon--bars {
    align-items: end;
    gap: 3px;
    padding-bottom: 10px;
}

.trust-icon--bars b {
    width: 5px;
    border-radius: 3px;
    background: var(--green);
}

.trust-icon--bars b:nth-child(1) { height: 11px; }
.trust-icon--bars b:nth-child(2) { height: 18px; }
.trust-icon--bars b:nth-child(3) { height: 25px; }

.section {
    padding: 76px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 46px);
    font-weight: 900;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.section-heading > p:last-child {
    margin: 8px 0 0;
    color: var(--ink-soft);
    font-size: 17px;
}

.section-heading--compact h2 {
    font-size: clamp(28px, 3.4vw, 38px);
}

.section--paths {
    background: #fff;
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.path-card {
    position: relative;
    display: grid;
    min-height: 310px;
    grid-template-columns: 0.8fr 1.2fr;
    overflow: hidden;
    border: 1px solid rgba(0, 168, 90, 0.13);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f4fff7 0%, #e7f9eb 100%);
    box-shadow: 0 15px 38px rgba(0, 119, 65, 0.08);
}

.path-card--secondary {
    border-color: rgba(8, 120, 255, 0.15);
    background: linear-gradient(135deg, #f6fbff 0%, #e7f7ff 100%);
    box-shadow: 0 15px 38px rgba(8, 120, 255, 0.08);
}

.path-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 34px 28px 34px 4px;
}

.path-content h3 {
    margin: 0;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.path-content > p:not(.path-label):not(.path-level) {
    margin: 5px 0 20px;
    color: var(--ink-soft);
    font-size: 14px;
}

.path-label {
    margin: 0 0 2px;
    color: var(--green-dark);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.path-card--secondary .path-label,
.path-card--secondary .path-level {
    color: var(--blue-dark);
}

.path-level {
    margin: -1px 0 3px;
    color: var(--green-dark);
    font-size: 20px;
    font-weight: 850;
}

.path-art {
    position: relative;
    min-height: 300px;
}

.path-art::before,
.path-art::after {
    position: absolute;
    border-radius: 52% 48% 62% 38%;
    background: rgba(105, 226, 132, 0.24);
    content: "";
}

.path-art::before {
    right: 10px;
    bottom: 30px;
    width: 200px;
    height: 135px;
    transform: rotate(-12deg);
}

.path-art::after {
    right: 25px;
    bottom: 19px;
    width: 150px;
    height: 85px;
    transform: rotate(15deg);
}

.number-block,
.math-block {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    box-shadow: 0 16px 24px rgba(36, 62, 84, 0.16), inset 0 3px 1px rgba(255, 255, 255, 0.38);
}

.number-block--one { top: 89px; left: 25px; background: #ff9326; transform: rotate(-12deg); }
.number-block--two { top: 42px; left: 100px; background: #13c978; transform: rotate(8deg); }
.number-block--three { top: 132px; left: 107px; background: #963eff; transform: rotate(11deg); }
.spark { position: absolute; z-index: 3; color: #ffc928; font-size: 35px; filter: drop-shadow(0 5px 4px rgba(163, 105, 0, 0.12)); }
.spark--one { top: 53px; left: 22px; }
.spark--two { right: 40px; bottom: 65px; }

.path-art--secondary::before,
.path-art--secondary::after {
    background: rgba(90, 184, 255, 0.18);
}

.math-block {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    font-family: Georgia, serif;
}

.math-block--root { top: 114px; left: 29px; background: #168ff5; transform: rotate(-9deg); }
.math-block--pi { top: 102px; left: 112px; background: #f04560; transform: rotate(5deg); }
.math-block--beta { top: 37px; left: 84px; background: #7854e8; transform: rotate(-4deg); }
.graph-tile { position: absolute; z-index: 2; top: 37px; right: 11px; width: 105px; height: 80px; border-radius: 16px; background: #1285e8; box-shadow: 0 12px 22px rgba(20, 89, 177, 0.18); transform: rotate(7deg); }
.graph-tile::before,
.graph-tile::after { position: absolute; background: rgba(255,255,255,.75); content: ""; }
.graph-tile::before { left: 20px; bottom: 16px; width: 70px; height: 2px; }
.graph-tile::after { left: 22px; bottom: 15px; width: 2px; height: 50px; }
.graph-tile i { position: absolute; left: 31px; bottom: 20px; width: 49px; height: 36px; border-top: 3px solid #fff; border-right: 3px solid #fff; transform: skewY(-28deg); }

.section--more {
    background: linear-gradient(180deg, #f8fdff 0%, #fff 100%);
}

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

.service-card {
    position: relative;
    display: flex;
    min-height: 320px;
    flex-direction: column;
    align-items: center;
    padding: 26px 21px 23px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 15px 34px rgba(24, 77, 112, 0.07);
    text-align: center;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-card:not(.service-card--muted):hover {
    transform: translateY(-5px);
    box-shadow: 0 21px 42px rgba(24, 77, 112, 0.12);
}

.service-card h3 {
    margin: 12px 0 2px;
    font-size: 18px;
    line-height: 1.2;
}

.service-card p {
    margin: 4px 0 15px;
    color: var(--ink-soft);
    font-size: 14px;
}

.service-link {
    min-height: 44px;
    margin-top: auto;
    padding: 10px 12px;
    border: 0;
    color: var(--blue);
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 850;
}

.service-link[disabled] {
    color: #788197;
    cursor: not-allowed;
}

.availability {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 4px 8px;
    border-radius: 999px;
    color: #596276;
    background: #edf0f4;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.service-illustration {
    display: block;
    width: min(184px, 86%);
    height: 120px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(24, 77, 112, 0.12));
}

.service-card--muted {
    background: #f8fafb;
}

.section--benefits {
    position: relative;
    background:
        radial-gradient(circle at 8% 85%, rgba(98, 228, 133, 0.2), transparent 20%),
        radial-gradient(circle at 92% 24%, rgba(158, 220, 255, 0.28), transparent 19%),
        linear-gradient(90deg, #effff4, #f5fffc 52%, #eefcff);
}

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

.benefit-item {
    padding: 8px 29px;
    text-align: center;
}

.benefit-item + .benefit-item {
    border-left: 1px solid rgba(0, 139, 88, 0.14);
}

.benefit-icon {
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 13px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(29, 69, 86, 0.13));
}

.benefit-item h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.2;
}

.benefit-item p {
    margin: 7px 0 0;
    color: var(--ink-soft);
    font-size: 13px;
}

.section--family {
    background: #fff;
}

.family-panel {
    display: grid;
    min-height: 280px;
    grid-template-columns: 0.9fr 1.15fr 0.75fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f4fff7 0%, #fff 54%, #f4fbff 100%);
    box-shadow: var(--shadow);
}

.family-photo {
    align-self: stretch;
    min-height: 280px;
}

.family-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.family-copy {
    padding: 38px 34px;
}

.family-copy h2 {
    margin: 0;
    font-size: 31px;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.family-copy > p:not(.eyebrow) {
    margin: 10px 0 20px;
    color: var(--ink-soft);
    font-size: 14px;
}

.family-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.family-fact {
    margin-right: 25px;
    padding: 26px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(25, 76, 99, 0.1);
}

.family-fact strong {
    color: var(--green);
    font-size: 39px;
    line-height: 1;
}

.family-fact p {
    margin: 7px 0 14px;
    color: var(--ink-soft);
    font-size: 13px;
}

.family-fact a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 850;
}

.site-footer {
    padding: 54px 0 18px;
    color: rgba(255,255,255,.84);
    background: linear-gradient(120deg, #00392f 0%, #00523e 48%, #002c28 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, 1fr);
    gap: 44px;
}

.footer-brand img {
    width: 190px;
    height: auto;
    padding: 0;
    background: transparent;
    filter: brightness(0) invert(1);
}

.footer-grid > .footer-brand > .footer-brand-link {
    display: inline-flex;
    min-height: auto;
    align-items: center;
    padding: 0;
    text-decoration: none;
}

.footer-brand p {
    margin: 14px 0;
    font-size: 13px;
}

.footer-grid h2 {
    margin: 4px 0 12px;
    color: #55e39a;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-grid > div > a {
    display: block;
    padding: 3px 0;
    font-size: 12px;
}

.footer-grid > div > a:hover,
.footer-grid > div > a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.18);
    color: rgba(255,255,255,.68);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

.footer-legal > * {
    padding: 0 12px;
}

.footer-legal > * + * {
    border-left: 1px solid rgba(255,255,255,.38);
}

.footer-legal a:hover,
.footer-legal a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.login-overlay[hidden],
.media-overlay[hidden] {
    display: none;
}

.login-overlay,
.media-overlay {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.media-dialog {
    position: relative;
    z-index: 2;
    width: min(960px, calc(100vw - 48px), calc((100dvh - 120px) * 1.7778));
    max-height: calc(100dvh - 48px);
    padding: 24px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 24, 43, .34);
}

.media-dialog > h2 {
    margin: 0 58px 16px 0;
    font-size: clamp(21px, 2.5vw, 30px);
    line-height: 1.2;
}

.media-frame {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #061d3b;
}

.media-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.media-dialog--image {
    width: min(800px, calc(100vw - 48px));
}

.media-frame--image {
    display: grid;
    max-height: calc(100dvh - 150px);
    aspect-ratio: auto;
    place-items: center;
    background: #f4fbfd;
}

.media-frame--image img {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 150px);
    width: auto;
    height: auto;
}

.login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 35, 47, 0.58);
    backdrop-filter: blur(7px);
}

.login-dialog {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    overflow: auto;
    padding: 34px 34px 24px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 24, 43, 0.3);
    text-align: center;
}

.dialog-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #5d6b86;
    background: #eef1f5;
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.dialog-logo {
    width: 220px;
    height: auto;
    margin: 0 auto 13px;
}

.login-dialog > h2 {
    margin: 0;
    font-size: 31px;
    line-height: 1.16;
}

.login-dialog > p {
    margin: 5px 0 20px;
    color: #71809f;
}

.login-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.login-option {
    padding: 20px;
    border: 1px solid rgba(0, 168, 90, .18);
    border-radius: 20px;
    background: linear-gradient(160deg, #f7fffa, #ebfff2);
}

.login-option--secondary {
    border-color: rgba(8, 120, 255, .2);
    background: linear-gradient(160deg, #f8fcff, #edf8ff);
}

.login-option-art {
    display: flex;
    min-height: 112px;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.login-option-art span {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    font-size: 34px;
    font-weight: 900;
    box-shadow: 0 11px 20px rgba(32, 58, 77, .14);
}

.login-option-art span:nth-child(1) { background: #ff9227; transform: rotate(-11deg); }
.login-option-art span:nth-child(2) { background: #13c879; transform: translateY(-16px) rotate(8deg); }
.login-option-art span:nth-child(3) { background: #9140f4; transform: rotate(9deg); }
.login-option-art--secondary span:nth-child(1) { background: #7357e8; }
.login-option-art--secondary span:nth-child(2) { background: #ef4562; }
.login-option-art--secondary span:nth-child(3) { background: #168bf1; }

.login-option h3 {
    margin: 3px 0 0;
    color: var(--green-dark);
    font-size: 27px;
    line-height: 1.15;
}

.login-option--secondary h3 {
    color: var(--blue-dark);
}

.login-option > strong {
    color: var(--green-dark);
    font-size: 18px;
}

.login-option--secondary > strong {
    color: var(--blue-dark);
}

.login-option > p {
    min-height: 48px;
    margin: 7px auto 17px;
    color: var(--ink-soft);
    font-size: 13px;
}

.login-dialog .dialog-tagline {
    margin: 19px 0 0;
    font-size: 12px;
    font-style: italic;
}

.sheet-handle {
    display: none;
}

@media (max-width: 1080px) {
    .desktop-nav { gap: 18px; }
    .hero-grid { grid-template-columns: minmax(0, .9fr) minmax(430px, 1.1fr); }
    .hero-visual img { right: -145px; width: 720px; }
    .hero-note--progress { right: -4px; }
    .path-card { grid-template-columns: .75fr 1.25fr; }
    .graph-tile { display: none; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .family-panel { grid-template-columns: .9fr 1.1fr; }
    .family-fact { grid-column: 1 / -1; margin: 0; border-radius: 0; text-align: center; }
    .family-fact strong { font-size: 38px; }
    .footer-grid { gap: 30px; }
}

@media (max-width: 980px) {
    .shell { width: min(calc(100% - 34px), var(--shell)); }
    .desktop-nav { display: none; }
    .header-inner { min-height: 70px; }
    .header-actions { margin-left: auto; }
    .menu-button { display: block; }
    .brand img { width: 187px; }
    .hero { padding-top: 0; }
    .hero-grid {
        min-height: 0;
        grid-template-columns: 1fr;
        gap: var(--hero-tablet-gap);
        padding-block: var(--hero-tablet-padding-top) var(--hero-tablet-padding-bottom);
    }
    .hero-copy { padding: 0; text-align: center; }
    .hero h1 { max-width: 680px; margin: auto; }
    .marker-line { margin-inline: auto; }
    .hero-mantra { justify-content: center; }
    .hero-description { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .hero-visual {
        width: min(100%, 720px);
        height: var(--hero-tablet-media-height);
        min-height: var(--hero-tablet-media-height);
        margin-inline: auto;
    }
    .hero-visual img { right: 50%; bottom: 0; width: 800px; transform: translateX(50%); }
    .hero-note--progress { right: 5%; bottom: 75px; }
}

@media (max-width: 900px) {
    .trust-row { width: 100%; border-radius: 0; }
    .path-grid { grid-template-columns: 1fr; }
    .path-card { grid-template-columns: .8fr 1.2fr; }
    .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 0; }
    .benefit-item:nth-child(3) { border-left: 0; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
    .shell { width: min(calc(100% - 28px), var(--shell)); }
    .brand img { width: 165px; }
    .button--login { min-width: 0; width: 46px; height: 46px; padding: 0; border-radius: 13px; }
    .button--login span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
    .hero-grid {
        gap: var(--hero-mobile-gap);
        padding-block: var(--hero-mobile-padding-top) var(--hero-mobile-padding-bottom);
    }
    .hero-copy { padding-top: 0; }
    .eyebrow { font-size: 10px; }
    .hero h1 { font-size: clamp(42px, 13vw, 59px); }
    .hero-description { font-size: 16px; }
    .hero-mantra { font-size: 17px; }
    .hero-actions { flex-direction: column; gap: 13px; }
    .hero-actions .text-link { display: inline-flex; min-height: 44px; align-items: center; }
    .hero-visual {
        height: var(--hero-mobile-media-height);
        min-height: var(--hero-mobile-media-height);
    }
    .hero-visual img { width: min(112vw, 660px); }
    .hero-note--progress { display: none; }
    .trust-row { grid-template-columns: 1fr; }
    .trust-item { min-height: 70px; justify-content: flex-start; padding: 12px 24px; }
    .trust-item + .trust-item { border-top: 1px solid var(--line); border-left: 0; }
    .section { padding: 58px 0; }
    .section-heading { margin-bottom: 25px; }
    .section-heading h2 { font-size: 34px; }
    .section-heading > p:last-child { font-size: 15px; }
    .path-card { grid-template-columns: 1fr; }
    .path-art { min-height: 190px; }
    .path-content { align-items: center; padding: 5px 24px 26px; text-align: center; }
    .number-block--one { top: 65px; left: calc(50% - 107px); }
    .number-block--two { top: 20px; left: calc(50% - 35px); }
    .number-block--three { top: 82px; left: calc(50% + 26px); }
    .math-block--root { top: 87px; left: calc(50% - 107px); }
    .math-block--pi { top: 77px; left: calc(50% + 24px); }
    .math-block--beta { top: 18px; left: calc(50% - 37px); }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 300px; }
    .benefit-grid { grid-template-columns: 1fr; gap: 0; }
    .benefit-item { padding: 24px 12px; }
    .benefit-item + .benefit-item { border-top: 1px solid rgba(0, 139, 88, 0.14); border-left: 0; }
    .family-panel { width: min(calc(100% - 28px), var(--shell)); grid-template-columns: 1fr; }
    .family-photo { min-height: 230px; }
    .family-copy { padding: 30px 24px; text-align: center; }
    .family-copy h2 { font-size: 28px; }
    .family-actions { justify-content: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
    .footer-grid > div > a { display: flex; min-height: 44px; align-items: center; padding: 10px 0; }
    .footer-legal { row-gap: 8px; }
    .login-overlay { align-items: end; padding: 0; }
    .login-dialog { width: 100%; max-height: calc(100dvh - 42px); padding: 26px 14px 16px; border-radius: 28px 28px 0 0; }
    .sheet-handle { display: block; width: 42px; height: 5px; margin: -10px auto 18px; border-radius: 999px; background: #ccd2dc; }
    .dialog-close { top: 16px; right: 16px; }
    .dialog-logo { width: 183px; }
    .login-dialog > h2 { padding-inline: 25px; font-size: 25px; }
    .login-options { grid-template-columns: 1fr; }
    .login-option { padding: 16px; }
    .login-option-art { min-height: 86px; }
    .login-option-art span { width: 53px; height: 53px; font-size: 28px; }
    .login-option h3 { font-size: 24px; }
    .login-option > p { min-height: 0; margin-bottom: 13px; }
    .login-dialog .dialog-tagline { display: none; }

    .media-overlay { padding: 16px; }
    .media-dialog { width: min(100%, calc((100dvh - 104px) * 1.7778)); padding: 18px; border-radius: 22px; }
    .media-dialog > h2 { margin-bottom: 13px; font-size: 20px; }
}

@media (max-width: 390px) {
    .brand img { width: 145px; }
    .header-actions { gap: 4px; }
    .hero h1 { font-size: 42px; }
    .hero-visual { min-height: 285px; }
    .hero-visual img { width: min(112vw, 660px); }
    .path-content h3 { font-size: 28px; }
    .footer-grid { grid-template-columns: 1fr; }
}

/* Keep the four public-page heroes on one desktop rhythm. */
@media (min-width: 981px) {
    .hero {
        padding-top: 0;
    }

    .hero-grid {
        min-height: var(--hero-desktop-min-height);
        grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
        align-items: start;
        gap: var(--hero-desktop-gap);
        padding-block: var(--hero-desktop-padding);
    }

    .hero-copy {
        padding: 0;
    }

    .hero-visual {
        width: 100%;
        height: var(--hero-desktop-media-height);
        min-height: var(--hero-desktop-media-height);
        align-self: start;
    }

    .hero-visual img {
        position: absolute;
        right: -2%;
        bottom: -3%;
        width: 112%;
        height: 112%;
        max-width: none;
        object-fit: contain;
        object-position: center bottom;
        transform: none;
    }

    .hero-note--progress {
        right: 6%;
        bottom: 74px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
