/* Founders EQ — landing, persona gate, spotlight tours (v3) */

:root {
  --landing-bg: linear-gradient(165deg, #0a0806 0%, #151210 42%, #0f0c09 100%);
  --landing-glow: radial-gradient(ellipse 80% 55% at 50% 120%, rgba(201, 168, 76, 0.14), transparent 72%);
}

html.feq-landing-active,
html.feq-landing-active body {
  min-height: 100%;
  height: auto;
  overflow-x: hidden;
}

html.feq-landing-active body {
  flex-direction: column;
  align-items: stretch;
}

html.feq-landing-active #feq-landing.is-visible {
  flex: 1 0 auto;
  width: 100%;
}

#feq-landing {
  display: none;
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--landing-bg);
  color: var(--txt, #e8e3d5);
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}

#feq-landing.is-visible {
  display: flex;
}

#feq-landing .feq-landing-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 28px 72px;
  background-image: var(--landing-glow);
}

#feq-landing .feq-landing-hero {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.feq-landing-q {
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1.35rem, 4.2vw, 2rem);
  font-weight: 500;
  color: var(--gold, #c9a84c);
  line-height: 1.35;
  min-height: 3.2em;
  margin-bottom: 28px;
}

.feq-landing-answer {
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-style: italic;
  line-height: 1.75;
  color: rgba(232, 227, 213, 0.92);
  margin-bottom: 22px;
}

.feq-landing-attrib {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 13px;
  color: rgba(201, 168, 76, 0.85);
  letter-spacing: 0.04em;
}

.feq-landing-tag {
  margin-top: 40px;
  font-size: 15px;
  color: var(--txt2, #9a9078);
  opacity: 0;
  transition: opacity 1.1s ease;
}

.feq-landing-tag.is-in {
  opacity: 1;
}

.feq-landing-cta {
  margin-top: 22px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  border: 0.5px solid rgba(201, 168, 76, 0.45);
  border-radius: 99px;
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold, #c9a84c);
  cursor: pointer;
  opacity: 0;
  transition: opacity 1s ease, background 0.2s, border-color 0.2s;
}

.feq-landing-cta.is-in {
  opacity: 1;
}

.feq-landing-cta:hover {
  background: rgba(201, 168, 76, 0.2);
  border-color: var(--gold, #c9a84c);
}

.feq-landing-strips {
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.22);
}

.feq-landing-strip {
  max-width: 720px;
  margin: 0 auto;
  padding: 44px 28px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
}

.feq-landing-strip h2 {
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--txt, #e8e3d5);
  margin-bottom: 10px;
}

.feq-landing-strip p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--txt2, #9a9078);
}

.feq-landing-footer {
  padding: 48px 28px 64px;
  text-align: center;
}

.feq-landing-footer .feq-landing-cta {
  opacity: 1;
}

.feq-landing-email {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.feq-landing-email input {
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--txt, #e8e3d5);
  font-size: 13px;
}

/* Persona overlay — blocks entire viewport until a choice */
#feq-persona-root {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  max-height: 100dvh;
  box-sizing: border-box;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(12, 11, 9, 0.97), #0f0e0b);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px 32px;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
}

#feq-persona-root.is-open {
  display: flex;
}

/* Tour layer above persona (they never stack; persona dismissed before tour opens) */
#feq-tour-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  pointer-events: none;
}

.feq-tour-dim {
  position: fixed;
  inset: 0;
  background: rgba(10, 9, 7, 0.78);
  pointer-events: auto;
  z-index: 10001;
  -webkit-clip-path: none;
  clip-path: none;
}

/* Legacy hole node kept for DOM structure; tour uses uniform dim overlay (spotlight cutout disabled). */
.feq-tour-hole {
  position: fixed;
  border-radius: 10px;
  box-shadow: 0 0 0 5000px rgba(10, 9, 7, 0.78);
  pointer-events: none;
  transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s;
  z-index: 10002;
  display: none !important;
}

#feq-tour-root.is-open {
  display: block;
  pointer-events: auto;
}

.feq-persona-h1 {
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: clamp(1.5rem, 4vw, 2rem);
  text-align: center;
  color: var(--txt, #e8e3d5);
}

.feq-persona-sub {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: var(--txt2, #9a9078);
  max-width: 460px;
}

.feq-persona-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  max-width: 1080px;
  margin-top: 36px;
}

.feq-persona-card {
  width: min(340px, 100%);
  border: 0.5px solid rgba(201, 168, 76, 0.22);
  border-radius: 12px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feq-persona-card h3 {
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: 1.2rem;
  color: var(--txt, #e8e3d5);
}

.feq-persona-card p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt2, #9a9078);
  flex: 1;
}

.feq-persona-price {
  font-size: 12.5px;
  color: var(--gold, #c9a84c);
  font-weight: 500;
}

.feq-persona-card button {
  margin-top: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 0.5px solid rgba(201, 168, 76, 0.4);
  background: rgba(201, 168, 76, 0.12);
  color: var(--gold, #c9a84c);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}

.feq-persona-card button:hover {
  background: rgba(201, 168, 76, 0.2);
}

.feq-persona-foot {
  margin-top: 28px;
  font-size: 12px;
  color: var(--txt3, #5a5345);
  text-align: center;
}

.feq-persona-skip {
  margin-top: 16px;
  font-size: 12px;
  color: var(--txt3, #5a5345);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: none;
}

html.feq-persona-blocking body {
  overflow: hidden;
}

body:not(.feq-persona-teacher) [data-persona="teacher-only"] {
  display: none !important;
}

#feq-tour-root.feq-tour--mobile .feq-tour-hole {
  display: none;
}

#feq-tour-root.feq-tour--mobile .feq-tour-dim {
  background: rgba(10, 9, 7, 0.55);
}

.feq-tour-card {
  position: fixed;
  z-index: 10003;
  width: 280px;
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  background: #12100d;
  border: 0.5px solid rgba(201, 168, 76, 0.28);
  border-radius: 12px;
  padding: 18px 18px 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
}

.feq-tour-card .feq-tour-step {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold, #c9a84c);
  margin-bottom: 8px;
}

.feq-tour-card .feq-tour-title {
  font-family: var(--serif, "Playfair Display", Georgia, serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--txt, #e8e3d5);
  margin-bottom: 8px;
}

.feq-tour-card .feq-tour-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--txt2, #9a9078);
}

.feq-tour-card .feq-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.feq-tour-card button {
  font-family: var(--sans, "Inter", system-ui, sans-serif);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 0.5px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: var(--txt2, #9a9078);
}

.feq-tour-card button.feq-tour-primary {
  border-color: rgba(201, 168, 76, 0.45);
  background: rgba(201, 168, 76, 0.15);
  color: var(--gold, #c9a84c);
  font-weight: 600;
}

.feq-tour-skip-demo {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--txt3, #5a5345);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--sans, "Inter", system-ui, sans-serif);
}

.feq-tour-skip-demo:hover {
  color: var(--txt2, #9a9078);
}

.feq-tour-arrow {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 10055;
  pointer-events: none;
  border: none;
  box-sizing: border-box;
}

.feq-tour-arrow.is-up {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid rgba(201, 168, 76, 0.92);
  border-top: 0;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.35));
}

.feq-tour-arrow.is-down {
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid rgba(201, 168, 76, 0.92);
  border-bottom: 0;
  filter: drop-shadow(0 -1px 1px rgba(0, 0, 0, 0.35));
}

.feq-tour-arrow.is-left {
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid rgba(201, 168, 76, 0.92);
  border-left: 0;
  filter: drop-shadow(-1px 0 1px rgba(0, 0, 0, 0.35));
}

.feq-tour-arrow.is-right {
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid rgba(201, 168, 76, 0.92);
  border-right: 0;
  filter: drop-shadow(1px 0 1px rgba(0, 0, 0, 0.35));
}

.app-hidden {
  display: none !important;
}

@media (max-width: 768px) {
  .feq-tour-card {
    left: 16px !important;
    right: 16px !important;
    bottom: 24px !important;
    top: auto !important;
    width: auto !important;
    max-width: none;
  }
}
