/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --color-bg: #0d0d0d;
  --color-surface: #1a1a1a;
  --color-surface-hover: #222222;
  --color-text: #f5f5f5;
  --color-text-muted: #888888;
  --color-border: #2a2a2a;
  --color-error: #f87171;
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.4), 0 4px 12px 0 rgba(0, 0, 0, 0.3);

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --max-width: 1100px;
  --text-max-width: 680px;
  --radius: 4px;
  --space-section: 7rem;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  font-family: var(--font-serif);
}

p { line-height: 1.6; color: var(--color-text-muted); }

ul, ol { list-style: none; }

/* ============================================================
   Wordmark
   ============================================================ */
.wordmark {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.wordmark-tld { color: var(--color-text-muted); }

/* ============================================================
   Eyebrow labels
   ============================================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* ============================================================
   Layout containers
   ============================================================ */
.container-text {
  max-width: var(--text-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ============================================================
   Site header
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
  background: var(--color-bg);
}
.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

.site-nav a {
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-nav a {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}

.footer-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-nav {
    gap: 0.875rem;
  }
  .site-nav a {
    font-size: 0.75rem;
  }
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
}

.section-hero {
  padding-top: 5rem;
}

@media (max-width: 767px) {
  .section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .section-hero {
    padding-top: 3rem;
  }
}

/* ============================================================
   Hero
   ============================================================ */
.hero-chart {
  margin-bottom: 2.5rem;
}

.section-hero h1 {
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

.hero-subhead {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn-primary {
  display: inline-block;
  background: #f5f5f5;
  color: #0d0d0d;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background 0.15s ease, color 0.15s ease;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #d4d4d4;
  text-decoration: none;
}
.btn-primary:active {
  background: #c0c0c0;
}
.btn-primary:focus-visible {
  outline: 2px solid #f5f5f5;
  outline-offset: 3px;
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================
   Section: Problem
   ============================================================ */
.section-problem .container-text > .prose-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.section-problem h2 {
  margin-bottom: 1.5rem;
}
.section-problem p + p {
  margin-top: 1.25rem;
}

/* ============================================================
   Section: Who it's for - cards
   ============================================================ */
.section-for .container-text {
  margin-bottom: 3rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  transition: border-color 0.15s ease;
}
.card:hover {
  border-color: #3a3a3a;
}
.card h3 {
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.card p {
  font-size: 1rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Section: Features
   ============================================================ */
.section-features .container-text > .prose-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.section-features h2 {
  margin-bottom: 2.5rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-list li {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}
.feature-list li:first-child {
  border-top: none;
  padding-top: 0;
}

.feature-list h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.feature-list p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

/* ============================================================
   Section: Waitlist form
   ============================================================ */
.section-waitlist h2 {
  margin-bottom: 1rem;
}
.section-waitlist > .container-text > p {
  margin-bottom: 2.5rem;
  color: var(--color-text-muted);
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
}

.required {
  color: var(--color-text-muted);
}

.field-hint {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-text);
  background: #111111;
  border: 1px solid #333333;
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  width: 100%;
  min-height: 44px;
  transition: border-color 0.1s ease, outline 0.1s ease;
  appearance: none;
}

.form-group input[type="text"]::placeholder,
.form-group input[type="email"]::placeholder,
.form-group textarea::placeholder {
  color: #555555;
}

.form-group select option {
  background: #1a1a1a;
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(245, 245, 245, 0.4);
  outline-offset: 2px;
  border-color: #555555;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--color-error);
}

.field-error {
  font-size: 0.875rem;
  color: var(--color-error);
  min-height: 1.25rem;
}

.select-wrap {
  position: relative;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-text-muted);
  pointer-events: none;
}
.select-wrap select {
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  margin-top: 0.5rem;
}

@media (max-width: 767px) {
  .form-submit .btn-primary {
    width: 100%;
    text-align: center;
  }
}

.form-success {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  font-size: 1.125rem;
  box-shadow: var(--shadow-card);
  color: var(--color-text);
}

/* ============================================================
   Section: About
   ============================================================ */
.section-about {
  border-top: 1px solid var(--color-border);
}

@media (max-width: 767px) {
  .section-about .wordmark {
    font-size: 1.75rem !important;
  }
}

.section-about p {
  margin-bottom: 0.75rem;
  color: var(--color-text-muted);
}

.company-line {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 0;
  background: var(--color-bg);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.footer-email {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color 0.15s ease;
}
.footer-email:hover {
  color: var(--color-text);
  text-decoration: none;
}
.footer-copy a:hover {
  color: var(--color-text);
  text-decoration: none;
}
.footer-version {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--color-text-muted);
  opacity: 0.65;
  margin-left: auto;
  transition: opacity 0.15s ease;
}
.footer-version:hover {
  opacity: 1;
}

/* ============================================================
   Feedback widget
   ============================================================ */
.feedback-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.feedback-toggle {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.feedback-toggle:hover {
  color: var(--color-text);
  border-color: #3a3a3a;
  background: var(--color-surface-hover);
}
.feedback-widget--open .feedback-toggle {
  color: var(--color-text);
  border-color: #3a3a3a;
}


.feedback-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  width: 300px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: feedback-slide-in 0.15s ease;
}

@keyframes feedback-slide-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.feedback-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.feedback-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}

.feedback-close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.125rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.125rem;
  transition: color 0.15s ease;
}
.feedback-close:hover {
  color: var(--color-text);
}

.feedback-textarea,
.feedback-input {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #111111;
  border: 1px solid #333333;
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  width: 100%;
  transition: border-color 0.1s ease, outline 0.1s ease;
  resize: vertical;
}
.feedback-textarea {
  min-height: 90px;
}
.feedback-textarea::placeholder,
.feedback-input::placeholder {
  color: #555555;
}
.feedback-textarea:focus,
.feedback-input:focus {
  outline: 2px solid rgba(245, 245, 245, 0.3);
  outline-offset: 2px;
  border-color: #555555;
}

.feedback-step-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.feedback-error {
  font-size: 0.8125rem;
  color: var(--color-error);
  min-height: 1rem;
}

.feedback-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.feedback-btn-primary {
  background: #f5f5f5;
  color: #0d0d0d;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.feedback-btn-primary:hover {
  background: #d4d4d4;
}
.feedback-btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-btn-ghost {
  background: none;
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.5rem;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.feedback-btn-ghost:hover {
  color: var(--color-text);
}

.feedback-thank-you {
  font-size: 0.9375rem;
  color: var(--color-text);
  text-align: center;
  padding: 0.5rem 0;
}

@media (max-width: 480px) {
  .feedback-widget {
    bottom: 1rem;
    right: 1rem;
  }
  .feedback-panel {
    width: calc(100vw - 2rem);
  }
}

/* ============================================================
   Share widget
   ============================================================ */
.share-widget {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.share-toggle {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  border-radius: 2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.share-toggle:hover {
  color: var(--color-text);
  border-color: #3a3a3a;
  background: var(--color-surface-hover);
}
.share-widget--open .share-toggle {
  color: var(--color-text);
  border-color: #3a3a3a;
}

.share-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  animation: feedback-slide-in 0.15s ease;
  min-width: 170px;
}

.share-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  border-radius: calc(var(--radius) - 2px);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background 0.12s ease, color 0.12s ease;
  white-space: nowrap;
}
.share-link:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
}

.share-link svg {
  flex-shrink: 0;
  opacity: 0.75;
}
.share-link:hover svg {
  opacity: 1;
}

.share-link--button {
  background: none;
  border: 0;
  cursor: pointer;
  width: 100%;
  text-align: left;
  color: inherit;
}

@media (max-width: 480px) {
  .share-widget {
    bottom: 1rem;
    left: 1rem;
  }
}
