/* ============================================
   Saint VIII - Saints Society
   VSL Funnel · Slide System
   Shares the lead-magnet design system 1:1
   ============================================ */

:root {
  --bg-dark: #08080A;
  --bg-elev: #0F0F13;
  --bg-card: #16161C;
  --bg-input: #0C0C10;

  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-primary: #F4F4F1;
  --text-secondary: #A7A7AE;
  --text-muted: #6C6C74;
  --text-disclaimer: #54545C;

  --accent: #EAECF1;
  --accent-2: #BCC2CC;
  --accent-deep: #8A91A0;
  --accent-glow: rgba(196, 208, 230, 0.35);
  --accent-grad: linear-gradient(135deg, #FFFFFF 0%, #C7CCD6 55%, #9AA1AF 100%);

  --error: #FF5C61;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 24px 60px -20px rgba(0,0,0,0.8);

  --max-width: 940px;
  --max-width-narrow: 620px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { -webkit-text-size-adjust: 100%; overflow: hidden; height: 100%; }

body {
  font-family: 'Archivo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  height: 100%;
  position: fixed;
  width: 100%;
}

/* Atmospheric background */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 50% -8%, rgba(150, 170, 210, 0.16), transparent 60%),
    radial-gradient(700px 700px at 85% 12%, rgba(120, 130, 160, 0.08), transparent 55%),
    var(--bg-dark);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* --- Progress Bar --- */
.progress-bar {
  position: fixed; top: 0; left: 0; right: 0; height: 3px;
  background: rgba(255,255,255,0.06); z-index: 100; opacity: 0;
  transition: opacity 0.3s ease;
}
.progress-bar.visible { opacity: 1; }
.progress-fill {
  height: 100%; background: var(--accent-grad); width: 33.3%;
  transition: width 0.5s var(--ease); border-radius: 0 2px 2px 0;
  box-shadow: 0 0 14px var(--accent-glow);
}

/* --- Funnel / Slide System --- */
.funnel { position: relative; width: 100%; height: 100%; overflow: hidden; }

.slide {
  position: absolute; inset: 0; display: block;
  opacity: 0; transform: translateX(60px); pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.slide.active { opacity: 1; transform: translateX(0); pointer-events: auto; z-index: 2; }
.slide.exit-left { opacity: 0; transform: translateX(-60px); pointer-events: none; z-index: 1; }

.slide-inner {
  width: 100%; min-height: 100%;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 24px 100px;
}
.slide-inner--scroll { flex-direction: column; align-items: center; padding-top: 54px; padding-bottom: 0; }

.slide-content { width: 100%; max-width: var(--max-width); text-align: center; }
.slide-content--narrow { max-width: var(--max-width-narrow); }

/* --- Brand mark inside slides --- */
.slide-brand { display: flex; justify-content: center; margin-bottom: 26px; }
.slide-brand img {
  height: 84px; width: auto;
  filter: drop-shadow(0 6px 28px rgba(180, 200, 235, 0.18));
}

/* --- Fade-up Animations --- */
.slide.active .fade-up { animation: fadeInUp 0.6s ease forwards; opacity: 0; }
.slide.active .fade-up:nth-child(1) { animation-delay: 0.05s; }
.slide.active .fade-up:nth-child(2) { animation-delay: 0.15s; }
.slide.active .fade-up:nth-child(3) { animation-delay: 0.25s; }
.slide.active .fade-up:nth-child(4) { animation-delay: 0.35s; }
.slide.active .fade-up:nth-child(5) { animation-delay: 0.45s; }
.slide.active .fade-up:nth-child(6) { animation-delay: 0.55s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Typography --- */
.pre-headline {
  font-size: clamp(0.82rem, 1.8vw, 0.95rem);
  font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-2); text-align: center; line-height: 1.5; margin-bottom: 18px;
}
.headline {
  font-weight: 800; font-size: clamp(2rem, 5.4vw, 3.5rem);
  line-height: 1.08; text-align: center; color: var(--text-primary);
  margin-bottom: 18px; letter-spacing: -0.02em;
}
.headline .highlight {
  color: #6FA8FF;
  -webkit-text-fill-color: #6FA8FF;
}

.subheadline {
  font-size: clamp(1.02rem, 2.2vw, 1.28rem); font-weight: 400; color: var(--text-secondary);
  text-align: center; line-height: 1.6; max-width: 600px; margin: 0 auto 34px;
}

/* --- Video Embed --- */
.video-wrapper {
  position: relative; width: 100%; max-width: var(--max-width); margin: 0 auto 40px;
  border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-card);
  background: #050506;
}
.video-wrapper wistia-player { display: block; width: 100%; }

/* Placeholder when no Wistia ID yet */
.video-placeholder {
  position: relative; width: 100%; padding-bottom: 56.25%;
  background:
    radial-gradient(circle at 50% 45%, rgba(196,208,230,0.10), transparent 60%),
    linear-gradient(135deg, #0c0c10 0%, #15151b 50%, #0c0c10 100%);
}
.video-placeholder .play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-grad); box-shadow: 0 12px 40px -10px var(--accent-glow);
  transition: transform 0.2s ease;
}
.video-placeholder:hover .play-icon { transform: translate(-50%, -50%) scale(1.06); }
.video-placeholder .play-icon svg { width: 30px; height: 30px; margin-left: 4px; color: #0A0A0C; }
.video-placeholder .ph-text {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  font-size: 0.72rem; color: var(--text-muted); letter-spacing: 0.14em; text-transform: uppercase;
}

/* --- CTA Button (platinum) --- */
.cta-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; max-width: var(--max-width-narrow); padding: 24px 24px;
  font-family: 'Archivo', sans-serif; font-size: 1.32rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.01em;
  color: #0A0A0C; background: var(--accent-grad);
  border: none; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  animation: btn-float 2.6s ease-in-out infinite;
}
@keyframes btn-float {
  0%, 100% { transform: translateY(0); box-shadow: 0 8px 26px -10px var(--accent-glow); }
  50% { transform: translateY(-4px); box-shadow: 0 16px 40px -12px var(--accent-glow); }
}
.cta-btn:hover { animation: none; transform: translateY(-5px); filter: brightness(1.05); box-shadow: 0 18px 46px -12px var(--accent-glow); }
.cta-btn:active { transform: translateY(0) scale(0.985); animation: none; }
.cta-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; animation: none; }

.cta-btn--community {
  color: var(--text-primary); background: transparent;
  border: 1.5px solid var(--border-strong); animation: none;
}
.cta-btn--community:hover { border-color: var(--accent-2); background: rgba(255,255,255,0.03); box-shadow: none; filter: none; }

/* --- Question-by-Question Form --- */
#lead-form { position: relative; width: 100%; min-height: 300px; }

.tf-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 30px; }
.tf-nav-btn {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1.5px solid var(--border-strong); border-radius: 50%;
  background: var(--bg-card); color: var(--text-secondary); cursor: pointer;
  transition: all 0.2s ease; padding: 0;
}
.tf-nav-btn:hover:not(:disabled) { border-color: var(--accent-2); color: var(--accent); background: rgba(255,255,255,0.05); }
.tf-nav-btn:disabled { opacity: 0.25; cursor: not-allowed; }

.tf-counter { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0.06em; }
.tf-counter-sep { color: var(--border-strong); margin: 0 2px; }

.tf-question {
  position: absolute; top: 40px; left: 0; right: 0;
  opacity: 0; transform: translateY(40px); pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  text-align: left;
}
.tf-question.active { opacity: 1; transform: translateY(0); pointer-events: auto; position: relative; top: 0; }
.tf-question.exit-up { opacity: 0; transform: translateY(-40px); pointer-events: none; }
.tf-question.exit-down { opacity: 0; transform: translateY(40px); pointer-events: none; }
.tf-question.enter-up { opacity: 0; transform: translateY(-40px); pointer-events: none; transition: none; }

.tf-label {
  display: block; font-weight: 800; font-size: clamp(1.5rem, 4.4vw, 2rem);
  color: var(--text-primary); margin-bottom: 8px; line-height: 1.2; letter-spacing: -0.02em;
}
.tf-hint { font-size: clamp(0.95rem, 2vw, 1.05rem); color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; }

.tf-input {
  width: 100%; padding: 0 0 14px;
  font-family: 'Archivo', sans-serif; font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 500;
  color: var(--text-primary); background: transparent;
  border: none; border-bottom: 2px solid var(--border-strong); border-radius: 0;
  transition: border-color 0.25s ease; outline: none;
}
.tf-input::placeholder { color: #4F4F58; font-weight: 400; }
.tf-input:focus { border-bottom-color: var(--accent-2); }
.tf-input.error { border-bottom-color: var(--error); }

.form-error { font-size: 0.8rem; color: var(--error); margin-top: 5px; display: none; }
.form-error.visible { display: block; }

.tf-next {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 14px 28px;
  font-family: 'Archivo', sans-serif; font-size: 1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em;
  color: #0A0A0C; background: var(--accent-grad); border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease; box-shadow: 0 8px 26px -10px var(--accent-glow);
}
.tf-next:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 14px 36px -12px var(--accent-glow); }
.tf-next:active { transform: scale(0.97); }
.tf-next--submit { width: 100%; justify-content: center; padding: 24px 24px; font-size: 1.32rem; animation: btn-float 2.6s ease-in-out infinite; }
.tf-next--submit:hover { animation: none; }
.tf-next:disabled { opacity: 0.7; cursor: not-allowed; transform: none; animation: none; }

.tf-key-hint { font-size: 0.75rem; color: var(--text-disclaimer); margin-top: 12px; }
.tf-key-hint strong {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px;
  background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; color: var(--text-secondary);
}

.consent { font-size: 0.68rem; color: var(--text-disclaimer); margin-top: 16px; line-height: 1.5; }

/* --- Multiple Choice --- */
.tf-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.tf-choice {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 17px 20px;
  font-family: 'Archivo', sans-serif; font-size: 1rem; font-weight: 500;
  color: var(--text-primary); background: var(--bg-card);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm);
  cursor: pointer; transition: all 0.2s ease; text-align: left; line-height: 1.4;
}
.tf-choice:hover { border-color: var(--accent-2); background: rgba(255,255,255,0.05); }
.tf-choice.selected { border-color: var(--accent); background: rgba(196,208,230,0.10); }
.tf-choice-key {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; font-size: 0.8rem; font-weight: 800;
  color: var(--text-secondary); background: var(--bg-input);
  border: 1px solid var(--border-strong); border-radius: 4px; flex-shrink: 0;
}
.tf-choice.selected .tf-choice-key { background: var(--accent-grad); color: #0A0A0C; border-color: transparent; }

/* --- Textarea --- */
.tf-textarea {
  resize: none; min-height: 1.5em; max-height: 200px; padding: 0 0 10px; line-height: 1.4; overflow: hidden;
  border: none; border-bottom: 2px solid var(--border-strong); border-radius: 0;
  font-family: 'Archivo', sans-serif; font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 500;
  color: var(--text-primary); background: transparent; outline: none; width: 100%; display: block;
  transition: border-color 0.25s ease;
  vertical-align: bottom;
}
.tf-textarea:focus { border-bottom-color: var(--accent-2); }
.tf-textarea.error { border-bottom-color: var(--error); }
.tf-textarea::placeholder { color: #4F4F58; font-weight: 400; }

/* --- Contact Fields --- */
.tf-field { margin-bottom: 20px; text-align: left; }
.tf-field-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.tf-field .tf-input { font-size: clamp(1rem, 2.5vw, 1.2rem); }

/* intl-tel-input (dark) - align dial code with the underline-style input */
.iti { width: 100%; display: block; }
/* v24 uses .iti__selected-country (older builds used .iti__selected-flag).
   Bottom-align the dial code so it shares the typed number's baseline. */
.iti__selected-flag,
.iti__selected-country,
.iti__selected-country-primary {
  align-items: flex-end;
  padding-bottom: 14px;
  background: transparent;
  height: 100%;
}
.iti__selected-dial-code {
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  color: var(--text-primary);
  margin-left: 6px;
  line-height: 1.2;
}
/* Force the typed number and the dial code to the same size + baseline
   (beats base .tf-input once intl-tel-input wraps the input in .iti) */
.tf-field .iti .tf-input,
.tf-field .iti__selected-dial-code { font-size: clamp(1rem, 2.5vw, 1.2rem); }
.tf-field .iti .tf-input { line-height: 1.2; }
.iti__country-list { background: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-primary); box-shadow: 0 12px 40px rgba(0,0,0,0.6); text-align: left; }
.iti__country.iti__highlight { background: rgba(255,255,255,0.06); }
.iti__dial-code { color: var(--text-muted); }

/* --- Confirmation --- */
.confirm-icon {
  width: 76px; height: 76px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: radial-gradient(circle at 50% 35%, rgba(196,208,230,0.18), transparent 70%), var(--bg-card);
  box-shadow: var(--shadow-card);
}
.confirm-icon svg { width: 38px; height: 38px; animation: checkDraw 0.6s 0.2s var(--ease) forwards; opacity: 0; }
@keyframes checkDraw { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }

.confirm-headline {
  font-weight: 800; font-size: clamp(2rem, 5.4vw, 3.4rem); color: var(--text-primary);
  margin-bottom: 12px; letter-spacing: -0.02em; line-height: 1.1;
}
.confirm-headline .highlight {
  color: #6FA8FF;
  -webkit-text-fill-color: #6FA8FF;
}
.confirm-sub { font-size: clamp(1.02rem, 2.2vw, 1.28rem); color: var(--text-secondary); line-height: 1.6; margin-bottom: 0; }

/* --- Calendar Embed --- */
.calendar-embed { width: 100%; max-width: var(--max-width); margin: 18px auto 28px; }
.calendar-frame {
  width: 100%;
  min-height: 720px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
}
.calendar-fallback {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.calendar-fallback a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.calendar-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 64px 24px; background: var(--bg-card); border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md); text-align: center;
}
.calendar-placeholder p { font-size: 1rem; color: var(--text-secondary); font-weight: 600; }
.calendar-placeholder-hint { font-size: 0.8rem !important; color: var(--text-disclaimer) !important; font-weight: 400 !important; }

/* --- Community --- */
.community-headline { font-weight: 800; font-size: clamp(1.4rem, 3.4vw, 1.85rem); color: var(--text-primary); margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.2; }
.community-sub { font-size: clamp(1.02rem, 2.2vw, 1.24rem); color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
.community-emblem { height: 78px; width: auto; margin: 0 auto 16px; filter: drop-shadow(0 6px 26px rgba(180,200,235,0.18)); }

.divider { width: 56px; height: 1px; background: var(--border-strong); margin: 38px auto; }

.socials-label { font-weight: 700; font-size: 0.82rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 18px; }
.socials-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.social-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 100px;
  background: var(--bg-card); border: 1px solid var(--border);
  font-size: 0.92rem; font-weight: 500; color: var(--text-secondary); transition: all 0.2s ease;
}
.social-pill svg { width: 17px; height: 17px; }
.social-pill:hover { color: var(--text-primary); border-color: var(--accent-2); background: rgba(255,255,255,0.04); transform: translateY(-2px); }

/* --- Compliance Footer --- */
.compliance-footer {
  width: 100%; margin-top: 72px; background: #050506; border-top: 1px solid var(--border);
  color: var(--text-muted); padding: 40px 24px; font-size: 0.75rem; line-height: 1.7; text-align: center;
}
.compliance-container { max-width: 660px; margin: 0 auto; }
.compliance-footer .copyright { color: var(--text-secondary); margin-bottom: 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; }
.compliance-footer .disclaimer { margin-top: 12px; color: var(--text-disclaimer); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .slide-inner { padding: 44px 20px 80px; }
  .slide-inner--scroll { padding-top: 28px; }
  .slide-brand img { height: 68px; }
  .headline { font-size: clamp(1.8rem, 7.2vw, 2.3rem); }
  .subheadline { font-size: 1rem; margin-bottom: 28px; }
  .video-wrapper { max-width: 100%; margin-bottom: 32px; }
  .cta-btn { padding: 21px 24px; font-size: 1.18rem; }
  .tf-next--submit { padding: 21px 24px; font-size: 1.18rem; }
}

@media (max-width: 480px) {
  .slide-inner { padding: 36px 16px 72px; }
  .slide-inner--scroll { padding-top: 22px; }
  .slide-brand img { height: 60px; }
  .headline { font-size: 1.7rem; }
  .cta-btn { padding: 19px 24px; font-size: 1.1rem; }
  .tf-next--submit { padding: 19px 24px; font-size: 1.1rem; }
  .tf-input { font-size: 1.1rem; }
  .socials-row { gap: 10px; }
  .social-pill { padding: 10px 18px; font-size: 0.85rem; }
}

@supports (-webkit-touch-callout: none) {
  body { height: -webkit-fill-available; }
}
