/* =========================================================
   The Mentor Teacher — shared stylesheet
   Used by index.html (homepage) and scripts.html (landing page)
   ========================================================= */

:root {
  /* Brand palette */
  --cream: #FAEFD9;
  --cream-2: #F6E9D8;
  --peach: #F3C6A0;
  --peach-soft: #F8DCC0;
  --periwinkle: #5D69A8;
  --periwinkle-dark: #2F3B63;
  --deep-blue: #262E4D;
  --terracotta: #C1603D;
  --terracotta-dark: #A54F31;
  --ink: #2B2A28;
  --ink-soft: #57534C;
  --white: #FFFDF9;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-script: "Caveat", cursive;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --max-width: 1100px;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(38, 46, 77, 0.08);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 0.5em; color: var(--deep-blue); font-weight: 600; }
p { margin: 0 0 1em; }
button { font-family: inherit; }

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--deep-blue);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- Script accent ---------- */
.accent {
  font-family: var(--font-script);
  color: var(--terracotta);
  font-size: 1.4em;
  font-weight: 400;
  display: inline-block;
  line-height: 1;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
}
.btn-primary:hover { background: var(--terracotta-dark); }

.btn-secondary {
  background: transparent;
  color: var(--deep-blue);
  border-color: var(--deep-blue);
}
.btn-secondary:hover { background: var(--deep-blue); color: var(--white); }

.btn-ghost {
  background: var(--white);
  color: var(--deep-blue);
  border-color: var(--peach);
}
.btn-ghost:hover { border-color: var(--terracotta); }

.btn-block { width: 100%; }

/* ---------- Site header (homepage) ---------- */
.site-header {
  padding: 22px 0;
  position: relative;
  z-index: 20;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--deep-blue);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
}
.wordmark .accent-dot { color: var(--terracotta); }

.logo-mark {
  height: 42px;
  width: auto;
  display: block;
}
.logo-mark--sm { height: 34px; }

.main-nav ul {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--deep-blue);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}
.main-nav a:hover { border-color: var(--terracotta); }
.main-nav .nav-cta {
  background: var(--deep-blue);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
}
.main-nav .nav-cta:hover { background: var(--periwinkle-dark); border-color: transparent; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--deep-blue);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--deep-blue);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Minimal header (landing page) ---------- */
.minimal-header {
  padding: 22px 0 0;
}
.minimal-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.back-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back-link:hover { color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 72px;
}
.hero .container {
  display: grid;
  gap: 28px;
  text-align: center;
  max-width: 760px;
}
.eyebrow {
  font-family: var(--font-script);
  font-size: 1.6rem;
  color: var(--terracotta);
  margin-bottom: -8px;
  display: block;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}

/* ---------- Section framing ---------- */
section { padding: 64px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.2rem); }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Path cards (homepage hub) ---------- */
.paths { background: var(--white); }
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.path-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(38, 46, 77, 0.06);
}
.path-card .path-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 4px;
}
.path-card.free .path-icon { background: var(--peach-soft); }
.path-card.shop .path-icon { background: #DDE1F2; }
.path-card.about .path-icon { background: #F1DCC8; }

.path-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.path-card p { color: var(--ink-soft); flex-grow: 1; }
.path-card .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Shop section ---------- */
.shop { background: var(--cream); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}
.product-badge {
  align-self: flex-start;
  background: var(--periwinkle);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.product-card .product-type {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
}
.product-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.product-card p { color: var(--ink-soft); font-size: 0.97rem; flex-grow: 1; }
.product-price {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--deep-blue);
  font-weight: 600;
}
.product-card .btn { margin-top: 6px; }

/* ---------- About section ---------- */
.about { background: var(--white); }
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about-inner p { font-size: 1.08rem; color: var(--ink-soft); }
.about-inner p:last-of-type { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep-blue);
  color: var(--cream);
  padding: 48px 0 28px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-top .wordmark { color: var(--white); }
.footer-nav ul { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { color: var(--cream); opacity: 0.85; font-size: 0.92rem; }
.footer-nav a:hover { opacity: 1; color: var(--peach); }
.footer-bottom {
  border-top: 1px solid rgba(251, 243, 232, 0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* =========================================================
   Landing page specific (scripts.html)
   ========================================================= */

.lp-hero { padding: 40px 0 8px; }
.lp-hero .container { max-width: 700px; }
.lp-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.1rem);
  line-height: 1.14;
}
.lp-hero .lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto; }

.opt-in {
  padding: 32px 0 8px;
}
.opt-in-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  border: 1px solid rgba(38, 46, 77, 0.06);
}
.opt-in-card .form-note {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 14px;
  margin-bottom: 0;
  text-align: center;
}

.field-group { margin-bottom: 16px; }
.field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--deep-blue);
  margin-bottom: 6px;
}
.field-group input[type="text"],
.field-group input[type="email"] {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--peach-soft);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field-group input:focus {
  outline: none;
  border-color: var(--terracotta);
}

.whats-inside { background: var(--white); }
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.usecase-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.usecase-number {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--terracotta);
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.usecase-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.usecase-card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

.trust-line {
  padding: 8px 0 64px;
}
.trust-line .container { max-width: 640px; text-align: center; }
.trust-line p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: normal;
}
.trust-line .accent { font-size: 1.7rem; }

.lp-footer {
  padding: 28px 0 40px;
  text-align: center;
}
.lp-footer .back-link { font-size: 0.9rem; }
.lp-footer .copyright {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 860px) {
  .path-grid,
  .product-grid { grid-template-columns: 1fr; }
  .usecase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo-mark { height: 34px; }

  .main-nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 20px 24px 28px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .main-nav.open ul {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 16px;
  }
  .main-nav.open .nav-cta { width: 100%; text-align: center; }

  section { padding: 48px 0; }
  .hero { padding: 40px 0 48px; }
  .opt-in-card { padding: 28px 20px; }
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
