/* ============================================================
   AIBE Pass Engine — home.css  v2
   Home page section styles only
   ============================================================ */

/* ── 1. HERO ─────────────────────────────────────────────── */
.hero {
  background: var(--c-navy);
  color: #fff;
  overflow: hidden;
  position: relative;
  padding: var(--s-20) 0 var(--s-24);
}

/* Subtle diagonal texture — no image needed */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -52deg,
      rgba(201,168,76,.04) 0px,
      rgba(201,168,76,.04) 1px,
      transparent 1px,
      transparent 60px
    );
  pointer-events: none;
}

/* Gold accent band top */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--c-gold);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-12);
  align-items: center;
}

.hero-copy { max-width: 640px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-gold);
  margin-bottom: var(--s-5);
  max-width: none;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-gold);
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--s-5);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  line-height: 1.12;
}
.hero h1 em {
  font-style: normal;
  color: var(--c-gold);
}

.hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  line-height: 1.65;
  margin-bottom: var(--s-8);
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-8);
}

/* Trust micro-copy under CTAs */
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-5);
  max-width: none;
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  color: rgba(255,255,255,.55);
  max-width: none;
}
.hero-trust-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-green);
  flex-shrink: 0;
}

/* Countdown panel */
.hero-countdown {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-8);
  text-align: center;
  min-width: 240px;
}
.countdown-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.45);
  margin-bottom: var(--s-4);
  max-width: none;
}
.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.countdown-unit { text-align: center; }
.countdown-num {
  display: block;
  font-family: var(--f-mono);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.countdown-seg {
  display: block;
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-top: var(--s-1);
  max-width: none;
}
.countdown-date {
  font-size: 0.75rem;
  color: rgba(255,255,255,.4);
  max-width: none;
}
.countdown-disclaimer {
  font-size: 0.6875rem;
  color: rgba(255,255,255,.3);
  margin-top: var(--s-2);
  max-width: none;
}
.countdown-passed {
  font-size: 0.9375rem;
  color: var(--c-gold);
  font-weight: 600;
  padding: var(--s-4) 0;
  max-width: none;
}

@media (max-width: 767px) {
  .hero { padding: var(--s-12) 0 var(--s-16); }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .hero-countdown { min-width: unset; }
  .countdown-num { font-size: 1.75rem; }
  .hero h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
}

/* ── 2. PROOF STRIP ──────────────────────────────────────── */
.proof-strip {
  background: var(--c-navy-d);
  padding: var(--s-5) 0;
  border-top: 1px solid rgba(201,168,76,.15);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.proof-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--s-1);
  row-gap: 0;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-5);
  position: relative;
}
.proof-item + .proof-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.proof-num {
  font-family: var(--f-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,.6);
  line-height: 1.35;
  max-width: none;
}
.proof-text strong {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 0.875rem;
}

@media (max-width: 479px) {
  .proof-list { justify-content: flex-start; }
  .proof-item + .proof-item::before { display: none; }
}

/* ── 3. HOW IT WORKS ─────────────────────────────────────── */
.how-it-works .section-header { margin-bottom: var(--s-12); }

.steps-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  position: relative;
}

/* Connector line between steps */
.steps-row::before {
  content: '';
  position: absolute;
  top: 32px;
  left: calc(12.5% + var(--s-6));
  right: calc(12.5% + var(--s-6));
  height: 2px;
  background: linear-gradient(90deg, var(--c-gold) 0%, rgba(201,168,76,.2) 100%);
  pointer-events: none;
}

.step {
  text-align: center;
  padding: var(--s-6);
  position: relative;
}
.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--c-navy);
  color: var(--c-gold);
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s-5);
  position: relative;
  z-index: 1;
  border: 3px solid var(--c-bg);
  box-shadow: 0 0 0 2px var(--c-navy);
}
.step h3 {
  font-size: 1rem;
  margin-bottom: var(--s-2);
  color: var(--c-navy);
}
.step p {
  font-size: 0.9rem;
  color: var(--c-muted);
  margin-inline: auto;
  max-width: 22ch;
}

@media (max-width: 899px) and (min-width: 640px) {
  .steps-row { grid-template-columns: repeat(2, 1fr); gap: var(--s-8) var(--s-6); }
  .steps-row::before { display: none; }
}

@media (max-width: 639px) {
  .steps-row { grid-template-columns: 1fr; gap: var(--s-6); }
  .steps-row::before { display: none; }
  .step { text-align: left; display: flex; gap: var(--s-4); align-items: flex-start; padding: 0; }
  .step-num { width: 48px; height: 48px; font-size: 1.15rem; flex-shrink: 0; margin: 0; }
  .step p { max-width: none; margin-inline: 0; }
}

/* ── 4. FEATURES ─────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}

.feature-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: box-shadow var(--ease), border-color var(--ease);
}
.feature-card:hover {
  border-color: rgba(26,39,68,.2);
  box-shadow: 0 4px 20px rgba(26,39,68,.08);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(26,39,68,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  /* SVG icons inline — no icon CDN */
}

/* SVG icon inside .feature-icon */
.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--c-navy);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card h3 {
  font-size: 0.9375rem;
  margin-bottom: var(--s-2);
}
.feature-card p {
  font-size: 0.875rem;
  color: var(--c-muted);
  line-height: 1.55;
  max-width: none;
}

@media (max-width: 767px) { .features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .features-grid { grid-template-columns: 1fr; } }

/* ── 5. SUBJECTS GRID ────────────────────────────────────── */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s-3);
}

.subject-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: var(--s-4) var(--s-5);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--s-3);
  min-width: 0;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.subject-card:hover {
  border-color: var(--c-navy);
  box-shadow: 0 2px 12px rgba(26,39,68,.07);
}

.subject-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.35;
  max-width: none;
  min-width: 0;
  overflow-wrap: break-word;
}

.subject-qs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 6px;
  background: var(--c-navy);
  color: var(--c-gold);
  font-family: var(--f-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 3px;
  flex-shrink: 0;
  line-height: 1;
  letter-spacing: .02em;
}

.subjects-note {
  text-align: center;
  margin-top: var(--s-6);
  font-size: 0.8125rem;
  color: var(--c-faint);
  max-width: none;
}

@media (max-width: 479px) {
  .subjects-grid { grid-template-columns: 1fr 1fr; }
  .subject-card { padding: var(--s-3) var(--s-4); }
}

/* ── 6. MOCK TEST PREVIEW ────────────────────────────────── */
.tests-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--s-5);
}

.test-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--ease);
}
.test-card:hover { box-shadow: 0 4px 20px rgba(26,39,68,.08); }

.test-card-header {
  background: var(--c-navy);
  padding: var(--s-5) var(--s-5) var(--s-4);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.test-card-title {
  font-family: var(--f-head);
  font-size: 0.9375rem;
  color: #fff;
  line-height: 1.3;
  max-width: none;
}
.test-card-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 3px;
  flex-shrink: 0;
}
.test-card-badge--free {
  background: var(--c-green);
  color: #fff;
}
.test-card-badge--lock {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.6);
}

.test-card-body {
  padding: var(--s-4) var(--s-5) var(--s-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.test-meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.test-meta-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.8125rem;
  color: var(--c-muted);
  max-width: none;
}
.test-meta-row svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke: var(--c-faint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.test-card-body .btn { margin-top: auto; }

/* Locked overlay */
.test-card--locked .test-card-body { position: relative; }
.test-locked-overlay {
  position: absolute;
  inset: 0;
  background: rgba(248,249,250,.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  backdrop-filter: blur(2px);
  text-align: center;
  padding: var(--s-4);
}
.lock-icon {
  width: 32px;
  height: 32px;
  stroke: var(--c-faint);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.test-locked-overlay p {
  font-size: 0.8125rem;
  color: var(--c-muted);
  max-width: 20ch;
  margin-inline: auto;
  line-height: 1.4;
}

.tests-cta-row {
  text-align: center;
  margin-top: var(--s-8);
}

/* ── 7. PRICING ──────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-6);
  max-width: 760px;
  margin-inline: auto;
}

.plan-card {
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.plan-card--featured {
  border-color: var(--c-navy);
  box-shadow: 0 8px 32px rgba(26,39,68,.12);
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-gold);
  color: var(--c-navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name {
  font-family: var(--f-head);
  font-size: 1.25rem;
  color: var(--c-navy);
  max-width: none;
}
.plan-price {
  line-height: 1;
}
.plan-amount {
  font-family: var(--f-head);
  font-size: 2.5rem;
  color: var(--c-navy);
  font-variant-numeric: tabular-nums;
}
.plan-amount--free { color: var(--c-green); }
.plan-period {
  font-size: 0.875rem;
  color: var(--c-muted);
  margin-top: var(--s-1);
  max-width: none;
}
.plan-strike {
  font-size: 0.8125rem;
  color: var(--c-faint);
  text-decoration: line-through;
  max-width: none;
}
.plan-eb-note {
  font-size: 0.75rem;
  color: var(--c-gold-txt);
  font-weight: 600;
  max-width: none;
  margin-top: var(--s-1);
}

.plan-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0;
}

.plan-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.plan-feature {
  display: flex;
  gap: var(--s-2);
  align-items: flex-start;
  font-size: 0.875rem;
  color: var(--c-text);
  max-width: none;
}
.plan-feature::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  /* CSS check/cross icons */
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}
.plan-feature--yes::before {
  background-color: rgba(45,122,79,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2 2 4-4' stroke='%232d7a4f' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.plan-feature--no::before {
  background-color: rgba(148,148,168,.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M3 3l4 4M7 3l-4 4' stroke='%239494a8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
.plan-feature--no { color: var(--c-faint); }

@media (max-width: 599px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .plan-card--featured { margin-top: var(--s-4); }
}

/* ── 8. FAQ ACCORDION ────────────────────────────────────── */
.faq-list {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.faq-list details {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  overflow: hidden;
}
.faq-list details[open] { border-color: rgba(26,39,68,.2); }

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  cursor: pointer;
  list-style: none;
  font-family: var(--f-head);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.35;
  transition: background var(--ease);
  max-width: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary { background: rgba(26,39,68,.025); }
.faq-list summary:hover { background: rgba(26,39,68,.03); }

/* Arrow icon */
.faq-list summary::after {
  content: '';
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%231a2744' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
  transition: transform .2s ease;
}
.faq-list details[open] summary::after { transform: rotate(180deg); }

.faq-answer {
  padding: 0 var(--s-6) var(--s-6);
  border-top: 1px solid var(--c-border);
  padding-top: var(--s-5);
}
.faq-answer p {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.7;
  max-width: none;
}
.faq-answer p + p { margin-top: var(--s-3); }

/* ── 9. FINAL CTA SECTION ────────────────────────────────── */
.final-cta {
  background: var(--c-navy);
  text-align: center;
  padding: var(--s-20) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(201,168,76,.08) 0%, transparent 60%);
  pointer-events: none;
}
.final-cta h2 {
  color: #fff;
  position: relative;
  margin-bottom: var(--s-4);
}
.final-cta h2 em {
  font-style: normal;
  color: var(--c-gold);
}
.final-cta p {
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
  margin-inline: auto;
  margin-bottom: var(--s-8);
  position: relative;
}
.final-cta-actions {
  display: flex;
  gap: var(--s-4);
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.final-cta-note {
  margin-top: var(--s-5);
  font-size: 0.8125rem;
  color: rgba(255,255,255,.35);
  position: relative;
  max-width: none;
}

/* ── 10. INSIDE PAGES — shared tweaks ────────────────────── */
/* used by tests.html, bare-acts.html, about.html */

.inner-hero {
  background: var(--c-navy);
  padding: var(--s-12) 0;
  position: relative;
  overflow: hidden;
}
.inner-hero::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--c-gold);
}
.inner-hero h1 {
  color: #fff;
  margin-bottom: var(--s-3);
}
.inner-hero p {
  color: rgba(255,255,255,.65);
  font-size: 1.0625rem;
  max-width: 52ch;
}

.inner-hero-eyebrow {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--c-gold);
  font-weight: 700;
  margin-bottom: var(--s-3);
  max-width: none;
}

/* Filter bar for tests/bare-acts pages */
.filter-bar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: var(--s-6);
}
.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-muted);
  white-space: nowrap;
  max-width: none;
}
.filter-chips {
  display: flex;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 var(--s-4);
  border-radius: 20px;
  border: 1.5px solid var(--c-border);
  background: var(--c-surface);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-muted);
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.filter-chip:hover { border-color: var(--c-navy); color: var(--c-navy); }
.filter-chip.is-active {
  background: var(--c-navy);
  border-color: var(--c-navy);
  color: #fff;
}
