/* TutorMind Landing — light, student-friendly */

:root {
  --bg: #f3f7f6;
  --bg-deep: #e7efed;
  --surface: #ffffff;
  --surface2: #f7faf9;
  --border: #d5e0dd;
  --text: #1a2b28;
  --text-dim: #5a6f6b;
  --accent: #0d7377;
  --accent-hover: #095c5f;
  --accent-soft: rgba(13, 115, 119, 0.1);
  --green: #1b8a5a;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --font-display: Fraunces, Georgia, serif;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(26, 43, 40, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(ellipse 90% 50% at 10% -10%, rgba(13, 115, 119, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 40% at 90% 5%, rgba(45, 106, 79, 0.08), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══ Navigation ═══ */
.l-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  background: rgba(243, 247, 246, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.l-nav.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.92);
}
.l-nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.l-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 700; color: var(--accent); white-space: nowrap;
}
.l-logo a { color: inherit; text-decoration: none; }
.l-nav-links { display: flex; gap: 22px; }
.l-nav-links a {
  color: var(--text-dim); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color 0.15s;
}
.l-nav-links a:hover { color: var(--text); }
.l-nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.l-lang-select {
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 12px; cursor: pointer; outline: none;
  font-family: var(--font);
}

/* ═══ Buttons ═══ */
.l-btn-primary {
  padding: 10px 22px; border-radius: 10px; border: none;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background 0.2s, transform 0.2s; white-space: nowrap;
  font-family: var(--font);
}
.l-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.l-btn-lg { padding: 14px 32px; font-size: 16px; }
.l-btn-full { width: 100%; }
.l-btn-secondary {
  background: transparent; border: 1.5px solid var(--accent); color: var(--accent);
  padding: 12px 20px; border-radius: 10px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: background 0.2s;
}
.l-btn-secondary:hover { background: var(--accent-soft); }

/* ═══ Hero ═══ */
.l-hero {
  position: relative;
  min-height: min(92vh, 780px);
  display: flex; align-items: flex-end;
  padding: 0;
  overflow: hidden;
}
.l-hero-bg {
  position: absolute; inset: 0;
  animation: heroDrift 22s ease-in-out infinite alternate;
}
.l-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
  display: block;
}
.l-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(243, 247, 246, 0.96) 0%, rgba(243, 247, 246, 0.88) 34%, rgba(243, 247, 246, 0.42) 62%, rgba(243, 247, 246, 0.18) 100%),
    linear-gradient(180deg, transparent 50%, var(--bg) 100%);
}
@keyframes heroDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.05) translate(-1.2%, 0.8%); }
}
.l-hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; width: 100%;
  margin: 0 auto;
  padding: 140px 24px 88px;
  animation: heroIn 0.9s ease-out both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.l-hero-brand {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}
.l-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
  max-width: 14ch;
}
.l-hero-sub {
  font-size: 18px; color: var(--text-dim); line-height: 1.55;
  margin-bottom: 28px; max-width: 34ch;
}
.l-hero-cta { display: flex; gap: 12px; align-items: center; }

.l-hero-stats {
  display: flex;
  gap: 18px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.l-hero-stat {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(13, 115, 119, 0.22);
  border-radius: 14px;
  padding: 14px 18px;
  min-width: 190px;
}
.l-hero-stat-num {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}
.l-hero-stat-label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ═══ Sections ═══ */
.l-section { padding: 88px 24px; max-width: 1000px; margin: 0 auto; }
.l-section-title {
  font-family: var(--font-display);
  text-align: center; font-size: clamp(26px, 3vw, 34px); font-weight: 700; margin-bottom: 10px;
  color: var(--text);
}
.l-section-sub {
  text-align: center; font-size: 16px; color: var(--text-dim);
  margin: 0 auto 40px; max-width: 480px;
}

/* Reveal motion */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ═══ Features (simple list, not competitor table) ═══ */
.l-feat-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 36px;
  max-width: 860px; margin: 0 auto;
}
.l-feat-item h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; margin-bottom: 8px; color: var(--text);
}
.l-feat-item h3::before {
  content: "";
  display: inline-block; width: 10px; height: 10px; border-radius: 3px;
  background: var(--accent); margin-right: 10px; vertical-align: middle;
}
.l-feat-item p { font-size: 15px; color: var(--text-dim); line-height: 1.55; padding-left: 20px; }

/* ═══ How it works ═══ */
.l-how { background: transparent; }
.l-how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 960px; margin: 0 auto; }
.l-how-step { text-align: left; padding: 0; }
.l-how-photo {
  width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  margin-bottom: 16px; background: var(--bg-deep);
}
.l-how-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.l-how-step:hover .l-how-photo img { transform: scale(1.04); }
.l-how-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.l-how-step h3 {
  font-family: var(--font-display);
  font-size: 18px; margin-bottom: 8px;
}
.l-how-step p { font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ═══ Mood band ═══ */
.l-mood {
  position: relative;
  height: clamp(220px, 32vw, 380px);
  overflow: hidden;
  margin: 12px 0 0;
}
.l-mood img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
  display: block;
}
.l-mood-fade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 28%, transparent 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(243, 247, 246, 0.35), transparent 40%, transparent 60%, rgba(243, 247, 246, 0.25));
  pointer-events: none;
}

/* ═══ Stories / testimonials ═══ */
.l-stories {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  padding-left: 0; padding-right: 0;
}
.l-stories .l-section-title,
.l-stories .l-section-sub { padding: 0 24px; }
.l-test-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
}
.l-test-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.l-test-photo {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; margin-bottom: 16px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.l-test-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.l-test-initials {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; color: var(--accent);
}
.l-test-quote {
  font-size: 15px; color: var(--text); line-height: 1.55; margin-bottom: 16px;
  font-style: normal;
}
.l-test-author strong { display: block; font-size: 14px; }
.l-test-author span { font-size: 12px; color: var(--text-dim); }

/* ═══ Pricing ═══ */
.l-price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 720px; margin: 0 auto; }
.l-price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; position: relative; transition: border-color 0.2s;
  box-shadow: var(--shadow);
}
.l-price-card:hover { border-color: var(--accent); }
.l-price-card h3 {
  font-family: var(--font-display);
  font-size: 22px; margin-bottom: 12px;
}
.l-price-amount { font-size: 40px; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.l-price-amount span { font-size: 16px; color: var(--text-dim); font-weight: 400; }
.l-price-card > p { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
.l-price-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.l-price-card li {
  padding: 8px 0; font-size: 14px;
  border-bottom: 1px solid var(--border);
}
.l-price-card li:before { content: "✓ "; color: var(--green); font-weight: 700; }
.l-price-pro { border-color: var(--accent); }
.l-price-alt { font-size: 14px; color: var(--text-dim); margin: 4px 0 12px; }
.l-pro-actions { display: flex; flex-direction: column; gap: 10px; }
.l-price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 5px 14px; border-radius: 8px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}

/* ═══ FAQ ═══ */
.l-faq { max-width: 650px; margin: 0 auto; }
.l-faq-item { border-bottom: 1px solid var(--border); }
.l-faq-q {
  width: 100%; text-align: left; padding: 18px 0; border: none; background: none;
  color: var(--text); font-size: 16px; font-weight: 600; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font);
}
.l-faq-q:after { content: "+"; font-size: 20px; color: var(--text-dim); }
.l-faq-q.open:after { content: "−"; }
.l-faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  font-size: 15px; color: var(--text-dim); line-height: 1.6;
}
.l-faq-a.open { max-height: 220px; padding-bottom: 16px; }

/* ═══ CTA Bottom ═══ */
.l-cta-bottom {
  position: relative;
  text-align: center; padding: 0;
  overflow: hidden;
  min-height: 340px;
  display: flex; align-items: center; justify-content: center;
}
.l-cta-bg {
  position: absolute; inset: 0;
}
.l-cta-bg img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.l-cta-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 43, 40, 0.45), rgba(13, 115, 119, 0.55));
}
.l-cta-inner {
  position: relative; z-index: 1;
  padding: 88px 24px;
}
.l-cta-bottom h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 22px;
  color: #fff;
}
.l-cta-bottom .l-btn-primary {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ═══ Footer ═══ */
.l-footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 24px; max-width: 1000px; margin: 0 auto;
  background: transparent;
}
.l-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.l-footer h4 { font-size: 13px; margin-bottom: 12px; color: var(--text); }
.l-footer a {
  display: block; font-size: 13px; color: var(--text-dim); text-decoration: none;
  margin-bottom: 6px; transition: color 0.15s;
}
.l-footer a:hover { color: var(--accent); }
.l-footer-tag { color: var(--text-dim); font-size: 13px; }
.l-footer-bottom {
  text-align: center; padding-top: 20px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-dim);
}

/* Legal pages that reuse landing.css */
.legal-page, .about-page {
  max-width: 720px; margin: 100px auto 60px; padding: 0 24px;
  color: var(--text);
}

/* ═══ Responsive ═══ */
@media (max-width: 768px) {
  .l-nav-links { display: none; }
  .l-nav-inner { gap: 12px; }
  .l-hero { min-height: unset; }
  .l-hero-inner { padding: 120px 20px 56px; }
  .l-hero-brand { font-size: 42px; }
  .l-hero h1 { font-size: 26px; max-width: none; }
  .l-hero-sub { font-size: 16px; max-width: none; }
  .l-hero-bg {
    /* keep photo; stronger wash for readability on small screens */
  }
  .l-hero-bg::after {
    background:
      linear-gradient(180deg, rgba(243, 247, 246, 0.9) 0%, rgba(243, 247, 246, 0.82) 55%, var(--bg) 100%);
  }
  .l-hero-bg img { object-position: center center; }
  .l-mood { height: 180px; }
  .l-cta-bottom { min-height: 280px; }
  .l-section { padding: 64px 16px; }
  .l-feat-list { grid-template-columns: 1fr; gap: 22px; }
  .l-test-grid { grid-template-columns: 1fr; }
  .l-price-grid { grid-template-columns: 1fr; }
  .l-footer-grid { grid-template-columns: 1fr; }
  .l-how-steps { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 480px) {
  .l-btn-lg { padding: 12px 24px; font-size: 15px; }
  .l-lang-select { font-size: 11px; }
}

/* RTL */
[dir="rtl"] .l-hero-inner { text-align: right; }
[dir="rtl"] .l-feat-item p { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .l-feat-item h3::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .l-faq-q { text-align: right; }
