:root {
  --bg: #ffffff;
  --fg: #000000;
  --hairline: #e0e0e0;
  --font: "Helvetica Neue", Helvetica, "Nimbus Sans", "Liberation Sans", Arial, sans-serif;
  --font-display: "Anton", "Helvetica Neue", Helvetica, sans-serif;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

::selection { background: var(--fg); color: var(--bg); }

a { color: inherit; text-decoration: none; }

button, input, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 0;
  appearance: none;
  -webkit-appearance: none;
}

button { cursor: pointer; }

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

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* header — same proportions as a-lot: 96px bar, centered wordmark */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 6rem;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header .inner {
  position: relative;
  height: 100%;
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 1.875rem;
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .site-header .inner { padding: 0 2.5rem; }
  .wordmark { font-size: 2.25rem; top: 2rem; }
}

main {
  flex: 1;
  width: 100%;
  max-width: 110rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}

@media (min-width: 768px) {
  main { padding: 0 2.5rem 6rem; }
}

/* display type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.92;
  text-transform: none;
}

.body {
  font-size: 1rem;
  line-height: 1.625;
  font-weight: 400;
  letter-spacing: 0;
}

@media (min-width: 768px) {
  .body { font-size: 1.125rem; }
}

/* landing: pain list */
.pains {
  padding-top: 14vh;
}

.pains p {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.96;
  font-size: clamp(2.15rem, 9.5vw, 4.6rem);
}

.pains p + p { margin-top: 0.18em; }

.close {
  margin-top: 12vh;
  max-width: 42rem;
}

.close .sig {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.01em;
  line-height: 1;
  font-size: 2.5rem;
}

.close .tagline {
  margin-top: 0.85rem;
  font-size: 1rem;
  line-height: 1.625;
}

.close .price {
  margin-top: 0.35rem;
  font-size: 1rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .close .tagline,
  .close .price { font-size: 1.125rem; }
}

.close .cta {
  margin-top: 2.25rem;
  font-size: 1rem;
}

.close .cta .link-underline::after {
  transform: scaleX(1);
}

.close .cta .link-underline:hover::after,
.close .cta .link-underline:focus-visible::after {
  transform: scaleX(0.4);
}

@media (min-width: 768px) {
  .close .cta { font-size: 1.125rem; margin-top: 2.75rem; }
}

/* 3px hover underline, a-lot style */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.link-underline:hover::after,
.link-underline:focus-visible::after {
  transform: scaleX(1);
}

/* form page */
.page-title {
  padding-top: 14vh;
  padding-bottom: 1.75rem;
  max-width: 64rem;
}

.page-title h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.94;
  font-size: 11vw;
}

@media (min-width: 768px) {
  .page-title h1 { font-size: 4.6vw; }
}

.page-title .lede {
  margin-top: 1.25rem;
  max-width: 42rem;
}

.form {
  width: 100%;
  max-width: 42rem;
  padding-bottom: 4rem;
}

.section {
  padding: 2.75rem 0 0.25rem;
}

.section:first-of-type { padding-top: 1.25rem; }

.section-note {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: -0.75rem 0 1.35rem;
  text-transform: none;
}

.section h2 {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 1.5rem;
}

.field {
  display: block;
  margin-bottom: 1.35rem;
}

.field span,
.choices-label {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.optional { text-transform: none; letter-spacing: 0; font-size: 0.6875rem; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"] {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  padding: 0.65rem 0 0.55rem;
  outline: none;
  font-size: 1rem;
  line-height: 1.4;
  border-radius: 0;
}

.field input:focus {
  border-bottom-color: var(--fg);
}

.field input::placeholder {
  color: #b0b0b0;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.choice {
  display: block;
  cursor: pointer;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice span {
  display: inline-block;
  text-transform: none;
  border: 1px solid var(--fg);
  padding: 0.65rem 1rem 0.6rem;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.choice input:focus-visible + span {
  outline: 1px solid var(--fg);
  outline-offset: 2px;
}

.choice input:checked + span {
  background: var(--fg);
  color: var(--bg);
}

.form-error {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
}

.form-error[hidden],
.form-success[hidden] { display: none; }

.actions {
  margin-top: 2.25rem;
}

.actions .submit {
  font-size: 1.125rem;
  background: none;
  padding: 0;
  position: relative;
  display: inline-block;
}

.actions .submit::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15em;
  width: 100%;
  height: 3px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: 0 50%;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.actions .submit:hover::after,
.actions .submit:focus-visible::after {
  transform: scaleX(0.35);
}

.actions .submit:disabled {
  cursor: wait;
  opacity: 0.45;
}

.form-success {
  padding: 0.5rem 0 4rem;
  max-width: 42rem;
}

.form-success p {
  font-size: 1rem;
  line-height: 1.625;
}

@media (min-width: 768px) {
  .form-success p { font-size: 1.125rem; }
}

.thanks {
  padding-top: 18vh;
  max-width: 42rem;
}

.thanks h1 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.94;
  font-size: 11vw;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .thanks h1 { font-size: 4.6vw; }
}

.thanks .back {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .link-underline::after,
  .actions .submit::after { transition: none; }
}

input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
}

.form-success .cta{margin-top:2.5rem}
