/* Colors from the umans brand: slate #344458 and the blue → aqua gradient
   (#0c38d4, #047cec, #00acfc, #00fcd4) */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --field: #f5f8fc;
  --text: #344458;
  --heading: #344458;
  --muted: #5f6b80;
  --border: #dde4ee;
  --accent: #0c38d4;
  --focus: rgba(12, 56, 212, 0.2);
  --error: #c62828;
  --brand: linear-gradient(110deg, #0c38d4 0%, #047cec 35%, #00acfc 65%, #00fcd4 100%);
  --tld: linear-gradient(100deg, #0c38d4, #047cec);
  --button: linear-gradient(120deg, #0c38d4, #0a5fe3);
  --button-ink: #ffffff;
  --blob-opacity: 1;
  --shadow: 0 1px 2px rgba(52, 68, 88, 0.06), 0 20px 48px -20px rgba(12, 56, 212, 0.28);
  /* Width of the corner decorations; their height is 2/3 of it */
  --blob: min(34vw, 480px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1220;
    --surface: #121b2e;
    --field: #0e1627;
    --text: #dfe6f1;
    --heading: #f3f6fb;
    --muted: #9aa7bd;
    --border: #24314b;
    --accent: #00acfc;
    --focus: rgba(0, 172, 252, 0.3);
    --error: #ff8a80;
    --tld: linear-gradient(100deg, #00acfc, #00fcd4);
    --button: linear-gradient(120deg, #00acfc, #00fcd4);
    --button-ink: #04122e;
    --blob-opacity: 0.85;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 48px -20px rgba(0, 0, 0, 0.75);
  }
}

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* --- Corner decorations --- */

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: var(--blob);
  aspect-ratio: 3 / 2;
  color: var(--accent);
  opacity: var(--blob-opacity);
  pointer-events: none;
}

.blob-top {
  top: 0;
  left: 0;
}

.blob-bottom {
  right: 0;
  bottom: 0;
  transform: rotate(180deg);
}

.page,
.footer {
  position: relative;
}

.page {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) 20px clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

@media (max-width: 880px) {
  .page {
    grid-template-columns: minmax(0, 1fr);
    /* clear the top-left decoration */
    padding-top: calc(var(--blob) * 0.42 + 16px);
  }
}

/* --- Pitch --- */

.pitch {
  container-type: inline-size;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--heading);
  font-weight: 800;
}

.domain {
  display: block;
  /* "umans.com" is up to 6em wide, so this keeps it inside its column */
  font-size: clamp(2.5rem, 16cqi, 7rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.tld {
  background: var(--tld);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  display: block;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.5rem, 3.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.lead {
  max-width: 36ch;
  margin: 28px 0 0;
  font-size: 1.15rem;
}

.points {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.points li {
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.points li::before {
  content: "";
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tld);
  transform: translateY(-1px);
}

/* --- Form card --- */

.card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--brand);
}

.card h2 {
  margin: 0;
  color: var(--heading);
  font-size: 1.5rem;
  letter-spacing: -0.015em;
}

.intro {
  margin: 8px 0 24px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--field);
  color: inherit;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

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

input:user-invalid,
textarea:user-invalid {
  border-color: var(--error);
}

button {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--button);
  color: var(--button-ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s, transform 0.05s;
}

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

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

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

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

.form-status {
  display: block;
  min-height: 1.4em;
  margin: 12px 0 0;
  color: var(--error);
  font-size: 0.925rem;
}

.fineprint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.fineprint a {
  color: inherit;
}

.success {
  padding: 16px 0;
  text-align: center;
  outline: none;
}

.success-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
}

.success-icon circle {
  fill: url(#umans-button-light);
}

.success-icon path {
  stroke: var(--button-ink);
}

@media (prefers-color-scheme: dark) {
  .success-icon circle {
    fill: url(#umans-button-dark);
  }
}

.success p {
  margin: 8px auto 0;
  max-width: 32ch;
  color: var(--muted);
}

.success strong {
  color: var(--heading);
  overflow-wrap: anywhere;
}

/* The reCAPTCHA notice is in the form's fine print instead */
.grecaptcha-badge {
  visibility: hidden;
}

.footer {
  padding: 24px 20px 32px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
