/* Ridhya Academy — parent website. Mobile-first, no frameworks or web fonts, small enough for slow connections. */

:root {
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #62626b;
  --bg: #ffffff;
  --soft: #f7f7f8;
  --soft-2: #efeff1;
  --line: #e7e7ea;
  --primary: #d3151b;
  --primary-dark: #a60f14;
  --primary-soft: #fdecec;
  --violet: #8f0d12;
  --accent: #e01b21;
  --accent-dark: #b81217;
  --accent-soft: #f1f1f3;
  --teal: #27272a;
  --teal-soft: #f1f1f3;
  --rose: #d3151b;
  --rose-soft: #fdecec;
  --navy: #111113;
  --navy-2: #1c1c1f;
  --good: #15803d;
  --good-soft: #e6f6ec;
  --warn: #9a5b00;
  --warn-soft: #fff4dc;
  --bad: #b42318;
  --bad-soft: #fdecec;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 24px rgba(30, 30, 35, 0.07);
  --shadow-lg: 0 24px 60px rgba(15, 15, 17, 0.18);
  --gradient: linear-gradient(135deg, #d3151b 0%, #8f0d12 100%);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Gujarati", "Nirmala UI", "Shruti", "Noto Sans Devanagari", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", "Noto Sans Gujarati", "Nirmala UI", "Shruti", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.025em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3.6vw, 2.35rem); }
h3 { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 750; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gradient); }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px;
  border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent;
  cursor: pointer; font-family: inherit; line-height: 1.2; text-align: center;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 20px; height: 20px; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(211, 21, 27, 0.28); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(211, 21, 27, 0.36); }
.btn-accent { background: var(--accent); color: #ffffff; box-shadow: 0 8px 22px rgba(211, 21, 27, 0.32); }
.btn-accent:hover { background: var(--accent-dark); color: #ffffff; box-shadow: 0 12px 28px rgba(211, 21, 27, 0.4); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-whatsapp { background: #1fa855; color: #fff; box-shadow: 0 8px 20px rgba(31, 168, 85, 0.25); }
.btn-whatsapp:hover { background: #178a45; color: #fff; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgba(211, 21, 27, 0.45); outline-offset: 2px;
}
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { gap: 10px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(231, 231, 234, 0.9); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.12rem; white-space: nowrap; line-height: 1.15; letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand-text { display: flex; flex-direction: column; }
.brand-text small { font-size: 0.7rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
@media (max-width: 400px) { .site-header .brand { font-size: 1rem; gap: 8px; } .brand-text small { display: none; } .header-row { gap: 10px; } .lang-switch { padding: 6px 10px; } }
.brand-mark { display: inline-flex; width: 40px; height: 40px; flex-shrink: 0; filter: drop-shadow(0 6px 12px rgba(211, 21, 27, 0.3)); }
.brand-mark svg { width: 100%; height: 100%; }
.nav-desktop { display: none; gap: 2px; margin-left: auto; align-items: center; }
.nav-desktop a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 0.96rem; transition: background 0.15s, color 0.15s; }
.nav-desktop a:not(.btn):hover, .nav-desktop a.active { background: var(--primary-soft); color: var(--primary); }
.nav-desktop .btn { margin-left: 10px; min-height: 44px; padding: 0 20px; font-size: 0.95rem; }
.nav-mobile { margin-left: 8px; position: relative; }
.lang-switch {
  margin-left: auto; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  text-decoration: none; font-weight: 650; font-size: 0.9rem; white-space: nowrap; background: #fff;
}
.lang-switch:hover { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
html[lang="gu"] body { line-height: 1.8; }
html[lang="gu"] h1, html[lang="gu"] h2, html[lang="gu"] h3 { line-height: 1.4; letter-spacing: 0; }
html[lang="gu"] .eyebrow, html[lang="gu"] th, html[lang="gu"] .brand-text small { letter-spacing: 0; }
.nav-mobile summary { list-style: none; cursor: pointer; padding: 10px; border-radius: 12px; border: 1px solid var(--line); line-height: 0; background: #fff; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile[open] summary { background: var(--soft); }
.nav-mobile .menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, 92vw); background: #fff; border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); padding: 10px; display: grid; gap: 2px;
}
.nav-mobile .menu a { padding: 12px 14px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-mobile .menu a:hover { background: var(--soft); }
.nav-mobile .menu .btn { margin-top: 8px; color: #fff; }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .nav-mobile { display: none; }
  .lang-switch { margin-left: 6px; }
}

/* Hero (home page) */
.hero {
  position: relative; overflow: hidden; color: #fff; padding: 56px 0 72px;
  background:
    radial-gradient(600px 400px at 88% 8%, rgba(211, 21, 27, 0.45), transparent 70%),
    radial-gradient(520px 380px at 6% 100%, rgba(120, 12, 16, 0.28), transparent 70%),
    linear-gradient(160deg, #111113 0%, #1c1c1f 55%, #2a1214 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px); background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 95%); mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.hero > .container { position: relative; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } .hero { padding: 88px 0 120px; } }
.hero h1 { color: #fff; max-width: 15em; }
.hero h1 .hl { background: linear-gradient(90deg, #fca5a5, #e01b21); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: #d4d4d8; max-width: 36em; }
@media (min-width: 900px) { .hero .lead { font-size: 1.2rem; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.1); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.18); padding: 7px 16px 7px 10px; border-radius: 999px; font-weight: 650;
  font-size: 0.9rem; margin-bottom: 20px; backdrop-filter: blur(6px);
}
.hero-badge .icon { width: 18px; height: 18px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.hero-note { font-size: 0.88rem; color: #a1a1aa; max-width: 40em; margin: 0; }
.hero-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px; }

/* Hero visual: a child's week, as a card */
.week-visual { position: relative; max-width: 440px; margin: 0 auto; width: 100%; }
.week-card {
  background: #fff; color: var(--ink); border-radius: 26px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  padding: 22px; position: relative; z-index: 1;
}
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.week-head strong { font-size: 1.05rem; }
.week-head .muted { font-size: 0.82rem; display: block; line-height: 1.3; }
.live-pill {
  display: inline-flex; align-items: center; gap: 6px; background: var(--rose-soft); color: #b3121a; font-size: 0.78rem;
  font-weight: 750; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.live-pill .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.week-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); margin-bottom: 10px; }
.week-row:last-of-type { margin-bottom: 0; }
.week-row.is-live { border-color: transparent; background: var(--primary-soft); }
.subject-dot { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.85rem; flex-shrink: 0; }
.s-blue { background: var(--primary-soft); color: var(--primary); }
.week-row.is-live .s-blue { background: var(--primary); color: #fff; }
.s-teal { background: var(--teal-soft); color: #27272a; }
.s-amber { background: var(--accent-soft); color: #27272a; }
.s-rose { background: var(--rose-soft); color: #b3121a; }
.week-row .grow { flex: 1; min-width: 0; line-height: 1.3; }
.week-row .grow strong { display: block; font-size: 0.97rem; }
.week-row .grow span { font-size: 0.8rem; color: var(--muted); }
.week-row .time { font-size: 0.82rem; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.week-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.week-foot .chip { font-size: 0.8rem; padding: 5px 10px; }
.float-toast {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; background: #fff; color: var(--ink);
  border-radius: 16px; padding: 10px 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); font-size: 0.85rem; font-weight: 650; line-height: 1.3;
}
.float-toast .badge { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.float-toast .badge .icon { width: 19px; height: 19px; }
.float-toast small { display: block; color: var(--muted); font-weight: 500; font-size: 0.76rem; }
.toast-wa { left: -18px; bottom: -26px; }
.toast-wa .badge { background: #e3f7eb; color: #1fa855; }
.toast-rec { right: -14px; top: -22px; }
.toast-rec .badge { background: var(--accent-soft); color: #27272a; }
@media (max-width: 520px) { .toast-wa { left: 4px; bottom: -30px; } .toast-rec { right: 4px; top: -26px; } }

/* Stats strip under the hero */
.stats-wrap { position: relative; z-index: 3; margin-top: -48px; }
.stats {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  display: grid; grid-template-columns: repeat(2, 1fr); overflow: hidden;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 900px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
@media (max-width: 899px) { .stat:nth-last-child(-n+2) { border-bottom: 0; } }
.stat .icon-badge { margin: 0; width: 44px; height: 44px; }
.stat strong { display: block; font-size: 1.02rem; line-height: 1.3; }
.stat div span { font-size: 0.84rem; color: var(--muted); line-height: 1.4; display: block; margin-top: 2px; }
@media (max-width: 520px) { .stat { flex-direction: column; gap: 10px; padding: 18px 16px; } }

/* Fact list (also used on inner pages) */
.fact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.fact-list li { display: flex; gap: 14px; align-items: flex-start; }
.fact-list .icon { color: var(--primary); margin-top: 2px; }
.fact-list strong { display: block; }

/* Cards and grids */
.grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 22px; } }
@media (min-width: 640px) and (max-width: 959px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card-hover { transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(30, 30, 35, 0.12); border-color: #dcdce0; }
.icon-badge {
  display: inline-flex; width: 50px; height: 50px; border-radius: 14px; align-items: center; justify-content: center;
  background: var(--primary-soft); color: var(--primary); margin-bottom: 16px; flex-shrink: 0;
}
.icon-badge.warm { background: var(--accent-soft); color: #27272a; }
.icon-badge.teal { background: var(--teal-soft); color: #27272a; }
.icon-badge.rose { background: var(--rose-soft); color: #b3121a; }
.icon-badge.solid { background: var(--gradient); color: #fff; box-shadow: 0 8px 18px rgba(211, 21, 27, 0.3); }

/* Subject group cards */
.subject-card { position: relative; overflow: hidden; }
.subject-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gradient); }
.subject-card.teal::before { background: linear-gradient(90deg, #27272a, #52525b); }
.subject-card.warm::before { background: linear-gradient(90deg, #e01b21, #8f0d12); }
.subject-card .card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.subject-card .card-top .icon-badge { margin: 0; width: 44px; height: 44px; }
.subject-card h3 { margin: 0; }

/* Steps: vertical list on small screens, a timeline across on wide screens */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 70px; position: relative; box-shadow: var(--shadow-sm); }
.steps li::before {
  content: counter(step); position: absolute; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px rgba(211, 21, 27, 0.3);
}
.steps strong { display: block; margin-bottom: 2px; }
@media (min-width: 960px) {
  .steps.horizontal { grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; }
  .steps.horizontal::before {
    content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px;
    background: linear-gradient(90deg, rgba(211, 21, 27, 0.15), rgba(211, 21, 27, 0.5), rgba(211, 21, 27, 0.15));
  }
  .steps.horizontal li { padding: 76px 18px 20px; text-align: center; background: transparent; border: 0; box-shadow: none; }
  .steps.horizontal li::before { left: 50%; top: 6px; transform: translateX(-50%); width: 44px; height: 44px; font-size: 1.05rem; outline: 6px solid var(--soft); }
}

/* Class plan: a one-hour bar */
.plan-bar { display: flex; height: 18px; border-radius: 999px; overflow: hidden; margin: 8px 0 22px; box-shadow: inset 0 0 0 1px rgba(24, 24, 27, 0.04); }
.plan-bar span { display: block; height: 100%; }
.plan-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.plan-legend li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.plan-legend .mins { font-weight: 800; font-size: 1.15rem; min-width: 64px; display: flex; align-items: baseline; gap: 4px; }
.plan-legend .mins small { font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.plan-legend .swatch { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.c-recap { background: #8f0d12; } .c-teach { background: #d3151b; } .c-practice { background: #27272a; } .c-doubts { background: #e01b21; }

/* Chips and pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 550; color: var(--ink-2); }
.chip.ok { background: var(--good-soft); border-color: #bfe3cb; color: #0f5e2d; }
.chip.wait { background: var(--warn-soft); border-color: #f2d9a6; color: #7a4a00; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* Notices */
.notice { border-radius: 14px; padding: 14px 18px; margin: 0 0 16px; border: 1px solid transparent; }
.notice-info { background: var(--primary-soft); border-color: #e4e4e7; color: #27272a; }
.notice-ok { background: var(--good-soft); border-color: #bfe3cb; color: #0f5e2d; }
.notice-warn { background: var(--warn-soft); border-color: #f2d9a6; color: #6b4000; }
.notice-bad { background: var(--bad-soft); border-color: #f6c9c5; color: #8f1c13; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 32px; } }
.form-section { border: 0; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px dashed var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-section legend { font-weight: 800; font-size: 1.12rem; margin-bottom: 4px; padding: 0; font-family: var(--font-display); }
.form-section .hint { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label, .label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 0.97rem; }
.field .optional { font-weight: 400; color: var(--muted); font-size: 0.88rem; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid #d8d8dd; border-radius: 12px; font-size: 1rem;
  font-family: inherit; background: #fcfcfd; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input:hover { border-color: #bdbdc4; }
textarea.input { min-height: 110px; }
.input:focus { border-color: var(--primary); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(211, 21, 27, 0.15); }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .field-row.two { grid-template-columns: 1fr 1fr; } .field-row.three { grid-template-columns: repeat(3, 1fr); } }
.error { color: var(--bad); font-size: 0.9rem; margin-top: 4px; display: block; }
.input-validation-error { border-color: var(--bad); }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; margin-bottom: 10px; cursor: pointer; background: #fff; transition: border-color 0.15s, background 0.15s; }
.check:hover { border-color: #d0d0d6; }
.check input { width: 22px; height: 22px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); }
.check:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.subject-option { position: relative; }
.subject-option input { position: absolute; opacity: 0; inset: 0; }
.subject-option label {
  display: flex; flex-direction: column; gap: 2px; min-height: 68px; justify-content: center; padding: 10px 14px;
  border: 1.5px solid #d8d8dd; border-radius: 14px; cursor: pointer; font-weight: 650; background: #fff; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.subject-option label:hover { border-color: #bdbdc4; }
.subject-option label small { font-weight: 500; font-size: 0.8rem; }
.subject-option input:checked + label { border-color: var(--primary); background: var(--primary-soft); color: #27272a; box-shadow: 0 0 0 3px rgba(211, 21, 27, 0.12); }
.subject-option input:focus-visible + label { outline: 3px solid rgba(211, 21, 27, 0.45); }
.subject-option input:disabled + label { opacity: 0.45; cursor: not-allowed; }
.counter { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; padding: 4px 12px; border-radius: 999px; background: var(--soft); }
.counter.done { background: var(--good-soft); color: var(--good); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; transition: border-color 0.15s, box-shadow 0.15s; }
.faq details[open] { border-color: #dcdce0; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.15rem; line-height: 1; font-weight: 700;
}
.faq details[open] summary::after { content: "–"; background: var(--primary); color: #fff; }
.faq .answer { padding: 0 20px 18px; color: var(--ink-2); }
.faq-layout { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-layout { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } .faq-layout .section-head { text-align: left; margin: 0; position: sticky; top: 100px; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

/* Page header (inner pages) */
.page-head {
  position: relative; overflow: hidden; padding: 48px 0 40px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(500px 260px at 92% 0%, rgba(211, 21, 27, 0.14), transparent 70%),
    radial-gradient(420px 240px at 0% 100%, rgba(120, 12, 16, 0.1), transparent 70%),
    linear-gradient(180deg, #fbf6f6, #fdfbfb);
}
@media (min-width: 900px) { .page-head { padding: 64px 0 52px; } }
.page-head::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: radial-gradient(rgba(211, 21, 27, 0.12) 1px, transparent 1px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.page-head > .container { position: relative; z-index: 1; }
.page-head h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.page-head p { color: var(--muted); max-width: 46em; margin-bottom: 0; font-size: 1.06rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; color: #fff; border-radius: 28px; padding: 36px 26px; display: grid; gap: 20px; align-items: center;
  background:
    radial-gradient(420px 260px at 100% 0%, rgba(211, 21, 27, 0.35), transparent 70%),
    radial-gradient(380px 260px at 0% 100%, rgba(211, 21, 27, 0.5), transparent 70%),
    linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 22px 22px;
}
.cta-band > * { position: relative; }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; padding: 52px 56px; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { color: #d4d4d8; margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy); color: #b4b4bc; padding: 56px 0 28px; margin-top: 80px; font-size: 0.95rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #d3151b, #8f0d12, #e01b21); }
.site-footer a { color: #f4f4f5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; text-decoration: none; }
.site-footer .btn-accent, .site-footer .btn-accent:hover { color: #ffffff; text-decoration: none; }
.site-footer .brand-text small { color: #9a9aa3; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 48px; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-title { color: #fff; font-weight: 750; display: block; margin-bottom: 14px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
html[lang="gu"] .footer-title { letter-spacing: 0; }
.footer-cta { margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 40px; padding-top: 20px; font-size: 0.84rem; color: #9a9aa3; }

/* Floating WhatsApp help */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: inline-flex; align-items: center; gap: 8px;
  background: #1fa855; color: #fff; text-decoration: none; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 12px 30px rgba(18, 120, 60, 0.35); font-weight: 700; transition: transform 0.18s, background 0.18s;
}
.wa-float:hover { background: #178a45; color: #fff; transform: translateY(-2px); }
@media (max-width: 480px) { .wa-float span { display: none; } .wa-float { padding: 14px; } }

/* Result page */
.result-icon { width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.result-icon.ok { background: var(--good-soft); color: var(--good); box-shadow: 0 0 0 8px rgba(21, 128, 61, 0.06); }
.result-icon.wait { background: var(--warn-soft); color: #27272a; box-shadow: 0 0 0 8px rgba(176, 109, 0, 0.06); }
.result-icon .icon { width: 36px; height: 36px; }
.code-box { display: inline-block; font-family: ui-monospace, Consolas, monospace; font-size: 1.4rem; font-weight: 700; letter-spacing: 0.08em; background: var(--soft); border: 1px dashed #c4c4ca; padding: 10px 18px; border-radius: 12px; }

/* Gujarati menu labels are longer: keep the compact menu until the desktop row fits. */
@media (min-width: 900px) and (max-width: 1239px) {
  html[lang="gu"] .nav-desktop { display: none; }
  html[lang="gu"] .nav-mobile { display: block; }
  html[lang="gu"] .lang-switch { margin-left: auto; }
}

/* Progress report */
.report-figure { font-size: 2.3rem; font-weight: 800; margin: 0; line-height: 1.2; color: var(--ink); font-family: var(--font-display); }
.report-subject { margin-bottom: 16px; }
.report-subject-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.report-subject-head h2 { font-size: 1.25rem; margin: 0; }
.report-subject .table-wrap { margin-top: 10px; }
.invite-card { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; background: var(--primary-soft); }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
@media print {
  .site-header, .site-footer, .wa-float, .skip-link, .report-actions, .invite-card { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .page-head { padding: 0 0 12px; background: none; border: 0; }
  .page-head::after { display: none; }
  .section { padding: 0; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* Fee payment page and receipts */
.pay-card { margin-bottom: 20px; }
.pay-card h2 { font-size: 1.45rem; }
.receipt { margin-bottom: 16px; }
.receipt-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-seller { font-weight: 800; font-size: 1.1rem; }
.receipt-title { text-align: right; }
.receipt-kind { font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.receipt .num { text-align: right; white-space: nowrap; }
.receipt tr.total td { font-weight: 700; }
html[lang="gu"] .receipt-kind { letter-spacing: 0; }
@media print { .pay-card .btn { display: none; } .receipt { box-shadow: none; border: 1px solid #ccc; } }
.qr-pay { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 680px) { .qr-pay { grid-template-columns: 1fr 1fr; } }
.qr-step h3 { margin-bottom: 12px; }
.qr-image { display: block; width: 100%; max-width: 260px; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.plan-list { display: grid; gap: 10px; }
.plan-option { margin-bottom: 0; }



/* Brand: the logo's red and black. Red marks action and identity, so information notices stay neutral, not red like errors. */
.brand-mark { filter: none; width: 44px; height: 44px; }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.site-footer .brand-mark { background: #fff; border-radius: 12px; padding: 4px; }
.notice-info { background: #f4f4f5; border-color: #e4e4e7; color: #27272a; }
.c-practice { background: #27272a; }
.c-doubts { background: #a1a1aa; }
.site-footer::before { background: linear-gradient(90deg, #d3151b, #8f0d12, #27272a); }

/* First-visit logo reveal: the three pieces of the logo slide together. Clicks pass through; it removes itself. */
.logo-intro { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: #fff; pointer-events: none; animation: intro-out 0.45s ease 1.25s forwards; }
.logo-intro-mark { position: relative; width: min(180px, 44vw); aspect-ratio: 1; animation: intro-settle 0.45s ease 1.25s forwards; }
.logo-intro-mark img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; animation: intro-piece 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s forwards; }
.logo-intro-mark img:nth-child(1) { --from: -70px, 50px; }
.logo-intro-mark img:nth-child(2) { --from: 0, -70px; animation-delay: 0.22s; }
.logo-intro-mark img:nth-child(3) { --from: 70px, 50px; animation-delay: 0.34s; }
@keyframes intro-piece { from { opacity: 0; transform: translate(var(--from)); } to { opacity: 1; transform: none; } }
@keyframes intro-settle { to { transform: scale(0.82); } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }

/* Scroll-in: site.js adds these only to what is below the fold. */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal-in { opacity: 1; transform: none; transition: opacity 0.55s ease var(--reveal-delay, 0ms), transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) var(--reveal-delay, 0ms); }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Timeline: a red line fills across, and the numbers light up as it passes. */
@media (min-width: 960px) {
  .steps.horizontal li { z-index: 1; }
  .steps.horizontal::after {
    content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: #d3151b;
    transform-origin: left; transition: transform 1.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .steps.horizontal.timeline-wait::after { transform: scaleX(0); }
  .steps.horizontal li::before { transition: transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease; }
  .steps.horizontal.timeline-wait li::before { transform: translateX(-50%) scale(0.72); background: #c4c4ca; box-shadow: none; }
  .steps.horizontal li:nth-child(2)::before { transition-delay: 0.3s; }
  .steps.horizontal li:nth-child(3)::before { transition-delay: 0.6s; }
  .steps.horizontal li:nth-child(4)::before { transition-delay: 0.9s; }
  .steps.horizontal li:nth-child(5)::before { transition-delay: 1.2s; }
}

/* Angled edges taken from the slope of the logo's A. */
.hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 34px)); }
@media (min-width: 960px) { .hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 72px)); } }
.hero::after, .cta-band::after {
  content: ""; position: absolute; pointer-events: none; top: -25%; bottom: -25%; width: 190px; right: 30%; transform: skewX(-30deg);
  background: linear-gradient(180deg, rgba(211, 21, 27, 0.2), rgba(211, 21, 27, 0.03));
}
.cta-band::after { right: 22%; width: 120px; }
.page-head { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 18px)); }

/* Button sweep: a band of light crosses on hover, at the logo's angle. */
.btn-primary, .btn-accent { position: relative; overflow: hidden; }
.btn-primary::after, .btn-accent::after {
  content: ""; position: absolute; top: -30%; bottom: -30%; left: -45%; width: 34%; pointer-events: none; transform: skewX(-30deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent); transition: left 0.6s ease;
}
.btn-primary:hover::after, .btn-accent:hover::after { left: 115%; }
/* Fee calculator */
.calc { display: grid; gap: 0; margin-top: 40px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 90px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1.45fr 1fr; } }
.calc-form { padding: 24px; background: #fff; }
.calc-total { position: relative; overflow: hidden; padding: 24px; color: #fff; background: radial-gradient(320px 240px at 100% 0%, rgba(211, 21, 27, 0.45), transparent 70%), linear-gradient(160deg, #111113, #1c1c1f); }
@media (min-width: 640px) { .calc-form, .calc-total { padding: 32px; } }
.calc-label { color: #d4d4d8; font-size: 0.9rem; }
.calc-amount { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.calc-sub { color: #d4d4d8; font-size: 0.88rem; min-height: 1.2em; }
.calc-plans { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.calc-plans li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); }
.calc-plans small { display: block; color: #d4d4d8; font-size: 0.78rem; }
.calc-total .btn { margin-top: 12px; }
.calc-note { color: #a1a1aa; font-size: 0.8rem; margin: 12px 0 0; }
/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: reduce) { .logo-intro { display: none; } .reveal { opacity: 1; transform: none; } }

/* Parent / student sign-in to My classes, next to Register in the header and under the home page buttons. */
.nav-desktop .btn.nav-signin { margin-left: 6px; }
.nav-desktop .btn.nav-signin + .btn { margin-left: 8px; }
.hero-signin { margin: 14px 0 0; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.hero-signin a { color: #fff; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.hero-signin a .icon { width: 18px; height: 18px; }

/* Cookie notice (only when Google Analytics or the Meta Pixel is set up on the portal) */
.cookie-notice {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 40px rgba(24, 24, 27, 0.18);
  padding: 16px 18px; font-size: 0.93rem;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice p { margin: 0 0 12px; color: var(--ink-2); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { min-height: 44px; padding: 10px 20px; }
