/* =====================================================
   Solar Sight – Home (Pre-Qual Landing) Page Styles
   ANTIGRAVITY-001 | v0.1
   ===================================================== */

/* ─── Page setup ─── */
body { padding-top: 68px; } /* compensate for fixed header */

#app { width: 100%; max-width: 100%; margin: 0; border: none; min-height: auto; display: block; text-align: left; }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  background: var(--slate-50);
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
}

.hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.25;
  filter: grayscale(100%) brightness(1.2);
}

.hero__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(241, 243, 247, 0.95) 0%,
    rgba(241, 243, 247, 0.7) 60%,
    rgba(241, 243, 247, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* minmax(0) prevents grid blowout */
  gap: 56px;
  align-items: center;
  width: 100%;
}

/* Left column */
.hero__col--left {
  display: flex;
  flex-direction: column;
  min-width: 0; /* prevent flex/grid blowout */
}

/* Right column — form panel */
.hero__col--right {
  min-width: 0; /* prevent flex/grid blowout */
  background: rgba(26, 82, 130, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  animation: fadeUp 0.7s 0.3s both;
}

.hero__form-eyebrow { color: var(--amber); opacity: 0.9; }

.hero__form-title {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.3px;
  margin-bottom: 6px;
}

.hero__form-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.55;
  margin-bottom: 16px;
}

/* Form box inside right col — use white card */
.hero__col--right .prequal__form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  border: none;
}

.hero .ss-eyebrow {
  animation: fadeUp 0.6s 0.1s both;
}

.hero__headline {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 800;
  color: var(--navy-dark);
  line-height: 1.18;
  letter-spacing: -1.2px;
  margin-bottom: 16px;
  animation: fadeUp 0.7s 0.2s both;
}

.hero__dollar {
  background: none;
  color: var(--navy);
  font-style: normal;
}

.hero__per {
  font-size: 0.6em;
  font-weight: 600;
  vertical-align: super;
  letter-spacing: 0;
  opacity: 0.85;
}

.hero__sub {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 8px;
  line-height: 1.4;
  animation: fadeUp 0.7s 0.3s both;
}

.hero__sub2 {
  font-size: 16px;
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 0;
  animation: fadeUp 0.7s 0.4s both;
}

.hero__cta {
  animation: fadeUp 0.7s 0.5s both;
}

/* Trust bar */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--slate-100);
  animation: fadeUp 0.7s 0.6s both;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
}

.trust-icon { font-size: 18px; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Form box (shared base) */
.prequal__form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-100);
}

/* Form fields */
.prequal-form { display: flex; flex-direction: column; gap: 14px; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
}

.form-group input {
  padding: 11px 14px;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  transition: var(--t);
  outline: none;
  width: 100%;
}

/* Fix Mapbox Search Box internal input overlapping with the search icon */
.form-group mapbox-search-box input {
  padding-left: 40px !important;
}
mapbox-search-box::part(input) {
  padding-left: 40px !important;
}

.form-group input::placeholder { color: var(--slate-400); }

.form-group input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(36, 116, 184, 0.08);
}

.form-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #DC2626;
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 500;
}

.prequal-submit-btn {
  width: 100%;
  margin-top: 2px;
  font-size: 16px;
}

.prequal-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.form-microcopy {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.form-privacy {
  font-size: 13px;
  color: var(--slate-400);
  text-align: center;
  line-height: 1.5;
}

.form-privacy a {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Loading state */
.prequal-loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--slate-100);
  border-top-color: var(--amber);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Success state */
.prequal-success {
  text-align: center;
  padding: 48px 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ECFDF5;
  color: #059669;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 2px solid #D1FAE5;
}

.prequal-success h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.prequal-success p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.success-note {
  margin-top: 12px;
  font-size: 14px !important;
}

.success-note a { color: var(--amber); text-decoration: underline; }

/* ═══════════════════════════════════════════
   ACCREDITATION BAR
═══════════════════════════════════════════ */
.accred-bar {
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  padding: 32px 0;
}

.accred-bar__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate-400);
  text-align: center;
  margin-bottom: 24px;
}

.accred-bar__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px 32px;
}

.accred-bar__logos img {
  height: 62px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.55);
  transition: filter 0.3s ease;
}

.accred-bar__logos img:hover {
  filter: grayscale(0%) opacity(1);
}

@media (max-width: 768px) {
  .accred-bar__logos { gap: 24px 32px; }
  .accred-bar__logos img { height: 48px; }
}

/* ═══════════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════════ */
.how-it-works {
  padding: var(--section-v) 0;
  background: var(--white);
}

.hiw__header {
  text-align: center;
  margin-bottom: 64px;
}

.hiw__header .ss-section-sub {
  margin: 14px auto 0;
  text-align: center;
}

.hiw__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.hiw-step {
  flex: 1;
  padding: 32px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
}

.hiw-step__divider {
  font-size: 22px;
  color: var(--amber);
  font-weight: 700;
  padding: 48px 16px 0;
  flex-shrink: 0;
}

.hiw-step__num {
  font-size: 42px;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.25;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}

.hiw-step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.hiw-step p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.65;
}

.hiw__cta {
  text-align: center;
  margin-top: 52px;
}

/* ═══════════════════════════════════════════
   TRUST / DATA
═══════════════════════════════════════════ */
.trust-section {
  padding: var(--section-v) 0;
  background: var(--navy);
}

.trust-hdr {
  text-align: center;
  margin-bottom: 56px;
}

.trust-hdr .ss-section-title {
  color: var(--white);
  margin-top: 0;
}

.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-card {
  background: var(--navy-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: var(--t);
}

.trust-card:hover {
  transform: translateY(-4px);
  border-color: rgba(118, 188, 232, 0.3);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.trust-card__icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.trust-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.trust-card p {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════ */
.testimonials {
  padding: var(--section-v) 0;
  background: var(--slate-50);
}

.testimonials__hdr {
  text-align: center;
  margin-bottom: 52px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.placeholder-badge {
  font-size: 11px;
  font-weight: 700;
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FDE68A;
  border-radius: 4px;
  padding: 4px 10px;
  display: inline-block;
}

.placeholder-content blockquote {
  font-size: 16px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.65;
  border-left: 3px solid var(--slate-100);
  padding-left: 16px;
}

.testimonial-card cite {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  font-style: normal;
}

/* ═══════════════════════════════════════════
   CTA BANNER
═══════════════════════════════════════════ */
.cta-banner {
  padding: var(--section-v) 0;
  background: var(--navy);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner__title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.cta-banner__text p {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.cta-banner .ss-btn--primary-inv {
  flex-shrink: 0;
}

.cta-banner .ss-btn--primary-inv:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero__col--right { padding: 28px; }
  .hiw__steps { flex-direction: column; }
  .hiw-step__divider { display: none; }
  .trust-cards { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .hero { min-height: auto; padding: 48px 0 40px; }
  .hero__content { gap: 32px; }
  .hero__headline { font-size: clamp(28px, 8vw, 42px); }
  .trust-bar { flex-direction: column; gap: 12px; }
  .hero__col--right .prequal__form-wrap { padding: 20px 16px; }
  .trust-cards { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }
  .hero-logos__row { gap: 12px; }
}

/* ─── Very small screens (∼360px) ─── */
@media (max-width: 400px) {
  /* Hero: tighter vertical rhythm */
  .hero { padding: 28px 0 24px; }
  .hero__content { padding-top: 28px; padding-bottom: 28px; gap: 24px; }

  /* Headline: avoid letter-spacing + large font blowing out at 360 */
  .hero__headline {
    font-size: clamp(24px, 7vw, 32px);
    letter-spacing: -0.5px;
    word-break: break-word;
  }
  .hero__sub  { font-size: 15px; }
  .hero__sub2 { font-size: 14px; max-width: 100%; }

  /* CTA row: stack buttons full-width */
  .hero__cta {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }
  .hero__cta .ss-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  /* Trust bar: stay vertical, tighten */
  .trust-bar { gap: 8px; margin-top: 18px; padding-top: 16px; }
  .trust-item { font-size: 12px; }

  /* Metric bar: ensure items wrap and don't blow out */
  .metric-bar { padding: 20px 14px; gap: 12px; }
  .metric-bar .ss-container { gap: 12px; flex-wrap: wrap; }
  .metric-item { min-width: 0; flex: 1 1 40%; }
  .metric-item__num { font-size: 22px; }
  .metric-item__label { font-size: 11px; }

  /* HIW steps: already columnar, just tighten */
  .hiw-step { padding: 20px 16px; }
  .hiw-step__title { font-size: 16px; }

  /* Trust cards */
  .trust-card { padding: 20px 16px; }

  /* Home footer CTA */
  .home-cta-banner { padding: var(--section-v) 0; }
  .home-cta-banner__title { font-size: clamp(20px, 7vw, 26px); }

  /* Carousel: tighten slide padding */
  .hero-carousel__slide { padding: 20px 18px 16px; }
  .hero-carousel { width: 100%; max-width: 100%; overflow: hidden; }
  .hero-carousel__track { min-width: 0; }
  .hero-review__quote  { font-size: 13.5px; }
  .hero-carousel__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 18px 18px;
  }
  .hero-carousel__footer .ss-btn { width: 100%; justify-content: center; }

  /* Logo strip: 3-per-row grid instead of flex row */
  .hero-logos { padding: 12px 14px; }
  .hero-logos__row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    justify-items: center;
  }
  .hero-logos__row img { max-width: 100%; height: 28px; }

  /* Allow buttons to wrap on very small screens — prevents white-space:nowrap blowout */
  .ss-btn { white-space: normal; text-align: center; }

  /* CTA banner */
  .cta-banner__inner { gap: 20px; }
  .cta-banner__inner .ss-btn { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════
   HERO RIGHT STACK — Carousel + Logo Strip
═══════════════════════════════════════════ */

.hero-right-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ─── Testimonial Carousel ─── */
.hero-carousel {
  background: var(--white);
  border: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.hero-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.hero-carousel__slide {
  min-width: 100%;
  padding: 32px 32px 24px;
  box-sizing: border-box;
}

.hero-review__stars {
  color: #FBC84A;
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.hero-review__quote {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin: 0 0 20px;
  quotes: none;
}

.hero-review__author {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hero-review__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
}

.hero-review__sep {
  color: var(--slate-100);
  font-size: 12px;
}

.hero-review__loc {
  font-size: 14px;
  color: var(--text-muted);
}

.hero-review__saving {
  display: inline-block;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  border-radius: 4px;
  padding: 4px 10px;
}

.hero-review__saving strong {
  color: var(--amber);
  font-weight: 700;
}

/* Carousel footer: dots + CTA */
.hero-carousel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 24px;
  border-top: 1px solid var(--slate-100);
}

.hero-carousel__dots {
  display: flex;
  gap: 8px;
}

.hero-carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--slate-100);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--t);
}

.hero-carousel__dot.active,
.hero-carousel__dot:hover {
  background: var(--amber);
  transform: scale(1.25);
}

/* ─── Logo Strip ─── */
.hero-logos {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.hero-logos__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-bottom: 10px;
}

.hero-logos__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-logos__row img {
  height: 36px;
  width: auto;
  max-width: 72px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.hero-logos__row img:hover { opacity: 1; }

