/* =====================================================================
   EvoLearn landing page — stylesheet
   Organized top-to-bottom the same way the page reads: tokens & resets,
   then layout primitives (container/buttons), then one block per section.
   ===================================================================== */

/* ---------------------------- Design tokens --------------------------- */
:root {
  /* Brand palette */
  --color-primary: #2E2A6E;      /* deep indigo — headings, primary actions */
  --color-primary-dark: #211E52;
  --color-accent: #FF6B4A;       /* warm coral — highlights, secondary CTAs */
  --color-bg: #F7F6F3;           /* warm off-white page background */
  --color-surface: #FFFFFF;      /* cards, form fields */
  --color-text: #1A1A1A;
  --color-text-muted: #5B5B66;
  --color-border: #E4E2DD;

  /* Type */
  --font-heading: "Sora", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;

  /* Layout */
  --container-width: 1120px;
  --radius: 12px;
  --shadow-card: 0 4px 20px rgba(26, 26, 26, 0.06);
}

/* ------------------------------- Reset -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
}
h1, h2, h3 { font-family: var(--font-heading); line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

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

/* ------------------------------ Buttons -------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(255, 107, 74, 0.35); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-border); width: 100%; text-align: center; }
.btn-outline:hover { border-color: var(--color-primary); }
.btn-block { width: 100%; text-align: center; border: none; }

/* ------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-primary);
  letter-spacing: 0.02em;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 500;
}
.nav-menu a:hover { color: var(--color-primary); }
.nav-cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--color-primary-dark); }

.lang-dropdown {
  position: relative;
}
.lang-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.lang-dropdown-toggle:hover,
.lang-dropdown-toggle[aria-expanded="true"] { border-color: var(--color-primary); }
.lang-caret { color: var(--color-text-muted); transition: transform 0.15s ease; flex-shrink: 0; }
.lang-dropdown-toggle[aria-expanded="true"] .lang-caret { transform: rotate(180deg); }

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 140px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}
.lang-option {
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
}
.lang-option:hover,
.lang-option:focus-visible { background: var(--color-bg); outline: none; }
.lang-option[aria-selected="true"] { color: var(--color-primary); font-weight: 600; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
}

/* ---------------------------------- Hero -------------------------------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 12px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--color-primary);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--color-text-muted);
  max-width: 46ch;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0 10px; }
.hero-note { font-size: 0.85rem; color: var(--color-text-muted); }

/* Decorative chat mockup */
.chat-mock {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.chat-mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #FF6B6B; }
.dot-yellow { background: #FFD166; }
.dot-green { background: #06D6A0; }
.chat-mock-title {
  margin-left: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
.chat-mock-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.9rem;
  max-width: 85%;
}
.bubble-user {
  background: #EEEDF7;
  color: var(--color-text);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.bubble-bot {
  background: var(--color-primary);
  color: #fff;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.bubble.typing { display: flex; gap: 4px; align-items: center; padding: 14px; }
.bubble.typing span {
  width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: 0.6;
  animation: blink 1.2s infinite ease-in-out;
}
.bubble.typing span:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* ------------------------------ Trust strip ----------------------------- */
.trust-strip { padding: 28px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-label { text-align: center; font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 14px; }
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-weight: 600;
  color: #B9B7C6;
  font-size: 1rem;
}

/* -------------------------------- Sections ------------------------------ */
.section { padding: 88px 0; }
.section-alt { background: #F0EEF9; }
.section-title {
  text-align: center;
  color: var(--color-primary);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto 48px;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 22px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step { text-align: center; padding: 0 12px; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; }
.step p { color: var(--color-text-muted); font-size: 0.92rem; }

/* Embedded Dialogue Builder tool (see tools/dialogue-builder.html) */
.tool-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}
.tool-embed iframe {
  display: block;
  width: 100%;
  height: 760px;
  border: none;
}
@media (max-width: 680px) {
  .tool-embed iframe { height: 620px; }
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card-highlight {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-card);
  transform: scale(1.03);
}
.price-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--color-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-card h3 { color: var(--color-primary); }
.price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; margin-bottom: 4px; }
.price span { font-size: 1rem; font-weight: 500; color: var(--color-text-muted); }
.price-desc { color: var(--color-text-muted); font-size: 0.9rem; }
.price-card ul { margin: 4px 0 24px; flex-grow: 1; }
.price-card li {
  padding: 6px 0;
  font-size: 0.92rem;
  border-top: 1px solid var(--color-border);
}
.price-card li:first-child { border-top: none; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
}
.faq-item p { margin-top: 10px; color: var(--color-text-muted); font-size: 0.92rem; }

/* Waitlist form */
.cta-section { background: var(--color-primary); }
.cta-section .section-title, .cta-section .section-sub { color: #fff; }
.cta-section .section-sub { color: #D8D6EE; }
.waitlist-form {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow-card);
}
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted); }
.form-row input, .form-row select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: #fff;
}
.form-row input:focus, .form-row select:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}
.form-status { text-align: center; font-size: 0.9rem; min-height: 1.2em; margin: 0; }
.form-status.success { color: #1E7A4C; }
.form-status.error { color: #C0392B; }

/* -------------------------------- Footer -------------------------------- */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--color-border); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}
.logo-footer { margin-bottom: 6px; }
.footer-tagline { color: var(--color-text-muted); font-size: 0.9rem; }
.footer-heading {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.footer-col a { display: block; padding: 4px 0; color: var(--color-text); }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ================================================================
   Responsive breakpoints
   ================================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-highlight { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0; right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 24px 24px;
    gap: 16px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-cta { align-self: flex-start; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
