/* =========================================================================
   The Money Finders · funnel design system (system B)
   Dark "private bank" editorial. Cormorant Garamond + Inter, platinum accent.
   Shared by register / thank-you / replay / deck / emails / ad pages.
   Text is set 2pt larger than default on purpose (root 18px).
   ========================================================================= */
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-var.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("/assets/fonts/cormorant-var-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #0b0b0c;
  --bg-2: #111112;
  --surface: #141415;
  --surface-2: #1b1b1d;
  --ink: #f3f2ee;
  --muted: #b4b2ab;
  --faint: #8d8b85;
  --hair: rgba(243, 242, 238, 0.12);
  --hair-soft: rgba(243, 242, 238, 0.07);
  --accent: #e7e4dc;
  --accent-ink: #0b0b0c;
  --glow: rgba(231, 228, 220, 0.10);
  --metal: linear-gradient(180deg, #ffffff 0%, #e2dfd8 42%, #9c9a94 100%);
  --display: "Cormorant Garamond", "Times New Roman", serif;
  --nums: lining-nums proportional-nums;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 32px);
}

* { box-sizing: border-box; }
html { font-size: 18px; background: var(--bg); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 1.06rem; line-height: 1.6;
  letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  background: transparent; overflow-x: hidden; position: relative; min-height: 100vh;
}
/* one continuous canvas: brushed diagonal + platinum glows (no seams between sections) */
body::before { content: ""; position: absolute; inset: 0; min-height: 100vh; z-index: -2; pointer-events: none;
  background:
    radial-gradient(90% 1100px at 50% -200px, rgba(231, 228, 220, 0.11), transparent 62%),
    radial-gradient(50% 900px at 100% 45%, rgba(231, 228, 220, 0.035), transparent 70%),
    radial-gradient(50% 900px at 0% 80%, rgba(231, 228, 220, 0.03), transparent 70%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 7px),
    var(--bg); }
body::after { content: ""; position: absolute; 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"); background-size: 160px; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }
.sec { padding-block: clamp(72px, 11vh, 128px); position: relative; text-align: center; }

/* type */
.eyebrow { margin: 0 0 18px; font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.eyebrow--line { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow--line::before, .eyebrow--line::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.h1 { margin: 0 auto; max-width: 1180px; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 4.2vw, 3.55rem); line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
.h2 { margin: 0 auto; max-width: 900px; font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.45rem, 2.2vw, 1.85rem); line-height: 1.12; letter-spacing: -0.005em; }
.lede { margin: 22px auto 0; max-width: 680px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.6; color: var(--muted); text-wrap: balance; }
.metal { background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
[class*="h1"], [class*="h2"], [class*="h3"], .metal, h1, h2, h3, b { font-variant-numeric: lining-nums; }
em.serif, .serif-i { font-family: var(--display); font-style: italic; font-weight: 500; }
.media-gap { margin-top: clamp(40px, 6vh, 64px); }

/* buttons */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 16px 34px; border-radius: 999px;
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600; letter-spacing: -0.005em; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease); position: relative; overflow: hidden; }
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4) inset, 0 18px 40px -18px rgba(231, 228, 220, 0.45); }
.btn--primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.75) 50%, transparent 70%); transition: transform 0.8s var(--ease); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 24px 50px -18px rgba(231, 228, 220, 0.55); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn--ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn--lg { min-height: 62px; padding: 18px 44px; font-size: 1.08rem; }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* cards */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)); border: 1px solid var(--hair); border-radius: var(--radius); }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
html.no-js .rv { opacity: 1; transform: none; }

/* footer: branding-only banner, height = 1.5x the logo height, logo dead centre */
.brandfoot { height: 84px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.025); margin-top: clamp(40px, 7vh, 80px); position: relative; }
.brandfoot::before { content: ""; position: absolute; left: 0; right: 0; top: -120px; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.025)); }
.brandfoot img { height: 56px; width: auto; opacity: 0.85; }

/* video embeds (2-up, titled below) */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; margin-inline: auto; }
.vcard { text-align: center; }
.vframe { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--hair); box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.9); }
.vframe--tall { aspect-ratio: 9 / 16; max-width: 340px; margin-inline: auto; }
.vframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vname { margin: 18px 0 4px; font-family: var(--display); font-size: 1.35rem; font-weight: 600; }
.vdesc { margin: 0 auto; max-width: 40ch; font-size: 0.95rem; color: var(--muted); line-height: 1.5; }

/* proof grid (equal tiles) */
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 980px; margin-inline: auto; }
.pgrid figure { margin: 0; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); background: var(--surface); }
.pgrid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.pgrid figure:hover img { transform: scale(1.04); }

@media (max-width: 760px) {
  html { font-size: 17.5px; }
  .vgrid { grid-template-columns: 1fr; max-width: 520px; }
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .btn { width: 100%; max-width: 420px; }
}

/* ---- 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; }
html, body { overflow-x: clip; }
@media (max-width: 600px) {
  .h1 { font-size: 2.05rem; line-height: 1.08; }
  .eyebrow--line::before, .eyebrow--line::after { display: none; }
}
