/* TutorLink home page. Light on effects so it scrolls smoothly on phones; same layout logic on every screen. */

body.hm { background: var(--bg-page); overflow-x: clip; }
.hm h1, .hm h2, .hm h3 { font-family: var(--font-display); letter-spacing: -0.02em; color: var(--ink-950); margin: 0; }
.hm :where(p) { margin: 0; }

/* Header slides away while scrolling down, returns on scroll up */
.navbar { transition: transform 0.28s ease; }
.navbar.nav-hidden { transform: translateY(-100%); }

/* ---------- Shared pieces ---------- */
.hm-sec { padding: clamp(56px, 8vw, 104px) 0; }
.hm-sec-alt { background: var(--surface); border-block: 1px solid var(--border); }
.hm-head { max-width: 680px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.hm-head-left { margin: 0; text-align: left; }
.hm-head h2 { font-size: clamp(26px, 4vw, 40px); line-height: 1.15; }
.hm-head p:not(.hm-kicker) { margin-top: 14px; color: var(--ink-700); font-size: clamp(15px, 1.6vw, 17px); line-height: 1.65; }
.hm-kicker { font-family: var(--font-mono, monospace); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #B7A6FF; margin-bottom: 12px !important; }
.hm-narrow { max-width: 820px; }
.hm-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hm-cta-center { justify-content: center; }

/* ---------- Hero ---------- */
.hm-hero {
  position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(60% 55% at 78% 8%, rgba(124, 92, 252, 0.22), transparent 70%),
    radial-gradient(40% 40% at 8% 92%, rgba(232, 163, 61, 0.1), transparent 70%);
}
.hm-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; margin-bottom: 20px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.03);
  font-size: 13px; font-weight: 600; color: var(--ink-800);
}
.hm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hm-hero h1 { font-size: clamp(34px, 5.6vw, 64px); line-height: 1.06; font-weight: 800; }
.hm-grad { background: linear-gradient(90deg, #A78BFA, #7C5CFC 55%, #E8A33D); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hm-lead { margin-top: 20px; max-width: 540px; font-size: clamp(16px, 1.8vw, 19px); line-height: 1.65; color: var(--ink-700); }
.hm-hero .hm-cta { margin-top: 30px; }
.hm-trust { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hm-trust li { position: relative; padding-left: 22px; font-size: 14px; font-weight: 600; color: var(--ink-800); }
.hm-trust li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--success-light); box-shadow: inset 0 0 0 2px var(--success); }

/* Hero illustration: plain HTML/CSS, no images, no animation */
.hm-hero-art { position: relative; padding: 28px 12px 36px; min-width: 0; }
.hm-card { background: var(--surface-subtle); border: 1px solid var(--border-strong); border-radius: 18px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7); }
.hm-card-main { padding: 22px; max-width: 420px; margin: 0 auto; }
.hm-card-top { display: flex; align-items: center; gap: 12px; }
.hm-card-top strong { display: block; font-size: 15px; color: var(--ink-950); }
.hm-card-top small { font-size: 12.5px; color: var(--ink-500); }
.hm-avatar { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: linear-gradient(135deg, #8B6DFF, #5B3FE0); color: #fff; }
.hm-badge { margin-left: auto; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hm-badge-ok { background: var(--success-light); color: #6EE0B0; }
.hm-rows { margin: 18px 0; display: grid; gap: 10px; }
.hm-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 14px; }
.hm-rows span { color: var(--ink-500); }
.hm-rows b { color: var(--ink-950); }
.hm-card-btn { text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: 14px; background: var(--primary); color: #fff; }
.hm-card-chip { position: absolute; padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-900); white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.hm-chip-a { top: 0; right: 0; }
.hm-chip-b { bottom: 18px; left: 0; }
.hm-example { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--ink-500); }

/* ---------- Value strip ---------- */
.hm-strip { border-block: 1px solid var(--border); background: var(--surface); }
.hm-strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.hm-strip-grid > div { padding: 26px 16px; text-align: center; border-left: 1px solid var(--border); }
.hm-strip-grid > div:first-child { border-left: 0; }
.hm-strip-grid b { display: block; font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 28px); color: var(--ink-950); }
.hm-strip-grid span { font-size: 13.5px; color: var(--ink-500); }

/* ---------- Steps ---------- */
.hm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-steps li { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.hm-num { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 50%; font-weight: 800; background: var(--primary-light); color: #D6CCFF; }
.hm-steps h3, .hm-feat h3 { font-size: 19px; margin-bottom: 8px; }
.hm-steps p, .hm-feat p { color: var(--ink-700); font-size: 15px; line-height: 1.65; }

/* ---------- Features ---------- */
.hm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hm-feat { padding: 26px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-page); }
.hm-fi { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px; border-radius: 12px; font-size: 22px; background: var(--primary-light); }

/* ---------- Subjects ---------- */
.hm-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hm-chips a {
  padding: 12px 22px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface);
  color: var(--ink-900); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color 0.15s, background 0.15s;
}
.hm-chips a:hover { border-color: var(--primary); background: var(--primary-light); color: var(--ink-950); }
.hm-chips a:focus-visible, .hm-faq summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.hm-chips .hm-chip-all { border-color: rgba(232, 163, 61, 0.5); color: #F0C778; }

/* ---------- Safety ---------- */
.hm-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.hm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hm-checks li { position: relative; padding: 16px 18px 16px 52px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-page); color: var(--ink-700); font-size: 15px; line-height: 1.6; }
.hm-checks li::before { content: "\2713"; position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--success-light); color: #6EE0B0; font-size: 13px; font-weight: 800; }
.hm-checks b { color: var(--ink-950); }

/* ---------- Teachers band ---------- */
.hm-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(124, 92, 252, 0.35); border-radius: 24px;
  background: linear-gradient(135deg, rgba(124, 92, 252, 0.22), rgba(232, 163, 61, 0.08));
}
.hm-band h2 { font-size: clamp(22px, 3vw, 32px); line-height: 1.2; max-width: 640px; }
.hm-band p:not(.hm-kicker) { margin-top: 12px; max-width: 620px; color: var(--ink-700); line-height: 1.65; }
.hm-band .btn { flex: none; }

/* ---------- FAQ (native details, no script) ---------- */
.hm-faq { display: grid; gap: 12px; }
.hm-faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--bg-page); }
.hm-faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 20px; position: relative; font-weight: 600; font-size: 16px; color: var(--ink-950); }
.hm-faq summary::-webkit-details-marker { display: none; }
.hm-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: #B7A6FF; }
.hm-faq details[open] summary::after { content: "\2212"; }
.hm-faq details p { padding: 0 20px 20px; color: var(--ink-700); line-height: 1.7; font-size: 15px; }

/* ---------- Final CTA ---------- */
.hm-final { padding: clamp(56px, 8vw, 96px) 0; text-align: center; background: radial-gradient(60% 90% at 50% 100%, rgba(124, 92, 252, 0.25), transparent 70%); }
.hm-final h2 { font-size: clamp(28px, 4.4vw, 44px); }
.hm-final p { margin: 14px auto 28px; max-width: 520px; color: var(--ink-700); font-size: 17px; line-height: 1.6; }

/* ---------- Reveal (only when JS is on; content is visible without it) ---------- */
.hm-js .hm-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.hm-js .hm-reveal.in { opacity: 1; transform: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .hm-hero-grid, .hm-split { grid-template-columns: 1fr; }
  .hm-hero-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .hm-steps, .hm-grid { grid-template-columns: 1fr 1fr; }
  .hm-strip-grid { grid-template-columns: 1fr 1fr; }
  .hm-strip-grid > div:nth-child(3) { border-left: 0; }
  .hm-strip-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .hm-band { flex-direction: column; align-items: flex-start; }
  /* the blurred translucent bar is costly on phones */
  .navbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(10, 10, 15, 0.96); }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .hm-steps, .hm-grid { grid-template-columns: 1fr; }
  .hm-hero .hm-cta .btn, .hm-cta-center .btn, .hm-band .btn { width: 100%; justify-content: center; }
  .hm-card-chip { font-size: 12px; padding: 8px 12px; }
  .hm-chips a { padding: 10px 16px; font-size: 14px; }
  .hm-strip-grid > div { padding: 20px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .navbar, .hm-js .hm-reveal { transition: none; }
  .hm-js .hm-reveal { opacity: 1; transform: none; }
}

.hm [hidden] { display: none !important; }