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

/* ─── Custom Properties ──────────────────────────────────────── */
:root {
  --paper: #F7F5F0;
  --ink: #0E1014;
  --ink-soft: rgba(14, 16, 20, 0.45);
  --ink-faint: rgba(14, 16, 20, 0.09);
  --ink-border: rgba(14, 16, 20, 0.18);

  /* oklch with hex fallbacks for older browsers */
  --accent: #7B91CD;
  --accent: oklch(72% 0.12 265);
  --accent-green: #3A9B65;
  --accent-green: oklch(60% 0.16 145);

  --font-script: 'Pacifico', cursive;
  --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-w: 660px;
  --radius: 3px;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
}

/* ─── Base ───────────────────────────────────────────────────── */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-ui);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ─── Shared section wrapper ─────────────────────────────────── */
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(4rem, 12vh, 7rem) var(--space-md) clamp(3rem, 8vh, 5rem);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.wordmark {
  font-family: var(--font-script);
  font-size: clamp(3.5rem, 18vw, 9.5rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  user-select: none;
}

.flow-line {
  width: min(380px, 80%);
  height: auto;
  margin-top: -0.25em;
  margin-bottom: 0.6rem;
  opacity: 0.75;
}

.tagline {
  font-size: clamp(0.55rem, 1.6vw, 0.68rem);
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  font-weight: 500;
  text-transform: uppercase;
}

.trust-badges {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.75rem;
}

.badge {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
  border: 1px solid var(--ink-border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* ─── Description ────────────────────────────────────────────── */
.description {
  padding-bottom: var(--space-xl);
}

.lead {
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  line-height: 1.7;
  color: var(--ink);
  margin-bottom: var(--space-lg);
}

.pillars {
  list-style: none;
  border-top: 1px solid var(--ink-faint);
}

.pillar {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--ink-faint);
}

.pillar-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
  min-width: 5rem;
  flex-shrink: 0;
}

.pillar-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
}

/* ─── Waitlist ───────────────────────────────────────────────── */
.waitlist {
  padding-bottom: var(--space-xl);
}

.waitlist-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--ink-faint);
}

.waitlist-heading {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.waitlist-sub {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 44ch;
}

/* ─── Form ───────────────────────────────────────────────────── */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field-label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}

.field input,
.field select {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  background: transparent;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
}

.field input::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.field input:focus,
.field select:focus {
  border-color: rgba(14, 16, 20, 0.55);
}

/* WhatsApp prefix input */
.input-affixed {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--ink-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.input-affixed:focus-within {
  border-color: rgba(14, 16, 20, 0.55);
}

.input-affix {
  display: flex;
  align-items: center;
  padding: 0.72rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-right: 1px solid var(--ink-border);
  background: rgba(14, 16, 20, 0.03);
  white-space: nowrap;
  user-select: none;
  flex-shrink: 0;
}

.input-affixed input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}

.input-affixed input:focus {
  border: none;
}

/* Select */
.select-wrap {
  position: relative;
}

.select-wrap select {
  padding-right: 2.25rem;
  cursor: pointer;
}

.select-chevron {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--ink-soft);
}

/* Error */
.form-error {
  font-size: 0.8rem;
  color: #C0392B;
  min-height: 1rem;
  display: none;
}

.form-error:not(:empty) {
  display: block;
}

/* Submit button */
.btn-submit {
  padding: 0.875rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.15s ease;
  margin-top: 0.25rem;
}

.btn-submit:hover {
  opacity: 0.82;
}

.btn-submit:active {
  opacity: 0.7;
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ─── Success ────────────────────────────────────────────────── */
.success {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) 0;
}

.success-mark {
  font-size: 1.5rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
}

.success-heading {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
}

.success-body {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 36ch;
  margin: 0 auto;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  padding: 1.5rem var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--ink-faint);
}

.site-footer span {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 520px) {
  .form-row--split {
    grid-template-columns: 1fr;
  }

  .pillar {
    flex-direction: column;
    gap: 0.3rem;
  }

  .pillar-label {
    min-width: auto;
  }
}

/* ─── Animations ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-inner {
    animation: fade-up 0.65s ease both;
  }

  .description .section-inner {
    animation: fade-up 0.65s 0.1s ease both;
  }

  .waitlist .section-inner {
    animation: fade-up 0.65s 0.2s ease both;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(14px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
