/* InvestHome — static marketing site styles
 * Modern, fast, framework-free. Mobile-first. SEO-friendly.
 */
:root {
  --primary: #2c5aa0;
  --primary-dark: #1f3f73;
  --accent: #e67e22;
  --success: #28a745;
  --gold: #ffd700;
  --dark-bg: #0d2137;
  --dark-bg-2: #122c47;
  --text: #1a2332;
  --text-muted: #5a6b7e;
  --border: #e5e7eb;
  --bg-soft: #f6f8fb;
  --bg-soft-2: #eef3f9;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 6px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, .14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--text); font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 2.75vw, 2.75rem); }
h2 { font-size: clamp(1.625rem, 2.125vw, 2.125rem); }
h3 { font-size: clamp(1.125rem, 1.25vw, 1.25rem); }
p { margin: 0 0 1em; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(44, 90, 160, .08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.eyebrow.gold { color: #7db3ff; background: rgba(44, 90, 160, .2); border: 1px solid rgba(44, 90, 160, .4); }
.eyebrow.dark { color: #e8eef7; background: rgba(255, 255, 255, .12); }

/* === Secondary Nav Bar (below header) === */
.subnav {
  background: var(--primary);
  position: sticky;
  top: 57px;
  z-index: 40;
}
.subnav-inner {
  padding: 0 15px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  color: rgb(255, 255, 255) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 8px 14px;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.subnav a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  text-decoration: none !important;
}
.subnav-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  padding: 0 2px;
  user-select: none;
}
/* Small phones: shrink paddings/font so all four quick links fit on one
   line (overflow-x scrolling above remains the fallback for tiny screens). */
@media (max-width: 480px) {
  .subnav-inner {
    padding: 0 4px;
    justify-content: space-between;
  }
  .subnav a {
    font-size: 11px;
    letter-spacing: 0;
    padding: 8px 5px;
  }
}

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 60px;
  background: rgba(255, 255, 255);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, .06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 15px;
  max-width: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 900; font-size: 16px;
}
.nav { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); text-decoration: none; }
.nav .dropdown { position: relative; }
.nav .dropdown > button {
  background: transparent; border: none; cursor: pointer;
  font: inherit; color: var(--text); font-weight: 600; font-size: 13px;
  padding: 8px 12px; border-radius: 8px;
}
.nav .dropdown > button:hover { background: var(--bg-soft); }
.nav .dropdown-menu {
  position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid var(--border);
  border-radius: 12px; padding: 8px;
  min-width: 220px; box-shadow: var(--shadow-md);
  display: none;
}
.nav .dropdown:hover .dropdown-menu,
.nav .dropdown:focus-within .dropdown-menu { display: block; }
.nav .dropdown-menu a { display: block; padding: 8px 10px; }
/* Respect the `hidden` attribute on dropdown links (e.g. signed-in-only
   "My Lots") — the block rule above otherwise overrides the UA [hidden] rule,
   leaving the link visible while signed out. site.js unhides it on sign-in. */
.nav .dropdown-menu a[hidden] { display: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px;
  background: var(--primary); color: #fff !important;
  border: none; border-radius: 10px;
  font-weight: 700; font-size: 13px;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { background: var(--primary-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav a.btn:hover { background: var(--primary-dark); color: #fff !important; }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-ghost { background: transparent; color: var(--primary) !important; border: 1.5px solid var(--primary); }
.btn-ghost:hover { background: var(--primary); color: #fff !important; }
.btn-light { background: #fff; color: var(--primary) !important; }
.btn-light:hover { background: var(--bg-soft); color: var(--primary-dark) !important; }
.btn-gold { background: var(--primary); color: #fff !important; }
.btn-gold:hover { background: var(--primary-dark); color: #fff !important; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* === Header icons (notification + account) — mirrors SPA header === */
.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  /* Desktop: .nav (with margin-left:auto) pushes the nav + icon cluster to
   * the right edge of the container. Icons sit flush against the right
   * edge — no margin-left on this element itself. Mobile re-adds
   * margin-left:auto below so icons push right when nav is collapsed. */
  margin-left: 0px;
}
.header-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 5px;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 8px;
}
.header-icon-btn:hover { background: var(--bg-soft); text-decoration: none; }
.header-icon-btn[hidden] { display: none !important; }
.notif-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #FF3B30;
  color: #fff;
  border-radius: 10px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid #fff;
  box-sizing: border-box;
}
.notif-badge.wide { min-width: 26px; padding: 0 4px; font-size: 8px; }
.notif-badge[hidden] { display: none !important; }

/* Signed-out auth links (Sign In / Join Now) — hidden by site.js when a
 * session exists in localStorage. */
.auth-links {
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-links[hidden] { display: none !important; }
.auth-link {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.auth-link.auth-signin {
  color: var(--text);
  padding: 8px 10px;
  border-radius: 8px;
}
.auth-link.auth-signin:hover { background: var(--bg-soft); color: var(--primary-dark); text-decoration: none; }
.auth-link.auth-join {
  background: var(--primary);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: 700;
}
.auth-link.auth-join:hover { background: var(--primary-dark); text-decoration: none; }

.account-wrap { position: relative; }
.account-wrap[hidden] { display: none !important; }
.account-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.account-icon {
  width: 35px;
  height: 35px;
  border-radius: 17.5px;
  background: #9CA3AF; /* signed-out grey by default */
  border: 2px solid #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.account-icon svg { display: block; }
.account-wrap.authed .account-icon { background: #007AFF; }

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  min-width: 240px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1000;
}
.account-menu[hidden] { display: none !important; }
.account-menu-header,
.account-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  /* Match Expo SharedComponents.menuItem (16/500). */
  font-size: 16px;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.account-menu-header { padding: 16px; gap: 12px; }
.account-menu-header:hover,
.account-menu-item:hover { background: var(--bg-soft); text-decoration: none; }
.account-menu-header-icon {
  width: 45px; height: 45px;
  border-radius: 22.5px;
  background: #E8F4FF; /* matches Expo userInfoIconContainer */
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.account-menu-header-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.account-menu-name { font-weight: 600; font-size: 16px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu-email { font-size: 13px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-menu-chev { color: #9CA3AF; font-size: 20px; line-height: 1; }
.account-menu-item-icon { color: var(--text); display: inline-flex; }
.account-menu-signout { color: #F44336; }
.account-menu-signout .account-menu-item-icon { color: #F44336; }
.account-menu-sep { height: 1px; background: #f0f0f0; margin: 0 16px; }

/* === Create control (desktop-web only) — mirrors Expo CreateButton === */
.create-wrap { position: relative; display: inline-flex; }
.create-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: none;
  border-radius: 18px;
  background: var(--primary);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(44, 90, 160, 0.35);
}
.create-btn:hover { background: var(--primary-dark); }
.create-btn-plus { display: inline-flex; }
.create-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border-radius: 12px;
  min-width: 260px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 1000;
}
.create-menu[hidden] { display: none !important; }
.create-menu-heading {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6B7280;
  padding: 14px 16px 10px;
}
.create-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
}
.create-menu-item:hover { background: var(--bg-soft); text-decoration: none; }
.create-menu-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 19px;
  background: #E8F4FF;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.create-menu-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.create-menu-item-title { font-size: 15px; font-weight: 600; color: var(--text); }
.create-menu-item-sub { font-size: 12px; color: #6B7280; }
/* Mobile: Create replaces "Join Now" when signed out, and shows as a compact
   "＋" icon when signed in (matches the Expo app header). */
@media (max-width: 960px) {
  .create-wrap { display: inline-flex; }
  .auth-link.auth-join { display: none !important; }
  /* Signed out → Create pill sits AFTER "Sign In" (like the app). */
  .header-icons .auth-links { order: 2; }
  .create-wrap:not(.is-authed) { order: 3; }
  /* Signed in → compact circular "＋" icon, no label. */
  .create-wrap.is-authed .create-btn {
    width: 36px;
    padding: 0;
    gap: 0;
    justify-content: center;
  }
  .create-wrap.is-authed .create-btn-label { display: none; }
}

/* === Sections / Reveal === */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
section + section { border-top: 1px solid rgba(15, 23, 42, .04); }
.section-dark { background: var(--dark-bg); color: #e6edf6; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .muted { color: #94a3b8; }
.section-soft { background: var(--bg-soft); }
.section-gradient {
  background: linear-gradient(160deg, #0d2137 0%, #1a3a5c 100%);
  color: #e6edf6;
}
.section-gradient h1, .section-gradient h2, .section-gradient h3 { color: #fff; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s ease, transform .8s ease;
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: #0d2137;
  color: #e6edf6;
  overflow: hidden;
}
.hero h1 { color: #fff; }
.hero h1 span.accent { color: #4a90e2; }
.hero .lede { font-size: clamp(1rem, 1.0625vw, 1.0625rem); color: #c8d3e1; max-width: 720px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-grid.hero-grid-solo {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: #c8d3e1; font-size: 14px; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--success); color: #fff; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 11px; font-weight: 900; vertical-align: middle; }
.hero-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-video iframe { width: 100%; height: 100%; border: 0; display: block; }

/* === Cinematic hero (full-bleed background video) ===
 * Painting order inside .hero-cine: the section's own #0d2137 background, then
 * the negative-z-index backdrop + scrim, then the content. `isolation: isolate`
 * keeps those negative layers from escaping behind the page. */
.hero-cine {
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 880px);
  padding: 96px 0 80px;
  text-align: center;
}
.hero-cine-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background-color: var(--dark-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.hero-cine-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight overscan hides the 1px edges some browsers leave when scaling. */
  transform: scale(1.04);
  opacity: 0;
  transition: opacity .8s ease;
  pointer-events: none;
}
.hero-cine-video.is-ready { opacity: 1; }
.hero-cine-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* A soft pool of shade under the copy rather than a flat wash, so the footage
     keeps its colour while the text keeps its contrast. Deliberately light —
     legibility comes mostly from the text-shadows below, not from drowning the
     video. Anything heavier and the whole hero reads as washed out. */
  background:
    radial-gradient(62% 58% at 50% 46%, rgba(9, 22, 38, .5) 0%, rgba(9, 22, 38, .28) 62%, rgba(9, 22, 38, 0) 100%),
    linear-gradient(180deg, rgba(9, 22, 38, .26) 0%, rgba(9, 22, 38, .02) 42%, rgba(9, 22, 38, .48) 100%);
}
.hero-cine-inner { max-width: 940px; margin: 0 auto; }
/* Doubled shadows: a tight one for edge definition against busy footage, a wide
   soft one that acts as a local scrim only where the glyphs are. */
.hero-cine h1 { text-shadow: 0 1px 3px rgba(4, 12, 24, .55), 0 2px 22px rgba(4, 12, 24, .7); }
.hero-cine .lede {
  margin-left: auto;
  margin-right: auto;
  color: #e8eff8;
  text-shadow: 0 1px 3px rgba(4, 12, 24, .6), 0 1px 16px rgba(4, 12, 24, .85);
}
.hero-cine .eyebrow.gold {
  color: #a8ccff;
  background: rgba(9, 22, 38, .5);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(2px);
}
.hero-cine .hero-actions,
.hero-cine .hero-trust { justify-content: center; }
.hero-cine .hero-trust { color: #e8eff8; text-shadow: 0 1px 3px rgba(4, 12, 24, .6), 0 1px 12px rgba(4, 12, 24, .85); }

/* Quick-search panel */
.hero-search {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 32px;
  padding: 8px;
  text-align: left;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  box-shadow: 0 24px 60px rgba(4, 12, 24, .38);
}
.hero-search-field {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 20px;
  border-right: 1px solid var(--border);
}
.hero-search-field:last-of-type { border-right: 0; }
.hero-search-field label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.hero-search-field input,
.hero-search-field select {
  width: 100%;
  height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
}
.hero-search-field select { cursor: pointer; }
.hero-search-field input::placeholder { color: #9aa7b6; font-weight: 500; }
.hero-search-field input:focus,
.hero-search-field select:focus { outline: 2px solid var(--primary); outline-offset: 4px; border-radius: 4px; }
.hero-search-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.hero-search-go:hover { background: var(--primary-dark); transform: translateY(-1px); }
.hero-search-go:active { transform: none; }

/* Autocomplete — mirrors the app's LandLots suggestions (lots, then estates,
   then suburbs). The panel escapes the pill, so the form owns a stacking
   context and the list sits above the CTAs underneath it. */
.hero-search { position: relative; z-index: 3; }
.hero-search-field--ac { position: relative; }
.hero-ac {
  position: absolute;
  top: calc(100% + 14px);
  left: 6px;
  width: max(100%, 340px);
  max-height: 340px;
  overflow-y: auto;
  z-index: 20;
  margin: 0;
  padding: 6px;
  list-style: none;
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 22px 48px rgba(4, 12, 24, .28);
}
.hero-ac[hidden] { display: none; }
.hero-ac-group {
  padding: 8px 10px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
}
.hero-ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
}
.hero-ac-item:hover,
.hero-ac-item[aria-selected="true"] { background: var(--bg-soft-2); }
.hero-ac-item svg { flex: none; }
.hero-ac-text { min-width: 0; flex: 1; }
.hero-ac-title,
.hero-ac-sub { display: block; }
.hero-ac-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-ac-sub {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-ac-price { font-size: 13px; font-weight: 700; color: var(--primary); white-space: nowrap; }
.hero-ac-empty { padding: 14px 12px; font-size: 13px; color: var(--text-muted); }

/* Little spinner in the input while suggestions are loading */
.hero-ac-spinner {
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: hero-ac-spin .7s linear infinite;
}
.hero-ac-spinner[hidden] { display: none; }
@keyframes hero-ac-spin { to { transform: rotate(360deg); } }

/* Proof strip pinned under the hero copy */
.hero-cine-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 44px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero-cine-stats div { display: flex; flex-direction: column; align-items: center; }
.hero-cine-stats strong { font-size: 22px; font-weight: 800; color: #fff; line-height: 1.2; }
.hero-cine-stats span { font-size: 13px; color: #e2eaf4; }
.hero-cine-stats strong,
.hero-cine-stats span { text-shadow: 0 1px 3px rgba(4, 12, 24, .6), 0 1px 12px rgba(4, 12, 24, .85); }

@media (prefers-reduced-motion: reduce) {
  .hero-cine-video { transition: none; }
}

/* === Promo banner === */
.promo-bar {
  background: linear-gradient(90deg, var(--accent), #d35400);
  color: #fff;
  text-align: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14.5px;
}
.promo-bar strong { font-weight: 800; }

/* === Cards / grids === */
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { font-size: 0.9375rem; color: var(--text-muted); }
.section-dark .section-head p { color: #94a3b8; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Press grid: center an orphan last card (odd count) on its own row.
   gap is 22px, so a single column is calc(50% - 11px). Desktop 2-col only;
   collapses to one full-width column at <=600px (see media query below). */
@media (min-width: 601px) {
  .press-grid > article:last-child:nth-child(odd):not(:first-child) {
    grid-column: 1 / -1;
    max-width: calc(50% - 11px);
    margin-inline: auto;
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(44,90,160,.25); }
.card .icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 26px;
  margin-bottom: 16px;
  background: rgba(44, 90, 160, .08); color: var(--primary);
}
.card h3 { font-size: 1.125rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; font-size: 15px; }

.card-dark {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.1);
  color: #e6edf6;
}
.card-dark h3 { color: #fff; }
.card-dark p { color: #b8c4d4; }

/* Feature highlight rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.flip > .visual { order: -1; }
.feature-row .visual {
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 280px;
  display: grid; place-items: center;
  font-size: 96px; color: var(--primary);
  box-shadow: var(--shadow-md);
}
.feature-row ul { padding-left: 0; list-style: none; margin: 18px 0 0; }
.feature-row ul li { padding: 8px 0 8px 30px; position: relative; color: var(--text); }
.feature-row ul li::before {
  content: "✓"; position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 900;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.stat { text-align: center; padding: 24px 16px; }
.stat .v { font-size: 28px; font-weight: 800; color: var(--primary); display: block; margin-bottom: 4px; }
.stat .l { color: var(--text-muted); font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); position: relative; }
.step .num {
  position: absolute; top: -18px; left: 24px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}

/* CTA banner */
.cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-lg);
  margin: 0 24px;
}
.cta h2 { color: #fff; }
.cta p { color: #cfdcef; max-width: 640px; margin: 0 auto 28px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Audience pills */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 18px 0 0; }
.pill { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--text); font-weight: 600; }
.section-dark .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #e6edf6; }

/* FAQ */
details.faq {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
details.faq > summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq > summary::after {
  content: "+";
  color: var(--primary);
  font-size: 22px;
  transition: transform .2s ease;
}
details.faq[open] > summary::after { transform: rotate(45deg); }
details.faq > .faq-body { padding: 0 22px 22px; color: var(--text-muted); border-top: 1px solid #f1f5f9; padding-top: 14px; }
details.faq > .faq-body p { margin-bottom: .8em; }
details.faq > .faq-body ul, details.faq > .faq-body ol { margin: .5em 0 .8em 1.2em; padding-left: .5em; }
details.faq > .faq-body li { margin-bottom: .4em; }

/* Tag list (suburbs / states) */
.taglist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.taglist a {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}
.taglist a:hover { background: var(--primary); color: #fff !important; border-color: var(--primary); text-decoration: none; }

/* Breadcrumbs */
.crumbs { font-size: 14px; color: var(--text-muted); max-width: none; }
.crumbs a { color: var(--text-muted); }
.crumbs span { margin: 0 6px; opacity: .6; }

/* Footer (matches LandingPageScreen WebFooter) */
.footer {
  width: 100%;
  background: #1e3a5f;
  color: #cbd5e0;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 40px 20px;
}
.footer h4 {
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin: 0 0 14px;
}
.footer a { color: #cbd5e0; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: none; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 30px;
}
.footer-col { min-width: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 20px;
}
.footer-brand-col .footer-logo {
  width: 140px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 12px;
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
}
.footer-tagline {
  color: #cbd5e0;
  font-size: 13px;
  line-height: 20px;
  margin: 0 0 16px;
}
.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 180px;
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  transition: background .2s ease, border-color .2s ease;
}
.footer-social a:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .5);
}
.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, .15);
  margin: 20px 0;
}
.footer-divider-thin {
  background: rgba(255, 255, 255, .1);
  margin: 16px 0;
}
.footer-disclaimer {
  color: #8899ab;
  font-size: 11px;
  line-height: 18px;
  margin: 0;
  text-align: left;
}
.footer-disclaimer strong {
  font-weight: 700;
  color: #a0b0c0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.footer-copyright {
  color: #8899ab;
  font-size: 12px;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-bottom-links a {
  color: #8899ab;
  font-size: 12px;
}
.footer-bottom-links a:hover { color: #fff; }
.footer-bottom-links .sep {
  color: #5a6a7a;
  font-size: 12px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  text-decoration: none;
  max-width: 200px;
  transition: background .2s ease;
}
.app-badge:hover {
  background: rgba(255, 255, 255, .18);
  text-decoration: none;
}
.app-badge .small {
  display: block;
  color: #cbd5e0;
  font-size: 9px;
  line-height: 12px;
}
.app-badge .big {
  display: block;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  line-height: 18px;
}

/* Responsive */
@media (max-width: 960px) {
  section { padding: 64px 0; }
  .hero { padding: 80px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 28px; margin-bottom: 56px; }
  .feature-row.flip > .visual { order: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-toggle { display: block; margin-left: 0; order: 3; }
  .header-icons { margin-left: auto; order: 2; gap: 10px; }
  .auth-links { gap: 8px; }
  .auth-link.auth-signin { padding: 6px 6px; }
  .auth-link.auth-join { padding: 6px 12px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; gap: 0; padding: 12px;
    box-shadow: var(--shadow-md);
    display: none;
    order: 4;
  }
  .nav.open { display: flex; }
  .nav a, .nav .dropdown > button { padding: 12px; border-radius: 8px; }
  .nav .dropdown-menu { position: static; box-shadow: none; border: none; padding: 4px 0 4px 16px; min-width: 0; }
  .nav .dropdown:hover .dropdown-menu { display: none; }
  .nav .dropdown.open > .dropdown-menu { display: block; }
  .nav .btn { margin-top: 6px; justify-content: center; }
}
@media (max-width: 960px) {
  /* Pill → stacked card. The panel stays a single tap target column so the
     selects keep native pickers on touch. */
  .hero-cine { min-height: clamp(520px, 76vh, 720px); padding: 72px 0 56px; }
  .hero-search {
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    border-radius: var(--radius);
  }
  .hero-search-field {
    padding: 8px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  .hero-search-field:last-of-type { border-bottom: 0; }
  .hero-search-field input,
  .hero-search-field select { height: 32px; }
  .hero-search-go { width: 100%; padding: 14px 20px; margin-top: 6px; }
  .hero-ac { left: 0; width: 100%; max-height: 46vh; }
  .hero-ac-spinner { bottom: 14px; }
  .hero-cine-stats { gap: 14px 28px; margin-top: 28px; padding-top: 20px; }
  .hero-cine-stats strong { font-size: 19px; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero-cine { padding: 56px 0 48px; }
  .hero-cine .lede { font-size: 15px; }
  .hero-cine .hero-trust { gap: 10px 16px; font-size: 13px; }
  .hero-cine .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-cine-stats div { flex: 1 0 40%; }
}

/* === Button row: side-by-side on desktop, full-width stacked on mobile === */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.btn-row .btn {
  flex: 0 0 auto;
}
@media (max-width: 640px) {
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; text-align: center; justify-content: center; box-sizing: border-box; }
}

/* === Footer Promo Bar === */
.footer-promo {
  background: #28a745;
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
}

/* === AI Strip === */
/* .ai-strip rules removed with the AI strip section (home hero now carries
 * that claim as its first differentiator). Kept nothing behind — the markup
 * no longer exists on any page. */
/* === Environment Banner (dev / staging) ===
   Mirrors components/common/EnvironmentBanner.js in the SPA.
   Server-rendered in static template.js so it appears on first paint. */
.env-banner {
  width: 100%;
  z-index: 99999;
  padding: 8px 16px;
  color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .15);
}
.env-banner-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  max-width: 1210px;
  width: 100%;
  margin: 0 auto;
}
.env-banner-text {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: #fff;
}
.env-banner-link {
  color: #fff;
  text-decoration: underline;
  font-weight: 700;
}
.env-banner-link:hover { opacity: .85; }
.env-banner-dismiss {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 0px;
}
.env-banner.env-banner-dismissed { display: none; }

/* === Sticky Stack ===
   Wraps env-banner + install-banner + header so they all stay glued to the
   top of the viewport when the page scrolls. Children are statically
   positioned and stack normally inside; only the wrapper itself is sticky.
   This avoids the multi-sticky-sibling overlap problem and works on every
   viewport (including iOS Safari where individual sticky siblings stack
   inconsistently). */
.sticky-stack {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;             /* prevent transparent flash behind blur */
}
.sticky-stack .header,
.sticky-stack .subnav {
  position: static;             /* let the wrapper handle the sticky */
  top: auto;
  z-index: auto;
}
.sticky-stack .env-banner,
.sticky-stack .install-banner {
  position: static;
  top: auto;
  z-index: auto;
}

/* === Mobile App Install Banner (iOS / Android) ===
   Matches the SPA's IOSAppBanner.js / AndroidAppBanner.js layout so static
   pages and the SPA show the same banner. Server-injected by site.js into
   .sticky-stack so it sits between the env-banner and the header. */
.install-banner {
  display: none;                /* shown by site.js when iOS/Android */
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}
.install-banner.show { display: flex; }
.install-banner-close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  padding: 0;
}
.install-banner-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  object-fit: cover;
  background: #2c5aa0;
}
.install-banner-text {
  flex: 1 1 auto;
  min-width: 0;
}
.install-banner-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a3a5c;
  margin: 0;
  line-height: 1.2;
}
.install-banner-sub {
  font-size: 12px;
  color: #666;
  margin: 2px 0 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.install-banner-cta {
  flex: 0 0 auto;
  background: #2c5aa0;
  color: #fff;
  border: none;
  border-radius: 999px;          /* pill, matches SPA */
  padding: 8px 22px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.install-banner-cta:hover { background: #234a85; }

/* ---------- Cookie Consent Banner ----------
 * Card-style, matching CookieConsentBanner.js (React Native SPA).
 * Desktop: floating card bottom-left. Mobile: full-width bottom sheet. */
#ifh-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 99998;
  max-width: 360px;
  width: calc(100vw - 40px);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
  border-radius: 16px;
  box-shadow: 0 -4px 32px rgba(15, 23, 42, .12), 0 8px 24px rgba(15, 23, 42, .08);
  padding: 18px;
  padding-bottom: 22px;
}
.cb-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(241, 245, 249, 0.8);
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cb-x:hover { background: #e2e8f0; }
.cb-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding-right: 32px;
}
.cb-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239, 246, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.cb-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.2px;
  margin: 0;
}
.cb-body {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  margin: 0 0 16px;
}
.cb-body a { color: var(--primary); text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; }
.cb-accept {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}
.cb-accept:hover { background: var(--primary-dark); }
/* Mobile: full-width bottom sheet (mirrors wrapperMobile in CookieConsentBanner.js) */
@media (max-width: 640px) {
  #ifh-cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    border-left: none;
    border-right: none;
    border-bottom: none;
    box-shadow: 0 -4px 16px rgba(15, 23, 42, .10);
  }
}

/* When env banner is also showing, install banner sits below it.
   Both are position:sticky;top:0 — but they stack naturally since they
   are siblings rendered in DOM order (env banner first). */

/* ============================================================================
 * AI Assistant chat widget
 * ==========================================================================*/
.aiw-root { position: fixed; z-index: 2147483000; }
.aiw-fab {
  position: fixed; right: 20px; bottom: 20px;
  height: 58px; min-width: 58px; padding: 0; border-radius: 29px;
  /* Professional translucent "glass" brand chip. */
  background: rgba(44, 90, 160, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff; cursor: pointer; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, padding .18s ease;
}
.aiw-fab:hover { transform: translateY(-2px); background: var(--primary); box-shadow: 0 10px 28px rgba(0,0,0,0.28); }
.aiw-fab-icon { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; font-size: 24px; line-height: 1; }
.aiw-fab-icon svg { width: 100%; height: 100%; display: block; }
/* "AI Chat" label is collapsed to a circle by default; pointer devices reveal
   it on hover, expanding the chip leftward (right edge is anchored). */
.aiw-fab-text {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: max-width .2s ease, opacity .18s ease, margin .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .aiw-fab:not(.open):hover { padding: 0 20px; }
  .aiw-fab:not(.open):hover .aiw-fab-text { max-width: 120px; opacity: 1; margin-right: 9px; }
}

.aiw-panel {
  position: fixed; right: 20px; bottom: 90px;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 16px; overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}
.aiw-panel.aiw-show { display: flex; animation: aiw-pop .16s ease; }
@keyframes aiw-pop { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.aiw-header {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary); color: #fff; padding: 12px 16px;
}
.aiw-header-left { display: flex; align-items: center; gap: 10px; }
.aiw-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.22); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.aiw-avatar svg { width: 24px; height: 24px; display: block; }
.aiw-title { font-weight: 700; font-size: 15px; }
.aiw-sub { font-size: 11px; opacity: .85; }
.aiw-header-actions { display: flex; align-items: center; gap: 6px; }
.aiw-reset { background: none; border: none; color: #fff; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .85; }
.aiw-reset:hover { opacity: 1; }
.aiw-close { background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }

.aiw-messages { flex: 1; overflow-y: auto; background: #f5f7fa; padding: 12px; }
.aiw-bubble {
  max-width: 88%; padding: 9px 12px; border-radius: 14px; margin-bottom: 8px;
  font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word;
}
.aiw-bot { background: #fff; color: #1f2933; border-top-left-radius: 4px; align-self: flex-start; margin-right: auto; white-space: normal; }
.aiw-user { background: var(--primary); color: #fff; border-top-right-radius: 4px; margin-left: auto; }
/* Markdown inside assistant replies */
.aiw-bot strong { font-weight: 700; }
.aiw-md-p { margin: 0 0 4px; }
.aiw-md-p:last-child { margin-bottom: 0; }
.aiw-md-ul { margin: 4px 0; padding-left: 20px; }
.aiw-md-ul li { margin: 2px 0; }
.aiw-md-step { display: flex; gap: 6px; margin: 3px 0; }
.aiw-md-num { font-weight: 700; flex: none; }
.aiw-md-sp { height: 7px; }

.aiw-lots { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; }
.aiw-lot {
  display: flex; align-items: center; gap: 10px; padding: 8px;
  background: #fff; border: 1px solid #e4e7eb; border-radius: 12px; text-decoration: none;
}
.aiw-lot:hover { border-color: var(--primary); }
.aiw-lot-img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #eef2f7; flex: none; }
.aiw-lot-img-ph { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.aiw-lot-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.aiw-lot-title { font-size: 13px; font-weight: 700; color: #1f2933; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiw-lot-meta { font-size: 11px; color: #7b8794; margin-top: 1px; }
.aiw-lot-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.aiw-lot-price { font-size: 13px; font-weight: 700; color: var(--primary); }
.aiw-lot-status { font-size: 10px; color: #52606d; text-transform: uppercase; font-weight: 600; }
.aiw-lot-chev { color: #9aa5b1; font-size: 20px; flex: none; }

.aiw-suggestions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.aiw-chip {
  background: #fff; border: 1px solid #d0e0ff; color: var(--primary);
  border-radius: 16px; padding: 8px 12px; font-size: 13px; cursor: pointer; text-align: left;
}
.aiw-chip:hover { background: #f0f6ff; }

.aiw-typing { display: inline-flex; gap: 4px; align-items: center; }
.aiw-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9c4d0; animation: aiw-blink 1.2s infinite both; }
.aiw-dot:nth-child(2) { animation-delay: .2s; }
.aiw-dot:nth-child(3) { animation-delay: .4s; }
@keyframes aiw-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.aiw-composer { display: flex; gap: 8px; padding: 8px; border-top: 1px solid #e4e7eb; background: #fff; align-items: flex-end; }
.aiw-input {
  flex: 1; border: none; background: #f5f7fa; border-radius: 20px;
  padding: 10px 14px; font-size: 14px; color: #1f2933; outline: none;
  /* textarea (multiline via Ctrl/Cmd+Enter): autosized by site.js up to 96px */
  font-family: inherit; line-height: 1.4; resize: none;
  max-height: 96px; overflow-y: auto;
}
.aiw-send {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 16px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.aiw-send:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
  .aiw-panel { right: 12px; left: 12px; width: auto; bottom: 88px; height: 72vh; }
}

/* ==================================================================
   Finance calculator (marketing site)
   Mirrors the in-app calculator's InvestHome-blue chrome.
   ================================================================== */
.fincalc{background:#fff;border:1px solid #dfe5ec;border-radius:14px;overflow:hidden;max-width:980px;margin:0 auto;box-shadow:0 2px 14px rgba(44,90,160,.10)}
.fincalc-head{display:flex;align-items:center;gap:14px;background:#2c5aa0;padding:14px 16px;cursor:pointer;list-style:none}
/* Suppress the native disclosure triangle — the chevron on the right is ours. */
.fincalc-head::-webkit-details-marker{display:none}
.fincalc-head::marker{content:''}
.fincalc-head:hover{background:#27508f}
.fincalc-headtext{flex:1;min-width:0}
.fincalc-chev{flex:none;width:10px;height:10px;border-right:2px solid rgba(255,255,255,.8);border-bottom:2px solid rgba(255,255,255,.8);transform:rotate(45deg);margin-top:-4px;transition:transform .15s ease}
.fincalc[open] .fincalc-chev{transform:rotate(-135deg);margin-top:4px}
.fincalc-plate{display:block}
.fincalc-kicker{display:block;color:#d6e5f9;font-size:11px;font-weight:700;letter-spacing:.9px;text-transform:uppercase}
.fincalc-title{display:block;margin:2px 0 0;color:#fff;font-size:17px;font-weight:700}
.fincalc-plate{background:#fff;border-radius:8px;padding:6px 8px;line-height:0}
.fincalc-plate img{display:block;width:76px;height:auto}

.fincalc-hero{background:#1a3762;padding:16px}
.fincalc-hero-label{color:rgba(255,255,255,.6);font-size:12px;font-weight:600}
.fincalc-hero-figure{display:flex;align-items:baseline;gap:6px;margin-top:2px}
.fincalc-hero-figure strong{color:#fff;font-size:38px;font-weight:800;letter-spacing:-1px;line-height:1.05}
.fincalc-hero-figure span{color:rgba(255,255,255,.7);font-size:15px;font-weight:600}
.fincalc-hero-sub{margin:4px 0 0;color:rgba(255,255,255,.6);font-size:12px;line-height:1.45}
.fincalc-hero-indicative{margin:2px 0 12px;color:rgba(255,255,255,.5);font-size:11px;font-style:italic}

.fincalc-seg{display:flex;background:rgba(255,255,255,.1);border-radius:9px;padding:3px;gap:2px}
.fincalc-seg-light{background:#edeff3}
.fincalc-seg-btn{flex:1;border:0;background:transparent;border-radius:7px;padding:7px 6px;font:inherit;font-size:12.5px;font-weight:600;color:rgba(255,255,255,.72);cursor:pointer}
.fincalc-seg-light .fincalc-seg-btn{color:#6c757d}
.fincalc-seg-btn.is-active{background:#fff;color:#1a3762;font-weight:700}
.fincalc-seg-light .fincalc-seg-btn.is-active{color:#2c5aa0;box-shadow:0 1px 3px rgba(44,90,160,.16)}

.fincalc-body{display:grid;grid-template-columns:1fr;gap:16px;padding:16px}
@media(min-width:860px){.fincalc-body{grid-template-columns:1fr 1fr}}
.fincalc-field{display:block;margin-bottom:14px}
.fincalc-field>span{display:block;font-size:12.5px;font-weight:600;color:#6c757d;margin-bottom:6px}
.fincalc-field em{font-style:normal;font-weight:700;color:#2c5aa0}
.fincalc-money{display:flex;align-items:center;border:1px solid #dfe5ec;border-radius:10px;padding:0 12px;background:#fff}
.fincalc-money i{font-style:normal;color:#9aa3af;margin-right:4px}
.fincalc-money input{flex:1;border:0;outline:0;padding:11px 0;font:inherit;font-size:16px;font-weight:600;color:#212529;background:transparent;min-width:0}
.fincalc-range{width:100%;margin:2px 0 0;accent-color:#2c5aa0}
.fincalc-lvr{margin:6px 0 14px;font-size:12.5px;line-height:1.45;border-radius:9px;padding:9px 11px}
.fincalc-lvr.is-ok{background:#e8f6ee;color:#146138}
.fincalc-lvr.is-warn{background:#fdf3df;color:#7a5500}

.fincalc-costs{background:#f5f8fc;border:1px solid #dfe5ec;border-radius:12px;padding:14px}
.fincalc-costs-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.fincalc-costs-head h4{margin:0;font-size:14px;font-weight:700;color:#212529}
.fincalc-costs-head select{border:1px solid #dfe5ec;border-radius:7px;padding:5px 8px;font:inherit;font-size:12px;font-weight:700;color:#2c5aa0;background:#fff}
.fincalc-check{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#212529;margin-bottom:12px}
.fincalc-rows{margin:0}
.fincalc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 0}
.fincalc-row dt{font-size:12.5px;color:#6c757d;margin:0}
.fincalc-row dd{font-size:13px;font-weight:600;color:#212529;margin:0}
.fincalc-row.is-total{border-top:1px solid #dfe5ec;margin-top:7px;padding-top:10px}
.fincalc-row.is-total dt{font-size:13.5px;font-weight:700;color:#212529}
.fincalc-row.is-total dd{font-size:17px;font-weight:800;color:#2c5aa0}

.fincalc-totals{display:flex;gap:8px;margin-top:14px}
.fincalc-totals>div{flex:1;border:1px solid #dfe5ec;border-radius:10px;padding:10px 8px;text-align:center}
.fincalc-totals span{display:block;font-size:10.5px;color:#6c757d;margin-bottom:3px}
.fincalc-totals strong{font-size:15px;font-weight:700;color:#212529}

.fincalc-foot{padding:0 16px 16px}
.fincalc-cta{width:100%;justify-content:center;font-size:16px;padding:14px 18px}
.fincalc-footnote{margin:9px 0 0;font-size:11px;line-height:1.45;color:#6c757d;text-align:center}
/* Reads as a stated disclosure rather than more small print trailing off the
   footnote above it. Matches the in-app marketNote style. */
.fincalc-market{margin:12px 0 0;padding:9px 12px;border:1px solid #dfe5ec;border-radius:8px;background:#f5f8fc;font-size:11px;line-height:1.45;color:#6c757d;text-align:center}
.fincalc-market:empty{display:none}
.fincalc-assumptions{margin-top:12px}
.fincalc-assumptions summary{font-size:11.5px;color:#6c757d;cursor:pointer;text-align:center;text-decoration:underline}
.fincalc-assumptions>div{margin-top:8px}
.fincalc-assumptions p,.fincalc-assumptions li{font-size:10.5px;line-height:1.5;color:#8a929e;margin:0 0 8px}
.fincalc-assumptions h5{font-size:10.5px;font-weight:700;color:#6c757d;margin:10px 0 4px}
.fincalc-assumptions ul{margin:0 0 8px;padding-left:16px}
.fincalc-legal{font-weight:600;color:#6c757d!important}
.fincalc-noscript{max-width:640px;margin:0 auto;text-align:center;color:#6c757d}

/* lead gate */
.fincalc-gate{position:fixed;inset:0;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:16px;z-index:1000}
.fincalc-gate[hidden]{display:none}
.fincalc-gate-sheet{background:#fff;border-radius:14px;width:100%;max-width:440px;max-height:90vh;overflow:auto}
.fincalc-gate-head{display:flex;align-items:flex-start;gap:10px;background:#2c5aa0;padding:16px 18px}
.fincalc-gate-head>div{flex:1}
.fincalc-gate-head span{color:#d6e5f9;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase}
.fincalc-gate-head h4{margin:4px 0 0;color:#fff;font-size:18px;font-weight:700}
.fincalc-gate-x{border:0;background:transparent;color:rgba(255,255,255,.85);font-size:26px;line-height:1;cursor:pointer;padding:0 4px}
.fincalc-gate-body{padding:18px}
.fincalc-gate-blurb{background:#f5f8fc;border:1px solid #dfe5ec;border-radius:12px;padding:12px;font-size:12.5px;line-height:1.5;color:#6c757d;margin:0 0 16px}
.fincalc-gate-body label{display:block;font-size:12.5px;font-weight:600;color:#6c757d;margin-bottom:12px}
.fincalc-gate-body label input[type=text],.fincalc-gate-body label input[type=email],.fincalc-gate-body label input[type=tel]{display:block;width:100%;margin-top:6px;border:1px solid #dfe5ec;border-radius:10px;padding:11px 12px;font:inherit;font-size:15px;color:#212529;box-sizing:border-box}
.fincalc-gate-check{display:flex!important;align-items:flex-start;gap:9px;font-weight:400!important;color:#212529!important}
.fincalc-gate-check input{margin-top:2px}
.fincalc-gate-err{background:#fdecea;color:#b3261e;border-radius:9px;padding:10px 12px;font-size:12.5px;margin:0 0 12px}
.fincalc-gate-submit{width:100%;justify-content:center}
.fincalc-gate-privacy{margin:12px 0 0;font-size:11px;line-height:1.5;color:#8a929e;text-align:center}

/* ------------------------------------------------------------------
   Hero differentiators — the four things that are actually ours.
   Replaces the generic trust chips and the AI strip that used to
   repeat the first of them immediately below the fold.
   ------------------------------------------------------------------ */
.hero-diff { margin-top: 30px; }
.hero-diff-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: #cfe0f7; margin-bottom: 14px;
  text-shadow: 0 1px 3px rgba(4, 12, 24, .6), 0 1px 12px rgba(4, 12, 24, .85);
}
.hero-diff-row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 12px;
  text-align: left;
}
@media (min-width: 620px) { .hero-diff-row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .hero-diff-row { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.hero-diff-row li {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(9, 20, 38, .42);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px; padding: 12px 13px;
  /* The hero video runs behind this, so the panel needs its own contrast
     floor rather than relying on the scrim alone. */
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hero-diff-icon { font-size: 20px; line-height: 1.1; flex: none; }
.hero-diff-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-diff-text strong { color: #fff; font-size: 14px; font-weight: 700; line-height: 1.3; }
.hero-diff-text span { color: #d9e4f2; font-size: 12.5px; line-height: 1.4; }
.hero-cine .hero-diff-text strong,
.hero-cine .hero-diff-text span { text-shadow: 0 1px 3px rgba(4, 12, 24, .55); }
