/* TutorFit base styles: shared by the desktop and mobile layouts. */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"], .list-reset { list-style: none; padding: 0; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-indigo);
  line-height: var(--lh-tight);
  letter-spacing: -0.015em;
  font-variation-settings: 'SOFT' 50;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, var(--fs-3xl)); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.875rem, 1.3rem + 2vw, var(--fs-2xl)); }
h3 { font-size: var(--fs-md); line-height: var(--lh-snug); letter-spacing: -0.005em; }
h4 { font-size: var(--fs-base); line-height: var(--lh-snug); }
p, li { text-wrap: pretty; }
.lead { font-size: var(--fs-md); line-height: 1.55; color: var(--c-slate); }
.muted { color: var(--c-slate); }
.small { font-size: var(--fs-sm); }
strong { font-weight: 700; }

a { color: var(--c-indigo); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--c-indigo-700); text-decoration-color: var(--c-saffron); }

.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--c-saffron); padding-bottom: 2px; }
.link-arrow:hover { border-color: var(--c-indigo); }

/* ---------- Focus & a11y ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--c-saffron);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .section--indigo :focus-visible, .site-footer :focus-visible { outline-color: var(--c-saffron-200); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--c-indigo); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hp { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: var(--space-8); }
.section--white { background: var(--c-white); }
.section--tint { background: var(--c-indigo-50); }
.section--warm { background: var(--c-saffron-50); }
.section--indigo { background: var(--c-indigo); color: #E9ECFA; }
.section--indigo h2, .section--indigo h3 { color: #fff; }
.section--indigo .lead, .section--indigo .muted { color: #C9CDEB; }
.section--indigo a:not(.btn) { color: #fff; }

.section-head { max-width: 680px; margin-bottom: var(--space-7); }
.section-head h2 + p { margin-top: var(--space-4); }
.section-head--center { margin-inline: auto; text-align: center; }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

/* Desktop/mobile only blocks: the layouts differ in markup, not just CSS */
@media (max-width: 959.98px) { .only-desktop { display: none !important; } }
@media (min-width: 960px) { .only-mobile { display: none !important; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--c-white);
  --btn-fg: var(--c-indigo);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid var(--btn-bd); border-radius: 12px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; white-space: nowrap;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.btn:hover { color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }

.btn-primary {
  --btn-bg: var(--c-saffron); --btn-fg: var(--c-indigo);
  box-shadow: inset 0 -3px 0 rgba(122, 63, 0, .22), 0 6px 16px -8px rgba(217, 119, 6, .7);
}
.btn-primary:hover { --btn-bg: var(--c-saffron-600); --btn-fg: var(--c-indigo-900); }
.btn-secondary { --btn-bg: var(--c-indigo); --btn-fg: #fff; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); }
.btn-secondary:hover { --btn-bg: var(--c-indigo-700); --btn-fg: #fff; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--c-indigo); --btn-bd: var(--c-indigo); }
.btn-ghost:hover { --btn-bg: var(--c-indigo); --btn-fg: #fff; }
.on-dark .btn-ghost, .section--indigo .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .6); }
.on-dark .btn-ghost:hover, .section--indigo .btn-ghost:hover { --btn-bg: #fff; --btn-fg: var(--c-indigo); --btn-bd: #fff; }
.btn-wa { --btn-bg: var(--c-wa); --btn-fg: #fff; }
.btn-wa:hover { --btn-bg: var(--c-wa-hover); --btn-fg: #fff; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--fs-sm); border-radius: 10px; }

/* ---------- Cards, chips, pills ---------- */
.card {
  background: var(--c-white); border: 1px solid var(--c-line); border-radius: var(--r-md);
  padding: var(--space-5);
}
.card--raised { border-color: transparent; box-shadow: var(--shadow-1); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill);
  background: var(--c-white); border: 1px solid var(--c-line-cool);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-indigo); white-space: nowrap;
  text-decoration: none;
}
a.chip:hover { border-color: var(--c-indigo); color: var(--c-indigo); }
.chip--board { background: var(--c-indigo); border-color: var(--c-indigo); color: #fff; }
.chip--soft { background: var(--c-saffron-100); border-color: transparent; color: var(--c-ink); }
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }

.pill-note {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--r-pill);
  background: var(--c-white); border: 1px solid var(--c-line);
  font-size: var(--fs-sm); font-weight: 600; color: var(--c-indigo);
}
.pill-note svg { width: 22px; height: 22px; }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 32px; }
.tick-list li + li { margin-top: 10px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230B7A6B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}

/* Pointed (Charminar) arch: the brand's one recurring shape. Scales to any box. */
.arch-mask {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V38C0 20 26 9 50 0c24 9 50 20 50 38v62z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V38C0 20 26 9 50 0c24 9 50 20 50 38v62z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ---------- Inner page header ---------- */
.page-hero { padding-block: var(--space-8) var(--space-7); background: var(--c-paper); border-bottom: 1px solid var(--c-line); }
.page-hero h1 { max-width: 18ch; }
.page-hero .lead { margin-top: var(--space-4); max-width: 60ch; }
.breadcrumb { font-size: var(--fs-sm); color: var(--c-slate); margin-bottom: var(--space-4); }
.breadcrumb a { color: var(--c-slate); }

/* ---------- Prose (policies, about) ---------- */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--fs-lg); margin-top: 2em; }
.prose > h2:first-child, .prose > h3:first-child { margin-top: 0; }
.prose h3 { font-size: var(--fs-md); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--c-saffron-700); }

.draft-banner {
  display: block;
  padding: 14px 18px; border-radius: var(--r-md);
  background: var(--c-saffron-100); border: 1px dashed var(--c-saffron-600); color: var(--c-ink);
  font-size: var(--fs-sm);
}
.draft-banner strong { color: var(--c-saffron-700); }

/* ---------- FAQ (native details: works without JS) ---------- */
.faq-item { border-bottom: 1px solid var(--c-line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 1.0625rem; color: var(--c-indigo); line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 28px; height: 28px; margin-top: -2px; border-radius: 50%;
  background: var(--c-indigo-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14h10M14 9v10' stroke='%231F2A6B' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .2s var(--ease), background-color .2s;
}
.faq-item[open] summary::after {
  transform: rotate(45deg); background-color: var(--c-saffron-100);
}
.faq-item .faq-a { padding: 0 44px 22px 0; color: var(--c-slate); }
.faq-item .faq-a a { color: var(--c-indigo); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--c-indigo); color: #E9ECFA; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: #C9CDEB; }
.cta-band a:not(.btn) { color: #fff; }

/* ---------- WhatsApp floating button (position set per layout) ---------- */
.wa-fab {
  position: fixed; z-index: 60; right: 20px; bottom: 20px;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 20px 0 14px; border-radius: var(--r-pill);
  background: var(--c-wa); color: #fff; text-decoration: none; font-weight: 700; font-size: .9375rem;
  box-shadow: 0 10px 28px -8px rgba(14, 124, 74, .65), 0 2px 6px rgba(0, 0, 0, .12);
  transition: background-color .15s, transform .15s var(--ease);
}
.wa-fab:hover { background: var(--c-wa-hover); color: #fff; transform: translateY(-2px); }
.wa-fab svg { width: 26px; height: 26px; flex: none; }

/* ---------- Header pieces shared ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 242, .94); border-bottom: 1px solid transparent; }
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 250, 242, .82); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
}
.site-header.is-scrolled { border-bottom-color: var(--c-line); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 100%; width: auto; }

/* ---------- Footer shared ---------- */
.site-footer { background: var(--c-indigo-900); color: #C9CDEB; font-size: var(--fs-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--c-saffron-200); text-decoration: underline; }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700; color: #fff; letter-spacing: 0; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li + li { margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); color: #A9B2E6; font-size: var(--fs-xs); }
.footer-bottom a { color: #C9CDEB; }

/* ---------- Motion ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* Staggered reveal delays (classes instead of inline style, for a strict CSP). */
.step--d0 { --d: 0s; } .step--d1 { --d: .12s; } .step--d2 { --d: .24s; } .step--d3 { --d: .36s; } .step--d4 { --d: .48s; } .step--d5 { --d: .6s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .wa-fab, .m-tabbar, .m-sticky-cta { display: none !important; }
  body { background: #fff; }
}

/* 404 page */
.lead--404 { margin-top: 16px; max-width: 46ch; }
