/* SHEER waitlist landing — warm cream background, blueberry headline + CTA. */
:root {
  --bg: #faf0e7;
  --surface: #fefbf6;
  --text: #111111;
  --muted: #6f635a;
  --text-soft: #4d453e;
  --border: #d9cfc4;
  --accent: #4f4484;
  --accent-deep: #423971;
  --ring: rgba(79, 68, 132, 0.3);
  --radius: 14px;
  --maxw: 30rem;
}

* {
  box-sizing: border-box;
}

/* Author display rules (e.g. .form) otherwise beat the UA [hidden] rule. */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}

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

.page {
  position: relative;
  min-height: 100svh;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: clamp(1.75rem, 5vw, 2.75rem);
}

/* Brand */
.wordmark {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--text);
}

/* Intro */
.headline {
  margin: 0;
  font-weight: 800;
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--accent-deep);
}

.subhead {
  margin: 1rem 0 0;
  font-size: clamp(1rem, 3.6vw, 1.15rem);
  color: var(--text-soft);
  max-width: 26rem;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-soft);
}

input,
select {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input::placeholder {
  color: #b3a99d;
}

/* Custom chevron for selects */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236f635a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

select:invalid {
  color: var(--muted);
}

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

/* Honeypot — visually removed, still in the DOM for bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  color: #b3261e;
  font-size: 0.9rem;
}

.submit {
  margin-top: 0.5rem;
  width: 100%;
  font: inherit;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  background: var(--accent-deep);
  box-shadow: 0 10px 24px -10px var(--accent-deep);
  transition: background 0.15s ease, transform 0.06s ease, box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.submit:hover {
  background: var(--accent);
  box-shadow: 0 14px 28px -10px var(--accent-deep);
}

.submit:active {
  transform: translateY(1px);
}

.submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

/* Success */
.success-title {
  margin: 0 0 0.5rem;
  font-weight: 800;
  font-size: clamp(1.35rem, 6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--accent-deep);
}

.success-text {
  margin: 0.25rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 3.6vw, 1.1rem);
}

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