/* ===========================================
   MARKSCHEME — Editorial "Exam Paper" Theme
   Light paper · ink · red pen accent · serif display
   =========================================== */

:root {
  /* neutrals */
  --paper:      #efe8da;   /* warm page */
  --paper-2:    #e7dfce;   /* slightly deeper panel */
  --card:       #faf6ec;   /* raised card */
  --ink:        #1d1a14;   /* near-black text */
  --ink-soft:   #4a463c;   /* secondary text */
  --ink-dim:    #8a8475;   /* muted labels */
  --rule:       rgba(29, 26, 20, 0.16);  /* hairline */
  --rule-soft:  rgba(29, 26, 20, 0.08);

  /* accents */
  --red:        #c0391f;   /* exam red pen */
  --red-deep:   #9e2c16;
  --ochre:      #b07b2c;   /* muted secondary highlight */
  --wa:         #1f7a4d;   /* whatsapp, muted editorial green */

  /* type */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;

  --radius: 2px;
  --maxw: 1140px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

::selection { background: var(--ink); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}
:focus:not(:focus-visible) { outline: none; }

em { font-style: italic; }

/* ---------- shared layout ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section__inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* eyebrow label — monospace, like a paper reference code */
.section__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.section__label::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--red);
}

.section__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 2.5rem;
  max-width: 18ch;
  text-wrap: balance;
}

/* generic paragraph rhythm inside sections */
.section__inner > p { color: var(--ink-soft); }

/* =========================================================
   NAVBAR
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.nav.scrolled {
  background: rgba(239, 232, 218, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav__logo span { color: var(--red); font-style: italic; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s;
  position: relative;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width 0.25s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__link.active { color: var(--ink); }

.nav__cta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--paper);
  background: var(--ink);
  padding: 0.7rem 1.2rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.nav__cta:hover { background: var(--red); border-color: var(--red); color: #fff; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--ink);
  transition: transform 0.3s, opacity 0.3s;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(29, 26, 20, 0.45);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 90;
}
.nav-overlay.active { opacity: 1; visibility: visible; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 11rem 0 5rem;
  position: relative;
  border-bottom: 1px solid var(--rule);
  /* faint ruled-paper grid, like exam paper */
  background-image: linear-gradient(var(--rule-soft) 1px, transparent 1px);
  background-size: 100% 2.2rem;
}
.hero__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero__content { max-width: 100%; }
.hero__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 7.5vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 1.8rem;
  max-width: 16ch;
  text-wrap: balance;
}
.hero__title em {
  color: var(--red);
  font-weight: 400;
}
.hero__desc {
  font-size: 1.18rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 48ch;
  margin-bottom: 2.4rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* proof row — like a results ledger */
.hero__proof {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}
.proof-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding-right: 2.5rem;
}
.proof-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.proof-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.proof-sep {
  width: 1px;
  background: var(--rule);
  margin-right: 2.5rem;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.btn svg { flex-shrink: 0; }

.btn--wa {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn--wa:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.btn--wa svg { color: #58c08a; }
.btn--wa:hover svg { color: #fff; }

.btn--compact { padding: 0.7rem 1.2rem; font-size: 0.92rem; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.1rem; }

/* small text toggle */
.btn-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 0.7rem 1.2rem;
  margin: 0.5rem 0 1.5rem;
  transition: all 0.2s;
  width: 100%;
}
.btn-toggle:hover { background: var(--ink); color: var(--paper); }

/* =========================================================
   REVIEWS
   ========================================================= */
.reviews { background: var(--paper-2); border-bottom: 1px solid var(--rule); }

.reviews__carousel { position: relative; }
.reviews__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
}
.reviews__track::-webkit-scrollbar { display: none; }

.review-card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 2rem 1.9rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.review-card::before {
  /* hanging quotation mark */
  content: "\201C";
  position: absolute;
  top: 0.4rem; right: 1.1rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--rule);
}
.review-card:hover {
  transform: translateY(-3px);
  box-shadow: 6px 6px 0 var(--ink);
}
.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}
.review-card__stars { color: var(--ochre); font-size: 0.85rem; letter-spacing: 3px; }
.review-card__result {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  white-space: nowrap;
}
.review-card__text {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.55;
  font-style: italic;
  color: var(--ink);
  border: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
}
.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--rule);
}
.review-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}
.review-card__meta { flex: 1; min-width: 0; line-height: 1.35; }
.review-card__meta strong { display: block; font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.review-card__meta span { display: block; font-size: 0.8rem; color: var(--ink-dim); font-family: var(--font-mono); }
.review-card__verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--wa);
  flex-shrink: 0;
}

.review-card.clone { display: flex; }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.carousel__btn {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.carousel__btn:hover { background: var(--ink); color: var(--paper); }
.carousel__dots { display: flex; gap: 0.5rem; }
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rule);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.dot.active { background: var(--red); transform: scale(1.3); }

/* =========================================================
   ABOUT
   ========================================================= */
.about__layout {
  display: grid;
  gap: 3rem;
  grid-template-columns: 32% 68%;
  align-items: start;
}
@media (max-width: 900px) {
  .about__layout { grid-template-columns: 1fr; gap: 2rem; }
}

.about__portrait { margin-bottom: 0; }
.about__photo {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  object-position: top center;
  border-radius: 0;
  border: none;
  background: transparent;
  display: block;
  -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%), linear-gradient(to bottom, black 85%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, black 85%, transparent 100%), linear-gradient(to bottom, black 85%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 900px) {
  .about__photo {
    min-height: auto;
    height: 280px;
    -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 65%, transparent 100%);
  }
}
.about__photo-monogram {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  width: 100px; height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--paper);
  background: var(--ink);
}
.about__photo-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.about__credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 0;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border: none;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: transparent;
}
.cred-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  text-align: left;
  background: transparent;
  border: none;
}
.cred-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.cred-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

.about__text p { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.05rem; }
.about__text strong { color: var(--ink); font-weight: 600; }
.about__text em { color: var(--red); font-style: italic; }

.about__more {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
  overflow: hidden;
}
.about__more > * { min-height: 0; }
.about__more.expanded { grid-template-rows: 1fr; margin-bottom: 0.5rem; }
.about__more-inner {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding-bottom: 0;
}
.about__more-inner p { margin: 0; }

.about__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1.4rem 0 1.8rem;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
}
.detail-chip svg { color: var(--red); flex-shrink: 0; }

/* =========================================================
   SUBJECTS
   ========================================================= */
.subjects { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }

.subjects__tabs { display: none; }

.subjects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.subj-card {
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  padding: 2rem 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.subj-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); }

.subj-card__badge {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.subj-card__board {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--red);
  margin-top: 0.3rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.subj-card--purple .subj-card__board { color: var(--ochre); }
.subj-card--orange .subj-card__board { color: var(--ink-soft); }

.subj-card__list { list-style: none; flex: 1; margin-bottom: 1.6rem; }
.subj-card__list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px dashed var(--rule);
}
.subj-card__list li:last-child { border-bottom: none; }
.subj-card__list strong { font-weight: 600; font-size: 1rem; color: var(--ink); }
.subj-card__list span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.subj-card__cta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s, gap 0.2s;
}
.subj-card__cta:hover { color: var(--red); gap: 0.7rem; }

.subjects__note {
  margin-top: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 60ch;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
}

/* =========================================================
   RESOURCES
   ========================================================= */
.resources__desc { font-size: 1.1rem; color: var(--ink-soft); max-width: 50ch; margin-bottom: 2.5rem; }

.resources__list { border-top: 1px solid var(--ink); }

.res-accordion {
  border-bottom: 1px solid var(--rule);
}
.res-accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 1.5rem 1rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}
.res-accordion__header:hover { background: var(--card); }
.res-accordion__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--ink);
}
.res-accordion__icon {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink-dim);
  transition: transform 0.3s ease, color 0.2s;
}
.res-accordion__header[aria-expanded="true"] .res-accordion__icon {
  transform: rotate(45deg);
  color: var(--red);
}

.res-accordion__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease, padding-bottom 0.3s ease;
  overflow: hidden;
}
.res-accordion__content > * { min-height: 0; }
.res-accordion__header[aria-expanded="true"] + .res-accordion__content {
  grid-template-rows: 1fr;
  padding-bottom: 1.5rem;
}
.res-accordion__inner {
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.res-link {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
  align-self: flex-start;
}
.res-link::before {
  content: "→";
  color: var(--red);
  transition: transform 0.2s;
}
.res-link:hover { color: var(--red); }
.res-link:hover::before { transform: translateX(3px); }

/* =========================================================
   HOW IT WORKS / STEPS
   ========================================================= */
.steps { background: var(--paper-2); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  overflow: hidden;
}
.step-card {
  padding: 2.2rem 2rem;
  border-right: 1px solid var(--rule);
  background: var(--card);
}
.step-card:last-child { border-right: none; }
.step-card__num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--red);
  letter-spacing: 0.1em;
  margin-bottom: 1.3rem;
}
.step-card__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}
.step-card__desc { color: var(--ink-soft); font-size: 0.98rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.cta-banner {
  background: var(--ink);
  color: var(--paper);
  padding: 6rem 0;
  text-align: center;
}
.cta-banner .section__inner { display: flex; flex-direction: column; align-items: center; }
.cta-banner__heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.2rem;
  text-wrap: balance;
}
.cta-banner__desc { color: rgba(239,232,218,0.7); font-size: 1.15rem; margin-bottom: 2.2rem; max-width: 44ch; }
.cta-banner .btn--wa { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.cta-banner .btn--wa svg { color: var(--wa); }
.cta-banner .btn--wa:hover { background: var(--red); border-color: var(--red); color: #fff; }
.cta-banner .btn--wa:hover svg { color: #fff; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--paper); padding: 4rem 0 0; }
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--rule);
}
.footer__left { max-width: 280px; }
.footer__left .nav__logo { display: inline-block; margin-bottom: 0.5rem; }
.footer__tagline { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.5rem; line-height: 1.6; }
.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__links a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--red); }
.footer__socials { display: flex; gap: 0.8rem; }
.social-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.social-icon svg { fill: currentColor; }
.social-icon:hover { background: var(--ink); color: var(--paper); }
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  text-align: center;
}
.footer__bottom p { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-dim); }

/* =========================================================
   FLOATING WHATSAPP
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 1.6rem; right: 1.6rem;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px) scale(0.9);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  box-shadow: 4px 4px 0 rgba(29,26,20,0.25);
}
.wa-float svg { fill: #58c08a; }
.wa-float.visible { opacity: 1; pointer-events: all; transform: translateY(0) scale(1); }
.wa-float:hover { background: var(--red); }
.wa-float:hover svg { fill: #fff; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .subjects__grid { grid-template-columns: repeat(2, 1fr); }
  .review-card { flex: 0 0 calc(50% - 0.75rem); }
  .steps__grid { grid-template-columns: 1fr; }
  .step-card { border-right: none; border-bottom: 1px solid var(--rule); }
  .step-card:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .section { padding: 4.5rem 0; }
  .hero { padding: 8.5rem 0 3.5rem; }

  .nav__links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(82%, 340px);
    background: var(--paper);
    border-left: 1px solid var(--rule);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1.8rem;
    padding: 2rem 2.2rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 95;
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { font-size: 1.3rem; font-family: var(--font-display); }
  .nav__cta { font-size: 0.9rem; }
  .nav__hamburger { display: flex; z-index: 96; }

  .hero__proof { gap: 1.5rem 0; }
  .proof-item { padding-right: 1.5rem; flex: 0 0 45%; }
  .proof-sep { display: none; }

  /* reviews -> swipeable carousel */
  .reviews__track { gap: 1rem; }
  .review-card {
    flex: 0 0 85%;
    scroll-snap-align: center;
  }
  .carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.8rem;
  }
  .carousel__btn {
    display: none;
  }

  /* subjects -> tabs */
  .subjects__tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
  }
  .tab-btn {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.6rem 1.1rem;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
  }
  .tab-btn.active { background: var(--ink); color: var(--paper); }
  .subjects__grid { grid-template-columns: 1fr; }
  .subj-card.hidden-mobile { display: none; }

  .footer__inner { flex-direction: column; gap: 2rem; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .about__credentials { grid-template-columns: repeat(2, 1fr); }
  .cred-item:nth-child(2) { border-right: none; }
  .cred-item:nth-child(1), .cred-item:nth-child(2) { border-bottom: 1px solid var(--rule); }
  .res-row { gap: 1rem; }
  .res-row__info strong { font-size: 1.05rem; }
  .hero__desc { font-size: 1.05rem; }
}
