/* =========================================================================
   Girl$ on The Money · funnel system (system B)
   Her real world, elevated: blush paper, plum ink, coral from the logo,
   a green "$" note used only where money is literally the subject.
   Fraunces (display, editorial authority) + Poppins (her IG sans).
   Single deliberate light look: every colour set explicitly below.
   ========================================================================= */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #fbf3f1;
  --bg-2: #f6e7e4;
  --surface: #ffffff;
  --surface-2: #fdf7f5;
  --blush: #f7dad9;
  --ink: #2b1630;
  --muted: #6b5869;
  --faint: #8c7a89;
  --hair: rgba(43, 22, 48, 0.1);
  --hair-soft: rgba(43, 22, 48, 0.06);
  --accent: #801a87;
  --accent-2: #9a2ea2;
  --accent-deep: #5e1263;
  --accent-ink: #ffffff;
  --accent-soft: rgba(128, 26, 135, 0.08);
  --accent-glow: rgba(128, 26, 135, 0.28);
  --coral: #e57f76;
  --coral-ink: #b4473d;
  --money: #1e7a3a;
  --shadow: rgba(60, 20, 55, 0.12);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 20px;
  --maxw: 1120px;
  --gutter: clamp(18px, 5vw, 32px);
  --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%; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  background: var(--bg); position: relative;
}
/* one continuous page canvas: blush paper with soft diagonal folds (gradients.md #8), so no section seams */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 36%, rgba(255, 255, 255, 0.55) 36.4%, transparent 50%),
    linear-gradient(112deg, transparent 0 63%, rgba(128, 26, 135, 0.035) 63.3%, transparent 79%),
    linear-gradient(68deg, transparent 0 22%, rgba(229, 127, 118, 0.05) 22.3%, transparent 34%),
    radial-gradient(70% 50% at 50% -8%, rgba(247, 218, 217, 0.9), transparent 70%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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: 140px 140px;
}
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-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 880px; }
.section { padding-block: clamp(64px, 10vw, 112px); position: relative; }
.section--tight { padding-top: clamp(24px, 4vw, 40px); }

/* ---- type ---- */
h1, h2, h3, h4 { margin: 0; font-family: var(--display); color: var(--ink); font-optical-sizing: auto; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.08; font-weight: 560; letter-spacing: -0.022em; }
h2 { font-size: clamp(28px, 3.8vw, 44px); line-height: 1.1; font-weight: 560; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.22; font-weight: 600; letter-spacing: -0.012em; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; color: var(--accent); }
.eyebrow { display: inline-block; margin: 0 0 18px; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); }
.lead { margin: 22px auto 0; max-width: 60ch; font-size: clamp(16.5px, 1.6vw, 19px); line-height: 1.62; color: var(--muted); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 7vw, 72px); }
.center { text-align: center; }
.money { color: var(--money); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px;
  font-family: var(--sans); font-weight: 600; font-size: 16.5px; letter-spacing: -0.005em;
  padding: 16px 34px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn .ar { display: inline-block; transition: transform 0.25s var(--ease); }
.btn-primary {
  position: relative; overflow: hidden; color: var(--accent-ink);
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 14px 34px -14px var(--accent-glow);
}
.btn-primary::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.28), transparent); transition: transform 0.7s var(--ease); }
.btn-primary:hover { transform: translate(var(--mgx, 0), calc(var(--mgy, 0px) - 2px)); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 20px 40px -14px var(--accent-glow); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary:hover .ar { transform: translateX(3px); }
.btn-primary:active { transform: scale(0.98); }
.btn-lg { font-size: 17.5px; padding: 19px 42px; min-height: 60px; }

/* ---- reveal system (progressive: visible without JS) ---- */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .stagger.in > * { opacity: 1; transform: none; }
.js .stagger.in > *:nth-child(2) { transition-delay: 0.08s; }
.js .stagger.in > *:nth-child(3) { transition-delay: 0.16s; }
.js .stagger.in > *:nth-child(4) { transition-delay: 0.24s; }
.js .stagger.in > *:nth-child(5) { transition-delay: 0.32s; }
.js .stagger.in > *:nth-child(6) { transition-delay: 0.4s; }
.js .stagger.in > *:nth-child(7) { transition-delay: 0.48s; }
.js .stagger.in > *:nth-child(8) { transition-delay: 0.56s; }

/* signature: hero headline line-mask reveal */
.mask-h .ln { display: block; overflow: hidden; padding-bottom: 0.06em; }
.mask-h .ln > span { display: inline-block; }
.js .mask-h .ln > span { transform: translateY(105%); transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1); }
.js .mask-h.in .ln > span { transform: none; }
.js .mask-h.in .ln:nth-child(2) > span { transition-delay: 0.1s; }
.js .mask-h.in .ln:nth-child(3) > span { transition-delay: 0.2s; }

/* ---- video testimonial cards (2-up, name + description centred below) ---- */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 4vw, 40px); max-width: 680px; margin: 0 auto; }
.vcard { text-align: center; min-width: 0; }
.vframe {
  position: relative; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: var(--blush);
  border: 1px solid var(--hair); box-shadow: 0 30px 60px -36px var(--shadow), 0 2px 6px -2px var(--shadow);
  cursor: pointer; isolation: isolate;
}
.vframe video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--blush); }
.vframe .vplay {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 66px; height: 66px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--accent);
  box-shadow: 0 14px 34px -10px rgba(43, 22, 48, 0.45); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.vframe .vplay svg { width: 26px; height: 26px; margin-left: 3px; }
.vframe:hover .vplay { transform: translate(-50%, -50%) scale(1.06); }
.vframe.playing .vplay { opacity: 0; pointer-events: none; }
.vframe .vchip {
  position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
}
.vframe .vchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.vframe .vsound { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(43, 22, 48, 0.6); color: #fff; cursor: pointer; }
.vframe .vsound svg { width: 18px; height: 18px; }
.vname { margin: 20px 0 4px; font-family: var(--display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.vdesc { margin: 0 auto; max-width: 30ch; font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* ---- proof grid (8 equal tiles, 4×2) ---- */
.proof-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.shot {
  aspect-ratio: 4 / 3.2; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--hair);
  display: grid; place-items: center; padding: 12px; cursor: zoom-in; box-shadow: 0 18px 40px -30px var(--shadow);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); appearance: none; font: inherit;
}
.shot img { width: 100%; height: 100%; object-fit: contain; }
.shot:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -30px var(--shadow); }

/* zoom (proof lightbox) */
.zoom { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 24px; background: rgba(43, 22, 48, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; }
.zoom.open { opacity: 1; visibility: visible; }
.zoom img { max-width: min(880px, 100%); max-height: 84vh; border-radius: 14px; background: #fff; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); }
.zoom__x { position: absolute; top: 18px; right: 18px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.95); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }

/* ---- footer: branding-only banner, height = 1.5 × logo, logo centred ---- */
.ffoot { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; background: var(--surface); }
.ffoot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 120px; pointer-events: none; background: linear-gradient(180deg, transparent, var(--surface)); }
.ffoot img { height: 36px; width: auto; }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv, .js .stagger > *, .js .mask-h .ln > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn, .btn-primary::after, .shot, .vframe .vplay { transition: none; }
}

@media (max-width: 860px) {
  .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .vgrid { grid-template-columns: minmax(0, 1fr); max-width: 340px; }
  .btn-lg { width: 100%; padding-inline: 24px; }
}

/* ---- 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: 700px) {
  .tag, [class*="badge"], [class*="pill"] { margin-left: 0; }
}
@media (max-width: 420px) {
  .tok-merge, .tok-link, code { white-space: normal; }
}

/* silent story clips: small corner play so it never covers the message */
.vframe:not([data-sound]) .vplay { left: auto; top: auto; right: 12px; bottom: 12px; transform: none; width: 44px; height: 44px; }
.vframe:not([data-sound]) .vplay svg { width: 18px; height: 18px; }
.vframe:not([data-sound]):hover .vplay { transform: scale(1.06); }
.shot { padding: 8px; }
