/* =====================================================================
   Outdu landing page
   Colours taken from Sridhar's approved draft:
     background #0A141E · gold #CDA434 · text #E2EDFF · Helvetica Neue
   Change the values in :root to rebrand the whole page.
   ===================================================================== */

:root {
  --navy:      #0A141E;
  --navy-2:    #101B27;
  --navy-3:    #16232F;
  --line:      #22303F;
  --line-2:    #2E3E50;
  --text:      #E2EDFF;
  --muted:     #9FB0C4;
  --gold:      #CDA434;
  --gold-lt:   #E0B94F;
  --danger:    #FF7A70;
  --radius:    10px;
  --wrap:      1280px;
  --font: "Helvetica Neue", Helvetica, Arial, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------- header ----------------------------- */

.site-header {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Wordmark set in the page's own typeface (Helvetica Neue), so the header
   belongs to the design instead of importing a second visual language.
   For a gold wordmark instead, change color to var(--gold). */
.brand {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  padding: 4px 0;
  transition: color .15s ease;
}
.brand:hover { color: #fff; }

/* ------------------------------ buttons ----------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 15px 32px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }

/* Dark text on gold: 7.9:1. White on gold would be 2.3:1 and fail. */
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-lt); }

.btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: rgba(205,164,52,.5);
  padding: 10px 20px;
  font-size: .94rem;
}
.btn-ghost:hover { border-color: var(--gold); }

.btn-lg { padding: 11px 28px; font-size: .95rem; }

.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold-lt);
  outline-offset: 2px;
}

/* -------------------------------- hero ------------------------------ */
/* Message on the left, form on the right — the whole page is one screen,
   so there is no scroll-to-form button and no repeated heading. */

.hero { padding: 84px 0 96px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 72px;
  align-items: center;
}

.tagline {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 2.05rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.012em;
  color: var(--gold);
}
.tagline sup {
  font-size: .48em;
  vertical-align: super;
  line-height: 0;
}

.rule {
  width: 100%;
  height: 1.5px;
  background: var(--gold);
  opacity: .7;
  margin: 0 0 34px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.85rem);
  line-height: 1.24;
  letter-spacing: -.018em;
  font-weight: 400;
  color: var(--text);
  text-wrap: balance;
}

/* ------------------------------ the form ---------------------------- */

.hero-form { scroll-margin-top: 20px; }

/* The form is the supporting act — the trademark line and the headline are
   the heroes. Everything here is deliberately a size down from the message. */

.form-title {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -.008em;
  color: var(--text);
}

.form {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.span-2 { grid-column: 1 / -1; }

.field label {
  display: block;
  margin-bottom: 5px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .005em;
  color: #B4C1D4;
}
.req { color: var(--gold); }
.opt { color: var(--muted); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  font: inherit;
  font-size: .92rem;
  color: var(--text);
  background: var(--navy-3);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }

.field input::placeholder,
.field textarea::placeholder { color: #6E7F92; }

.field input:hover,
.field textarea:hover { border-color: var(--line-2); }

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(205,164,52,.22);
}

.field.has-error input,
.field.has-error textarea {
  border-color: var(--danger);
  background: rgba(255,122,112,.07);
}

.err {
  margin: 5px 0 0;
  font-size: .78rem;
  line-height: 1.45;
  color: var(--danger);
}

/* Honeypot — off-screen, never displayed, not announced. */
.hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.privacy { margin: 0; font-size: .76rem; line-height: 1.55; color: var(--muted); max-width: 34ch; }

.cf-turnstile { margin-top: 24px; }

/* ------------------------------- alerts ----------------------------- */

.alert {
  padding: 11px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .84rem;
  line-height: 1.5;
}
.alert-error {
  background: rgba(255,122,112,.10);
  border: 1px solid rgba(255,122,112,.4);
  color: #FFC9C4;
}

/* ------------------------------- thanks ----------------------------- */

.thanks-card {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 64px 32px;
  text-align: center;
}
.thanks-mark {
  width: 64px; height: 64px;
  margin: 0 auto 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold);
  background: rgba(205,164,52,.12);
  border: 1.5px solid rgba(205,164,52,.5);
}
.thanks-card h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.1vw, 1.6rem);
  line-height: 1.3;
  letter-spacing: -.012em;
  font-weight: 500;
}

/* ------------------------------- footer ----------------------------- */

.site-footer {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 28px 0;
  color: var(--muted);
  font-size: .9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ----------------------------- responsive --------------------------- */

/* The header "Register" button only earns its place when the form is
   actually off-screen — on desktop the form is right there. */
.header-cta { display: none; }

@media (max-width: 1040px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; align-items: start; }
  .hero { padding: 60px 0 76px; }
  .header-cta { display: inline-flex; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 52px 0 64px; }
  .rule { margin-bottom: 28px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .hero-grid { gap: 34px; }
  .grid-2 { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .thanks-card { padding: 44px 22px; }
  .brand img { height: 26px; }
  .hero { padding: 40px 0 52px; }
  .btn-lg { width: 100%; }
  .form-foot { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
