:root {
    color-scheme: light;
    --navy: #320d8f;
    --navy-deep: #24066d;
    --teal: #4d16a9;
    --teal-light: #f1e9ff;
    --coral: #eb1471;
    --yellow: #fc903b;
    --sand: #fff4e8;
    --sky: #e8f8fb;
    --ink: #281746;
    --muted: #716682;
    --line: #e4dcef;
    --brand-cyan: #029cb7;
    --white: #fff;
    --shadow: 0 22px 60px rgba(50, 13, 143, .14);
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: #fbfaff;
    font-family: "DM Sans", sans-serif;
}

button, input, select { font: inherit; }

button, select { cursor: pointer; }

.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;
}

.site-header {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 0 max(28px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid rgba(50, 13, 143, .08);
    color: var(--navy);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 4px 24px rgba(50, 13, 143, .06);
}

.brand {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: clamp(205px, 20vw, 248px);
    height: auto;
}

.site-header nav {
    display: flex;
    align-items: stretch;
    align-self: stretch;
    gap: 32px;
}

.site-header nav > * {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--muted);
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
}

.site-header nav .active { color: var(--navy); }
.site-header nav .active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(90deg, var(--coral), var(--yellow));
    content: "";
}

.coming-soon small {
    margin-left: 7px;
    padding: 3px 6px;
    border-radius: 10px;
    color: var(--white);
    background: var(--coral);
    font-size: .58rem;
    text-transform: uppercase;
}

.support-link {
    padding: 9px 15px;
    border: 1px solid rgba(50, 13, 143, .26);
    border-radius: 999px;
    color: var(--navy);
    font-size: .86rem;
    font-weight: 600;
    text-decoration: none;
}

.hero {
    position: relative;
    min-height: 620px;
    padding: 92px max(28px, calc((100vw - 1240px) / 2)) 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #eee9ff 0%, #fff7fb 52%, #fff0df 100%);
}

.hero::after {
    position: absolute;
    right: -4%;
    bottom: -86px;
    width: 51%;
    height: 260px;
    border-radius: 50% 50% 0 0;
    background: linear-gradient(160deg, rgba(2, 156, 183, .16), rgba(2, 156, 183, .42));
    content: "";
    transform: rotate(-4deg);
}

.hero-copy { position: relative; z-index: 3; max-width: 720px; }

.eyebrow {
    margin: 0 0 14px;
    color: var(--coral);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .17em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--navy);
    font: 800 clamp(2.7rem, 5.6vw, 5.25rem)/.98 "Manrope", sans-serif;
    letter-spacing: -.065em;
}

.hero-copy > p:last-child {
    max-width: 600px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.65;
}

.search-card {
    position: relative;
    z-index: 8;
    width: min(1180px, 100%);
    margin-top: 52px;
    padding: 0 28px 28px;
    border: 1px solid rgba(50, 13, 143, .09);
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.product-tabs {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 60px;
    border-bottom: 1px solid var(--line);
}

.product-tabs > span { color: var(--muted); font-size: .82rem; }

.product-tab {
    align-self: stretch;
    padding: 0 5px;
    border: 0;
    border-bottom: 3px solid var(--coral);
    color: var(--navy);
    background: transparent;
    font-weight: 800;
}

.product-tab span { margin-right: 5px; color: var(--yellow); }

.trip-options {
    display: flex;
    gap: 24px;
    margin: 22px 0 18px;
    padding: 0;
    border: 0;
}

.trip-options label { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.trip-options input { width: 17px; height: 17px; accent-color: var(--coral); }

.search-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 1.35fr) minmax(180px, 1.35fr) 1fr 1fr 1fr auto;
    gap: 11px;
    align-items: end;
}

.search-field {
    display: block;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--white);
    transition: border-color .2s, box-shadow .2s;
}

.search-field:focus-within {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(77, 22, 169, .13);
}

.search-field > span:first-child {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.field-control { display: flex; align-items: center; gap: 8px; }
.field-control svg { flex: 0 0 18px; width: 18px; fill: none; stroke: var(--coral); stroke-width: 1.8; }

.field-control input,
.field-control select {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    color: var(--navy);
    background: transparent;
    font-size: .88rem;
    font-weight: 700;
}

.swap-button {
    position: absolute;
    z-index: 2;
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    top: 22px;
    right: -22.5px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--teal);
    background: var(--white);
    font-size: 1.15rem;
    box-shadow: 0 4px 12px rgba(50, 13, 143, .1);
}

.search-button {
    min-height: 61px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--coral), #f34269 52%, var(--yellow));
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(235, 20, 113, .24);
    transition: transform .2s, filter .2s;
}

.search-button:hover { filter: saturate(1.08) brightness(.96); transform: translateY(-1px); }
.search-button:disabled { cursor: wait; opacity: .72; transform: none; }

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

.search-button.loading .button-label { display: none; }
.search-button.loading .button-loader { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-message {
    margin: 16px 0 0;
    padding: 12px 14px;
    border-radius: 10px;
    color: #8e241d;
    background: #fff0ee;
    font-size: .88rem;
}

.hero-art { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: 80px; right: 13%; width: 110px; height: 110px; border-radius: 50%; background: var(--yellow); opacity: .76; }
.cloud { position: absolute; width: 120px; height: 28px; border-radius: 30px; background: rgba(255,255,255,.72); }
.cloud::before, .cloud::after { position: absolute; bottom: 0; border-radius: 50%; background: inherit; content: ""; }
.cloud::before { left: 22px; width: 50px; height: 50px; }
.cloud::after { right: 18px; width: 38px; height: 38px; }
.cloud-one { top: 170px; right: 3%; }
.cloud-two { top: 118px; right: 31%; transform: scale(.65); }
.plane { position: absolute; top: 172px; right: 16%; color: var(--navy); font-size: 3.8rem; transform: rotate(-14deg); opacity: .86; }

.results-section {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0 30px;
}

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 0; color: var(--navy); font: 800 clamp(1.8rem, 4vw, 2.8rem)/1.1 "Manrope", sans-serif; letter-spacing: -.04em; }
.edit-search { padding: 10px 16px; border: 1px solid var(--teal); border-radius: 999px; color: var(--teal); background: transparent; font-weight: 700; }

.result-group + .result-group { margin-top: 36px; }
.result-group h3 { margin: 0 0 12px; color: var(--navy); font: 700 1rem "Manrope", sans-serif; }
.result-list { display: grid; gap: 12px; }
.flight-result {
    display: grid;
    grid-template-columns: 110px 1fr 190px;
    gap: 22px;
    align-items: center;
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(7, 59, 76, .06);
}

.airline-code { color: var(--teal); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.flight-number { margin-top: 5px; color: var(--navy); font-weight: 800; }
.flight-times { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.time strong { display: block; color: var(--navy); font: 800 1.3rem "Manrope", sans-serif; }
.time small { color: var(--muted); }
.route-line { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: .72rem; text-align: center; }
.route-line::before, .route-line::after { flex: 1; height: 1px; background: var(--line); content: ""; }
.price { text-align: right; }
.price small { display: block; color: var(--muted); font-size: .72rem; }
.price strong { display: block; margin: 3px 0 9px; color: var(--navy); font: 800 1.35rem "Manrope", sans-serif; }
.select-flight { padding: 8px 12px; border: 0; border-radius: 8px; color: var(--white); background: var(--teal); font-size: .78rem; font-weight: 800; }
.select-flight[disabled] { background: #adc2c6; cursor: not-allowed; }
.empty-results { padding: 34px; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); background: var(--white); text-align: center; }
.empty-results strong { display: block; margin-bottom: 6px; color: var(--navy); }
.results-note { margin: 18px 0 0; color: var(--muted); font-size: .8rem; }

.trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(1100px, calc(100% - 40px));
    margin: 42px auto 72px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
}

.trust-strip article { display: flex; align-items: center; gap: 14px; padding: 22px; }
.trust-strip article + article { border-left: 1px solid var(--line); }
.benefit-icon { display: grid; flex: 0 0 42px; width: 42px; height: 42px; place-items: center; border-radius: 50%; color: var(--coral); background: #fff0f7; font-weight: 800; }
.trust-strip strong, .trust-strip small { display: block; }
.trust-strip strong { color: var(--navy); font-size: .9rem; }
.trust-strip small { margin-top: 3px; color: var(--muted); font-size: .75rem; line-height: 1.35; }

footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    min-height: 130px;
    padding: 24px max(28px, calc((100vw - 1240px) / 2));
    border-top: 1px solid var(--line);
    color: var(--muted);
    background: #f7f3ff;
    font-size: .82rem;
}

.brand-logo--footer { width: 218px; }
footer p { margin: 0; text-align: center; }
.copyright { justify-self: end; }

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    max-width: 650px;
}

.footer-legal a {
    color: var(--muted);
    text-decoration: none;
}

.footer-legal a:hover { color: var(--navy); text-decoration: underline; }

.legal-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 860px);
    justify-content: center;
    gap: 48px;
    min-height: 70vh;
    padding: 64px max(28px, calc((100vw - 1240px) / 2)) 88px;
}

.legal-nav {
    position: sticky;
    top: 24px;
    align-self: start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.legal-nav .eyebrow { margin-bottom: 12px; }
.legal-nav nav { display: grid; gap: 4px; }
.legal-nav a {
    padding: 9px 10px;
    border-radius: 8px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
    text-decoration: none;
}
.legal-nav a:hover { color: var(--navy); background: #f7f3ff; }
.legal-nav a[aria-current="page"] { color: var(--navy); background: var(--teal-light); }

.legal-document > header {
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line);
}

.legal-document h1 {
    margin: 0;
    color: var(--navy);
    font: 800 clamp(2.3rem, 5vw, 4.25rem)/1.04 "Manrope", sans-serif;
    letter-spacing: -.055em;
}

.legal-summary {
    max-width: 720px;
    margin: 18px 0 12px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal-effective { margin: 0; color: var(--teal); font-size: .82rem; font-weight: 700; }

.legal-layout {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 36px;
    padding-top: 36px;
}

.legal-toc {
    position: sticky;
    top: 24px;
    display: grid;
    align-self: start;
    gap: 9px;
}

.legal-toc strong { margin-bottom: 4px; color: var(--navy); font-size: .8rem; text-transform: uppercase; }
.legal-toc a { color: var(--muted); font-size: .76rem; line-height: 1.35; text-decoration: none; }
.legal-toc a:hover { color: var(--teal); }

.legal-sections { min-width: 0; }
.legal-sections section { scroll-margin-top: 24px; }
.legal-sections section + section { margin-top: 38px; padding-top: 38px; border-top: 1px solid var(--line); }
.legal-sections h2 { margin: 0 0 16px; color: var(--navy); font: 800 1.35rem/1.3 "Manrope", sans-serif; }
.legal-sections p, .legal-sections li { color: #514760; line-height: 1.75; }
.legal-sections p { margin: 0 0 16px; }
.legal-sections p:last-child { margin-bottom: 0; }
.legal-sections ul { margin: 0 0 18px; padding-left: 22px; }
.legal-sections li + li { margin-top: 7px; }

.legal-help {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding: 22px 24px;
    border-radius: 14px;
    color: var(--navy);
    background: var(--teal-light);
}
.legal-help a { color: var(--navy); font-weight: 700; }

@media (max-width: 1100px) {
    .search-grid { grid-template-columns: repeat(3, 1fr); }
    .search-button { width: 100%; }
    .hero-art { opacity: .65; }
}

@media (max-width: 760px) {
    .site-header { min-height: 72px; padding: 0 18px; }
    .site-header nav, .support-link { display: none; }
    .hero { min-height: 0; padding: 58px 18px 54px; }
    .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
    .hero-copy > p:last-child { font-size: .98rem; }
    .hero-art { display: none; }
    .search-card { margin-top: 36px; padding: 0 16px 18px; border-radius: 16px; }
    .product-tabs > span { display: none; }
    .search-grid { grid-template-columns: 1fr 1fr; }
    .location-field { grid-column: span 1; }
    .travelers-field, .search-button { grid-column: span 2; }
    .flight-result { grid-template-columns: 1fr; gap: 16px; }
    .price { display: flex; align-items: center; justify-content: space-between; text-align: left; }
    .price strong { margin: 3px 0 0; }
    .trust-strip { grid-template-columns: 1fr; }
    .trust-strip article + article { border-top: 1px solid var(--line); border-left: 0; }
    footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .copyright { justify-self: center; }
    .legal-shell { grid-template-columns: 1fr; gap: 28px; padding: 40px 18px 64px; }
    .legal-nav { position: static; }
    .legal-nav nav { grid-template-columns: 1fr 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
    .legal-help { align-items: start; flex-direction: column; }
}

@media (max-width: 470px) {
    .search-grid { grid-template-columns: 1fr; }
    .location-field, .travelers-field, .search-button { grid-column: auto; }
    .swap-button { top: 75px; right: 14px; left: auto; transform: rotate(90deg); }
    .product-tabs { min-height: 54px; }
    .trip-options { margin-top: 18px; }
    .section-heading { align-items: start; flex-direction: column; }
    .flight-times { gap: 8px; }
    .legal-nav nav { grid-template-columns: 1fr; }
}
