:root {
  --navy: #082746;
  --navy-2: #0b355c;
  --blue: #1678c8;
  --sky: #eaf6ff;
  --orange: #ff6b24;
  --orange-dark: #e95715;
  --ink: #10283d;
  --muted: #617487;
  --line: #dce7ef;
  --white: #ffffff;
  --shadow: 0 22px 55px rgba(6, 35, 61, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: "DM Sans", sans-serif; font-size: 16px; line-height: 1.55; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header { height: 74px; padding: 0 clamp(20px, 6vw, 88px); display: flex; align-items: center; justify-content: space-between; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.12); background: var(--navy); color: white; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: Manrope, sans-serif; font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; }
.brand-mark { width: 34px; height: 34px; border-radius: 50% 50% 50% 10%; display: grid; place-items: center; background: var(--orange); color: #fff; font-size: 16px; transform: rotate(-8deg); }
.brand-mark + span { letter-spacing: -.035em; }
nav { display: flex; gap: 30px; margin-left: auto; font-size: .92rem; color: #d8e8f7; }
nav a:hover { color: white; }
.header-cta { border: 1px solid rgba(255,255,255,.42); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: .9rem; }
.header-actions { display: flex; align-items: center; gap: 9px; }
.header-account { border: 0; border-radius: 999px; min-height: 42px; padding: 6px 15px 6px 7px; display: inline-flex; align-items: center; gap: 8px; color: white; background: var(--orange); cursor: pointer; font-weight: 700; }
.header-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: white; color: var(--navy); font-size: .72rem; font-weight: 800; }
.header-logout { border: 1px solid rgba(255,255,255,.42); border-radius: 999px; padding: 9px 13px; color: white; background: transparent; cursor: pointer; font-size: .82rem; font-weight: 600; }

.hero { min-height: 610px; padding: 74px clamp(20px, 6vw, 88px) 88px; display: grid; grid-template-columns: minmax(0, .86fr) minmax(520px, 1.14fr); align-items: center; gap: clamp(40px, 6vw, 90px); color: white; background: linear-gradient(90deg, rgba(5,31,55,.98) 0%, rgba(5,31,55,.94) 40%, rgba(5,31,55,.68) 100%), url("https://images.unsplash.com/photo-1771868519185-f7b0c81e2020?auto=format&fit=crop&fm=jpg&q=62&w=1600") center/cover; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; left: -180px; bottom: -230px; box-shadow: 0 0 0 70px rgba(255,255,255,.035), 0 0 0 140px rgba(255,255,255,.025); }
.hero-copy { position: relative; z-index: 1; max-width: 610px; }
.eyebrow { display: inline-block; color: #70c8ff; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; margin-bottom: 14px; }
.hero h1, h2 { font-family: Manrope, sans-serif; letter-spacing: -.055em; line-height: 1.05; margin: 0; }
.hero h1 { font-size: clamp(2.8rem, 5.2vw, 5.4rem); }
.hero h1 span { color: #7bcbff; }
.hero-copy > p { max-width: 480px; color: #d5e5f2; font-size: clamp(1.02rem, 1.5vw, 1.2rem); margin: 24px 0; }
.trust-line { display: flex; gap: 24px; color: #dceaf4; font-size: .88rem; }
.trust-line span::first-letter { color: #73d9a4; }

.search-card, .calculator-card, .contact-card { background: rgba(255,255,255,.98); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); }
.search-card { padding: 28px; position: relative; z-index: 2; }
.trip-switch { display: inline-flex; background: #edf3f8; border-radius: 11px; padding: 4px; margin-bottom: 23px; }
.trip-option { border: 0; background: transparent; color: var(--muted); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.trip-option.active { background: white; color: var(--navy); box-shadow: 0 2px 9px rgba(5,35,60,.1); }
.form-grid { display: grid; gap: 14px; }
.route-grid { grid-template-columns: 1fr 36px 1fr; align-items: end; }
.details-grid { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
label > span:first-child, .field-label, .installment-label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 7px; color: #526779; }
.input-wrap { min-height: 52px; border: 1px solid var(--line); border-radius: 11px; display: flex; align-items: center; gap: 10px; padding: 0 13px; background: #fff; transition: .2s; }
.input-wrap:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(22,120,200,.11); }
.input-wrap i { color: var(--blue); font-style: normal; }
.location-field { position: relative; }
.location-suggestions { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 7px); max-height: 330px; overflow-y: auto; padding: 7px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 18px 45px rgba(4,31,54,.18); }
.location-suggestions button { width: 100%; border: 0; border-radius: 9px; padding: 10px; display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: center; text-align: left; color: var(--ink); background: transparent; cursor: pointer; font: inherit; }
.location-suggestions button:hover, .location-suggestions button.active { background: var(--sky); }
.location-suggestions strong, .location-suggestions small { display: block; }
.location-suggestions strong { color: var(--navy); font-size: .9rem; }
.location-suggestions small { margin-top: 2px; color: var(--muted); font-size: .74rem; }
.airport-code { display: grid; place-items: center; min-height: 34px; border-radius: 8px; background: var(--sky); color: var(--blue); font-weight: 800; font-size: .76rem; }
.location-icon { display: grid; place-items: center; font-size: 1.2rem; }
input, select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
input[type="date"] { font-size: .9rem; }
select { appearance: none; }
.passenger-field { position: relative; }
.passenger-toggle { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 11px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 0 13px; background: white; color: var(--ink); cursor: pointer; text-align: left; }
.passenger-toggle i { color: var(--blue); font-style: normal; }
.passenger-toggle b { color: var(--muted); }
.passenger-popover { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: min(390px, 90vw); padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow); }
.passenger-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.passenger-row strong, .passenger-row small { display: block; }
.passenger-row strong { color: var(--navy); }
.passenger-row small { color: var(--muted); font-size: .75rem; }
.counter { display: grid; grid-template-columns: 38px 30px 38px; align-items: center; text-align: center; }
.counter button { width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--sky); color: var(--blue); font-size: 1.35rem; cursor: pointer; }
.counter button:disabled { color: #aab7c1; background: #f0f3f5; cursor: not-allowed; }
.counter span { font-weight: 800; color: var(--navy); }
.infant-note { color: var(--muted); font-size: .72rem; margin: 13px 0; }
.apply-passengers { width: 100%; border: 0; border-radius: 10px; padding: 11px; background: var(--blue); color: white; cursor: pointer; font-weight: 700; }
.swap { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; color: var(--blue); border-radius: 50%; cursor: pointer; margin-bottom: 8px; }
.primary-button { width: 100%; min-height: 53px; display: flex; justify-content: center; align-items: center; gap: 9px; border: 0; border-radius: 11px; background: var(--orange); color: white; font-weight: 700; cursor: pointer; margin-top: 22px; box-shadow: 0 10px 22px rgba(255,107,36,.23); transition: transform .2s, background .2s; }
.primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.search-note { color: #8090a0; text-align: center; font-size: .75rem; margin: 12px 0 0; }

.hidden { display: none !important; }
.results-section, .simulator-section, .account-section, .how-section, .faq-section { padding: 86px clamp(20px, 7vw, 110px); }
.results-section { background: #f7fafc; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; max-width: 1180px; margin: 0 auto 34px; }
.section-heading h2, .simulator-intro h2, .account-copy h2, .faq-section h2 { font-size: clamp(2rem, 3.5vw, 3.3rem); color: var(--navy); }
.section-heading > p { color: var(--muted); }
.flight-list { max-width: 1180px; margin: auto; display: grid; gap: 15px; }
.flight-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; display: grid; grid-template-columns: 170px 1fr 190px; align-items: center; gap: 22px; box-shadow: 0 8px 24px rgba(4,40,68,.05); }
.airline { display: flex; align-items: center; gap: 11px; font-weight: 700; }
.airline-logo { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.flight-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 15px; }
.time strong { display: block; font-size: 1.15rem; color: var(--navy); }
.time span, .flight-meta { color: var(--muted); font-size: .78rem; }
.route-line { height: 1px; background: var(--line); position: relative; }
.route-line::after { content: "✈"; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-52%); color: var(--blue); background: white; padding: 0 8px; }
.flight-meta { margin-top: 8px; text-align: center; }
.flight-price { text-align: right; border-left: 1px solid var(--line); padding-left: 20px; }
.flight-price strong { display: block; font-family: Manrope; font-size: 1.5rem; color: var(--navy); }
.flight-price small { display: block; color: var(--muted); font-size: .7rem; }
.flight-price button { margin-top: 10px; border: 0; border-radius: 8px; background: var(--navy); color: white; padding: 9px 14px; font-weight: 600; cursor: pointer; }

.simulator-section { background: var(--navy); color: white; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(50px, 8vw, 120px); align-items: center; }
.simulator-intro { max-width: 440px; }
.simulator-intro h2 { color: white; }
.simulator-intro p { color: #bed1e1; }
.wallet-art { width: 200px; height: 120px; border-radius: 22px; background: linear-gradient(135deg,#1678c8,#55b8f6); margin-top: 35px; display: flex; align-items: center; justify-content: space-around; transform: rotate(-4deg); box-shadow: 16px 22px 40px rgba(0,0,0,.22); }
.wallet-art span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 1.5rem; font-weight: 700; }
.wallet-art b { font-size: 1.3rem; }
.calculator-card { padding: 30px; max-width: 620px; width: 100%; }
.selected-flight { border-radius: 11px; background: var(--sky); padding: 12px 15px; margin-bottom: 23px; color: var(--navy); font-weight: 600; }
.installment-label { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.installment-label strong { color: var(--blue); }
.installment-options { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-top: 12px; }
.installment-options button { min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--navy); cursor: pointer; font: 800 1rem Manrope; transition: .18s; }
.installment-options button:hover:not(:disabled) { border-color: var(--orange); }
.installment-options button.active { border-color: var(--orange); background: var(--orange); color: white; box-shadow: 0 7px 15px rgba(238,123,33,.22); }
.installment-options button:disabled { background: #edf1f4; color: #9aa7b1; cursor: not-allowed; text-decoration: line-through; }
.installment-availability { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.price-breakdown { margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.price-breakdown > div { display: flex; justify-content: space-between; padding: 7px 0; color: var(--muted); font-size: .9rem; }
.price-breakdown strong { color: var(--ink); }
.price-breakdown .total-row { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; color: var(--ink); font-weight: 700; }
.monthly { background: var(--navy); color: white; border-radius: 14px; text-align: center; padding: 18px; margin-top: 16px; }
.monthly span, .monthly small { display: block; color: #bcd0df; }
.monthly strong { display: block; font: 800 2.25rem Manrope; color: #7bcbff; }
.continue-note { margin: 9px 0 0; color: var(--muted); text-align: center; font-size: .78rem; }

.account-section { background: #eff7fc; display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.account-copy p { color: var(--muted); max-width: 450px; }
.account-benefits { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--navy); }
.account-benefits li::before { content: "✓"; color: #168b55; font-weight: 800; margin-right: 10px; }
.account-card, .dashboard { background: white; color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 30px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #edf3f8; padding: 4px; border-radius: 11px; margin-bottom: 24px; }
.auth-tab { border: 0; border-radius: 8px; background: transparent; color: var(--muted); padding: 10px; cursor: pointer; font-weight: 700; }
.auth-tab.active { color: var(--navy); background: white; box-shadow: 0 2px 9px rgba(5,35,60,.1); }
.account-grid { grid-template-columns: 1fr 1fr; }
.account-grid.one-column { grid-template-columns: 1fr; }
.account-card label > input, .dashboard label > input, .dashboard textarea { border: 1px solid var(--line); padding: 13px; border-radius: 10px; background: white; }
.dashboard textarea { width: 100%; resize: vertical; font: inherit; color: var(--ink); }
.consent { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: .82rem; margin-top: 18px; }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--blue); }
.legal-inline { border: 0; padding: 0; background: transparent; color: var(--blue); cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; }
.form-status { border-radius: 11px; padding: 13px 14px; margin-top: 15px; background: var(--sky); color: var(--navy); }
.form-status.success { background: #eaf9f0; border: 1px solid #bde7cd; color: #1e7140; }
.form-status.error { background: #fff0ee; border: 1px solid #f1c4bd; color: #983421; }
.active-plan-notice { display: flex; justify-content: space-between; gap: 18px; margin: -8px 0 22px; border: 1px solid #b9dff7; border-radius: 12px; padding: 13px 15px; background: var(--sky); color: var(--muted); }
.active-plan-notice strong { color: var(--navy); }
.plan-locked #pesquisa, .plan-locked #results, .plan-locked #simulator, .plan-locked .simulate-link { display: none !important; }
.dashboard { grid-column: 1 / -1; }
.dashboard-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.dashboard-header h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); color: var(--navy); }
.secondary-button { border: 1px solid var(--line); background: white; color: var(--navy); border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 700; }
.dashboard-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.dashboard-panel { border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.dashboard-panel h3 { margin: 0 0 14px; color: var(--navy); font: 700 1.2rem Manrope; }
.dashboard-panel > p { color: var(--muted); }
.dashboard-documents { grid-column: 1 / -1; }
.dashboard-documents > div { display: flex; gap: 10px; flex-wrap: wrap; }
.dashboard-panel form { display: grid; gap: 13px; }
.empty-state { border-radius: 12px; background: #f7fafc; padding: 20px; color: var(--muted); }
.empty-state strong, .empty-state span { display: block; }
.empty-state strong { color: var(--navy); margin-bottom: 6px; }
.empty-state.error strong { color: #983421; }
.trip-summary { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-top: 12px; }
.trip-title { display: inline-flex; flex-direction: column; }
.trip-title strong { color: var(--navy); }
.trip-title span, .trip-summary small { color: var(--muted); }
.status-badge { float: right; background: var(--sky); color: var(--blue); border-radius: 999px; padding: 5px 9px; font-size: .75rem; font-weight: 700; }
.payment-progress { height: 7px; border-radius: 999px; overflow: hidden; background: #e6edf2; margin: 18px 0 12px; }
.payment-progress span { display: block; height: 100%; background: var(--orange); }
.trip-numbers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.trip-numbers span { color: var(--muted); font-size: .78rem; }
.trip-numbers b { display: block; color: var(--navy); font-size: 1rem; }
.ticket-note { background: #eaf9f0; color: #1e7140; border-radius: 9px; padding: 10px; }
.pending-simulation { border-color: #b9dff7; box-shadow: 0 8px 25px rgba(16,91,143,.07); }
.trip-details { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; padding: 16px 0; }
.trip-details span { border-radius: 9px; background: #f5f9fc; padding: 9px 10px; color: var(--muted); font-size: .78rem; }
.trip-details b { display: block; color: var(--navy); font-size: .72rem; }
.saved-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.saved-price-grid span { padding: 6px 8px; }
.saved-price-grid small, .saved-price-grid b { display: block; }
.saved-price-grid small { color: var(--muted); font-size: .7rem; }
.saved-price-grid b { color: var(--navy); font-size: .93rem; }
.saved-price-grid .saved-total { border-radius: 9px; background: var(--sky); }
.simulation-monthly { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; border-radius: 10px; padding: 12px 14px; background: var(--navy); color: white; }
.simulation-monthly strong { color: #7bcbff; font: 800 1.3rem Manrope; }
.trip-summary h4 { margin: 18px 0 8px; color: var(--navy); }
.installment-schedule { display: grid; gap: 7px; }
.installment-schedule > div { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .78rem; }
.installment-schedule strong { color: var(--navy); }
.payment-state { min-width: 76px; border-radius: 999px; padding: 4px 7px; background: #edf3f8; color: var(--muted); text-align: center; font-size: .68rem; font-style: normal; font-weight: 700; }
.payment-state.paid { background: #eaf9f0; color: #1e7140; }
.payment-state.late { background: #fff0ee; color: #983421; }
.simulation-disclaimer { margin: 13px 0 0; color: var(--muted); font-size: .75rem; }
.support-launcher { position: fixed; right: 24px; bottom: 24px; z-index: 20; display: flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 18px; background: var(--orange); color: white; box-shadow: 0 12px 30px rgba(226,91,36,.3); cursor: pointer; font: 700 .9rem Manrope; }
.support-chat { position: fixed; right: 24px; bottom: 82px; z-index: 21; width: min(370px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 18px; padding: 0 18px 18px; background: white; box-shadow: 0 22px 60px rgba(3,30,52,.24); }
.support-chat-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 0 -18px 17px; padding: 16px 18px; border-radius: 18px 18px 0 0; background: var(--navy); color: white; }
.support-chat-header strong, .support-chat-header small { display: block; }
.support-chat-header small { margin-top: 2px; color: #bcd0df; }
.support-chat-header button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; background: transparent; color: white; cursor: pointer; font-size: 1.35rem; }
.support-chat form { display: grid; gap: 12px; }
.support-chat label > input, .support-chat textarea { width: 100%; border: 1px solid var(--line); padding: 12px; border-radius: 10px; background: white; font: inherit; color: var(--ink); }
.support-chat textarea { resize: vertical; }

.how-section { background: white; }
.centered { justify-content: center; text-align: center; }
.steps { max-width: 1050px; margin: auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.steps article { border: 1px solid var(--line); border-radius: 18px; padding: 25px; position: relative; }
.steps article > span { position: absolute; right: 20px; top: 16px; color: #dae5ec; font: 800 2rem Manrope; }
.step-icon { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.steps h3 { color: var(--navy); margin: 22px 0 7px; }
.steps p { color: var(--muted); margin: 0; }

.faq-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 120px); background: #f7fafc; }
.faq-section > div:first-child p { color: var(--muted); }
.faq-list details { background: white; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; padding: 0 18px; }
.faq-list summary { list-style: none; padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; cursor: pointer; font-weight: 700; color: var(--navy); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { color: var(--orange); font-size: 1.25rem; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { color: var(--muted); margin: -5px 0 18px; }
.validation-notice { margin: 0; padding: 16px clamp(20px, 7vw, 110px); background: #fff4e9; color: #7a461f; text-align: center; font-size: .86rem; border-top: 1px solid #ffd9b9; border-bottom: 1px solid #ffd9b9; }
footer { padding: 46px clamp(20px, 7vw, 110px); background: #061c30; color: #bed0df; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px; }
.footer-brand { color: white; }
footer p { margin: 0; }
footer div { display: flex; gap: 20px; }
.footer-account { border: 0; padding: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; }
footer small { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; }
.legal-dialog { width: min(760px, calc(100% - 32px)); max-height: min(84vh, 900px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: white; box-shadow: 0 28px 80px rgba(0,0,0,.35); }
.legal-dialog[open] { display: flex; flex-direction: column; }
.legal-dialog::backdrop { background: rgba(3,22,39,.72); backdrop-filter: blur(3px); }
.legal-dialog-header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); background: white; }
.legal-dialog-header h2 { margin: 4px 0 0; color: var(--navy); font-size: 1.65rem; }
.legal-close { width: 38px; height: 38px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--navy); cursor: pointer; font-size: 1.5rem; line-height: 1; }
.legal-content { min-height: 0; padding: 22px 24px 8px; overflow-y: auto; line-height: 1.65; }
.legal-content h3 { margin: 24px 0 6px; color: var(--navy); font: 700 1.02rem Manrope; }
.legal-content p { margin: 0; color: var(--muted); }
.legal-content aside { margin: 15px 0 5px; padding: 13px 15px; border: 1px solid #ffd4ad; border-radius: 10px; background: #fff6ed; color: #74431e; font-size: .88rem; }
.legal-version { color: var(--navy) !important; font-size: .82rem; }
.legal-dialog-footer { position: sticky; bottom: 0; padding: 14px 24px 20px; border-top: 1px solid var(--line); background: white; }
.legal-dialog-footer .primary-button { margin-top: 0; }

@media (max-width: 940px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 54px; }
  .hero-copy { text-align: center; margin: auto; }
  .hero-copy > p { margin-left: auto; margin-right: auto; }
  .trust-line { justify-content: center; }
  .flight-card { grid-template-columns: 145px 1fr; }
  .flight-price { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); padding: 13px 0 0; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .flight-price button { margin: 0; }
  .simulator-section, .account-section, .faq-section { grid-template-columns: 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .simulator-intro { max-width: 650px; }
}

@media (max-width: 640px) {
  .site-header { height: 66px; padding: 0 16px; }
  .header-cta, .header-account { font-size: .75rem; padding: 6px 9px 6px 6px; }
  .header-logout { font-size: .7rem; padding: 7px 8px; }
  .header-avatar { width: 27px; height: 27px; }
  .simulate-link { display: none; }
  .hero { padding: 42px 16px 58px; gap: 34px; }
  .hero h1 { font-size: 2.8rem; }
  .trust-line { flex-direction: column; gap: 5px; }
  .search-card { padding: 20px 16px; border-radius: 16px; }
  .route-grid, .details-grid, .account-grid { grid-template-columns: 1fr; }
  .swap { position: absolute; top: 100px; right: 26px; transform: rotate(90deg); }
  .passenger-popover { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; }
  .results-section, .simulator-section, .account-section, .how-section, .faq-section { padding: 64px 16px; }
  .section-heading { align-items: start; flex-direction: column; }
  .flight-card { grid-template-columns: 1fr; padding: 18px; }
  .flight-route { gap: 8px; }
  .flight-price { grid-column: auto; }
  .calculator-card, .account-card, .dashboard { padding: 20px 16px; }
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .active-plan-notice { flex-direction: column; gap: 4px; }
  .trip-numbers { grid-template-columns: 1fr 1fr; }
  .trip-details { grid-template-columns: 1fr 1fr; }
  .saved-price-grid { grid-template-columns: 1fr; }
  .support-launcher { right: 16px; bottom: 16px; }
  .support-chat { right: 16px; bottom: 72px; }
  .installment-schedule > div { grid-template-columns: 1fr auto; }
  .installment-schedule .payment-state { grid-column: 1 / -1; justify-self: start; }
  .wallet-art { display: none; }
  .steps { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; padding: 40px 20px; }
  footer small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
