:root {
  --bg-base: #0c0a09;
  --bg-surface: #161311;
  --bg-surface-elevated: #1f1a17;
  --text-primary: #f5f0ea;
  --text-body: #e0d6cc;
  --text-muted: #a89a8a;
  --text-tertiary: #786a5c;
  --border-subtle: rgba(224, 214, 204, 0.08);
  --border-strong: rgba(224, 214, 204, 0.16);
  --border-firm: rgba(224, 214, 204, 0.3);
  --border-focus: #c2703d;
  --accent-badge-bg: rgba(107, 124, 60, 0.16);
  --accent-badge-text: #9dc25c;
  --accent-momentum-bg: rgba(194, 112, 61, 0.18);
  --accent-momentum-text: #e0955e;
  --accent-momentum-border: rgba(224, 149, 94, 0.22);
  --radius: 4px;
}

:root[data-theme="light"] {
  --bg-base: #f5f1ea;
  --bg-surface: #f8f4ed;
  --bg-surface-elevated: #e9e0d2;
  --text-primary: #1c1712;
  --text-body: #3a3128;
  --text-muted: #6b5f50;
  --text-tertiary: #a89a8a;
  --border-subtle: rgba(28, 23, 18, 0.08);
  --border-strong: rgba(28, 23, 18, 0.16);
  --border-firm: rgba(28, 23, 18, 0.32);
  --border-focus: #a8552b;
  --accent-badge-bg: rgba(107, 124, 60, 0.15);
  --accent-badge-text: #4d5a28;
  --accent-momentum-bg: rgba(168, 85, 43, 0.16);
  --accent-momentum-text: #8f4620;
  --accent-momentum-border: rgba(143, 70, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(640px circle at 50% 0%, rgba(194, 112, 61, 0.1), transparent 60%),
    var(--bg-base);
  color: var(--text-body);
  font-family: "Noto Sans", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 52px 36px 40px;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.25),
    0 0 60px rgba(194, 112, 61, 0.06);
  position: relative;
}

.theme-toggle {
  position: absolute;
  top: 32px;
  right: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    color 0.15s ease;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.theme-toggle svg.is-hidden {
  display: none;
}

.eyebrow {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}

.mark {
  display: block;
  margin: 0 auto 12px;
}

.logo {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 10px;
}

.subhead {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-body);
  text-align: center;
  margin: 0 0 20px;
}

.status-pill-wrap {
  display: flex;
  justify-content: center;
  margin: 0 0 32px;
}

.status-pill {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent-momentum-text);
  background: var(--accent-momentum-bg);
  border: 1px solid var(--accent-momentum-border);
  border-radius: var(--radius);
  padding: 5px 14px;
  min-height: 1.4em;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field-pill {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-firm);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.field-pill:focus-within {
  border-color: var(--border-focus);
}

input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 46px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: var(--text-primary);
  font-family: "Noto Sans", sans-serif;
  font-size: 14px;
  padding: 0 14px;
  outline: none;
}

button[type="submit"] {
  height: 46px;
  display: inline-flex;
  align-items: center;
  background: var(--border-focus);
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  padding: 0 20px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

button[type="submit"]:hover {
  opacity: 0.9;
}

button[type="submit"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.turnstile-wrap {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin-top: 6px;
}

.turnstile-wrap > div {
  width: 100%;
}

.form-message {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-align: center;
}

.form-message:empty {
  display: none;
}

.form-message[data-state="success"] {
  color: var(--accent-badge-text);
}

.form-message[data-state="error"] {
  color: var(--border-focus);
}

.footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}

.badge {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  background: var(--accent-badge-bg);
  color: var(--accent-badge-text);
  border-radius: var(--radius);
  padding: 4px 10px;
}

@media (max-width: 480px) {
  .card {
    padding: 44px 20px 32px;
  }
}
