/* ---------- Hero ---------- */
.masthead--home {
    height: min(100vh, 820px);
    min-height: 640px;
}

.hero-paper {
    width: calc(480px + 42vw);
    background-position: left bottom;
    background-size: cover;
    background-repeat: no-repeat;
    mix-blend-mode: multiply;
    opacity: .7;
    -webkit-mask-image: linear-gradient(to bottom left, transparent 44%, #000 58%);
    mask-image: linear-gradient(to bottom left, transparent 44%, #000 58%);
}

.stage {
    padding: clamp(32px, 8vh, 80px) 0 clamp(40px, 8vh, 80px);
}

.hero-title {
    font-size: clamp(56px, 12.5vw, 180px);
    line-height: .95;
    letter-spacing: -.03em;
    text-shadow: 0 2px 30px rgba(17, 14, 82, .35);
}

.hero-title span {
    padding-left: 1.055em;
}

.stage-copy::before {
    content: "";
    position: absolute;
    inset: -40px -60px -40px -40px;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(closest-side, rgba(17, 14, 82, .55), rgba(17, 14, 82, 0));
}

.tagline {
    font-size: clamp(22px, 2vw, 32px);
    line-height: 1.2;
    color: #DCE5FA;
}

.hero-lead {
    max-width: 880px;
    font-size: clamp(17px, 1.55vw, 24px);
    line-height: 1.5;
    text-shadow: 0 1px 12px rgba(17, 14, 82, .45);
}

.quick {
    background: rgba(241, 244, 252, .95);
    color: var(--ink);
    box-shadow: 0 30px 60px -24px rgba(17, 14, 82, .55);
    animation: hover-float 6s ease-in-out infinite;
}

@keyframes hover-float {
    50% {
        transform: translateY(-8px);
    }
}

.quick .form-label {
    font-size: 12px;
}

.quick .form-control {
    height: 44px;
    font-size: 14px;
}

.quick .form-control:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px var(--blue);
}

.quick select {
    height: 38px;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #C3C8DB;
}

@media (min-width: 1200px) {
    .stage-copy {
        padding: 24px 0 0 32px;
    }
}

@media (max-width: 1199.98px) {
    .masthead--home {
        height: auto;
        min-height: 0;
    }

    .stage {
        padding: 40px 0 56px;
    }

    .stage-copy {
        max-width: 560px;
    }

    .quick {
        max-width: 460px;
        animation: none;
    }
}

/* ---------- Search dropdowns (Tom Select) ---------- */
.quick {
    --icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

.quick .ts-wrapper {
    --ts-pr-caret: 24px;
}

.quick .ts-control {
    height: 40px;
    align-items: center;
    padding: 0 4px;
    font-size: 14px;
    color: var(--ink);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #C3C8DB;
    border-radius: 0;
    transition: border-color .2s, color .2s;
}

.quick .ts-control::after {
    content: "";
    position: absolute;
    right: 4px;
    top: 12px;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--icon-chevron) center / contain no-repeat;
    mask: var(--icon-chevron) center / contain no-repeat;
    transition: transform .25s ease;
}

.quick .ts-control:hover,
.quick .ts-wrapper.focus .ts-control,
.quick .ts-wrapper.dropdown-active .ts-control {
    border-bottom-color: var(--blue);
    color: var(--blue);
}

.quick .ts-control:focus-visible {
    outline: none;
}

.quick .ts-wrapper.dropdown-active .ts-control::after {
    transform: rotate(180deg);
}

.quick-dropdown {
    --icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5L20 6.5'/%3E%3C/svg%3E");
    margin-top: 6px;
    padding: 6px;
    background: #EEF2FB;
    border: 1px solid #D5DEF2;
    border-radius: 12px;
    box-shadow: 0 18px 36px -14px rgba(17, 14, 82, .35);
}

.quick-dropdown .ts-dropdown-content {
    max-height: 240px;
}

.quick-dropdown .option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--ink);
    transition: background .15s, color .15s, padding .15s;
}

.quick-dropdown .option.active {
    background: #DCE6FB;
    color: var(--blue);
    padding-left: 16px;
}

.quick-dropdown .option.selected {
    font-weight: 600;
    color: var(--blue);
}

.quick-dropdown .option.selected::after {
    content: "";
    flex: none;
    width: 16px;
    height: 16px;
    background: currentColor;
    -webkit-mask: var(--icon-check) center / contain no-repeat;
    mask: var(--icon-check) center / contain no-repeat;
}

/* ---------- Cursor glow ---------- */
main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s ease;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0px), rgba(0, 47, 167, .16), rgba(62, 123, 219, .08) 35%, transparent 70%);
}

main.glow-on::before {
    opacity: 1;
}

/* ---------- Browse strip ---------- */
.browse-strip {
    margin-top: -44px;
}

.browse-card {
    min-height: 76px;
    font-size: 15px;
    line-height: 1.25;
    color: var(--ink);
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid #E0E5F1;
    box-shadow: 0 14px 30px -20px rgba(17, 14, 82, .45);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s ease;
}

.browse-card:hover {
    transform: scale(1.04);
    box-shadow: 0 18px 34px -18px rgba(0, 47, 167, .45);
}

.browse-card .icon {
    width: 42px;
    height: 42px;
    background: #E6ECFA;
    stroke: var(--blue);
    transition: background .2s, stroke .2s;
}

.browse-card:hover .icon {
    background: var(--blue);
    stroke: #fff;
}

.browse-card small {
    font-size: 12px;
}

@media (max-width: 1199.98px) {
    .browse-strip {
        margin-top: -28px;
    }
}

/* ---------- Tiles ---------- */
.tile,
.trust-card,
.notice-stage {
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.tile:hover,
.notice-stage:hover {
    transform: scale(1.02);
    box-shadow: 0 28px 50px -30px rgba(17, 14, 82, .45);
}

.tile-body {
    padding: 40px 40px 36px;
}

.tile-text {
    max-width: 440px;
    color: #2B3150;
}

.quote {
    line-height: 1.2;
    text-shadow: 0 2px 16px rgba(17, 14, 82, .5);
}

/* ---------- Alerts + Why ---------- */
.alerts {
    min-height: 560px;
    background: var(--grain), linear-gradient(180deg, #ECF2FB 0%, #DFE8F8 38%, #7C9BDA 68%, #2A3C9A 88%, #15135C 100%);
}

.checks {
    margin-bottom: 28px;
    font-size: 15px;
}

.checks .icon {
    width: 18px;
    height: 18px;
    stroke: var(--blue);
    stroke-width: 2.4;
}

.alerts-art {
    right: 24px;
    bottom: 116px;
    width: 220px;
    filter: drop-shadow(0 22px 28px rgba(17, 14, 82, .35));
    animation: alerts-float 6s ease-in-out infinite;
}

@keyframes alerts-float {
    0%,
    100% {
        transform: rotate(-6deg) translateY(0);
    }

    50% {
        transform: rotate(-6deg) translateY(-10px);
    }
}

.why {
    min-height: 560px;
}

.why img {
    object-position: 50% 0%;
}

.why::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(0deg, rgba(17, 14, 82, .82) 0%, rgba(17, 14, 82, .35) 22%, rgba(17, 14, 82, 0) 40%),
        linear-gradient(180deg, rgba(236, 242, 251, .9) 0%, rgba(236, 242, 251, .7) 38%, rgba(236, 242, 251, 0) 60%);
}

@media (max-width: 575.98px) {
    .tile-body {
        padding: 28px 22px;
    }

    .alerts {
        min-height: 620px;
    }

    .alerts-art {
        width: 150px;
        bottom: 150px;
    }

    .why {
        min-height: 680px;
    }

    .why img {
        object-position: 50% 100%;
    }
}

/* ---------- Trust ---------- */
.trust-card {
    background: var(--grain), linear-gradient(160deg, #15135C, #22338F);
}

.trust-card:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 36px -22px rgba(17, 14, 82, .6);
}

.trust-card .icon {
    width: 30px;
    height: 30px;
    stroke: #9DB8F0;
    opacity: .9;
}

/* ---------- Slogan ---------- */
.slogan {
    padding: 96px 0 72px;
}

.slogan-text {
    font-size: clamp(28px, 5.4vw, 72px);
    line-height: 1.1;
    letter-spacing: -.02em;
}

[data-aos="word-rise"] {
    display: inline-block;
}

[data-aos="word-rise"].aos-init {
    opacity: 0;
    transform: translateY(.45em);
    filter: blur(8px);
    transition-property: opacity, transform, filter;
}

[data-aos="word-rise"].aos-animate {
    opacity: 1;
    transform: none;
    filter: none;
}

[data-aos="underline"] {
    position: relative;
    display: inline-block;
}

[data-aos="underline"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -.18em;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--blue), #6FA3FF, var(--blue));
    box-shadow: 0 0 12px rgba(62, 123, 219, .6);
    transform-origin: left;
    transition: transform 1s cubic-bezier(.6, 0, .2, 1);
    transition-delay: inherit;
}

[data-aos="underline"].aos-init::after {
    transform: scaleX(0);
}

[data-aos="underline"].aos-animate::after {
    transform: scaleX(1);
}

/* ---------- How it works ---------- */
.how-intro {
    max-width: 360px;
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--accent);
    line-height: 1.2;
}

[data-aos="rise"].aos-init {
    opacity: 0;
    transform: translateY(18px);
    transition-property: opacity, transform;
}

[data-aos="rise"].aos-animate {
    opacity: 1;
    transform: none;
}

[data-aos="pop"].aos-init {
    transform: scale(.4);
    transition-property: transform;
}

[data-aos="pop"].aos-animate {
    transform: none;
}

.notice-stage {
    padding: 56px 40px;
    background: var(--soft) radial-gradient(color-mix(in srgb, var(--navy) 14%, transparent) 1px, transparent 1.2px) 0 0 / 14px 14px;
}

.notice {
    max-width: 360px;
    padding: 26px 26px 18px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #1d1d1d;
    box-shadow: 0 18px 40px -18px rgba(10, 25, 45, .45);
    transform: rotate(-2deg);
}

.notice h3 {
    font-size: 13px;
    letter-spacing: .03em;
}

.notice p {
    text-align: justify;
}

.notice .notice-case {
    margin-bottom: 12px;
    font-size: 11px;
}

.notice footer {
    font-size: 10.5px;
    color: #666;
}

.notice-badge {
    right: 28px;
    bottom: 28px;
    background: var(--accent);
    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    .tile:hover,
    .notice-stage:hover,
    .trust-card:hover,
    .browse-card:hover {
        transform: none;
    }

    .alerts-art {
        transform: rotate(-6deg);
    }
}
