:root {
  --ink: #1d1d1f;
  --muted: #5a6570;
  --deep: #0670a0;
  --paper: #f7fbfe;
  --line: rgba(29, 29, 31, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  width: 100%;
  max-width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  position: relative;
  overscroll-behavior-x: none;
}

.wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 12% -5%, rgba(132, 208, 245, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 45% at 95% 0%, rgba(253, 196, 42, 0.28) 0%, transparent 55%),
    var(--paper);
}

.sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(36px, env(safe-area-inset-bottom))
    max(22px, env(safe-area-inset-left));
}

.mark {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(220px, 70vw);
  margin-bottom: 28px;
}

h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.lede {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 16px;
  line-height: 1.45;
  color: var(--muted);
  font-weight: 500;
}

form {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  min-width: 0;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

label span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--deep);
}

label em {
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

input[type="text"],
input[type="email"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input::placeholder { color: #9aa3ad; }

input:focus {
  border-color: rgba(6, 112, 160, 0.5);
  box-shadow: 0 0 0 3px rgba(123, 211, 247, 0.32);
}

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

.err {
  font-size: 14px;
  font-weight: 600;
  color: #c0392b;
  line-height: 1.35;
}

button {
  margin-top: 4px;
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 14px;
  background: var(--deep);
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:active { filter: brightness(0.94); }

button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.thanks {
  margin-top: 8px;
}

.thanks h1 { color: var(--deep); }

.thanks .lede {
  margin-top: 12px;
  font-size: 18px;
  color: var(--ink);
}
