/* ============================================================================
   Sprafo — Homepage Redesign v2 "Threshold"
   Concept: precision-engineered exam preparation. The moment you cross from
   learner to exam-passer. Midnight hero, Inter type, amber action colour,
   signature animated results card.

   Scope: .sf-home-v2 on <main> — zero bleed to other pages.
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Tokens ─────────────────────────────────────────────────────────────────── */
.sf-home-v2 {
  --hv-midnight: #07152a;
  --hv-midnight-2: #0d2240;
  --hv-blue: #1d4ed8;
  --hv-gold: #f59e0b;
  --hv-gold-dk: #d97706;
  --hv-emerald: #22c55e;
  --hv-red: #ef4444;
  --hv-canvas: #f0f4ff;
  --hv-surface: #ffffff;
  --hv-text: #0f172a;
  --hv-muted: #64748b;
  --hv-border: #e2e8f0;
  --hv-font: 'Inter', system-ui, -apple-system, sans-serif;
  font-family: var(--hv-font);
  color: var(--hv-text);
}

/* ============================================================================
   1. HERO
   ============================================================================ */
.sf-home-v2 .h2-hero {
  background:
    radial-gradient(ellipse 90% 70% at 75% -5%,  rgba(29, 78, 216, 0.30) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at  4% 95%,  rgba(245,158, 11, 0.14) 0%, transparent 50%),
    linear-gradient(158deg, #071525 0%, #0a1e3c 52%, #071525 100%);
  padding-block: clamp(5rem, 9vw, 7.5rem) clamp(4rem, 7vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* Subtle grid texture */
.sf-home-v2 .h2-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.sf-home-v2 .h2-hero > .container { position: relative; z-index: 1; }

/* Eyebrow badge */
.sf-home-v2 .h2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(245,158,11,0.45);
  background: rgba(245,158,11,0.10);
  color: #fcd34d;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(6px);
}
.sf-home-v2 .h2-eyebrow-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245,158,11,0.3);
}

/* Headline */
.sf-home-v2 .h2-hero h1 {
  font-family: var(--hv-font);
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.06;
  color: #ffffff;
  text-wrap: balance;
  margin-bottom: 1.25rem;
}
.sf-home-v2 .h2-hero h1 .h2-accent {
  color: var(--hv-gold);
}

/* Subtitle */
.sf-home-v2 .h2-hero .h2-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  max-width: 52ch;
  margin-bottom: 2.25rem;
}

/* CTA row */
.sf-home-v2 .h2-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.sf-home-v2 .h2-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 0.65rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #1c0d00;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(245,158,11,0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.sf-home-v2 .h2-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(245,158,11,0.50);
  color: #1c0d00;
  text-decoration: none;
}
.sf-home-v2 .h2-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.9rem;
  border-radius: 0.65rem;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.88);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.20);
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.sf-home-v2 .h2-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  color: #fff;
  text-decoration: none;
}

/* Group buttons */
.sf-home-v2 .h2-group-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Trust microcopy */
.sf-home-v2 .h2-trust {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.42);
  margin: 0;
}
.sf-home-v2 .h2-trust a {
  color: rgba(245,158,11,0.85);
  text-decoration: none;
  font-weight: 600;
}
.sf-home-v2 .h2-trust a:hover { color: var(--hv-gold); }

/* ── Hero card animations ─────────────────────────────────────────────────── */
@keyframes hv-card-rise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes hv-ring-fill {
  from { stroke-dashoffset: 326.73; }
  to   { stroke-dashoffset:  42.47; }
}
@keyframes hv-check-pop {
  0%   { opacity: 0; transform: scale(0.3); }
  65%  { transform: scale(1.25); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes hv-badge-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hv-bar-grow {
  from { width: 0; }
  to   { width: var(--pct, 80%); }
}
@keyframes hv-hero-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sf-home-v2 .h2-eyebrow        { animation: hv-hero-up 0.55s ease-out 0.10s both; }
.sf-home-v2 .h2-hero h1         { animation: hv-hero-up 0.60s ease-out 0.20s both; }
.sf-home-v2 .h2-sub             { animation: hv-hero-up 0.60s ease-out 0.35s both; }
.sf-home-v2 .h2-cta-row         { animation: hv-hero-up 0.60s ease-out 0.50s both; }
.sf-home-v2 .h2-group-row       { animation: hv-hero-up 0.55s ease-out 0.60s both; }
.sf-home-v2 .h2-trust           { animation: hv-hero-up 0.50s ease-out 0.68s both; }

/* ── Score Card ──────────────────────────────────────────────────────────── */
.sf-home-v2 .hsc {
  background: rgba(255,255,255,0.065);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 1.15rem;
  backdrop-filter: blur(20px);
  padding: 1.6rem;
  min-width: 300px;
  max-width: 360px;
  box-shadow:
    0 28px 64px rgba(5,12,28,0.55),
    inset 0 1px 0 rgba(255,255,255,0.12);
  animation: hv-card-rise 0.7s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
.sf-home-v2 .hsc:hover {
  transform: translateY(-4px);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}

.sf-home-v2 .hsc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.sf-home-v2 .hsc-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.sf-home-v2 .hsc-level {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(29,78,216,0.55);
  color: #a5b4fc;
  border: 1px solid rgba(99,102,241,0.35);
  letter-spacing: 0.04em;
}

/* Pass badge */
.sf-home-v2 .hsc-pass {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #4ade80;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.30);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  animation: hv-badge-in 0.5s ease-out 2.6s both;
}
.sf-home-v2 .hsc-pass-icon { flex-shrink: 0; }

/* Ring section */
.sf-home-v2 .hsc-ring-section {
  display: flex;
  justify-content: center;
  margin-bottom: 1.35rem;
}
.sf-home-v2 .hsc-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
}
.sf-home-v2 .hsc-ring-svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
}
.sf-home-v2 .hsc-ring-track {
  stroke: rgba(255,255,255,0.10);
  fill: none;
}
.sf-home-v2 .hsc-ring-fill {
  fill: none;
  stroke: url(#hsc-ring-grad);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  animation: hv-ring-fill 1.8s cubic-bezier(0.25,1,0.5,1) 0.8s forwards;
}
.sf-home-v2 .hsc-ring-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.sf-home-v2 .hsc-score-num {
  font-size: 2.4rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1;
}
.sf-home-v2 .hsc-score-pct {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hv-gold);
  margin-top: 0.1rem;
}
.sf-home-v2 .hsc-score-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* Parts list */
.sf-home-v2 .hsc-parts { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.25rem; }
.sf-home-v2 .hsc-part {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.sf-home-v2 .hsc-check {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: rgba(34,197,94,0.18);
  border: 1.5px solid rgba(34,197,94,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  color: #4ade80;
}
.sf-home-v2 .hsc-check svg { width: 0.6rem; height: 0.6rem; }

.sf-home-v2 .hsc-part-1 .hsc-check { animation: hv-check-pop 0.35s ease-out 1.4s forwards; }
.sf-home-v2 .hsc-part-2 .hsc-check { animation: hv-check-pop 0.35s ease-out 1.65s forwards; }
.sf-home-v2 .hsc-part-3 .hsc-check { animation: hv-check-pop 0.35s ease-out 1.90s forwards; }
.sf-home-v2 .hsc-part-4 .hsc-check { animation: hv-check-pop 0.35s ease-out 2.15s forwards; }
.sf-home-v2 .hsc-part-5 .hsc-check { animation: hv-check-pop 0.35s ease-out 2.40s forwards; }

.sf-home-v2 .hsc-part-name {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.70);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-home-v2 .hsc-bar-wrap {
  width: 52px;
  height: 4px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}
.sf-home-v2 .hsc-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
  width: 0;
}
.sf-home-v2 .hsc-part-1 .hsc-bar { animation: hv-bar-grow 0.6s ease-out 1.4s forwards; --pct: 92%; }
.sf-home-v2 .hsc-part-2 .hsc-bar { animation: hv-bar-grow 0.6s ease-out 1.65s forwards; --pct: 85%; }
.sf-home-v2 .hsc-part-3 .hsc-bar { animation: hv-bar-grow 0.6s ease-out 1.90s forwards; --pct: 78%; }
.sf-home-v2 .hsc-part-4 .hsc-bar { animation: hv-bar-grow 0.6s ease-out 2.15s forwards; --pct: 91%; }
.sf-home-v2 .hsc-part-5 .hsc-bar { animation: hv-bar-grow 0.6s ease-out 2.40s forwards; --pct: 88%; }

/* Card footer */
.sf-home-v2 .hsc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.sf-home-v2 .hsc-timer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
}
.sf-home-v2 .hsc-result {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
}

/* ============================================================================
   2. STATS STRIP
   ============================================================================ */
.sf-home-v2 .h2-stats {
  background: var(--hv-surface);
  border-bottom: 1px solid var(--hv-border);
  padding-block: 2.5rem;
}
.sf-home-v2 .h2-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.sf-home-v2 .h2-stat {
  text-align: center;
  padding: 0.75rem 1.5rem;
}
.sf-home-v2 .h2-stat + .h2-stat {
  border-left: 1px solid var(--hv-border);
}
.sf-home-v2 .h2-stat-num {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--hv-text);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.sf-home-v2 .h2-stat-num span {
  color: var(--hv-gold);
}
.sf-home-v2 .h2-stat-label {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--hv-muted);
  letter-spacing: 0.01em;
}

/* ============================================================================
   3. SECTION BASE STYLES
   ============================================================================ */
.sf-home-v2 .h2-section {
  padding-block: clamp(4rem, 7vw, 5.5rem);
}
.sf-home-v2 .h2-canvas { background: var(--hv-canvas); }
.sf-home-v2 .h2-white  { background: var(--hv-surface); }
.sf-home-v2 .h2-dark   {
  background: linear-gradient(160deg, #07152a 0%, #0d2240 50%, #07152a 100%);
  color: #fff;
}

/* Section heading group */
.sf-home-v2 .h2-head { text-align: center; margin-bottom: 3.25rem; }
.sf-home-v2 .h2-overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hv-gold-dk);
  margin-bottom: 0.65rem;
}
.sf-home-v2 .h2-dark .h2-overline { color: var(--hv-gold); }
.sf-home-v2 .h2-section-title {
  font-family: var(--hv-font);
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--hv-text);
  text-wrap: balance;
  margin-bottom: 0.85rem;
}
.sf-home-v2 .h2-dark .h2-section-title { color: #fff; }
.sf-home-v2 .h2-section-sub {
  font-size: 1.05rem;
  color: var(--hv-muted);
  max-width: 55ch;
  margin-inline: auto;
  line-height: 1.65;
}
.sf-home-v2 .h2-dark .h2-section-sub { color: rgba(255,255,255,0.58); }

/* Decorative title underline */
.sf-home-v2 .h2-section-title::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  background: linear-gradient(90deg, var(--hv-blue), var(--hv-gold));
  border-radius: 999px;
  margin: 0.75rem auto 0;
}
.sf-home-v2 .h2-dark .h2-section-title::after {
  background: linear-gradient(90deg, #60a5fa, var(--hv-gold));
}

/* ============================================================================
   4. WHY SECTION — Feature cards
   ============================================================================ */
.sf-home-v2 .h2-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.sf-home-v2 .h2-why-card {
  background: var(--hv-surface);
  border: 1px solid var(--hv-border);
  border-radius: 1rem;
  padding: 2rem 1.75rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.sf-home-v2 .h2-why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hv-blue), var(--hv-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.sf-home-v2 .h2-why-card:hover::before { transform: scaleX(1); }
.sf-home-v2 .h2-why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(15,23,42,0.10);
  border-color: #cbd5e1;
}
.sf-home-v2 .h2-why-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
  position: relative;
}
.sf-home-v2 .h2-why-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255,255,255,0.4), transparent 60%);
}
.sf-home-v2 .h2-why-icon-blue  { background: #dbeafe; color: #1d4ed8; }
.sf-home-v2 .h2-why-icon-green { background: #dcfce7; color: #16a34a; }
.sf-home-v2 .h2-why-icon-amber { background: #fef3c7; color: #d97706; }
.sf-home-v2 .h2-why-icon-indigo{ background: #e0e7ff; color: #4338ca; }

.sf-home-v2 .h2-why-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hv-text);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.sf-home-v2 .h2-why-card p {
  font-size: 0.9rem;
  color: var(--hv-muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================================
   5. EXAM PARTS GRID
   ============================================================================ */
.sf-home-v2 .h2-parts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.sf-home-v2 .h2-part-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  background: var(--hv-surface);
  border: 1px solid var(--hv-border);
  border-radius: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sf-home-v2 .h2-part-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.09);
}
.sf-home-v2 .h2-part-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.sf-home-v2 .h2-part-icon-blue   { background: #dbeafe; color: #1d4ed8; }
.sf-home-v2 .h2-part-icon-green  { background: #dcfce7; color: #16a34a; }
.sf-home-v2 .h2-part-icon-sky    { background: #e0f2fe; color: #0284c7; }
.sf-home-v2 .h2-part-icon-amber  { background: #fef3c7; color: #d97706; }
.sf-home-v2 .h2-part-icon-rose   { background: #ffe4e6; color: #e11d48; }
.sf-home-v2 .h2-part-body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hv-text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}
.sf-home-v2 .h2-part-body p {
  font-size: 0.82rem;
  color: var(--hv-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================================
   6. HOW IT WORKS (dark section with step timeline)
   ============================================================================ */
.sf-home-v2 .h2-steps-wrap { position: relative; }
.sf-home-v2 .h2-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
/* Connecting amber line on desktop */
.sf-home-v2 .h2-steps::before {
  content: '';
  position: absolute;
  top: 1.25rem; /* half of step-dot 2.5rem */
  left: calc(12.5% - 0.5px);
  right: calc(12.5% - 0.5px);
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(245,158,11,0.35) 10%,
    rgba(245,158,11,0.35) 90%,
    transparent 100%
  );
}
.sf-home-v2 .h2-step { text-align: center; }
.sf-home-v2 .h2-step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(245,158,11,0.15);
  border: 2px solid rgba(245,158,11,0.55);
  color: var(--hv-gold);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.sf-home-v2 .h2-step:hover .h2-step-dot {
  background: rgba(245,158,11,0.28);
  border-color: var(--hv-gold);
}
.sf-home-v2 .h2-step-icon {
  font-size: 1.65rem;
  color: rgba(255,255,255,0.50);
  margin-bottom: 0.75rem;
}
.sf-home-v2 .h2-step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.sf-home-v2 .h2-step p {
  font-size: 0.86rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   7. FEATURES (supplemental 2x2 under Why or standalone)
   ============================================================================ */
.sf-home-v2 .h2-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.sf-home-v2 .h2-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--hv-surface);
  border: 1px solid var(--hv-border);
  border-radius: 0.85rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.sf-home-v2 .h2-feat-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,0.09);
}
.sf-home-v2 .h2-feat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.sf-home-v2 .h2-feat-body h4 {
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--hv-text);
  margin: 0 0 0.3rem;
}
.sf-home-v2 .h2-feat-body p {
  font-size: 0.85rem;
  color: var(--hv-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================================
   8. PRICING TEASER
   ============================================================================ */
.sf-home-v2 .h2-pricing-band {
  background: linear-gradient(135deg, #eff6ff 0%, #f0f4ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 1.25rem;
  padding: 2.75rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.sf-home-v2 .h2-pricing-band h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hv-text);
  margin-bottom: 0.5rem;
}
.sf-home-v2 .h2-pricing-band p {
  font-size: 0.95rem;
  color: var(--hv-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 50ch;
}
.sf-home-v2 .h2-pricing-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--hv-blue) 0%, #1e40af 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.97rem;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(29,78,216,0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
.sf-home-v2 .h2-pricing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(29,78,216,0.44);
  color: #fff;
  text-decoration: none;
}

/* ============================================================================
   9. FAQ
   ============================================================================ */
.sf-home-v2 .h2-faq .accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #dde5f0;
}
.sf-home-v2 .h2-faq .accordion-item:first-of-type { border-top: 1px solid #dde5f0; }
.sf-home-v2 .h2-faq .accordion-button {
  background: transparent;
  color: var(--hv-text);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 1.25rem 0;
  box-shadow: none;
  gap: 1rem;
}
.sf-home-v2 .h2-faq .accordion-button:not(.collapsed) {
  color: var(--hv-blue);
  background: transparent;
  box-shadow: none;
}
.sf-home-v2 .h2-faq .accordion-button::after {
  width: 1.25rem;
  height: 1.25rem;
  background-image: none;
  content: '+';
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--hv-muted);
  flex-shrink: 0;
  margin-left: auto;
  transform: none;
  transition: transform 0.2s ease, color 0.2s ease;
}
.sf-home-v2 .h2-faq .accordion-button:not(.collapsed)::after {
  content: '−';
  color: var(--hv-blue);
  transform: none;
}
.sf-home-v2 .h2-faq .accordion-body {
  padding: 0 0 1.25rem;
  color: var(--hv-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

/* ============================================================================
   10. COMMUNITY GROUPS
   ============================================================================ */
.sf-home-v2 .h2-community {
  background: var(--hv-surface);
  border-top: 1px solid var(--hv-border);
  border-bottom: 1px solid var(--hv-border);
}
.sf-home-v2 .h2-community-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1px solid #bbf7d0;
  border-radius: 1.25rem;
  padding: 2.75rem 3rem;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.sf-home-v2 .h2-community-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--hv-text);
  margin-bottom: 0.5rem;
}
.sf-home-v2 .h2-community-card p {
  font-size: 0.95rem;
  color: #4b6f52;
  margin-bottom: 1.75rem;
}

/* ============================================================================
   11. FINAL CTA
   ============================================================================ */
.sf-home-v2 .h2-cta-section {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 45%, #fbbf24 100%);
  padding-block: clamp(4rem, 7vw, 6rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sf-home-v2 .h2-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 20% 50%, rgba(255,255,255,0.35) 0%, transparent 100%),
    radial-gradient(circle 1px at 75% 30%, rgba(255,255,255,0.20) 0%, transparent 100%),
    radial-gradient(circle 3px at 55% 80%, rgba(255,255,255,0.15) 0%, transparent 100%);
  pointer-events: none;
}
.sf-home-v2 .h2-cta-section > .container { position: relative; z-index: 1; }
.sf-home-v2 .h2-cta-section h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}
.sf-home-v2 .h2-cta-section p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  margin-bottom: 2.25rem;
}
.sf-home-v2 .h2-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1rem 2.5rem;
  border-radius: 0.75rem;
  background: #fff;
  color: #92400e;
  font-weight: 800;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.sf-home-v2 .h2-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(0,0,0,0.24);
  color: #92400e;
  text-decoration: none;
}

/* ============================================================================
   12. SCROLL REVEAL (JS adds .h2-visible)
   ============================================================================ */
.sf-home-v2 [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.sf-home-v2 [data-reveal].h2-visible {
  opacity: 1;
  transform: translateY(0);
}
.sf-home-v2 [data-reveal-delay="1"] { transition-delay: 0.08s; }
.sf-home-v2 [data-reveal-delay="2"] { transition-delay: 0.16s; }
.sf-home-v2 [data-reveal-delay="3"] { transition-delay: 0.24s; }
.sf-home-v2 [data-reveal-delay="4"] { transition-delay: 0.32s; }
.sf-home-v2 [data-reveal-delay="5"] { transition-delay: 0.40s; }
.sf-home-v2 [data-reveal-delay="6"] { transition-delay: 0.48s; }

/* ============================================================================
   13. REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  .sf-home-v2 *,
  .sf-home-v2 *::before,
  .sf-home-v2 *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .sf-home-v2 .hsc-check { opacity: 1; }
  .sf-home-v2 .hsc-pass  { opacity: 1; }
  .sf-home-v2 .hsc-ring-fill { stroke-dashoffset: 42.47; }
  .sf-home-v2 .hsc-bar { width: var(--pct, 80%); }
  .sf-home-v2 [data-reveal] { opacity: 1; transform: none; }
}

/* ============================================================================
   14. DARK MODE
   ============================================================================ */
html[data-theme="dark"] .sf-home-v2 {
  --hv-surface: #1a2432;
  --hv-canvas:  #0f1a2e;
  --hv-text:    #e7edf4;
  --hv-muted:   #8da4be;
  --hv-border:  #2a3647;
}
html[data-theme="dark"] .sf-home-v2 .h2-why-card,
html[data-theme="dark"] .sf-home-v2 .h2-part-card,
html[data-theme="dark"] .sf-home-v2 .h2-feat-item {
  background: #1a2432;
  border-color: #2a3647;
}
html[data-theme="dark"] .sf-home-v2 .h2-why-card h3,
html[data-theme="dark"] .sf-home-v2 .h2-part-body h4,
html[data-theme="dark"] .sf-home-v2 .h2-feat-body h4 { color: #e7edf4; }
html[data-theme="dark"] .sf-home-v2 .h2-stats { background: #0f1a2e; border-color: #2a3647; }
html[data-theme="dark"] .sf-home-v2 .h2-stat-num { color: #e7edf4; }
html[data-theme="dark"] .sf-home-v2 .h2-stat + .h2-stat { border-color: #2a3647; }
html[data-theme="dark"] .sf-home-v2 .h2-pricing-band {
  background: linear-gradient(135deg, #0f1a2e 0%, #1a2432 100%);
  border-color: #2a3647;
}
html[data-theme="dark"] .sf-home-v2 .h2-pricing-band h2 { color: #e7edf4; }
html[data-theme="dark"] .sf-home-v2 .h2-faq .accordion-button { color: #e7edf4; }
html[data-theme="dark"] .sf-home-v2 .h2-faq .accordion-item { border-color: #2a3647; }
html[data-theme="dark"] .sf-home-v2 .h2-faq .accordion-item:first-of-type { border-color: #2a3647; }
html[data-theme="dark"] .sf-home-v2 .h2-community-card {
  background: linear-gradient(135deg, #0f2016 0%, #162b1c 100%);
  border-color: #1e4328;
}
html[data-theme="dark"] .sf-home-v2 .h2-community-card h2 { color: #e7edf4; }
html[data-theme="dark"] .sf-home-v2 .h2-why-icon-blue   { background: rgba(29,78,216,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-why-icon-green  { background: rgba(22,163,74,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-why-icon-amber  { background: rgba(217,119,6,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-why-icon-indigo { background: rgba(67,56,202,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-part-icon-blue  { background: rgba(29,78,216,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-part-icon-green { background: rgba(22,163,74,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-part-icon-sky   { background: rgba(2,132,199,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-part-icon-amber { background: rgba(217,119,6,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-part-icon-rose  { background: rgba(225,29,72,0.20); }
html[data-theme="dark"] .sf-home-v2 .h2-feat-icon       { opacity: 0.85; }

/* ============================================================================
   15. RTL SUPPORT
   ============================================================================ */
[dir="rtl"] .sf-home-v2 .h2-eyebrow { letter-spacing: 0; }
[dir="rtl"] .sf-home-v2 .h2-section-title::after { margin-inline: auto; }
[dir="rtl"] .sf-home-v2 .h2-why-card::before { transform-origin: right; }
[dir="rtl"] .sf-home-v2 .h2-steps::before { transform: scaleX(-1); }
[dir="rtl"] .sf-home-v2 .hsc-ring-fill { transform: scaleX(-1); transform-origin: 60px 60px; }

/* ============================================================================
   16. RESPONSIVE
   ============================================================================ */
@media (max-width: 991.98px) {
  /* Hero: stack card below */
  .sf-home-v2 .h2-hero .h2-sub { max-width: 100%; }

  /* Stats: 2x2 */
  .sf-home-v2 .h2-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-home-v2 .h2-stat:nth-child(2) { border-left: 1px solid var(--hv-border); }
  .sf-home-v2 .h2-stat:nth-child(3) { border-left: none; border-top: 1px solid var(--hv-border); }
  .sf-home-v2 .h2-stat:nth-child(4) { border-left: 1px solid var(--hv-border); border-top: 1px solid var(--hv-border); }

  /* Why: 2+1 */
  .sf-home-v2 .h2-why-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-home-v2 .h2-why-grid .h2-why-card:last-child { grid-column: span 2; max-width: 480px; margin: 0 auto; width: 100%; }

  /* Exam parts: 2 col */
  .sf-home-v2 .h2-parts-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-home-v2 .h2-parts-grid .h2-part-card:last-child { grid-column: span 2; max-width: 380px; margin: 0 auto; width: 100%; }

  /* How it works: 2x2, hide line */
  .sf-home-v2 .h2-steps { grid-template-columns: repeat(2, 1fr); }
  .sf-home-v2 .h2-steps::before { display: none; }

  /* Features: 1 col */
  .sf-home-v2 .h2-feat-grid { grid-template-columns: 1fr; }

  /* Pricing band: stack */
  .sf-home-v2 .h2-pricing-band { flex-direction: column; text-align: center; padding: 2rem; }
  .sf-home-v2 .h2-pricing-band p { max-width: 100%; }

  /* Community */
  .sf-home-v2 .h2-community-card { padding: 2rem 1.5rem; }

  /* Hero score card: center below hero text */
  .sf-home-v2 .hsc { margin: 0 auto; }
}

@media (max-width: 575.98px) {
  /* Stats: 1 col on smallest */
  .sf-home-v2 .h2-stats-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why/parts: 1 col */
  .sf-home-v2 .h2-why-grid { grid-template-columns: 1fr; }
  .sf-home-v2 .h2-why-grid .h2-why-card:last-child { grid-column: span 1; max-width: 100%; }
  .sf-home-v2 .h2-parts-grid { grid-template-columns: 1fr; }
  .sf-home-v2 .h2-parts-grid .h2-part-card:last-child { grid-column: span 1; max-width: 100%; }

  /* Steps: 1 col */
  .sf-home-v2 .h2-steps { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

  /* Score card smaller */
  .sf-home-v2 .hsc { min-width: auto; max-width: 100%; }

  /* CTA section */
  .sf-home-v2 .h2-cta-section h2 { font-size: 1.75rem; }

  /* Section padding */
  .sf-home-v2 .h2-section { padding-block: 3rem; }
}

/* ═══════════════════════════════════════════════════════════════
   Comprehensive Exam Overview Card  (appended — preserves old rules)
   ═══════════════════════════════════════════════════════════════ */

/* ── Section rows ──────────────────────────────────────────── */
.sf-home-v2 .hsc-exam-rows {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.sf-home-v2 .hsc-exam-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  border-radius: 0.55rem;
  background: rgba(255,255,255,.05);
  opacity: 0;
  transform: translateX(-8px);
}
.sf-home-v2 .hsc-exam-row--1 { animation: hv-row-in .35s ease-out 1.0s forwards; }
.sf-home-v2 .hsc-exam-row--2 { animation: hv-row-in .35s ease-out 1.2s forwards; }
.sf-home-v2 .hsc-exam-row--3 { animation: hv-row-in .35s ease-out 1.4s forwards; }
.sf-home-v2 .hsc-exam-row--4 { animation: hv-row-in .35s ease-out 1.6s forwards; }

@keyframes hv-row-in { to { opacity: 1; transform: translateX(0); } }

/* Section icon */
.sf-home-v2 .hsc-er-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .82rem;
  flex-shrink: 0;
}
.sf-home-v2 .hsc-exam-row--1 .hsc-er-icon { background: rgba(29,78,216,.25);  color: #93c5fd; }
.sf-home-v2 .hsc-exam-row--2 .hsc-er-icon { background: rgba(99,102,241,.25); color: #a5b4fc; }
.sf-home-v2 .hsc-exam-row--3 .hsc-er-icon { background: rgba(22,163,74,.22);  color: #86efac; }
.sf-home-v2 .hsc-exam-row--4 .hsc-er-icon { background: rgba(14,165,233,.22); color: #7dd3fc; }

/* Section body (name + parts) */
.sf-home-v2 .hsc-er-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
  min-width: 0;
}
.sf-home-v2 .hsc-er-name {
  font-size: .81rem;
  font-weight: 600;
  color: #e2e8f0;
  white-space: nowrap;
}
.sf-home-v2 .hsc-er-parts {
  font-size: .7rem;
  color: rgba(148,163,184,.8);
}
.sf-home-v2 .hsc-er-parts--ai {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  color: #fcd34d;
}

/* Points */
.sf-home-v2 .hsc-er-pts {
  font-size: .84rem;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: right;
  min-width: 38px;
}
.sf-home-v2 .hsc-er-pts span {
  font-size: .62rem;
  font-weight: 500;
  color: #475569;
  margin-left: .12rem;
}

/* ── Totals row ────────────────────────────────────────────── */
.sf-home-v2 .hsc-totals-row {
  display: flex;
  align-items: stretch;
  padding: .7rem 0 .1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  opacity: 0;
  animation: hv-row-in .4s ease-out 1.9s forwards;
}
.sf-home-v2 .hsc-ti {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .06rem;
}
.sf-home-v2 .hsc-ti-sep {
  width: 1px;
  background: rgba(255,255,255,.08);
  flex-shrink: 0;
  margin: .05rem 0;
}
.sf-home-v2 .hsc-ti-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1;
}
.sf-home-v2 .hsc-ti-unit {
  font-size: .65rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sf-home-v2 .hsc-ti-label {
  font-size: .62rem;
  color: #475569;
  margin-top: .08rem;
}
.sf-home-v2 .hsc-ti--pass .hsc-ti-num  { color: #fcd34d; }
.sf-home-v2 .hsc-ti--pass .hsc-ti-unit { color: #fbbf24; }

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .sf-home-v2 .hsc-exam-row,
  .sf-home-v2 .hsc-totals-row { animation: none; opacity: 1; transform: none; }
}
