/* ==========================================================================
   MakeAVacation — v8 "Glass" (2026-11-29). Replaces the Sunlit skin.

   Concept: every section of the site sits over its own full-bleed travel photo.
   Controls float above it on Liquid Glass; content sits on frosted sheets.

   Sources and the rules taken from them:
   - Apple, "Meet Liquid Glass" (WWDC25) + HIG Materials: Liquid Glass is for the
     navigation/control layer that floats over content, not for content itself;
     use the Regular variant (adapts for legibility) and never mix variants; tint
     only primary actions; dim imagery under text for legibility.
   - Apple HIG typography: the system font (SF Pro) with size-specific tracking.
   - Web reality (CSS-Tricks, LogRocket, Frontend Masters on liquid-glass CSS):
     backdrop-filter is the most expensive common CSS property and can't refract,
     so glass = blur + saturation + specular edges, used on a few small floating
     surfaces only. Long content (656 trail cards) never sits on a blur.
   - A blurred element becomes the backdrop root for its children, so the nav
     capsule's glass lives on a ::before layer and its menus can blur the page.
   Accessibility: prefers-reduced-transparency → solid surfaces;
   prefers-contrast → stronger edges; text pairs checked ≥ 4.5:1.
   Load order: style → flights → polish → theme (components) → glass → motion.
   ========================================================================== */

:root {
  /* type: the platform's own font (SF Pro on Apple devices), Inter elsewhere */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  /* neutrals (Apple label colors) */
  --ink: #1d1d1f; --ink-2: #3a3a3c; --muted: #5d5d62; --muted-2: #8e8e93;
  --line: rgba(0, 0, 0, .08); --line-strong: rgba(0, 0, 0, .15);
  --canvas: #14161a;
  --surface: #ffffff;
  --surface-2: rgba(118, 118, 128, .08);
  --surface-3: rgba(118, 118, 128, .14);
  --shade: 0, 0, 0;
  /* brand tint stays the logo's sunset — used for primary actions only */
  --teal: #006a96; --teal-50: rgba(0, 120, 168, .1);
  --brand-50: rgba(240, 96, 24, .12); --brand-100: rgba(240, 96, 24, .2);
  /* depth */
  --sh-1: 0 1px 2px rgba(0, 0, 0, .06), 0 3px 10px rgba(0, 0, 0, .05);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .12);
  --sh-3: 0 6px 16px rgba(0, 0, 0, .08), 0 28px 64px rgba(0, 0, 0, .22);
  --sh-pop: 0 12px 28px rgba(0, 0, 0, .14), 0 36px 80px rgba(0, 0, 0, .3);
  /* Liquid Glass (Regular): light, blurred, saturated, with a lit top edge */
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, .62) 0%, rgba(255, 255, 255, .42) 55%, rgba(255, 255, 255, .5) 100%);
  --glass-blur: blur(22px) saturate(185%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .9), inset 0 -1px 0 rgba(255, 255, 255, .28), inset 0 0 0 1px rgba(255, 255, 255, .38);
  --glass-shadow: 0 1px 2px rgba(0, 0, 0, .1), 0 10px 30px rgba(0, 0, 0, .16);
  /* frosted sheet for content: no blur (cheap), opaque enough for small text */
  --sheet: rgba(255, 255, 255, .84);
  --r-xs: 12px; --r-sm: 14px; --r-md: 20px; --r-lg: 26px; --r-xl: 34px;
  /* motion.css hooks */
  --nav-scrolled: transparent; --splash-weight: 700; --splash-track: -.02em; --island: #000;
}

/* ===== 1. Scene: the photo behind everything =============================== */
html { background: var(--canvas); }
body { background: transparent; font-family: var(--font); color: var(--ink); letter-spacing: -.005em; }
body::before { display: none; }
#scene { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: var(--canvas); }
#scene .sc {
  position: absolute; inset: 0; background-size: cover; background-position: center 40%;
  opacity: 0; visibility: hidden; transform: scale(1.04);
  transition: opacity .7s ease, visibility 0s linear .7s;   /* the faded-out layer stops being drawn */
}
#scene .sc.on { opacity: 1; visibility: visible; transition: opacity .7s ease, visibility 0s; }
/* behind content the photo is soft — pre-blurred by the image server (glass.js), so the
   device does no blur work; frosted sheets read as glass without mottling the text */
@media (prefers-reduced-motion: reduce) { #scene .sc { transition: none; } }
/* dimming for legibility: darker at the top (nav + titles) and bottom */
#scene::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, .12) 38%, rgba(0, 0, 0, .18) 70%, rgba(0, 0, 0, .42) 100%);
}
h1, h2, h3, h4, .home-title, .hp-title, .home-section-label, .xds-h { font-family: var(--font-display); letter-spacing: -.022em; }

/* ===== 2. The glass recipe =================================================== */
.home-widget, .mbar, .nav-group-menu, .auth-dropdown, .nl-signup {
  background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow); border: 0;
}

/* ===== 3. Floating nav capsule =============================================== */
.topnav {
  position: sticky; top: 10px; z-index: 300; height: 62px; padding: 0 .9rem 0 1.1rem;
  width: min(1260px, calc(100% - 20px)); margin: 10px auto 0; border-radius: 22px;
  background: transparent; border: 0; box-shadow: var(--glass-shadow);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.topnav::before {          /* the glass lives here, so menus inside can blur the page */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
}
.nav-group-btn { height: 62px; color: var(--ink-2); font-weight: 600; font-size: .93rem; }
.nav-group-btn:hover, .nav-group.open > .nav-group-btn, .nav-group.active-group > .nav-group-btn { color: var(--ink); }
.mav-navpill { background: rgba(255, 255, 255, .55); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8); }
.mav-glide--line { background: var(--sun); }
@media (min-width: 1201px) {
  .nav-group-menu { top: calc(100% + 4px); border-radius: var(--r-lg); padding: .45rem; }
  .nav-group-menu .tab { color: var(--ink); font-weight: 600; border-radius: 15px; }
  .nav-group-menu .tab:hover { background: rgba(255, 255, 255, .55); color: var(--ink); }
  .nav-group-menu .tab.active { background: rgba(255, 255, 255, .8); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
}
.auth-dropdown { border-radius: var(--r-lg); }
.tab-donate-btn { background: var(--brand-50); border: 1px solid rgba(240, 96, 24, .22); color: #9a3409 !important; }
.tab-donate-btn:hover, .tab-donate-btn.active { background: var(--brand-100); }
.auth-signin-btn { background: var(--ink); color: #fff; }

/* tablet/phone menu: a glass panel under the capsule */
@media (max-width: 1200px) {
  .topnav-links {
    top: calc(100% + 8px); left: 0; right: 0; border-radius: var(--r-lg); padding: .5rem 0 .8rem;
    background: var(--glass-fill); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-edge), var(--sh-3);
  }
  .nav-group-btn { height: auto; color: var(--muted); }
  .nav-group-menu, .nav-group-menu:hover { background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; box-shadow: none !important; }
  .nav-group-menu .tab.active { background: rgba(255, 255, 255, .7); color: var(--ink); }
}

/* ===== 4. Phone tab bar (thumb reach) ======================================== */
.mbar { display: none; }
@media (max-width: 760px) {
  .topnav { top: 8px; margin-top: 8px; height: 56px; width: calc(100% - 16px); border-radius: 20px; }
  .hamburger { display: none !important; }
  .mbar {
    display: flex; position: fixed; z-index: 400; left: 10px; right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)); height: 64px; padding: 0 6px;
    border-radius: 26px; justify-content: space-around; align-items: center;
  }
  .mbar button {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    height: 54px; margin: 0 2px; border: 0; border-radius: 19px; background: transparent; cursor: pointer;
    color: var(--ink-2); font: 600 .68rem/1 var(--font); letter-spacing: 0;
  }
  .mbar button .gl { width: 22px; height: 22px; margin: 0; }
  .mbar button.on { color: #9a3409; background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 3px rgba(0, 0, 0, .08); }
  body { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  /* the menu rises from the bar that opened it (Apple: anchor to the source) */
  .topnav-links {
    position: fixed; top: auto; left: 10px; right: 10px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    max-height: min(68vh, 620px); overflow-y: auto;
  }
  html.mav-motion .topnav-links { transform-origin: bottom center; translate: 0 18px; }
  html.mav-motion .topnav-links.open { translate: 0 0; }
  @starting-style { html.mav-motion .topnav-links.open { translate: 0 18px; } }
}
.mav-motion .mbar button { scale: 1; transition: scale var(--sp-press-d) var(--sp-press), color .15s ease, background-color .2s ease; }
.mav-motion .mbar button:active { scale: .9; transition: scale 90ms var(--ease-out), color .15s ease, background-color .2s ease; }

/* ===== 5. Content: frosted sheets (no blur — long lists stay fast) ========== */
main { padding-top: 1.4rem; }
.tab-content.active:not(#tab-home) {
  background: var(--sheet); border-radius: var(--r-xl); padding: 1.6rem 1.6rem 2rem;
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.amazon-rail:not(:empty) {
  background: var(--sheet); border-radius: var(--r-lg); padding: .9rem .9rem 1rem; margin-top: 1.4rem;
  box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.home-sheet {
  background: var(--sheet); border-radius: var(--r-xl); padding: 1.8rem 1.8rem 2.2rem; margin-top: 1.8rem;
  box-shadow: var(--sh-3), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.home-sheet > .home-section-label:first-of-type { margin-top: 1.8rem; }
/* cards inside sheets: solid, quiet */
:is(.search-card, .forecast-card, .trip-header-card, .budget-summary-card, .ai-container, .stay-card, .flt-card,
    .food-card, .camp-card, .fish-card, .trn-card, .acc-card, .trail-card, .agent-gate, .disc-card, .admin-card,
    .wx-row, .gas-item, .trip-item, .flt-gear-card) {
  background-color: var(--surface); border-color: var(--line); box-shadow: var(--sh-1);
}
.xds { background: var(--surface-2); border: 0; }
.flt-search-card .flt-search-panel { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.flt-search-panel .flt-field { border-color: var(--line-strong); }
.trails-hero, .wizard-header, .forecast-header, .trail-card-head, .home-promo, .donate-side, .support-card--rail {
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(240, 96, 24, .35), transparent 55%),
    linear-gradient(135deg, #0b1a2e, #0f3460 70%) !important;
}

/* ===== 6. Home: the photo is the hero ======================================== */
.home-hero {
  background: none; border-radius: 0; box-shadow: none; overflow: visible;
  padding: clamp(3.5rem, 11vh, 7.5rem) 1rem clamp(6rem, 13vh, 8.5rem);
}
.home-title { font-size: clamp(2.4rem, 5.6vw, 4.4rem); font-weight: 700; letter-spacing: -.035em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.home-sub { color: rgba(255, 255, 255, .95); font-weight: 500; text-shadow: 0 1px 16px rgba(0, 0, 0, .45); }
.home-widget { border-radius: var(--r-xl); padding: .6rem 1.4rem 1.5rem; }
.hw-tabs { border-bottom-color: rgba(0, 0, 0, .08); }
.hw-tab { color: var(--ink-2); }
.hw-tab.active { color: var(--ink); }
/* the category bar's indicator becomes a glass lens behind the chosen tab */
#hw-tabs { --glide-mode: pill; padding: .35rem 0 .5rem; gap: .25rem; }
#hw-tabs.has-glide .hw-tab { position: relative; z-index: 1; border-bottom-color: transparent !important; border-radius: 18px; }
#hw-tabs .mav-glide--pill {
  border-radius: 18px; background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 1px 3px rgba(0, 0, 0, .08), 0 6px 16px rgba(0, 0, 0, .08);
}
@media (min-width: 721px) {
  .hw-row { background: rgba(255, 255, 255, .92); border-color: rgba(255, 255, 255, .8); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .1); }
}
@media (max-width: 720px) {
  .hw-row :is(.hw-field, .hw-field-col) { background: rgba(255, 255, 255, .92); }
}
.hw-map-hint { color: var(--ink-2); }
.home-promo { border-radius: var(--r-lg); }
.home-section-label { color: var(--ink); font-weight: 700; }
.photo-card .pc-img { border-radius: var(--r-md); }
.home-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.home-card:hover { box-shadow: var(--sh-2); }

/* ===== 7. Newsletter + footer float over the scene too ======================= */
.nl-signup { width: min(1260px, calc(100% - 20px)); margin: 1.6rem auto 0; border-radius: var(--r-lg); color: var(--ink); padding: 22px 26px; }
.nl-signup .nl-signup-text span { opacity: 1; color: var(--muted); }
.nl-signup-form input { background: #fff; border: 1px solid var(--line-strong); }
.nl-signup-btn { background: var(--grad-sun); color: #fff; box-shadow: var(--sh-sun); }
.nl-signup-btn:hover { background: var(--grad-sun); filter: brightness(1.06); }
.nl-signup-msg.ok { color: #1d7a43; } .nl-signup-msg.err { color: #b3261e; }
.site-footer {
  width: min(1260px, calc(100% - 20px)); margin: 12px auto 14px; border-radius: var(--r-lg); border: 0;
  background: var(--sheet); box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .9);
}

/* ===== 8. Modals: dim the scene, glass-edged sheet =========================== */
:is(.flt-modal-overlay, .auth-modal-overlay) { background: rgba(0, 0, 0, .38); backdrop-filter: blur(10px) saturate(140%); }
:is(.flt-modal, .auth-modal) { border-radius: var(--r-xl); border: 0; box-shadow: var(--sh-pop), inset 0 1px 0 rgba(255, 255, 255, .9); }

/* ===== 9. Small screens ====================================================== */
@media (max-width: 760px) {
  main { padding: 1rem .6rem; }
  .tab-content.active:not(#tab-home), .home-sheet { padding: 1.1rem .9rem 1.4rem; border-radius: var(--r-lg); }
  .home-hero { padding: 2.6rem .6rem 6rem; }
  .home-widget { border-radius: var(--r-lg); }
}

/* ===== 10. Accessibility ===================================================== */
@media (prefers-reduced-transparency: reduce) {
  .home-widget, .mbar, .nav-group-menu, .auth-dropdown, .nl-signup, .topnav::before, .topnav-links {
    background: rgba(255, 255, 255, .97) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  :root { --sheet: #fff; }
}
@media (prefers-contrast: more) {
  .home-widget, .mbar, .nav-group-menu, .auth-dropdown, .nl-signup, .topnav::before, .topnav-links,
  .tab-content.active:not(#tab-home), .home-sheet, .site-footer { outline: 1.5px solid rgba(0, 0, 0, .55); }
  :root { --sheet: #fff; --muted: #3a3a3c; }
}

.gl[data-gl="menu"] { --gl: url(/img/ui/menu.svg); }
.support-card--rail .support-ico { background: rgba(255, 255, 255, .14) url(/img/icons/rocket.svg) center / 26px no-repeat; }

/* informative text never uses the decorative gray */
.mav-ls-sub, .saved-empty { color: var(--muted) !important; }

/* ===== 11. Glass-lite: no live blur where there's no GPU (glass.js decides) ==== */
html.glass-lite .home-widget, html.glass-lite .mbar, html.glass-lite .nav-group-menu, html.glass-lite .auth-dropdown,
html.glass-lite .nl-signup, html.glass-lite .topnav::before, html.glass-lite .topnav-links,
html.glass-lite :is(.flt-modal-overlay, .auth-modal-overlay) {
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
html.glass-lite { --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .82)); }

/* ===== 12. v8.1 polish (2026-11-29) ========================================== */
/* the weather search button's icon is white, like every other primary button */
.wx-search-row .btn-primary .gl { color: inherit; }

/* newsletter: small text sits right on the glass, so the glass thickens under it
   (HIG: the Regular variant adapts to keep what's on it legible) */
.nl-signup { position: relative; }
html:not(.glass-lite) .nl-signup { --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .7)); }
.nl-signup .nl-signup-text span { color: var(--ink-2); }

/* one page header on every tab: icon tile + title + one line (as Stays, Flights, Cars) */
:is(.pg-title, .shop-header h2, .budget-header h2, .acc-hero h2, .ai-header h2) {
  display: flex; align-items: center; gap: .9rem; margin: .3rem 0 .25rem;
  font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; color: var(--ink);
}
:is(.pg-title, .shop-header h2, .budget-header h2, .acc-hero h2, .ai-header h2) > .ic:first-child {
  flex: none; width: 58px; height: 58px; margin: 0; border-radius: 19px; vertical-align: middle;
  background-color: var(--surface); background-size: 38px; border: 1px solid var(--line); box-shadow: var(--sh-2);
}
:is(.pg-sub, .shop-sub, .budget-sub, .acc-hero > p, .ai-header > p) {
  color: var(--muted); font-size: 1rem; line-height: 1.45; margin: 0 0 1.1rem calc(58px + .9rem); max-width: 64ch;
}
/* headers sit on the sheet itself — no card inside a card */
:is(.shop-header, .budget-header, .acc-hero, .ai-header) { background: none; border: 0; box-shadow: none; padding: 0; }
.tab-content > .search-card:first-child:has(> .pg-title) { background: none; border: 0; box-shadow: none; padding: 0; }
.tab-content > .search-card:first-child:has(> .pg-title) > .search-row {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: .75rem; box-shadow: var(--sh-1);
}
@media (max-width: 600px) {
  :is(.pg-title, .shop-header h2, .budget-header h2, .acc-hero h2, .ai-header h2) > .ic:first-child { width: 48px; height: 48px; background-size: 32px; border-radius: 16px; }
  :is(.pg-sub, .shop-sub, .budget-sub, .acc-hero > p, .ai-header > p) { margin-left: 0; font-size: .95rem; }
}

/* gear cards: one illustration per category instead of unrelated stock photos */
.acc-card { position: relative; }
.acc-card .acc-card-img { display: none !important; }
.acc-card::before {
  content: ""; display: block; flex: none; height: 132px;
  background: radial-gradient(90% 120% at 15% 0%, rgba(255, 255, 255, .75), transparent 60%), var(--acc-tint, linear-gradient(135deg, #e7eef8, #cfdcee));
}
.acc-card::after {
  content: ""; position: absolute; top: 36px; left: 50%; width: 60px; height: 60px; margin-left: -30px; pointer-events: none;
  background-color: var(--acc-ink, #34557a);
  -webkit-mask: var(--acc-ic, url(/img/ui/package.svg)) center / contain no-repeat; mask: var(--acc-ic, url(/img/ui/package.svg)) center / contain no-repeat;
}
.acc-card[data-cat="connectivity"] { --acc-ic: url(/img/ui/satellite.svg); --acc-tint: linear-gradient(135deg, #e4effc, #c4daf5); --acc-ink: #0d5bb5; }
.acc-card[data-cat="power"] { --acc-ic: url(/img/ui/battery-charging.svg); --acc-tint: linear-gradient(135deg, #fff3da, #ffe0a3); --acc-ink: #94570a; }
.acc-card[data-cat="solar"] { --acc-ic: url(/img/ui/sun.svg); --acc-tint: linear-gradient(135deg, #ffeadd, #ffcfb3); --acc-ink: #b23f0b; }
.acc-card[data-cat="safety"] { --acc-ic: url(/img/ui/shield-check.svg); --acc-tint: linear-gradient(135deg, #e1f5e8, #bfe6cf); --acc-ink: #17744b; }
.acc-card[data-cat="audio"] { --acc-ic: url(/img/ui/speaker.svg); --acc-tint: linear-gradient(135deg, #eee8fd, #d6c9f8); --acc-ink: #5634c0; }

/* My Trip: the pay card spans the page like its neighbours, with a warm wash instead of a heavy rule */
.tp-card {
  max-width: none; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1);
  background: linear-gradient(135deg, rgba(240, 96, 24, .08), rgba(240, 96, 24, 0) 55%), var(--surface);
}

/* ===== 13. v8.2 — the quieter pages get designed too (2026-11-29) =========== */
/* .hidden is the app's "not shown" class (upload progress, lightbox, badges…) */
.hidden { display: none; }

/* shared dark surface: navy with the logo's sunset glowing in from the corner */
.about-hero, .agent-gate-hero, .acct-head {
  background:
    radial-gradient(110% 140% at 100% 0%, rgba(240, 96, 24, .35), transparent 55%),
    linear-gradient(135deg, #0b1a2e, #0f3460 70%) !important;
  color: #fff;
}

/* About: a founder's letter, laid out like one */
.about-page { max-width: 1060px; margin: 0 auto; padding: 0; background: none; box-shadow: none; border-radius: 0; color: var(--ink-2); }
.about-hero {
  display: flex; align-items: center; gap: 1.5rem; padding: 2.3rem 2.5rem; margin-bottom: 1.8rem;
  border-radius: var(--r-lg); box-shadow: var(--sh-2);
}
.about-logo { width: 84px; height: 84px; flex: none; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .35)); }
.about-eyebrow { margin: 0 0 .35rem; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.about-hero .about-title { margin: 0 0 .3rem; color: #fff; font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; }
.about-hero .about-lede { margin: 0; color: #ffb27a; font-size: 1.15rem; font-weight: 600; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
.about-letter { padding: .2rem .4rem 0; }
.about-letter p { margin: 0 0 1.15rem; font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); max-width: 62ch; }
.about-letter > p:first-child { font-size: 1.2rem; line-height: 1.65; color: var(--ink); font-weight: 500; }
.about-mission {
  margin: 1.7rem 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--sun); border-radius: 0 var(--r-md) var(--r-md) 0;
  background: var(--brand-50); color: var(--ink); font: 650 1.28rem/1.5 var(--font-display); letter-spacing: -.012em;
}
.about-letter .about-sign { margin-top: 1.8rem; font-size: 1rem; color: var(--muted); }
.about-sign strong { color: var(--ink); }
.about-tools {
  position: sticky; top: 92px; padding: 1.5rem; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-2);
}
.about-tools-h { margin: 0 0 1.1rem; font-weight: 700; color: var(--ink); line-height: 1.45; font-size: 1rem; }
.about-page .about-list { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; gap: .7rem; }
.about-page .about-list li { display: flex; align-items: center; gap: .8rem; margin: 0; font-weight: 600; font-size: .97rem; color: var(--ink); line-height: 1.35; }
.about-ico {
  flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-deep); box-shadow: inset 0 0 0 1px rgba(240, 96, 24, .14);
}
.about-ico .gl { width: 20px; height: 20px; margin: 0; }
.about-cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.about-cta button { flex: 1 1 auto; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .about-tools { position: static; }
}
@media (max-width: 600px) {
  .about-hero { flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.6rem 1.4rem; }
  .about-logo { width: 64px; height: 64px; }
  .about-letter { padding: 0; }
  .about-letter p { font-size: 1rem; }
  .about-mission { font-size: 1.12rem; padding: 1rem 1.1rem; }
}

/* Trip Agent, signed out: a header band, the perks as tiles, one clear action */
.agent-gate { max-width: 900px; margin: .4rem auto 0; padding: 0; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.agent-gate-hero { padding: 2rem 2.2rem 1.8rem; }
.agent-gate-hero .agent-gate-badge { color: #ffd2b8; background: rgba(240, 96, 24, .22); border-color: rgba(255, 178, 122, .4); }
.agent-gate-hero h2 { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.03em; }
.agent-gate-hero p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 1rem; }
.agent-gate .agent-perks { list-style: none; margin: 0; padding: 1.6rem 2.2rem .4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.agent-gate .agent-perks li {
  display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.05rem; border-radius: var(--r-md);
  background: var(--surface-2); font-size: .93rem; line-height: 1.5; color: var(--ink-2);
}
.agent-perks strong { display: block; margin-bottom: .1rem; color: var(--ink); font-size: 1rem; }
.ap-ico {
  flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); color: var(--brand-deep); box-shadow: var(--sh-1);
}
.ap-ico .gl { width: 21px; height: 21px; margin: 0; }
.agent-gate .agent-honest { margin: 1rem 2.2rem 0; border-radius: var(--r-sm); border-left-color: var(--sun); background: var(--brand-50); color: var(--ink-2); font-size: .86rem; }
.agent-gate-go { padding: 1.3rem 2.2rem 2rem; }
.agent-gate-go .btn-primary { padding: .9rem 1.8rem; font-size: 1rem; }
@media (max-width: 640px) {
  .agent-gate-hero { padding: 1.5rem 1.3rem 1.3rem; }
  .agent-gate .agent-perks { grid-template-columns: 1fr; padding: 1.2rem 1.1rem .2rem; gap: .65rem; }
  .agent-gate .agent-honest { margin: .9rem 1.1rem 0; }
  .agent-gate-go { padding: 1.1rem 1.1rem 1.4rem; }
  .agent-gate-go .btn-primary { width: 100%; }
}

/* Account, signed out: the same navy surface as every other dark card */
.acct-head { border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.acct-head--out .acct-avatar { background: rgba(255, 255, 255, .12) url(/img/icons/account.svg) center / 44px no-repeat; font-size: 0; }

/* AI assistant: a real conversation — avatar, bubbles, a composer, chips above it */
.ai-container { display: flex; flex-direction: column; }
.ai-container > .ai-suggestions { order: 2; margin: 0 0 .8rem; }
.ai-container > .ai-input-row { order: 3; }
.ai-messages {
  min-height: 340px; padding: 1.3rem; gap: 1rem; border: 0; border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04);
}
.ai-msg.assistant { align-items: flex-end; gap: .6rem; }
.ai-msg.assistant::before {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface) url(/img/icons/ai.svg) center / 24px no-repeat; box-shadow: var(--sh-1);
}
.ai-msg .msg-bubble { font-size: .98rem; line-height: 1.55; padding: .8rem 1.05rem; }
.ai-msg.assistant .msg-bubble { background: var(--surface); color: var(--ink); border-radius: 20px 20px 20px 6px; box-shadow: var(--sh-1); border: 1px solid var(--line); }
.ai-msg.user .msg-bubble { background: linear-gradient(180deg, #c8480e, #a83a08); color: #fff; border-radius: 20px 20px 6px 20px; box-shadow: 0 4px 14px rgba(168, 58, 8, .22); }
.ai-input-row {
  align-items: flex-end; gap: .5rem; margin: 0; padding: .45rem .45rem .45rem 1rem; border-radius: 24px;
  background: var(--surface); border: 1.5px solid var(--line-strong); box-shadow: var(--sh-1);
}
.ai-input-row:focus-within { border-color: var(--brand); box-shadow: var(--sh-1), 0 0 0 4px rgba(240, 96, 24, .14); }
.ai-input-row textarea, .ai-input-row textarea:focus { border: 0; padding: .55rem 0; background: transparent; font-size: 1rem; box-shadow: none; }
.ai-input-row .btn-primary { border-radius: 18px; padding: .7rem 1.3rem; }
.ai-suggestions .sugg-label { font-weight: 700; color: var(--muted); font-size: .85rem; }
.ai-suggestions .suggestion { border-radius: 999px; }

/* ===== 14. Plan together — group trips on My Trip (2026-11-29) ============= */
/* Same sheet card as Save & Pay, with a teal wash so "people" reads apart from "money" */
.trip-group { margin: 14px 0; }
.grp-card {
  padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1);
  background: linear-gradient(135deg, rgba(0, 120, 168, .09), rgba(0, 120, 168, 0) 55%), var(--surface);
}
.grp-card.is-promo { padding: 14px 18px; }
.grp-card.is-invite { border-color: rgba(0, 120, 168, .35); box-shadow: var(--sh-2); }
.grp-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.grp-ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: var(--teal-50); color: var(--teal); }
.grp-ico .gl { width: 22px; height: 22px; margin: 0; }
.grp-hd { flex: 1 1 240px; min-width: 0; }
.grp-title { font: 700 1.06rem/1.25 var(--font-display); letter-spacing: -.012em; color: var(--ink); }
.grp-sub { margin-top: 3px; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.grp-dot { margin: 0 .4em; }
.grp-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.grp-actions .btn-primary, .grp-actions .btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: .6rem 1.05rem; font-size: .88rem; white-space: nowrap; }
.grp-actions .gl { width: 16px; height: 16px; margin: 0; color: inherit; }

.grp-sync { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.grp-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.grp-sync[data-s="ok"] { color: #17744b; }
.grp-sync[data-s="saving"] { color: #94570a; }
.grp-sync[data-s="off"], .grp-sync[data-s="err"] { color: #b3261e; }
.grp-sync[data-s="view"] { color: var(--muted); }

.grp-linkbox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--teal-50); }
.grp-linkbox.hidden { display: none; }
.grp-linkbox label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.grp-linkbox input {
  flex: 1 1 260px; min-width: 0; padding: .5rem .75rem; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--surface); color: var(--ink); font: .82rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.grp-linkbox .btn-outline { padding: .45rem .95rem; font-size: .84rem; }

.grp-people { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.grp-person { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-2); font-size: .86rem; color: var(--ink-2); }
.grp-person-wait { padding-left: 10px; color: var(--muted); }
.grp-you { color: var(--muted); }
.grp-av {
  width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center; overflow: hidden; border-radius: 50%;
  background: var(--av, #38506b); color: #fff; font-size: .76rem; font-weight: 700; object-fit: cover;
}
.grp-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.grp-tag .gl { width: 13px; height: 13px; margin: 0; }
.grp-x { display: inline-grid; place-items: center; margin-left: -2px; padding: 3px; border: 0; border-radius: 50%; background: none; color: var(--muted-2); cursor: pointer; }
.grp-x:hover, .grp-x:focus-visible { color: #b3261e; background: rgba(179, 38, 30, .09); }
.grp-x .gl { width: 15px; height: 15px; margin: 0; }

.grp-chat { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.grp-msgs { display: flex; flex-direction: column; gap: 10px; max-height: 280px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 4px; }
.grp-empty { padding: 2px 0; font-size: .86rem; color: var(--muted); }
.grp-msg { display: flex; align-items: flex-end; gap: 8px; max-width: min(82%, 560px); }
.grp-msg.mine { align-self: flex-end; }
.grp-msg .grp-av { width: 26px; height: 26px; margin-bottom: 18px; }
.grp-msg-body { min-width: 0; }
.grp-bubble {
  padding: 8px 13px; border-radius: 18px 18px 18px 6px; background: var(--surface-2); color: var(--ink);
  font-size: .92rem; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere;
}
.grp-msg.mine .grp-bubble { border-radius: 18px 18px 6px 18px; background: var(--teal); color: #fff; }
.grp-meta { margin: 3px 6px 0; font-size: .72rem; color: var(--muted); }
.grp-msg.mine .grp-meta { text-align: right; }
.grp-compose { display: flex; gap: 8px; margin-top: 12px; }
.grp-compose input {
  flex: 1; min-width: 0; padding: .62rem 1rem; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: .92rem;
}
.grp-compose input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 120, 168, .14); }
.grp-compose .btn-primary { padding: .62rem 1.25rem; border-radius: 999px; }
.grp-note { margin: 12px 0 0; padding: 9px 12px; border-radius: var(--r-sm); background: var(--surface-2); font-size: .82rem; line-height: 1.45; color: var(--ink-2); }
.grp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin-top: 12px; font-size: .8rem; color: var(--muted); }
.grp-foot .tp-link { margin: 0; }
.grp-foot-acts { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }
/* email alerts: an iOS-style switch built on the real checkbox (keyboard + screen readers keep working) */
.grp-switch { display: inline-flex; align-items: center; gap: 10px; font-size: .84rem; line-height: 1.35; color: var(--ink-2); cursor: pointer; }
.grp-switch input {
  -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 38px; height: 23px; margin: 0;
  border-radius: 999px; background: #d4d4d8; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); cursor: pointer;
  transition: background-color .2s var(--ease-out, ease-out);
}
.grp-switch input::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .28);
  transition: transform .22s var(--ease-out, ease-out);
}
.grp-switch input:checked { background: #17744b; }
.grp-switch input:checked::after { transform: translateX(15px); }
.grp-switch input:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .grp-switch input, .grp-switch input::after { transition: none; } }

@media (max-width: 760px) {
  .grp-card { padding: 16px; }
  .grp-actions { width: 100%; }
  .grp-actions > * { flex: 1 1 0; }
  .grp-msg { max-width: 92%; }
  .grp-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
}
