/* ============================================================
   ANCESTOR MAXXING — Testosterone Masterclass Funnel
   Shared stylesheet
   ============================================================ */

:root {
  --cream: #f7f2e8;
  --cream-deep: #efe9db;
  --card: #e9e6d8;
  --ink: #33362e;
  --olive-dark: #2a3318;
  --olive: #5f6f33;
  --olive-soft: #8fa64a;
  --white: #fffdf8;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Montserrat", -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Top countdown bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--olive-dark);
  color: #f3f0e4;
  text-align: center;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.topbar .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive-soft);
  margin-right: 8px;
  vertical-align: 1px;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.topbar .time { font-weight: 400; letter-spacing: 0.1em; }

/* ---------- Logo ---------- */
.logo {
  display: flex;
  justify-content: center;
  padding: 44px 20px 8px;
}
.logo a { text-decoration: none; color: var(--ink); }
.logo-img {
  display: block;
  height: 96px;
  width: auto;
}
footer .logo-img { height: 76px; }
.logo-mark {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  line-height: 1;
}
.logo-text .top {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 3px;
}
.logo-text .bottom {
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: block;
}
.logo-text .bottom em {
  font-style: normal;
  color: var(--olive);
}
.logo-bar {
  width: 5px;
  height: 40px;
  background: var(--olive);
  margin-top: 1px;
}

/* ---------- Hero ---------- */
.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 34px 24px 40px;
  text-align: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.14;
  letter-spacing: 0.01em;
  color: #3a3d33;
  max-width: 940px;
  margin: 0 auto;
}
.hero h1 .green { color: var(--olive); }
.hero h1 .script {
  font-style: italic;
  letter-spacing: 0.02em;
}
.hero .sub {
  margin: 22px auto 0;
  font-size: clamp(15px, 1.6vw, 18px);
  color: #565a4d;
  letter-spacing: 0.01em;
  max-width: 640px;
}

/* ---------- Video ---------- */
.video-wrap {
  max-width: 880px;
  margin: 38px auto 0;
}
.video-frame {
  border-radius: 22px;
  overflow: hidden;
  background: #1c230f;
  box-shadow: 0 24px 60px -24px rgba(42, 51, 24, 0.45);
}
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #4a5533 0%, #2a3318 60%, #1c230f 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  box-shadow: 0 24px 60px -24px rgba(42, 51, 24, 0.45);
}
.video-placeholder .play {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(95, 111, 51, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 rgba(143, 166, 74, 0.5);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(143, 166, 74, 0.45); }
  70% { box-shadow: 0 0 0 26px rgba(143, 166, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(143, 166, 74, 0); }
}
.video-placeholder .play svg { margin-left: 6px; }
.video-placeholder .note {
  color: rgba(243, 240, 228, 0.65);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- CTA button ---------- */
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 44px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--olive-dark);
  color: #f5f2e6;
  font-family: var(--serif);
  font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: 0.03em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 20px 52px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 14px 34px -14px rgba(42, 51, 24, 0.55);
}
.btn:hover {
  transform: translateY(-2px);
  background: #38431f;
  box-shadow: 0 20px 40px -14px rgba(42, 51, 24, 0.6);
}
.btn.completed {
  background: #4a5b2a;
  cursor: default;
}
.btn.completed:hover { transform: none; }
@media (max-width: 480px) {
  .btn {
    font-size: 17px;
    padding: 16px 28px;
    gap: 9px;
    white-space: nowrap;
  }
  .btn svg { width: 20px; height: 20px; }
}

/* ---------- Typeform / register section ---------- */
.register {
  padding: 84px 24px 96px;
}
.register h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  text-align: center;
  color: #3a3d33;
  margin-bottom: 40px;
}
.form-shell {
  max-width: 1140px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid #ddd8c6;
  border-top: 2px solid #c9c3aa;
  border-radius: 18px;
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 30px 70px -40px rgba(42, 51, 24, 0.35);
}
.form-shell [data-tf-live],
.form-shell iframe {
  width: 100%;
  min-height: 560px;
  border: 0;
  border-radius: 10px;
}
.form-shell [data-tf-live] iframe { min-height: 560px; }
@media (max-width: 640px) {
  .form-shell [data-tf-live],
  .form-shell iframe,
  .form-shell [data-tf-live] iframe { min-height: 460px; }
}
@media (max-width: 640px) {
  .register { padding: 56px 12px 64px; }
  .register h2 { margin-bottom: 26px; }
  .form-shell { border-radius: 14px; padding: 6px; }
}
.form-placeholder {
  min-height: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8a8672;
  border: 2px dashed #d5cfba;
  border-radius: 14px;
  margin: 18px;
  text-align: center;
  padding: 24px;
}
.form-placeholder strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 24px;
  color: #565a4d;
}
.form-placeholder code {
  background: var(--cream-deep);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 90px 24px 110px;
}
.faq-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  align-items: start;
}
.faq-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  color: #3a3d33;
}
.faq-head h2 em {
  display: block;
  color: var(--olive);
}
.faq-head p {
  margin-top: 18px;
  color: #565a4d;
  font-size: 17px;
}
.faq-item {
  background: var(--white);
  border: 1px solid #ddd8c6;
  border-radius: 16px;
  margin-bottom: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}
.faq-item[open] { box-shadow: 0 16px 38px -26px rgba(42, 51, 24, 0.4); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 28px;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 600;
  color: #3a3d33;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none;
  transition: transform 0.25s ease;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .answer {
  padding: 0 28px 26px;
  color: #565a4d;
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Steps cards (ticket confirmation) ---------- */
.steps {
  max-width: 1080px;
  margin: 56px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.step-card {
  background: var(--card);
  border-radius: 22px;
  padding: 56px 40px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-card .icon { color: var(--olive-dark); margin-bottom: 28px; }
.step-card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 30px);
  color: #3a3d33;
  margin-bottom: 16px;
}
.step-card p {
  color: #565a4d;
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 34px;
}
.step-card .btn {
  font-size: clamp(18px, 2vw, 22px);
  padding: 16px 44px;
  margin-top: auto;
}

/* ---------- Email provider modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 10, 0.62);
  backdrop-filter: blur(7px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 48px;
  width: 100%;
  max-width: 560px;
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal h3 {
  font-family: var(--sans);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  color: #1c1e16;
  margin-bottom: 28px;
}
.provider {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 13px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: #1c1e16;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
  transition: background 0.15s ease;
}
.provider:hover { background: #f3f1e9; }
.provider .p-icon {
  flex: none;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Footer ---------- */
footer {
  padding: 70px 24px 60px;
  text-align: center;
}
footer .logo { padding: 0 0 22px; }
footer .links {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 20px;
}
footer .links a {
  color: #3a3d33;
  font-size: 15px;
  text-decoration: none;
}
footer .links a:hover { text-decoration: underline; }
footer .copyright {
  color: #6a6e5e;
  font-size: 14px;
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 30px 24px 90px;
}
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  color: #3a3d33;
  text-align: center;
  margin-bottom: 8px;
}
.legal .meta {
  text-align: center;
  color: #6a6e5e;
  font-size: 15px;
  margin-bottom: 48px;
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: #3a3d33;
  margin: 40px 0 12px;
}
.legal p, .legal li {
  color: #4a4e40;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal ul { padding-left: 24px; margin-bottom: 12px; }
.legal .back {
  display: inline-block;
  margin-top: 48px;
  color: var(--olive);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal .back:hover { text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .faq-inner { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr; }
  .modal { padding: 34px 26px; }
}
