/* ============================================================
   LANDING PAGE — Maestro
   Paleta Caderno + Dark via prefers-color-scheme
   ============================================================ */

/* ── Variables ── */
:root {
  --l-bg:       #efe6d4;
  --l-bg-2:     #e5dbc5;
  --l-bg-alt:   #e7dcc4;
  --l-surface:  #f5efe3;
  --l-surface-2:#ece4d2;
  --l-ink:      #18110a;
  --l-ink-2:    #3a2c1c;
  --l-ink-3:    #6a5238;
  --l-ink-4:    #9a8260;
  --l-line:     #d0c09a;
  --l-line-2:   #bcac80;
  --l-green:    #2d6624;
  --l-green-2:  #3d8c35;
  --l-green-3:  #245520;
  --l-green-bg: rgba(45,102,36,0.07);
  --l-logo:     #2d6624;
  --l-white:    #fff;
  --l-radius:   14px;
  --l-radius-l: 20px;
  --l-ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --l-shadow-sm: 0 1px 2px rgba(60,40,20,0.07), 0 1px 1px rgba(60,40,20,0.05);
  --l-shadow-md: 0 4px 16px rgba(60,40,20,0.10), 0 2px 4px rgba(60,40,20,0.06);
  --l-shadow-lg: 0 18px 40px rgba(40,25,10,0.16), 0 6px 14px rgba(40,25,10,0.09);
}

@media (prefers-color-scheme: dark) {
  :root {
    --l-bg:       #0a0a0a;
    --l-bg-2:     #111111;
    --l-bg-alt:   #0f0f0f;
    --l-surface:  #141414;
    --l-surface-2:#1b1b1b;
    --l-ink:      #eaeaea;
    --l-ink-2:    #c4c4c4;
    --l-ink-3:    #858585;
    --l-ink-4:    #525252;
    --l-line:     #242424;
    --l-line-2:   #343434;
    --l-green:    #52a846;
    --l-green-2:  #3d8530;
    --l-green-3:  #45913a;
    --l-green-bg: rgba(82,168,70,0.10);
    --l-logo:     #52a846;
    --l-white:    #eaeaea;
    --l-shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --l-shadow-md: 0 4px 16px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
    --l-shadow-lg: 0 18px 40px rgba(0,0,0,0.7), 0 6px 14px rgba(0,0,0,0.5);
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter Tight', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--l-ink);
  background: var(--l-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Grain texture ── */
body::before {
  content: ''; position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='7'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
@media (prefers-color-scheme: dark) {
  body::before { mix-blend-mode: screen; opacity: 0.4; }
}

/* ── Container ── */
.l-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.l-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--l-bg);
  border-bottom: 1px solid var(--l-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
@supports (backdrop-filter: blur(12px)) {
  .l-nav { background: color-mix(in srgb, var(--l-bg) 85%, transparent); }
}

.l-nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.l-nav-logo {
  color: var(--l-logo);
  display: flex;
  align-items: center;
  transition: opacity 0.15s var(--l-ease);
}
.l-nav-logo:hover { opacity: 0.8; }

.l-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.l-nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--l-ink-3);
  transition: color 0.15s var(--l-ease);
}
.l-nav-links a:hover { color: var(--l-ink); }

.l-nav-cta {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--l-white) !important;
  background: var(--l-green);
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.15s var(--l-ease);
}
.l-nav-cta:hover {
  background: var(--l-green-3);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.l-nav-menu {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  color: var(--l-ink-2);
}
.l-nav-menu svg { width: 22px; height: 22px; }

/* Mobile dropdown */
.l-nav-mobile {
  display: none;
  flex-direction: column;
  padding: 8px 32px 20px;
  border-top: 1px solid var(--l-line);
}
.l-nav-mobile.open { display: flex; }
.l-nav-mobile a {
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--l-ink-2);
  border-bottom: 1px solid var(--l-line);
  transition: color 0.15s var(--l-ease);
}
.l-nav-mobile a:last-child { border-bottom: none; }
.l-nav-mobile a:hover { color: var(--l-ink); }
.l-nav-mobile .l-nav-cta {
  display: inline-block;
  text-align: center;
  margin-top: 8px;
  border-bottom: none;
  color: var(--l-white) !important;
}

/* ============================================================
   HERO
   ============================================================ */
.l-hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
}

.l-hero-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 500;
  font-style: italic;
  line-height: 1.15;
  color: var(--l-ink);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.l-hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  font-weight: 300;
  color: var(--l-ink-3);
  margin-bottom: 40px;
}

.l-hero-logo {
  color: var(--l-logo);
  margin: 0 auto 48px;
  display: flex;
  justify-content: center;
}
.l-hero-logo svg {
  height: clamp(48px, 8vw, 72px);
}

.l-hero-cta {
  display: inline-block;
  padding: 16px 40px;
  font-size: 16px;
  font-weight: 600;
  color: var(--l-white);
  background: var(--l-green);
  border-radius: 14px;
  transition: all 0.18s var(--l-ease);
  box-shadow: var(--l-shadow-md);
}
.l-hero-cta:hover {
  background: var(--l-green-3);
  transform: translateY(-2px);
  box-shadow: var(--l-shadow-lg);
}

.l-hero-hint {
  margin-top: 16px;
  font-size: 13px;
  font-weight: 400;
  color: var(--l-ink-4);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.l-section-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 500;
  font-style: italic;
  color: var(--l-ink);
  line-height: 1.2;
  margin-bottom: 12px;
}

.l-section-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--l-ink-3);
  margin-bottom: 48px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.l-features {
  padding: 100px 0;
  text-align: center;
}

.l-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}

.l-feature-card {
  background: var(--l-surface);
  border: 1px solid var(--l-line);
  border-radius: var(--l-radius-l);
  padding: 28px 24px;
  transition: all 0.2s var(--l-ease);
}
.l-feature-card:hover {
  background: var(--l-surface-2);
  transform: translateY(-2px);
  box-shadow: var(--l-shadow-md);
}

.l-feature-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--l-green-bg);
  border-radius: 12px;
  margin-bottom: 18px;
  color: var(--l-green);
}
.l-feature-icon svg { width: 22px; height: 22px; }

.l-feature-card h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  color: var(--l-ink);
  margin-bottom: 8px;
}

.l-feature-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--l-ink-3);
  line-height: 1.65;
}

/* ============================================================
   PARENTS
   ============================================================ */
.l-parents {
  padding: 100px 0;
  background: var(--l-bg-alt);
}

.l-parents-inner { text-align: center; }

.l-parents-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--l-green);
  background: var(--l-green-bg);
  border: 1px solid color-mix(in srgb, var(--l-green) 20%, transparent);
  border-radius: 20px;
  padding: 5px 16px;
  margin-bottom: 24px;
}

.l-parents-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.l-parents-text p {
  font-size: 15px;
  font-weight: 300;
  color: var(--l-ink-2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.l-parents-text p:last-child { margin-bottom: 0; }

.l-parents-text strong {
  font-weight: 600;
  color: var(--l-ink);
}

.l-parents-text em {
  font-style: italic;
}

/* ============================================================
   FAQ
   ============================================================ */
.l-faq {
  padding: 100px 0;
  text-align: center;
}

.l-faq-list {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.l-faq-item {
  border-bottom: 1px solid var(--l-line);
}

.l-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--l-ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.15s var(--l-ease);
}
.l-faq-item summary::-webkit-details-marker { display: none; }

/* Chevron */
.l-faq-item summary::after {
  content: '';
  width: 20px; height: 20px;
  flex-shrink: 0;
  margin-left: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a5238' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.25s var(--l-ease);
}
@media (prefers-color-scheme: dark) {
  .l-faq-item summary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23858585' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  }
}

.l-faq-item[open] summary::after {
  transform: rotate(180deg);
}

.l-faq-item summary:hover { color: var(--l-green); }

.l-faq-item p {
  padding: 0 0 20px;
  font-size: 14px;
  font-weight: 300;
  color: var(--l-ink-3);
  line-height: 1.7;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.l-cta-final {
  padding: 100px 0 120px;
  text-align: center;
}

.l-cta-title {
  font-family: 'Lora', Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 500;
  font-style: italic;
  color: var(--l-ink);
  line-height: 1.2;
  margin-bottom: 32px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.l-footer {
  background: var(--l-bg-2);
  border-top: 1px solid var(--l-line);
  padding: 56px 0 0;
}

.l-footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.l-footer-brand {
  color: var(--l-logo);
}
.l-footer-brand p {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 300;
  color: var(--l-ink-4);
  max-width: 260px;
}

.l-footer-links {
  display: flex;
  gap: 56px;
}

.l-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.l-footer-col h4 {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--l-ink-4);
  margin-bottom: 4px;
}

.l-footer-col a {
  font-size: 14px;
  font-weight: 400;
  color: var(--l-ink-3);
  transition: color 0.15s var(--l-ease);
}
.l-footer-col a:hover { color: var(--l-ink); }

.l-footer-bottom {
  margin-top: 48px;
  padding: 20px 0;
  border-top: 1px solid var(--l-line);
  text-align: center;
}
.l-footer-bottom p {
  font-size: 12px;
  font-weight: 400;
  color: var(--l-ink-4);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .l-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .l-footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .l-container { padding: 0 20px; }

  /* Nav */
  .l-nav-links { display: none; }
  .l-nav-menu { display: flex; }
  .l-nav-inner { padding: 0 20px; }
  .l-nav-mobile { padding: 8px 20px 20px; }

  /* Hero */
  .l-hero { padding: 120px 0 72px; }
  .l-hero-sub { margin-bottom: 28px; }
  .l-hero-logo { margin-bottom: 36px; }
  .l-hero-cta { padding: 14px 32px; font-size: 15px; width: 100%; max-width: 320px; text-align: center; }

  /* Features */
  .l-features { padding: 72px 0; }
  .l-features-grid { grid-template-columns: 1fr; gap: 14px; }
  .l-feature-card { padding: 22px 20px; }

  /* Parents */
  .l-parents { padding: 72px 0; }

  /* FAQ */
  .l-faq { padding: 72px 0; }

  /* CTA */
  .l-cta-final { padding: 72px 0 88px; }
  .l-cta-final .l-hero-cta { width: 100%; max-width: 320px; text-align: center; }

  /* Footer */
  .l-footer-links { flex-direction: column; gap: 32px; }
  .l-footer-bottom { margin-top: 32px; }
}

@media (max-width: 360px) {
  .l-hero-title { font-size: 28px; }
  .l-hero-cta { padding: 14px 24px; }
}
