/* JAELE waitlist — self-contained, no remote assets. */
:root {
  color-scheme: light;
  --color-bg: #f7f4ed;
  --color-ink: #202a3a;
  --color-ink-soft: #4a5360;
  --color-muted: #7c817f;
  --color-border: #c9c9c2;
  --color-input: #fcfbf7;
  --color-error: #a33331;
  --color-focus: #516e96;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 0; }
body {
  margin: 0;
  min-width: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(38px, 7.2vh, 78px) 24px clamp(24px, 4.2vh, 40px);
}
.main-content {
  display: flex;
  flex: 1 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.hero {
  width: min(100%, 780px);
  margin-inline: auto;
  text-align: center;
}
.brand { margin: 0 0 clamp(53px, 8vh, 81px); }
.brand__wordmark {
  margin: 0;
  padding-left: 0.47em; /* visually balances letter spacing at line end */
  font-size: clamp(31px, 3.3vw, 42px);
  font-weight: 450;
  letter-spacing: 0.47em;
  line-height: 1.1;
}
.brand__rule {
  display: block;
  width: 69px;
  height: 1px;
  margin: 27px auto 0;
  background: var(--color-ink);
  opacity: 0.65;
}
.hero__copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(45px, 5.05vw, 72px);
  line-height: 1.09;
  letter-spacing: -0.046em;
  text-wrap: balance;
}
.hero__subtitle {
  margin: 24px auto 0;
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1.5;
}
.hero__description {
  max-width: 520px;
  margin: 16px auto 0;
  color: var(--color-ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}
.signup {
  width: min(100%, 470px);
  margin: 36px auto 0;
}
.waitlist-form, .field-group { width: 100%; min-width: 0; }
.email-input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-input);
  color: var(--color-ink);
  font: 400 15px/1.3 var(--font-sans);
  letter-spacing: 0.005em;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.email-input::placeholder { color: #848987; opacity: 1; }
.email-input:hover:not(:focus) { border-color: #9fa6a7; }
.email-input[aria-invalid="true"] { border-color: var(--color-error); }
.email-input:focus-visible, .submit-button:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}
.email-input:focus:not(:focus-visible) { border-color: var(--color-focus); }
.email-input[readonly] { cursor: progress; }
.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 55px;
  margin: 12px 0 0;
  padding: 14px 20px;
  border: 1px solid var(--color-ink);
  border-radius: 7px;
  background: var(--color-ink);
  color: #fcfbf8;
  font: 600 12px/1.5 var(--font-sans);
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.submit-button:hover:not(:disabled) { background: #344056; border-color: #344056; }
.submit-button:active:not(:disabled) { background: #121b2b; }
.submit-button:disabled { cursor: not-allowed; opacity: 0.83; }
.button-spinner {
  display: none;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
}
.waitlist-form[data-state="submitting"] .button-spinner {
  display: inline-block;
  animation: spin 650ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
.field-error {
  margin: 8px 3px 0;
  color: var(--color-error);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}
.form-status, .form-alert, .retry-countdown {
  margin: 12px 4px 0;
  font-size: 13px;
  line-height: 1.55;
  text-align: center;
}
.form-status { color: var(--color-ink-soft); }
.form-alert { color: var(--color-error); }
.retry-countdown { color: var(--color-ink-soft); font-variant-numeric: tabular-nums; }
.success-panel { padding: 17px 12px 9px; outline: none; }
.success-panel__rule { display: block; width: 42px; height: 1px; margin: 0 auto 18px; background: var(--color-ink); }
.success-panel p { margin: 0; font-family: var(--font-display); font-size: clamp(19px, 2.5vw, 24px); line-height: 1.5; }
.privacy-note {
  margin: 20px auto 0;
  color: var(--color-muted);
  font-size: 11px;
  line-height: 1.55;
  letter-spacing: 0.018em;
}
.noscript-note { color: var(--color-error); font-size: 13px; }
.footer {
  width: 100%;
  flex: 0 0 auto;
  margin: clamp(42px, 7vh, 72px) auto 0;
  text-align: center;
}
.footer p {
  margin: 0;
  color: #6f7779;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.035em;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .page-shell { padding: 35px 24px 25px; }
  .brand { margin-bottom: 47px; }
  .brand__wordmark { font-size: 31px; letter-spacing: .42em; padding-left: .42em; }
  .brand__rule { width: 60px; margin-top: 22px; }
  .hero__copy h1 { font-size: clamp(40px, 10.6vw, 51px); letter-spacing: -.049em; line-height: 1.1; }
  .desktop-break { display: none; }
  .hero__subtitle { margin-top: 21px; font-size: 16px; line-height: 1.55; }
  .hero__description { max-width: 355px; margin-top: 13px; font-size: 14px; line-height: 1.65; }
  .signup { margin-top: 30px; }
  .email-input { height: 54px; padding-inline: 15px; font-size: 14px; }
  .submit-button { min-height: 54px; }
  .privacy-note { margin-top: 17px; font-size: 10.5px; }
  .footer { margin-top: 36px; }
  .footer p { max-width: 325px; margin-inline: auto; font-size: 11px; }
}
@media (max-width: 359px) {
  .page-shell { padding-inline: 18px; }
  .brand { margin-bottom: 40px; }
  .hero__copy h1 { font-size: 39px; }
  .hero__subtitle { font-size: 15px; }
}
