/* ============================================================
   FREE EBOOK OPT-IN — The Invisible Expert's Unfair Advantage
   Neo-brutalist, shared system: Archivo Black + Archivo,
   signal red #FF1500 (the "amber" accent slot), hard corners.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Archivo:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Archivo+Black&display=swap');

:root {
  --ink: #0D0D0D;
  --surface-dark: #161616;
  --surface-2: #1C1C1A;
  --red: #FF1500;
  --red-deep: #D11100;
  --t: #F0EDE6;
  --muted: #908F86;
  --muted-2: #6E6E66;
  --line: rgba(240, 237, 230, 0.14);
  --display: 'Archivo Black', 'Arial Black', sans-serif;
  --sans: 'Archivo', system-ui, -apple-system, sans-serif;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--t); font-family: var(--sans); font-size: 18px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: var(--ink); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .wrap { padding: 0 22px; } }

.eyebrow { font-family: var(--sans); font-weight: 600; font-size: 0.76rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin: 0 0 22px; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.96; letter-spacing: -0.02em; margin: 0; }
.red { color: var(--red); }

/* buttons */
.btn { appearance: none; cursor: pointer; display: inline-flex; align-items: center; gap: 13px; font-family: var(--sans); font-weight: 700; font-size: 0.94rem; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--red); border: 2px solid var(--red); padding: 18px 38px; border-radius: 0; line-height: 1; transition: background 0.16s, color 0.16s, transform 0.16s; }
.btn .ar { transition: transform 0.2s; }
.btn:hover { background: var(--ink); color: var(--red); }
.btn:hover .ar { transform: translateX(5px); }
.btn:active { transform: translateY(1px); }
.btn.lg { font-size: 1.02rem; padding: 21px 46px; }
.btn.sm { padding: 13px 24px; font-size: 0.8rem; }
.micro { font-family: var(--sans); font-weight: 300; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- NAV ---------- */
.nav { position: sticky; top: 0; z-index: 80; background: rgba(13,13,13,0.86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav .logo { font-family: var(--display); text-transform: uppercase; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--t); }
.nav .logo .dot { color: var(--red); }
@media (max-width: 520px) { .nav .logo { font-size: 0.92rem; } .btn.sm { padding: 12px 16px; font-size: 0.72rem; } }

/* ---------- HERO ---------- */
.hero { text-align: center; padding: 38px 0 72px; position: relative; }
.hero .eyebrow { margin-bottom: 30px; }
.hero .plus { position: absolute; color: var(--red); opacity: 0.7; font-size: 18px; }
.hero .pl-tl { top: 40px; left: 40px; } .hero .pl-tr { top: 40px; right: 40px; }
@media (max-width: 720px) { .hero .plus { display: none; } .hero { padding-top: 28px; } }
.hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.4rem, 2.7vw, 2.25rem); line-height: 1.06; letter-spacing: -0.02em; max-width: 26ch; margin: 0 auto; }
.hero .sub { max-width: 44em; margin: 24px auto 0; color: #C9C6BE; font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.55; }
.hero .sub strong { color: #fff; font-weight: 600; }
.hero .sub + .sub { margin-top: 16px; }
.hero-cta { margin-top: 40px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* 3D book mockup */
.book-stage { perspective: 1600px; margin: 28px auto 14px; width: 300px; height: 400px; }
@media (max-width: 480px) { .book-stage { width: 230px; height: 308px; } }
.book { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform: rotateY(-26deg) rotateX(4deg); transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
.book-stage:hover .book { transform: rotateY(-16deg) rotateX(2deg); }
.book-cover { position: absolute; inset: 0; background: var(--ink); border: 1px solid #2a2a28; padding: 28px 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 40px 70px -30px rgba(0,0,0,0.8); transform: translateZ(20px); overflow: hidden; }
.book-cover::after { content: ""; position: absolute; top: 0; left: 0; width: 8px; height: 100%; background: linear-gradient(90deg, rgba(255,255,255,0.12), transparent); }
.book-spine { position: absolute; left: 0; top: 0; width: 40px; height: 100%; background: #080808; transform: rotateY(90deg) translateZ(-20px) translateX(-20px); transform-origin: left; }
.book-pages { position: absolute; right: -4px; top: 6px; width: 40px; height: calc(100% - 12px); background: repeating-linear-gradient(90deg, #ddd9cf 0 1px, #c7c3b8 1px 3px); transform: rotateY(90deg) translateZ(0px) translateX(-20px); transform-origin: right; }
.bc-tag { font-family: var(--sans); font-weight: 600; font-size: 0.5rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--red); }
.bc-title { font-family: var(--display); text-transform: uppercase; font-size: 1.55rem; line-height: 0.94; letter-spacing: -0.02em; color: var(--t); }
.bc-title .red { color: var(--red); }
.bc-rule { height: 2px; background: var(--red); width: 100%; margin: 12px 0; }
.bc-foot { font-family: var(--sans); font-weight: 700; font-size: 0.56rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.book-cap { margin-top: 4px; }

/* ---------- generic section ---------- */
.sec { padding: 92px 0; border-top: 1px solid var(--line); position: relative; }
.sec.surface { background: var(--surface-dark); }
.sec h2.head { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 0.98; letter-spacing: -0.02em; margin: 0; }

/* ---------- benefit / discover lists ---------- */
.list { list-style: none; margin: 44px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 860px; }
.list li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); align-items: start; }
.list .mk { font-family: var(--display); color: var(--red); font-size: 1.05rem; line-height: 1.4; }
.list .mk.num { font-size: 1.3rem; }
.list .txt { font-size: 1.1rem; line-height: 1.55; color: #C4C1B9; }
.list .txt b { color: #fff; font-weight: 700; }
@media (max-width: 560px) { .list li { grid-template-columns: 34px 1fr; gap: 12px; } }

.cta-center { margin-top: 50px; display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ---------- problem block ---------- */
.problem .body { margin-top: 40px; max-width: 30em; }
.problem .body p { margin: 0 0 1.5em; font-size: 1.16rem; line-height: 1.5; color: #C9C6BE; }
.problem .body p.big { font-family: var(--sans); font-weight: 600; font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.28; color: #fff; max-width: 20ch; }
.problem .body p strong { color: #fff; font-weight: 700; }
.problem .body p.red-line { color: var(--red); font-weight: 600; }

/* ---------- founder ---------- */
.founder { text-align: center; }
.founder .portrait { width: 150px; height: 150px; border-radius: 50%; margin: 36px auto 26px; overflow: hidden; border: 2px solid var(--red); position: relative; }
.founder .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; filter: grayscale(1) contrast(1.05); }
.founder .f-name { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; margin: 0; }
.founder .f-title { font-family: var(--sans); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin: 12px 0 0; }
.founder .f-body { max-width: 40em; margin: 26px auto 0; color: #C4C1B9; font-size: 1.08rem; line-height: 1.6; }
.founder .f-body p { margin: 0 0 1.1em; }
.founder .f-body p:last-child { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 44px auto 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; appearance: none; background: none; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; text-align: left; font-family: var(--sans); font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--t); }
.faq-q .ic { flex: 0 0 auto; width: 26px; height: 26px; position: relative; }
.faq-q .ic::before, .faq-q .ic::after { content: ""; position: absolute; background: var(--red); transition: transform 0.25s; }
.faq-q .ic::before { top: 12px; left: 3px; width: 20px; height: 2px; }
.faq-q .ic::after { top: 3px; left: 12px; width: 2px; height: 20px; }
.faq-item.open .ic::after { transform: scaleY(0); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height 0.3s ease; }
.faq-a .inner { padding: 0 0 26px; color: #B7B4AC; font-size: 1.05rem; line-height: 1.6; max-width: 60ch; }

/* ---------- final CTA ---------- */
.final { text-align: center; border-top: 3px solid var(--red); background: var(--surface-dark); padding: 96px 0; }
.final h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.0; letter-spacing: -0.02em; max-width: 16ch; margin: 0 auto; }
.final .cta-center { margin-top: 42px; }
.foot { text-align: center; padding: 36px 0; background: #060606; }
.foot .fb { font-family: var(--display); text-transform: uppercase; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--muted); }
.foot .fb .sep { color: var(--red); margin: 0 8px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s cubic-bezier(.2,.7,.2,1), transform 0.6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } html { scroll-behavior: auto; } }

/* ============================================================
   MODAL FORM
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 1000; background: rgba(6,6,6,0.86); backdrop-filter: blur(5px); display: none; align-items: flex-start; justify-content: center; padding: 48px 20px; overflow-y: auto; }
.modal.open { display: flex; }
.modal.open .modal-card { animation: cardIn 0.32s cubic-bezier(.2,.7,.2,1) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal.open .modal-card { animation: none; } }
.modal-card { position: relative; background: var(--surface-2); width: 100%; max-width: 480px; border: 2px solid var(--red); padding: 40px 38px 36px; box-shadow: 0 50px 90px -30px rgba(0,0,0,0.7); }
.modal-close { position: absolute; top: 16px; right: 16px; appearance: none; border: 1px solid var(--line); background: transparent; width: 34px; height: 34px; cursor: pointer; display: grid; place-items: center; color: var(--muted); transition: border-color 0.15s, color 0.15s; }
.modal-close:hover { border-color: var(--red); color: var(--red); }
.modal-close svg { width: 16px; height: 16px; }
.modal h3 { font-family: var(--display); text-transform: uppercase; font-size: 1.5rem; line-height: 1.0; letter-spacing: -0.01em; margin: 0 0 10px; color: #fff; }
.modal .msub { color: var(--muted); font-size: 0.96rem; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input { width: 100%; font-family: var(--sans); font-size: 1.02rem; color: var(--t); background: #0E0E0E; border: 1px solid var(--line); border-radius: 0; padding: 14px 15px; transition: border-color 0.15s, box-shadow 0.15s; }
.field input::placeholder { color: #5C5C56; }
.field input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.field .err { color: var(--red); font-family: var(--sans); font-size: 0.74rem; margin-top: 7px; display: none; }
.field.invalid input { border-color: var(--red); }
.field.invalid .err { display: block; }
.modal .btn { width: 100%; justify-content: center; margin-top: 8px; }
.modal .mfine { margin-top: 16px; text-align: center; }
/* success */
.modal-success { display: none; text-align: center; padding: 8px 0; }
.modal-success.show { display: block; }
.modal-success .tick { width: 60px; height: 60px; border: 2px solid var(--red); display: grid; place-items: center; margin: 8px auto 22px; }
.modal-success .tick svg { width: 30px; height: 30px; color: var(--red); }
.modal-success h3 { margin-bottom: 12px; }
.modal-success p { color: var(--muted); margin: 0 auto 8px; max-width: 30em; }

/* ---------- loading overlay ---------- */
.loading-overlay { position: fixed; inset: 0; z-index: 2000; background: var(--ink); display: none; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.loading-overlay.show { display: flex; }
.lo-inner { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.lo-btn-wrap { width: 64px; height: 64px; border: 2px solid var(--line); border-top-color: var(--red); border-radius: 50%; animation: loSpin 0.9s linear infinite; }
@keyframes loSpin { to { transform: rotate(360deg); } }
.lo-head { font-family: var(--display); text-transform: uppercase; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.08; max-width: 20ch; color: var(--t); letter-spacing: -0.02em; margin: 0; }
.lo-sub { font-family: var(--sans); font-size: clamp(0.95rem, 1.4vw, 1.1rem); color: var(--muted); margin: 0; max-width: 32ch; }
