/* Beyond Us landing page.
   Brand colours sampled from BeyondUs_favicon.png: teal #40B6AE, navy #1E2C3C. */
:root {
  --bg: #040507;
  --bg-raised: #0b1016;
  --surface: #101821;
  --border: #1f2c39;
  --navy: #1e2c3c;
  --teal: #40b6ae;
  --teal-bright: #5fd3ca;
  --teal-soft: rgba(64, 182, 174, 0.14);
  --text: #eef3f4;
  --text-muted: #9fb0bb;
  --error: #ff8a80;
  --radius: 14px;
  --wrap: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-bright); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 10;
  background: var(--teal); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(4, 5, 7, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(31, 44, 57, 0.6); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { width: 40px; height: auto; }
.wordmark { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.wordmark span { color: var(--teal); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--teal); color: #031312; }
.btn-primary:hover { background: var(--teal-bright); color: #031312; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { border-color: var(--border); color: var(--text); min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn-ghost:hover { border-color: var(--teal); color: var(--text); }
@media (max-width: 420px) { .btn-ghost { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(64, 182, 174, 0.16), transparent 70%); pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 56px; }
}

.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .8125rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.75rem, 9vw, 5rem); line-height: 1.02; letter-spacing: -0.035em; font-weight: 750; }
h1 em { font-style: normal; color: var(--teal); }
.lead { margin: 20px 0 32px; max-width: 34ch; font-size: clamp(1.125rem, 2.4vw, 1.3125rem); color: var(--text-muted); }

.hero-art { order: -1; justify-self: center; width: min(68vw, 300px); }
/* The artwork has a near-black background; fade its edges into the page. */
.hero-art img {
  -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 72%, transparent 100%);
}
@media (min-width: 960px) {
  .hero-art { order: 0; width: 100%; max-width: 520px; position: sticky; top: 120px; }
}

/* Waitlist form */
.waitlist {
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; max-width: 520px; scroll-margin-top: 90px;
}
@media (min-width: 720px) { .waitlist { padding: 28px 32px; } }
.form-title { margin: 0; font-size: 1.25rem; letter-spacing: -0.01em; }
.form-sub { margin: 4px 0 20px; color: var(--text-muted); font-size: .9375rem; }

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: .9375rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--text-muted); }
.field input[type="text"], .field input[type="email"], .field textarea {
  width: 100%; padding: 12px 14px; min-height: 48px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
  border: 1px solid var(--border); border-radius: 10px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field [aria-invalid="true"] { border-color: var(--error); }
.hint { margin: 6px 0 0; font-size: .8125rem; color: var(--text-muted); }
.error { margin: 6px 0 0; font-size: .875rem; color: var(--error); }

.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.consent input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--teal); }
.consent label { margin: 0; font-weight: 400; font-size: .875rem; color: var(--text-muted); }
.consent .error { grid-column: 2; margin-top: 0; }

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

.waitlist .btn-primary { width: 100%; margin-top: 4px; }
.form-status { margin: 12px 0 0; min-height: 1.5em; font-size: .9375rem; }
.form-status.is-error { color: var(--error); }

.form-done { text-align: center; padding: 12px 0; }
.form-done h2 { margin: 0 0 8px; font-size: 1.375rem; }
.form-done p { margin: 0; color: var(--text-muted); }
.form-done .tick {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal-soft); color: var(--teal-bright); font-size: 1.5rem;
}

/* Belief */
.belief { padding: 72px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-raised); }
.belief blockquote { margin: 0; text-align: center; }
.belief p { margin: 0 auto; max-width: 26ch; font-size: clamp(1.5rem, 4.2vw, 2.375rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--text-muted); }
.belief strong { color: var(--text); font-weight: 700; }

/* Features */
.features { padding: 80px 0; }
.features h2 { margin: 0 0 36px; font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.15; letter-spacing: -0.025em; max-width: 20ch; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature-grid li { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.feature-grid h3 { margin: 0 0 8px; font-size: 1.125rem; letter-spacing: -0.01em; }
.feature-grid p { margin: 0; color: var(--text-muted); font-size: .9875rem; }
.feature-highlight { border-color: rgba(64, 182, 174, 0.55) !important; background: linear-gradient(160deg, rgba(64, 182, 174, 0.14), var(--surface) 70%) !important; }
.feature-highlight h3 { color: var(--teal-bright); }

/* Who */
.who { padding: 0 0 96px; }
.who-inner { text-align: center; }
.who h2 { margin: 0 0 20px; font-size: clamp(1.375rem, 3vw, 1.75rem); letter-spacing: -0.02em; }
.tags { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.tags li { padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-muted); font-size: .9375rem; }

/* Footer */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--border); background: var(--bg-raised); font-size: .9375rem; color: var(--text-muted); }
.support-note { margin: 0 0 28px; padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--surface); border-radius: 0 10px 10px 0; max-width: 820px; }
.support-note strong { color: var(--text); font-weight: 600; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer-row p { margin: 0; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-row a { color: var(--text-muted); }
.footer-row a:hover { color: var(--text); }

/* Privacy page */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2rem, 6vw, 3rem); margin-bottom: 8px; }
.doc .updated { margin: 0 0 36px; color: var(--text-muted); }
.doc h2 { margin: 40px 0 12px; font-size: 1.3125rem; letter-spacing: -0.01em; }
.doc p, .doc li { color: #c9d4da; }
.doc ul { padding-left: 1.25em; }
.doc li { margin-bottom: 6px; }
