@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
/* Shiksha Guardian website styles.
   Layout idea: the website looks like the app. A soft sky top with two real
   phone screens, the pastel colours of the app's own screens for the cards,
   rounded lettering for headings, navy pill buttons, and one pale yellow band
   for the vision.

   Brand colours and the two typefaces come from site.config.mjs (the build
   writes them into :root above this file). Components never use a brand colour
   directly: they use the role tokens below, so the whole look can change in
   one place. Everything else resolves through fixed steps: the type scale,
   13 spacing steps, the radius steps and one motion curve. */

:root {
  /* Roles */
  --page: var(--paper);
  --page-alt: var(--mist);
  --ink: var(--navy-band);
  --soft: var(--muted);
  --card: var(--paper);
  --card-line: var(--line);
  --brand: var(--navy);
  /* The main button: a navy pill, as in the app. */
  --accent: var(--navy-band);
  --accent-hover: var(--navy-deep);
  --accent-ink: #ffffff;
  /* Small highlights on navy: ticks, the quote mark. */
  --mark: var(--saffron);
  --mark-ink: var(--navy-deep);
  --logo-ink: var(--navy);

  /* The large dark blocks: the form section, the "with us" column, the footer. */
  --strong: var(--navy-band);
  --strong-ink: #ffffff;
  --strong-soft: color-mix(in srgb, #ffffff 80%, transparent);
  --strong-line: color-mix(in srgb, #ffffff 18%, transparent);
  --foot: var(--navy-deep);

  /* The top of the page. */
  --hero-bg: var(--sky);
  --hero-ink: var(--navy-band);
  --hero-soft: color-mix(in srgb, var(--navy-deep) 80%, transparent);
  --hero-mark: var(--saffron-text);
  --hero-tick: var(--leaf-deep);

  /* The vision band and the closing band. */
  --band: var(--butter);
  --band-ink: var(--navy-band);
  --final-bg: var(--butter);
  --final-ink: var(--navy-band);

  /* Soft tiles, in the colours of the app's screens. */
  --tile-sky: var(--sky);
  --tile-butter: var(--butter);
  --tile-mint: var(--mint);
  --tile-rose: var(--rose);
  --tile-lilac: var(--lilac);
  --tile-ink: var(--navy-band);
  --tile-soft: color-mix(in srgb, var(--navy-deep) 76%, transparent);
  --tile-line: transparent;
  --chip: var(--paper);
  --chip-ink: var(--navy);
  --label: var(--butter);
  --label-ink: var(--saffron-ink);

  --nav-surface: color-mix(in srgb, var(--paper) 88%, transparent);
  --menu-surface: color-mix(in srgb, var(--paper) 94%, transparent);
  --nav-line: color-mix(in srgb, var(--navy-deep) 10%, transparent);
  --nav-ink: var(--navy-band);
  --nav-soft: var(--muted);
  --nav-on: var(--butter);
  --phone-body: #0b1522;
  --shadow-phone: 0 32px 48px -24px color-mix(in srgb, var(--navy-band) 45%, transparent);
  --shadow-card: 0 24px 48px -32px color-mix(in srgb, var(--navy-deep) 35%, transparent);
  --shadow-nav: 0 8px 24px -12px color-mix(in srgb, var(--navy-deep) 30%, transparent);
  --focus: var(--navy);

  /* Headings use the display typeface (--display, from the settings file). */
  --display-weight: 700;
  --wordmark-weight: 800;

  /* Spacing: only these steps are used for padding, margin and gap. */
  --sp-0: 0;
  --sp-25: 2px;
  --sp-50: 4px;
  --sp-75: 8px;
  --sp-100: 12px;
  --sp-200: 16px;
  --sp-300: 24px;
  --sp-400: 32px;
  --sp-500: 40px;
  --sp-600: 48px;
  --sp-700: 64px;
  --sp-800: 80px;
  --sp-900: 96px;

  /* Radius: the Tailwind steps. */
  --r-sm: 2px;
  --r: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --r-xl: 12px;
  --r-2xl: 16px;
  --r-3xl: 24px;
  --r-4xl: 32px;
  --r-full: 9999px;
  /* Cards and tiles share one soft corner. Buttons, the menu bar and tabs are pills. */
  --r-card: var(--r-4xl);

  /* Motion: one curve. Layout moves take 500ms, colour shifts 300ms. */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-move: 500ms;
  --t-tone: 300ms;
  --t-reveal: 700ms;

  --measure: 60ch;
  --container: 1200px;
  --hero-measure: 680px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sp-900);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: var(--sp-0);
  overflow-x: clip;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.menu-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

::selection {
  background: var(--saffron);
  color: var(--navy-deep);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: var(--sp-0);
}

ul,
ol {
  padding: var(--sp-0);
  list-style: none;
}

h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

em,
i,
cite,
address {
  font-style: normal;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r);
}

.on-strong :focus-visible {
  outline-color: var(--saffron);
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.skip-link {
  position: fixed;
  top: var(--sp-75);
  left: var(--sp-75);
  z-index: 100;
  padding: var(--sp-75) var(--sp-100);
  background: var(--navy-deep);
  color: #ffffff;
  border-radius: var(--r-lg);
  transform: translateY(-200%);
  transition: transform var(--t-move) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline-color: var(--saffron);
}

/* ---------- Text styles (one class per named style) ---------- */

.heading-1,
.heading-2,
.heading-3,
.heading-4,
.heading-5,
.heading-6 {
  font-family: var(--display);
  font-weight: var(--display-weight);
}

.heading-1 { font-size: 36px; line-height: 40px; }
.heading-2 { font-size: 30px; line-height: 36px; }
.heading-3 { font-size: 24px; line-height: 32px; }
.heading-4 { font-size: 24px; line-height: 32px; }
.heading-5 { font-size: 20px; line-height: 28px; }
.heading-6 { font-size: 20px; line-height: 28px; }

@media (min-width: 640px) {
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2 { font-size: 36px; line-height: 40px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .heading-5 { font-size: 24px; line-height: 32px; }
}

@media (min-width: 1024px) {
  .heading-1 { font-size: 60px; line-height: 60px; }
  .heading-2 { font-size: 48px; line-height: 48px; }
  .heading-3 { font-size: 36px; line-height: 40px; }
  .heading-4 { font-size: 30px; line-height: 36px; }
}

.title-1 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-3 { font-size: 16px; line-height: 24px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.title-5 { font-size: 12px; line-height: 16px; font-weight: 500; }

@media (min-width: 640px) {
  .title-1 { font-size: 20px; line-height: 28px; }
}

.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-4 { font-size: 14px; line-height: 20px; font-weight: 600; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }

.button-lg { font-size: 18px; line-height: 28px; font-weight: 600; }
.button-md { font-size: 16px; line-height: 24px; font-weight: 600; }
.button-sm { font-size: 14px; line-height: 20px; font-weight: 600; }
.button-xsm { font-size: 12px; line-height: 16px; font-weight: 600; }

.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }

.soft { color: var(--soft); }
.measure { max-width: var(--measure); }

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

@media (min-width: 768px) {
  .container {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.section {
  padding-block: var(--sp-700);
}

.section--alt { background: var(--page-alt); }

.section--strong {
  background: var(--strong);
  color: var(--strong-ink);
}

.section__head {
  display: grid;
  gap: var(--sp-200);
  max-width: 800px;
  margin-bottom: var(--sp-500);
}

@media (min-width: 1024px) {
  .section { padding-block: var(--sp-900); }
  .section__head { margin-bottom: var(--sp-600); }
}

/* ---------- Shared pieces: buttons, tiles, chips, phones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  padding: var(--sp-75) var(--sp-100);
  border: 1px solid transparent;
  border-radius: var(--r-full);
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t-tone) var(--ease), border-color var(--t-tone) var(--ease),
    color var(--t-tone) var(--ease), transform var(--t-move) var(--ease), opacity var(--t-tone) var(--ease);
}

/* The main action is larger than the small buttons, so it is easy to find and to tap. */
.btn--big {
  padding: var(--sp-100) var(--sp-400);
}

.btn--primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--quiet {
  background: var(--card);
  border-color: var(--card-line);
  color: var(--ink);
}

.btn--quiet:hover { background: var(--page-alt); }

.btn:active { transform: scale(0.98); }

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: progress;
}

@media (pointer: coarse) {
  .btn { min-height: 44px; }
}

.tile {
  background: var(--tile-sky);
  border: 1px solid var(--tile-line);
  color: var(--tile-ink);
  border-radius: var(--r-card);
}

.tile--butter { background: var(--tile-butter); }
.tile--mint { background: var(--tile-mint); }
.tile--rose { background: var(--tile-rose); }
.tile--lilac { background: var(--tile-lilac); }

.chip {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--chip);
  color: var(--chip-ink);
  border-radius: var(--r-full);
}

.chip--accent {
  background: var(--mark);
  color: var(--mark-ink);
}

.chip--small {
  width: 40px;
  height: 40px;
}

.phone {
  width: 100%;
  padding: var(--sp-75);
  background: var(--phone-body);
  border-radius: var(--r-4xl);
  box-shadow: var(--shadow-phone);
}

.phone img {
  width: 100%;
  background: var(--mist);
  border-radius: var(--r-3xl);
}

.frame__shot {
  position: relative;
  padding: var(--sp-75);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-card);
}

.frame__shot::before {
  content: "";
  position: absolute;
  inset: var(--sp-75);
  background: var(--mist);
  border-radius: var(--r-lg);
  animation: skeleton 1600ms var(--ease) infinite alternate;
}

.frame__shot.is-loaded::before {
  animation: none;
  opacity: 0;
}

.frame__shot img {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
}

@keyframes skeleton {
  from { opacity: 1; }
  to { opacity: 0.45; }
}

.ticks {
  display: grid;
  gap: var(--sp-200);
}

.ticks li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-100);
  align-items: start;
}

.ticks .icon {
  width: 24px;
  height: 24px;
  color: var(--brand);
}

/* ---------- Navigation ---------- */

.nav {
  position: fixed;
  top: calc(var(--sp-200) + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--sp-200);
  width: max-content;
  max-width: calc(100% - var(--sp-400));
  padding: var(--sp-75);
  padding-left: var(--sp-300);
  background: var(--nav-surface);
  border: 1px solid var(--nav-line);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-nav);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  color: var(--logo-ink);
  font-family: var(--display);
  font-weight: var(--wordmark-weight);
  white-space: nowrap;
}

.brand__mark {
  width: 32px;
  height: 32px;
  flex: none;
}

.brand__second { color: var(--saffron-deep); }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--sp-50);
}

.nav__link {
  padding: var(--sp-75) var(--sp-200);
  border-radius: var(--r-full);
  color: var(--nav-soft);
  white-space: nowrap;
  transition: color var(--t-tone) var(--ease), background-color var(--t-tone) var(--ease);
}

.nav__link:hover { color: var(--nav-ink); }

.nav__link[aria-current="true"],
.nav__link[aria-current="page"] {
  color: var(--nav-ink);
  background: var(--nav-on);
}

.nav__cta {
  display: none;
  flex: none;
  white-space: nowrap;
}

/* Sign-in for people who already use the app. It stays in the bar on phones
   too, so a parent never has to open the menu to find it. */
.nav__login {
  flex: none;
  margin-left: auto;
  white-space: nowrap;
  background: transparent;
  border-color: var(--nav-line);
  color: var(--nav-ink);
}

.nav__login:hover { background: var(--nav-on); }

.nav__login + .nav__cta { margin-left: calc(var(--sp-200) * -1 + var(--sp-75)); }

/* Narrow phones: tighten the bar so the logo, sign-in and menu button fit. */
@media (max-width: 399px) {
  .nav { gap: var(--sp-75); padding-left: var(--sp-200); }
  .nav__login { padding-inline: var(--sp-100); }
  .nav .brand { font-size: 0.92em; }
  .brand__mark { width: 28px; height: 28px; }
}

@media (max-width: 349px) {
  .nav .brand { font-size: 0.85em; gap: var(--sp-50); }
  .nav__login { padding-inline: var(--sp-75); }
}

.menu__login { margin-top: var(--sp-200); display: grid; gap: var(--sp-75); color: var(--nav-soft); }

.nav__toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-75);
  flex: none;
  width: 40px;
  height: 40px;
  padding: var(--sp-0);
  background: transparent;
  border: 1px solid var(--nav-line);
  border-radius: var(--r-full);
}

.nav__toggle span {
  width: 18px;
  height: 2px;
  background: var(--nav-ink);
  border-radius: var(--r-full);
  transition: transform var(--t-move) var(--ease);
}

.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

/* The full menu bar needs about 1300px for its seven links, sign-in and the button.
   Below that the page uses the menu button. */
@media (max-width: 1359px) {
  .nav { width: calc(100% - var(--sp-400)); }
}

@media (min-width: 1360px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
}

/* Full height menu for phones and tablets. */
.menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: var(--sp-400);
  padding-top: calc(var(--sp-900) + var(--sp-300) + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--sp-400) + env(safe-area-inset-bottom, 0px));
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
  overflow-y: auto;
  background: var(--menu-surface);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity var(--t-tone) var(--ease);
}

.menu.is-open { opacity: 1; }

.menu__list {
  display: grid;
  gap: var(--sp-50);
}

.menu__item {
  opacity: 0;
  transform: translateY(var(--sp-300));
  transition: opacity var(--t-move) var(--ease), transform var(--t-move) var(--ease);
  transition-delay: min(calc(var(--i, 0) * 60ms), 400ms);
}

.menu.is-open .menu__item {
  opacity: 1;
  transform: translateY(0);
}

.menu__link {
  display: block;
  padding: var(--sp-100) var(--sp-0);
  color: var(--nav-ink);
}

.menu__link[aria-current="true"] { color: var(--brand); }

.menu .btn { width: 100%; }

@media (min-width: 1360px) {
  .menu { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--sp-900) + var(--sp-400));
  padding-bottom: var(--sp-700);
  background: var(--hero-bg);
  color: var(--hero-soft);
  border-radius: var(--sp-0) var(--sp-0) var(--r-4xl) var(--r-4xl);
}

.hero__grid {
  display: grid;
  gap: var(--sp-600);
  align-items: center;
}

.hero__copy {
  display: grid;
  gap: var(--sp-300);
  justify-items: start;
  max-width: var(--hero-measure);
}

.hero__title {
  max-width: var(--hero-measure);
  color: var(--hero-ink);
}

.hero__title span { display: block; }
.hero__title .hero__accent { color: var(--hero-mark); }

.hero__sub { max-width: 560px; }

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-100) var(--sp-300);
  margin-top: var(--sp-75);
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
}

.hero__proof .icon { color: var(--hero-tick); }

/* Two phones: the teacher sends attendance, the parent's phone shows it. */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 400px;
  margin-inline: auto;
}

.phone--back {
  width: 46%;
  margin-top: var(--sp-600);
  margin-right: -6%;
}

.phone--front {
  position: relative;
  z-index: 1;
  width: 54%;
}

/* The WhatsApp alert, set as a message. */
.ping {
  position: absolute;
  right: var(--sp-0);
  bottom: var(--sp-400);
  z-index: 2;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-100);
  align-items: start;
  width: min(304px, 82%);
  padding: var(--sp-200);
  background: #ffffff;
  color: var(--navy-band);
  border-radius: var(--r-3xl);
  box-shadow: var(--shadow-phone);
}

.ping__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #1f9d55;
  color: #ffffff;
  border-radius: var(--r-full);
}

.ping__text {
  display: grid;
  gap: var(--sp-50);
}

.ping__text .caption-3 { color: #17794a; }

@media (min-width: 640px) {
  .hero__visual { max-width: 480px; }
}

/* Small phones: one step down, so each headline line stays whole. */
@media (max-width: 379px) {
  .hero__title { font-size: 30px; line-height: 36px; }
}

/* Side by side only when the headline has room to keep its three lines. */
@media (min-width: 1140px) {
  .hero { padding-bottom: var(--sp-800); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: var(--sp-700); }
  .hero__visual { max-width: none; }
  .ping { right: calc(var(--sp-300) * -1); bottom: var(--sp-600); }
}

/* ---------- The real problem ---------- */

.moments {
  display: grid;
  gap: var(--sp-200);
}

.moment {
  display: grid;
  gap: var(--sp-75);
  align-content: start;
  padding: var(--sp-300);
}

.moment .chip { margin-bottom: var(--sp-200); }
.moment__when { color: var(--tile-soft); }
.moment p:last-child { color: var(--tile-soft); }

.twist {
  display: grid;
  gap: var(--sp-300);
  margin-top: var(--sp-200);
  padding: var(--sp-300);
  background: var(--strong);
  color: var(--strong-ink);
  border-radius: var(--r-card);
}

.twist__copy {
  display: grid;
  gap: var(--sp-75);
}

.twist__copy p {
  max-width: 70ch;
  color: var(--strong-soft);
}

@media (min-width: 640px) {
  .moments { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .twist { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: var(--sp-400); }
}

@media (min-width: 1024px) {
  .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .moment { padding: var(--sp-400); }
  .twist { padding: var(--sp-500); }
}

/* ---------- Why it matters (real numbers and news) ---------- */

.facts {
  display: grid;
  gap: var(--sp-300);
  padding: var(--sp-400) var(--sp-300);
  background: var(--strong);
  color: var(--strong-ink);
  border-radius: var(--r-card);
}

.fact { display: grid; gap: var(--sp-75); align-content: start; }
.fact__value { color: var(--mark); line-height: 1; }
.fact p:not(.fact__value) { color: var(--strong-soft); }
.fact__source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.cases__heading { margin-top: var(--sp-600); margin-bottom: var(--sp-300); }

.cases {
  display: grid;
  gap: var(--sp-200);
}

.case {
  display: grid;
  gap: var(--sp-100);
  align-content: start;
  padding: var(--sp-300);
}

.case__top { display: flex; align-items: center; gap: var(--sp-200); }
.case__where { color: var(--tile-soft); }
.case__where strong { color: var(--tile-ink); }
.case__help { display: flex; gap: var(--sp-75); align-items: flex-start; }
.case__help .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--brand); }
.case__source { color: var(--tile-soft); }
.case__source a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.bunk {
  display: grid;
  gap: var(--sp-200);
  margin-top: var(--sp-200);
  padding: var(--sp-300);
}
.bunk__copy { display: grid; gap: var(--sp-75); }
.bunk__copy p.body-3 { max-width: 75ch; }

@media (min-width: 640px) {
  .bunk { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: var(--sp-400); }
}

.cases__note { margin-top: var(--sp-300); max-width: 70ch; }

.pamphlet {
  display: grid;
  gap: var(--sp-300);
  margin-top: var(--sp-500);
  padding: var(--sp-400) var(--sp-300);
}

.pamphlet__copy { display: grid; gap: var(--sp-75); }
.pamphlet__copy p { color: var(--tile-soft); max-width: 60ch; }
.pamphlet .btn { justify-self: start; }

@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: var(--sp-400); }
  .cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pamphlet { grid-template-columns: auto minmax(0, 1fr); align-items: center; padding: var(--sp-400); }
  .pamphlet .btn { grid-column: 2; }
}

@media (min-width: 1024px) {
  .facts { padding: var(--sp-500); gap: var(--sp-500); }
  .cases { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .case { padding: var(--sp-400); }
  .pamphlet { grid-template-columns: auto minmax(0, 1fr) auto; padding: var(--sp-500); }
  .pamphlet .btn { grid-column: auto; }
}

/* ---------- The vision (word by word reveal) ---------- */

.vision {
  padding-block: var(--sp-800);
  background: var(--band);
  color: var(--band-ink);
}

.vision__inner {
  display: grid;
  gap: var(--sp-400);
  max-width: 960px;
}

.vision__statement .word {
  transition: opacity var(--t-move) var(--ease);
}

.js .vision__statement .word { opacity: 0.3; }
.js .vision__statement .word.is-on { opacity: 1; }

.vision__support { max-width: var(--hero-measure); }

@media (min-width: 1024px) {
  .vision { padding-block: calc(var(--sp-900) + var(--sp-400)); }
}

/* ---------- Product showcase ---------- */

.tabs {
  display: grid;
  gap: var(--sp-300);
}

.tabs__list {
  display: flex;
  gap: var(--sp-50);
  justify-self: start;
  max-width: 100%;
  padding: var(--sp-75);
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-full);
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.tabs__list::-webkit-scrollbar { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  flex: none;
  padding: var(--sp-75) var(--sp-200);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  color: var(--soft);
  scroll-snap-align: start;
  transition: background-color var(--t-tone) var(--ease), color var(--t-tone) var(--ease),
    transform var(--t-move) var(--ease);
}

.tab:hover { color: var(--ink); background: var(--page-alt); }
.tab:active { transform: scale(0.98); }

.tab[aria-selected="true"] {
  background: var(--strong);
  color: var(--strong-ink);
}

@media (pointer: coarse) {
  .tab { min-height: 44px; }
}

.panel {
  display: grid;
  gap: var(--sp-400);
  align-items: center;
}

.panel.is-entering {
  animation: panel-in var(--t-move) var(--ease);
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(var(--sp-75)); }
  to { opacity: 1; transform: translateY(0); }
}

.panel__copy {
  display: grid;
  gap: var(--sp-300);
  align-content: center;
}

.panel__visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: var(--sp-200);
  padding: var(--sp-400) var(--sp-200);
}

.panel__visual .phone { flex: 0 1 248px; }

.panel__visual--desk {
  flex-direction: column;
  align-items: center;
  gap: var(--sp-300);
}

.panel__visual--desk .frame { width: 100%; }
.panel__visual--desk .phone { flex: none; width: 200px; }

.office {
  display: grid;
  gap: var(--sp-400);
  margin-top: var(--sp-700);
}

.office__head {
  display: grid;
  gap: var(--sp-75);
}

.office__grid {
  display: grid;
  gap: var(--sp-400);
}

.office__card {
  display: grid;
  gap: var(--sp-100);
  align-content: start;
}

.office__card .frame { margin-bottom: var(--sp-100); }

/* The three office pictures share one shape so their titles line up. */
.office__card .frame__shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
}

@media (min-width: 640px) {
  .panel__visual { gap: var(--sp-300); padding: var(--sp-500) var(--sp-400); }
}

@media (min-width: 900px) {
  .office__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-300); }
}

@media (min-width: 1024px) {
  .panel { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-700); }
  .panel__visual { padding: var(--sp-600) var(--sp-500); }
  /* The office website sits large, with the phone overlapping its corner. */
  .panel__visual--desk {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 168px;
    align-items: center;
    gap: var(--sp-0);
    padding: var(--sp-600) var(--sp-400);
  }
  .panel__visual--desk .frame { margin-right: calc(var(--sp-700) * -1); }
  .panel__visual--desk .phone { position: relative; z-index: 1; width: 100%; }
  .office { margin-top: var(--sp-900); }
}

/* ---------- Why Shiksha Guardian ---------- */

.compare {
  display: grid;
  gap: var(--sp-200);
}

.compare__head { display: none; }

.compare__row {
  display: grid;
  gap: var(--sp-200);
  padding: var(--sp-200);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-3xl);
}

.compare__topic { padding: var(--sp-75) var(--sp-75) var(--sp-0); }

.compare__cell {
  display: grid;
  gap: var(--sp-75);
  align-content: start;
  padding: var(--sp-0) var(--sp-75);
}

.compare__cell p {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-100);
  align-items: start;
}

.compare__cell .icon {
  width: 24px;
  height: 24px;
}

.compare__cell--usual { color: var(--soft); }

.compare__cell--ours {
  padding: var(--sp-200);
  background: var(--strong);
  color: var(--strong-ink);
  border-radius: var(--r-lg);
}

.compare__cell--ours .icon { color: var(--mark); }
.compare__cell--ours .compare__label { color: var(--strong-soft); }

@media (min-width: 900px) {
  /* One table: a quiet column for the usual way, a navy column for ours. */
  .compare-wrap {
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--card-line);
    border-radius: var(--r-card);
  }
  .compare { gap: var(--sp-0); }
  .compare__head,
  .compare__row {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 5fr) minmax(0, 5fr);
    gap: var(--sp-0);
    padding: var(--sp-0);
    border: 0;
    border-radius: var(--sp-0);
  }
  .compare__head > span { padding: var(--sp-300) var(--sp-400); color: var(--soft); }
  .compare__head .compare__ours-head { background: var(--strong); color: var(--mark); }
  .compare__topic,
  .compare__cell { padding: var(--sp-300) var(--sp-400); }
  .compare__row { box-shadow: inset 0 1px 0 var(--card-line); }
  .compare__cell--ours {
    border-radius: var(--sp-0);
    box-shadow: inset 0 1px 0 var(--strong-line);
  }
  .compare__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .compare__cell { position: relative; }
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: var(--sp-200);
}

.step {
  display: grid;
  gap: var(--sp-100);
  align-content: start;
  padding: var(--sp-300);
}

.step__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-300);
}

.step p { color: var(--tile-soft); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-300); }
  .step { padding: var(--sp-400); }
}

/* ---------- Founder story ---------- */

.story__grid {
  display: grid;
  gap: var(--sp-500);
}

.story__aside {
  display: grid;
  gap: var(--sp-400);
  align-content: start;
}

.founder {
  display: grid;
  gap: var(--sp-25);
}

.founder__role { color: var(--soft); }

.letter {
  display: grid;
  gap: var(--sp-300);
  padding: var(--sp-300);
  background: var(--page-alt);
  border: 1px solid var(--tile-line);
  border-radius: var(--r-card);
}

.letter__body {
  display: grid;
  gap: var(--sp-200);
  max-width: var(--measure);
}

.letter__body p { color: var(--soft); }
.letter__body .letter__lead { color: var(--ink); }

@media (min-width: 640px) {
  .letter { padding: var(--sp-500); }
}

@media (min-width: 1024px) {
  .story__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-700); }
  .story__aside { position: sticky; top: calc(var(--sp-900) + var(--sp-300)); }
  .letter { padding: var(--sp-700); }
}

/* ---------- Roadmap ---------- */

.roadmap {
  display: grid;
  gap: var(--sp-300);
}

.roadmap__col {
  display: grid;
  gap: var(--sp-400);
  align-content: start;
  padding: var(--sp-300);
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
}

.roadmap__title {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-75);
  justify-self: start;
  padding: var(--sp-75) var(--sp-200) var(--sp-75) var(--sp-100);
  background: var(--tile-mint);
  color: var(--tile-ink);
  border-radius: var(--r-full);
}

.roadmap__col--next .roadmap__title { background: var(--tile-butter); }

.roadmap__list {
  display: grid;
  gap: var(--sp-300);
}

.roadmap__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--sp-25) var(--sp-200);
  align-items: start;
}

.roadmap__item .chip {
  grid-row: 1 / span 3;
  background: var(--tile-mint);
  color: var(--chip-ink);
}

.roadmap__col--next .chip { background: var(--tile-butter); }
.roadmap__item p { grid-column: 2; color: var(--soft); }
.roadmap__item h4 { grid-column: 2; }

.badge {
  grid-column: 2;
  justify-self: start;
  margin-top: var(--sp-50);
  padding: var(--sp-25) var(--sp-100);
  background: var(--label);
  color: var(--label-ink);
  border-radius: var(--r-full);
}

@media (min-width: 640px) {
  .roadmap__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-400); }
  .roadmap__col { padding: var(--sp-400); }
}

@media (min-width: 1024px) {
  .roadmap__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-400) var(--sp-500); }
  .roadmap__col { padding: var(--sp-500); }
}

/* ---------- Plan and contact form ---------- */

.contact__grid {
  display: grid;
  gap: var(--sp-500);
}

.contact__lead {
  display: grid;
  gap: var(--sp-300);
  align-content: start;
}

.contact__lead > p { max-width: 44ch; color: var(--strong-soft); }

.mailto {
  display: grid;
  gap: var(--sp-75);
  justify-items: start;
  color: var(--strong-soft);
}

.mailto__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-100);
}

.mailto__address {
  color: var(--strong-ink);
  text-decoration: underline;
  text-decoration-color: var(--mark);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
  user-select: all;
}

.form-card {
  padding: var(--sp-300);
  background: #ffffff;
  color: var(--navy-band);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-phone);
  --focus: var(--navy);
}

.form-card :focus-visible { outline-color: var(--navy); }

.form {
  display: grid;
  gap: var(--sp-300);
}

.form__row {
  display: grid;
  gap: var(--sp-300);
}

.field {
  display: grid;
  gap: var(--sp-75);
  align-content: start;
  min-width: 0;
}

.field__label {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-100);
}

.field__optional,
.field__hint { color: var(--muted); }

.field__input {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-100) var(--sp-200);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: border-color var(--t-tone) var(--ease), background-color var(--t-tone) var(--ease);
}

textarea.field__input {
  min-height: 96px;
  resize: vertical;
}

.field__input:hover { border-color: var(--muted); }
.field__input:focus-visible { border-color: var(--navy); outline-offset: 0; }
.field__input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-tint); }

.field__error {
  display: flex;
  align-items: center;
  gap: var(--sp-75);
  color: var(--danger);
}

.form__foot {
  display: grid;
  gap: var(--sp-200);
  justify-items: start;
}

.form__note { color: var(--muted); }

.form__note a,
.text-link {
  color: var(--brand);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.form__note a { color: var(--navy); }

.notice {
  display: grid;
  gap: var(--sp-100);
  padding: var(--sp-200);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

.notice--error { background: var(--danger-tint); border-color: var(--danger); color: var(--danger); }
.notice--ok { background: var(--leaf); border-color: var(--leaf); }
.notice--info { background: var(--sky); border-color: var(--sky); }
.notice__body { display: grid; gap: var(--sp-50); }

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-card { padding: var(--sp-400); }
}

@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-700); align-items: start; }
  .form-card { padding: var(--sp-500); }
}

/* ---------- FAQ ---------- */

.faq__grid {
  display: grid;
  gap: var(--sp-500);
}

.faq__list {
  display: grid;
  gap: var(--sp-100);
}

.faq__item {
  background: var(--page-alt);
  border: 1px solid var(--tile-line);
  border-radius: var(--r-3xl);
  transition: background-color var(--t-tone) var(--ease);
}

.faq__item[open] { background: var(--tile-sky); color: var(--tile-ink); }

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-200);
  padding: var(--sp-300);
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-3xl);
}

.faq__q::-webkit-details-marker { display: none; }

.faq__mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
}

.faq__mark::before,
.faq__mark::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: var(--r-full);
  transition: transform var(--t-move) var(--ease);
}

.faq__mark::after { transform: rotate(90deg); }
.faq__item[open] .faq__mark::after { transform: rotate(0deg); }

.faq__a {
  padding: var(--sp-0) var(--sp-300) var(--sp-300);
  color: var(--soft);
  max-width: var(--measure);
}

.faq__item[open] .faq__a { color: var(--tile-soft); animation: panel-in var(--t-move) var(--ease); }

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--sp-700); }
  .faq__grid > .section__head { position: sticky; top: calc(var(--sp-900) + var(--sp-300)); align-self: start; }
}

/* ---------- Final call and footer ---------- */

.final {
  padding-block: var(--sp-700);
  background: var(--final-bg);
  color: var(--final-ink);
}

.final__inner {
  display: grid;
  gap: var(--sp-400);
  align-items: center;
}

.final__art {
  width: 100%;
  max-width: 400px;
}

.final__copy {
  display: grid;
  gap: var(--sp-300);
  justify-items: start;
}

@media (min-width: 900px) {
  .final { padding-block: var(--sp-800); }
  .final__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-700); }
  .final__art { max-width: none; }
}

.footer {
  padding-block: var(--sp-700) var(--sp-500);
  background: var(--foot);
  color: var(--strong-ink);
}

.footer__grid {
  display: grid;
  gap: var(--sp-500);
}

.footer__brand {
  display: grid;
  gap: var(--sp-200);
  align-content: start;
  max-width: 40ch;
}

.footer .brand { color: var(--strong-ink); }
.footer .brand__second { color: var(--saffron); }
.footer__brand p { color: var(--strong-soft); }

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-400);
}

.footer__col {
  display: grid;
  gap: var(--sp-100);
  align-content: start;
}

.footer__col h2 { color: var(--strong-soft); }

.footer__link {
  color: var(--strong-ink);
  overflow-wrap: anywhere;
  transition: color var(--t-tone) var(--ease);
}

.footer__link:hover { color: var(--saffron); }

.footer__rule {
  height: 1px;
  margin-top: var(--sp-600);
  background: var(--strong-line);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-100) var(--sp-300);
  padding-top: var(--sp-300);
  color: var(--strong-soft);
}

.footer__cols > :last-child { grid-column: 1 / -1; }

@media (min-width: 640px) {
  .footer__cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
  .footer__cols > :last-child { grid-column: auto; }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-800); }
}

/* ---------- Plain pages (privacy, terms, 404) ---------- */

.page {
  padding-top: calc(var(--sp-900) + var(--sp-500));
  padding-bottom: var(--sp-900);
}

.prose {
  display: grid;
  gap: var(--sp-200);
  max-width: var(--measure);
}

.prose h2 { margin-top: var(--sp-300); }
.prose p,
.prose li { color: var(--soft); }
.prose ul { display: grid; gap: var(--sp-75); padding-left: var(--sp-300); list-style: disc; }
.prose .btn { justify-self: start; margin-top: var(--sp-200); }

.lost {
  display: grid;
  gap: var(--sp-300);
  justify-items: start;
  max-width: var(--hero-measure);
}

.lost__code { color: var(--brand); }

/* ---------- Scroll reveals ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(var(--sp-400));
}

.js .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity var(--t-reveal) var(--ease), transform var(--t-reveal) var(--ease);
}

.reveal-all .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- Reduced motion: opacity only, no movement ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .js .reveal,
  .js .reveal.is-in,
  .menu__item,
  .menu.is-open .menu__item {
    transform: none;
  }

  .js .vision__statement .word { opacity: 1; transition: none; }

  .btn:active,
  .tab:active { transform: none; }

  .panel.is-entering,
  .faq__item[open] .faq__a { animation-name: fade-only; }

  .frame__shot::before { animation: none; }
}

@keyframes fade-only {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media print {
  .nav,
  .menu,
  .skip-link { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .js .vision__statement .word { opacity: 1; }
}
