/* ------------------------------------------------------------------------
   GLOBAL VARIABLES + BASE
------------------------------------------------------------------------ */
:root {
  --teal: #4ca1ae;
  --gold: #f2b500;
  --cream: #fffdf5;
  --ink: #0f172a;
  --navy: #0e2436;
  --navy-2: #122c43;
  --radius: 16px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  --bg-dark: #0a1a29;
  --chrono-purple: #8a2be2;
  --chrono-gold: #f59e0b;
}

* {
  box-sizing: border-box;
}

/* MOBILE OPTIMIZATION: Prevent iOS auto-zoom on form inputs */
input, select, textarea {
  font-size: 16px !important;
}

html,
body {
  min-height: 100dvh;
}

/* ── Epic 35: Global Scroll Override ─────────────────────────────────────── */
body, html, .main-container {
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100vh;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica,
    Arial;
  line-height: 1.45;
  color: var(--ink);
  background: var(--cream);
  overscroll-behavior-y: auto;
  display: flex;
  flex-direction: column;
}

.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* ------------------------------------------------------------------------
   HEADER
------------------------------------------------------------------------ */
.topbar {
  background: rgba(10, 26, 41, 0.92);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(76, 161, 174, 0.22);
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
}

.topbar .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

/* Brand logo Target the new image tag specifically */
.brand-logo-img {
  height: 40px; /* This controls the size of the logo */
  width: auto; /* Keeps the proportions correct */
  display: block;
  object-fit: contain;
}

/* Ensure the brand container aligns everything vertically */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  color: #fff;
}

nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
  padding: 0;
  margin: 0;
}

nav a {
  text-decoration: none;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.80);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Buttons */
.btn-link,
.btn-accent {
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  min-height: 44px;
}

.btn-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.80);
}

.btn-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-accent {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 10px 16px;
  font-weight: 800;
}

.btn-accent:hover {
  filter: brightness(0.95);
}

/* ------------------------------------------------------------------------
   HERO SECTION
------------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100dvh;
  color: #fff;

  background: radial-gradient(
      1200px 600px at 80% 10%,
      rgba(242, 181, 0, 0.18),
      transparent 55%
    ),
    radial-gradient(
      900px 500px at 10% 90%,
      rgba(76, 161, 174, 0.22),
      transparent 60%
    ),
    url("https://images.unsplash.com/photo-1494526585095-c41746248156?q=80&w=2000&auto=format&fit=crop")
      center/cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 13, 22, 0.75) 0%,
    rgba(6, 13, 22, 0.50) 50%,
    rgba(6, 13, 22, 0.82) 100%
  );
  z-index: 0;
}

.hero .content {
  flex: 1;
  z-index: 1;
  padding: 100px 0 52px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Trust badge eyebrow */
.hero-eyebrow {
  margin-bottom: 20px;
}

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(76, 161, 174, 0.20);
  border: 1px solid rgba(76, 161, 174, 0.45);
  color: rgba(200, 240, 245, 0.95);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  backdrop-filter: blur(6px);
}

.hero-trust-badge i {
  font-size: 15px;
  color: var(--teal);
}

.headline {
  font-size: 62px;
  font-weight: 900;
  letter-spacing: -1px;
  max-width: 820px;
  line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Gradient accent on second line of headline */
.headline-accent {
  background: linear-gradient(130deg, #4ca1ae 0%, #f2b500 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subhead {
  margin-top: 18px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.65;
  opacity: 0.88;
}

/* Primary + secondary CTA buttons in hero */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  margin-bottom: 8px;
}

.hero-btn-primary,
.hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  min-height: 52px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.hero-btn-primary {
  background: linear-gradient(135deg, #4ca1ae 0%, #3b8d99 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(76, 161, 174, 0.45);
}

.hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(76, 161, 174, 0.60);
  filter: brightness(1.08);
}

.hero-btn-primary:focus-visible {
  outline: 3px solid #4ca1ae;
  outline-offset: 3px;
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.20);
  border-color: rgba(255, 255, 255, 0.70);
  transform: translateY(-2px);
}

.hero-btn-secondary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.80);
  outline-offset: 3px;
}

/* Stats bar anchored at hero bottom */
.hero-stats {
  position: relative;
  z-index: 1;
  background: rgba(6, 13, 22, 0.55);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hero-stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 18px 0;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-num {
  font-size: 22px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}

.stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: rgba(200, 225, 230, 0.72);
  margin-top: 3px;
  white-space: nowrap;
}

.hero-stat-sep {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

/* ------------------------------------------------------------------------
   FEATURES SECTION
------------------------------------------------------------------------ */
/* ------------------------------------------------------------------------
   REELS SHOWCASE  (#reels-showcase)
------------------------------------------------------------------------ */
#reels-showcase {
  background: var(--bg-dark);
  padding: 72px 0 80px;
  overflow-x: hidden;
}

.reels-eyebrow {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 12px;
}

.reels-heading {
  text-align: center;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.18;
}

.reels-sub {
  text-align: center;
  font-size: 16px;
  color: #94a3b8;
  margin: 0 auto 52px;
  max-width: 520px;
}

/* Horizontal flex-scroller — hides scrollbar cross-browser */
.reels-scroller {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge */
  padding-bottom: 8px;
}

.reels-scroller::-webkit-scrollbar {
  display: none;                /* Chrome/Safari */
}

/* Phone mockup card */
.reel-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.reel-phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 19;
  background: #0d1b2e;
  border-radius: 24px;
  border: 1px solid rgba(76, 161, 174, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 24px 64px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.reel-phone video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 24px;
}

.reel-label {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reel-label i {
  color: var(--teal);
  font-size: 16px;
}

/* Responsive: stack to single-column on small screens */
@media (max-width: 768px) {
  .reels-scroller {
    grid-template-columns: repeat(3, 260px);
    gap: 20px;
  }

  .reels-heading {
    font-size: 28px;
  }
}

/* ------------------------------------------------------------------------
   FEATURES
------------------------------------------------------------------------ */
.features-section {
  padding: 64px 0;
  background: var(--cream);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(76, 161, 174, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.feature-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(76, 161, 174, 0.15), rgba(76, 161, 174, 0.08));
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.feature-icon-wrap i {
  font-size: 26px;
  color: var(--teal);
}

.feature-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #4b5563;
  margin: 0;
}

/* ------------------------------------------------------------------------
   SEARCH BAR
------------------------------------------------------------------------ */
.searchbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.searchbar .field,
.searchbar .btn {
  height: 44px;
  border-radius: 10px;
  border: none;
  outline: none;
}

.searchbar .field {
  min-width: 220px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
}

.searchbar select.field {
  min-width: 180px;
}

.searchbar .btn {
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: var(--teal);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.searchbar .ghost {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}

/* ------------------------------------------------------------------------
   QUICK ACTIONS
------------------------------------------------------------------------ */
.quick {
  background: rgba(76, 161, 174, 0.12);
  color: var(--ink);
}

.quick .bar {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  align-items: center;
}

.quick .item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.quick .icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
}

/* ------------------------------------------------------------------------
   MAP SECTION
------------------------------------------------------------------------ */
#homeMapDiv {
  width: 100%;
  height: 400px; /* Critical: Prevent collapse */
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255,255,255,0.1);
}

/* Hide ArcGIS Auto-Login Popups */
.esri-identity-modal,
.esri-component-modal,
.esri-id-box,
iframe[src*="arcgis.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.section-dark {
  background: var(--navy);
  color: #e2ebf6;
  padding: 28px 0 50px;
}

.section-dark h3 {
  margin: 24px 0 8px;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.section-dark .sub {
  margin-bottom: 18px;
  font-size: 13px;
  color: #bcd0e4;
}

.agents {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.agent {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50%;
  border: 3px solid var(--teal);
}

.agent h4 {
  margin: 0;
  color: #fff;
}

.agent small {
  color: #c1d1e3;
}

/* ------------------------------------------------------------------------
   HIGHLIGHT (IMPACT ESTIMATOR)
------------------------------------------------------------------------ */
.section-highlight {
  background: linear-gradient(180deg, #133a46 0%, #0e2436 100%);
  color: #e6f0fb;
  padding: 48px 0;
}

.section-highlight h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.section-highlight .lead {
  margin-bottom: 22px;
  color: #cfe0f5;
}

.estimator-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  margin: 18px 0 6px;
}

/* Calculator panel */
.panel {
  max-width: 560px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.18);
}

.panel-head {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), #2f7f8c);
}

.panel-body {
  padding: 18px 16px;
}

.fld-label {
  font-weight: 800;
  color: var(--ink);
}

.fld-hint {
  font-size: 12px;
  margin-bottom: 8px;
  color: #6b7280;
}

.mini-input.wide {
  width: 100%;
  height: 44px;
  margin-bottom: 16px;
  padding: 0 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  color: var(--ink);
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #eef2f7;
}

.calc-label {
  font-weight: 700;
  color: var(--ink);
}

.calc-value {
  font-weight: 900;
  color: #0b1220;
}

.fineprint {
  margin-top: 10px;
  font-size: 12px;
  color: #6b7280;
}

.panel-explain {
  color: #e6f0fb;
}

.bullets {
  margin: 8px 0 0 18px;
}

/* ------------------------------------------------------------------------
   MEMBERSHIP PLANS
------------------------------------------------------------------------ */
.pricing {
  padding: 48px 0 64px;
  color: #e6f0fb;
  background: var(--navy);
}

.pricing h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.pricing .sub {
  margin-bottom: 28px;
  color: #cfe0f5;
}

.plans {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, 1fr);
}

.plan {
  padding: 22px;
  border-radius: 16px;
  background: #0f2a42;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan.pop {
  background: linear-gradient(180deg, #13345a, #0f2a42);
}

.plan .name {
  font-size: 18px;
  font-weight: 800;
}

.plan .price {
  margin: 6px 0;
  font-size: 34px;
  font-weight: 900;
}

.plan .desc {
  margin-bottom: 12px;
  color: #bcd0e4;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 56px;
}

.plan li {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  align-items: flex-start;
}

.plan li i {
  font-size: 18px;
  color: var(--gold);
}

.plan .btn {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  background: #1f7ae0;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
}

.plan.pop .btn {
  background: var(--teal);
}

.plan .btn:hover {
  filter: brightness(0.95);
}

/* ------------------------------------------------------------------------
   LOGIN MODAL
------------------------------------------------------------------------ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 15, 30, 0.78);
  backdrop-filter: blur(14px);
  display: none;
  place-items: center;
  z-index: 1000;
}

.overlay.show {
  display: grid;
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal {
  width: min(920px, 94%);
  background: rgba(8, 22, 40, 0.82);
  backdrop-filter: blur(28px) saturate(160%);
  border: 1px solid rgba(76, 161, 174, 0.28);
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform: translateY(8px) scale(0.98);
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.60),
              inset 0 1px 0 rgba(76, 161, 174, 0.15),
              0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: pop 0.28s ease-out forwards;
}

@keyframes pop {
  to {
    transform: translateY(0) scale(1);
  }
}

.modal-hero {
  position: relative;
  min-height: 100%;
  color: #fff;

  background: radial-gradient(
      800px 400px at 20% 10%,
      rgba(76, 161, 174, 0.2),
      transparent 55%
    ),
    radial-gradient(
      700px 360px at 90% 90%,
      rgba(242, 181, 0, 0.25),
      transparent 60%
    ),
    url("https://images.unsplash.com/photo-1501183638710-841dd1904471?q=80&w=1400&auto=format&fit=crop")
      center/cover no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.badgebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
}

.badge {
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(2px);
}

.modal-hero .caption {
  padding: 14px;
  color: #f7fafc;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.modal-topbar {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
}

.modal-close {
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.10);
  color: #e2e8f0;
  cursor: pointer;
  font-weight: 900;
  min-width: 44px;
  min-height: 44px;
  transition: background 0.2s, transform 0.15s;
}

.modal-close:hover {
  background: rgba(76, 161, 174, 0.28);
  transform: scale(1.08);
}

.modal-body {
  padding: 24px 22px;
  color: #e2f4f6;
}

.welcome {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  color: #e2f4f6;
}

.welcome-sub {
  margin: 6px 0 16px;
  color: rgba(164, 210, 218, 0.80);
}

.sso {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.sso button {
  flex: 1;
  height: 44px;
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(76, 161, 174, 0.32);
  background: rgba(255, 255, 255, 0.07);
  color: #c8e6ea;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.sso button:hover {
  background: rgba(76, 161, 174, 0.18);
  border-color: rgba(76, 161, 174, 0.55);
  transform: translateY(-2px);
}

.sso i {
  margin-right: 8px;
  font-size: 18px;
}

.or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  color: rgba(164, 210, 218, 0.55);
}

.or::before,
.or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(76, 161, 174, 0.22);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-input {
  height: 44px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(76, 161, 174, 0.32);
  background: rgba(255, 255, 255, 0.07);
  color: #e2f4f6;
  font-size: 16px;
  transition: border-color 0.2s, background 0.2s;
}

.auth-input::placeholder {
  color: rgba(164, 210, 218, 0.65);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(76, 161, 174, 0.72);
  background: rgba(76, 161, 174, 0.10);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.auth-login,
.auth-sign {
  padding: 10px 16px;
  border-radius: 12px;
  border: none;
  font-weight: 800;
  cursor: pointer;
  min-height: 44px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.auth-login {
  background: linear-gradient(135deg, #4ca1ae 0%, #3b8d99 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(76, 161, 174, 0.40);
}

.auth-login:hover {
  background: linear-gradient(135deg, #5dbecb 0%, #4ca1ae 100%);
  box-shadow: 0 6px 22px rgba(76, 161, 174, 0.58);
  transform: translateY(-2px);
}

.auth-sign {
  background: linear-gradient(135deg, #f2b500 0%, #dea100 100%);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(242, 181, 0, 0.30);
}

.auth-sign:hover {
  background: linear-gradient(135deg, #ffc619 0%, #f2b500 100%);
  box-shadow: 0 6px 22px rgba(242, 181, 0, 0.48);
  transform: translateY(-2px);
}

.mini-benefits {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.mini-benefits .chip {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px;
  border: 1px solid rgba(76, 161, 174, 0.24);
  background: rgba(76, 161, 174, 0.08);
  border-radius: 12px;
  color: rgba(164, 210, 218, 0.85);
}

.chip i {
  margin-top: 2px;
  font-size: 18px;
  color: var(--teal);
}

.modal-body .btn-link {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(164, 210, 218, 0.70);
}

.modal-body .btn-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(164, 210, 218, 1);
}

/* ------------------------------------------------------------------------
   FOOTER
------------------------------------------------------------------------ */
footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 24px 0 calc(34px + env(safe-area-inset-bottom, 0px));
  background: #0a1a29;
  color: #9fb3c7;
}

.foot-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.foot-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.foot-links a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.18s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-links a:hover {
  color: #fff;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  font-size: 18px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.65);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s;
}

.social a:hover {
  color: #fff;
}

/* ── browse-footer (index.html footer) ────────────────────────────────── */
.browse-footer {
  background: #0a1a29;
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.82rem;
  border-top: 1px solid rgba(76, 161, 174, 0.15);
  padding: 0 0 env(safe-area-inset-bottom, 0px);
  margin-top: auto;
  flex-shrink: 0;
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
}

.foot-brand {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.foot-social {
  display: flex;
  gap: 12px;
  font-size: 1.1rem;
}

.foot-social a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.18s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.foot-social a:hover {
  color: #fff;
}

/* ------------------------------------------------------------------------
   SITE FOOTER (about.html & shared pages)
------------------------------------------------------------------------ */
.site-footer {
  padding: 2rem 0;
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-footer .footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer .footer-links a {
  text-decoration: none;
  color: #d1d5db;
  margin: 0 15px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  will-change: transform;
}

.site-footer .footer-links a .icon {
  display: inline-block;
}

.site-footer .footer-links a:hover {
  color: var(--chrono-purple);
  transform: translateY(-3px) scale(1.1);
}

.site-footer .footer-links a:hover .icon {
  animation: icon-wiggle 0.4s ease;
}

@keyframes icon-wiggle {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-15deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-10deg); }
  100% { transform: rotate(0deg); }
}

/* ------------------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .plans {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  nav ul {
    display: none;
  }

  .headline {
    font-size: 36px;
  }

  .hero .content {
    padding: 80px 0 40px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-btn-primary,
  .hero-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-stat {
    padding: 0 18px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .quick .bar {
    flex-wrap: wrap;
  }

  .agents {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal {
    grid-template-columns: 1fr;
  }

  .modal-hero {
    display: none;
  }
}

/* ── HELP / USER GUIDE STYLES (help.html) ────────────────────────────────── */

.guide-screenshot {
  width: 100%;
  max-width: 600px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 2px solid var(--chrono-purple, #8a2be2);
  display: block;
  margin: 16px 0;
}

.guide-section {
  margin-bottom: 48px;
}

.guide-section h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-section p,
.guide-section li {
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

.guide-section ul {
  padding-left: 24px;
}

.faq-item {
  margin-bottom: 28px;
}

.faq-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: left;
}

.faq-item p {
  font-size: 18px;
  line-height: 1.6;
  text-align: left;
}

/* ── FAQ ACCORDION STYLES (help.html) ───────────────────────────────────── */

.faq-accordion {
  border: 1px solid rgba(138, 43, 226, 0.25);
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-accordion summary {
  font-size: 18px;
  font-weight: 600;
  padding: 16px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::before {
  content: '▶';
  font-size: 12px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-accordion[open] summary::before {
  transform: rotate(90deg);
}

.faq-accordion summary:hover {
  background: rgba(138, 43, 226, 0.08);
}

.faq-accordion-body {
  padding: 0 20px 16px 20px;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

.faq-accordion-body p {
  margin: 0 0 12px 0;
  font-size: 18px;
  line-height: 1.7;
  text-align: left;
}

/* ── HOME PAGE MEMBERSHIP STATUS (TID-031) ─────────────────────────────── */

/* Hero badge showing the user's current membership tier */
#membershipStatusBadge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

/* Premium quick-action items locked for free-tier users */
.quick-item--locked {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  user-select: none;
}

/* Plan button for the user's current active plan */
.plan-btn--current {
  background: #2d9c6e !important;
  cursor: not-allowed !important;
}

/* ── SCREENSHOT MODE ─────────────────────────────────────────────────────────
   DEV-ONLY: Toggle via console — document.body.classList.toggle('screenshot-mode')
   Hides debug panels, dev borders, and focus rings for clean marketing shots.
   IMPORTANT: Always remove this class after taking screenshots to restore
   normal accessibility — focus indicators are required for keyboard users.
   ────────────────────────────────────────────────────────────────────────── */
.screenshot-mode *:focus { outline: none !important; box-shadow: none !important; }
.screenshot-mode [data-debug],
.screenshot-mode .debug-panel { display: none !important; }

/* ── reCAPTCHA badge — hidden per Google ToS (branding in privacy.html + terms.html) ── */
/* TID-RECAPTCHA-HIDE-001 */
.grecaptcha-badge {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
