/* =========================================================================
   Profit With Pozos · funnel design system (system B)
   Nocturnal, precise, gold. His market is XAUUSD, so the accent is a muted
   gold on a green-black canvas, with chart gridlines and one faint gold price
   line as the hero idea (gradients.md 5b, read as a chart).
   Display: Archivo (wdth 112) · Text: Manrope
   ========================================================================= */
@font-face { font-family: "Archivo"; src: url("fonts/archivo.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  --bg: #0a0d0b;
  --bg-2: #0d120f;
  --surface: #111713;
  --surface-2: #161e19;
  --line: rgba(242, 239, 230, 0.10);
  --line-soft: rgba(242, 239, 230, 0.06);
  --text: #f2efe6;
  --text-2: #b3b8ad;
  --text-3: #8b9387;
  --accent: #d4b26a;
  --accent-2: #e6cb8e;
  --accent-deep: #a8873f;
  --accent-ink: #15110a;
  --accent-soft: rgba(212, 178, 106, 0.13);
  --accent-glow: rgba(212, 178, 106, 0.30);
  --up: #4fb286;
  --down: #d6595c;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --maxw: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ------------------------------- base ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
/* one continuous canvas on the body itself: it spans the whole document, so sections never show a seam */
body {
  margin: 0; min-height: 100vh; color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.6;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* hero-only atmosphere: gold bloom + chart gridlines, faded out at the bottom so the
   next section starts on the same ground with no visible edge */
.glow { position: relative; isolation: isolate; }
.glow::before, .glow::after { content: ""; position: absolute; left: 0; right: 0; top: 0; pointer-events: none; z-index: -1; }
.glow::before { height: 120%; background: radial-gradient(70% 55% at 50% 0%, rgba(212, 178, 106, 0.14), transparent 70%), radial-gradient(40% 40% at 90% 10%, rgba(79, 178, 134, 0.06), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.glow::after { height: 100%; opacity: 0.6;
  background-image: linear-gradient(rgba(242, 239, 230, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(242, 239, 230, 0.035) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(90% 80% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(90% 80% at 50% 0%, #000 10%, transparent 75%); }
/* the faint gold price line, top-right of the hero only */
.priceline { position: absolute; top: 0; right: 0; width: min(760px, 70vw); height: 420px; pointer-events: none; z-index: -1; opacity: 0.5;
  -webkit-mask-image: linear-gradient(200deg, #000 20%, transparent 75%); mask-image: linear-gradient(200deg, #000 20%, transparent 75%); }
.priceline path { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.priceline path.soft { stroke-opacity: 0.35; stroke-width: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 32px); position: relative; }
.narrow { max-width: 860px; }
.section { padding: clamp(72px, 10vw, 112px) 0; position: relative; }

/* ----------------------------- typography ------------------------------ */
.eyebrow { display: inline-block; margin: 0 0 18px; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 112%; letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(32px, 4.9vw, 58px); line-height: 1.06; font-weight: 700; }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; font-weight: 700; }
h3 { font-size: 20px; line-height: 1.25; font-weight: 650; font-stretch: 105%; letter-spacing: -0.01em; }
.lead { margin: 22px auto 0; font-size: clamp(17px, 1.9vw, 20px); line-height: 1.55; color: var(--text-2); max-width: 58ch; }
.hl { color: var(--accent); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 68px); }
.num { font-variant-numeric: tabular-nums; }

/* ------------------------------- buttons -------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; font-family: var(--sans); font-weight: 800; font-size: 16px; letter-spacing: 0.01em; padding: 17px 34px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; position: relative; overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), filter 0.25s var(--ease); }
.btn-gold { background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--accent-ink); box-shadow: 0 14px 36px -14px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-gold::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%); transition: transform 0.7s var(--ease); }
.btn-gold:hover { transform: translateY(-2px); }
.btn-gold:hover::after { transform: translateX(120%); }
.btn .ar { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.btn:hover .ar { transform: translateX(4px); }
.btn-lg { font-size: 17px; padding: 19px 42px; }

/* ------------------------------- reveals -------------------------------- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .rv.in { opacity: 1; transform: none; }

/* --------------------------- photo frames ------------------------------- */
[data-op-frame] { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, rgba(212, 178, 106, 0.16), transparent 60%), linear-gradient(160deg, var(--surface-2), #0c110e); }
[data-op-frame] > img { width: 100%; height: 100%; object-fit: cover; }
[data-op-frame].op-missing::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); opacity: 0.5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%23d4b26a' stroke-width='6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M38 8v84'/%3E%3Crect x='38' y='16' width='32' height='38' rx='6'/%3E%3Cpath d='M30 92h16'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ------------------------------ brand mark ------------------------------ */
.vela { display: block; overflow: visible; }
.vela path, .vela rect { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.vela .vela__body { transform-box: fill-box; transform-origin: 50% 100%; }
.vela--animate .vela__wick { stroke-dasharray: 90; stroke-dashoffset: 90; animation: velaWick 0.7s var(--ease) 0.1s forwards; }
.vela--animate .vela__body { animation: velaBody 0.7s var(--ease) 0.45s both; }
@keyframes velaWick { to { stroke-dashoffset: 0; } }
@keyframes velaBody { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--accent); }
.brand__word { font-family: var(--display); font-stretch: 118%; font-weight: 600; font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); white-space: nowrap; }

/* footer: branding only, height = 1.5 × branding height, centred */
.brandfoot { --bh: 28px; height: calc(var(--bh) * 1.5); display: flex; align-items: center; justify-content: center; position: relative; margin-top: clamp(40px, 6vw, 72px); background: var(--surface); }
.brandfoot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 140px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--surface)); }
.brandfoot .brand { height: var(--bh); }
.brandfoot .vela { width: 22px; height: 22px; }
.brandfoot .brand__word { font-size: 12px; color: var(--text-2); }

/* -------------------------------- cards --------------------------------- */
.card { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: var(--radius); }

/* ------------------------------ pillars --------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.pillar { position: relative; text-align: center; padding: 40px 28px 34px; border-radius: 22px; background: linear-gradient(180deg, rgba(22, 30, 25, 0.9), rgba(17, 23, 19, 0.9)); border: 1px solid var(--line); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pillar::before { content: ""; position: absolute; left: 22%; right: 22%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.75; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(212, 178, 106, 0.32); box-shadow: 0 30px 60px -36px var(--accent-glow); }
.pillar__n { position: absolute; top: 18px; left: 22px; font-family: var(--display); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--text-3); }
.pillar__i { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(212, 178, 106, 0.22); }
.pillar__i svg { width: 26px; height: 26px; }
.pillar h3 { font-size: 19px; line-height: 1.28; max-width: 22ch; margin: 0 auto; }
.pillar p { margin: 12px auto 0; font-size: 15px; line-height: 1.55; color: var(--text-2); max-width: 30ch; text-align: center; }

/* ------------------------------- host ----------------------------------- */
.host { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 52px); align-items: center; padding: clamp(22px, 3vw, 34px); border-radius: 26px; }
.host__photo { aspect-ratio: 4 / 5; border-radius: 18px; border: 1px solid var(--line); }
.host__photo img { object-position: 50% 22%; }
.host h3 { font-size: clamp(26px, 3vw, 34px); font-stretch: 112%; }
.host__role { margin: 8px 0 18px; color: var(--accent); font-weight: 700; font-size: 14px; letter-spacing: 0.02em; }
.host__bio { margin: 0; color: var(--text-2); font-size: 16.5px; }
.host__bio + .host__bio { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.stat { text-align: center; padding: 18px 10px 16px; border-radius: 14px; background: rgba(242, 239, 230, 0.03); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--display); font-stretch: 112%; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.35; color: var(--text-3); }
.press { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.press__label { width: 100%; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-3); }
.press b { font-family: var(--display); font-stretch: 100%; font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--text-2); }

/* ------------------------------- gift ----------------------------------- */
.gift { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; max-width: 980px; margin: 0 auto; }
.gift h2 { font-size: clamp(26px, 3.2vw, 36px); }
.gift__one { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.gift__desc { margin: 12px 0 0; font-size: 16px; color: var(--text-2); }
.tag { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; font-size: 13.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(212, 178, 106, 0.2); border-radius: 999px; padding: 9px 16px; }
.tag svg { width: 15px; height: 15px; flex: none; }
.cover { width: min(300px, 76vw); margin: 0 auto; border-radius: 14px; overflow: hidden; transform: rotate(-4deg); transition: transform 0.45s var(--ease); box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line); }
.cover:hover { transform: rotate(0deg); }
.cover img { width: 100%; height: auto; }

/* ------------------------ social proof (8 equal) ------------------------ */
.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.shot { aspect-ratio: 4 / 3; border-radius: 14px; border: 1px solid var(--line); }
.shot .bd { position: absolute; inset: -12px; width: calc(100% + 24px); height: calc(100% + 24px); object-fit: cover; filter: blur(16px) brightness(0.45) saturate(0.8); }
.shot .fg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.shot.op-missing .bd, .shot.op-missing .fg { display: none; }

/* --------------------- student cards (2-up, centred) -------------------- */
.vgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 940px; margin: 0 auto; }
.vcard { text-align: center; }
.vframe { aspect-ratio: 16 / 9; border-radius: 16px; border: 1px solid var(--line); }
.vframe .bd { position: absolute; inset: -16px; width: calc(100% + 32px); height: calc(100% + 32px); object-fit: cover; filter: blur(18px) brightness(0.4); }
.vframe .fg { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 12px 0; }
.vframe.op-missing .bd, .vframe.op-missing .fg { display: none; }
.vname { margin: 22px 0 6px; font-family: var(--display); font-stretch: 108%; font-size: 19px; font-weight: 650; }
.vdesc { margin: 0 auto; max-width: 36ch; font-size: 15px; color: var(--text-2); }

/* -------------------------------- modal --------------------------------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(5, 7, 6, 0.66); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); opacity: 0; visibility: hidden; transition: opacity 0.28s ease, visibility 0.28s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { position: relative; width: 100%; max-width: 440px; padding: 44px 36px 34px; border-radius: 24px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 0.95); transform: translateY(12px) scale(0.965); opacity: 0; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.modal-overlay.open .modal { transform: none; opacity: 1; }
.modal::before { content: ""; position: absolute; left: 20%; right: 20%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); background: rgba(242, 239, 230, 0.08); border: 1px solid rgba(242, 239, 230, 0.22); transition: transform 0.25s var(--ease), background 0.25s; }
.modal-x:hover { transform: rotate(90deg); background: rgba(242, 239, 230, 0.16); }
.modal h3 { text-align: center; font-size: 26px; font-stretch: 112%; margin-bottom: 8px; }
.modal-sub { text-align: center; margin: 0 0 26px; color: var(--text-2); font-size: 15px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.field input { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 15px 16px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.field input::placeholder { color: #6f776c; }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.err { border-color: var(--down); box-shadow: 0 0 0 3px rgba(214, 89, 92, 0.16); }
.modal-err { min-height: 18px; margin: 2px 0 8px; text-align: center; font-size: 13.5px; color: #ef8f91; }
.modal .btn { width: 100%; }
.modal-fine { margin: 14px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }

/* ------------------------------ responsive ------------------------------ */
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .host { grid-template-columns: 1fr; }
  .host__photo { max-width: 420px; width: 100%; margin: 0 auto; }
  .gift { grid-template-columns: 1fr; text-align: center; }
  .gift .tag { margin-left: auto; margin-right: auto; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .vgrid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr; }
  .modal { padding: 40px 22px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .vela--animate .vela__wick { stroke-dashoffset: 0; }
}

/* student video (Instagram reel), centred above the written testimonials */
.reel { max-width: 400px; margin: 0 auto 56px; text-align: center; }
.reel__frame { border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8); margin-bottom: 18px; }
.reel__frame iframe { display: block; width: 100%; height: 720px; border: 0; background: #fff; }
@media (max-width: 520px) { .reel__frame iframe { height: 640px; } }

/* ---- note shown when a link his team hasn't sent yet is clicked ---- */
.setup-toast { position: fixed; left: 50%; bottom: 28px; z-index: 300; width: min(440px, calc(100vw - 32px)); padding: 16px 20px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid rgba(212, 178, 106, 0.45); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  font: 600 15px/1.45 var(--sans); color: var(--text); text-align: center;
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.setup-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- mobile hardening (references/mobile.md) ---- */
img, svg, video, canvas, iframe { max-width: 100%; }
p, li, td, th, blockquote, figcaption, h1, h2, h3, h4, h5, h6 { overflow-wrap: anywhere; }
table, pre { display: block; max-width: 100%; overflow-x: auto; }
@media (max-width: 420px) { .tok-merge, .tok-link, code { white-space: normal; } }
