/* TutorFit – MOBILE layout (loaded below 960px). App-like: compact top bar, bottom tabs, thumb CTAs. */

h1 { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.625rem, 1.1rem + 2.6vw, 2.1rem); line-height: 1.15; }
.lead { font-size: 1.0625rem; }
.section { padding-block: 56px; }
.section-head { margin-bottom: 28px; }
.section-head h2 + p { margin-top: 12px; }

/* ---------- Header ---------- */
.hdr { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.hdr .brand { height: 36px; }
.m-menu-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px 0 16px;
  border-radius: var(--r-pill); background: var(--c-indigo); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .9375rem;
}
.m-menu-btn:hover { color: #fff; }
.m-menu-btn svg { width: 22px; height: 22px; }

/* Full-screen menu sheet: :target fallback without JS, .is-open with JS */
.m-sheet {
  position: fixed; inset: 0; z-index: 200; display: none; flex-direction: column;
  background: var(--c-paper); overflow-y: auto; overscroll-behavior: contain;
  padding: 0 var(--gutter) calc(24px + var(--safe-b));
}
.m-sheet:target, .m-sheet.is-open { display: flex; }
.js .m-sheet:target:not(.is-open) { display: none; }
.m-sheet.is-open { animation: sheet-in .28s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.m-sheet__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); flex: none; }
.m-sheet__top .brand { height: 36px; }
.m-sheet__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--c-indigo-50); color: var(--c-indigo); }
.m-sheet__close svg { width: 22px; height: 22px; }
.m-sheet__links { list-style: none; padding: 0; margin: 16px 0 0; }
.m-sheet__links a {
  display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--c-line);
  font-family: var(--font-display); font-weight: 600; font-size: 1.75rem; color: var(--c-indigo); text-decoration: none; letter-spacing: -0.01em;
}
.m-sheet__links a.is-active::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c-saffron); }
.m-sheet__actions { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
.m-sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.m-sheet__note { text-align: center; font-size: var(--fs-sm); color: var(--c-slate); margin-top: 4px; }
body.is-locked { overflow: hidden; }

/* ---------- Bottom tab bar + sticky CTA ---------- */
.m-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--c-white); border-top: 1px solid var(--c-line);
  box-shadow: 0 -8px 24px -16px rgba(31, 42, 107, .35);
}
.m-tabbar ul { display: grid; grid-template-columns: repeat(4, 1fr); height: 100%; list-style: none; margin: 0; padding: 0; }
.m-tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 100%;
  font-size: .75rem; font-weight: 700; color: var(--c-slate); text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.m-tabbar svg { width: 24px; height: 24px; }
.m-tabbar a.is-active { color: var(--c-indigo); }
.m-tabbar a.is-active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-saffron); }
.m-tabbar a:focus-visible { outline-offset: -4px; }

.m-sticky-cta {
  position: fixed; left: 0; right: 0; z-index: 65; bottom: calc(var(--tabbar-h) + var(--safe-b));
  height: var(--sticky-h); padding: 10px var(--gutter);
  background: rgba(255, 250, 242, .96); border-top: 1px solid var(--c-line);
}
@supports (backdrop-filter: blur(8px)) {
  .m-sticky-cta { background: rgba(255, 250, 242, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.m-sticky-cta .btn { min-height: 48px; height: 100%; }

/* WhatsApp FAB floats above both bars */
.wa-fab {
  right: 12px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 12px);
  width: 44px; height: 44px; min-height: 0; padding: 0; justify-content: center; border-radius: 50%;
  box-shadow: 0 6px 16px -6px rgba(14, 124, 74, .6), 0 1px 4px rgba(0, 0, 0, .12);
}
.wa-fab svg { width: 22px; height: 22px; }
.wa-fab__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body:has(.m-sticky-cta) .wa-fab { bottom: calc(var(--tabbar-h) + var(--sticky-h) + var(--safe-b) + 12px); }

/* ---------- Footer: keep clear of the fixed bars ---------- */
.footer-grid { display: grid; gap: 28px; padding-block: 48px 32px; }
.footer-brand .brand { height: 38px; }
.footer-brand p { margin-top: 16px; }
.footer-details { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.footer-details:first-child { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-details summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 52px;
  font-weight: 700; color: #fff; cursor: pointer;
}
.footer-details summary::-webkit-details-marker { display: none; }
.footer-details summary::after { content: "+"; font-size: 1.4rem; font-weight: 400; color: var(--c-saffron-200); }
.footer-details[open] summary::after { content: "–"; }
.footer-details .footer-links { padding-bottom: 16px; }
.footer-details .footer-links a { display: inline-block; padding: 4px 0; }
.footer-contact h2 { margin-bottom: 12px; }
.footer-contact .footer-links a { display: inline-block; padding: 4px 0; font-size: 1rem; }
.footer-bottom__inner { padding-block: 20px calc(var(--tabbar-h) + var(--safe-b) + 24px); display: grid; gap: 10px; }
body:has(.m-sticky-cta) .footer-bottom__inner { padding-bottom: calc(var(--tabbar-h) + var(--sticky-h) + var(--safe-b) + 24px); }
.footer-policies { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0; margin: 0; }
.footer-policies a { display: inline-block; padding: 6px 0; }

/* ---------- Swipe rows (scroll-snap) ---------- */
.swipe, ol.swipe[role="list"] {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; list-style: none;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.swipe::-webkit-scrollbar { display: none; }
.swipe > li { flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; }
.swipe-dots { display: flex; justify-content: center; gap: 8px; margin-top: 4px; }
.swipe-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: #D7CBB4; transition: width .2s var(--ease), background-color .2s; }
.swipe-dots button.is-on { width: 24px; background: var(--c-indigo); }

.chip-scroll, ul.chip-scroll[role="list"] {
  flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter);
}
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll > li { flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 0; overflow: hidden; }
.hero__where { font-size: .8125rem; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 1.1rem + 5vw, 2.75rem); letter-spacing: -0.025em; }
.hero__sub { margin-top: 16px; }
.hero__ctas { margin-top: 26px; }
.hero__cta-main { display: flex; width: 100%; min-height: 60px; font-size: 1.125rem; border-radius: 16px; }
.hero__fine { margin-top: 10px; font-size: var(--fs-xs); color: var(--c-slate); text-align: center; }
.hero__tutor-link { display: block; margin-top: 14px; text-align: center; font-weight: 700; font-size: var(--fs-sm); padding: 8px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 22px 0 0; padding: 0; }
.hero__trust li {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 9px; border-radius: var(--r-pill);
  background: var(--c-white); border: 1px solid var(--c-line); font-size: .8125rem; font-weight: 600; color: var(--c-indigo);
}
.hero__trust svg { width: 18px; height: 18px; color: var(--c-teal-700); }
.hero__strip { display: flex; justify-content: center; align-items: flex-end; gap: 10px; margin-top: 36px; height: 190px; }
.hero__strip img { height: 100%; width: auto; flex: none; }
.hero__strip img:first-child, .hero__strip img:last-child { height: 74%; }

/* ---------- Boards ---------- */
.boards { background: var(--c-white); padding: 32px 0 28px; border-bottom: 1px solid var(--c-line); }
.boards__title { font-size: 1.375rem; line-height: 1.2; }
.boards__rows { margin-top: 18px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.boards__row { min-width: 0; }
.boards__label { font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700; color: var(--c-slate); letter-spacing: 0; margin-bottom: 8px; }

/* ---------- Comparison: toggle between two cards ---------- */
.cmp-m__toggle {
  display: grid; grid-template-columns: 1fr 1fr; padding: 5px; gap: 4px; border-radius: 16px; background: var(--c-indigo-50);
  border: 1px solid var(--c-line-cool);
}
.cmp-m__toggle label {
  display: grid; place-items: center; min-height: 46px; border-radius: 12px; font-weight: 700; font-size: .9375rem;
  color: var(--c-slate); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s;
}
#cmp-us:checked ~ .cmp-m__toggle label[for="cmp-us"] { background: var(--c-indigo); color: #fff; box-shadow: var(--shadow-1); }
#cmp-self:checked ~ .cmp-m__toggle label[for="cmp-self"] { background: var(--c-white); color: var(--c-ink); box-shadow: var(--shadow-1); }
#cmp-us:focus-visible ~ .cmp-m__toggle label[for="cmp-us"],
#cmp-self:focus-visible ~ .cmp-m__toggle label[for="cmp-self"] { outline: 3px solid var(--c-saffron); outline-offset: 2px; }
.cmp-m__cards { margin-top: 14px; }
.cmp-m__card { display: none; border-radius: 20px; padding: 6px 20px; }
#cmp-us:checked ~ .cmp-m__cards .cmp-m__card--us { display: block; animation: sheet-in .25s var(--ease); }
#cmp-self:checked ~ .cmp-m__cards .cmp-m__card--self { display: block; animation: sheet-in .25s var(--ease); }
.cmp-m__card--us { background: var(--c-indigo); color: #E9ECFA; }
.cmp-m__card--self { background: var(--c-paper); border: 1px solid var(--c-line); color: var(--c-slate); }
.cmp-m__row { display: flex; gap: 14px; padding: 16px 0; }
.cmp-m__row + .cmp-m__row { border-top: 1px solid var(--c-line); }
.cmp-m__card--us .cmp-m__row + .cmp-m__row { border-top-color: rgba(255, 255, 255, .12); }
.cmp-m__row h3 { font-size: 1.0625rem; }
.cmp-m__card--us h3 { color: #fff; }
.cmp-m__row p { margin-top: 2px; font-size: .9375rem; line-height: 1.5; }
.cmp-ic { flex: none; display: inline-grid; width: 26px; height: 26px; margin-top: 1px; }
.cmp-ic svg { width: 26px; height: 26px; }
.cmp-ic--no { color: #8A8FA3; }
.cmp-ic--yes { color: var(--c-saffron); }

/* ---------- Steps (swipe) ---------- */
.steps .step { background: var(--c-white); border-radius: 18px; padding: 22px 22px 24px; box-shadow: var(--shadow-1); border: 1px solid var(--c-line); }
.steps .step__num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px;
  background: var(--c-indigo); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.375rem;
}
.steps .step:last-child .step__num { background: var(--c-saffron); color: var(--c-indigo); }
.steps .step h3 { font-size: 1.1875rem; }
.steps .step p { margin-top: 8px; color: var(--c-slate); font-size: .9375rem; }

/* ---------- Localities: scrolling chips (3 rows) ---------- */
.loc-scroll { margin: 0 calc(var(--gutter) * -1); overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter) 6px; }
.loc-scroll::-webkit-scrollbar { display: none; }
.loc-chips { display: grid; grid-auto-flow: column; grid-template-rows: repeat(3, auto); gap: 8px; list-style: none; margin: 0; padding: 0; width: max-content; }
.loc-chips .chip { justify-content: center; }
.loc-chips .chip:nth-child(3n+2) { margin-left: 22px; }
.loc-ask { margin-top: 22px; display: grid; gap: 6px; color: var(--c-slate); }
.loc-ask .link-arrow { justify-self: start; }

/* ---------- Checks (swipe) ---------- */
.check-card { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: 18px; padding: 20px 20px 22px; }
.check-card img { width: 96px; margin: -4px 0 10px -6px; }
.check-card__n { font-size: var(--fs-xs); font-weight: 700; color: var(--c-teal-700); }
.check-card h3 { margin-top: 2px; font-size: 1.1875rem; }
.check-card p:last-child { margin-top: 6px; color: var(--c-slate); font-size: .9375rem; }
.checks__also { margin-top: 22px; color: var(--c-slate); font-size: .9375rem; }

/* ---------- Promise ---------- */
.promise__grid { display: grid; grid-template-columns: 96px 1fr; gap: 0 18px; }
.promise__art { width: 96px; aspect-ratio: 4 / 5; display: grid; place-items: center; background: linear-gradient(180deg, var(--c-indigo), var(--c-indigo-700)); align-self: start; }
.promise__art img { width: 44px; }
.promise__photo { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; }
.promise__copy { display: contents; }
.promise__copy h2 { align-self: center; }
.promise__copy > :not(h2) { grid-column: 1 / -1; }
.promise__copy .lead { margin-top: 20px; }
.promise__list { margin-top: 20px; }
.promise__sign { margin-top: 22px; font-family: var(--font-display); font-style: italic; font-size: 1.125rem; color: var(--c-indigo); }

/* ---------- Founding ---------- */
.founding { padding-top: 0; }
.founding__card { padding: 28px 22px; border-radius: 22px; background: var(--c-saffron-100); }
.founding__mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--c-indigo); color: var(--c-saffron); margin-bottom: 16px; }
.founding__mark svg { width: 26px; height: 26px; }
.founding__copy p { margin-top: 10px; color: #3D4257; }
.founding__card .btn { margin-top: 20px; width: 100%; }

/* ---------- Audiences ---------- */
.aud-grid { display: grid; gap: 14px; }
.aud { padding: 22px 20px; border-radius: 18px; background: var(--c-paper); border: 1px solid var(--c-line); border-left: 6px solid var(--c-saffron); }
.aud--tutors { border-left-color: var(--c-teal); }
.aud--schools { border-left-color: var(--c-indigo); }
.aud h3 { font-size: 1.375rem; }
.aud > p { margin-top: 6px; color: var(--c-slate); font-size: .9375rem; }
.aud .tick-list { margin: 14px 0 18px; font-size: .9375rem; font-weight: 600; }
.aud .tick-list li + li { margin-top: 6px; }
.aud .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq__head { margin-bottom: 18px; }
.faq__head .lead { margin-top: 10px; }
.faq__list { border-top: 1px solid var(--c-line); }
.faq-item summary { padding: 18px 0; font-size: 1rem; min-height: 56px; }
.faq-item .faq-a { padding-right: 0; font-size: .9375rem; }
.faq__wa { margin-top: 24px; }

/* ---------- Final CTA ---------- */
.final-cta { padding: 56px 0; }
.final-cta .lead { margin-top: 12px; }
.final-cta__actions { margin-top: 24px; display: grid; gap: 10px; }
.final-cta__actions .btn { width: 100%; }

/* ---------- Inner pages ---------- */
.page-hero { padding-block: 36px 32px; }
.split { display: grid; gap: 32px; }
.prose-toc { display: none; }
.values__grid { display: grid; gap: 12px; }
.values__card { border-left: 4px solid var(--c-saffron); }
.values__card p { margin-top: 6px; color: var(--c-slate); font-size: .9375rem; }
.policy .draft-banner { margin-top: 18px; }
.page-404 { padding-block: 40px 64px; }
.page-404__art { width: 140px; margin-bottom: 24px; }
.page-404__links { display: grid; gap: 10px; margin-top: 24px; }
.page-404__links .btn { width: 100%; }
