/* Instagram funnel landing pages: /test (free voice test → App Store) and
   /start (free guide email capture). Layered on css/site.css (tokens, store
   button, Instagram interstitial). Mobile-first: traffic is ~100% phone.
   Owner rules: nothing underlined, body text >= 15px, no tiny eyebrow rows,
   boxes are light fills with dark text, errors are big and obvious. */

.fun {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.fun a { text-decoration: none; }

.fun__bar {
  position: relative;
  z-index: 3;
  padding: 18px 20px 0;
}
.fun__bar .wordmark img { height: 17px; }

.fun__main {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 20px 28px;
  display: flex;
  flex-direction: column;
}

.fun h1 {
  font-size: clamp(2.5rem, 11.4vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.fun__sub {
  margin: 14px 0 0;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--ink-72);
  text-wrap: pretty;
}
.fun__sub strong { color: var(--ink); font-weight: 650; }

/* ---- /test: art bleeds behind the top of the page ---------------------- */
.fun--test .fun__art {
  position: absolute;
  inset: 0 0 auto 0;
  height: min(54svh, 470px);
  z-index: 0;
  overflow: hidden;
}
.fun--test .fun__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 18%;
}
.fun--test .fun__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(11, 10, 13, 0.78) 34%, rgba(11, 10, 13, 0.12) 70%, rgba(11, 10, 13, 0.45) 100%);
}
.fun--test .fun__main { justify-content: flex-end; padding-top: min(19svh, 160px); padding-bottom: 16px; }

.steps3 {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  counter-reset: step;
}
.steps3 li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-72);
}
.steps3 li strong { color: var(--ink); font-weight: 650; }
.steps3 li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.875rem;
  line-height: 0.9;
  color: var(--gold-hi);
}

/* One big App Store button. */
.big-store {
  margin-top: 24px;
  width: 100%;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  padding: 14px 20px;
  border-radius: 14px;
  font-size: 1.1875rem;
  font-weight: 700;
  box-shadow: 0 14px 34px rgba(201, 168, 118, 0.18);
}
.big-store .store-btn__glyph { width: 22px; height: 22px; }
.fun__note {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink-55);
}
.fun__note a { color: var(--gold-hi); font-weight: 650; }
.fun__alt { display: inline-flex; align-items: center; min-height: 44px; }

/* ---- /start ------------------------------------------------------------- */
.fun--start .fun__main { padding-top: 22px; }
.fun--start h1 { font-size: clamp(2.5rem, 11vw, 3.5rem); }

/* Promo image of the guide. Falls back to the 2:3 cover (.promo--cover). */
.promo {
  margin: 22px 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #17151A;
}
.promo img { display: block; width: 100%; height: auto; max-height: 48svh; object-fit: cover; object-position: 50% 45%; }
.promo--cover { background: none; border-radius: 0; overflow: visible; }
.promo--cover img {
  max-height: none;
  object-fit: contain;
  width: 58%;
  max-width: 230px;
  margin: 0 auto;
  border-radius: 6px 10px 10px 6px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.wins { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.wins li {
  position: relative;
  padding-left: 30px;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--ink-72);
}
.wins li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.32em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gold-hi) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%23141317' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.wins strong { color: var(--ink); font-weight: 650; }

.promise { margin: 12px 0 0; font-size: 1rem; line-height: 1.45; font-weight: 600; color: var(--ink); text-align: center; }

.lead-form { margin-top: 24px; }
.lead-form label { display: block; margin: 0 0 8px; font-size: 1rem; font-weight: 650; color: var(--ink); }
.lead-form input[type="email"] {
  width: 100%;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(245, 240, 230, 0.28);
  background: #F5F0E6;
  color: #141317;
  font: 500 1.125rem/1.2 var(--font-ui);
  -webkit-appearance: none;
  appearance: none;
}
.lead-form input[type="email"]::placeholder { color: #6E675E; }
.lead-form input[type="email"]:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.lead-form input[aria-invalid="true"] { border-color: #E07A62; }
.lead-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-gold {
  margin-top: 12px;
  width: 100%;
  min-height: 60px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--gold-hi);
  color: #141317;
  font: 700 1.1875rem/1.2 var(--font-ui);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn-gold:hover { background: #E2C597; }
.btn-gold:active { transform: translateY(1px); }
.btn-gold[disabled] { opacity: 0.7; cursor: progress; }
.btn-gold:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.consent { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--ink-55); }
.consent a { color: var(--gold-hi); font-weight: 650; }

/* Errors: a clear light box with dark text, above the field. */
.alert {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #F8DCD3;
  color: #4A1508;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert[hidden] { display: none; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* Success: light card, dark text, then the App Store next step. */
.done {
  margin-top: 24px;
  padding: 22px 20px;
  border-radius: 16px;
  background: #F3E8D2;
  color: #1D1A16;
}
.done[hidden] { display: none; }
.done h2 { font-size: 2.25rem; line-height: 1; color: #1D1A16; }
.done p { margin: 10px 0 0; font-size: 1.0625rem; line-height: 1.45; color: #3E372F; }
.done p strong { color: #1D1A16; overflow-wrap: anywhere; }
.done__next { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(29, 26, 22, 0.14); }
.done__next h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.625rem; line-height: 1.1; color: #1D1A16; }
.done .big-store { margin-top: 14px; background: var(--gold-hi); color: #141317; box-shadow: none; }
.done .big-store:hover { background: #E2C597; }
.spam-hint {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #DCE8FA;
  color: #14263D;
}
.done .spam-hint p { margin: 0; font-size: 1.0625rem; color: #14263D; }
.done .spam-hint strong { color: #14263D; }

.resend { margin-top: 16px; }
.resend__btn {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  border: 1.5px solid #7A5418;
  border-radius: 12px;
  background: transparent;
  color: #5B3E10;
  font: 700 1.0625rem/1.2 var(--font-ui);
  cursor: pointer;
}
.resend__btn[disabled] { border-color: rgba(29, 26, 22, 0.22); color: #6E675E; cursor: default; }
.done .resend__note { margin: 8px 0 0; font-size: 1rem; color: #3E372F; min-height: 0; }
.done .resend__note:empty { display: none; }

.done__again {
  margin-top: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font: 650 1rem/1.2 var(--font-ui);
  color: #7A5418;
  cursor: pointer;
}

.fun__foot {
  margin-top: auto;
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.9375rem;
  color: var(--ink-55);
}
.fun__foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-55); }

/* The shared Instagram interstitial, adjusted to the owner's type rules. */
.iab-overlay .kicker { font-size: 0.9375rem; letter-spacing: 0.08em; text-transform: none; }
.iab-overlay__dismiss { text-decoration: none; font-weight: 650; min-height: 44px; }

@media (min-width: 720px) {
  .fun__bar { padding: 28px 32px 0; }
  .fun--test .fun__art { height: 62svh; max-height: 640px; }
  .fun--test .fun__main { padding-top: 34svh; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-gold, .btn-gold:active { transition: none; transform: none; }
}
