/* Colours match src/constants/theme.ts in the app. */
:root {
  --yellow: #F0CE1F;
  --orange: #E8862A;
  --red: #D9382C;
  --primary: #C2410C;
  --primary-dark: #9A3412;
  --background: #FFFFFF;
  --surface: #FFF7ED;
  --text: #1C1917;
  --muted: #6B625C;
  --border: #E7DED6;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); text-align: center; }

.top {
  position: absolute;
  top: 0;
  right: 0;
  padding: 16px;
}
.top-cta {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.top-cta:hover { text-decoration: underline; }

section { padding: 64px 16px; }

/* Hero ------------------------------------------------------------------- */

.hero {
  text-align: center;
  background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
  padding-top: 88px;
}
.logo {
  width: min(360px, 80vw);
  height: auto;
  overflow: visible;
}
.brand-name {
  margin: 8px 0 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.25rem;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.lead {
  max-width: 560px;
  margin: 0 auto 16px;
  font-size: 1.15rem;
  color: var(--muted);
}
.cities { margin: 0 0 28px; font-size: 1.05rem; }
.counts { margin: 20px 0 0; color: var(--muted); font-weight: 600; }

/* Logo animation: the two arrows swap in from the sides, then the monogram appears. */
@media (prefers-reduced-motion: no-preference) {
  .arrow-left, .arrow-right, .monogram { transform-box: view-box; }
  .arrow-left { animation: slide-from-right 0.9s cubic-bezier(.2, .8, .2, 1) both; }
  .arrow-right { animation: slide-from-left 0.9s cubic-bezier(.2, .8, .2, 1) both; }
  .monogram { animation: fade-in 0.6s ease-out 0.6s both; }
  .logo:hover .arrow-left { animation: nudge-left 0.6s ease-in-out; }
  .logo:hover .arrow-right { animation: nudge-right 0.6s ease-in-out; }
}
@keyframes slide-from-right { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-from-left { from { transform: translateX(-40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nudge-left { 50% { transform: translateX(-6px); } }
@keyframes nudge-right { 50% { transform: translateX(6px); } }

/* Buttons ------------------------------------------------------------------ */

.button {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: 14px 32px;
  background: var(--primary);
  color: #FFFFFF;
  font: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}
.button:hover { background: var(--primary-dark); }
.button:disabled { opacity: 0.7; cursor: wait; }
.button.secondary { background: #128C4A; }
.button.secondary:hover { background: #0E6E3A; }

/* How it works --------------------------------------------------------------- */

.steps {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 960px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.steps li {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 12px;
  background: linear-gradient(135deg, var(--yellow), var(--orange) 50%, var(--red));
  color: #FFFFFF;
  font-weight: 700;
}
.steps p { margin: 0; color: var(--muted); }

/* Safety ------------------------------------------------------------------- */

.safety { background: var(--surface); }
.safety-list {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 0;
  list-style: none;
}
.safety-list li {
  padding: 12px 0 12px 32px;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.safety-list li:last-child { border-bottom: 0; }
.safety-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 700;
}

/* Waitlist form ---------------------------------------------------------------- */

.join > p { text-align: center; color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

form, .success {
  max-width: 440px;
  margin: 0 auto;
}
form label, legend {
  display: block;
  font-weight: 600;
  margin: 18px 0 6px;
}
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  background: #FFFFFF;
  color: var(--text);
}
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }

fieldset { border: 0; padding: 0; margin: 0; }
.city-options { display: flex; gap: 8px; flex-wrap: wrap; }
form label.city {
  flex: 1 1 auto;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
label.city:has(input:checked) { border-color: var(--primary); background: var(--surface); color: var(--primary); font-weight: 700; }
label.city input { accent-color: var(--primary); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.error {
  margin: 18px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FEF2F2;
  color: #991B1B;
}
form .button { width: 100%; margin-top: 24px; }

.success {
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px 24px;
}
.success:focus { outline: none; }
.success p { color: var(--muted); }

/* Footer ------------------------------------------------------------------ */

footer {
  text-align: center;
  padding: 32px 16px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
footer a { color: var(--primary); font-weight: 600; }
footer p { margin: 8px 0 0; }

@media (max-width: 600px) {
  .wide-only { display: none; }
}
