/* ---- Landing page redesign (ABBYY-style): full-bleed alternating sections,
   pill CTAs, thin-outline circular icon badges. Scoped to this page only. ---- */

.lp-section {
  padding: 72px 20px;
}
.lp-section--white {
  background: var(--bg);
}
.lp-section--alt {
  background: var(--card-bg); /* was a cool #EEF3FC blue - clashed with the warm --bg/--card-bg palette (14.09.2026), now alternates the same way the rest of the app does: page tone vs card tone */
}
.lp-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.lp-inner--narrow {
  max-width: 760px;
}

.lp-section h2 {
  font-size: 1.9rem;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--graphite);
}
.lp-eyebrow {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 10px;
}

/* Hero */
.lp-hero {
  padding-top: 56px;
}
.lp-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.lp-hero h1 {
  font-size: 2.6rem;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--graphite);
}
.lp-hero-copy p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1.02rem;
  margin: 0 0 14px;
}

.upload-card {
  /* matte glass, same formula as .card in base.css (14.09.2026) - flat var(--card-bg) was identical to the .lp-section--alt background it sits on, so the card had zero visual separation */
  background: var(--card-bg);
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(20, 22, 26, 0.08);
  padding: 40px 36px;
  text-align: center;
}
.upload-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  color: var(--graphite);
}
.upload-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.file-field {
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 30px 16px;
  text-align: center;
  background: var(--bg); /* was a near-white #f9fafc - blinding against the new warm card (14.09.2026); lighter inset within the darker .upload-card, same pattern as driver-card tiles */
  transition: border-color 0.15s ease;
}
.file-field:hover { border-color: var(--graphite); }
input[type="file"] {
  font-size: 0.9rem;
  color: var(--text);
  max-width: 100%;
}
.upload-hint {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}
.upload-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.trial-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.trial-badge--trial {
  background: var(--brand-accent-tint);
  color: var(--brand-accent-darkest);
}
.trial-badge--balance {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.trial-badge--exhausted {
  background: #f8ecec;
  color: var(--red);
  border: 1px solid #e0b3b3;
}
.btn--muted {
  background: var(--border);
  color: var(--text-muted);
}
.btn--muted:hover {
  box-shadow: none;
  transform: none;
}
.signup-cta-btn {
  margin-top: 24px;
  display: inline-block;
}

/* Pill CTA buttons — shape only; color inherited from the global .btn (base.html) */
.btn {
  border-radius: 999px;
  padding: 14px 30px;
}
.btn:hover {
  box-shadow: 0 8px 20px rgba(4, 52, 44, 0.3);
}
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.85;
  box-shadow: none;
  transform: none;
}
.btn-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Full-page analyze overlay — shown while the upload-and-extract form POST
   is in flight (a real page navigation, so this is purely client-side
   reassurance: it can't reflect real backend progress, only cycle through
   plausible stage text so the page doesn't look frozen for the several
   seconds a scan can take). */
.analyze-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.analyze-overlay[hidden] {
  display: none;
}
.analyze-overlay-card {
  /* sits over a dark backdrop, not next to a page section - kept solid on
     purpose (blur here would blur the dark overlay behind it, not the page) */
  background: var(--card-bg);
  border-radius: 16px;
  padding: 40px 44px;
  text-align: center;
  max-width: 340px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.analyze-overlay-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--brand-green, #1a7a3d);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
.analyze-overlay-status {
  font-size: 0.95rem;
  color: var(--graphite);
  font-weight: 600;
  min-height: 1.4em;
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 20px;
}
.step-card {
  /* matte glass, same formula as .card in base.css (14.09.2026) - flat var(--card-bg) was identical to the .lp-section--alt background it sits on, so the card had zero visual separation */
  background: var(--card-bg);
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(20,22,26,0.06), 0 6px 16px rgba(20,22,26,0.05);
  text-align: center;
}
.step-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-accent-tint);
  color: var(--brand-accent-dark);
  font-size: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.step-card h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--graphite);
}

/* Flowing copy sections (Why AI + Technology) */
.lp-copy p {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1rem;
  margin: 0 0 16px;
}
.lp-copy p:last-child {
  margin-bottom: 0;
}
.lp-copy strong {
  color: var(--graphite);
}

/* Why AI — two columns: copy left, sample-report teaser card right */
.why-ai-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}
.sample-teaser-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 20px;
  text-align: center;
}
.sample-teaser-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--brand-accent-tint);
  color: var(--brand-accent-dark);
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.sample-teaser-caption {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 12px;
}

/* Feature cards (feedback / integrations) */
.feature-card {
  /* matte glass, same formula as .card in base.css (14.09.2026) - flat var(--card-bg) was identical to the .lp-section--alt background it sits on, so the card had zero visual separation */
  background: var(--card-bg);
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(20,22,26,0.06), 0 6px 16px rgba(20,22,26,0.05);
  padding: 40px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
  margin: 0 0 24px;
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-accent-tint);
  color: var(--brand-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 20px;
}

/* Pricing — adaptive grid, wraps on narrow viewports */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.pricing-col {
  /* matte glass, same formula as .card in base.css (14.09.2026) - flat var(--card-bg) was identical to the .lp-section--alt background it sits on, so the card had zero visual separation */
  background: var(--card-bg);
  background: color-mix(in srgb, var(--card-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(20,22,26,0.06), 0 6px 16px rgba(20,22,26,0.05);
  padding: 28px 24px;
  text-align: center;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pricing-col-body {
  flex: 1;
}
.pricing-col-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-accent-tint);
  color: var(--brand-accent-dark);
  font-size: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.pricing-col h3 {
  font-size: 1.05rem;
  color: var(--graphite);
  margin: 0 0 10px;
}
.pricing-col p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}
.pricing-col .btn {
  display: block;
  width: 100%;
  margin-top: 20px;
}
.btn-outline {
  background: transparent;
  color: var(--brand-accent);
  border: 1px solid var(--brand-accent);
}
.btn-outline:hover {
  background: var(--brand-accent-tint);
  color: var(--brand-accent-dark);
}

@media (max-width: 768px) {
  .lp-section { padding: 48px 16px; }
  .lp-hero { padding-top: 32px; }
  /* minmax(0, 1fr), not bare 1fr: 1fr is minmax(auto, 1fr), so the column
     could never shrink below the min-content of its widest child (the
     upload card's file input) and the whole page grew wider than a 320-390px
     phone screen (06.10.2026). min-width:0 on the children lets them shrink. */
  .lp-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .lp-hero-grid > *,
  .why-ai-grid > * { min-width: 0; }
  .lp-hero h1 { font-size: 2rem; }
  .feature-card { padding: 28px 24px; }
  .why-ai-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .upload-card { padding: 28px 16px; }
  .upload-label-row { flex-wrap: wrap; }
  .file-field { padding: 20px 10px; }
}

/* "View a sample report" link + slide-in panel */
.link-btn {
  display: inline-block;
  margin-top: 14px;
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-accent);
  font-size: 0.9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}
.link-btn:hover {
  color: var(--brand-accent-dark);
  text-decoration: underline;
}
.link-btn--lg {
  font-size: 1.05rem;
}
.how-it-works-cta {
  margin-top: 48px;
}
.how-it-works-cta .link-btn {
  margin-top: 0;
}

/* Sample-report slide-in panel — landing-page only. Shares the generic
   .slide-panel/.slide-panel-backdrop/.slide-panel-close mechanics (position,
   backdrop, open/close transition) defined site-wide in base.html; only the
   width modifier is page-specific. */
.sample-panel {
  width: min(1100px, 92vw);
}
.sample-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 600px) {
  .sample-panel {
    width: 100vw;
  }
}
/* Pricing T3: "Top up balance" link inside the 402 banner (static/js/upload.js). */
.upload-topup-link {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  text-decoration: none;
}
/* Pricing T5: access prices on the landing #pricing card (daily_plus_usage). */
.pricing-access-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-weight: 600;
}
