:root {
    --ink: #17191e;
    --muted: #6f716f;
    --paper: #f6f2ea;
    --paper-2: #ebe5da;
    --white: #fffdf9;
    --line: rgba(24, 25, 29, .13);
    --glass-line: rgba(255,255,255,.34);
    --acid: #e8ff72;
    --shadow: 0 32px 90px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: #0b1018;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
body.modal-open { overflow: hidden; }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }
.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; }

.background-stage {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #0b1018;
}
.background-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: none;
    filter: saturate(1.02) contrast(1.03) brightness(.88);
    transition: opacity 3.8s cubic-bezier(.4,0,.2,1), filter 3.8s ease;
    will-change: opacity;
}
.background-slide.is-active {
    opacity: 1;
    transform: none;
}
.background-scrim {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 46%, rgba(8,11,17,.36) 0%, rgba(8,11,17,.25) 34%, rgba(8,11,17,.10) 58%, transparent 76%),
        linear-gradient(180deg, rgba(7,10,16,.25) 0%, rgba(7,10,16,.10) 25%, rgba(7,10,16,.22) 100%);
    pointer-events: none;
}

.page-shell {
    position: relative;
    z-index: 2;
    min-height: 100vh;
}
.topbar {
    position: absolute;
    z-index: 30;
    top: 0;
    left: 0;
    right: 0;
    height: 96px;
    padding: 0 clamp(24px, 3.4vw, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.brand {
    display: inline-flex;
    align-items: center;
    color: #fff;
    text-decoration: none;
    filter: drop-shadow(0 3px 14px rgba(0,0,0,.22));
}
.brand img {
    display: block;
    width: clamp(156px, 11vw, 200px);
    height: auto;
}
.utility-actions { display: flex; align-items: center; gap: 18px; }
.social-icon-link {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: rgba(255,255,255,.92);
    background: rgba(11,15,22,.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-icon-link svg { width: 17px; height: 17px; }
.social-icon-link:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.58); transform: translateY(-1px); }
.language-switcher { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,.72); }
.language-button { border: 0; background: transparent; color: inherit; padding: 3px; cursor: pointer; font-weight: 600; }
.language-button.is-active { color: #fff; }
.menu-trigger {
    min-height: 42px;
    border: 1px solid rgba(255,255,255,.44);
    border-radius: 999px;
    padding: 0 15px 0 18px;
    background: rgba(12,16,23,.12);
    color: #fff;
    backdrop-filter: blur(12px);
    display: inline-flex;
    align-items: center;
    gap: 13px;
    cursor: pointer;
    font-size: 13px;
}
.menu-trigger span:last-child { font-size: 17px; transition: transform .22s ease; }
.menu-trigger[aria-expanded="true"] span:last-child { transform: rotate(45deg); }
.utility-menu {
    position: absolute;
    z-index: 40;
    top: 76px;
    right: clamp(24px, 3.4vw, 58px);
    width: min(320px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 20px;
    background: rgba(20,21,25,.78);
    box-shadow: 0 26px 70px rgba(0,0,0,.30);
    backdrop-filter: blur(24px) saturate(1.15);
}
.utility-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 15px;
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
}
.utility-menu a:hover { background: rgba(255,255,255,.09); }
.utility-menu strong { font-size: 13px; }
.utility-menu small { color: rgba(255,255,255,.56); font-size: 10px; text-align: right; }

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 118px 24px 100px;
    color: #fff;
}
.hero-content { width: min(1000px, 100%); margin-top: -8px; }
.hero-heading { text-align: center; text-shadow: 0 3px 24px rgba(0,0,0,.25); }
.hero-heading h1 {
    margin: 0;
    font: 400 clamp(44px, 5.2vw, 78px)/1.03 Georgia, "Times New Roman", serif;
    letter-spacing: -.045em;
}
.hero-heading p {
    margin: 14px auto 28px;
    max-width: 720px;
    font-size: clamp(15px, 1.5vw, 20px);
    line-height: 1.45;
    color: rgba(255,255,255,.91);
}

.prompt-card {
    width: min(1000px, 100%);
    padding: 22px 26px 24px;
    border: 1px solid var(--glass-line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(197,190,188,.54), rgba(92,100,116,.54));
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px) saturate(1.08);
}
.prompt-card-head {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 17px;
}
.prompt-title { display: inline-flex; align-items: center; gap: 10px; font: 500 18px/1 Georgia, serif; color: #fff; }
.sparkles { font-size: 23px; }
.hero-share-actions { display: flex; align-items: center; gap: 10px; }
.hero-share-button {
    border: 0;
    background: transparent;
    padding: 4px 3px;
    color: rgba(255,255,255,.94);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    font-size: 12px;
}
.hero-share-button:disabled { opacity: .46; cursor: default; }
.pdf-icon { font-size: 8px; border: 1px solid currentColor; border-radius: 3px; padding: 2px 3px; font-weight: 800; }
.action-divider { width: 1px; height: 18px; background: rgba(255,255,255,.34); }

.trip-context {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: -2px 0 13px;
}
.trip-context span {
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    padding: 6px 9px;
    background: rgba(13,17,24,.13);
    color: rgba(255,255,255,.92);
    font-size: 10px;
    font-weight: 700;
}
.hero-thread {
    max-height: 230px;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    padding: 4px 3px 2px;
    scrollbar-width: thin;
}
.hero-message { display: grid; gap: 4px; max-width: 82%; }
.hero-message.user { margin-left: auto; justify-items: end; }
.hero-message-label { color: rgba(255,255,255,.64); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.hero-bubble {
    width: fit-content;
    max-width: 100%;
    padding: 10px 13px;
    border-radius: 14px;
    background: rgba(255,255,255,.88);
    color: #30343a;
    font-size: 12px;
    line-height: 1.48;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.hero-message.user .hero-bubble { background: rgba(20,24,30,.76); color: #fff; }
.hero-typing { display: inline-flex; gap: 4px; align-items: center; min-height: 36px; }
.hero-typing i { width: 5px; height: 5px; border-radius: 50%; background: #73777d; animation: pulse 1s infinite alternate; }
.hero-typing i:nth-child(2) { animation-delay: .2s; }
.hero-typing i:nth-child(3) { animation-delay: .4s; }

.prompt-input-shell {
    position: relative;
    border-radius: 19px;
    background: rgba(255,255,255,.91);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
    overflow: hidden;
}
.prompt-card textarea {
    width: 100%;
    min-height: 154px;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    padding: 19px 190px 54px 21px;
    color: #353942;
    font: 400 17px/1.55 Georgia, serif;
}
.prompt-card textarea::placeholder { color: #7a7d82; opacity: .92; }
.send-button {
    position: absolute;
    right: 13px;
    bottom: 13px;
    min-height: 47px;
    border: 0;
    border-radius: 999px;
    padding: 0 11px 0 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #20252b;
    color: #fff;
    cursor: pointer;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.send-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.08);
    font-size: 18px;
}
.quick-prompts {
    margin-top: 19px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}
.try-label { margin-right: 2px; font: 400 11px/1 Georgia, serif; color: rgba(255,255,255,.92); }
.quick-prompts button {
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    padding: 9px 12px;
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
    font: 500 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    backdrop-filter: blur(8px);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.quick-prompts button:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.62); transform: translateY(-1px); }
.prompt-card.needs-trip { animation: cardNudge .33s ease; }
@keyframes cardNudge { 0%,100% { transform: translateX(0); } 35% { transform: translateX(-6px); } 70% { transform: translateX(6px); } }

.hero-bottom-copy {
    position: absolute;
    left: clamp(24px, 3.4vw, 58px);
    bottom: 33px;
    display: flex;
    align-items: flex-start;
    gap: 13px;
    color: rgba(255,255,255,.88);
}
.hero-bottom-line { width: 34px; height: 1px; background: rgba(255,255,255,.76); margin-top: 8px; }
.hero-bottom-copy p { margin: 0; font: 400 13px/1.25 Georgia, serif; }
.background-control {
    position: absolute;
    right: clamp(24px, 3.4vw, 58px);
    bottom: 35px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: rgba(255,255,255,.78);
    font-size: 11px;
}
.background-dots { display: flex; gap: 6px; }
.background-dots button {
    width: 8px;
    height: 8px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.78);
    background: transparent;
    cursor: pointer;
}
.background-dots button.is-active { background: #fff; }
.toast {
    position: fixed;
    z-index: 1500;
    left: 50%;
    bottom: 26px;
    transform: translateX(-50%);
    padding: 11px 15px;
    border-radius: 999px;
    background: rgba(19,20,23,.90);
    color: #fff;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 16px 45px rgba(0,0,0,.28);
    backdrop-filter: blur(14px);
    font-size: 11px;
}

/* Planner - appears after the first conversation turn. */
.planner {
    position: relative;
    z-index: 10;
    width: min(1450px, calc(100% - 40px));
    margin: 112px auto 50px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 30px;
    box-shadow: 0 38px 120px rgba(0,0,0,.34);
    overflow: hidden;
}
.planner-grid { display: grid; grid-template-columns: minmax(340px, .78fr) minmax(520px, 1.22fr); min-height: 720px; }
.chat-panel, .trip-panel { padding: 34px; min-width: 0; }
.chat-panel { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: #f8f5ef; }
.panel-heading, .trip-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-kicker { font: 700 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: .15em; color: #79756e; }
.panel-heading h2, .trip-header h2 { margin: 8px 0 0; font: 700 30px/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: -.055em; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 20px; }
.outline-button { background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 11px 17px; cursor: pointer; font-weight: 700; font-size: 13px; }
.understood { display: flex; flex-wrap: wrap; gap: 7px; margin: 22px 0 0; }
.understood:empty { margin: 8px 0; }
.fact-chip { border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; background: var(--white); font-size: 11px; font-weight: 700; }
.messages { flex: 1; overflow-y: auto; max-height: 455px; padding: 18px 4px 16px 0; scrollbar-width: thin; }
.message { max-width: 88%; margin: 0 0 16px; }
.message.user { margin-left: auto; }
.message .bubble { display: inline-block; padding: 12px 15px; border-radius: 17px; font-size: 14px; line-height: 1.5; }
.message.user .bubble { background: var(--ink); color: white; border-bottom-right-radius: 5px; }
.message.assistant .bubble { background: #ebe6dc; border-bottom-left-radius: 5px; }
.message small { display: block; margin: 4px 4px 0; color: #999287; font-size: 9px; }
.chat-composer { display: grid; grid-template-columns: 1fr 44px; gap: 10px; align-items: end; background: white; border: 1px solid var(--line); border-radius: 19px; padding: 10px; }
.chat-composer textarea { resize: none; border: 0; outline: 0; background: transparent; min-height: 49px; max-height: 130px; padding: 8px 6px; }
.chat-composer textarea::placeholder { color: #9d988e; }
.chat-composer button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ink); color: white; font-size: 18px; cursor: pointer; }
.context-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.context-actions button { border: 0; background: transparent; padding: 3px 0; margin-right: 9px; color: #6e6960; font-size: 11px; cursor: pointer; border-bottom: 1px solid #beb6aa; }
.trip-panel { background: #fffdf8; }
.trip-summary { margin-top: 28px; }
.summary-empty { min-height: 360px; border-radius: 22px; background: radial-gradient(circle at 75% 23%, rgba(255, 158, 92, .34), transparent 15rem), linear-gradient(145deg, #dfedf0, #ece1ce 52%, #f6e9d6); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 50px; }
.sun-orbit { font-size: 56px; margin-bottom: 14px; }
.summary-empty h3 { margin: 0; font: 700 31px/1.05 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: -.05em; }
.summary-empty p { max-width: 420px; color: #6d675d; line-height: 1.55; }
.summary-card { border-radius: 22px; padding: 27px; background: linear-gradient(120deg, rgba(255,255,255,.88), rgba(255,255,255,.35)), radial-gradient(circle at 92% 8%, #ffc091, transparent 18rem), #e1e9e5; min-height: 250px; }
.summary-title { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.summary-title h3 { font: 700 36px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing: -.06em; margin: 5px 0 10px; }
.summary-title p { margin: 0; color: #605c55; }
.trip-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 46px; }
.trip-fact { border-top: 1px solid rgba(22,22,22,.20); padding-top: 11px; }
.trip-fact span { display: block; font-size: 10px; letter-spacing: .10em; font-weight: 700; color: #716c64; text-transform: uppercase; }
.trip-fact strong { display: block; margin-top: 6px; font-size: 13px; }
.itinerary { margin-top: 20px; }
.itinerary-day { border-top: 1px solid var(--line); padding: 19px 0; display: grid; grid-template-columns: 105px 1fr; gap: 20px; }
.itinerary-day time { font-weight: 800; font-size: 12px; }
.itinerary-item strong { display: block; font-size: 15px; }
.itinerary-item small { color: var(--muted); }
.is-loading { opacity: .65; pointer-events: none; }
.typing { display: inline-flex; gap: 4px; padding: 15px 17px; background: #ebe6dc; border-radius: 17px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: #8c867d; animation: pulse 1s infinite alternate; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { from { opacity: .3; transform: translateY(0); } to { opacity: 1; transform: translateY(-3px); } }

/* Sharing */
.share-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.share-modal.hidden { display: none; }
.share-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(17,17,17,.50); backdrop-filter: blur(10px); cursor: default; }
.share-sheet { position: relative; width: min(610px, 100%); max-height: min(760px, calc(100vh - 38px)); overflow: auto; border-radius: 28px; background: var(--white); box-shadow: 0 34px 110px rgba(0,0,0,.24); padding: 30px; color: var(--ink); }
.share-sheet-header { display:flex; align-items:flex-start; justify-content:space-between; gap:24px; }
.share-sheet-header h2 { margin:7px 0 0; font:700 34px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; letter-spacing:-.055em; }
.share-intro { margin:18px 0 25px; color:var(--muted); line-height:1.55; font-size:13px; max-width:510px; }
.share-options { display:grid; gap:9px; }
.share-option { width:100%; display:grid; grid-template-columns:46px 1fr auto; align-items:center; gap:14px; text-align:left; border:1px solid var(--line); border-radius:17px; background:#fffdf8; padding:13px; cursor:pointer; color:var(--ink); transition:.18s ease; }
.share-option:hover { transform:translateY(-1px); border-color:rgba(22,22,22,.25); box-shadow:0 10px 30px rgba(48,41,29,.07); }
.share-option.working { opacity:.55; pointer-events:none; }
.share-option-icon { width:46px; height:46px; border-radius:13px; display:grid; place-items:center; background:#ece6da; font:800 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.share-option:nth-child(2) .share-option-icon { background:var(--acid); font-size:18px; }
.share-option strong, .share-option small { display:block; }
.share-option strong { font-size:14px; }
.share-option small { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.35; }
.share-option b { font-size:17px; }
.email-trip-form { margin-top:24px; padding-top:22px; border-top:1px solid var(--line); }
.email-trip-form > label, .share-link-panel > label { display:block; margin-bottom:9px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.email-trip-form > div, .share-link-panel > div { display:grid; grid-template-columns:1fr auto; gap:7px; }
.email-trip-form input, .share-link-panel input { width:100%; min-width:0; border:1px solid var(--line); background:#f7f3eb; border-radius:12px; padding:13px 14px; font:500 13px -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color:var(--ink); outline:none; }
.email-trip-form input:focus, .share-link-panel input:focus { border-color:rgba(22,22,22,.38); }
.email-trip-form button, .share-link-panel > div button { border:0; border-radius:12px; padding:0 17px; background:var(--ink); color:#fff; font-weight:800; cursor:pointer; }
.email-trip-form button:disabled { opacity:.5; }
.email-trip-form > small { display:block; margin-top:8px; color:var(--muted); font-size:10px; }
.share-link-panel { margin-top:20px; padding:17px; border-radius:16px; background:#f1ece2; }
.share-link-panel.hidden { display:none; }
.native-share-link { margin-top:10px; border:0; padding:0; background:transparent; font-weight:800; font-size:11px; text-decoration:underline; cursor:pointer; color:var(--ink); }
.share-privacy { display:flex; gap:10px; align-items:flex-start; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }
.share-privacy > span { color:#56a466; font-size:9px; margin-top:4px; }
.share-privacy p { margin:0; color:var(--muted); font-size:10px; line-height:1.5; }
.share-privacy strong { color:var(--ink); }
.revoke-share { margin-top:14px; padding:0; border:0; background:transparent; color:#9b4e3e; font-size:10px; text-decoration:underline; cursor:pointer; }
.revoke-share.hidden { display:none; }

@media (max-width: 950px) {
    .planner-grid { grid-template-columns: 1fr; }
    .chat-panel { border-right: 0; border-bottom: 1px solid var(--line); min-height: 640px; }
    .trip-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .email-trip-form input, .share-link-panel input { font-size: 16px; }
    .topbar { height: 76px; padding: 0 18px; }
    .brand img { width: 150px; }
    .utility-actions { gap: 10px; }
    .language-switcher { font-size: 10px; }
    .menu-trigger { min-height: 38px; padding: 0 12px; }
    .hero { padding: 94px 13px 85px; align-items: start; }
    .hero-content { margin-top: 5vh; }
    .hero-heading h1 { font-size: clamp(40px, 12.5vw, 58px); line-height: .98; }
    .hero-heading p { margin-top: 12px; font-size: 14px; max-width: 540px; }
    .prompt-card { padding: 17px 14px 16px; border-radius: 22px; }
    .prompt-card-head { align-items: flex-start; margin-bottom: 12px; }
    .prompt-title { font-size: 16px; }
    .hero-share-actions { gap: 5px; }
    .hero-share-button { font-size: 0; min-width: 29px; justify-content: center; }
    .hero-share-button > span:first-child { font-size: 15px; }
    .hero-share-button .pdf-icon { font-size: 7px; }
    .action-divider { height: 15px; }
    .prompt-card textarea { min-height: 166px; padding: 16px 16px 66px; font-size: 16px; }
    .send-button { min-height: 44px; right: 10px; bottom: 10px; }
    .send-button > span:first-child { display: none; }
    .send-button { width: 44px; padding: 0; justify-content: center; }
    .send-arrow { background: transparent; width: auto; height: auto; }
    .quick-prompts { gap: 7px; }
    .try-label { width: 100%; margin-bottom: 1px; }
    .quick-prompts button { padding: 8px 10px; font-size: 9px; }
    .hero-bottom-copy { display: none; }
    .background-control { right: 18px; bottom: 20px; }
    .background-control > span { display: none; }
    .background-slide { object-position: 74% center; filter: saturate(1.01) contrast(1.03) brightness(.82); }
    .background-scrim { background: linear-gradient(180deg, rgba(4,7,12,.32), rgba(4,7,12,.17) 35%, rgba(4,7,12,.30)); }
    .planner { width: calc(100% - 14px); margin-top: 86px; border-radius: 22px; }
    .chat-panel, .trip-panel { padding: 22px 17px; }
    .panel-heading h2, .trip-header h2 { font-size: 26px; }
    .messages { max-height: 420px; }
    .trip-header .outline-button { display: none; }
    .summary-empty { min-height: 300px; padding: 35px 20px; }
    .summary-title h3 { font-size: 29px; }
    .trip-facts { margin-top: 30px; }
    .share-modal { padding:0; align-items:end; }
    .share-sheet { width:100%; max-height:92vh; border-radius:25px 25px 0 0; padding:25px 18px 30px; }
    .share-sheet-header h2 { font-size:29px; }
    .share-option { grid-template-columns:43px 1fr auto; }
    .email-trip-form > div { grid-template-columns:1fr; }
    .email-trip-form button { min-height:44px; }
    .share-link-panel > div { grid-template-columns:1fr; }
    .share-link-panel > div button { min-height:42px; }
}

@media (max-width: 430px) {
    .language-switcher span { opacity: .6; }
    .menu-trigger > span:first-child { display: none; }
    .menu-trigger { width: 38px; padding: 0; justify-content: center; }
    .hero-content { margin-top: 2vh; }
    .hero-heading p { max-width: 330px; }
    .prompt-card { margin-top: 20px; }
    .quick-prompts button:nth-of-type(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* v5 - SEO/performance/accessibility/browser hardening */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    overflow-x: hidden;
}
body {
    min-width: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
}
.page-shell { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }
.hero { min-height: 100vh; min-height: 100svh; min-height: 100dvh; }

/* Safari/iOS safe areas. */
.topbar {
    padding-left: max(clamp(24px, 3.4vw, 58px), env(safe-area-inset-left));
    padding-right: max(clamp(24px, 3.4vw, 58px), env(safe-area-inset-right));
    padding-top: env(safe-area-inset-top);
    height: calc(96px + env(safe-area-inset-top));
}
.hero {
    padding-left: max(24px, env(safe-area-inset-left));
    padding-right: max(24px, env(safe-area-inset-right));
    padding-bottom: max(100px, calc(78px + env(safe-area-inset-bottom)));
}
.hero-bottom-copy { left: max(clamp(24px, 3.4vw, 58px), env(safe-area-inset-left)); bottom: max(33px, calc(18px + env(safe-area-inset-bottom))); }
.background-control { right: max(clamp(24px, 3.4vw, 58px), env(safe-area-inset-right)); bottom: max(35px, calc(20px + env(safe-area-inset-bottom))); }

/* Graceful glass effect across Safari and older engines. */
.menu-trigger,
.utility-menu,
.prompt-card,
.quick-prompts button,
.toast,
.share-modal-backdrop {
    -webkit-backdrop-filter: blur(12px);
}
.menu-trigger { -webkit-backdrop-filter: blur(12px); }
.utility-menu { -webkit-backdrop-filter: blur(24px) saturate(1.15); }
.prompt-card { -webkit-backdrop-filter: blur(22px) saturate(1.08); }
.quick-prompts button { -webkit-backdrop-filter: blur(8px); }
.toast { -webkit-backdrop-filter: blur(14px); }
.share-modal-backdrop { -webkit-backdrop-filter: blur(10px); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .menu-trigger { background: rgba(12,16,23,.72); }
    .utility-menu { background: rgba(20,21,25,.96); }
    .prompt-card { background: rgba(79,82,91,.94); }
    .quick-prompts button { background: rgba(38,42,49,.72); }
    .toast { background: #191b20; }
}

/* Keyboard focus must remain visible on every interactive surface. */
a:focus-visible,
button:focus-visible,
textarea:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(232,255,114,.95);
    outline-offset: 3px;
}
.prompt-card textarea:focus-visible,
.email-trip-form input:focus-visible,
.share-link-panel input:focus-visible { outline-offset: -3px; }

.language-button {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 25px;
    min-height: 32px;
}

.background-dots { gap: 0; }
.background-dots button {
    position: relative;
    width: 28px;
    height: 28px;
    border: 0;
    background: transparent;
}
.background-dots button::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.8);
    background: transparent;
}
.background-dots button.is-active::after { background: #fff; }

.noscript-note {
    margin: 14px auto 0;
    max-width: 680px;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 12px;
    background: rgba(10,13,19,.72);
    color: #fff;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}

.prompt-input-shell,
.prompt-card textarea,
.email-trip-form input,
.share-link-panel input { -webkit-appearance: none; appearance: none; }
.prompt-card textarea { overflow-wrap: anywhere; }
.hero-thread { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.share-sheet { max-height: min(760px, calc(100vh - 38px)); max-height: min(760px, calc(100dvh - 38px)); overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

@media (hover: none) {
    .quick-prompts button:hover,
    .share-option:hover { transform: none; }
}

@media (max-width: 720px) {
    .topbar {
        height: calc(76px + env(safe-area-inset-top));
        padding-left: max(18px, env(safe-area-inset-left));
        padding-right: max(18px, env(safe-area-inset-right));
    }
    .hero {
        padding-left: max(13px, env(safe-area-inset-left));
        padding-right: max(13px, env(safe-area-inset-right));
        padding-bottom: max(85px, calc(65px + env(safe-area-inset-bottom)));
    }
    .hero-content { width: 100%; }
    .prompt-card-head { min-width: 0; }
    .hero-share-actions { flex-shrink: 0; }
    .quick-prompts { max-height: 102px; overflow: hidden; }
    .background-control { right: max(12px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom)); }
    .share-sheet { max-height: 92vh; max-height: 92dvh; padding-bottom: max(30px, calc(18px + env(safe-area-inset-bottom))); }
}

@media (max-width: 360px) {
    .topbar { padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
    .brand img { width: 136px; }
    .utility-actions { gap: 6px; }
    .language-switcher { gap: 3px; }
    .hero { padding-left: max(9px, env(safe-area-inset-left)); padding-right: max(9px, env(safe-area-inset-right)); }
    .hero-heading h1 { font-size: 37px; }
    .prompt-card { padding: 15px 12px; }
    .prompt-card-head { flex-wrap: wrap; gap: 9px; }
    .hero-share-actions { width: 100%; justify-content: flex-end; }
    .prompt-card textarea { min-height: 150px; }
    .quick-prompts button { max-width: 100%; white-space: normal; line-height: 1.2; }
}

/* Tablet and phone landscape: preserve the planner while avoiding a giant vertical hero. */
@media (max-height: 650px) and (min-width: 721px) {
    .topbar { height: 72px; }
    .hero { padding-top: 78px; padding-bottom: 44px; place-items: start center; }
    .hero-content { margin-top: 0; width: min(920px, 100%); }
    .hero-heading h1 { font-size: clamp(38px, 7vw, 56px); }
    .hero-heading p { margin: 7px auto 12px; font-size: 14px; }
    .prompt-card { padding: 14px 18px 14px; }
    .prompt-card-head { margin-bottom: 8px; }
    .prompt-card textarea { min-height: 105px; padding-top: 13px; padding-bottom: 50px; }
    .quick-prompts { margin-top: 10px; }
    .hero-bottom-copy, .background-control > span { display: none; }
    .background-control { bottom: 8px; }
}


@media (max-width: 430px) {
    .social-icon-link { width: 32px; height: 32px; }
    .social-icon-link svg { width: 15px; height: 15px; }
}

@media (prefers-contrast: more) {
    .background-scrim { background: rgba(0,0,0,.5); }
    .prompt-card { border-color: rgba(255,255,255,.8); }
    .quick-prompts button { border-color: rgba(255,255,255,.75); }
}

@media (prefers-reduced-motion: reduce) {
    .background-slide { transform: none !important; }
}
