/* ============================================================
   Menteasy — design tokens & base
   Warm editorial · green · human
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,300..600;1,6..72,300..500&family=Hanken+Grotesk:wght@400;500;600;700&display=swap');

:root {
  /* paper / surfaces */
  --paper:     #F4F2E9;
  --paper-2:   #EDEBDF;
  --card:      #FFFFFF;

  /* ink */
  --ink:       #15211B;
  --ink-soft:  #36443D;
  --muted:     #6E7C73;
  --faint:     #95A199;

  /* green system */
  --green-950: #0C2E1F;
  --green-900: #103D29;
  --green-700: #1A6B45;
  --green-600: #1E8154;
  --green-500: #25A368;   /* bright optimistic */
  --green-400: #45C386;
  --sage-300:  #C7DCC2;
  --sage-200:  #DBE8D7;
  --sage-100:  #E9F1E6;
  --sage-50:   #F1F6EF;

  /* warm accent (sparingly) */
  --clay:      #D98E5A;

  /* lines */
  --line:      #E0DECF;
  --line-soft: #EAE8DC;

  /* type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(20,33,27,.06), 0 1px 1px rgba(20,33,27,.04);
  --shadow-md: 0 8px 24px -8px rgba(20,33,27,.14), 0 2px 6px rgba(20,33,27,.06);
  --shadow-lg: 0 28px 60px -20px rgba(15,61,41,.28), 0 8px 22px -12px rgba(20,33,27,.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- shared atoms ---------------------------------------- */
.me-wordmark {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600;
  font-size: 21px; letter-spacing: -.02em; color: var(--ink);
  text-decoration: none; line-height: 1;
}
.me-wordmark .sprout { width: 24px; height: 24px; flex: none; }

.me-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans); font-weight: 600;
  font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--green-700);
}
.me-kicker .dot { width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-500); box-shadow: 0 0 0 4px var(--sage-100); }

.me-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 100px;
  background: var(--sage-100); border: 1px solid var(--sage-200);
  font-weight: 600; font-size: 13px; color: var(--green-700); white-space: nowrap;
}

/* buttons */
.me-btn {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; border-radius: 12px;
  padding: 13px 20px; line-height: 1; letter-spacing: -.01em;
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.me-btn-primary {
  background: var(--green-600); color: #fff;
  box-shadow: 0 6px 16px -6px rgba(30,129,84,.6), inset 0 1px 0 rgba(255,255,255,.18);
}
.me-btn-primary:hover { background: var(--green-700); transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(30,129,84,.6); }
.me-btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.me-btn-ghost:hover { background: rgba(20,33,27,.04); }

/* nav */
.me-nav {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.me-nav-links { display: flex; align-items: center; gap: 30px; }
.me-nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; letter-spacing: -.01em; white-space: nowrap;
}
.me-nav-links a:hover { color: var(--green-700); }

/* inline email capture */
.me-capture {
  display: flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; padding: 7px 7px 7px 16px;
  box-shadow: var(--shadow-sm); max-width: 460px;
}
.me-capture input {
  flex: 1; border: none; outline: none; background: transparent;
  font-family: var(--sans); font-size: 15px; color: var(--ink);
  min-width: 0;
}
.me-capture input::placeholder { color: var(--faint); }

/* mockup cards */
.mck {
  background: var(--card); border: 1px solid var(--line-soft);
  border-radius: 16px; box-shadow: var(--shadow-md);
}
.mck-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 600;
  background: var(--sage-100); color: var(--green-700);
}

/* ============================================================
   LANDING PAGE layout
   ============================================================ */
.page { background: var(--paper); overflow-x: hidden; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }

/* sticky top bar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(244,242,233,.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.topbar.scrolled { border-color: var(--line); background: rgba(244,242,233,.9); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.section-eyebrow {
  font-family: var(--sans); font-weight: 600; font-size: 13px;
  letter-spacing: .09em; text-transform: uppercase; color: var(--green-600);
  display: flex; align-items: center; gap: 9px;
}
.section-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--green-400); }

.section-title {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.025em;
  font-size: clamp(34px, 4.4vw, 50px); line-height: 1.05; color: var(--ink);
  margin: 16px 0 0; max-width: 16ch;
}
.section-title em { font-style: italic; color: var(--green-700); }
.section-lead {
  font-size: 18.5px; line-height: 1.55; color: var(--ink-soft);
  max-width: 52ch; margin: 18px 0 0;
}

/* hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(72% 48% at 50% 30%, rgba(69,195,134,.16) 0%, rgba(69,195,134,0) 62%),
    linear-gradient(180deg, var(--sage-50) 0%, var(--paper) 30%);
  padding: 64px 0 0; text-align: center;
}
.hero-glow { display: none; }
.hero h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -.03em;
  font-size: clamp(48px, 8vw, 96px); line-height: .98; margin: 26px 0 0; color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--green-600); }
.hero-lead {
  font-size: clamp(17px, 2.1vw, 21px); line-height: 1.5; color: var(--ink-soft);
  max-width: 540px; margin: 22px auto 30px;
}
.hero-note { font-size: 13.5px; color: var(--muted); margin-top: 15px; }

/* staggered entrance — visible by default; animate FROM hidden only when motion is allowed */
.rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .reveal .rise { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.16,.84,.36,1) forwards; }
  .reveal .d1 { animation-delay: .05s; } .reveal .d2 { animation-delay: .14s; }
  .reveal .d3 { animation-delay: .23s; } .reveal .d4 { animation-delay: .32s; }
  .reveal .d5 { animation-delay: .42s; } .reveal .d6 { animation-delay: .52s; }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* scroll-in for sections */
.io { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,.84,.36,1); }
.io.in { opacity: 1; transform: none; }

/* feature row */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature-num {
  font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--green-600);
  letter-spacing: .04em; display: inline-flex; align-items: center; gap: 8px;
}
.feature h3 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 0; color: var(--ink);
}
.feature p { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 14px 0 0; max-width: 44ch; }
.feature-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 11px; font-size: 15px; color: var(--ink-soft); align-items: flex-start; }
.feature-list svg { flex: none; margin-top: 2px; }
.feature-stage { display: flex; justify-content: center; }

/* step cards */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; counter-reset: step; }
.steps > .io, .audience > .io { display: flex; }
.step {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 18px;
  padding: 28px 26px; position: relative; box-shadow: var(--shadow-sm); width: 100%;
}
.step-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--sage-100);
  display: grid; place-items: center; margin-bottom: 18px; }
.step h4 { font-family: var(--serif); font-weight: 500; font-size: 21px; margin: 0 0 8px; letter-spacing: -.01em; }
.step p { font-size: 14.5px; line-height: 1.55; color: var(--muted); margin: 0; }
.step-n { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-style: italic;
  font-size: 22px; color: var(--sage-300); }

/* who it's for */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.aud-card {
  border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; background: var(--card); width: 100%;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.aud-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sage-300); }
.aud-card h4 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 16px 0 8px; }
.aud-card p { font-size: 15px; line-height: 1.55; color: var(--muted); margin: 0; }
.aud-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-100); display: grid; place-items: center; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 56px auto 0; max-width: 760px; align-items: stretch; }
.pricing > .io { display: flex; }
.price-card {
  display: flex; flex-direction: column; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 34px 30px; position: relative; box-shadow: var(--shadow-sm);
}
.price-card.popular {
  color: #fff; border: none;
  background: linear-gradient(160deg, var(--green-900) 0%, var(--green-700) 78%, var(--green-600) 130%);
  box-shadow: var(--shadow-lg);
}
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--green-400); color: var(--green-950); font-weight: 700;
  font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(15,61,41,.5);
}
.price-tier { font-family: var(--sans); font-weight: 600; font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--green-600); }
.price-card.popular .price-tier { color: var(--green-400); }
.price-name { font-family: var(--serif); font-weight: 500; font-size: 28px; letter-spacing: -.01em; margin: 8px 0 4px; }
.price-tagline { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0 0 22px; min-height: 40px; }
.price-card.popular .price-tagline { color: rgba(255,255,255,.72); }
.price-amount { display: flex; align-items: baseline; gap: 6px; }
.price-amount .num { font-family: var(--serif); font-weight: 500; font-size: 44px; letter-spacing: -.02em; line-height: 1; }
.price-amount .per { font-size: 14px; color: var(--muted); }
.price-card.popular .price-amount .per { color: rgba(255,255,255,.7); }
.price-sessions { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; padding: 7px 13px;
  border-radius: 100px; background: var(--sage-100); color: var(--green-700); font-size: 13px; font-weight: 600; align-self: flex-start; }
.price-card.popular .price-sessions { background: rgba(255,255,255,.14); color: #fff; }
.price-divider { height: 1px; background: var(--line-soft); margin: 24px 0; }
.price-card.popular .price-divider { background: rgba(255,255,255,.16); }
.price-features { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 13px; }
.price-features li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-soft); align-items: flex-start; }
.price-card.popular .price-features li { color: rgba(255,255,255,.9); }
.price-features li.inherit { font-weight: 600; color: var(--ink); }
.price-card.popular .price-features li.inherit { color: #fff; }
.price-features svg { flex: none; margin-top: 1px; }
.price-cta { margin-top: auto; }
.price-cta .me-btn { width: 100%; justify-content: center; padding: 14px; }
.price-foot { text-align: center; font-size: 14px; color: var(--muted); margin-top: 36px; }

/* CTA / signup */
.cta {
  position: relative; overflow: hidden; border-radius: 30px; margin: 0 32px;
  background: linear-gradient(155deg, var(--green-900) 0%, var(--green-700) 70%, var(--green-600) 130%);
  padding: 80px 40px; text-align: center; color: #fff;
}
.cta-glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 80% -10%, rgba(69,195,134,.5), transparent 60%); }
.cta h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em;
  font-size: clamp(34px, 5vw, 54px); line-height: 1.04; margin: 0; position: relative; }
.cta h2 em { font-style: italic; color: var(--green-400); }
.cta p { font-size: 18px; color: rgba(255,255,255,.8); margin: 18px auto 0; max-width: 46ch; position: relative; }

/* big email capture (on dark) */
.capture-lg { display: flex; gap: 9px; max-width: 480px; margin: 32px auto 0; position: relative;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); border-radius: 16px;
  padding: 8px 8px 8px 18px; backdrop-filter: blur(6px); }
.capture-lg input { flex: 1; background: transparent; border: none; outline: none; color: #fff;
  font-family: var(--sans); font-size: 16px; min-width: 0; }
.capture-lg input::placeholder { color: rgba(255,255,255,.6); }
.capture-lg button { background: #fff; color: var(--green-800, #103D29); border: none; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 15px; border-radius: 11px; padding: 13px 20px;
  transition: transform .15s ease, background .2s ease; white-space: nowrap; }
.capture-lg button:hover { transform: translateY(-1px); background: var(--sage-50); }
.capture-err { color: #FFD7C2; font-size: 13px; margin-top: 12px; min-height: 16px; position: relative; }

/* success state */
.cta-success { position: relative; max-width: 460px; margin: 0 auto; animation: rise .6s ease forwards; }
.cta-success .check { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; margin: 0 auto 22px; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 50px; }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--green-700); }

/* typing dots */
.td { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); display: inline-block;
  animation: blink 1s ease-in-out infinite; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* stage keyframes */
@keyframes eq { to { transform: scaleY(.4); } }
@keyframes fadeline { to { opacity: 1; } }
@keyframes pop { to { opacity: 1; transform: none; } }
@keyframes matchpulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(69,195,134,.28); } 50% { box-shadow: 0 0 0 7px rgba(69,195,134,.12); } }

@media (max-width: 860px) {
  .feature, .steps, .audience, .pricing { grid-template-columns: 1fr; }
  .feature { gap: 36px; }
  .feature.flip .feature-copy { order: 0; }
  .me-nav-links { display: none; }
  .section { padding: 76px 0; }
}
