/* ============================================================
   Vopla — temporary waitlist homepage
   ============================================================ */

:root {
  --color-brand:         #2C5F2D;
  --color-brand-dark:    #1E4A1F;
  --color-brand-subtle:  #EDF5EE;
  --color-brand-ring:    rgba(44, 95, 45, 0.28);

  --color-surface:       #F9F8F4;
  --color-surface-2:     #F2F1EE;
  --color-border:        #E4E3DF;
  --color-text:          #1A1A17;
  --color-muted:         #828278;
  --color-white:         #FFFFFF;

  --font-display: "Syne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 2px rgba(26, 26, 23, .04), 0 10px 30px rgba(26, 26, 23, .06);
  --shadow-btn: 0 1px 1px rgba(26, 26, 23, .08), 0 6px 18px rgba(44, 95, 45, .18);

  --max-w: 1100px;
  --hero-max-w: 760px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-brand-dark); text-decoration-color: rgba(30, 74, 31, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; margin: 0; color: var(--color-text); }

/* ---------- a11y ---------- */
.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;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-brand); color: var(--color-white);
  padding: 8px 14px; border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 500; z-index: 100;
}
.skip-link:focus { left: 0; outline: 2px solid var(--color-brand-ring); }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 720px) { .container { padding: 0 40px; } }

/* ---------- header ---------- */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--color-brand);
  text-decoration: none;
}
.wordmark-mark { color: var(--color-brand); }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-brand-subtle);
  color: var(--color-brand-dark);
  border: 1px solid rgba(44, 95, 45, .14);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 120px) 0 clamp(56px, 9vw, 112px);
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* soft green glow behind headline */
  content: "";
  position: absolute;
  inset: -20% 10% auto 10%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(44, 95, 45, .12), rgba(44, 95, 45, 0) 65%);
  z-index: -1;
  pointer-events: none;
}
.hero-inner {
  max-width: var(--hero-max-w);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  background: var(--color-brand-subtle);
  color: var(--color-brand-dark);
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw + 0.6rem, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 auto 24px;
  max-width: 14ch;
  color: var(--color-text);
  text-wrap: balance;
}
.nowrap { white-space: nowrap; }

.hero-sub {
  font-size: clamp(1.05rem, 0.5vw + 1rem, 1.2rem);
  line-height: 1.55;
  color: var(--color-muted);
  max-width: 52ch;
  margin: 0 auto 36px;
  text-wrap: pretty;
}

/* ---------- form ---------- */
.waitlist-form {
  max-width: 520px;
  margin: 0 auto;
}
.field-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: stretch;
}
.waitlist-form input[type="email"] {
  flex: 1 1 260px;
  min-width: 0;
  height: 52px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.waitlist-form input[type="email"]::placeholder {
  color: var(--color-muted);
}
.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-ring);
}
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: transform .15s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary {
  background: var(--color-brand);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover { background: var(--color-brand-dark); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .75; cursor: wait; transform: none; }

.btn-loader {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: var(--color-white);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.btn.is-loading .btn-label { opacity: .6; }
.btn.is-loading .btn-loader { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 14px 2px 0;
  font-size: 13.5px;
  color: var(--color-muted);
  text-align: center;
}
.form-message {
  margin: 14px 2px 0;
  font-size: 14.5px;
  text-align: center;
  min-height: 1.2em;
}
.form-message.is-success { color: var(--color-brand-dark); font-weight: 500; }
.form-message.is-error   { color: #a33131; }

/* ---------- hero divider ---------- */
.hero-divider {
  margin-top: clamp(56px, 8vw, 88px);
  height: 1px;
  background-image: linear-gradient(to right, transparent, var(--color-border) 20%, var(--color-border) 80%, transparent);
}

/* ---------- what section ---------- */
.what {
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 128px);
}
.what-inner { max-width: 960px; margin: 0 auto; }
.what h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  text-align: center;
}
.what-prose {
  max-width: 62ch;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--color-text);
}
.what-prose p { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.65; }
.what-prose p:last-child { color: var(--color-muted); margin-bottom: 0; }

.what-cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .what-cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: var(--color-brand-dark);
}
.card p { margin: 0; color: var(--color-text); font-size: 0.98rem; line-height: 1.55; }

/* ---------- footer ---------- */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-meta {
  font-style: normal;
  color: var(--color-muted);
  font-size: 14px;
}
.footer-meta a { color: var(--color-muted); }
.footer-meta a:hover { color: var(--color-brand-dark); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
