/* =============================================================================
   Prep Exames — landing + pricing styles (Story D.2)
   Loaded only by / and /pricing (RootLayout head), so the offline shell (main.css,
   cached by the service worker) stays inside its 40 KB gzip budget (U.2).
   Design system v2 tokens come from main.css. CSS only; motion respects
   prefers-reduced-motion.
   ============================================================================= */

/* Subjects grid */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
@media (min-width: 640px) { .subjects-grid { grid-template-columns: repeat(4, 1fr); } }

.subject-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.subject-chip:hover {
  border-color: var(--color-primary);
  background: var(--color-info-bg);
  transform: translateY(-1px);
  text-decoration: none;
}
.subject-chip__icon { font-size: var(--text-xl); flex-shrink: 0; }
.subject-chip__name { font-size: var(--text-sm); font-weight: var(--font-semibold); }

/* Pricing */
.pricing-cards {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}
@media (min-width: 640px) { .pricing-cards { grid-template-columns: repeat(2, 1fr); } }

.pricing-card {
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
}
.pricing-card--featured { border-color: var(--color-accent); box-shadow: var(--shadow-md); }

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #1F2937;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  white-space: nowrap;
}

.pricing-card__header { margin-bottom: var(--space-5); }
.pricing-card__name { font-size: var(--text-lg); font-weight: var(--font-bold); margin-bottom: var(--space-2); }
.pricing-card__price { display: flex; align-items: baseline; gap: var(--space-1); }
.pricing-card__amount { font-size: var(--text-4xl); font-weight: var(--font-bold); color: var(--color-text); }
.pricing-card__currency { font-size: var(--text-sm); color: var(--color-text-muted); }

.pricing-card__features {
  list-style: none;
  margin-bottom: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}
.pricing-card__features li.is-locked { color: var(--color-text-light); }
/* /pricing (Story P.3): what every pass includes */
.pricing-incluido {
  list-style: none;
  margin: 0 auto var(--space-6);
  max-width: 40rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing-incluido strong { color: var(--color-text); }
.pricing-card__payment-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: var(--space-3);
}
.pricing-teaser__link { text-align: center; font-size: var(--text-sm); }

/* CTA section */
.cta-section { background: var(--color-primary); }
.cta-box { text-align: center; padding: var(--space-8) 0; }
.cta-box__title { font-size: var(--text-2xl); font-weight: var(--font-bold); color: #fff; margin-bottom: var(--space-3); }
.cta-box__body  { color: color-mix(in srgb, #fff 80%, transparent); margin-bottom: var(--space-6); }
.cta-section .btn--primary {
  background: #fff;
  color: var(--color-primary);
  border-color: #fff;
}
.cta-section .btn--primary:hover { background: var(--color-info-bg); }


/* ─── Landing (home) ───────────────────────────────────────────────────────── */
.page-home { background: transparent; }
.home-h2 { font-size: clamp(1.5rem, 5.6vw, 2.125rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: var(--ds-ink); margin: var(--space-2) 0 var(--space-3); }
.home-muted { color: var(--ds-ink-muted); max-width: 46ch; }

.home-hero { padding: var(--space-8) 0 var(--space-6); }
/* Blobs sit low, behind the sample card and the facts (both solid/glass), never behind the copy. */
.home-hero .liquid__blob--green  { top: auto; bottom: 2rem; right: -7rem; }
.home-hero .liquid__blob--yellow { bottom: -8rem; left: -7rem; }
.home-hero .liquid__blob--red    { bottom: 9rem; right: auto; left: 55%; }
.home-hero__grid { display: grid; gap: var(--space-8); align-items: center; }
@media (min-width: 900px) { .home-hero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-12); } }
.home-hero__copy { max-width: 36rem; }
.home-hero__title { margin: var(--space-3) 0 var(--space-4); }
.home-hero__lead { font-size: var(--text-lg); line-height: 1.55; color: var(--ds-ink-muted); max-width: 38ch; margin-bottom: var(--space-6); }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-4); }
.home-hero__note { font-size: var(--text-sm); color: var(--ds-ink-muted); max-width: 40ch; }

.home-sample { margin: 0; padding: var(--space-5); max-width: 26rem; justify-self: end; width: 100%; }
@media (min-width: 900px) { .home-sample { transform: rotate(1.2deg); } }
.home-sample__cap { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); font-weight: var(--font-semibold); color: var(--ds-ink-muted); margin-bottom: var(--space-3); }
.home-sample__q { font-weight: var(--font-semibold); line-height: 1.45; margin-bottom: var(--space-3); color: var(--ds-ink); }
.home-sample__opts { list-style: none; padding: 0; display: grid; gap: var(--space-2); margin-bottom: var(--space-3); }
.home-sample__opts li {
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3);
  border-radius: 14px; background: var(--ds-surface); border: 1px solid var(--ds-line); font-size: var(--text-sm); color: var(--ds-ink);
}
.home-sample__opts b { display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 9px; background: var(--ds-surface-sunken); font-size: var(--text-xs); }
.home-sample__opts .is-right { border-color: var(--mz-leaf-700); background: var(--mz-leaf-50); }
.home-sample__opts .is-right b { background: var(--mz-leaf-700); color: var(--mz-white); }
.home-sample__opts .is-wrong { border-color: var(--mz-red-500); background: var(--mz-red-50); }
.home-sample__opts .is-wrong b { background: var(--mz-red-500); color: var(--mz-white); }
.home-sample__tag { margin-left: auto; font-size: var(--text-xs); font-weight: 700; color: var(--ds-ink-muted); }
.home-sample__step { font-size: var(--text-sm); line-height: 1.5; padding: var(--space-3); border-radius: 14px; background: var(--ds-accent-soft); border: 2px solid var(--ds-accent); color: var(--ds-ink); }

.home-facts { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); }
.home-facts li {
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-full);
  background: var(--ds-surface); border: 1px solid var(--ds-line); box-shadow: var(--ds-clay-shadow);
  font-size: var(--text-sm); color: var(--ds-ink-muted);
}
.home-facts .ds-num { color: var(--ds-ink); margin-right: .25em; }

.home-steps__grid { display: grid; gap: var(--space-8); }
@media (min-width: 900px) { .home-steps__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.home-steps__list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.home-step {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: var(--space-3); align-items: start;
  padding: var(--space-4); background: var(--ds-surface); border-radius: var(--ds-radius-clay); box-shadow: var(--ds-clay-shadow);
}
.home-step:nth-child(2) { margin-left: var(--space-4); }
.home-step:nth-child(3) { margin-left: var(--space-8); }
@media (max-width: 420px) { .home-step:nth-child(2) { margin-left: var(--space-2); } .home-step:nth-child(3) { margin-left: var(--space-4); } }
.home-step__n { font-size: 2rem; line-height: 1; color: var(--ds-primary); padding-bottom: 6px; background: linear-gradient(var(--ds-accent), var(--ds-accent)) left bottom / 1.6rem 4px no-repeat; }
.home-step__t { font-size: var(--text-lg); font-weight: 800; letter-spacing: -0.01em; margin-bottom: var(--space-1); }
.home-step__d { font-size: var(--text-sm); color: var(--ds-ink-muted); line-height: 1.55; }

.home-subjects { position: relative; background: var(--ds-surface); margin-top: 32px; }
.home-subjects__wave { position: absolute; left: 0; top: -31px; }
.home-subjects__head { margin-bottom: var(--space-6); }
.subject-chip {
  min-height: 56px; background: var(--ds-surface); border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-clay-sm); box-shadow: var(--ds-clay-shadow);
}
.subject-chip:hover { border-color: var(--ds-primary); background: var(--ds-surface); }
.subject-chip:active { transform: translateY(1px); box-shadow: var(--ds-clay-shadow-pressed); }

/* conducao.css (linked later, in the body) styles .cd-home__box flat: win with a compound selector. */
.cd-home .cd-home__box.card--clay {
  gap: var(--space-3); padding: var(--space-5); background: var(--ds-danger-soft);
  border: 2px solid var(--ds-danger);
  border-radius: var(--ds-radius-clay); box-shadow: var(--ds-clay-shadow);
}
.cd-home__list.ds-list-star { padding-left: 0; }

.pricing-teaser .home-pricing__head, .pricing-head { margin-bottom: var(--space-6); }
.pricing-head .section-title { text-align: left; margin-top: var(--space-2); }
.pricing-head .home-muted { margin-bottom: var(--space-4); }
.page-pricing .notice { border-radius: var(--ds-radius-clay-sm); }
.page-pricing .pricing-incluido { text-align: left; margin-left: 0; }
.pricing-cards { max-width: 760px; margin-inline: 0; }
.pricing-card {
  border: 1px solid rgb(255 255 255 / .9); border-radius: var(--ds-radius-clay);
  box-shadow: var(--ds-clay-shadow); overflow: hidden;
}
.pricing-card--featured { border: 2px solid var(--mz-yellow-400); box-shadow: var(--ds-clay-shadow), var(--shadow-lg); }
.pricing-card--featured::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ds-accent); }
.pricing-card__amount { font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.pricing-card__payment-note { text-align: left; }
.pricing-teaser__link { text-align: left; }

.cta-section { position: relative; background: var(--mz-ink); padding: var(--space-12) 0; }
.cta-section::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--ds-flag-stripe); }
.cta-box { text-align: left; max-width: 34rem; padding: 0; }
.cta-box__title { font-size: clamp(1.625rem, 6vw, 2.25rem); font-weight: 800; letter-spacing: -0.03em; color: var(--mz-white); }
.cta-box__body { color: var(--mz-sand-100); }

@media (prefers-reduced-motion: reduce) { .subject-chip:hover, .subject-chip:active { transform: none; } }
