/* TOHFE Coming Soon. Brand colours live here; change them in one place. */
:root {
  --primary: #C21E5B;
  --accent: #FFCC33;
  --bg: #FFF9FA;
  --surface: #FCE4EC;
  --text: #C21E5B;
  --btn-text: #FFFFFF;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  /* Soft surface-colour wash in two opposite corners, as in the design */
  background-image:
    radial-gradient(48rem 32rem at 0% 0%, var(--surface), transparent 70%),
    radial-gradient(48rem 32rem at 100% 100%, var(--surface), transparent 70%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem 2rem;
}

.hero { width: 100%; max-width: 40rem; text-align: center; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 1.75rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--surface);
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.badge::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(4.5rem, 19vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}

.tagline {
  margin: 1rem 0 0;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  font-weight: 500;
}

.lead {
  max-width: 28rem;
  margin: 2rem auto 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.subscribe { margin-top: 3rem; }
.subscribe h2 {
  margin: 0;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hint { margin: .25rem 0 0; font-size: .8125rem; }

.form {
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: 30rem;
  margin: 1.25rem auto 0;
  padding: .375rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--primary) 14%, transparent);
}
.form:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }

.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: .75rem; padding-left: 1rem; }
.field svg { flex: none; }
.field input {
  flex: 1;
  min-width: 0;
  padding: .75rem 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 1rem; /* 16px stops iPhones zooming on focus */
}
.field input::placeholder { color: var(--primary); opacity: .7; }

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s;
}
button:hover { opacity: .9; }
button:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
button:disabled { opacity: .6; cursor: progress; }

.status { min-height: 1.5rem; margin: .875rem 0 0; font-size: .9375rem; font-weight: 700; }
.consent { max-width: 26rem; margin: .5rem auto 0; font-size: .75rem; }

footer { padding: 1.5rem; text-align: center; font-size: .8125rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 30rem) {
  main { padding-top: 3rem; }
  .form { flex-direction: column; align-items: stretch; border-radius: 1.5rem; padding: .5rem; }
  .field { padding: 0 1rem; }
  button { width: 100%; }
}

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