: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); }

.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-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;
}

.live-queries .section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.carousel-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 36px;
}
.swiper {
  overflow: hidden;
  /* Clip sits at the MIDPOINT of the 24px inter-card gap (12px from each card).
     Combined with the card's small shadow this hides the previous card's
     shadow while showing the current card's shadow fully. The larger
     .carousel-wrap padding (36px) compensates so cards keep their position. */
  padding: 20px 12px 40px;
}




/* Make every slide stretch to the height of the tallest card */
.live-swiper .swiper-wrapper {
  align-items: stretch;
}
.live-swiper .swiper-slide {
  height: auto;
  display: flex;
}
/* Right fade overlay */
.carousel-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 40px;
  width: 120px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), #fff 85%);

  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s;
}
/* Hide the right fade once there are no more slides to reveal */
.carousel-wrap.at-end::after {
  opacity: 0;
}

/* Allow selecting card text even though slides are draggable... */
.query-card,
.query-card * {
  -webkit-user-select: text;
  user-select: text;
}
/* ...but never let text get selected while a drag is in progress */
.live-swiper.is-dragging,
.live-swiper.is-dragging * {
  -webkit-user-select: none;
  user-select: none;
}



.query-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px 24px;
  /* Shadow kept compact so it stays within its 12px half of the inter-card
     gap — the clip line at the gap midpoint then shows the current card's
     shadow fully while hiding the previous card's shadow. */
  box-shadow: 0 5px 10px rgba(15, 59, 77, 0.12);

  border: 1px solid var(--border);

  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.query-topic {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--teal-deep);
  line-height: 1.35;
  background: var(--aqua-bg);
  border-bottom: 1px solid var(--border);
  /* Stretch the band to the card edges (top & sides) with a flat bottom line */
  margin: -28px -26px 18px;
  padding: 22px 26px;
}
.query-topic::before {
  content: 'TOPIC:';
  display: inline-block;
  background: var(--teal-mid);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 6px;
  margin-right: 10px;
  vertical-align: middle;
}
.paper-title {
  font-weight: 600;
  color: var(--teal-mid);
  font-size: 1rem;
  margin-bottom: 10px;
  display: block;
  line-height: 1.4;
}
.paper-title:hover { color: var(--manta-orange); text-decoration: underline; }
.paper-summary {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
  /* Truncate long summaries without JS */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
}
.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); }

/* Swiper navigation buttons */
.swiper-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--manta-orange);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(232, 138, 60, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 10;
  transition: background 0.18s, transform 0.15s;
}
.swiper-btn:hover {
  background: var(--manta-orange-dark);
  transform: translateY(-50%) scale(1.05);
}
.swiper-btn:disabled,
.swiper-btn.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: translateY(-50%);
  pointer-events: none;
}
.swiper-btn.next { right: -10px; }
.swiper-btn.prev { left: -10px; }
/* Hide the arrows entirely at the edges (rather than leaving them faded) */
.swiper-btn.prev.swiper-button-disabled,
.swiper-btn.next.swiper-button-disabled {
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 720px) {
  .swiper-btn.next { right: 6px; }
  .swiper-btn.prev { left: 6px; }
  .carousel-wrap::after { width: 48px; }
}

.swiper-pagination-bullet { background: var(--teal-soft); opacity: 0.4; }
.swiper-pagination-bullet-active { background: var(--manta-orange); opacity: 1; }

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

/* ---- 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 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-back {
  display: inline-block;
  margin-bottom: 28px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.login-back:hover { color: var(--manta-orange); }
.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-error.hidden { display: none; }
.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%;
  border-radius: 10px !important;
  box-shadow: none !important;
  border: 1px solid var(--border) !important;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.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-text {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}
/* 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: stack to a single centered card --- */
@media (max-width: 860px) {
  .login-hero { display: none; }
  .login-panel { flex: 1 1 100%; }
}

