:root {
  --manta-orange: #E88A3C;
  --manta-orange-dark: #d5762a;
  --manta-orange-light: #fbe9d6;
  --teal-deep: #0f3b4d;
  --teal-mid: #1a5f7a;
  --teal-soft: #4a90a4;
  --aqua-bg: #e6f2f5;
  --aqua-bg-2: #f2f8fa;
  --white: #ffffff;
  --text: #14384a;
  --text-muted: #4e6d7a;
  --border: #d8e6eb;
  --shadow: 0 6px 24px rgba(15, 59, 77, 0.08);
  --shadow-hover: 0 10px 32px rgba(15, 59, 77, 0.14);
  --radius: 12px;
  --radius-lg: 18px;
}

* { box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-mid); text-decoration: none; }
a:hover { color: var(--manta-orange); }

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--teal-deep);
  margin: 0 0 0.5em;
  line-height: 1.2;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(216, 230, 235, 0.6);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { height: 40px; width: auto; display: block; }
.brand-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--teal-deep);
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--teal-deep);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--manta-orange); }
/* Account link inside the mobile menu; the header shows it on wider screens */
.nav-links .nav-mobile-only { display: none; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-cta .login {
  color: var(--teal-deep);
  font-weight: 500;
  font-size: 0.95rem;
}
.btn {
  display: inline-block;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--manta-orange);
  color: #fff;
  box-shadow: 0 4px 14px rgba(232, 138, 60, 0.35);
}
.btn-primary:hover {
  background: var(--manta-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(232, 138, 60, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--teal-deep);
  border: 2px solid var(--teal-mid);
  padding: 8px 20px;
}
.btn-outline:hover {
  background: var(--teal-mid);
  color: #fff;
}
.btn-lg {
  font-size: 1.1rem;
  padding: 16px 34px;
  border-radius: 12px;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--teal-deep);
  margin: 5px 0;
  transition: 0.3s;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 14px 24px;
    font-size: 1.05rem;
  }
  .nav-links .nav-mobile-only {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
  }
  .nav-cta .login { display: none; }
  .nav-toggle { display: block; }
  .nav-cta { gap: 12px; }
  /* Animate hamburger into an X when open */
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background-color: var(--aqua-bg);
  background-image: url('img/header4.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 24px 160px;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--teal-deep);
  margin-bottom: 0.4em;
  letter-spacing: -0.02em;
}
.hero .subhead {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--teal-mid);
  font-weight: 500;
  margin-bottom: 1.2em;
}
.hero p.lede {
  font-size: 1.05rem;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 2em;
}

/* ============ SECTIONS ============ */
section {
  padding: 80px 0;
  /* keep anchored sections from hiding under the sticky nav */
  scroll-margin-top: 76px;
}
.section-eyebrow {
  text-align: center;
  color: var(--teal-soft);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin-bottom: 12px;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* ============ LIVE QUERIES ============ */
.live-queries {
  background: #fff;
}

.lq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}

/* Left column: eyebrow, heading and the list of example queries */
/* Same as .section-eyebrow ("How It Works"), left-aligned */
.lq-eyebrow {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal-soft);
  margin: 0 0 10px;
}
.lq-heading {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  text-wrap: balance;
  margin-bottom: 24px;
}
.lq-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lq-tab {
  display: flex;
  gap: 12px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-wrap: pretty;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.lq-tab:hover {
  background: var(--aqua-bg-2);
  color: var(--text);
}
.lq-tab:focus-visible {
  outline: 2px solid var(--teal-soft);
  outline-offset: 2px;
}
.lq-tab.is-active {
  background: var(--aqua-bg);
  color: var(--teal-deep);
  box-shadow: 0 1px 2px rgba(15, 59, 77, 0.06), 0 4px 14px rgba(15, 59, 77, 0.08);
}
.lq-index {
  flex: none;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  /* Matches the query's first line (16px × 1.4) so the two share a baseline */
  line-height: 22px;
  color: var(--text-muted);
  opacity: 0.6;
}
.lq-tab.is-active .lq-index {
  color: var(--manta-orange);
  opacity: 1;
}

/* Right column: the active query's top result */
.lq-card {
  /* All panels share one cell: the card takes the tallest panel's height */
  display: grid;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 30px;
}
.lq-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  /* Outgoing panel hides at once; only the incoming one fades in */
  opacity: 0;
  visibility: hidden;
}
.lq-panel.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 150ms ease;
}
.lq-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.lq-card-head span:last-child:not(:first-child) { text-align: right; }
.lq-title {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--teal-mid);
  text-wrap: pretty;
}
.lq-title:hover { color: var(--manta-orange); text-decoration: underline; }
/* Key column sized to the longest key (short words like "TOPIC"), capped so a
   long key wraps instead of squeezing the text */
.lq-details {
  display: grid;
  grid-template-columns: fit-content(96px) minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
/* Rows join the parent grid so every row shares the one key column */
.lq-row {
  display: contents;
}
.lq-row dt {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal-soft);
  padding-top: 3px;
}
.lq-row dd,
.lq-plain {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  /* Keep one very long summary from stretching every panel */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
/* A plain-text summary has no keys: span both columns */
.lq-plain {
  grid-column: 1 / -1;
}
/* Pinned to the bottom-left however short the panel's content is */
.lq-panel .view-full {
  margin-top: auto;
}

@media (max-width: 800px) {
  .lq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 480px) {
  .lq-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lq-tab,
  .lq-panel.is-active { transition: none; }
}

.view-full {
  color: var(--manta-orange);
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}
.view-full:hover { color: var(--manta-orange-dark); }
.view-full::after {
  content: '→';
  transition: transform 0.2s;
}
.view-full:hover::after { transform: translateX(4px); }

/* ============ HOW IT WORKS ============ */
.how-it-works { background: #fff; }


.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.step {
  text-align: center;
  padding: 24px 16px;
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--manta-orange), #f0a35c);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 8px 22px rgba(232, 138, 60, 0.28);
}
.step h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--teal-deep);
}
.step p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.98rem;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
}

/* ============ COMPARISON ============ */
.comparison { background: var(--aqua-bg); }
.comparison-table-wrap {
  max-width: 1040px;
  margin: 0 auto;
  /* generous padding so the raised PaperManta column, its badge and the
     table's soft box-shadow are never clipped */
  padding: 34px 30px 30px;
  overflow-x: auto;
}
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  min-width: 720px;
  table-layout: fixed;
}
/* Even, symmetric columns: feature column wider, 5 method columns equal */
.comparison-table th.feature-col,
.comparison-table td.feature { width: 28%; }
.comparison-table thead th:not(.feature-col) { width: 14.4%; }

.comparison-table th,
.comparison-table td {
  padding: 16px 18px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  vertical-align: middle;
}
/* Feature column reads as left-aligned row headers */
.comparison-table th.feature-col,
.comparison-table td.feature {
  text-align: left;
}
.comparison-table td.feature {
  font-weight: 600;
  color: var(--teal-deep);
}


/* Header row */
.comparison-table thead tr { background: var(--aqua-bg-2); }
.comparison-table th {
  background: var(--aqua-bg-2);
  font-family: 'Poppins', sans-serif;
  color: var(--teal-deep);
  font-weight: 600;
  vertical-align: bottom;
}
.comparison-table th.feature-col {
  border-top-left-radius: var(--radius-lg);
}
.comparison-table thead th:last-child {
  border-top-right-radius: var(--radius-lg);
}
/* round the two bottom corners on the last body row */
.comparison-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}
.comparison-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .method-name {
  display: block;
  font-size: 0.98rem;
  line-height: 1.3;
}
.comparison-table .method-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Zebra + hover */
.comparison-table tbody tr:nth-child(even) td { background: #fafcfd; }
.comparison-table tbody tr:hover td { background: #eef6f9; }

/* Tick / cross marks */
.comparison-table .tick,
.comparison-table .cross {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}
.comparison-table .tick {
  background: #e2f3ea;
  color: #1f9d5b;
}
.comparison-table .cross {
  background: #f3e4e4;
  color: #c0574f;
}

/* PaperManta column header keeps the logo but no special highlight */
.method-head {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.method-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 700px) {
  .comparison-table-wrap { padding: 30px 16px; }
  .comparison-table th, .comparison-table td { padding: 12px 10px; font-size: 0.85rem; }
  .comparison-table .method-name { font-size: 0.85rem; }
  .comparison-table .method-sub { font-size: 0.68rem; }
  .method-icon { width: 22px; height: 22px; }
  .comparison-table .tick,
  .comparison-table .cross { width: 24px; height: 24px; font-size: 0.9rem; }
}


/* ============ PRICING ============ */
.pricing { background: var(--aqua-bg); }

.pricing-table-wrap {
  max-width: 940px;
  margin: 0 auto;
  /* generous padding so neither the raised Pro column/badge nor the
     table's soft box-shadow get clipped on any side */
  padding: 34px 30px 30px;
  overflow-x: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.pricing-table th, .pricing-table td {
  padding: 18px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
  vertical-align: middle;
}
/* Feature column stays left-aligned so labels read as row headers */
.pricing-table th.feature-col,
.pricing-table td.feature {
  text-align: left;
}

/* Plan header cells */
.pricing-table thead tr {
  /* fill the sliver behind Pro's rounded corner so it matches the header row */
  background: var(--aqua-bg-2);
}
.pricing-table th {
  background: var(--aqua-bg-2);
  font-family: 'Poppins', sans-serif;
  color: var(--teal-deep);
  font-weight: 600;
}
.pricing-table th.feature-col {
  background: var(--aqua-bg-2);
  font-size: 1.15rem;
  border-top-left-radius: var(--radius-lg);
}
/* nudge both plan labels down so they sit lower, away from the top edge */
.pricing-table th.plan-col {
  padding-top: 30px;
}


.plan-head {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.plan-name {
  font-size: 1.15rem;
  line-height: 1.2;
}
.plan-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}
/* The logo is orange; recolor it to teal for the Basic plan */
.plan-icon--basic {
  filter: grayscale(1) brightness(0.55) sepia(1) hue-rotate(150deg) saturate(3.5);
}

/* Row rhythm: subtle zebra + hover so a whole row lights up when comparing */
.pricing-table tbody tr:nth-child(even) td { background: #fafcfd; }
.pricing-table tbody tr:not(.cta-row):hover td { background: #eef6f9; }

.pricing-table td.feature {
  font-weight: 600;
  color: var(--teal-deep);
}
.pricing-table td.price-cell {
  font-family: 'Poppins', sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--teal-deep);
}

/* Fine print under a price ("plus local sales tax"). */
.pricing-table .price-note {
  display: block;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--text-muted);
}

/* Pro price: the first-month offer leads, the regular price follows. */
.pricing-table .price-offer {
  display: block;
  margin-bottom: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--manta-orange-dark);
}
.pricing-table .price-unit {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-table .price-then {
  display: block;
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--teal-deep);
}

/* ---- Pro column presented as a raised "card-column" ---- */
.pricing-table .pro-col {
  background: var(--manta-orange-light) !important;
  border-left: 3px solid var(--manta-orange);
  border-right: 3px solid var(--manta-orange);
  position: relative;
}
/* lift the whole column above the table.
   The cell itself stays the plain row color; the raised orange card is
   painted as a ::before overlay so the area OUTSIDE its rounded top
   corners always shows the row background (no white sliver). */
.pricing-table th.pro-col {
  position: relative;
  color: var(--manta-orange-dark);
  /* Hard-split fill: the exposed sliver at the top-LEFT corner shows the
     header-row color (aqua-bg-2), while the top-RIGHT corner (table's outer
     edge) shows the page background (aqua-bg). The 50% seam is hidden under
     the orange card. */
  background: linear-gradient(to right,
    var(--aqua-bg-2) 50%,
    var(--aqua-bg) 50%) !important;
  border-left: none;
  border-right: none;
}

.pricing-table th.pro-col::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #fff3e8;
  border: 3px solid var(--manta-orange);
  border-bottom: none;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  box-shadow: 0 -6px 22px rgba(232, 138, 60, 0.18);
  z-index: 0;
}
/* keep header content above the overlay */
.pricing-table th.pro-col .plan-head { position: relative; z-index: 1; }
.pricing-table th.pro-col .plan-name { color: var(--manta-orange-dark); }


/* close off the bottom of the card-column on the last row */
.pricing-table tbody tr:last-child .pro-col {
  border-bottom: 3px solid var(--manta-orange);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}
/* keep the Pro tint stable on hover instead of turning teal */
.pricing-table tbody tr:not(.cta-row):hover td.pro-col { background: #fbe0c8 !important; }

/* "Full Capabilities" corner badge */

.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  background: var(--manta-orange);
  color: #fff;

  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(232, 138, 60, 0.4);
}

.pricing-table tr:last-child td { border-bottom-width: 0; }
.pricing-table .cta-row td { padding: 24px; }
.pricing-table .cta-row .btn { width: 100%; text-align: center; }

@media (max-width: 700px) {
  .pricing-table-wrap { padding-top: 30px; }
  .pricing-table th, .pricing-table td { padding: 12px 10px; font-size: 0.88rem; }
  .pricing-table td.price-cell { font-size: 1.2rem; }
  .plan-icon { width: 26px; height: 26px; }
  .plan-name { font-size: 0.98rem; }
  .plan-head { gap: 7px; }
  .pricing-table .pro-col,
  .pricing-table th.pro-col { border-left-width: 2px; border-right-width: 2px; }
}


/* ============ FAQ ============ */
.faq { background: #fff; }
.faq-list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: var(--aqua-bg-2);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.faq-item[open] { box-shadow: var(--shadow); background: #fff; }
.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: var(--teal-deep);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--manta-orange);
  font-size: 1.6rem;
  font-weight: 400;
  transition: transform 0.25s;
  line-height: 1;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-answer {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============ FOOTER ============ */
footer {
  background: var(--teal-deep);
  color: #cfe0e6;
  padding: 44px 24px 32px;
  text-align: center;
}
.footer-tagline {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}
.footer-links a {
  color: #a8c5cf;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--manta-orange); }
.footer-copy {
  font-size: 0.82rem;
  color: #7b9ba6;
}

/* ============ LOGIN PAGE ============ */
/* Palette (matches the hero header):
   Accent Orange  #F49257
   Mid Teal       #439EB2  (gradient outer edge)
   Light Cyan     #8BCBD7  (gradient bright center)
   Dark Slate     #1F4A54  (typography)
   Ice-Blue       #ECF5F6  (page background) */
.login-page {
  min-height: 100vh;
  background: #ECF5F6;
}
.login-split {
  display: flex;
  min-height: 100vh;
}

/* --- Left: branded welcome panel --- */
.login-hero {
  position: relative;
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  padding: 64px 56px;
  /* Soft, light cyan center fading to a gentle teal tint — mirrors the hero
     glow while keeping strong contrast for the dark slate text */
  background: radial-gradient(circle at 50% 42%, #DCEFF3 0%, #A9D6DF 100%);

  overflow: hidden;
}
.login-hero-overlay {
  display: none;
}
.login-hero-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  color: #1F4A54;
}
.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  text-decoration: none;
}
.login-brand:hover span { color: var(--manta-orange); }
.login-brand img { height: 44px; width: auto; display: block; }
.login-brand span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: #1F4A54;
  letter-spacing: -0.01em;
}
.login-hero-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #1F4A54;
  line-height: 1.15;
  margin-bottom: 0.5em;
}
.login-hero-lede {
  font-size: 1.08rem;
  color: rgba(31, 74, 84, 0.85);
  margin: 0 0 2em;
}
.login-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.login-hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: #1F4A54;
}
.login-check {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #F49257;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}


/* --- Right: sign-in card panel --- */
.login-panel {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  /* Own light (near-white) background so it stays bright regardless of the
     Ice-Blue page background */
  background: #F7FBFC;
}

.login-card-wrap {
  width: 100%;
  max-width: 400px;
}
.login-card-head {
  text-align: center;
  margin-bottom: 28px;
}
.login-card-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  margin-bottom: 14px;
}
.login-card-head h1 {
  font-size: 1.9rem;
  margin-bottom: 6px;
  color: #1F4A54;
}

.login-card-head p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0;
}
.login-error {
  margin-top: 18px;
  font-size: 0.9rem;
  color: #9b2c2c;
  background: #fdeaea;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius);
  padding: 12px 14px;
}
.login-page .hidden { display: none !important; }
.login-note {
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 20px 0 0;
}
.login-remember {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.login-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #1F4A54;
  cursor: pointer;
}
/* Shown between a successful sign-in and the redirect */
.login-spinner {
  width: 32px;
  height: 32px;
  margin: 24px auto 0;
  border: 3px solid var(--border);
  border-top-color: #F49257;
  border-radius: 50%;
  animation: login-spin 0.8s linear infinite;
}
@keyframes login-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .login-spinner { animation-duration: 2.4s; }
}
.login-terms {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 32px;
}

/* --- FirebaseUI widget overrides to match the brand --- */
.login-firebaseui .firebaseui-container {
  background: transparent;
  box-shadow: none;
  max-width: none;
  font-family: 'Inter', sans-serif;
}
.login-firebaseui .firebaseui-card-content,
.login-firebaseui .firebaseui-card-footer {
  padding: 0;
}
.login-firebaseui .firebaseui-idp-list,
.login-firebaseui .firebaseui-tenant-list {
  margin: 0;
}
.login-firebaseui .firebaseui-list-item {
  margin-bottom: 12px;
}
.login-firebaseui .firebaseui-idp-button,
.login-firebaseui .firebaseui-tenant-button {
  max-width: none;
  width: 100%;
  /* One look for every provider: FirebaseUI paints each its own colour inline
     (white Google, dark GitHub, red email), so the fill needs !important */
  background-color: #fff !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(15, 59, 77, 0.08) !important;
  border: 1px solid #c3d6dd !important;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
/* FirebaseUI's GitHub and email icons are white; darken them for the white fill */
.login-firebaseui .firebaseui-idp-github .firebaseui-idp-icon,
.login-firebaseui .firebaseui-idp-password .firebaseui-idp-icon {
  filter: invert(1) brightness(0.25);
}
.login-firebaseui .firebaseui-idp-button:hover,
.login-firebaseui .firebaseui-tenant-button:hover {
  border-color: #F49257 !important;
  box-shadow: var(--shadow) !important;
  transform: translateY(-1px);
}

.login-firebaseui .firebaseui-idp-button .firebaseui-idp-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--text);
}
/* Primary submit buttons (e.g. email "Sign in") in accent orange */
.login-firebaseui .firebaseui-button.mdl-button--colored,
.login-firebaseui .firebaseui-id-submit {
  background: #F49257 !important;
  border-radius: 10px !important;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  text-transform: none;
  box-shadow: 0 4px 14px rgba(244, 146, 87, 0.35) !important;
}
.login-firebaseui .firebaseui-button.mdl-button--colored:hover,
.login-firebaseui .firebaseui-id-submit:hover {
  background: #e07d42 !important;
}
.login-firebaseui .firebaseui-textfield.mdl-textfield .firebaseui-input {
  color: var(--text);
}
.login-firebaseui .firebaseui-label:after,
.login-firebaseui .mdl-textfield--floating-label.is-focused .mdl-textfield__label {
  color: #F49257;
}


/* --- Responsive: drop the hero, keep the sign-in card as on desktop --- */
@media (max-width: 860px) {
  .login-hero { display: none; }
  .login-panel { flex: 1 1 100%; }
}

