/* ==========================================================================
   Nourish & Strengthen — Design Tokens
   ========================================================================== */
:root {
  /* Color */
  --color-teal: #176B63;
  --color-teal-dark: #0F4A44;
  --color-mint: #DDF4EE;
  --color-yellow: #F5C955;
  --color-cream: #FFF8E8;
  --color-coral: #F29B7F;
  --color-coral-dark: #D97A5C;
  --color-ink: #172523;
  --color-error: #B3261E;

  /* Type */
  --font-display: "Bricolage Grotesque", "Archivo Black", system-ui, sans-serif;
  --font-body: "DM Sans", "Inter", system-ui, sans-serif;

  /* Radius */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 40px;
  --radius-pill: 999px;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  /* Effects */
  --shadow-sm: 0 2px 10px rgba(23, 37, 35, 0.1);
  --shadow-md: 0 16px 36px rgba(23, 37, 35, 0.16);
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
h1 { font-family: var(--font-display); font-weight: 800; }

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

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

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}
.btn--primary { background: var(--color-teal); color: var(--color-cream); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-teal-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
  .btn--primary:hover { transform: none; }
}

/* ==========================================================================
   Splash — the whole page
   ========================================================================== */
.splash {
  min-height: 100vh;
  background: var(--color-yellow);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "content visual"
    "footer  footer";
  position: relative;
}

/* ------------------------------ Content ------------------------------ */
.splash__content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
  max-width: 680px;
  padding: var(--space-6);
}

.splash__tag {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-teal);
  color: var(--color-cream);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
}

.wordmark {
  width: 100%;
  margin-block: var(--space-2) 0;
  color: var(--color-teal);
}
.wordmark svg {
  width: 100%;
  height: auto;
  fill: currentColor;
}

.splash__lede {
  font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  line-height: 1.55;
  color: var(--color-ink);
  max-width: 46ch;
}

.splash__form-wrap { margin-top: var(--space-3); max-width: 460px; }

.splash__form-row {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.field { flex: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-weight: 700; font-size: 0.85rem; color: var(--color-ink); }
.field input {
  padding: 13px 15px;
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-sm);
  background: var(--color-cream);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field input:focus {
  outline: none;
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(23, 107, 99, 0.2);
}
.field input.field--invalid { border-color: var(--color-error); }

.form-error {
  background: rgba(179, 38, 30, 0.1);
  color: var(--color-error);
  font-size: 0.85rem;
  font-weight: 600;
  padding: var(--space-3);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-3);
}

.splash__success:not([hidden]) {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--color-cream);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-4);
  max-width: 460px;
}
.splash__success svg {
  flex-shrink: 0;
  color: var(--color-cream);
  background: var(--color-teal);
  border-radius: 50%;
  padding: 8px;
  width: 34px;
  height: 34px;
}
.splash__success-headline { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--color-teal); }

.splash__fineprint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(23, 37, 35, 0.72);
  max-width: 48ch;
  margin-top: var(--space-3);
}

/* ------------------------------ Visual ------------------------------ */
.splash__visual {
  grid-area: visual;
  position: relative;
  min-height: 420px;
}
.splash__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash__badge {
  position: absolute;
  left: -28px;
  bottom: 56px;
  background: var(--color-cream);
  color: var(--color-teal);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  text-align: center;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  max-width: 190px;
}

/* ------------------------------ Footer bar ------------------------------ */
.splash__footer {
  grid-area: footer;
  background: var(--color-teal);
  color: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-size: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .splash__content { padding: var(--space-5); }
}

@media (max-width: 900px) {
  .splash {
    grid-template-columns: 1fr;
    grid-template-areas:
      "content"
      "visual"
      "footer";
  }
  .splash__content {
    max-width: none;
    padding: var(--space-5) var(--space-4);
    align-items: flex-start;
  }
  .splash__visual { min-height: 0; aspect-ratio: 4 / 3; }
  .splash__badge { left: var(--space-4); bottom: var(--space-4); }
}

@media (max-width: 560px) {
  .splash__form-row { flex-direction: column; }
  .splash__footer { padding: var(--space-3) var(--space-4); }
  .splash__badge { max-width: 150px; font-size: 0.85rem; padding: var(--space-2) var(--space-3); }
}
