/* 90days landing page — Becoming You brand (client/src/index.css), as a standalone sheet.
   Teal/cyan family, system font stack, light mint background, rounded glass controls.
   The accent and button stops are one shade darker than the app's so text meets WCAG AA. */

:root {
  --bg-1: #f0fdfa;
  --bg-2: #ecfdf5;
  --bg-3: #f0f9ff;
  --ink: #111827;
  --subhead: #374151;
  --muted: #4b5563;
  --brand-teal: #14b8a6;
  --accent-1: #0d9488;
  --accent-2: #0891b2;
  --accent-3: #2563eb;
  --button-1: #0f766e;
  --button-2: #0e7490;
  --field-border: #7c8a96;
  --focus: rgba(20, 184, 166, 0.35);
  --error: #b91c1c;
  --radius: 1rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 50%, var(--bg-3) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.brand span {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--accent-1);
}

h1 {
  margin: 0 0 1rem;
  font-size: 2rem;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.accent {
  color: var(--accent-1);
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subhead {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--subhead);
}

.origin {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted);
}

.join {
  min-height: 9.5rem; /* holds the slot steady when the form is swapped for the confirmation */
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
}

label {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--subhead);
}

input {
  width: 100%;
  height: 3rem;
  padding: 0 1rem;
  font: inherit;
  font-size: 1rem; /* 16px: stops iOS zooming on focus */
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 4px var(--focus);
}

input[aria-invalid="true"] {
  border-color: var(--error);
}

.error {
  margin: 0;
  font-size: 0.875rem;
  color: var(--error);
}

button {
  margin-top: 0.5rem;
  height: 3.25rem;
  padding: 0 1.5rem;
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--button-1), var(--button-2));
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 118, 110, 0.25);
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}

button:hover {
  filter: brightness(1.08);
}

button:active {
  transform: translateY(1px);
}

button:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.joined {
  margin: 0;
  padding: 1.25rem 1.25rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(13, 148, 136, 0.35);
  border-radius: var(--radius);
}

.joined:focus {
  outline: none;
}

[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .page {
    padding: 3rem 1.5rem;
  }
  h1 {
    font-size: 2.75rem;
  }
  .subhead {
    font-size: 1.25rem;
  }
  .origin {
    font-size: 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  input,
  button {
    transition: none;
  }
  button:active {
    transform: none;
  }
}
