/* Together, Unprocessed — Brand Design System */
/* Version 1.0 */

:root {
  /* Primary */
  --green: #387F45;
  --green-hover: #2d6938;
  --olive: #70A24E;
  --golden: #E0A53D;

  /* Secondary */
  --light-orange: #F3E0B8;
  --teal: #377A86;

  /* Neutrals */
  --cream: #FEFBF3;
  --white: #FFFFFF;
  --dark: #2A2A2A;
  --medium: #4A4A4A;
  --light: #6A6A6A;
  --muted: #9a9084;

  /* Feedback */
  --error: #c0392b;

  /* Typography */
  --font-display: 'DM Serif Display', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;

  /* Radius */
  --radius: 10px;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg);
}

.container {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

/* Logo */
.logo-wrap {
  margin-bottom: var(--space-xl);
  animation: fadeDown 0.8s ease-out;
}
.logo-wrap img {
  width: 140px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(56, 127, 69, 0.1));
}

/* Typography */
.headline {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--green);
  margin-bottom: var(--space-md);
  animation: fadeUp 0.8s ease-out 0.15s both;
}
.subtext {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--medium);
  margin-bottom: var(--space-xl);
  animation: fadeUp 0.8s ease-out 0.3s both;
}
.subtext strong {
  color: var(--teal);
  font-weight: 500;
}

/* Form */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  animation: fadeUp 0.8s ease-out 0.45s both;
}
.email-input {
  width: 100%;
  padding: var(--space-md) 1.25rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 2px solid var(--light-orange);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
  outline: none;
  transition: border-color 0.3s ease;
}
.email-input:focus { border-color: var(--golden); }
.email-input::placeholder { color: #b0a898; }

/* Buttons */
.submit-btn {
  width: 100%;
  padding: var(--space-md);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}
.submit-btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 127, 69, 0.25);
}
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled {
  background: #9abfa0;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.download-btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.download-btn:hover {
  background: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(56, 127, 69, 0.25);
}

/* Supporting text */
.trust-line {
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--muted);
  animation: fadeUp 0.8s ease-out 0.6s both;
}
.error-msg {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: var(--space-xs);
  display: none;
}
.divider {
  width: 40px;
  height: 3px;
  background: var(--golden);
  border-radius: 2px;
  margin: var(--space-xl) auto;
  animation: fadeUp 0.8s ease-out 0.7s both;
}
.brand-line {
  font-size: 0.85rem;
  color: var(--olive);
  font-weight: 500;
  animation: fadeUp 0.8s ease-out 0.8s both;
}
/* Success state */
.success-msg { display: none; animation: fadeUp 0.5s ease-out; }
.success-msg h2 {
  font-family: var(--font-display);
  color: var(--green);
  font-size: 1.6rem;
  margin-bottom: var(--space-sm);
}
.success-msg p {
  color: var(--medium);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
