/* Landing Page Analyzer - page-specific styles.
 * All custom classes use the lpa- prefix.
 * Report renderer classes use the tr- prefix (shared via tool-report.js).
 * Builds on the site's existing Webflow tokens and shared CSS.
 */

/* Enforce [hidden] attribute even when framework styles set display */
[hidden] { display: none !important; }

/* ---- Tool container ---- */

.lpa-tool-wrap {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

.lpa-intro {
  color: var(--color--neutral-light, #b0b6c3);
  margin-top: 0.75rem;
  margin-bottom: 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
}

/* ---- Screen-reader only (visually hidden accessible label) ---- */

.lpa-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Single pill input bar ---- */

.lpa-bar {
  position: relative;
}

.lpa-bar-inner {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  padding: 6px 6px 6px 16px;
  gap: 8px;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.lpa-bar-inner:focus-within {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22);
}

.lpa-bar-icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  pointer-events: none;
}

.lpa-bar-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  padding: 10px 0;
  line-height: 1.4;
}

.lpa-bar-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.lpa-bar-btn {
  flex-shrink: 0;
  white-space: nowrap;
  /* Keep the site button's own border-radius (pill) inside the bar */
}

/* Hint text below the bar */

.lpa-hint {
  font-size: 0.8125rem;
  color: var(--color--neutral-light, #b0b6c3);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

/* ---- Chip row ---- */

.lpa-chips {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lpa-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  color: rgba(255, 255, 255, 0.65);
  font-family: inherit;
  font-size: 0.8125rem;
  line-height: 1.3;
  padding: 0.35em 0.9em;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  outline-offset: 2px;
}

.lpa-chip:hover {
  background: rgba(129, 140, 248, 0.12);
  border-color: rgba(129, 140, 248, 0.35);
  color: #a5b4fc;
}

.lpa-chip[aria-expanded="true"] {
  background: rgba(129, 140, 248, 0.15);
  border-color: rgba(129, 140, 248, 0.4);
  color: #a5b4fc;
}

/* ---- Collapsible panels (ad text, etc.) ---- */

.lpa-panel {
  margin-top: 0.875rem;
}

/* ---- Textarea (ad text, paste mode) ---- */

.lpa-textarea {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.55;
  padding: 14px 16px;
  resize: vertical;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 80px;
}

.lpa-textarea:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22);
}

.lpa-textarea::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

/* ---- Action row (chips + Analyze button, below active input in both modes) ---- */

.lpa-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.875rem;
}

/* ---- Loading state ---- */

.lpa-status {
  text-align: center;
  padding: 1.5rem;
  color: var(--color--neutral-light, #b0b6c3);
  font-size: 0.9375rem;
}

.lpa-status.is-loading::before {
  content: '';
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: lpa-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5em;
}

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

.lpa-error {
  background: rgba(224, 49, 49, 0.1);
  border: 1px solid rgba(224, 49, 49, 0.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #fca5a5;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* ---- Report area ---- */

.lpa-report-area {
  margin-top: 2rem;
}

/* ---- Speed and Meta sections ---- */

.lpa-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.5rem;
}

.lpa-section-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.lpa-section-note {
  color: var(--color--neutral-light, #b0b6c3);
  font-size: 0.9rem;
  margin: 0;
  line-height: 1.55;
}

/* Loading state */

.lpa-speed-loading {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--color--neutral-light, #b0b6c3);
  font-size: 0.9rem;
}

.lpa-spinner-inline {
  flex-shrink: 0;
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-top-color: #818cf8;
  border-radius: 50%;
  animation: lpa-spin 0.7s linear infinite;
}

/* PSI score badge */

.lpa-psi-score-row {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.lpa-psi-score-badge {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
}

.lpa-psi-score-num {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.lpa-psi-score-denom {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.4);
}

.lpa-psi-score-cat {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Data labels */

.lpa-data-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 0.625rem;
}

/* Metrics grid */

.lpa-metrics-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.lpa-metric-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lpa-metric-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.3;
}

.lpa-metric-value {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.lpa-metric-cat {
  font-size: 0.75rem;
  font-weight: 600;
}

/* PSI screenshot */

.lpa-psi-screenshot {
  display: block;
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.lpa-psi-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
  margin-top: 0.75rem;
}

/* PSI updating note in report area */

.lpa-psi-updating-note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* fbclid / Meta section */

.lpa-fbclid-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}

.lpa-fbclid-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1.4;
  font-weight: 700;
}

.lpa-fbclid-pass { color: #2ac769; }
.lpa-fbclid-fail { color: #f5a623; }

.lpa-fbclid-copy {
  font-size: 0.9375rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.55;
}

.lpa-fbclid-hops,
.lpa-fbclid-final-url {
  font-size: 0.8125rem;
  color: var(--color--neutral-light, #b0b6c3);
  margin: 0 0 0.25rem;
  line-height: 1.5;
  word-break: break-all;
}

.lpa-meta-note {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0.5rem 0 0;
  line-height: 1.5;
}

/* ---- ToolReport renderer styles (tr- prefix) ---- */

.tr-header {
  margin-bottom: 2rem;
}

.tr-score-wrap {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.tr-score {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--score-color, #818cf8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  line-height: 1;
}

.tr-score-num {
  font-size: 2rem;
  font-weight: 700;
  color: var(--score-color, #818cf8);
  line-height: 1;
}

.tr-score-denom {
  font-size: 0.75rem;
  color: var(--color--neutral-light, #b0b6c3);
  margin-top: 0.125rem;
}

.tr-grade-wrap {
  flex: 1;
  min-width: 0;
}

.tr-grade {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25em 0.75em;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}

.tr-grade--great { background: rgba(42, 199, 105, 0.18); color: #2ac769; }
.tr-grade--good  { background: rgba(245, 166, 35, 0.18); color: #f5a623; }
.tr-grade--warn  { background: rgba(245, 124, 35, 0.18); color: #f57c23; }
.tr-grade--poor  { background: rgba(224, 49, 49, 0.18);  color: #e03131; }

.tr-verdict {
  font-size: 0.9375rem;
  color: #e2e8f0;
  margin: 0;
  line-height: 1.5;
}

.tr-score-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.tr-score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* ---- Thin / not-enough-content panel ---- */

.tr-thin-wrap {
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  text-align: center;
}

.tr-thin-icon {
  font-size: 2rem;
  color: #f5a623;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.tr-thin-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.625rem;
}

.tr-thin-body {
  font-size: 0.9375rem;
  color: #e2e8f0;
  margin: 0 0 1.25rem;
  line-height: 1.55;
}

.tr-redirect-btn {
  /* inherits .button.w-button from site CSS; just margins */
  margin-top: 0.25rem;
}

/* ---- Checks list ---- */

.tr-checks-heading {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 1rem;
}

.tr-check {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.875rem 1rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.tr-check--pass {
  border-color: rgba(42, 199, 105, 0.2);
}

.tr-check-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.375rem;
  flex-wrap: wrap;
}

.tr-check-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #e2e8f0;
  flex: 1;
  min-width: 0;
}

.tr-check-score {
  font-size: 0.875rem;
  color: var(--color--neutral-light, #b0b6c3);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.tr-check-score strong {
  color: #fff;
}

.tr-check-sep {
  color: rgba(255, 255, 255, 0.3);
}

.tr-status {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2em 0.55em;
  border-radius: 99px;
}

.tr-status--pass    { background: rgba(42, 199, 105, 0.15); color: #2ac769; }
.tr-status--partial { background: rgba(245, 166, 35, 0.15); color: #f5a623; }
.tr-status--fail    { background: rgba(224, 49, 49, 0.15);  color: #e03131; }
.tr-status--na      { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.4); }

.tr-point-bar-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
  margin: 0.25rem 0 0.5rem;
}

.tr-point-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: #818cf8;
  transition: width 0.4s ease;
}

.tr-check--pass .tr-point-bar-fill    { background: #2ac769; }
.tr-check--partial .tr-point-bar-fill { background: #f5a623; }
.tr-check--fail .tr-point-bar-fill    { background: #e03131; }

.tr-found {
  font-size: 0.8125rem;
  color: var(--color--neutral-light, #b0b6c3);
  margin: 0 0 0.375rem;
  line-height: 1.5;
}

.tr-fix {
  font-size: 0.8125rem;
  color: #a5b4fc;
  margin: 0;
  line-height: 1.5;
}

.tr-words-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  text-align: right;
  margin-top: 0.75rem;
}

/* ---- Responsive ---- */

@media (max-width: 600px) {
  .lpa-bar-btn {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .lpa-action-row {
    flex-wrap: wrap;
  }

  #lpa-analyze-html-btn {
    width: 100%;
    text-align: center;
  }

  .tr-score {
    width: 76px;
    height: 76px;
  }

  .tr-score-num {
    font-size: 1.5rem;
  }
}

/* ---- Long-form content sections ---- */

.lpa-content-section {
  padding: 3.5rem 0;
}

.lpa-content-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.lpa-content-wrap h2 {
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 700;
  color: #fff;
  margin: 2.5rem 0 1rem;
  line-height: 1.25;
}

.lpa-content-wrap h2:first-child {
  margin-top: 0;
}

.lpa-content-wrap p {
  font-size: 1rem;
  color: #c8d0e0;
  line-height: 1.7;
  margin: 0 0 1rem;
}

.lpa-content-link {
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lpa-content-link:hover {
  color: #c7d2fe;
}

/* Tables */

.lpa-table-wrap {
  overflow-x: auto;
  margin: 1.25rem 0 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lpa-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.lpa-table th {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lpa-table td {
  padding: 0.75rem 1rem;
  color: #c8d0e0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: top;
  line-height: 1.55;
}

.lpa-table tr:last-child td {
  border-bottom: none;
}

.lpa-table td:first-child {
  color: #e2e8f0;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- Responsive tables ---- */

@media (max-width: 640px) {
  /* Stack table rows as cards: no horizontal scroll */
  .lpa-table-wrap {
    overflow-x: visible;
    border: none;
    border-radius: 0;
    padding: 0;
  }

  .lpa-table,
  .lpa-table tbody,
  .lpa-table tr {
    display: block;
    width: 100%;
  }

  .lpa-table thead { display: none; }

  .lpa-table tr {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .lpa-table tr:last-child { border-bottom: none; }

  /* All cells reset to block; individual rules below override */
  .lpa-table td {
    display: block;
    padding: 0;
    white-space: normal;
    border: none;
    vertical-align: baseline;
    line-height: 1.5;
  }

  /* First cell (check name / score range) and second cell (points / grade) sit inline */
  .lpa-table td:first-child,
  .lpa-table td:nth-child(2) {
    display: inline;
    font-weight: 600;
    color: #e2e8f0;
  }

  /* Second cell: muted accent, separated from first cell by em dash */
  .lpa-table td:nth-child(2) {
    color: #a5b4fc;
    padding-left: 0.25rem;
  }

  .lpa-table td:nth-child(2)::before {
    content: "· ";
    color: rgba(255, 255, 255, 0.3);
    font-weight: 400;
  }

  /* Weights table only (2nd cell is not last): append " pts" suffix */
  .lpa-table td:nth-child(2):not(:last-child)::after {
    content: " pts";
    font-size: 0.85em;
    font-weight: 400;
    color: rgba(165, 180, 252, 0.75);
  }

  /* Third cell (description) drops below on its own line */
  .lpa-table td:nth-child(3) {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.875rem;
    color: #94a3b8;
    line-height: 1.55;
  }
}


/* Lists */

.lpa-ul,
.lpa-ol {
  padding-left: 1.375rem;
  margin: 0 0 1rem;
}

.lpa-ul li,
.lpa-ol li {
  font-size: 1rem;
  color: #c8d0e0;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

/* ---- Product band (centered glow card) ---- */

.lpa-band {
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
}

/* Radial purple glow rendered behind the card; strengthened for visibility */
.lpa-band-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center,
    rgba(129, 140, 248, 0.55) 0%,
    rgba(168, 85, 247, 0.3) 40%,
    transparent 70%);
  pointer-events: none;
}

/* Outer shell: provides centering, max-width, and visible purple box-shadow glow.
 * box-shadow is not clipped by clip-path on the inner card-outer. */
.lpa-band-card-shell {
  max-width: min(680px, calc(100vw - 40px));
  margin: 0 auto;
  border-radius: 24px;
  box-shadow:
    0 0 50px rgba(129, 140, 248, 0.5),
    0 0 100px rgba(168, 85, 247, 0.25);
  position: relative;
}

/* Gradient-border wrapper: 1.5px gradient "border" via background + padding */
.lpa-band-card-outer {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  padding: 1.5px;
  border-radius: 22px;
  clip-path: inset(0 round 22px);
  background: linear-gradient(
    135deg,
    rgba(129, 140, 248, 0.95) 0%,
    rgba(168, 85, 247, 0.65) 50%,
    rgba(99, 102, 241, 0.95) 100%
  );
  position: relative;
}

/* Card inner: dark background fills the interior, leaving the gradient border visible */
.lpa-band-card {
  border-radius: 21px;
  background: linear-gradient(150deg, #101020 0%, #0b0b18 100%);
  padding: 2.5rem 2.75rem 2.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

/* Official Meta Business Partner badge */
.lpa-band-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 99px;
  padding: 0.3em 0.8em;
  margin-bottom: 1.5rem;
}

.lpa-band-badge-icon {
  color: #818cf8;
  flex-shrink: 0;
}

/* Heading: two sentences, each on its own line at desktop */
.lpa-band-heading {
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
  letter-spacing: -0.01em;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Each sentence forced to its own line from 641px up; wraps naturally on mobile */
@media (min-width: 641px) {
  .lpa-band-heading-line { display: block; }
}

/* Body line */
.lpa-band-line {
  font-size: 0.9375rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0 auto 1.75rem;
  max-width: 52ch;
}

/* CTA button with arrow */
.lpa-band-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lpa-band-btn-arrow {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Stats row */
.lpa-band-stats-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

.lpa-band-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 2rem;
}

.lpa-band-stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.12);
  align-self: center;
  flex-shrink: 0;
}

.lpa-band-stat-num {
  font-size: 1.375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  white-space: nowrap;
}

.lpa-band-star {
  color: #f5a623;
  font-size: 1rem;
}

.lpa-band-stat-label {
  font-size: 0.75rem;
  color: #4b5563;
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 640px) {
  .lpa-band-card {
    padding: 1.75rem 1.125rem 1.5rem;
  }

  .lpa-band-stat {
    padding: 0 1rem;
  }

  .lpa-band-stats-row {
    gap: 0.5rem;
    row-gap: 1rem;
  }

  .lpa-band-stat-divider {
    display: none;
  }

  .lpa-band-stats-row {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 1.5rem;
  }
}

@media (max-width: 390px) {
  .lpa-band-stats-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
}

/* ---- Hub layout ---- */

/* Reduce the bottom padding of the hub hero so cards sit snug under it */
.lpa-hub-hero .lpa-hub-hero-pad {
  padding-bottom: 1.5rem !important;
}

/* Cards section sits directly below the hero with no extra top padding */
.lpa-hub-cards-section {
  padding-bottom: 3rem;
}

/* Centered container matching the hero content width */
.lpa-hub-cards-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Card grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
.lpa-hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .lpa-hub-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 540px) {
  .lpa-hub-cards {
    grid-template-columns: 1fr;
  }
}

/* ---- Breadcrumb full-width wrapper (mirrors nav padding) ---- */
/* padding-top mirrors .padding-section-large.is-hero which is always 4rem */

.tool-breadcrumb-wrap {
  padding: 4rem 56px 0;
  margin-bottom: 2.5rem;
}

/* Match nav horizontal padding breakpoint */
@media (max-width: 900px) {
  .tool-breadcrumb-wrap {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 767px) {
  .tool-breadcrumb-wrap {
    margin-bottom: 1.5rem;
  }
}

/* Suppress top padding from padding-section-large.is-hero - the wrapper
   provides the equivalent 4rem spacing. */
.tool-page-hero .padding-section-large.is-hero {
  padding-top: 0;
}

/* ---- Shared tool-page breadcrumb ---- */

.tool-breadcrumb {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.45);
}

.tool-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
}

.tool-breadcrumb a:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}

.tool-breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.3);
}

.tool-breadcrumb-sep {
  margin: 0 6px;
  color: rgba(255, 255, 255, 0.3);
}


/* ---- Hub group headings ---- */

.lpa-hub-group-heading {
  font-size: 1.5rem;
  font-weight: 600;
  color: #e8eaf0;
  margin: 4.5rem 0 0.75rem;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .lpa-hub-group-heading {
    font-size: 1.25rem;
  }
}

.lpa-hub-cards-container .lpa-hub-group-heading:first-child {
  margin-top: 0;
}


/* ---- FAQ ---- */

.lpa-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.lpa-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0;
  overflow: hidden;
}

.lpa-faq-item[open] {
  border-color: rgba(129, 140, 248, 0.25);
}

.lpa-faq-q {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.45;
}

.lpa-faq-q::-webkit-details-marker {
  display: none;
}

.lpa-faq-q::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
  transition: transform 0.2s;
}

.lpa-faq-item[open] .lpa-faq-q::after {
  transform: rotate(45deg);
}

.lpa-faq-a {
  font-size: 0.9375rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
  padding: 0 1.25rem 1rem;
}

/* ---- More free tools row ---- */

.lpa-more-tools-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lpa-more-tools-heading {
  margin-bottom: 1.25rem !important;
}

.lpa-tools-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.lpa-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.125rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.lpa-tool-card:hover {
  background: rgba(129, 140, 248, 0.06);
  border-color: rgba(129, 140, 248, 0.3);
}

.lpa-tool-card-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #e2e8f0;
}

.lpa-tool-card-desc {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.5;
  flex: 1;
}

.lpa-see-all-wrap {
  margin: 0 !important;
}

.lpa-see-all-link {
  font-size: 0.9375rem;
  color: #a5b4fc;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lpa-see-all-link:hover {
  color: #c7d2fe;
}

/* ---- Sample report ---- */

.lpa-sample-section {
  background: rgba(245, 166, 35, 0.03);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.lpa-sample-intro {
  color: #94a3b8;
  margin-bottom: 1.25rem !important;
}

.lpa-sample-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  padding: 0.25em 0.65em;
  border-radius: 99px;
  margin-bottom: 1.25rem;
}

.lpa-sample-extras {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.lpa-sample-extra-row {
  display: flex;
  gap: 0.75rem;
  font-size: 0.875rem;
  align-items: baseline;
  flex-wrap: wrap;
}

.lpa-sample-extra-label {
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  flex-shrink: 0;
}

.lpa-sample-extra-val {
  color: #94a3b8;
  line-height: 1.5;
}

/* ---- Hub tool cards ---- */

.lpa-hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem 1.625rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.lpa-hub-card:hover {
  background: rgba(129, 140, 248, 0.06);
  border-color: rgba(129, 140, 248, 0.35);
  transform: translateY(-2px);
}

.lpa-hub-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.lpa-hub-card-desc {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.55;
  flex: 1;
}

.lpa-hub-card-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #818cf8;
  margin-top: 0.25rem;
}

/* ---- Cross-tool link ---- */
.lpa-cross-link-para {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin: 0;
}
.lpa-cross-link-para a {
  color: rgba(129, 140, 248, 0.9);
  text-decoration: none;
}
.lpa-cross-link-para a:hover {
  text-decoration: underline;
  color: #818cf8;
}
