/* ==========================================================================
   AI Pathshala · CBSE board preparation landing page
   The theme of theaipathshala.in: gold #FCB106, red #ED0420, navy #0C1F34
   (sampled from the logo), Poppins headings over Hind body text.
   Plain CSS, no build step.
   ========================================================================== */

:root {
  --gold: #FCB106;
  --gold-soft: #FDBC24;
  --gold-50: #FFF7E3;
  --gold-100: #FFECBC;
  --gold-300: #FDC94A;
  --gold-text: #8F5F02;   /* gold as text: 5.5:1 on white */
  --red: #ED0420;
  --red-text: #B00218;
  --navy: #0C1F34;
  --navy-2: #16324F;
  --cream: #FFF9EC;
  --paper: #FFFDF9;

  --ink-900: #0C1F34;
  --ink-800: #1C2B3B;
  --ink-700: #33404F;
  --ink-600: #4A5566;
  --ink-500: #636F80;
  --ink-400: #6A7788;
  --ink-300: #B7C1CE;
  --ink-200: #D5DCE5;
  --ink-100: #E4E9EF;
  --ink-50: #F1F4F7;

  --grad: linear-gradient(135deg, #FCB106 0%, #ED0420 100%);
  --grad-text: linear-gradient(135deg, #FDBC24 0%, #FCB106 45%, #ED0420 100%);

  --font-display: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hind", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1520px;
  --shadow-card: 0 18px 50px -34px rgba(12, 31, 52, 0.45);
  --shadow-gold: 0 18px 44px -16px rgba(252, 177, 6, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (min-width: 640px) { html { scroll-padding-top: 92px; } }
@media (min-width: 1024px) { html { scroll-padding-top: 100px; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--gold-100); color: var(--ink-900); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 28px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.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; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.h-section {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  text-wrap: balance;
}
.accent {
  display: block;
  font-style: italic;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em; /* italic overhang */
}
.lead { margin-top: 18px; font-size: 18px; line-height: 1.6; color: var(--ink-600); text-wrap: pretty; }
.nw { white-space: nowrap; }
.section-head { max-width: 860px; margin: 0 auto; text-align: center; }
/* Intro paragraphs stay a comfortable reading width (under ~85 characters a line), in even lines. */
.section-head .lead { max-width: 70ch; margin-left: auto; margin-right: auto; text-wrap: balance; }

/* ---------- buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s, border-color 0.2s;
}
.btn .icon { font-size: 16px; transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn-primary { color: #fff; background: var(--grad); box-shadow: 0 16px 38px -14px rgba(237, 4, 32, 0.55); overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 48px -16px rgba(237, 4, 32, 0.65); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { color: var(--ink-900); background: #fff; border: 1px solid var(--ink-200); box-shadow: 0 10px 28px -18px rgba(12, 31, 52, 0.35); }
.btn-ghost:hover { border-color: var(--ink-300); transform: translateY(-2px); }
.btn-on-dark { color: #fff; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.24); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.14); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.is-scrolled { background: rgba(255, 253, 249, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--ink-100); }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 72px; }
/* The logo never shrinks out of proportion; on phones it scales with the screen so it always fits beside the button. */
.site-header .logo { flex: none; }
.site-header .logo img { height: clamp(32px, 10.4vw, 42px); width: auto; }
.site-header .btn { min-height: 42px; padding: 10px 18px; font-size: 14px; box-shadow: 0 12px 30px -14px rgba(252, 177, 6, 0.95); }
@media (max-width: 479px) {
  .site-header .btn { min-height: 40px; padding: 9px 14px; font-size: 13.5px; }
  .site-header .btn .icon { display: none; }
}
@media (max-width: 359px) { .site-header .container { padding: 0 16px; } }
@media (min-width: 640px) {
  .site-header .bar { height: 80px; }
  .site-header .logo img { height: 52px; }
}
@media (min-width: 1024px) {
  .site-header .bar { height: 88px; }
  .site-header .logo img { height: 58px; }
  .site-header .btn { min-height: 46px; padding: 11px 22px; font-size: 15px; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 128px 0 72px; background: #fff; }
@media (min-width: 768px) { .hero { padding: 150px 0 96px; } }
.hero .aurora { position: absolute; inset: 0; pointer-events: none; }
.hero .aurora span { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.9; }
.hero .aurora .a1 { width: 620px; height: 620px; left: -160px; top: -140px; background: radial-gradient(circle, rgba(252, 177, 6, 0.38) 0%, transparent 68%); animation: drift 18s ease-in-out infinite; }
.hero .aurora .a2 { width: 560px; height: 560px; right: -170px; top: 60px; background: radial-gradient(circle, rgba(237, 4, 32, 0.22) 0%, transparent 68%); animation: drift 23s ease-in-out infinite reverse; }
.hero .aurora .dots { inset: 0; border-radius: 0; filter: none; opacity: 0.55; background-image: radial-gradient(rgba(12, 31, 52, 0.08) 1px, transparent 1px); background-size: 18px 18px; -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%); mask-image: radial-gradient(ellipse at 50% 30%, #000 25%, transparent 72%); }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(28px, -22px); } 66% { transform: translate(-18px, 16px); } }

.hero-copy { position: relative; max-width: 1180px; margin: 0 auto; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px 7px 10px; border-radius: 999px;
  border: 1px solid var(--ink-100); background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 28px -14px rgba(12, 31, 52, 0.22);
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--ink-800);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 12px; }
.hero h1 {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 6.2vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink-900);
  text-wrap: balance;
}
.hero h1 .accent { margin-top: 4px; }
.hero .lead { max-width: 780px; margin: 22px auto 0; font-size: clamp(16.5px, 1.6vw, 20px); text-wrap: balance; }
.hero .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.pills {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px;
  margin-top: 24px; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--ink-100); background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 28px -16px rgba(12, 31, 52, 0.2);
  font-size: 13.5px; font-weight: 500; color: var(--ink-700);
}
.pills li { display: inline-flex; align-items: center; gap: 6px; list-style: none; white-space: nowrap; }
.pills ul { display: contents; }
.pills .icon { color: var(--gold); font-size: 14px; stroke-width: 3; }

/* Wide screens (1200px+): copy on the left, the student photo on the right. */
@media (min-width: 1200px) {
  .hero { padding: 136px 0 96px; }
  .hero .container { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(48px, 6vw, 104px); align-items: center; }
  .hero-copy { margin: 0; max-width: none; text-align: left; }
  .hero h1 { font-size: clamp(2.7rem, 4.5vw, 4.6rem); }
  .hero .lead { max-width: 600px; margin-left: 0; text-wrap: pretty; }
  .hero .ctas { justify-content: flex-start; }
}

/* the photo, on a tilted brand-gradient card */
.hero-visual { position: relative; max-width: 560px; margin: 56px auto 0; }
@media (min-width: 1200px) { .hero-visual { max-width: none; margin: 0; padding: 24px 0; } }
.photo-wrap { position: relative; }
.photo-wrap::before {
  content: ""; position: absolute; inset: 0; border-radius: 32px;
  background: var(--grad); transform: translate(10px, 8px) rotate(4deg);
  box-shadow: 0 40px 90px -40px rgba(237, 4, 32, 0.55);
}
.hero-photo {
  position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3.2;
  border-radius: 30px; border: 6px solid #fff; background: var(--cream);
  box-shadow: 0 44px 90px -42px rgba(12, 31, 52, 0.6);
}
@media (min-width: 1200px) { .hero-photo { aspect-ratio: 4 / 4.3; } }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 66% 30%; }
.photo-chip {
  position: absolute; right: 14px; top: 14px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 26px -14px rgba(12, 31, 52, 0.5);
  font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--ink-900); white-space: nowrap;
}
.photo-chip .icon { color: var(--gold-text); font-size: 14px; }

/* the day's three study items: stacked over the photo's lower edge on phones, floating around it on desktop */
.hero-cards { position: relative; list-style: none; margin: -64px 14px 0; padding: 0; display: grid; gap: 10px; }
.fcard {
  display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px; text-align: left;
  background: rgba(255, 255, 255, 0.96); border: 1px solid var(--ink-100);
  box-shadow: 0 22px 50px -26px rgba(12, 31, 52, 0.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.fcard .mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 17px; }
.fcard.done .mark { background: #E8F7EF; color: #0E7A47; }
.fcard.due .mark { background: var(--gold-50); color: var(--gold-text); }
.fcard.doing .mark { background: #FEE7E9; color: var(--red-text); }
.fcard .kind { display: block; font-family: var(--font-display); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-500); }
.fcard .text { display: block; margin-top: 2px; font-weight: 600; font-size: 14.5px; line-height: 1.3; color: var(--ink-900); text-wrap: balance; }
.fcard .prog { display: block; margin-top: 5px; font-size: 11.5px; color: var(--ink-500); }
.bar-track { display: block; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--ink-50); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: inherit; background: var(--grad); }
@media (min-width: 1200px) {
  .hero-cards { position: static; margin: 0; display: block; }
  .fcard { position: absolute; z-index: 2; width: 270px; animation: bob 6s ease-in-out infinite; }
  .fcard-1 { left: -56px; top: 11%; }
  .fcard-2 { right: -12px; top: 50%; animation-delay: -2s; }
  .fcard-3 { left: -36px; bottom: 4%; width: 320px; animation-delay: -4s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- sections ---------- */
.section { position: relative; padding: 84px 0; }
@media (min-width: 768px) { .section { padding: 112px 0; } }
.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }

/* struggles */
.struggles { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 720px) { .struggles { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1200px) {
  .struggles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .struggle { flex-direction: column; padding: 26px 24px; }
}
.struggle {
  display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--ink-100); box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.struggle:hover { transform: translateY(-3px); box-shadow: 0 26px 60px -34px rgba(252, 177, 6, 0.55); }
.struggle .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(252, 177, 6, 0.14); color: var(--gold-text); font-size: 21px; }
.struggle h3 { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-900); line-height: 1.3; }
.struggle p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-600); }
/* No single words stranded on a heading's or paragraph's last line. */
.struggle h3, .step h3, .parent h3, .start h3, .assure h3 { text-wrap: balance; }
.struggle p, .step p, .parent p, .start p, .assure p, .faq details p { text-wrap: pretty; }
.turn { text-wrap: balance; }
.turn { margin-top: 40px; text-align: center; font-family: var(--font-display); font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; color: var(--ink-900); }
.turn em { font-style: italic; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* journey */
.journey { position: relative; list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 640px) { .journey { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .journey { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.journey::before { content: ""; position: absolute; left: 6%; right: 6%; top: 35px; height: 1px; display: none; background: linear-gradient(90deg, transparent, var(--gold-300), transparent); }
/* Runs through the centres of the number circles: 1px border + 28px padding + half of the 58px circle. */
@media (min-width: 1080px) { .journey::before { display: block; top: 58px; } }
.step {
  position: relative; display: flex; flex-direction: column; padding: 24px 22px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid rgba(213, 220, 229, 0.75);
  box-shadow: 0 16px 44px -34px rgba(12, 31, 52, 0.45);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: 0 26px 60px -32px rgba(252, 177, 6, 0.42); }
@media (min-width: 1080px) { .step { padding: 28px 26px; } }
.step .num { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-display); font-size: 17px; font-weight: 800; box-shadow: 0 16px 36px -16px rgba(252, 177, 6, 0.9); }
.step .word { margin-top: 18px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red-text); }
.step h3 { margin-top: 6px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink-900); }
.step p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-600); }
.step .feats { list-style: none; margin: auto 0 0; padding: 18px 0 0; display: flex; flex-direction: column; gap: 7px; }
.step .feats li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px dashed var(--ink-100); font-size: 13.5px; font-weight: 600; color: var(--ink-800); }
.tier { padding: 2px 8px; border-radius: 999px; background: var(--ink-50); font-family: var(--font-display); font-size: 10.5px; font-weight: 600; color: var(--ink-600); white-space: nowrap; }
.tier.all { background: var(--gold-50); color: var(--gold-text); }

/* for parents */
.parents { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 820px) { .parents { grid-template-columns: repeat(3, 1fr); gap: 20px; } .parent { padding: 26px; } }
.parent { padding: 22px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--ink-100); box-shadow: 0 10px 30px -18px rgba(12, 31, 52, 0.25); }
.parent .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(252, 177, 6, 0.15); color: #B47800; font-size: 19px; }
.parent h3 { margin-top: 14px; font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink-900); }
.parent p { margin-top: 5px; font-size: 14.5px; line-height: 1.55; color: var(--ink-600); }

/* ---------- plans ---------- */
.period {
  display: inline-flex; gap: 2px; margin-top: 28px; padding: 4px; border-radius: 999px;
  border: 1px solid var(--ink-200); background: rgba(241, 244, 247, 0.6);
}
.period button {
  min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-600);
  transition: color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.period button:hover { color: var(--ink-900); }
.period button[aria-checked="true"] { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -12px rgba(237, 4, 32, 0.5); }
@media (min-width: 640px) { .period button { padding: 8px 22px; } }

.plans { display: grid; gap: 20px; margin: 48px auto 0; }
@media (min-width: 1000px) { .plans { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; } }
@media (min-width: 1280px) { .plan { padding: 34px 34px; } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 26px 24px;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-200);
  box-shadow: var(--shadow-card); transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
@media (min-width: 640px) { .plan { padding: 30px 28px; } }
.plan:hover { box-shadow: 0 24px 60px -34px rgba(12, 31, 52, 0.5); }
.plan.popular { border-color: var(--gold-300); box-shadow: 0 30px 70px -34px rgba(252, 177, 6, 0.6); }
@media (min-width: 1000px) { .plan.popular { transform: translateY(-8px); } .plan.popular:hover { transform: translateY(-10px); } }
/* Sits on the card's top edge so it never squeezes the plan name. */
.plan .pop { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; background: var(--gold-50); border: 1px solid var(--gold-300); color: var(--gold-text); font-family: var(--font-display); font-size: 11.5px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px -12px rgba(252, 177, 6, 0.8); }
.plan h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink-900); }
.plan .was { display: flex; align-items: center; gap: 8px; margin-top: 14px; min-height: 24px; }
.plan .was s { font-size: 16px; font-weight: 500; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.plan .off { padding: 2px 8px; border-radius: 999px; background: rgba(237, 4, 32, 0.1); color: var(--red-text); font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.plan .now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; }
.plan .amount { font-family: var(--font-display); font-size: 42px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.plan .unit { font-size: 15px; color: var(--ink-500); }
.plan .blurb { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ink-700); text-wrap: balance; }
/* Between these widths the Plus blurb wraps to two lines; reserving two lines on every card keeps the Enroll buttons level. */
@media (min-width: 1000px) and (max-width: 1399px) { .plan .blurb { min-height: 3.3em; } }
.plan .gst { margin-top: 4px; font-size: 12.5px; color: var(--ink-500); }
.plan .na { display: none; margin-top: 14px; }
.plan .na strong { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.2; color: var(--ink-400); }
.plan .na span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--ink-600); }
.plan.is-unavailable .priced { display: none; }
.plan.is-unavailable .na { display: block; }
.plan .pay { width: 100%; margin-top: 22px; border-radius: var(--radius); border: 1px solid transparent; }
.plan:not(.popular) .pay { color: var(--ink-900); background: #fff; border: 1px solid var(--ink-300); box-shadow: none; }
.plan:not(.popular) .pay::after { display: none; }
.plan:not(.popular) .pay:hover { border-color: var(--ink-400); }
.plan .pay-off { display: none; width: 100%; margin-top: 22px; min-height: 48px; align-items: center; justify-content: center; border-radius: var(--radius); border: 1px solid var(--ink-200); font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink-400); }
.plan.is-unavailable .pay { display: none; }
.plan.is-unavailable .pay-off { display: inline-flex; }
.plan .incl { margin-top: 26px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-400); }
.feature-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 9px; }
/* Tablet: the plan cards are full width, so the list runs in two columns instead of hugging the left. */
@media (min-width: 640px) and (max-width: 999px) {
  .feature-list { display: block; columns: 2; column-gap: 36px; }
  .feature-list li { break-inside: avoid; margin-bottom: 9px; }
}
.feature-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--ink-700); }
.feature-list li .icon { margin-top: 2px; font-size: 16px; color: var(--gold-text); stroke-width: 2.6; }
.feature-list li.no { color: var(--ink-400); }
.feature-list li.no .icon { color: var(--ink-300); }
.feature-list b { font-weight: 600; color: var(--gold-text); white-space: nowrap; }
.plans-note { margin-top: 30px; text-align: center; font-size: 14px; color: var(--ink-500); }

/* ---------- how to start ---------- */
.start { list-style: none; margin: 44px auto 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .start { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.start li { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--ink-100); }
@media (min-width: 1080px) { .start li { padding: 26px; gap: 16px; } }
/* Three narrow cards on tablet: number above the text so the text gets the full card width. */
@media (min-width: 760px) and (max-width: 1079px) { .start li { flex-direction: column; gap: 12px; } }
.start .n { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-family: var(--font-display); font-size: 14px; font-weight: 800; }
.start h3 { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--ink-900); }
.start p { margin-top: 4px; font-size: 14.5px; line-height: 1.5; color: var(--ink-600); }

/* Getting started with a photo: heading, photo, steps on phones; photo beside heading and steps on desktop. */
.start-grid { display: grid; grid-template-areas: "head" "photo" "steps"; }
.start-grid .section-head { grid-area: head; }
.start-grid .start { grid-area: steps; }
.start-photo {
  grid-area: photo; position: relative; width: 100%; max-width: 600px; margin: 36px auto 0;
  aspect-ratio: 16 / 10; overflow: hidden; border-radius: 28px; border: 6px solid #fff;
  box-shadow: 0 40px 80px -44px rgba(12, 31, 52, 0.55); background: var(--cream);
}
.start-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
@media (min-width: 1080px) {
  .start-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "photo head" "photo steps"; column-gap: clamp(48px, 5vw, 88px); align-items: center; }
  .start-grid .section-head { margin: 0; text-align: left; align-self: end; }
  .start-grid .start { grid-template-columns: 1fr; margin: 32px 0 0; align-self: start; }
  .start-photo { max-width: none; margin: 0; aspect-ratio: 1 / 1; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 44px auto 0; border-top: 1px solid var(--ink-200); }
.faq-section .lead a { color: var(--ink-900); font-weight: 600; text-underline-offset: 3px; }
/* Wide screens: heading on the left, questions on the right. */
@media (min-width: 1000px) {
  .faq-section .container { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 72px; align-items: start; }
  .faq-section .section-head { position: sticky; top: 112px; margin: 0; text-align: left; }
  .faq-section .section-head .lead { margin-left: 0; }
  .faq-section .faq { max-width: none; margin: 0; }
}
.faq details { border-bottom: 1px solid var(--ink-200); }
.faq summary {
  text-wrap: balance;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 20px 2px; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-text); }
.faq summary .icon { margin-top: 3px; font-size: 20px; color: var(--ink-400); transition: transform 0.3s var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { max-width: 66ch; padding: 0 40px 22px 2px; font-size: 15.5px; line-height: 1.65; color: var(--ink-600); }

/* ---------- closing ---------- */
.closing { position: relative; overflow: hidden; padding: 96px 0; background: var(--navy); color: #fff; text-align: center; }
@media (min-width: 768px) { .closing { padding: 128px 0; } }
.closing .glow { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; }
.closing .g1 { width: 600px; height: 600px; left: 22%; top: 28%; margin: -300px 0 0 -300px; background: radial-gradient(circle, rgba(252, 177, 6, 0.42) 0%, transparent 68%); animation: drift 19s ease-in-out infinite; }
.closing .g2 { width: 520px; height: 520px; left: 78%; top: 34%; margin: -260px 0 0 -260px; background: radial-gradient(circle, rgba(237, 4, 32, 0.32) 0%, transparent 68%); animation: drift 23s ease-in-out infinite reverse; }
.closing .inner { position: relative; max-width: 1040px; margin: 0 auto; }
.closing h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5.2vw, 4.2rem); line-height: 1.05; letter-spacing: -0.035em; text-wrap: balance; }
.closing p.lead { color: rgba(255, 255, 255, 0.72); max-width: 720px; margin-left: auto; margin-right: auto; }
.closing .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.closing .note { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.64); }

/* the faint photo behind the navy closing band (the navy shows through, so white text keeps its contrast) */
.closing .closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; opacity: 0.24; pointer-events: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 64px 0 30px; border-top: 1px solid var(--ink-100); background: linear-gradient(180deg, #FFFDF8 0%, #FFF6E2 100%); }
.site-footer .watermark { position: absolute; left: 50%; top: 52%; width: min(520px, 72vw); transform: translate(-50%, -50%); opacity: 0.05; pointer-events: none; }
.assure { position: relative; display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 720px) { .assure { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.assure li { padding: 20px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.85); border: 1px solid var(--ink-100); box-shadow: 0 10px 30px -18px rgba(12, 31, 52, 0.25); }
.assure .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(252, 177, 6, 0.15); color: #B47800; font-size: 18px; }
.assure h3 { margin-top: 14px; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--ink-900); }
.assure p { margin-top: 5px; font-size: 13.5px; line-height: 1.5; color: var(--ink-500); }
.foot-grid { position: relative; display: grid; gap: 36px; margin-top: 52px; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr; } }
.foot-brand img { height: 44px; width: auto; }
.foot-brand .tag { margin-top: 14px; font-family: var(--font-display); font-size: 19px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink-900); text-wrap: balance; }
.foot-brand .btn { margin-top: 20px; }
.foot-col h3 { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-400); }
.foot-col ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 11px; }
.foot-col a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-600); text-decoration: none; }
.foot-col a:hover { color: var(--ink-900); }
.foot-col a .icon { font-size: 16px; color: var(--ink-300); }
.foot-col a:hover .icon { color: var(--gold); }
.policies { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.policies a { font-size: 13px; color: var(--ink-500); }
.foot-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--ink-100); font-size: 13px; color: var(--ink-400); }

/* ---------- reveal on scroll (only once JS is running) ----------
   Uses `translate`, not `transform`, so it never cancels the cards' own
   hover lifts or the featured plan's raised position. */
.js .reveal { opacity: 0; translate: 0 22px; transition: opacity 0.7s var(--ease), translate 0.7s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.js .reveal.is-in { opacity: 1; translate: none; }
/* Stagger the entrance only (opacity, translate), never the hover lift. */
.js .reveal.d1 { transition-delay: 0.08s, 0.08s, 0s, 0s; }
.js .reveal.d2 { transition-delay: 0.16s, 0.16s, 0s, 0s; }
.js .reveal.d3 { transition-delay: 0.24s, 0.24s, 0s, 0s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; translate: none; }
}
