/* =========================================================================
   Anmol Jinger — 11+ Tuition
   Design system & site styles
   Clean, modern, trustworthy. Built for parents.
   ---------------------------------------------------------------------------
   Colours, fonts and spacing all live in the :root block below.
   Change a value once here and it updates across every page.
   ========================================================================= */

/* ---- 1. Design tokens --------------------------------------------------- */
:root {
  /* Brand colours — Indigo & Coral */
  --ink:        #1b2340;   /* main text — deep indigo navy */
  --ink-soft:   #4c5570;   /* secondary text */
  --ink-faint:  #828aa3;   /* captions, meta */
  --primary:    #3b3ea8;   /* brand indigo — buttons, links */
  --primary-dk: #2e3086;   /* hover state */
  --accent:     #ef5f47;   /* coral — highlights, buttons */
  --accent-dk:  #c0472e;   /* darker coral — text & small tags */
  --paper:      #fbfaf9;   /* page background — bright off-white */
  --surface:    #ffffff;   /* cards */
  --surface-2:  #f1f1f8;   /* tinted sections — light indigo */
  --line:       #e7e7ef;   /* hairline borders */
  --mint:       #ededfa;   /* soft tint (indigo) */
  --mint-ink:   #3b3ea8;

  /* Typography */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body:    "Manrope", -apple-system, "Segoe UI", sans-serif;

  /* Spacing scale (4 / 8 base) */
  --sp-1: 0.25rem; --sp-2: 0.5rem;  --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-6: 1.5rem;  --sp-8: 2rem;    --sp-12: 3rem;   --sp-16: 4rem;
  --sp-24: 6rem;   --sp-32: 8rem;

  /* Radius & shadow */
  --radius:    16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,35,59,.05), 0 2px 6px rgba(22,35,59,.05);
  --shadow-md: 0 2px 4px rgba(22,35,59,.05), 0 8px 24px rgba(22,35,59,.08);
  --shadow-lg: 0 4px 8px rgba(22,35,59,.06), 0 24px 48px rgba(22,35,59,.12);

  --container: 1120px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

/* ---- 2. Reset & base ---------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--primary); text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--primary-dk); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  text-wrap: balance;
  color: var(--ink);
  letter-spacing: -0.02em;
}
p, li { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- 3. Layout helpers -------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-6); }
.section { padding-block: var(--sp-24); }
.section--tint { background: var(--surface-2); }
.section-head { max-width: 46rem; margin-bottom: var(--sp-12); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dk);
  margin-bottom: var(--sp-3);
}
.section-head h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem); }
.section-head p { margin-top: var(--sp-4); color: var(--ink-soft); font-size: 1.125rem; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---- 4. Buttons --------------------------------------------------------- */
.btn {
  --_bg: var(--primary); --_fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  line-height: 1; text-decoration: none;
  padding: 0.9rem 1.5rem; border: 0; border-radius: 999px;
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .12s var(--ease-out), background-color .18s, box-shadow .18s;
  min-height: 48px;
}
.btn:hover { background: var(--primary-dk); color: #fff; box-shadow: var(--shadow-md); }
.btn:active { transform: scale(0.97); }
.btn--accent { --_bg: var(--accent); }
.btn--accent:hover { background: var(--accent-dk); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--primary);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn--ghost:hover { --_fg: var(--primary-dk); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--primary); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.0625rem; }

/* ---- 5. Header / navigation -------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-6); min-height: 72px;
}
.brand {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  font-family: var(--font-display); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); text-decoration: none;
}
.brand__mark {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: .92rem; letter-spacing: -.02em; box-shadow: var(--shadow-sm);
}
.brand__mark span { transform: translateY(1px); }
.brand small { display: block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); }
.brand__logo { height: 42px; width: auto; display: block; }
.site-footer .brand__logo { filter: brightness(0) invert(1); }

.nav__links { display: flex; align-items: center; gap: var(--sp-2); list-style: none; padding: 0; }
.nav__links a {
  display: inline-block; padding: 0.5rem 0.8rem; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .98rem;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.nav__links a:hover { color: var(--ink); background: var(--surface-2); }
.nav__links a[aria-current="page"] { color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.nav__cta { margin-left: var(--sp-2); }
.nav__links .nav__cta a.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.35rem; color: #fff; white-space: nowrap;
}
.nav__links .nav__cta a.btn:hover { color: #fff; background: var(--primary-dk); }

.nav__toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent;
  cursor: pointer; border-radius: 12px; color: var(--ink);
}
.nav__toggle:hover { background: var(--surface-2); }
.nav__toggle svg { margin: auto; }

@media (max-width: 980px) {
  .nav__toggle { display: grid; place-items: center; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-6) var(--sp-8);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: transform .2s var(--ease-out), opacity .2s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 0.85rem 1rem; font-size: 1.05rem; }
  .nav__cta { margin: var(--sp-3) 0 0; }
  .nav__cta .btn { width: 100%; }
}

/* ---- 6. Hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 2rem + 6vw, 6rem); position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-16); align-items: center; }
.hero__badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: var(--mint); color: var(--mint-ink);
  padding: 0.4rem 0.85rem; border-radius: 999px;
  font-weight: 700; font-size: .82rem; letter-spacing: .02em;
  margin-bottom: var(--sp-6);
}
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4rem); line-height: 1.05; }
.hero h1 em { font-style: italic; color: var(--primary); }
.hero__lead { margin-top: var(--sp-6); font-size: 1.2rem; color: var(--ink-soft); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero__trust { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-8); }
.hero__trust span {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: .5rem .9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.hero__trust span::before {
  content: "";
  width: 1.15rem; height: 1.15rem; flex: 0 0 auto;
  border-radius: 999px;
  background: var(--mint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b3ea8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: .7rem;
}

.hero__card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: var(--sp-8);
  border: 1px solid var(--line);
}
.hero__card h3 { font-size: 1.15rem; margin-bottom: var(--sp-4); }
.hero__card-note { margin-top: var(--sp-5); color: var(--ink-faint); font-size: .92rem; }
.exam-list { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.exam-list a {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 600; color: var(--ink); text-decoration: none;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease-out);
}
.exam-list a::after {
  content: ""; margin-left: auto; flex: none; width: 1.05rem; height: 1.05rem;
  color: var(--ink-faint); background: currentColor; opacity: .55;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .18s var(--ease-out), opacity .18s, color .18s;
}
@media (hover: hover) and (pointer: fine) {
  .exam-list a:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--line));
    box-shadow: var(--shadow-sm); transform: translateX(2px);
  }
  .exam-list a:hover::after { color: var(--primary); opacity: 1; transform: translateX(3px); }
}
.exam-list a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.exam-list .tick {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px;
  border-radius: 999px; background: var(--mint); color: var(--primary);
  font-size: .72rem; font-weight: 800;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-12); }
}

/* ---- 7. Stat strip ------------------------------------------------------ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-6); }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem); color: var(--primary); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
@media (max-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); } }

/* ---- 8. Feature cards --------------------------------------------------- */
.grid { display: grid; gap: var(--sp-6); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-8);
  box-shadow: var(--shadow-sm);
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.card__icon {
  display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 14px; background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary); margin-bottom: var(--sp-5);
}
.card h3 { font-size: 1.3rem; margin-bottom: var(--sp-3); }
.card p { color: var(--ink-soft); }
a.card { text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card .card__more { margin-top: auto; padding-top: var(--sp-5); font-weight: 700; color: var(--primary); }
@media (hover: hover) and (pointer: fine) { a.card:hover .card__more { color: var(--primary-dk); } }

/* ---- 9. About ----------------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-16); align-items: center; }
.about__photo {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5; background: linear-gradient(160deg, var(--surface-2), var(--mint));
  display: grid; place-items: center; color: var(--ink-faint); text-align: center;
  border: 1px solid var(--line);
}
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__grid p + p { margin-top: var(--sp-4); }
.about__grid h2 { font-size: clamp(1.9rem, 1.2rem + 2.4vw, 2.6rem); }
.about__grid .lead { font-size: 1.2rem; color: var(--ink); }
.signature { margin-top: var(--sp-6); font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--primary); }
@media (max-width: 820px) { .about__grid { grid-template-columns: 1fr; gap: var(--sp-8); } .about__photo { max-width: 340px; } }

/* ---- 10. Pricing -------------------------------------------------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); align-items: start; }
@media (max-width: 900px) { .pricing { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-8);
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; height: 100%;
}
.price-card--featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 4%, var(--surface)), var(--surface));
}
.price-card__tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent-dk); color: #fff; font-weight: 700; font-size: .78rem;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.price-card h3 { font-size: 1.35rem; }
.price-card__desc { color: var(--ink-soft); margin-top: var(--sp-2); font-size: .98rem; min-height: 3rem; }
.price-card__amount { margin: var(--sp-6) 0; display: flex; align-items: baseline; gap: 0.35rem; }
.price-card__amount b { font-family: var(--font-display); font-size: 2.6rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-card__amount span { color: var(--ink-faint); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 var(--sp-8); display: grid; gap: var(--sp-3); }
.price-card li { display: flex; gap: var(--sp-3); color: var(--ink-soft); }
.price-card li::before { content: "✓"; color: var(--mint-ink); font-weight: 800; flex: none; }
.price-card .btn { width: 100%; margin-top: auto; }
.pricing-note { text-align: center; color: var(--ink-faint); margin-top: var(--sp-8); font-size: .95rem; }
.course-meta { margin: calc(-1 * var(--sp-4)) 0 var(--sp-5); color: var(--ink-faint); font-size: .9rem; font-weight: 600; }
.price-duo { display: flex; flex-wrap: wrap; gap: var(--sp-8); }
.price-duo .price-card__amount { margin: var(--sp-4) 0; }

/* ---- 11. Steps ---------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; gap: var(--sp-6); } }
.step { position: relative; padding-left: 4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 48px; height: 48px;
  border-radius: 999px; background: var(--primary); color: #fff;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
}
.step h3 { font-size: 1.2rem; margin-bottom: var(--sp-2); }
.step p { color: var(--ink-soft); }

/* ---- 11b. Experience ---------------------------------------------------- */
.xp { max-width: 760px; margin-inline: auto; display: grid; gap: var(--sp-5); }
.xp__item {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--primary); border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-8); box-shadow: var(--shadow-sm);
}
.xp__item h3 { font-size: 1.2rem; }
.xp__meta { color: var(--primary); font-weight: 700; font-size: .92rem; margin-top: .2rem; }
.xp__item .desc { color: var(--ink-soft); margin-top: var(--sp-3); }

/* ---- 12. Testimonials --------------------------------------------------- */
.quote-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-8);
  box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.quote-card::before {
  content: "\201C"; font-family: var(--font-display); font-size: 4rem; line-height: 1;
  color: color-mix(in srgb, var(--accent) 45%, transparent);
  position: absolute; top: 0.6rem; left: 1.2rem;
}
.quote-card blockquote { font-size: 1.08rem; color: var(--ink); padding-top: var(--sp-6); }
.quote-card figcaption { margin-top: auto; padding-top: var(--sp-6); display: flex; align-items: center; gap: .8rem; font-weight: 700; color: var(--ink); }
.quote-card figcaption .qc-who { display: flex; flex-direction: column; }
.quote-card figcaption .qc-who span { display: block; font-weight: 600; color: var(--ink-faint); font-size: .9rem; }
.qc-avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.qc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.qc-avatar[data-c="1"] { background: linear-gradient(135deg,#5a5dc4,#3b3ea8); }
.qc-avatar[data-c="2"] { background: linear-gradient(135deg,#ef7a5f,#c0472e); }
.qc-avatar[data-c="3"] { background: linear-gradient(135deg,#3fa796,#2d7d70); }
.qc-avatar[data-c="4"] { background: linear-gradient(135deg,#e0a33e,#b97e1e); }
.qc-avatar .qc-star { font-size: 1.35rem; transform: translateY(-1px); }

.qc-result {
  display: inline-flex; align-items: center; gap: .45rem; align-self: flex-start;
  margin-top: var(--sp-5); padding: .4rem .85rem;
  background: var(--mint); color: var(--mint-ink);
  border-radius: 999px; font-weight: 700; font-size: .82rem; line-height: 1.2;
}
.qc-result::before {
  content: ""; width: 1rem; height: 1rem; flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: var(--qc-ico) center/contain no-repeat;
  mask: var(--qc-ico) center/contain no-repeat;
}
.qc-result.is-offer { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M12 3 1 9l11 6 9-4.9V17h2V9L12 3zM5 13.2V17c0 1.7 3.1 3 7 3s7-1.3 7-3v-3.8l-7 3.8-7-3.8z'/%3E%3C/svg%3E"); }
.qc-result.is-subject { --qc-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.stars { color: var(--accent); letter-spacing: 2px; margin-top: var(--sp-4); }

/* ---- 12b. FAQ / accordion (details) ------------------------------------ */
details.card > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  font-weight: 700; font-size: 1.1rem; color: var(--ink);
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: "+"; flex: none;
  font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; line-height: 1;
  color: var(--primary);
}
details.card[open] > summary::after { content: "\2212"; }
details.card[open] { border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }

/* ---- 13. Blog ----------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
@media (max-width: 900px) { .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s var(--ease-out), box-shadow .2s;
}
@media (hover: hover) and (pointer: fine) {
  .post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
}
.post-card__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-size: 1.6rem; text-align: center; padding: var(--sp-6);
}
.post-card__cover.alt2 { background: linear-gradient(135deg, #5a5dc4, #3b3ea8); }
.post-card__cover.alt3 { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); }
.post-card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.post-card__meta { display: flex; gap: var(--sp-3); font-size: .82rem; color: var(--ink-faint); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: var(--sp-3); }
.tag { display: inline-block; background: var(--surface-2); color: var(--primary); border-radius: 999px; padding: 0.15rem 0.7rem; font-size: .78rem; font-weight: 700; }
.post-card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.post-card p { color: var(--ink-soft); font-size: .98rem; flex: 1; }
.post-card__more { margin-top: var(--sp-4); font-weight: 700; color: var(--primary); }

/* ---- 14. Article (blog post) ------------------------------------------- */
.article { max-width: 44rem; margin-inline: auto; }
.article__head { text-align: center; margin-bottom: var(--sp-12); }
.article__head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3rem); margin-block: var(--sp-4); }
.article__meta { color: var(--ink-faint); font-weight: 600; }
.prose { font-size: 1.12rem; color: var(--ink); }
.prose > * + * { margin-top: var(--sp-6); }
.prose h2 { font-size: 1.7rem; margin-top: var(--sp-12); }
.prose h3 { font-size: 1.3rem; margin-top: var(--sp-8); }
.prose ul, .prose ol { padding-left: 1.4rem; display: grid; gap: var(--sp-2); }
.prose li { padding-left: 0.3rem; }
.prose blockquote {
  border-left: 4px solid var(--accent); padding: var(--sp-2) var(--sp-6);
  color: var(--ink-soft); font-style: italic; font-size: 1.2rem;
}
.prose code { background: var(--surface-2); padding: 0.15rem 0.4rem; border-radius: 6px; font-size: .9em; }
.prose a { font-weight: 600; }
.prose .table-wrap { overflow-x: auto; margin-block: var(--sp-4); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.prose th, .prose td { text-align: left; padding: .6rem .85rem; border-bottom: 1px solid var(--line); }
.prose thead th { background: var(--surface-2); font-family: var(--font-body); font-weight: 700; color: var(--ink); white-space: nowrap; }
.prose tbody tr:last-child td { border-bottom: 0; }
.callout {
  background: var(--mint); border-radius: var(--radius); padding: var(--sp-6);
  border: 1px solid color-mix(in srgb, var(--mint-ink) 20%, transparent);
}
.callout strong { color: var(--mint-ink); }

/* ---- 15. Resources ------------------------------------------------------ */
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
@media (max-width: 720px) { .resource-grid { grid-template-columns: 1fr; } }
.resource {
  display: flex; gap: var(--sp-5); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-6);
  box-shadow: var(--shadow-sm); text-decoration: none; color: inherit;
  transition: transform .2s var(--ease-out), box-shadow .2s, border-color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .resource:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--primary) 30%, var(--line)); }
}
.resource__icon {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px;
  border-radius: 14px; font-size: 1.5rem;
  background: var(--mint); color: var(--mint-ink);
}
.resource__icon.blue { background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); }
.resource__icon.amber { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-dk); }
.resource h3 { font-size: 1.15rem; margin-bottom: var(--sp-1); }
.resource p { color: var(--ink-soft); font-size: .96rem; }
.resource__tag { display: inline-block; margin-top: var(--sp-3); font-size: .78rem; font-weight: 700; color: var(--primary); }

.resource-section + .resource-section { margin-top: var(--sp-16); }
.resource-section__title { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-8); }
.resource-section__title h2 { font-size: 1.6rem; }
.resource-section__title .pill { background: var(--surface-2); color: var(--ink-soft); font-size: .8rem; font-weight: 700; padding: 0.2rem 0.7rem; border-radius: 999px; }

/* ---- 16. CTA band ------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dk));
  color: #fff; border-radius: 28px; padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  text-align: center; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 380px; height: 380px;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%);
  opacity: .5; pointer-events: none;
}
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.6rem); position: relative; }
.cta-band p { color: color-mix(in srgb, #fff 82%, transparent); margin-top: var(--sp-4); font-size: 1.15rem; max-width: 34rem; margin-inline: auto; position: relative; }
.cta-band .hero__actions { justify-content: center; position: relative; }
.cta-band .btn--ghost { --_fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); --_fg: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* ---- 17. Footer --------------------------------------------------------- */
.site-footer { background: var(--ink); color: color-mix(in srgb, #fff 75%, transparent); padding-block: var(--sp-16) var(--sp-8); margin-top: var(--sp-24); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--sp-12); }
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr; gap: var(--sp-8); } }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: color-mix(in srgb, #fff 55%, transparent); }
.footer__about { margin-top: var(--sp-4); max-width: 30ch; font-size: .96rem; }
.footer__col h4 { color: #fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: var(--sp-4); }
.footer__col ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.footer__col a { color: color-mix(in srgb, #fff 75%, transparent); text-decoration: none; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-12); padding-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; font-size: .88rem; color: color-mix(in srgb, #fff 55%, transparent); }

/* ---- 18. Page hero (interior pages) ------------------------------------ */
.page-hero { background: var(--surface-2); padding-block: var(--sp-16); border-bottom: 1px solid var(--line); text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.2rem); }
.page-hero p { margin: var(--sp-4) auto 0; max-width: 40rem; color: var(--ink-soft); font-size: 1.15rem; }
.breadcrumb { font-size: .9rem; color: var(--ink-faint); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--ink-faint); }

/* ---- 19. Scroll reveal (progressive enhancement) ----------------------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }

/* ---- 20. Utilities ------------------------------------------------------ */
.center { text-align: center; }
.mt-8 { margin-top: var(--sp-8); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
