/* Palette mirrors the app's mode-color choices.
   Honey/terracotta = scroll mode. Pine/forest = find mode. */
:root {
  --honey: #e8b25c;
  --terracotta: #c47a5c;
  --pine: #1f5a5c;
  --forest: #1f4022;

  --bg: #0a0908;
  --surface: rgba(255, 255, 255, 0.03);
  --hairline: rgba(255, 255, 255, 0.06);

  --fg: rgba(245, 240, 232, 0.94);
  --fg-dim: rgba(245, 240, 232, 0.62);
  --fg-faint: rgba(245, 240, 232, 0.38);

  --measure: 38rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Helvetica Neue', sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

main {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--hairline);
}
section:last-of-type {
  border-bottom: none;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: 2rem;
}

/* ───── Hero ───── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  border-bottom: 1px solid var(--hairline);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--honey) 0%, var(--pine) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.tagline {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 300;
  color: var(--fg-dim);
  max-width: 28rem;
  line-height: 1.45;
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 60% 50% at 15% 25%,
      rgba(232, 178, 92, 0.18),
      transparent 70%
    ),
    radial-gradient(
      ellipse 50% 50% at 85% 80%,
      rgba(31, 90, 92, 0.22),
      transparent 70%
    );
  filter: blur(40px);
}

/* ───── Prose ───── */

.prose p {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg);
  max-width: 32rem;
}

.prose p + p {
  margin-top: 1.5rem;
  color: var(--fg-dim);
}

/* ───── Modes ───── */

.modes-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .modes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.mode {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: 4px;
  overflow: hidden;
  isolation: isolate;
}

.mode::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
  transition: opacity 600ms ease;
}

.mode:hover::before {
  opacity: 0.32;
}

.mode-scroll::before {
  background: linear-gradient(135deg, var(--honey), var(--terracotta));
}

.mode-puzzle::before {
  background: linear-gradient(135deg, var(--pine), var(--forest));
}

.mode header {
  margin-bottom: 1rem;
}

.mode-name {
  display: inline-block;
  font-size: 1.75rem;
  font-weight: 200;
  letter-spacing: 0.08em;
  color: var(--fg);
}

.mode p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg-dim);
  line-height: 1.7;
}

/* ───── Thinking (one-liner pull quote) ───── */

.thinking {
  text-align: center;
  padding: 7rem 0;
}

.thinking p {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 30rem;
  margin: 0 auto;
}

/* ───── Absent (anti-features list) ───── */

.absent ul {
  list-style: none;
}

.absent li {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 1rem;
  color: var(--fg-dim);
  line-height: 1.65;
}

.absent li:last-child {
  border-bottom: none;
}

/* ───── FAQ ───── */

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.5rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--fg-dim);
  letter-spacing: -0.005em;
  line-height: 1.4;
  transition: color 200ms ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 200;
  color: var(--fg-faint);
  line-height: 1.2;
  transition: color 200ms ease, transform 250ms ease;
}

.faq-item:hover summary {
  color: var(--fg);
}

.faq-item:hover summary::after {
  color: var(--fg-dim);
}

.faq-item[open] summary {
  color: var(--fg);
}

.faq-item[open] summary::after {
  content: '−';
  color: var(--fg-dim);
}

.faq-item p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--fg-dim);
  line-height: 1.7;
  max-width: 34rem;
  padding-bottom: 1.75rem;
  animation: faqOpen 260ms ease;
}

@keyframes faqOpen {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ───── Footer ───── */

footer {
  padding: 4rem 0 6rem;
  text-align: center;
}

.cta {
  font-size: 1rem;
  color: var(--fg-dim);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.meta {
  font-family: ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-faint);
  letter-spacing: 0.15em;
  text-transform: lowercase;
}

/* ───── Reduced motion ───── */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
