:root {
  color-scheme: light;
  --bg: #f3f0e6;
  --panel: #fffdf8;
  --panel-elevated: #eae4d2;
  --border: #ddd4bc;
  --border-strong: #c7bc9d;
  --text: #231f17;
  --text-muted: #6d6353;
  --text-faint: #948a74;
  --accent: #33553a;
  --accent-hover: #3f6647;
  --accent-contrast: #f6f3ea;
  --radius-panel: 4px;
  --radius-control: 3px;
  --shadow-modal: 0 8px 24px rgba(35, 31, 23, 0.16);
  --font-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Lora', Georgia, serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Borrowed from the app's own move-classification palette
     (src/renderer/src/app.css) - used as feature-card accent dots,
     not invented decoration. */
  --mq-brilliant: #0f8fa3;
  --mq-great: #0f8f7c;
  --mq-best: #2f7a4c;
  --mq-book: #8a8272;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  line-height: 1.5;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.hp-field {
  position: absolute;
  left: -9999px;
}

/* Header */
.site-header {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.wordmark-icon {
  border-radius: var(--radius-control);
}

/* Hero */
.hero {
  padding: 80px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 999px;
  padding: 5px 14px;
  margin: 0 0 20px;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.hero-subhead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 20px;
}
.hero-stats {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 32px;
}
.hero-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 12px 0 0;
  max-width: 46ch;
}
.hero-media {
  position: relative;
  margin-top: 6px;
}
.hero-media::before {
  content: '';
  position: absolute;
  inset: -8% -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  z-index: 0;
}
.hero-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 1280 / 772;
  border-radius: var(--radius-panel);
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(35, 31, 23, 0.22), 0 2px 8px rgba(35, 31, 23, 0.1);
  display: block;
}

/* Wishlist form */
.wishlist-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.wishlist-form input[type="email"] {
  flex: 1 1 260px;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-control);
  background: var(--panel);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
}
.wishlist-form input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.button-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: var(--radius-control);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: inset 0 -2px 0 rgba(35, 31, 23, 0.18);
  text-decoration: none;
}
.button-primary:hover {
  background: var(--accent-hover);
}
.button-primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Features */
.features {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}
.features h2,
.why-local h2,
.cta-repeat h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 36px;
  text-align: center;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 20px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-modal);
}
.feature-shot {
  border-radius: var(--radius-control);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 18px;
}
.feature-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
}
.feature-tag {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tag-color);
  margin: 0 0 10px;
}
.tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tag-color);
  flex-shrink: 0;
}
.feature-card-analysis { --tag-color: var(--mq-best); }
.feature-card-classify { --tag-color: var(--mq-brilliant); }
.feature-card-import { --tag-color: var(--mq-book); }
.feature-card-insights { --tag-color: var(--mq-great); }
.feature-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 8px;
}
.feature-card p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0;
}

/* Why local */
.why-local {
  padding: 64px 0;
  text-align: center;
  background: var(--panel-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-local p {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.0625rem;
}

/* CTA repeat */
.cta-repeat {
  padding: 72px 0;
  text-align: center;
}
.cta-repeat .wishlist-form {
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

/* Success page */
.success {
  padding: 96px 0;
  text-align: center;
}
.success h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 16px;
}
.success p {
  color: var(--text-muted);
  margin: 0 0 32px;
}

/* Footer */
.site-footer {
  padding: 32px 0 48px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.site-footer a {
  color: var(--text-muted);
}
.footer-sep {
  margin: 0 8px;
}

/* Responsive */
@media (max-width: 800px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h1 {
    font-size: 2rem;
  }
  .hero-media::before {
    inset: -4% -4%;
  }
}
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .wishlist-form {
    flex-direction: column;
  }
  .wishlist-form input[type="email"] {
    /* The 260px flex-basis above is a min-*width* for the row layout;
       in a column container the same basis becomes a *height*, so it
       must be reset here rather than inherited. */
    flex: 1 1 auto;
  }
  .wishlist-form .button-primary {
    width: 100%;
  }
}
