/* Minimal Instagram freebie opt-in: image first, almost no copy. */

.optin-page {
  --cream: #faf8f4;
  --ink: #1e1a14;
  --body: #3d352a;
  --muted: #6b5e4a;
  --line: rgba(45, 74, 53, 0.14);
  --green: #3d6b4a;
  --display: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

body.optin-page {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

.optin {
  box-sizing: border-box;
  max-width: 28rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.optin__brand {
  margin: 0 0 1.15rem;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.optin__image {
  overflow: hidden;
  margin: 0 0 1.35rem;
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(30, 26, 20, 0.12);
}

.optin__image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.optin__image--poster img {
  aspect-ratio: auto;
  object-fit: contain;
}

.optin__title {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.7rem, 6vw, 2.15rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-align: center;
}

.optin__line {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.45;
  text-align: center;
}

.optin__points {
  width: fit-content;
  margin: 0 auto 1.35rem;
  padding: 0;
  list-style: none;
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.5;
  text-align: left;
}

.optin__points li {
  position: relative;
  padding: 0.22rem 0 0.22rem 1rem;
}

.optin__points li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.optin__form {
  display: block;
  width: 100%;
}

.optin__form iframe,
.optin__form > div {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

.optin-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
}

.optin-form input {
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
}

.optin-form input::placeholder {
  color: #9c8e7a;
}

.optin-form input:focus {
  outline: 2px solid rgba(61, 107, 74, 0.35);
  outline-offset: 1px;
}

.optin-form button {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 28px;
  background: #2c3f34;
  color: #fff;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.optin-form button:hover {
  background: #24352c;
}

.optin-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.optin-form__error {
  margin: 0;
  color: #8a3a2a;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

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

.optin__join {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.optin__legal {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

@media (min-width: 720px) {
  .optin {
    padding-top: 2.5rem;
  }
}
