/* =============================================
   VARIABLES & RESET
   ============================================= */

:root {
  color-scheme: only light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --blue: #0891b2;
  --blue-dark: #0e7490;
  --text-primary: #1a1a1a;
  --text-secondary: #4b5563;
  --border: #e5e7eb;
  --cta: #0891b2;
  --cta-hover: #0e7490;
  --font: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
}

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

/* =============================================
   BASE STYLES
   ============================================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

p {
  color: var(--text-secondary);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

svg {
  display: block;
}

/* =============================================
   UTILITIES
   ============================================= */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Accessible visually hidden pattern */
.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;
}

.success-message {
  color: #0891b2;
  font-weight: 600;
  padding: 1rem 0;
  margin: 0;
  font-size: 1rem;
}

.section-title {
  font-size: clamp(1.625rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 3rem;
}

/* =============================================
   COMPONENTS — Buttons
   ============================================= */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background: var(--cta);
  color: #fff;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--cta-hover);
}

.btn-primary:focus-visible {
  background: var(--cta-hover);
  outline: 2px solid var(--cta);
  outline-offset: 3px;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* =============================================
   COMPONENTS — Forms
   ============================================= */

.capture-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.capture-form input[type="email"] {
  width: 100%;
  height: 48px;
  padding: 0 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.capture-form input[type="email"]::placeholder {
  color: #9ca3af;
}

.capture-form input[type="email"]:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.12);
}

.form-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
}

.form-success {
  padding: 1.5rem 0;
  text-align: center;
}

.form-success p {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* =============================================
   SECTION — Header / Wordmark
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1.125rem 0;
  background: rgba(247, 248, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark:hover {
  text-decoration: none;
}

.wordmark span {
  color: var(--blue);
}

/* =============================================
   SECTION — Hero
   ============================================= */

.hero {
  padding: 80px 0 90px;
  /* Subtle blue radial glow from the top — the single accent element */
  background:
    radial-gradient(ellipse 900px 500px at 50% -80px, rgba(8, 145, 178, 0.08) 0%, transparent 100%),
    var(--bg);
}

.hero-content {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero-visual {
  display: none;
}

.hero-headline {
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.175rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

/* =============================================
   SECTION — Features
   ============================================= */

.features {
  padding: 56px 0 80px;
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

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

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 145, 178, 0.08);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 1.125rem;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

/* =============================================
   SECTION — Who It's For
   ============================================= */

.audience {
  padding: 72px 0;
  background: var(--bg);
}

.audience-card {
  max-width: 660px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04), 0 4px 20px rgba(0, 0, 0, 0.03);
}

.audience-card h2 {
  font-size: clamp(1.625rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.125rem;
}

.audience-card p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =============================================
   SECTION — FAQ
   ============================================= */

.faq {
  padding: 80px 0;
  background: var(--bg);
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Remove default browser disclosure markers */
.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::marker {
  content: '';
}

/* Custom +/× indicator */
.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '×';
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* FAQ answer text */
.faq-item > p {
  padding: 0 0 1.375rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* =============================================
   SECTION — Bottom CTA
   ============================================= */

.cta-bottom {
  padding: 100px 0;
  background: #0f172a;
}

.cta-bottom-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-bottom h2 {
  font-size: clamp(1.625rem, 4vw, 2.25rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.cta-sub {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2.5rem;
}

/* Dark-surface input overrides */
.cta-bottom .capture-form input[type="email"] {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cta-bottom .capture-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cta-bottom .capture-form input[type="email"]:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.25);
}

.cta-bottom .form-note {
  color: rgba(255, 255, 255, 0.45);
}

.cta-bottom .form-success p {
  color: #fff;
}

/* =============================================
   SECTION — Footer
   ============================================= */

.site-footer {
  padding: 1.5rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-align: center;
}

.footer-inner a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--blue);
}

/* =============================================
   RESPONSIVE — Tablet (≥ 640px)
   ============================================= */

@media (min-width: 640px) {

  /* Inline form layout */
  .capture-form {
    flex-direction: row;
    align-items: stretch;
  }

  .capture-form input[type="email"] {
    flex: 1;
    width: auto;
  }

  .capture-form .btn-primary {
    flex-shrink: 0;
  }

  /* Two-column feature grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Horizontal footer */
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

}

/* =============================================
   RESPONSIVE — Desktop (≥ 1024px)
   ============================================= */

@media (min-width: 1024px) {

  .container {
    padding: 0 2rem;
  }

  .hero {
    padding: 100px 0 110px;
  }

  /* Two-column hero layout */
  .hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3.5rem;
    max-width: none;
    text-align: left;
  }

  .hero-sub {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .form-note,
  .progress-label {
    text-align: left;
  }

  .hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .features {
    padding: 100px 0;
  }

  .how-it-works {
    padding: 100px 0;
  }

  /* Horizontal step layout */
  .steps {
    flex-direction: row;
    align-items: flex-start;
    max-width: none;
  }

  .step {
    flex: 1;
    gap: 1rem;
  }

  .step-arrow {
    display: flex;
    padding-top: 0.625rem;
  }

  .audience {
    padding: 90px 0;
  }

  .audience-card {
    padding: 3.5rem 3.5rem;
  }

  .faq {
    padding: 100px 0;
  }

}

/* =============================================
   COMPONENTS — Progress bar (scarcity)
   ============================================= */

.waitlist-progress {
  margin-bottom: 1.375rem;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--cta), #22d3ee);
  border-radius: 999px;
}

.progress-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-align: center;
}

.progress-label strong {
  color: var(--cta);
}

/* =============================================
   COMPONENTS — Btn small variant
   ============================================= */

.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

/* =============================================
   SECTION — How It Works
   ============================================= */

.how-it-works {
  padding: 80px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  max-width: 700px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.875rem;
}

.step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  background: rgba(8, 145, 178, 0.05);
}

.step-body h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.step-arrow {
  display: none;
  color: var(--border);
  flex-shrink: 0;
}

/* =============================================
   SECTION — Hero visual / wireframe
   ============================================= */

.wireframe-svg {
  width: 100%;
  height: auto;
  max-width: 410px;
  filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.08));
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@media (prefers-reduced-motion: reduce) {
  .wireframe-svg {
    animation: none;
  }
}

/* =============================================
   COMPONENT — Sticky bottom CTA
   ============================================= */

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.875rem 1.25rem;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
  white-space: nowrap;
}

.sticky-cta-text strong {
  color: #fb923c;
}

/* =============================================
   DARK MODE — explicit light override
   Declaring this block signals to Chrome that
   we've handled dark mode ourselves, which
   prevents its forced-dark transform from firing.
   We intentionally re-assert the light palette.
   ============================================= */

@media (prefers-color-scheme: dark) {

  /* Chrome's forced-dark transform runs after CSS but respects !important.
     We keep this page light-mode-only by re-asserting all key colors. */

  html,
  body {
    background-color: #f7f8fa !important;
    color: #1a1a1a !important;
  }

  p {
    color: #4b5563 !important;
  }

  h1, h2, h3, h4 {
    color: #1a1a1a !important;
  }

  .site-header {
    background: rgba(247, 248, 250, 0.92) !important;
    border-bottom-color: #e5e7eb !important;
  }

  .wordmark {
    color: #1a1a1a !important;
  }

  .wordmark span {
    color: #0891b2 !important;
  }

  .hero {
    /* Strip the gradient — Chrome force-dark transforms gradient colors
       even when !important is set on background-color. Solid bg is safe. */
    background-color: #f7f8fa !important;
    background-image: none !important;
  }

  .hero-headline {
    color: #1a1a1a !important;
  }

  .hero-sub {
    color: #4b5563 !important;
  }

  .features {
    background: #ffffff !important;
  }

  .faq {
    background: #ffffff !important;
  }

  .section-title {
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
  }

  .feature-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
  }

  .feature-card h3 {
    color: #1a1a1a !important;
  }

  .feature-card p {
    color: #4b5563 !important;
  }

  .feature-icon {
    background: rgba(8, 145, 178, 0.08) !important;
    color: #0891b2 !important;
  }

  .audience {
    background: #f7f8fa !important;
  }

  .audience-card {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
  }

  .audience-card h2 {
    color: #1a1a1a !important;
  }

  .audience-card p {
    color: #4b5563 !important;
  }

  .faq {
    background: #f7f8fa !important;
  }

  .faq-item {
    border-color: #e5e7eb !important;
  }

  .faq-item summary {
    color: #1a1a1a !important;
  }

  .faq-item > p {
    color: #4b5563 !important;
  }

  .capture-form input[type="email"] {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
    color: #1a1a1a !important;
  }

  .capture-form input[type="email"]::placeholder {
    color: #9ca3af !important;
  }

  .form-note {
    color: #4b5563 !important;
  }

  .form-success p {
    color: #1a1a1a !important;
  }

  .site-footer {
    background: #ffffff !important;
    border-top-color: #e5e7eb !important;
  }

  .footer-inner,
  .footer-inner a {
    color: #4b5563 !important;
  }

  .progress-bar {
    background: #e5e7eb !important;
  }

  .how-it-works {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
  }

  .step-num {
    border-color: #0891b2 !important;
    color: #0891b2 !important;
    background: rgba(8, 145, 178, 0.05) !important;
  }

  .step-body h3 {
    color: #1a1a1a !important;
  }

  .step-body p {
    color: #4b5563 !important;
  }

  .step-arrow {
    color: #e5e7eb !important;
  }

  /* The dark CTA section stays dark intentionally */
  .cta-bottom {
    background: #0f172a !important;
  }

  .cta-bottom h2 {
    color: #ffffff !important;
  }

  .cta-sub {
    color: rgba(255, 255, 255, 0.65) !important;
  }

  .cta-bottom .capture-form input[type="email"] {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
  }

  .cta-bottom .form-note {
    color: rgba(255, 255, 255, 0.45) !important;
  }

  .cta-bottom .form-success p {
    color: #ffffff !important;
  }

}
