:root {
  --bg: #f5f0e4;
  --panel: rgba(255, 255, 255, 0.4);
  --input-bg: rgba(255, 255, 255, 0.8);
  --text: #2b3c54;
  --form-text: #2b3c54;
  --muted: #374151;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #9d0000;
  --accent-strong: #7f0000;
  --accent-glow: rgba(29, 78, 216, 0.15);
  --input-line: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: url("../img/texture.png");
  background-repeat: repeat;
  background-attachment: scroll;
  background-size: calc(1800px / 1) auto;
  color: var(--text);
  font-family: "Baskervville", Georgia, serif;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(245, 240, 228, 0.18);
  pointer-events: none;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

h1,
p,
legend,
label {
  overflow-wrap: anywhere;
}

.optin {
  min-height: calc(100vh - 77px);
  display: grid;
  place-items: start center;
  padding: 86px 20px 72px;
}

.optin__inner,
.legal__inner {
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  margin: 0 0 22px;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0;
  opacity: 0.92;
}

.audience-badge {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 52px;
  padding: 13px 28px;
  border: 1px solid rgba(157, 0, 0, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.36);
  box-shadow:
    0 12px 32px rgba(157, 0, 0, 0.18),
    0 0 24px rgba(157, 0, 0, 0.22),
    0 4px 20px rgba(0, 0, 0, 0.05);
  color: var(--text);
  font-size: clamp(0.78rem, 1.05vw, 1.03rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.optin__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

h1 {
  max-width: 760px;
  margin: 0 auto 28px;
  font-size: clamp(1.31rem, 2.69vw, 2.72rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0;
}

.text-accent {
  display: inline-block;
  color: var(--accent);
  background:
    linear-gradient(
      105deg,
      var(--accent) 0%,
      var(--accent) 36%,
      #f3d1d1 48%,
      #ffffff 50%,
      #c63a3a 53%,
      var(--accent) 66%,
      var(--accent) 100%
    );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: metallic-shine 4.8s ease-in-out infinite;
}

@keyframes metallic-shine {
  0%,
  46% {
    background-position: 130% 0;
  }

  72%,
  100% {
    background-position: -80% 0;
  }
}

.lead {
  max-width: 560px;
  margin: 0 auto 54px;
  color: var(--muted);
  font-family: "Baskervville", Georgia, serif;
  font-size: clamp(0.69rem, 0.89vw, 0.84rem);
  font-weight: 700;
  line-height: 1.65;
}

.optin-embed {
  width: min(100%, 540px);
  margin: 0 auto;
}

.optin-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 880px;
  margin: 0 auto;
  border: 0;
}

.honeypot {
  display: none !important;
}

.form-group {
  margin-bottom: 28px;
}

.form-group label,
legend {
  display: block;
  margin-bottom: 13px;
  color: var(--form-text);
  font-family: "Baskervville", Georgia, serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.35;
}

input[type="text"],
input[type="tel"],
input[type="email"] {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--input-line);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  padding: 0 18px;
  font-family: "Baskervville", Georgia, serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input::placeholder {
  color: #8a8a8a;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
  border-color: #2c3e50;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.question-group {
  display: grid;
  gap: 14px;
  margin: 4px 0 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

legend {
  padding: 0;
}

.choice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--muted);
  font-family: "Baskervville", Georgia, serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
}

.choice input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.form-message {
  min-height: 20px;
  margin: -8px 0 14px;
  color: var(--muted);
  font-family: "Baskervville", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.4;
}

.form-message--error {
  color: var(--accent);
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 12px;
  background:
    linear-gradient(
      105deg,
      var(--accent) 0%,
      var(--accent) 36%,
      #f3d1d1 48%,
      #ffffff 50%,
      #c63a3a 53%,
      var(--accent) 66%,
      var(--accent-strong) 100%
    );
  background-size: 260% 100%;
  box-shadow:
    0 16px 36px rgba(157, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  color: #e3ddd2;
  cursor: pointer;
  font-family: "Baskervville", Georgia, serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: metallic-shine 4.8s ease-in-out infinite;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 22px 48px rgba(157, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.legal {
  padding: 28px 20px 34px;
  border-top: 1px solid var(--line);
  background: rgba(247, 243, 233, 0.8);
}

.legal nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.legal a {
  color: var(--text);
  font-family: "Baskervville", Georgia, serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.legal a:hover {
  color: var(--accent);
}

@media (max-width: 760px) {
  .optin {
    min-height: auto;
    padding: 42px 16px 54px;
  }

  .brand {
    margin-bottom: 18px;
  }

  .audience-badge {
    margin-bottom: 34px;
    padding: 12px 16px;
    font-size: 0.73rem;
    line-height: 1.45;
  }

  h1 {
    margin-bottom: 20px;
    font-size: clamp(1.19rem, 6.1vw, 1.82rem);
  }

  .lead {
    margin-bottom: 34px;
    font-size: 0.81rem;
  }

  .optin-embed iframe {
    height: 980px;
  }

  .form-group {
    margin-bottom: 22px;
  }

  .submit-button {
    min-height: 58px;
    font-size: 0.94rem;
  }
}
