/* ══════════════════════════════════════════════════════════════════════════
   LESSONIFY — SHARED DESIGN SYSTEM (v2)
   Used on: index.html, about.html, pricing.html, terms.html, privacy.html
   Save as /css/lessonify-v2.css
   ══════════════════════════════════════════════════════════════════════════ */

:root {
  --sage: #4A6741;
  --sage-soft: #6B8A62;
  --sage-deep: #2F4729;
  --sage-glow: rgba(74,103,65,0.12);
  --gold: #C9922A;
  --gold-soft: #E0B04E;
  --rust: #B84C2A;
  --cream: #FAF6EF;
  --paper: #F5F0E5;
  --sand: #EFE8D8;
  --white: #FFFFFF;
  --ink: #1A1612;
  --ink-soft: #5A544C;
  --ink-faint: #8A8278;
  --border: rgba(26,22,18,0.08);
  --border-soft: rgba(26,22,18,0.05);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 1px 2px rgba(26,22,18,0.04), 0 4px 12px rgba(26,22,18,0.04);
  --shadow-md: 0 2px 4px rgba(26,22,18,0.04), 0 12px 32px rgba(26,22,18,0.08);
  --shadow-lg: 0 4px 8px rgba(26,22,18,0.04), 0 24px 56px rgba(26,22,18,0.12);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; display: block; }

.serif { font-family: 'Fraunces', Georgia, serif; }

/* ══════════════════════════════════════════════════════════════════════════
   CONTAINER
   ══════════════════════════════════════════════════════════════════════════ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2rem;
}
@media (max-width: 640px) {
  .container, .container-narrow { padding: 0 1.25rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   NAV
   ══════════════════════════════════════════════════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,246,239,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav-logo span { color: var(--sage); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.15s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.current { color: var(--ink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--ink);
  color: var(--cream) !important;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.nav-cta:hover {
  background: var(--sage-deep);
  transform: translateY(-1px);
}
.nav-cta::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.nav-cta:hover::after { transform: translateX(2px); }

.mobile-toggle {
  display: none;
  background: none;
  font-size: 1.4rem;
  color: var(--ink);
  padding: 0.25rem;
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; gap: 1.25rem; padding: 1.5rem 2rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .mobile-toggle { display: block; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════════════════════════════ */
section {
  padding: 6rem 0;
  position: relative;
}
@media (max-width: 640px) {
  section { padding: 4rem 0; }
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--sage);
  margin-bottom: 1.25rem;
}

.section-heading {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 680px;
}
.section-heading em {
  font-style: italic;
  color: var(--sage);
}

.section-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 600px;
}

/* ══════════════════════════════════════════════════════════════════════════
   PAGE HERO (for about, pricing, terms, privacy)
   Smaller, centred hero for secondary pages
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero {
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  max-width: 80vw;
  max-height: 80vw;
  background: radial-gradient(circle, var(--sage-glow) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--sage-glow);
  border: 1px solid rgba(74,103,65,0.18);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sage-deep);
  margin-bottom: 1.5rem;
}
.page-hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--sage);
}
.page-hero .sub {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s var(--ease);
}
.btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--sage-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
}
.btn::after { content: '→'; transition: transform 0.2s var(--ease); }
.btn:hover::after { transform: translateX(3px); }
.btn.no-arrow::after { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   FOOTER (shared across all pages)
   ══════════════════════════════════════════════════════════════════════════ */
footer {
  background: var(--ink);
  color: rgba(250,246,239,0.7);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 5rem 0 2.5rem;
  margin-top: 0;
}
@media (max-width: 640px) {
  footer { border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 3.5rem 0 2rem; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
.footer-brand .footer-logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cream);
  margin-bottom: 1rem;
}
.footer-brand .footer-logo span { color: var(--gold-soft); }
.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(250,246,239,0.5);
  max-width: 320px;
}
.footer-col h4 {
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(250,246,239,0.4);
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a {
  color: rgba(250,246,239,0.75);
  font-size: 0.9rem;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(250,246,239,0.08);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: rgba(250,246,239,0.4);
  flex-wrap: wrap;
}

/* ══════════════════════════════════════════════════════════════════════════
   PROSE (for about, terms, privacy long-form content)
   ══════════════════════════════════════════════════════════════════════════ */
.prose {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink);
}
.prose > * + * { margin-top: 1.2rem; }
.prose h2 {
  font-family: 'Fraunces', serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-top: 2rem;
  margin-bottom: 0.3rem;
  color: var(--ink);
}
.prose p {
  color: var(--ink-soft);
  line-height: 1.75;
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose a {
  color: var(--sage);
  font-weight: 500;
  border-bottom: 1px solid rgba(74,103,65,0.2);
  transition: border-color 0.2s;
}
.prose a:hover { border-color: var(--sage); }
.prose ul, .prose ol {
  padding-left: 1.5rem;
  color: var(--ink-soft);
}
.prose li { margin-bottom: 0.5rem; line-height: 1.7; }
.prose ul li::marker { color: var(--sage); }
.prose hr {
  border: none;
  height: 1px;
  background: var(--border);
  margin: 3rem 0;
}
.prose blockquote {
  border-left: 3px solid var(--sage);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ══════════════════════════════════════════════════════════════════════════
   CARDS (reusable)
   ══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}
.card-paper {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-soft);
}

/* ══════════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
