/* ============================================================
   Saksham Madaan — GMAT / MBA mentorship site
   Design tokens
   ============================================================ */
:root {
  --ink: #16233F;         /* primary text, nav, headings */
  --ink-soft: #384866;    /* secondary ink for body copy on light */
  --paper: #F4F4F1;       /* page background (cool, not cream) */
  --paper-alt: #ECEAE4;   /* section alternation */
  --card: #FFFFFF;
  --brass: #B9862E;       /* accent: achievement / CTA */
  --brass-dark: #96691E;
  --teal: #2F6F62;        /* accent: data / links / secondary marks */
  --slate: #6B7280;       /* muted text */
  --line: #D9D6CC;        /* hairline dividers */
  --radius: 2px;

  --font-display: "Roboto Slab", "Georgia", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-block;
  margin-bottom: 0.9em;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 88px 0;
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: none; }
.section--alt { background: var(--paper-alt); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head p { color: var(--slate); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
}
.wordmark span { color: var(--teal); }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink);
  border-bottom-color: var(--brass);
}
.nav-cta {
  background: var(--ink);
  color: var(--paper) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--brass-dark); }
.nav-toggle { display: none; }

@media (max-width: 780px) {
  .nav-links { position: fixed; inset: 62px 0 0 0; z-index: 60; background: var(--paper); flex-direction: column; justify-content: flex-start; padding: 28px; gap: 22px; display: none; border-top: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 0.4em; }
.hero-sub { font-size: 1.08rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
}

/* ---------- Score band (signature element) ---------- */
.score-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 52px 28px 26px;
}
.score-band-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 18px;
}
.score-track {
  position: relative;
  height: 8px;
  background: var(--paper-alt);
  border-radius: 4px;
  margin: 0 6px;
}
.score-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, var(--teal), var(--brass));
  border-radius: 4px;
  transition: width 1.4s cubic-bezier(.16,.84,.44,1);
}
.score-marker {
  position: absolute;
  top: -50px;
  left: 0%;
  transform: translateX(-50%);
  text-align: center;
  transition: left 1.4s cubic-bezier(.16,.84,.44,1);
  line-height: 1.4;
}
.score-marker .num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 2px;
}
.score-marker .tag {
  font-size: 0.68rem;
  color: var(--brass-dark);
  font-weight: 600;
  white-space: nowrap;
}
.score-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--slate);
}
.score-band-caption { margin-top: 20px; font-size: 0.85rem; color: var(--slate); }

/* ---------- Credibility ledger strip ---------- */
.ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ledger-item {
  padding: 26px 20px;
  border-left: 1px solid var(--line);
  text-align: left;
}
.ledger-item:first-child { border-left: none; }
.ledger-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  color: var(--teal);
  display: block;
}
.ledger-label {
  font-size: 0.82rem;
  color: var(--slate);
  margin-top: 4px;
}
@media (max-width: 780px) {
  .ledger { grid-template-columns: repeat(2, 1fr); }
  .ledger-item:nth-child(3) { border-left: none; }
}

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card-tagline { font-size: 0.94rem; }
.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card-price {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.05rem;
}
.card-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--paper-alt);
  color: var(--teal);
  padding: 4px 8px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.card-badge--soon { color: var(--slate); }
.card-duration { font-size: 0.8rem; color: var(--slate); margin-bottom: 10px; }

/* ---------- Testimonials ---------- */
.t-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.t-quote { font-style: normal; color: var(--ink-soft); font-size: 0.96rem; }
.t-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--slate);
}
.t-stars { color: var(--brass); font-family: var(--font-mono); font-size: 0.82rem; }

/* ---------- Pricing table ---------- */
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td {
  text-align: left;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.price-table td.price { font-family: var(--font-mono); font-weight: 700; }
.price-table tr.soon td { color: var(--slate); }

/* ---------- About page ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 34px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid var(--paper);
  box-shadow: 0 0 0 2px var(--teal);
}
.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin-bottom: 4px;
}

/* ---------- Program detail page ---------- */
.program-hero {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) { .program-hero { grid-template-columns: 1fr; } }
.program-sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: sticky;
  top: 96px;
}
.program-sidebar .card-price { font-size: 1.4rem; display: block; margin-bottom: 4px; }
.program-list { padding-left: 0; list-style: none; }
.program-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  padding-left: 22px;
  position: relative;
}
.program-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--brass);
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--paper-alt);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-links { display: flex; gap: 22px; font-size: 0.88rem; color: var(--slate); flex-wrap: wrap; }
.footer-note { font-size: 0.8rem; color: var(--slate); margin-top: 20px; }

/* ---------- Utility ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .score-fill, .score-marker { transition: none; }
}
