/* =============================================================================
 * public-pages.css — Batch F (additive, opt-in): polishing of PUBLIC pages
 * (driving school landing page, plan comparison tool, simulator, financial aid guide,
 * enrollment). Indexed/SEO-enabled in production → this batch ONLY ADDS presentation,
 * through opt-in classes added to the existing markup. No rule rewrites
 * the markup, touches EJS variables, or changes SEO tags.
 *
 * Uses tokens from app.css (--tint, --label-*, --separator, --radius-*,
 * shadow-*, --bg-*) + builds on the existing batches (brand-halo--*,
 * .ui-badge, .btn-elev, .u-transition). Brand font: Roboto
 * (inherited); amounts in JetBrains Mono via .pp-amount.
 * Loaded after dark-fixes.css. Dark + reduced-motion variants included.
 * ========================================================================== */

/* 
 * 0. Brand amount in monospace (prices, totals). Opt-in via .pp-amount.
 *    Reuses the JetBrains Mono stack already used elsewhere in app.css.
 *  */
.pp-amount {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* -----------------------------------------------------------------------------
 * 1. Strong hero (school landing page). Applied to the existing <header> hero through
 *    .pp-hero (in addition to .brand-halo-host / .brand-halo--*). Does not alter the
 *    flow: it only strengthens the typography and spacing.
 * -------------------------------------------------------------------------- */
.pp-hero {
  padding: 1.25rem 1rem 1.75rem;
}
.pp-hero .pp-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 0.45rem;
}
.pp-hero .pp-hero-sub {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  line-height: 1.5;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}
/* CTA row: even spacing and clean wrapping on mobile. */
.pp-cta-row {
  margin-top: 1.1rem;
}
/* Strengthened primary CTA (in addition to .app-btn-primary + .btn-elev). */
.pp-cta-primary {
  font-weight: 600;
}

/* Average rating (stars) in the hero: clean vertical alignment. */
.pp-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pp-stars {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  line-height: 0;
}
.pp-stars svg { display: block; }

/* 
 * 2. Review cards (.pp-review-card). Style an existing container: we do not
 *    create any reviews. Subtle quotation + rating with SVG stars.
 *  */
.pp-reviews {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.9rem;
}
.pp-review-card {
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--separator);
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-md);
  padding: 1.1rem 1.2rem;
}
.pp-review-card .pp-review-quote {
  margin: 0 0 0.7rem;
  line-height: 1.55;
  color: var(--label-primary);
}
.pp-review-card .pp-review-author {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pp-review-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  background: var(--tint, #0f2544);
}

/* -----------------------------------------------------------------------------
 * 3. Pricing table / comparison table. Applied to the existing table (.pp-pricing) and
 *    to the landing page plan cards (.pp-plans / .pp-plan).
 * -------------------------------------------------------------------------- */

/* 3a. Comparison table: readable headers, prices in mono, recommended column. */
.pp-pricing th,
.pp-pricing td {
  padding: 0.7rem 0.9rem;
}
.pp-pricing thead th {
  font-weight: 700;
  color: var(--label-primary);
  border-bottom: 1.5px solid var(--separator);
}
.pp-pricing tbody tr + tr td {
  border-top: 1px solid var(--separator);
}
.pp-pricing .pp-price {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--tint, #0f2544);
}
/* Highlighted recommended column (opt-in: .pp-col-reco on <th>/<td>). */
.pp-pricing .pp-col-reco {
  background: color-mix(in srgb, var(--tint, #0f2544) 6%, transparent);
}
.pp-pricing thead th.pp-col-reco {
  border-bottom-color: var(--tint, #0f2544);
}
.pp-pricing th.pp-col-reco {
  border-left: 1.5px solid color-mix(in srgb, var(--tint, #0f2544) 35%, transparent);
  border-right: 1.5px solid color-mix(in srgb, var(--tint, #0f2544) 35%, transparent);
}
.pp-pricing td.pp-col-reco {
  border-left: 1.5px solid color-mix(in srgb, var(--tint, #0f2544) 35%, transparent);
  border-right: 1.5px solid color-mix(in srgb, var(--tint, #0f2544) 35%, transparent);
}
.pp-pricing tbody tr:last-child td.pp-col-reco {
  border-bottom: 1.5px solid color-mix(in srgb, var(--tint, #0f2544) 35%, transparent);
}
.pp-reco-badge {
  display: inline-block;
  margin-top: 0.35rem;
}

/* 3b. Formula cards (landing): "pricing cards" grid. */
.pp-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.pp-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid var(--separator);
  border-radius: var(--radius-md, 10px);
  box-shadow: var(--shadow-md);
}
.pp-plan .pp-plan-name { font-weight: 600; }
.pp-plan .pp-plan-price {
  font-family: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
  color: var(--tint, #0f2544);
}

/* 3c. Feature list with SVG check bullet (.pp-feature). */
.pp-features {
  list-style: none;
  padding: 0;
  margin: 0;
}
.pp-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.25rem 0;
  line-height: 1.45;
}
.pp-features li svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: #16a34a;
}

/* 
 * 4. Overall consistency (opt-in). Polished public card + gentle transition.
 *  */
.pp-card-soft {
  border-radius: var(--radius-lg, 14px);
  box-shadow: var(--shadow-md);
}
/* Funding guide cards: colored side border preserved (inline), only the elevation changes. */
.pp-aide-card { transition: box-shadow .18s ease, transform .18s ease; }
.pp-aide-card:hover { box-shadow: var(--shadow-lg); }

/* 
 * 5. Dark variants. The tokens (--bg-elevated/--separator/--shadow-*) already switch;
 *    we only adjust hard-coded colors (navy price, highlighting).
 *  */
:root[data-theme="dark"] .pp-pricing .pp-price,
:root[data-theme="dark"] .pp-plan .pp-plan-price,
:root[data-theme="dark"] .pp-hero .pp-hero-title {
  color: var(--label-primary);
}
:root[data-theme="dark"] .pp-pricing .pp-col-reco {
  background: color-mix(in srgb, #5e7fa8 16%, transparent);
}
:root[data-theme="dark"] .pp-review-avatar {
  background: #5e7fa8;
}

/* 
 * 6. Reduced motion: disables the added transitions.
 *  */
@media (prefers-reduced-motion: reduce) {
  .pp-aide-card { transition: none; }
  .pp-aide-card:hover { transform: none; }
}
