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

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6782;
  --bg: #ffffff;
  --soft: #f6f8fd;
  --soft-2: #eef2fb;
  --line: #e4e8f2;
  --primary: #3b5bfd;
  --primary-dark: #2a45d8;
  --primary-soft: #eef1ff;
  --violet: #7c5cff;
  --accent: #ffb020;
  --accent-dark: #f29b00;
  --accent-soft: #fff5df;
  --teal: #0fb5a6;
  --teal-soft: #e3f8f5;
  --rose: #f0567a;
  --rose-soft: #fde9ef;
  --navy: #0b1638;
  --navy-2: #13235a;
  --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(15, 23, 42, 0.05);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(30, 41, 99, 0.07);
  --shadow-lg: 0 24px 60px rgba(11, 22, 56, 0.18);
  --gradient: linear-gradient(135deg, #3b5bfd 0%, #7c5cff 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(59, 91, 253, 0.28); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 28px rgba(59, 91, 253, 0.36); }
.btn-accent { background: var(--accent); color: #231600; box-shadow: 0 8px 22px rgba(255, 176, 32, 0.32); }
.btn-accent:hover { background: var(--accent-dark); color: #231600; box-shadow: 0 12px 28px rgba(255, 176, 32, 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(59, 91, 253, 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(228, 232, 242, 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(59, 91, 253, 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(124, 92, 255, 0.45), transparent 70%),
    radial-gradient(520px 380px at 6% 100%, rgba(15, 181, 166, 0.28), transparent 70%),
    linear-gradient(160deg, #0b1638 0%, #13235a 55%, #1b2f78 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, #ffd27a, #ffb020); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.12rem; color: #c8d2f0; 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: #ffe2a6;
  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: #9fb0dc; 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(5, 10, 40, 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: #c0244d; 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: #0a8a7e; }
.s-amber { background: var(--accent-soft); color: #b06d00; }
.s-rose { background: var(--rose-soft); color: #c0244d; }
.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(5, 10, 40, 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: #b06d00; }
@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 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, 41, 99, 0.12); border-color: #d5dcf0; }
.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: #b06d00; }
.icon-badge.teal { background: var(--teal-soft); color: #0a8a7e; }
.icon-badge.rose { background: var(--rose-soft); color: #c0244d; }
.icon-badge.solid { background: var(--gradient); color: #fff; box-shadow: 0 8px 18px rgba(59, 91, 253, 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, #0fb5a6, #3bd3c1); }
.subject-card.warm::before { background: linear-gradient(90deg, #ffb020, #ff8a3d); }
.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(59, 91, 253, 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(59, 91, 253, 0.15), rgba(124, 92, 255, 0.5), rgba(59, 91, 253, 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(15, 23, 42, 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: #7c5cff; } .c-teach { background: #3b5bfd; } .c-practice { background: #0fb5a6; } .c-doubts { background: #ffb020; }

/* 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: #d6defd; color: #1e3aa8; }
.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 #d3dae8; border-radius: 12px; font-size: 1rem;
  font-family: inherit; background: #fbfcff; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input:hover { border-color: #b9c4dc; }
textarea.input { min-height: 110px; }
.input:focus { border-color: var(--primary); outline: none; background: #fff; box-shadow: 0 0 0 4px rgba(59, 91, 253, 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: #c9d2e8; }
.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 #d3dae8; 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: #b9c4dc; }
.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: #1e3aa8; box-shadow: 0 0 0 3px rgba(59, 91, 253, 0.12); }
.subject-option input:focus-visible + label { outline: 3px solid rgba(59, 91, 253, 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: #d0d8f2; 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(124, 92, 255, 0.14), transparent 70%),
    radial-gradient(420px 240px at 0% 100%, rgba(15, 181, 166, 0.1), transparent 70%),
    linear-gradient(180deg, #f3f6ff, #f8faff);
}
@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(59, 91, 253, 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(255, 176, 32, 0.35), transparent 70%),
    radial-gradient(380px 260px at 0% 100%, rgba(124, 92, 255, 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: #c8d2f0; margin: 0; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--navy); color: #aebbe0; 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, #3b5bfd, #7c5cff, #ffb020); }
.site-footer a { color: #e6ebff; 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: #231600; text-decoration: none; }
.site-footer .brand-text small { color: #8d9bc8; }
.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: #8d9bc8; }

/* 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: #b06d00; 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 #b9c4d8; 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; } }
.plan-list { display: grid; gap: 10px; }
.plan-option { margin-bottom: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
