/* ========================================================================== */
/*  truth spores — waitlist landing                                            */
/*  Design tokens mirror the app's brand system (app/src/styles.css):          */
/*  warm charcoal surfaces, spore-sage green accent, Manrope-light brand type, */
/*  glassmorphic cards, letter-spaced uppercase micro-labels.                  */
/* ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Manrope:wght@200;300;400;500;600&display=swap');

:root {
  /* Surfaces */
  --bg:            #0c0d0c;
  --bg-elev-1:     #16181a;
  --bg-elev-2:     #1d2022;
  --bg-input:      #14161a;
  --border:        #25282b;
  --border-strong: #3a3e42;

  /* Type */
  --fg:            #e8e8e6;
  --fg-muted:      #a8aaa6;
  --fg-dim:        #6a6c68;
  --fg-faint:      #4a4c48;

  /* Brand */
  --spore:        #a8c39c;
  --spore-bright: #c1d8b6;
  --spore-dim:    #6e8466;
  --spore-glow:   rgba(168, 195, 156, 0.18);
  --truth:        #b8b8b4;

  /* Status (from app palette) */
  --danger:       #e57373;
  --warn:         #d4a574;

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 14px;

  --font-ui:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-brand: 'Manrope', 'Inter', -apple-system, sans-serif;

  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Ambient spore-green glow behind everything, like the app shell */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1400px 700px at 50% -150px, rgba(168, 195, 156, 0.06), transparent 65%),
    radial-gradient(900px 500px at 80% 110%, rgba(168, 195, 156, 0.03), transparent 60%),
    var(--bg);
}

/* ---------- living mycelium canvas (behind everything) ---------- */
.mycelium-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  /* Soft vignette pulls the eye toward content, like the app shell */
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, black 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 80% at center, black 45%, transparent 100%);
}
/* Content sits above the canvas */
.topbar, section, .site-footer { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
a { color: inherit; text-decoration: none; }
em { color: var(--spore); font-style: italic; }

/* ---------- wordmark ---------- */
.brand-wordmark, .brand-inline {
  font-family: var(--font-brand);
  font-weight: 300;
  letter-spacing: 0.02em;
  display: inline-flex;
  gap: 0.25em;
  user-select: none;
}
.w-truth { color: var(--truth); }
.w-spore { color: var(--spore); font-weight: 400; }

/* ---------- buttons (mirror app .btn) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--spore); color: #0c0d0c; border-color: var(--spore); }
.btn.primary:hover { background: var(--spore-bright); border-color: var(--spore-bright); }
.btn.ghost { background: transparent; color: var(--fg-muted); border-color: var(--border-strong); }
.btn.ghost:hover { color: var(--fg); border-color: var(--spore-dim); background: var(--bg-elev-2); }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  min-height: 56px;
  border-bottom: 1px solid rgba(168, 195, 156, 0.08);
  background: rgba(12, 13, 12, 0.55);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 30px; height: 30px; object-fit: contain; }
.brand-wordmark { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-link {
  font-family: var(--font-brand);
  font-size: 12px; font-weight: 500; color: var(--fg-muted);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.nav-link:hover { color: var(--spore); }
.nav-cta {
  font-size: 12px; font-weight: 500; color: var(--spore);
  text-transform: uppercase; letter-spacing: 0.12em;
}
.nav-cta:hover { color: var(--spore-bright); }

/* ---------- micro-labels & section titles ---------- */
.eyebrow, .section-tag {
  font-family: var(--font-brand);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  color: var(--spore);
  margin-bottom: 22px;
}
.section-tag.center { text-align: center; }

.section-title {
  font-family: var(--font-brand);
  font-weight: 300;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.section-title em { font-style: normal; color: var(--spore); }
.section-lede { font-size: 1.05rem; color: var(--fg-muted); max-width: 620px; }
.section-lede.center { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero {
  padding: 96px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-inner { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  font-family: var(--font-brand);
  font-weight: 200;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--fg);
}
.hero-poem {
  font-family: var(--font-brand);
  font-weight: 300;
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 540px;
  margin: 22px auto 0;
}
.mushroom-art {
  width: auto;
  max-width: 280px;
  max-height: 34vh;
  object-fit: contain;
  margin: 18px 0 6px;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 0 40px rgba(168, 195, 156, 0.25));
}

/* ---------- scroll reveal (progressive enhancement) ----------
   Only hides content when JS has flagged <html class="js-anim">, so the
   page is fully visible if JS fails or is disabled. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.js-anim .reveal.in { opacity: 1; transform: none; }

/* Typewriter caret on the hero title */
.type-caret {
  display: inline-block;
  width: 0.06em;
  margin-left: 0.04em;
  color: var(--spore);
  animation: caret-blink 0.9s steps(1) infinite;
}
@keyframes caret-blink { 50% { opacity: 0; } }
.hero-brandline {
  font-family: var(--font-brand);
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}
.hero-sub { max-width: 600px; font-size: 1.1rem; color: var(--fg-muted); margin: 0 auto; }
.hero-actions { margin: 32px 0 16px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-trust {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-dim);
  font-family: var(--font-brand);
}

/* ---------- sections ---------- */
section { padding: 92px 0; }

/* ---------- story ---------- */
.story { background: rgba(22, 24, 26, 0.35); }
.story-body p { font-size: 1.15rem; margin-bottom: 22px; color: var(--fg); }
.story-lead {
  font-family: var(--font-brand);
  font-weight: 300;
  font-size: 1.5rem !important;
  color: var(--spore);
}
.story-kicker {
  margin-top: 34px; padding-top: 28px;
  border-top: 1px solid rgba(168, 195, 156, 0.12);
  font-size: 1.25rem !important; line-height: 1.5; color: var(--fg);
}
.story-body strong { color: var(--spore-bright); font-weight: 600; }

/* About / Why-this-exists rhythm */
.story-body .beats { color: var(--fg-muted); line-height: 1.9; }
.story-body .accent { color: var(--spore); }
.story-body .punch {
  font-family: var(--font-brand);
  font-weight: 300;
  font-size: 1.6rem !important;
  margin-bottom: 22px;
  color: var(--fg);
}
.story-body .punch.accent { color: var(--spore); }
.story-body .punch-final {
  font-size: 2rem !important;
  margin-top: 8px;
  letter-spacing: 0.01em;
}

/* ---------- how / cards (glassmorphic, app-faithful) ---------- */
.cards {
  margin-top: 52px;
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: rgba(22, 24, 26, 0.55);
  border: 1px solid rgba(168, 195, 156, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  box-shadow:
    inset 0 1px 0 rgba(168, 195, 156, 0.06),
    0 30px 80px -30px rgba(0, 0, 0, 0.7);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(168, 195, 156, 0.35); }
.card-icon { font-size: 1.4rem; color: var(--spore); margin-bottom: 14px; filter: drop-shadow(0 0 8px var(--spore-glow)); }
.card h3 { font-family: var(--font-brand); font-weight: 500; font-size: 1.2rem; margin-bottom: 10px; color: var(--fg); }
.card p { color: var(--fg-muted); font-size: 0.98rem; }

/* ---------- how it works: bypass comparison ---------- */
.compare {
  margin-top: 44px;
  display: grid; gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.compare-card {
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--border);
  background: rgba(22, 24, 26, 0.45);
}
.compare-card.new {
  border-color: rgba(168, 195, 156, 0.32);
  background: rgba(168, 195, 156, 0.06);
  box-shadow: 0 0 0 1px var(--spore-glow), 0 24px 60px -30px rgba(168, 195, 156, 0.25);
}
.compare-head {
  font-family: var(--font-brand);
  font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.16em;
  margin-bottom: 18px;
}
.compare-card.old .compare-head { color: var(--fg-dim); }
.compare-card.old .compare-verdict {
  font-family: var(--font-brand);
  font-weight: 300;
  font-size: 1.3rem;
  line-height: 1.3;
  color: var(--fg);
  margin-bottom: 20px;
}
.compare-card.new .compare-head { color: var(--spore); }
.compare-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.compare-card li { position: relative; padding-left: 26px; font-size: 1rem; line-height: 1.45; }
.compare-card.old li { color: var(--fg-muted); }
.compare-card.old li::before { content: '\2715'; position: absolute; left: 0; color: var(--danger); opacity: 0.7; }
.compare-card.new li { color: var(--fg); }
.compare-card.new li::before { content: '\2713'; position: absolute; left: 0; color: var(--spore); }

/* ---------- how it works: what to prepare ---------- */
.prep-list {
  list-style: none;
  margin: 48px 0 28px;
  display: flex; flex-direction: column; gap: 22px;
}
.prep-list li { display: flex; gap: 18px; align-items: flex-start; }
.prep-icon {
  color: var(--spore);
  font-size: 1.4rem;
  line-height: 1.3;
  width: 30px; text-align: center; flex-shrink: 0;
  filter: drop-shadow(0 0 8px var(--spore-glow));
}
.prep-list strong {
  display: block;
  font-family: var(--font-brand); font-weight: 500; font-size: 1.12rem;
  color: var(--fg); margin-bottom: 3px;
}
.prep-list p { color: var(--fg-muted); font-size: 0.98rem; }

.prep-callout {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: rgba(212, 165, 116, 0.06);
  border: 1px solid rgba(212, 165, 116, 0.28);
}
.prep-callout-icon { font-size: 1.5rem; line-height: 1.2; flex-shrink: 0; }
.prep-callout-title {
  font-family: var(--font-brand); font-weight: 500; font-size: 1.12rem;
  color: var(--warn); margin-bottom: 10px;
}
.prep-callout p { color: var(--fg-muted); font-size: 0.98rem; margin-bottom: 10px; line-height: 1.6; }
.prep-callout p:last-child { margin-bottom: 0; }
.prep-callout strong { color: var(--fg); font-weight: 600; }
.prep-callout em { color: var(--spore); font-style: italic; }

/* ---------- how it works: steps ---------- */
.steps { display: flex; flex-direction: column; gap: 72px; margin-top: 60px; }
.step-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.step-row.flip .step-text { order: 2; }
.step-num {
  font-family: var(--font-brand); font-weight: 200;
  font-size: 3.2rem; line-height: 1; color: var(--spore);
  margin-bottom: 14px;
}
.step-text h3 { font-family: var(--font-brand); font-weight: 400; font-size: 1.5rem; margin-bottom: 12px; color: var(--fg); }
.step-text p { color: var(--fg-muted); font-size: 1.05rem; }

/* app-window screenshot frame */
.shot {
  border: 1px solid rgba(168, 195, 156, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(22, 24, 26, 0.6);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(168, 195, 156, 0.06), 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.shot-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(168, 195, 156, 0.08);
  background: rgba(12, 13, 12, 0.55);
}
.shot-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.shot-title {
  margin-left: 8px; font-family: var(--font-brand);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim);
}
.shot-body {
  min-height: 250px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--fg-dim);
  background: repeating-linear-gradient(45deg, rgba(168, 195, 156, 0.02) 0 12px, transparent 12px 24px);
}
.shot-body span { font-family: var(--font-brand); font-size: 1.1rem; color: var(--fg-muted); }
.shot-body small { font-size: 0.82rem; }

/* Real screenshot inside the frame (no faux titlebar) */
.shot-photo { background: #0c0d0c; }
.shot-photo img { display: block; width: 100%; height: auto; }

/* Recreated "Done" screen (HTML, never a real path/username) */
.mock-done { padding: 30px 28px 34px; }
.mock-done-title { font-family: var(--font-brand); font-weight: 300; font-size: 1.7rem; color: var(--fg); margin-bottom: 6px; }
.mock-done-sub { color: var(--fg-muted); font-size: 0.92rem; margin-bottom: 20px; }
.mock-path { color: var(--fg-dim); }
.mock-file {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; margin-bottom: 10px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.mock-file-info { min-width: 0; }
.mock-file-title { font-size: 0.9rem; font-weight: 600; color: var(--fg); margin-bottom: 2px; }
.mock-file-path { font-size: 0.72rem; color: var(--fg-dim); font-family: 'SF Mono', Monaco, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-file-actions { display: flex; gap: 8px; flex-shrink: 0; }
.mock-btn {
  font-family: var(--font-brand);
  font-size: 0.72rem; font-weight: 600;
  padding: 7px 13px; border-radius: var(--radius-sm);
  background: var(--spore); color: #0c0d0c; white-space: nowrap;
}
.mock-btn.ghost { background: transparent; border: 1px solid var(--border-strong); color: var(--fg-muted); }

@media (max-width: 720px) {
  .compare { grid-template-columns: 1fr; }
  .step-row { grid-template-columns: 1fr; gap: 24px; }
  .step-row.flip .step-text { order: 0; }
}

/* ---------- samples ---------- */
.sample-frame { margin-top: 44px; }
.sample-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; min-height: 360px;
  border: 1px dashed rgba(168, 195, 156, 0.22);
  border-radius: var(--radius-lg);
  background:
    rgba(22, 24, 26, 0.45),
    repeating-linear-gradient(45deg, rgba(168,195,156,0.02) 0 12px, transparent 12px 24px);
  color: var(--fg-dim);
}
.sample-placeholder span { font-family: var(--font-brand); font-weight: 400; font-size: 1.2rem; color: var(--fg-muted); }
.sample-placeholder small { font-size: 0.85rem; }
.sample-embed { width: 100%; height: 560px; border: 0; display: block; background: #0c0d0c; }
.sample-actions { text-align: center; margin-top: 24px; }

/* ---------- FAQ accordion ---------- */
.faq-group-tag { margin-top: 56px; margin-bottom: 18px; }
.faq-group-tag:first-of-type { margin-top: 40px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: rgba(22, 24, 26, 0.5);
  border: 1px solid rgba(168, 195, 156, 0.12);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.faq-item[open] { border-color: rgba(168, 195, 156, 0.32); background: rgba(22, 24, 26, 0.7); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: var(--font-brand);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: '+';
  color: var(--spore);
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::before { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--spore-bright); }
.faq-answer { padding: 0 24px 22px 56px; color: var(--fg-muted); font-size: 1rem; line-height: 1.62; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--spore-bright); font-weight: 600; }
.inline-link { color: var(--spore); text-decoration: underline; text-underline-offset: 2px; }
.inline-link:hover { color: var(--spore-bright); }

/* ---------- waitlist ---------- */
.waitlist {
  background:
    radial-gradient(700px 360px at 50% 120%, rgba(168, 195, 156, 0.10), transparent 70%),
    var(--bg);
}
.waitlist-form {
  margin: 30px auto 14px;
  display: flex; gap: 12px; flex-wrap: wrap; justify-content: center;
  max-width: 520px;
}
.input {
  flex: 1 1 260px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  color: var(--fg);
  padding: 13px 16px;
  font-size: 14px;
  font-family: inherit;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder { color: var(--fg-faint); }
.input:focus { border-color: var(--spore-dim); box-shadow: 0 0 0 3px var(--spore-glow); }
.waitlist-fine {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--fg-dim); font-family: var(--font-brand);
}
.waitlist-form button[disabled] { opacity: 0.6; cursor: progress; }
.waitlist-success {
  max-width: 480px; margin: 28px auto 0; text-align: center;
  animation: ws-in 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes ws-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ws-mark { font-size: 2.2rem; margin-bottom: 6px; filter: drop-shadow(0 0 18px var(--spore-glow)); }
.ws-title { font-family: var(--font-brand); font-weight: 300; font-size: 1.7rem; color: var(--spore); margin-bottom: 8px; }
.ws-sub { color: var(--fg-muted); font-size: 1.02rem; }

/* ---------- footer (app-faithful: tiny, uppercase, letter-spaced) ---------- */
.site-footer {
  padding: 44px 0;
  border-top: 1px solid rgba(168, 195, 156, 0.06);
  background: rgba(12, 13, 12, 0.4);
}
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.footer-brand { font-size: 18px; }
.footer-tag {
  font-family: var(--font-brand);
  font-size: 10.5px; font-weight: 400;
  color: var(--spore-dim);
  letter-spacing: 0.32em; text-transform: uppercase;
}
.footer-fine {
  font-family: var(--font-brand);
  font-size: 10px; color: var(--fg-faint);
  letter-spacing: 0.18em; text-transform: uppercase;
  max-width: 460px;
}

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .hero { padding: 72px 0 64px; }
  .story-body p { font-size: 1.05rem; }
  .mushroom-art { max-width: 200px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; animation: none !important; }
  .js-anim .reveal { opacity: 1; transform: none; }
}
