/* 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;
}

/* === 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; }
.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; }

/* === 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; }

/* === 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); }

.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;
  gap: 10px;
}
.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: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

/* === 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 {
  background: linear-gradient(135deg, var(--dark-bg), #0a1e35);
  padding: 40px 0;
}
.ai-strip-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.ai-strip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(44, 90, 160, .2);
  color: #7db3ff;
  border: 1px solid rgba(44, 90, 160, .4);
  border-radius: 999px;
  padding: 8px 20px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ai-strip-text {
  color: #c8d8ec;
  max-width: 720px;
  font-size: 1.05rem;
  margin: 0;
  line-height: 1.7;
}
.ai-strip-text strong { color: #fff; }
.ai-strip-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.ai-strip-tags span {
  background: rgba(255, 255, 255, .08);
  color: #e8eef7;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
}

/* === 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; }
}
