:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #f5f7fb;
  color: #111827;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.04), transparent 280px),
    #f5f7fb;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(760px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #536070;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.55rem;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: 0;
}

.panel {
  min-height: 420px;
  padding: 28px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
}

.copy {
  color: #3f4a5a;
  line-height: 1.55;
}

.stack {
  display: grid;
  gap: 18px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-weight: 700;
}

.field input[type="email"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #c8d1dc;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
}

.field input[type="email"]:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, 0.18);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.primary,
.ghost {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
}

.primary {
  padding: 0 18px;
  background: #111827;
  color: #ffffff;
}

.primary:disabled {
  cursor: wait;
  opacity: 0.68;
}

.ghost {
  padding: 0 14px;
  background: #ffffff;
  color: #111827;
  border-color: #c8d1dc;
}

.hidden {
  display: none !important;
}

.notice {
  padding: 14px 16px;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
  line-height: 1.5;
}

.error {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  line-height: 1.5;
}

.success {
  padding: 14px 16px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  line-height: 1.5;
}

.consent {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid #dce3eb;
  border-radius: 8px;
  background: #fbfdff;
}

.consent p {
  margin-bottom: 0;
  color: #3f4a5a;
  line-height: 1.55;
}

.check {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  margin-top: 4px;
  font-weight: 700;
  line-height: 1.45;
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.loader {
  width: 28px;
  height: 28px;
  margin: 160px auto;
  border: 3px solid #dce3eb;
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100vw - 20px, 760px);
    padding: 18px 0 32px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .panel {
    padding: 20px;
  }

  .primary,
  .ghost {
    width: 100%;
  }
}
