/* ============================================================
   EVOLELLA LANDING — Paper design system
   Matches the app: warm paper palette, sage accent.
   Fonts: Newsreader (display), Instrument Sans (body),
   IBM Plex Mono (mono).
   ============================================================ */

:root {
  --background: #f7f5ef;
  --background: oklch(0.966 0.008 85);
  --foreground: #23211b;
  --foreground: oklch(0.208 0.008 60);

  --card: #ffffff;
  --card: oklch(1 0 0);

  --muted: #ebe8df;
  --muted: oklch(0.928 0.012 85);
  --muted-foreground: #7d786b;
  --muted-foreground: oklch(0.52 0.012 75);

  --accent: #4a735c;
  --accent: oklch(0.48 0.048 155);
  --accent-foreground: #f7f5ef;
  --accent-foreground: oklch(0.966 0.008 85);
  --accent-soft: #e3efe4;
  --accent-soft: oklch(0.955 0.022 150);

  --border: rgba(35, 33, 27, 0.1);
  --border: oklch(0.208 0.008 60 / 10%);

  --radius: 12px;
  --radius-small: 8px;
  --shadow: 0 1px 2px rgba(35, 33, 27, 0.05), 0 4px 16px rgba(35, 33, 27, 0.05);
  --shadow-lift: 0 2px 4px rgba(35, 33, 27, 0.06), 0 8px 24px rgba(35, 33, 27, 0.08);

  --font-body: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Newsreader", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1b1917;
    --background: oklch(0.19 0.006 70);
    --foreground: #ece9e0;
    --foreground: oklch(0.945 0.008 85);

    --card: #232120;
    --card: oklch(0.235 0.006 70);

    --muted: #2a2725;
    --muted: oklch(0.29 0.008 70);
    --muted-foreground: #94908a;
    --muted-foreground: oklch(0.6 0.012 75);

    --accent: #6fa084;
    --accent: oklch(0.66 0.045 150);
    --accent-foreground: #1b1917;
    --accent-foreground: oklch(0.19 0.006 70);
    --accent-soft: #26332b;
    --accent-soft: oklch(0.28 0.03 152);

    --border: rgba(236, 233, 224, 0.09);
    --border: oklch(0.945 0.008 85 / 9%);

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  max-width: 22ch;
}

h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
}

.container {
  width: min(1080px, 100% - 2.5rem);
  margin-inline: auto;
}

.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;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in oklab, var(--background) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-block: 0.8rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.mark {
  width: 28px;
  height: 28px;
}

.mark-bg { fill: var(--card); stroke: var(--border); }
.mark-leaf-dark { fill: var(--accent); }
.mark-leaf-light { fill: var(--accent); opacity: 0.55; }
.mark-stem { stroke: var(--foreground); stroke-width: 2.5; stroke-linecap: round; fill: none; }

.header-nav {
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
}

.header-nav a {
  color: var(--muted-foreground);
  text-decoration: none;
  font-size: 0.95rem;
}

.header-nav a:hover {
  color: var(--foreground);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-foreground);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.btn:hover {
  filter: brightness(1.08);
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: wait;
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(4rem, 10vw, 7.5rem) 0 clamp(3rem, 7vw, 5rem);
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.4rem;
}

.hero h1 {
  max-width: 18ch;
  margin-inline: auto;
}

.hero-sub {
  max-width: 46ch;
  margin: 1.2rem auto 2.2rem;
  font-size: 1.15rem;
  color: var(--muted-foreground);
}

.loop-caption {
  margin-top: 2.8rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

/* ---------- Waitlist form ---------- */

.waitlist-form {
  display: flex;
  gap: 0.6rem;
  max-width: 460px;
  margin-inline: auto;
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 1rem;
}

.waitlist-form input[type="email"]::placeholder {
  color: var(--muted-foreground);
}

.form-note {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.form-status {
  min-height: 1.5em;
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #b3552f; }

@media (max-width: 520px) {
  .waitlist-form {
    flex-direction: column;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section-alt {
  background: color-mix(in oklab, var(--muted) 45%, var(--background));
  border-block: 1px solid var(--border);
}

.section-sub {
  max-width: 52ch;
  color: var(--muted-foreground);
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

/* ---------- Problem grid ---------- */

.problem-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  counter-reset: step;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.9rem;
}

/* ---------- Examples ---------- */

.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  align-items: start;
}

.demo-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-bottom: 1.1rem;
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.bubble {
  max-width: 88%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.5;
}

.bubble .who {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 0.2rem;
}

.bubble.coach {
  align-self: flex-start;
  background: var(--muted);
  border-bottom-left-radius: 4px;
}

.bubble.you {
  align-self: flex-end;
  background: var(--accent-soft);
  color: var(--foreground);
  border-bottom-right-radius: 4px;
}

/* Weekly review mock */

.review-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.review-stats {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  background: var(--muted);
  border-radius: var(--radius-small);
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--accent);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted-foreground);
}

.review-points {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted-foreground);
  font-size: 0.95rem;
}

.review-points li {
  margin-bottom: 0.4rem;
}

.review-points li:last-child {
  color: var(--foreground);
}

/* ---------- Audiences ---------- */

.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.audience-promise {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.audience p:last-child {
  color: var(--muted-foreground);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
  max-width: 760px;
}

.plan {
  display: flex;
  flex-direction: column;
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.plan-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  margin-bottom: 0.8rem;
}

.price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 0.1em;
}

.price-unit {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.price-alt {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  flex: 1;
}

.plan-features li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.75rem;
  height: 0.45rem;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Waitlist section ---------- */

.waitlist-section {
  text-align: center;
}

.waitlist-inner h2 {
  margin-inline: auto;
}

.waitlist-inner .section-sub {
  margin-inline: auto;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 3rem;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.footer-note {
  max-width: 52ch;
  margin: 0 auto 0.8rem;
  font-size: 0.85rem;
  color: var(--muted-foreground);
}

.footer-contact {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  margin-bottom: 0;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
