/* Tutornet website (tutornet.app): landing, product, legal and help pages. Always light. */
:root {
  --brand: #10b981;
  --brand-strong: #059669;
  --brand-deep: #064e3b;
  --brand-soft: #d1fae5;
  --mint: #b6ebd4;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e5e7eb;
  --text: #0f172a;
  --text-2: #334155;
  --text-3: #64748b;
  --amber-soft: #fef3c7;
  --amber-ink: #92400e;
  --radius: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Poppins', var(--font);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a[aria-current='page'] { color: var(--brand-strong); }
.nav .btn { margin-left: 6px; }
@media (max-width: 720px) {
  .nav a:not(.btn) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--brand); color: #fff !important; text-decoration: none;
  font-weight: 600; font-size: 15px; border: 0; cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: var(--surface); color: var(--text) !important; border: 1px solid var(--border); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.dark { background: var(--text); color: var(--bg) !important; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px 0 14px; border-radius: 14px; background: #0f172a; color: #fff !important; text-decoration: none; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; opacity: 0.8; line-height: 1.1; }
.store strong { display: block; font-size: 16px; line-height: 1.15; font-weight: 600; }

/* ---------- Landing ---------- */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--brand-strong); background: var(--brand-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 700; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: 18.5px; color: var(--text-2); margin: 18px 0 28px; max-width: 34rem; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--text-3); }
.phone {
  position: relative; margin: 0 auto; width: min(320px, 100%); aspect-ratio: 9 / 18.5;
  border-radius: 44px; background: var(--surface); border: 10px solid #0f172a;
  box-shadow: 0 40px 80px -30px rgba(6, 78, 59, 0.45); overflow: hidden; padding: 22px 16px;
}
.phone .ph-title { font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.15; margin: 10px 0 14px; }
.phone .ph-cal { border-radius: 16px; overflow: hidden; background: var(--surface-2); }
.phone .ph-cal-head { background: var(--brand); color: #fff; text-align: center; padding: 10px; font-weight: 700; font-size: 14px; }
.phone .ph-cal-head span { display: block; font-weight: 500; font-size: 11px; opacity: 0.9; }
.phone .ph-ev { margin: 8px; border-radius: 12px; padding: 10px 12px; background: var(--mint); font-size: 12.5px; }
.phone .ph-ev b { display: block; font-size: 13.5px; }
.phone .ph-ev.alt { background: #ffd8b0; color: #1f2937; }
.phone .ph-search { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--text-3); }
.phone .ph-tutor { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.phone .ph-av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #a7f3d0, #10b981); }
.phone .ph-tutor b { font-size: 13.5px; display: block; }
.phone .ph-tutor span { font-size: 11.5px; color: var(--text-3); }
@media (max-width: 900px) {
  .hero { padding: 48px 0 24px; }
  .hero .wrap { grid-template-columns: 1fr; }
}

.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { max-width: 40rem; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--text-2); margin-top: 10px; font-size: 17px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.section.alt .feature { background: var(--bg); }
.feature .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 14px; }
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--text-2); }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-strong); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps b { color: var(--text); }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }

.safety { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; color: var(--text-2); }
.checks li::before { content: ''; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.checks b { color: var(--text); }
@media (max-width: 800px) { .safety { grid-template-columns: 1fr; } }

.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand-strong); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--text-2); }

.cta-band { background: linear-gradient(135deg, #064e3b, #047857 55%, #10b981); color: #ecfdf5; border-radius: 28px; padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); color: #fff; }
.cta-band p { margin: 8px 0 0; color: #a7f3d0; }
.cta-band .store { background: #fff; color: #0f172a !important; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 64px; padding: 40px 0 48px; color: var(--text-3); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 24px; }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--text-3); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .fine { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 18px; font-size: 13px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }

/* ---------- Legal / document pages ---------- */
.doc-hero { padding-top: 48px; padding-bottom: 8px; }
.doc-hero h1 { font-size: clamp(30px, 4vw, 44px); }
.doc-hero .meta { color: var(--text-3); margin-top: 10px; font-size: 14.5px; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-top: 28px; align-items: start; }
.toc { position: sticky; top: 88px; font-size: 14px; }
.toc strong { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 5px 0 5px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-3); text-decoration: none; line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--brand); }
.doc-body { max-width: 46rem; }
.doc-body section { scroll-margin-top: 84px; padding-bottom: 8px; }
.doc-body h2 { font-size: 22px; margin: 34px 0 12px; }
.doc-body h3 { font-size: 17px; margin: 22px 0 8px; font-family: var(--font); letter-spacing: 0; }
.doc-body p, .doc-body li { color: var(--text-2); }
.doc-body ul, .doc-body ol { padding-left: 1.25rem; margin: 0 0 14px; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { color: var(--text); }
.summary { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: 14px; padding: 18px 22px; margin-bottom: 8px; }
.summary h2 { margin: 0 0 8px !important; font-size: 17px !important; }
.summary ul { margin: 0; }
.notice { background: var(--amber-soft); color: var(--amber-ink); border-radius: 14px; padding: 14px 18px; font-size: 14.5px; margin: 16px 0; }
.notice strong { color: inherit; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 18px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-2); }
.table th { color: var(--text); font-weight: 600; background: var(--surface-2); }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
.table-scroll .table { margin: 0; }
.caps { text-transform: uppercase; font-size: 14px; letter-spacing: 0.01em; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 8px; }
  .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
  .toc ol { border: 0; columns: 2; display: block; }
  .toc a { padding-left: 0; border: 0; }
}
@media (max-width: 520px) { .toc ol { columns: 1; } }

/* ---------- Small centred pages (join, delete) ---------- */
.narrow { max-width: 36rem; margin: 0 auto; padding: 56px 20px 24px; }
.narrow h1 { font-size: clamp(28px, 6vw, 40px); margin-bottom: 12px; }
.narrow .lead { color: var(--text-2); font-size: 17.5px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 24px; margin-top: 22px; }
.panel h2 { font-size: 18px; margin-bottom: 10px; }
.panel ol { padding-left: 1.2rem; color: var(--text-2); margin: 0; }
