/* ============================================================
   PRiSM SAT R&W — additional styles
   Adds: jump card, founder section, testimonial grid,
   loop placeholder cards, header tweaks for R&W
   Reuses the design tokens defined in styles.css.
   ============================================================ */

/* --- HERO: score-jump card replaces predict card ---------- */
.jump-card { padding-top: 32px; padding-bottom: 28px; }
.predict-brand .card-suffix {
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
}
.jump-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 18px 0 22px;
}
.jump-from, .jump-to { text-align: center; }
.jump-num {
  font-size: 80px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  font-feature-settings: 'cv11' on, 'ss01' on;
}
.jump-num.orange { color: var(--orange); }
.jump-num sup {
  font-size: 38px;
  font-weight: 700;
  vertical-align: 28px;
  margin-left: 2px;
}
.jump-cap {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 8px;
}
.jump-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.jump-arrow-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-text);
  background: rgba(243,107,7,0.10);
  padding: 3px 8px;
  border-radius: 999px;
}
.traj-chart {
  margin: 18px 0 8px;
  width: 100%;
  height: 110px;
}
.traj-chart svg {
  width: 100%;
  height: 100%;
}


/* --- LOOP placeholder cards (replace screenshots) --------- */
.ph-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFCFE 100%);
  border: 1px solid #E4E8F0;
  border-radius: 18px;
  padding: 26px 26px 22px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.06);
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.ph-card-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.ph-foot {
  margin-top: auto;
  padding-top: 16px;
  font-size: 13px;
  color: var(--text-2);
  border-top: 1px dashed #E4E8F0;
  font-weight: 500;
}
.ph-foot.ok { color: #16A34A; }

/* PACE band placeholder */
.ph-bands {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.ph-band {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr auto;
  align-items: center;
  gap: 14px;
  font-size: 13.5px;
}
.ph-band > span:first-child { color: var(--ink); font-weight: 500; }
.ph-band > b { font-weight: 700; color: var(--ink); font-size: 13px; }
.ph-band.weak > span:first-child { color: #B45309; }
.ph-band.weak > b { color: #B45309; }
.ph-bar {
  height: 8px;
  background: #EEF2F7;
  border-radius: 999px;
  overflow: hidden;
}
.ph-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2563EB, #4D7EF0);
  border-radius: 999px;
}
.ph-band.weak .ph-bar i { background: linear-gradient(90deg, #F59E0B, #F36B07); }

/* LEARN placeholder */
.ph-learn-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.25;
}
.ph-learn-title em {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  color: var(--orange);
}
.ph-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.55;
  color: var(--text);
  padding: 12px 14px;
  background: #F4F6FA;
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  margin-bottom: 14px;
}
.ph-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 6px;
}
.ph-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid #E4E8F0;
  border-radius: 8px;
  font-size: 13.5px;
  background: #fff;
  color: var(--text);
}
.ph-opt b {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #EEF2F7;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
.ph-opt.right {
  background: rgba(22,163,74,0.06);
  border-color: rgba(22,163,74,0.30);
}
.ph-opt.right b {
  background: #16A34A;
  color: white;
}
.ph-tick {
  margin-left: auto;
  color: #16A34A;
  font-weight: 700;
  font-size: 14px;
}

/* CEMENT placeholder */
.ph-cement-num {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
}
.ph-cement-num span {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-2);
}
.ph-cement-label {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 14px;
  font-weight: 500;
}
.ph-cement-bar {
  height: 10px;
  background: #EEF2F7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
}
.ph-cement-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #16A34A, #22C55E);
}
.ph-cement-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  margin-bottom: 4px;
}
.ph-cement-grid .dot {
  height: 18px;
  border-radius: 5px;
  background: #EEF2F7;
}
.ph-cement-grid .dot.ok { background: #16A34A; }
.ph-cement-grid .dot.bad { background: #FCA5A5; }


/* ============================================================
   FOUNDER SECTION
   ============================================================ */
.founder-section {
  padding: 96px 0 88px;
  background: var(--surface);
}
.founder-head {
  text-align: center;
  margin-bottom: 56px;
}
.founder-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.founder-head h2 {
  font-size: 64px;
}

.founder-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 72px;
  align-items: start;
}

.founder-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.founder-photo-ring {
  position: absolute;
  inset: -10px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(243,107,7,0.18) 0%, rgba(37,99,235,0.10) 50%, transparent 100%);
  z-index: 0;
}
.founder-photo {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 24px;
  display: block;
  box-shadow: 0 20px 60px rgba(15,23,42,0.12);
  z-index: 1;
}

/* #1 GMAT instructor badge */
.founder-badge {
  position: absolute;
  top: 24px;
  left: -28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--ink);
  color: white;
  border-radius: 16px;
  padding: 14px 20px 14px 16px;
  box-shadow: 0 12px 32px rgba(13,21,38,0.25);
}
.badge-rank {
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--orange);
  font-feature-settings: 'cv11' on, 'ss01' on;
}
.badge-body {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
}
.badge-body b {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.badge-body span {
  color: rgba(255,255,255,0.7);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* stat chip on bottom-right of photo */
.founder-stat-chip {
  position: absolute;
  bottom: 28px;
  right: -28px;
  z-index: 3;
  background: white;
  border-radius: 16px;
  padding: 14px 18px;
  box-shadow: 0 12px 32px rgba(15,23,42,0.16);
  border: 1px solid rgba(15,23,42,0.06);
}
.founder-stat-chip b {
  display: block;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1;
  font-feature-settings: 'cv11' on, 'ss01' on;
}
.founder-stat-chip span {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  line-height: 1.35;
}

/* founder content side */
.founder-content { padding-top: 8px; }
.founder-name-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid #E4E8F0;
}
.founder-name {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0;
}
.founder-title {
  margin: 8px 0 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
}

.founder-bio {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 18px;
}
.founder-bio b { font-weight: 700; color: var(--ink); }

.founder-quote {
  position: relative;
  background: var(--warm-bg, #FFF6E6);
  border: 1px solid rgba(243,107,7,0.20);
  border-radius: 16px;
  padding: 24px 28px 22px 64px;
  margin: 24px 0;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}
.founder-quote em {
  font-style: italic;
  color: var(--orange-text);
}
.founder-quote .quote-mark {
  position: absolute;
  top: 8px;
  left: 22px;
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 72px;
  line-height: 1;
  color: var(--orange);
  font-weight: 600;
}
.founder-quote footer {
  margin-top: 14px;
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.founder-creds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #E4E8F0;
}
.founder-cred .cred-num {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  font-feature-settings: 'cv11' on, 'ss01' on;
  margin-bottom: 8px;
}
.founder-cred .cred-num sup {
  font-size: 18px;
  font-weight: 700;
  vertical-align: 14px;
  color: var(--orange);
}
.founder-cred .cred-yr {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-2);
}
.founder-cred .cred-label {
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-2);
}

.founder-lineage {
  margin-top: 64px;
  padding: 22px 26px;
  background: #F4F6FA;
  border: 1px solid #E4E8F0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.lineage-mark {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-text);
  background: rgba(243,107,7,0.10);
  padding: 8px 14px;
  border-radius: 999px;
}
.lineage-text {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.55;
}
.lineage-text b { color: var(--ink); font-weight: 700; }


/* ============================================================
   TESTIMONIALS / RESULTS SECTION
   ============================================================ */
.results-section {
  padding: 88px 0 92px;
  background: var(--canvas);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}

/* Featured (with photo) variant — 2-up, larger cards */
.testi-grid.testi-grid--featured {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.testi-card--featured {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 22px;
  border: 1px solid #E4E8F0;
  box-shadow: 0 8px 28px rgba(15,23,42,0.06);
  overflow: hidden;
  padding: 0;
}

.testi-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
  background: #EEF2F7;
}
.testi-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.testi-photo-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(13,21,38,0.45) 100%);
  pointer-events: none;
}
.testi-photo-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(13,21,38,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 13px 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
}
.testi-photo-badge svg { color: var(--orange); }
.testi-photo-badge--alt svg { color: #93C5FD; }

.testi-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.testi-card--featured .testi-jump {
  margin-bottom: 4px;
  font-feature-settings: 'cv11' on, 'ss01' on;
}
.testi-card--featured .testi-jump .from {
  font-size: 38px;
  font-weight: 700;
}
.testi-card--featured .testi-jump .to {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.testi-card--featured .testi-jump .from-soft {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  align-self: center;
  padding: 7px 12px;
  background: #EEF2F7;
  border-radius: 999px;
}
.testi-jump-cap {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 18px;
}

.testi-card--featured .testi-quote {
  font-family: 'Source Serif 4', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 22px;
  flex-grow: 1;
  position: relative;
  padding-left: 18px;
}
.testi-card--featured .testi-quote::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-radius: 2px;
  background: var(--orange);
}

.testi-card--featured .testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #E4E8F0;
}
.testi-card--featured .testi-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.testi-card--featured .testi-meta {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 3px;
}

/* Legacy 3-col cards kept for back-compat */
.testi-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 30px 28px 28px;
  border: 1px solid #E4E8F0;
  box-shadow: 0 2px 8px rgba(15,23,42,0.04);
  display: flex;
  flex-direction: column;
}
.testi-jump {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  font-feature-settings: 'cv11' on, 'ss01' on;
}
.testi-jump .from {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text-3);
}
.testi-jump svg { margin-bottom: 4px; }
.testi-jump .to {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--orange);
}
.testi-quote {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text);
  margin: 0 0 24px;
  flex-grow: 1;
}
.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid #E4E8F0;
}
.testi-avatar {
  width: 40px; height: 40px;
  border-radius: 999px;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.testi-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.testi-meta {
  font-size: 12.5px;
  color: var(--text-2);
  margin-top: 2px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .founder-grid { grid-template-columns: 1fr; gap: 48px; }
  .founder-photo-wrap { max-width: 420px; }
  .founder-head h2 { font-size: 44px; }
  .founder-name { font-size: 32px; }
  .founder-quote { padding: 22px 22px 20px 56px; font-size: 16px; }
  .founder-creds { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .founder-cred .cred-num { font-size: 30px; }
  .testi-grid { grid-template-columns: 1fr; }
  .testi-grid.testi-grid--featured { grid-template-columns: 1fr; }
  .jump-num { font-size: 60px; }
  .jump-num sup { font-size: 28px; vertical-align: 20px; }
  .founder-lineage { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 640px) {
  .founder-section { padding: 64px 0 56px; }
  .founder-head h2 { font-size: 32px; }
  .founder-name { font-size: 26px; }
  .founder-photo-wrap { max-width: 100%; }
  .founder-badge { left: -8px; padding: 10px 14px 10px 12px; }
  .badge-rank { font-size: 28px; }
  .founder-stat-chip { right: -8px; bottom: 16px; padding: 10px 14px; }
  .founder-stat-chip b { font-size: 22px; }
  .founder-bio { font-size: 15px; }
  .founder-quote { font-size: 15px; padding: 20px 18px 18px 48px; }
  .founder-quote .quote-mark { font-size: 56px; left: 14px; }
  .founder-creds { grid-template-columns: 1fr; padding-top: 22px; margin-top: 22px; gap: 18px; }
  .results-section { padding: 64px 0; }
  .testi-card { padding: 24px 22px; }
  .jump-row { gap: 8px; }
  .jump-num { font-size: 48px; }
}
