/* ============================================================
   GoGuru — landing site styles
   ============================================================ */

:root {
  --green:        #4ECBA0;
  --green-dark:   #3bb189;
  --bg:           #F2EEFF;
  --white:        #FFFFFF;
  --text:         #1E1B3A;
  --muted:        #8B89A8;
  --purple:       #7B6EEA;
  --coral:        #FF6B6B;
  --amber:        #FFD166;
  --border:       #E0DEFC;
  --success-bg:   #D4F5EC;
  --shadow:       0 18px 40px rgba(123, 110, 234, 0.08);
  --shadow-hover: 0 22px 50px rgba(123, 110, 234, 0.16);
  --radius:       20px;   /* rounded-2xl */
  --radius-sm:    12px;
  --ease:         200ms ease;
  --maxw:         1160px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; color: var(--text); line-height: 1.15; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 88px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: 40px; font-weight: 700; margin-bottom: 14px; }
.section-head p  { font-size: 18px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: scale(1.02); }
.btn:active { transform: scale(0.99); }

.btn-green { background: var(--green); color: #fff; box-shadow: 0 8px 20px rgba(78, 203, 160, 0.28); }
.btn-green:hover { background: var(--green-dark); box-shadow: 0 12px 26px rgba(78, 203, 160, 0.38); }

.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { box-shadow: 0 12px 26px rgba(30, 27, 58, 0.35); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo svg { width: 38px; height: 38px; }
.logo .wordmark {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--green);
  letter-spacing: -0.5px;
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg);
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  padding: 60px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.label-pill {
  display: inline-block;
  background: var(--success-bg);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: 56px; font-weight: 700; margin-bottom: 20px; }
.hero-sub { font-size: 18px; color: var(--muted); max-width: 480px; margin-bottom: 30px; }

/* Waitlist inline form */
.waitlist-form { display: flex; gap: 10px; max-width: 460px; }
.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 13px 20px;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.waitlist-form input[type="email"]::placeholder { color: var(--muted); }
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(78, 203, 160, 0.18);
}
.form-note { font-size: 13.5px; color: var(--muted); margin-top: 14px; }
.form-msg { font-size: 14px; margin-top: 12px; min-height: 18px; font-weight: 500; }
.form-msg.ok   { color: var(--green-dark); }
.form-msg.err  { color: var(--coral); }

/* ---------- Phone mockup ---------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 280px;
  height: 570px;
  background: var(--text);
  border-radius: 42px;
  padding: 12px;
  box-shadow: 0 40px 70px rgba(30, 27, 58, 0.28);
  animation: float 3s ease-in-out infinite;
}
.phone::before { /* notch */
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 26px;
  background: var(--text);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 32px;
  background: linear-gradient(150deg, var(--green) 0%, var(--purple) 100%);
  overflow: hidden;
  position: relative;
  padding: 54px 18px 18px;
}
.phone-screen .app-title {
  color: #fff;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 19px;
  margin-bottom: 4px;
}
.phone-screen .app-sub { color: rgba(255,255,255,0.85); font-size: 12px; margin-bottom: 18px; }
.mini-card {
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  padding: 13px 14px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: 0 6px 16px rgba(30,27,58,0.12);
}
.mini-card .av {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}
.mini-card .lines { flex: 1; }
.mini-card .l1 { height: 8px; width: 70%; background: var(--text); opacity: 0.85; border-radius: 4px; margin-bottom: 7px; }
.mini-card .l2 { height: 7px; width: 45%; background: var(--muted); border-radius: 4px; }
.mini-card .pill { font-size: 10px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.pill-paid { background: var(--success-bg); color: var(--green-dark); }
.pill-due  { background: #FFE6E6; color: var(--coral); }

/* ---------- Social proof ---------- */
.social {
  background: var(--white);
  border-top: 2px solid var(--green);
  padding: 28px 0;
}
.social-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 15px;
}
.avatars { display: inline-flex; }
.avatars .av {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
  border: 2px solid var(--white);
  margin-left: -10px;
}
.avatars .av:first-child { margin-left: 0; }

/* ---------- Generic card grid ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.card h3 { font-size: 21px; font-weight: 700; margin: 18px 0 10px; }
.card p  { color: var(--muted); font-size: 15.5px; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: grid; place-items: center;
}
.card-icon svg { width: 28px; height: 28px; }

/* Problem cards: accent left border */
.problem-cards .card { border-left: 4px solid var(--border); }
.problem-cards .card.coral  { border-left-color: var(--coral); }
.problem-cards .card.amber  { border-left-color: var(--amber); }
.problem-cards .card.purple { border-left-color: var(--purple); }
.ic-coral  { background: #FFE6E6; color: var(--coral); }
.ic-amber  { background: #FFF3D6; color: #C99A1E; }
.ic-purple { background: #ECE9FF; color: var(--purple); }

/* Solution section */
.solution { background: var(--white); }
.solution .card {
  background: var(--success-bg);
  border: 1px solid #BFEEDD;
  box-shadow: none;
}
.ic-green { background: #fff; color: var(--green); }

/* ---------- How it works ---------- */
.how { background: var(--bg); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}
.steps::before { /* dashed connector */
  content: "";
  position: absolute;
  top: 36px;
  left: 16.6%;
  right: 16.6%;
  border-top: 2px dashed var(--green);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.step-num {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 30px;
  display: grid; place-items: center;
  box-shadow: 0 12px 26px rgba(78, 203, 160, 0.35);
  border: 5px solid var(--bg);
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.step p  { color: var(--muted); font-size: 15.5px; max-width: 280px; margin: 0 auto; }

/* ---------- Waitlist CTA ---------- */
.cta {
  background: linear-gradient(90deg, var(--green) 0%, var(--purple) 100%);
  color: #fff;
  text-align: center;
}
.cta h2 { color: #fff; font-size: 42px; font-weight: 700; max-width: 720px; margin: 0 auto 16px; }
.cta p  { color: rgba(255,255,255,0.85); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.cta .waitlist-form { margin: 0 auto; max-width: 500px; }
.cta .waitlist-form input[type="email"] { border-color: transparent; }
.cta .waitlist-form input[type="email"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.4);
}
.cta .form-note { color: rgba(255,255,255,0.8); }
.cta .form-msg.ok { color: #fff; }
.cta .form-msg.err { color: #FFE0E0; }

/* ---------- Footer ---------- */
.footer { background: var(--white); border-top: 1px solid var(--border); padding: 48px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.footer .logo .wordmark { font-size: 22px; }
.footer-tag { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.footer-links a:hover { color: var(--green); }
.footer-made { text-align: right; color: var(--muted); font-size: 14px; }
.footer-copy { text-align: center; color: var(--muted); font-size: 13px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Legal pages ---------- */
.legal { display: flex; justify-content: center; padding: 72px 0; min-height: calc(100vh - 70px - 240px); }
.legal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 800px;
  width: 100%;
  padding: 48px;
}
.legal-card h1 { font-size: 38px; font-weight: 700; margin-bottom: 8px; }
.legal-card .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal-card p { color: var(--text); margin-bottom: 16px; }
.legal-card .muted { color: var(--muted); }
.back-home { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 500; margin-top: 28px; }
.back-home:hover { text-decoration: underline; }

/* ---------- Legal long-form content ---------- */
.legal-card h2 {
  font-family: 'Lora', serif;
  font-size: 24px;
  font-weight: 700;
  margin: 36px 0 12px;
  padding-top: 4px;
}
.legal-card h2:first-of-type { margin-top: 24px; }
.legal-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text);
  margin: 22px 0 6px;
}
.legal-card p { color: var(--text); margin-bottom: 14px; line-height: 1.7; }
.legal-card ul { margin: 0 0 16px; padding-left: 22px; }
.legal-card li { color: var(--text); margin-bottom: 7px; line-height: 1.6; }
.legal-card ol { margin: 0 0 16px; padding-left: 22px; }
.legal-card a { color: var(--green-dark); text-decoration: underline; word-break: break-word; }
.legal-card strong { font-weight: 500; }
.legal-card .lead { font-size: 17px; color: var(--muted); margin-bottom: 8px; }

.legal-note {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.legal-note strong { color: var(--text); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 24px;
  font-size: 14.5px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--border);
  padding: 10px 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}
.legal-table th {
  background: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  color: var(--text);
}
.legal-table td { color: var(--text); }
.legal-table-wrap { overflow-x: auto; }

@media (max-width: 768px) {
  .legal-card h2 { font-size: 21px; }
  .legal-table { font-size: 13px; }
  .legal-table th, .legal-table td { padding: 8px 9px; }
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hero sequential fade-in */
.fade-seq { opacity: 0; animation: fadeUp 0.6s ease forwards; }
.fade-seq.d1 { animation-delay: 0.05s; }
.fade-seq.d2 { animation-delay: 0.20s; }
.fade-seq.d3 { animation-delay: 0.35s; }
.fade-seq.d4 { animation-delay: 0.50s; }
.fade-seq.d5 { animation-delay: 0.65s; }

/* Scroll reveal (IntersectionObserver) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.10s; }
.reveal.delay-2 { transition-delay: 0.20s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .fade-seq, .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1199px) {
  .hero-grid { gap: 36px; }
  .hero h1 { font-size: 48px; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .label-pill { margin-top: 10px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .waitlist-form { margin-left: auto; margin-right: auto; }
  .phone-wrap { margin-top: 20px; }
  .cards, .steps { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer .logo { justify-content: center; }
  .footer-made { text-align: center; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .section-head h2, .cta h2 { font-size: 30px; }
  .section-head { margin-bottom: 40px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .legal-card { padding: 30px 22px; }
  .legal-card h1 { font-size: 30px; }
  .nav-inner { height: 62px; }
  .logo .wordmark { font-size: 23px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .phone { width: 250px; height: 510px; }
}

/* ---- Tutor directory links (nav + hero + footer) ---- */
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--purple); }
.hero-tutor-link { margin-top: 10px; }
.hero-tutor-link a {
  color: var(--purple);
  font-weight: 500;
  text-decoration: none;
}
.hero-tutor-link a:hover { text-decoration: underline; }
@media (max-width: 460px) {
  /* Keep the small-screen nav to logo + one CTA; the hero and footer
     still carry the directory link. */
  .nav-link { display: none; }
}

/* ---- Tutor directory banner (bottom of page, parent/student audience) ---- */
.directory-banner { padding: 64px 0; background: var(--bg); }
.directory-card {
  display: flex;
  align-items: center;
  gap: 28px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.directory-card img { flex: none; }
.directory-copy { flex: 1; }
.directory-copy h2 { font-size: 30px; margin: 10px 0 8px; }
.directory-copy p { color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 560px; }
.directory-btn { flex: none; white-space: nowrap; }
@media (max-width: 768px) {
  .directory-card { flex-direction: column; text-align: center; padding: 30px 22px; }
  .directory-copy p { max-width: none; }
  .directory-btn { width: 100%; text-align: center; }
}
