/* ============================================================
   THE IDENTITY PROTOCOL — fixed single-screen site
   No page scrolling: the nav buttons swap views in place.
   Warm black + gold. Archivo (headings) + Inter (body).
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101013;
  --bg-3: #08080a;
  --panel: #0e0d10;
  --gold: #d9a441;
  --gold-2: #b8862c;
  --gold-bright: #f2cf72;
  --gold-soft: rgba(217, 164, 65, 0.32);
  --gold-faint: rgba(217, 164, 65, 0.10);
  --text: #f4f2ee;
  --text-soft: #a19d95;
  --line: rgba(255, 255, 255, 0.08);

  --head: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --maxw: 1240px;
  --announce-h: 38px;
  --nav-h: 72px;
  --foot-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;                 /* the page itself never scrolls */
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  cursor: none;
}
@media (hover: none), (pointer: coarse) { body { cursor: auto; } }
::selection { background: var(--gold-soft); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

/* warm ambient glow */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120vw 80vh at 78% 12%, rgba(217, 164, 65, 0.13), transparent 55%),
    radial-gradient(90vw 70vh at 12% 90%, rgba(217, 164, 65, 0.05), transparent 60%);
}
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#cursor-light {
  position: fixed; top: 0; left: 0; width: 440px; height: 440px; margin: -220px 0 0 -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,164,65,0.12) 0%, rgba(217,164,65,0.04) 40%, transparent 70%);
  mix-blend-mode: screen; pointer-events: none; z-index: 80; opacity: 0; transition: opacity .6s ease; will-change: transform;
}
@media (hover: none), (pointer: coarse) { #cursor-light { display: none; } }

/* ---------- shared type ---------- */
.h-display { font-family: var(--head); font-weight: 800; line-height: 1.02; letter-spacing: -0.01em; text-transform: uppercase; }
.eyebrow { font-family: var(--head); font-size: .72rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.accent-rule { display: block; width: 66px; height: 3px; margin-top: 1.3rem; background: linear-gradient(90deg, var(--gold), transparent); border-radius: 2px; }
.accent-rule.center { margin: 1.3rem auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }

.reveal { will-change: transform, opacity; }
html.js .reveal { opacity: 0; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--head); font-weight: 600; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .95rem 1.9rem; border-radius: 4px; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .35s ease, background .35s ease, color .35s ease, border-color .35s ease;
}
.btn svg { flex: 0 0 auto; }
.btn-gold { background: linear-gradient(135deg, var(--gold-bright), var(--gold-2)); color: #1a1206; box-shadow: 0 8px 30px rgba(217,164,65,.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(217,164,65,.42); }
.btn-outline { background: transparent; border-color: var(--gold-soft); color: var(--gold-bright); }
.btn-outline:hover { background: rgba(217,164,65,.1); border-color: var(--gold); color: #fff; }
.btn-ghost { background: rgba(255,255,255,.02); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold-soft); color: var(--gold-bright); }
.btn-lg { padding: 1.1rem 2.7rem; font-size: .9rem; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ============================================================
   CHROME: announcement, nav, footer bar
   ============================================================ */
.announce {
  flex: 0 0 var(--announce-h); position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bg-3); border-bottom: 1px solid var(--line);
  font-size: .76rem; color: var(--text-soft); padding: 0 1rem; text-align: center;
}
.announce-star { color: var(--gold); }

.nav {
  flex: 0 0 var(--nav-h); position: relative; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1.25rem;
  padding: 0 clamp(1.1rem, 4vw, 3rem);
  background: rgba(10,10,11,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; line-height: .92; font-family: var(--head); font-weight: 800; letter-spacing: .02em; text-align: left; }
.brand .brand-1 { font-size: .5rem; letter-spacing: .34em; color: var(--text-soft); font-weight: 600; }
.brand .brand-2 { font-size: 1rem; color: var(--text); }
.brand .brand-3 { font-size: 1rem; color: var(--gold); margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: clamp(.7rem, 1.8vw, 1.7rem); }
.nav-links button {
  position: relative; font-size: .8rem; font-weight: 500; color: var(--text-soft);
  padding: .45rem .1rem; transition: color .3s ease;
}
.nav-links button:hover { color: var(--text); }
.nav-links button.active { color: var(--text); }
.nav-links button.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.nav-links button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
.nav-cta { padding: .68rem 1.4rem; font-size: .74rem; }
/* "Get the Book" inside the menu exists for mobile only (desktop has the outlined CTA) */
.nav-links .menu-offer { display: none; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }

.footbar {
  flex: 0 0 var(--foot-h); position: relative; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 1.6rem;
  border-top: 1px solid var(--line); background: var(--bg-3);
  font-size: .74rem; color: var(--text-soft);
}
.foot-link:hover { color: var(--gold); }

/* ============================================================
   STAGE + VIEWS
   ============================================================ */
main.stage { position: relative; z-index: 2; flex: 1 1 auto; min-height: 0; }

.view {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1.2rem, 3vh, 2.5rem) clamp(1.1rem, 4vw, 3rem);
  overflow-y: auto;                             /* safety valve inside the panel only */
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .38s ease, transform .38s ease, visibility 0s linear .38s;
}
.view.active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.view:focus { outline: none; }

/* thin gold scrollbar for any internal overflow */
.view::-webkit-scrollbar { width: 6px; }
.view::-webkit-scrollbar-track { background: transparent; }
.view::-webkit-scrollbar-thumb { background: rgba(217,164,65,.25); border-radius: 3px; }

.view-inner { width: 100%; max-width: var(--maxw); margin: auto; }
.view-inner.col { display: flex; flex-direction: column; justify-content: center; }
.view-inner.narrow { max-width: 860px; }
.center-text { text-align: center; }

.section-head { text-align: center; max-width: 780px; margin: 0 auto 2.2rem; }
.section-head .eyebrow { display: inline-block; margin-bottom: .9rem; }
.section-title { font-size: clamp(1.8rem, 3.8vw, 3rem); }
.section-sub { color: var(--text-soft); font-size: clamp(.95rem, 1.3vw, 1.08rem); margin-top: 1.3rem; line-height: 1.65; }

/* ============================================================
   HOME
   ============================================================ */
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero-copy { max-width: 620px; }
.hero-copy .eyebrow { display: block; margin-bottom: 1.1rem; }
.hero-title { font-size: clamp(2.3rem, 4.6vw, 4.4rem); font-weight: 900; }
.hero-title .tw { display: block; color: var(--text); }
.hero-title .tg { display: block; color: var(--gold); }
.hero-lead { color: var(--text-soft); font-size: clamp(.95rem, 1.3vw, 1.12rem); line-height: 1.7; margin-top: 1.5rem; max-width: 44ch; }
.hero-actions { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }
.social-proof { display: flex; align-items: center; gap: 1rem; margin-top: 2.1rem; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars .av { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -12px; box-shadow: inset 0 0 0 1px var(--gold-soft); }
.avatars .av:first-child { margin-left: 0; }
.avatars .a1 { background: linear-gradient(135deg,#4a3d28,#20180f);} .avatars .a2 { background:linear-gradient(135deg,#403528,#191510);} .avatars .a3 { background:linear-gradient(135deg,#4d4030,#211a12);} .avatars .a4 { background:linear-gradient(135deg,#443722,#1c160e);}
.proof-text { font-size: .84rem; color: var(--text-soft); }
.stars { color: var(--gold); letter-spacing: 2px; font-size: .9rem; }

.hero-book { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; }
.book-glow { position: absolute; width: 92%; height: 92%; left: 50%; top: 47%; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(217,164,65,.2), transparent 62%); filter: blur(10px); }
.book-stage { position: relative; z-index: 2; width: 100%; max-width: min(400px, 30vw); margin: 0 auto; }
.book-stage img {
  width: 100%; filter: drop-shadow(0 40px 80px rgba(0,0,0,.85));
  -webkit-mask-image: radial-gradient(ellipse 84% 88% at 50% 46%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 84% 88% at 50% 46%, #000 60%, transparent 100%);
  mix-blend-mode: lighten;
}

/* ============================================================
   ABOUT — statement + pillars
   ============================================================ */
.about-body { max-width: 700px; margin: 1.6rem auto 0; color: var(--text-soft); font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.7; }
.pillars-inner { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 1.2rem; }
.pillar { padding: 0 1.8rem; border-left: 1px solid var(--line); }
.pillar:first-child { border-left: none; padding-left: 0; }
.pillar-ico { color: var(--gold); display: inline-flex; margin-bottom: .9rem; }
.pillar h3 { font-family: var(--head); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }
.pillar p { color: var(--text-soft); font-size: .88rem; line-height: 1.55; }

/* ============================================================
   LEARN — 8 cards
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.card { background: var(--panel); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; gap: .45rem; transition: background .4s ease; }
.card:hover { background: #141317; }
.card .n { font-family: var(--head); font-weight: 700; font-size: .78rem; letter-spacing: .2em; color: var(--gold); }
.card .name { font-family: var(--head); font-weight: 700; font-size: clamp(1rem,1.5vw,1.25rem); text-transform: uppercase; }
.card .line { color: var(--text-soft); font-size: .84rem; line-height: 1.5; }

/* ============================================================
   SELF-CHECK
   ============================================================ */
.check-inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.q-figure img { width: 100%; max-height: 62vh; object-fit: contain; filter: drop-shadow(0 20px 60px rgba(0,0,0,.7)); }
.q-content .eyebrow { display: inline-block; margin-bottom: .9rem; }
.q-title { font-size: clamp(1.5rem, 2.7vw, 2.3rem); font-weight: 800; text-transform: none; line-height: 1.12; }
.q-title em { font-style: italic; color: var(--gold-bright); font-family: var(--sans); font-weight: 600; }
.slider-number { font-family: var(--head); font-weight: 800; color: var(--gold-bright); line-height: 1; font-size: 3rem; text-shadow: 0 0 40px var(--gold-soft); margin: 1.5rem 0 1.3rem; height: clamp(70px,10vh,110px); display: flex; align-items: center; }
.range { -webkit-appearance: none; appearance: none; width: 100%; max-width: 540px; height: 2px; border-radius: 2px;
  background: linear-gradient(to right, transparent, var(--gold-soft) 10%, var(--gold) 50%, var(--gold-soft) 90%, transparent); outline: none; display: block; cursor: pointer; }
.range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-bright); border: none; box-shadow: 0 0 0 5px rgba(217,164,65,.18), 0 0 26px 6px var(--gold-soft); cursor: grab; }
.range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--gold-bright); border: none; box-shadow: 0 0 0 5px rgba(217,164,65,.18), 0 0 26px 6px var(--gold-soft); cursor: grab; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--gold); }
.slider-response { font-family: var(--head); font-weight: 700; font-size: clamp(1.1rem,2vw,1.55rem); margin-top: 1.6rem; min-height: 2.2em; opacity: 0; transition: opacity 1s ease; }
.slider-response.show { opacity: 1; }
.slider-bridge { color: var(--gold); font-size: clamp(.88rem,1.3vw,1rem); margin-top: .8rem; opacity: 0; transition: opacity 1.2s ease; }
.slider-bridge.show { opacity: 1; }

/* ============================================================
   AUTHOR
   ============================================================ */
.author-inner { display: grid; grid-template-columns: 240px 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; max-width: 980px; }
.author-photo { width: 240px; height: 240px; border-radius: 8px; background: linear-gradient(150deg, #241d12, #0f0d0a); border: 1px solid var(--gold-faint); display: flex; align-items: center; justify-content: center; }
.author-photo span { font-family: var(--head); font-weight: 800; font-size: 3.1rem; color: var(--gold); }
.author-copy .eyebrow { display: inline-block; margin-bottom: .9rem; }
.author-copy .section-title { font-size: clamp(1.6rem, 2.9vw, 2.4rem); }
.author-body { color: var(--text-soft); font-size: clamp(.95rem,1.3vw,1.08rem); line-height: 1.7; margin-top: 1.3rem; max-width: 58ch; }
.author-note { color: var(--gold); font-family: var(--head); font-weight: 600; margin-top: 1.2rem; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.review { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.8rem 1.6rem; }
.review .stars { margin-bottom: .9rem; }
.review blockquote { font-size: .98rem; line-height: 1.6; }
.review figcaption { margin-top: 1.2rem; font-size: .8rem; color: var(--text-soft); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; color: var(--text);
  font-family: var(--head); font-weight: 600; font-size: clamp(.95rem,1.4vw,1.1rem);
  padding: 1.1rem 3rem 1.1rem 0; position: relative; }
.faq-q::after { content: "+"; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; transition: transform .3s ease; }
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-q:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { color: var(--text-soft); font-size: .92rem; line-height: 1.65; padding: 0 3rem 1.2rem 0; }

/* ============================================================
   OFFER
   ============================================================ */
.closing-q { font-size: clamp(1.8rem, 3.8vw, 3rem); margin-bottom: 2rem; }
.signature { font-style: italic; color: var(--text-soft); font-size: clamp(.9rem,1.3vw,1.05rem); margin-top: 2rem; }
.closing-divider { width: 60px; height: 1px; background: var(--gold); opacity: .5; margin: 2.6rem auto 2.2rem; }
.ec-block { max-width: 560px; margin: 0 auto; }
.ec-title { font-family: var(--head); font-weight: 700; font-size: clamp(1.15rem,2vw,1.5rem); line-height: 1.25; }
.ec-lead { color: var(--text-soft); font-size: .95rem; line-height: 1.65; margin: 1.1rem auto 0; max-width: 46ch; }
.ec-form { display: flex; gap: .6rem; margin: 1.8rem auto 0; max-width: 480px; flex-wrap: wrap; justify-content: center; }
.ec-input { flex: 1 1 240px; background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 4px; color: var(--text);
  font-size: .98rem; padding: .85rem 1rem; outline: none; transition: border-color .4s ease; text-align: center; }
.ec-input::placeholder { color: var(--text-soft); }
.ec-input:focus { border-color: var(--gold); }
.ec-note { color: var(--text-soft); font-size: .76rem; margin-top: 1.1rem; }
.ec-error { color: #e0a03a; font-size: .8rem; margin-top: .9rem; min-height: 1.2em; }
.ec-done { font-family: var(--head); font-weight: 600; color: var(--gold-bright); font-size: clamp(1.1rem,2vw,1.5rem); margin-top: 1.8rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.8); backdrop-filter: blur(4px); }
.modal-body { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(90vw, 640px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 3rem; text-align: center; }
.modal-close { position: absolute; top: .8rem; right: 1rem; color: var(--text-soft); font-size: 1.8rem; line-height: 1; }
.modal-close:hover { color: var(--gold); }
.modal-note { color: var(--text-soft); margin-top: 1rem; font-size: 1.05rem; }

/* skip link */
.skip { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--gold); color: #000; padding: .7rem 1.2rem; border-radius: 2px; }
.skip:focus { left: 1rem; top: 1rem; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-height: 760px) {
  .announce { display: none; }
  .hero-title { font-size: clamp(2rem, 4vw, 3.4rem); }
  .book-stage { max-width: min(330px, 26vw); }
  .card { padding: 1.2rem 1.2rem; }
  .section-head { margin-bottom: 1.4rem; }
}
@media (max-width: 1080px) {
  .nav-links { gap: .9rem; }
  .nav-links button { font-size: .74rem; }
}
@media (max-width: 940px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; align-items: stretch;
    background: rgba(9,9,10,.98); border-bottom: 1px solid var(--line); padding: .4rem 0;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .3s ease, transform .3s ease;
  }
  .nav-links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links button { padding: .95rem clamp(1.1rem,4vw,3rem); width: 100%; text-align: left; font-size: .92rem; }
  .nav-links button.active::after { display: none; }
  .nav-links button.active { color: var(--gold); }
  .nav-links .menu-offer { display: block; color: var(--gold-bright); font-family: var(--head); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; border-top: 1px solid var(--line); margin-top: .3rem; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .view { align-items: flex-start; }
  .view-inner { margin: 0 auto; padding: .5rem 0 1.5rem; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 1.6rem; }
  .hero-copy { max-width: 100%; margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .social-proof { justify-content: center; }
  .accent-rule { margin-left: auto; margin-right: auto; }
  .hero-book { order: -1; }
  .book-stage { max-width: 200px; }

  .pillars-inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 0; }
  .pillar { padding: 0 1.2rem; }
  .pillar:nth-child(odd) { border-left: none; padding-left: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .review-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .check-inner { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; }
  .q-figure { max-width: 260px; margin: 0 auto; }
  .q-figure img { max-height: 30vh; }
  .slider-number { justify-content: center; }
  .range { margin: 0 auto; }
  .author-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .author-photo { width: 180px; height: 180px; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
  .pillars-inner { grid-template-columns: 1fr; }
  .pillar { border-left: none; padding: 0; text-align: center; }
  .pillar-ico { margin-left: auto; margin-right: auto; }
  .announce { font-size: .66rem; }
}
