/* ABEd landing — premium, Alberta-warm, mobile-first */

:root {
  --ink: #0f241c;
  --ink-soft: #2a4036;
  --muted: #5a7266;
  --cream: #f4f7f2;
  --paper: #ffffff;
  --forest: #0f2e22;
  --forest-mid: #1a4a36;
  --leaf: #2f6f4e;
  --leaf-bright: #3d8f64;
  --mint: #7dcea0;
  --mint-soft: #d8f0e4;
  --gold: #d4a017;
  --gold-soft: #f7e8b8;
  --border: rgba(15, 46, 34, 0.12);
  --shadow: 0 12px 40px rgba(15, 46, 34, 0.1);
  --shadow-lg: 0 24px 60px rgba(15, 46, 34, 0.14);
  --radius: 16px;
  --radius-lg: 24px;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --max: 1100px;
  --narrow: 720px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--leaf); text-underline-offset: 0.15em; }
a:hover { color: var(--leaf-bright); }

.sr-only {
  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: 1rem; top: -3rem;
  background: var(--forest);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 100;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap.narrow { width: min(100% - 2rem, var(--narrow)); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 247, 242, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--forest);
  font-weight: 700;
}
.brand:hover { color: var(--leaf); }
.brand-mark { display: none !important; }
.brand-text {
  font-family: var(--display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 550;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--leaf); }
.nav-cta {
  background: var(--forest);
  color: #fff !important;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
}
.nav-cta:hover { background: var(--leaf) !important; color: #fff !important; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 1px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  padding: 0.35rem 0;
}

@media (min-width: 800px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 0.85rem 1.5rem; font-size: 1.05rem; }
.btn-primary {
  background: var(--gold);
  color: var(--forest);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: #e0b020;
  color: var(--forest);
  border-color: #e0b020;
}
.btn-ghost {
  background: transparent;
  color: #e8f5ee;
  border-color: rgba(232, 245, 238, 0.45);
}
.btn-ghost:hover {
  background: rgba(232, 245, 238, 0.1);
  color: #fff;
  border-color: #fff;
}
.section .btn-ghost,
.audience-card .btn-ghost,
.price-card .btn-ghost {
  color: var(--forest);
  border-color: var(--border);
}
.section .btn-ghost:hover,
.audience-card .btn-ghost:hover,
.price-card .btn-ghost:hover {
  background: var(--mint-soft);
  color: var(--forest);
  border-color: var(--mint);
}
.btn-text {
  background: transparent;
  color: var(--mint);
  border: 0;
  padding-inline: 0.5rem;
  text-decoration: underline;
  font-weight: 600;
}
.btn-text:hover { color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: #e8f5ee;
  padding: 3.5rem 0 4rem;
}

.hero-mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(61, 143, 100, 0.45), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(212, 160, 23, 0.22), transparent 50%),
    radial-gradient(ellipse 60% 40% at 70% 90%, rgba(125, 206, 160, 0.18), transparent 55%),
    linear-gradient(165deg, #0a2219 0%, #0f2e22 40%, #163d2c 100%);
  animation: meshDrift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes meshDrift {
  from { transform: scale(1) translate(0, 0); }
  to { transform: scale(1.05) translate(-1.5%, 1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-mesh { animation: none; }
  html { scroll-behavior: auto; }
  .path-line { animation: none !important; }
  .node { animation: none !important; }
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
  }
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mint);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
}

.lede {
  margin: 0 0 1.5rem;
  font-size: 1.12rem;
  color: #c8e6d4;
  max-width: 36rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: 0.85rem;
  color: #8fbfa5;
}

.hero-visual {
  justify-self: center;
  width: min(100%, 360px);
  padding: 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232, 245, 238, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.path-line {
  stroke-dashoffset: 0;
  animation: dashFlow 8s linear infinite;
}
@keyframes dashFlow {
  to { stroke-dashoffset: -56; }
}
.node.n2 {
  animation: pulseNode 2.8s ease-in-out infinite;
}
@keyframes pulseNode {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

/* Sections */
.section {
  padding: 4rem 0;
}
.section h2 {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}
.section-lede {
  margin: -0.5rem 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.problem { background: var(--paper); }
.problem-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 720px) {
  .problem-grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  color: var(--forest);
}
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

.solution { background: var(--cream); }
.solution-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .solution-steps { grid-template-columns: 1fr 1fr; }
}
.solution-steps li {
  display: flex;
  gap: 1rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(15, 46, 34, 0.04);
}
.step-num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--forest);
  font-weight: 750;
  font-size: 0.95rem;
}
.solution-steps h3 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.05rem;
}
.solution-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.audiences { background: var(--paper); }
.audience-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .audience-grid { grid-template-columns: 1fr 1fr; }
}
.audience-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--border);
}
.audience-card.student {
  background: linear-gradient(160deg, #eef8f2 0%, #fff 55%);
}
.audience-card.parent {
  background: linear-gradient(160deg, #faf6e8 0%, #fff 55%);
}
.audience-card h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.audience-card ul {
  margin: 0 0 1.5rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}
.audience-card li { margin-bottom: 0.65rem; }
.audience-card li::marker { color: var(--leaf); }

.how { background: var(--cream); }
.how-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 720px) {
  .how-grid { grid-template-columns: repeat(3, 1fr); }
}
.how-grid article {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
}
.how-num {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.35rem;
}
.how-grid h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.how-grid p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.pricing { background: var(--paper); }
.price-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .price-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.price-card.featured {
  background: var(--forest);
  color: #e8f5ee;
  border-color: var(--forest);
  box-shadow: var(--shadow);
  transform: scale(1.02);
}
.price-card.featured .eyebrow,
.price-card.featured .price-note { color: #8fbfa5; }
.price-card.featured h3 { color: #fff; }
.price-card.featured .price { color: var(--gold-soft); }
.price-card.featured .btn-primary {
  margin-top: auto;
}
.price-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--forest);
}
.price {
  margin: 0.35rem 0;
  font-family: var(--display);
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1;
}
.currency { font-size: 1.35rem; vertical-align: super; margin-right: 0.1rem; }
.period {
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 550;
  color: var(--muted);
  margin-left: 0.15rem;
}
.price-card.featured .period { color: #8fbfa5; }
.price-note {
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.price-card .btn { margin-top: auto; align-self: stretch; }
.badge {
  position: absolute;
  top: -0.65rem;
  right: 1.25rem;
  margin: 0;
  background: var(--gold);
  color: var(--forest);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}

.trust { background: var(--cream); }
.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}
.trust-list li {
  background: var(--paper);
  border-left: 4px solid var(--leaf);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.15rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.faq { background: var(--paper); }
.faq-list { display: grid; gap: 0.65rem; }
details {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.15rem 1rem;
}
summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.9rem 0;
  list-style: none;
  color: var(--forest);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  float: right;
  font-weight: 400;
  color: var(--muted);
}
details[open] summary::after { content: "–"; }
details p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.cta-band {
  background:
    radial-gradient(ellipse 70% 80% at 20% 50%, rgba(61, 143, 100, 0.35), transparent 60%),
    var(--forest);
  color: #e8f5ee;
  padding: 3.5rem 0;
  text-align: center;
}
.cta-inner h2 {
  margin: 0 0 0.65rem;
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}
.cta-inner p {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  color: #c8e6d4;
}
.cta-inner .hero-ctas { justify-content: center; }

.site-footer {
  background: #0a1f18;
  color: #8fbfa5;
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}
.footer-inner {
  display: grid;
  gap: 1.25rem;
}
.footer-inner .brand-text {
  margin: 0;
  color: #e8f5ee;
  font-family: var(--display);
  font-size: 1.1rem;
}
.footer-tag { margin: 0.25rem 0 0; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.footer-links a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 550;
}
.footer-links a:hover { text-decoration: underline; color: #fff; }
.footer-fine {
  margin: 0;
  font-size: 0.82rem;
  color: #5a8a72;
  border-top: 1px solid rgba(143, 191, 165, 0.15);
  padding-top: 1.25rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
  .footer-fine { grid-column: 1 / -1; }
}

/* Contrast: ensure primary CTAs readable on forest */
.hero .btn-primary,
.cta-band .btn-primary {
  box-shadow: 0 4px 20px rgba(212, 160, 23, 0.35);
}
