/* =====================================================================
   Elite Wealth Insights — site styles (homepage, articles, legal, 404)
   Plain CSS, no build step. Quiz pages use quiz.css; admin pages use admin.css.

   Look: game-show marquee + gold-foil ticket. Loud on purpose.
   Colours and fonts are all in the :root block below.
   ===================================================================== */

@font-face { font-family: "Alfa Slab One"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/alfa-slab-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/assets/fonts/figtree-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("/assets/fonts/figtree-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Figtree"; font-weight: 800; font-style: normal; font-display: swap;
  src: url("/assets/fonts/figtree-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --violet: #4a0d8f;
  --violet-deep: #26064d;
  --gold-hi: #fff3a6;
  --gold: #ffc928;
  --gold-lo: #c97f00;
  --cash: #0c9a4c;
  --cash-deep: #06693a;
  --pink: #ff2f6d;
  --paper: #fff8e3;
  --ink: #1f0a38;
  --ink-soft: #55406e;

  --foil: linear-gradient(180deg, #fffbd6 0%, #ffe066 28%, #f5a800 52%, #ffec99 68%, #c97f00 100%);
  --display: "Alfa Slab One", "Rockwell Extra Bold", Rockwell, Georgia, serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
.hidden { display: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.on-paper a:focus-visible { outline-color: var(--violet); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--ink); padding: 8px 14px; border-radius: 8px; font-weight: 800; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- Marquee bulbs (the strip of lights) ---------- */
.bulbs {
  height: 22px;
  background:
    radial-gradient(circle at 14px 11px, #fff9c9 0 3px, var(--gold) 3.5px 5px, rgba(255, 201, 40, .28) 5.5px 9px, transparent 9.5px) 0 0 / 28px 22px repeat-x,
    var(--violet-deep);
}

/* ---------- Header ---------- */
.top { background: var(--violet-deep); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 46px; height: 46px; flex: none; }
.brand-name { font-family: var(--display); font-size: 22px; line-height: 1; letter-spacing: .01em;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name small { display: block; font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: .34em; text-transform: uppercase; color: #fff; -webkit-text-fill-color: #fff; margin-top: 5px; }
.menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-weight: 800; font-size: 15px; }
.menu a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.menu a:hover { border-color: var(--gold); color: var(--gold-hi); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center;
  background: radial-gradient(120% 90% at 50% 0%, #7a1fd6 0%, var(--violet) 45%, var(--violet-deep) 100%); }
.hero::before {            /* sunburst rays, slowly turning */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 42%;
  width: 240vmax; height: 240vmax; margin: -120vmax 0 0 -120vmax;
  background: repeating-conic-gradient(from 0deg, rgba(255, 201, 40, .17) 0 7.5deg, transparent 7.5deg 15deg);
  animation: rays 140s linear infinite;
}
@keyframes rays { to { transform: rotate(360deg); } }
.hero .wrap { padding-block: 54px 70px; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(3rem, 13.5vw, 7.4rem); line-height: .94; letter-spacing: -.005em;
  text-transform: uppercase;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6b3500) drop-shadow(0 7px 0 rgba(20, 2, 45, .55));
  transform: rotate(-2.5deg);
  margin-block: 6px 10px;
}
.hero h1 span { display: block; }
.hero-sub { max-width: 34ch; font-size: clamp(1.15rem, 3.6vw, 1.45rem); font-weight: 600; line-height: 1.4; text-wrap: balance; }

/* ---------- Golden ticket (the quiz invite) ---------- */
.ticket-holder { position: relative; width: 100%; max-width: 620px; margin-top: 40px; filter: drop-shadow(0 14px 0 rgba(20, 2, 45, .45)); }
.ticket {
  position: relative; color: var(--ink); text-align: center;
  background: linear-gradient(135deg, #ffe680 0%, #ffc928 38%, #fff1a8 52%, #f7b500 70%, #ffdc57 100%);
  padding: 34px 30px 32px;
  -webkit-mask:
    radial-gradient(circle at 0 13px, transparent 8px, #000 8.6px) left / 51% 26px repeat-y,
    radial-gradient(circle at 100% 13px, transparent 8px, #000 8.6px) right / 51% 26px repeat-y;
          mask:
    radial-gradient(circle at 0 13px, transparent 8px, #000 8.6px) left / 51% 26px repeat-y,
    radial-gradient(circle at 100% 13px, transparent 8px, #000 8.6px) right / 51% 26px repeat-y;
}
.ticket::before { content: ""; position: absolute; inset: 12px 20px; border: 3px dashed rgba(107, 53, 0, .55); border-radius: 6px; pointer-events: none; }
.ticket-kicker { font-weight: 800; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: #7a3d00; }
.ticket h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 7.4vw, 3rem); line-height: 1.02; margin: 8px 0 10px; text-wrap: balance; }
.ticket p { font-weight: 600; max-width: 36ch; margin-inline: auto; line-height: 1.4; text-wrap: balance; }
.ticket .go { margin-top: 20px; }

.burst {                       /* pink starburst sticker */
  position: absolute; z-index: 2; top: -58px; right: -10px; width: 104px; height: 104px;
  display: grid; place-items: center; text-align: center;
  background: var(--pink); color: #fff;
  font-family: var(--display); font-size: 22px; line-height: .95; text-transform: uppercase;
  clip-path: polygon(50.0% 0.0%,58.9% 11.0%,71.7% 5.0%,74.9% 18.7%,89.1% 18.8%,86.0% 32.6%,98.7% 38.9%,90.0% 50.0%,98.7% 61.1%,86.0% 67.4%,89.1% 81.2%,74.9% 81.3%,71.7% 95.0%,58.9% 89.0%,50.0% 100.0%,41.1% 89.0%,28.3% 95.0%,25.1% 81.3%,10.9% 81.2%,14.0% 67.4%,1.3% 61.1%,10.0% 50.0%,1.3% 38.9%,14.0% 32.6%,10.9% 18.8%,25.1% 18.7%,28.3% 5.0%,41.1% 11.0%);
  transform: rotate(12deg);
}
.burst small { display: block; font-family: var(--body); font-weight: 800; font-size: 12px; letter-spacing: .1em; margin-top: 3px; }

/* ---------- The big green button ---------- */
.go {
  position: relative; overflow: hidden; display: inline-block; text-decoration: none;
  font-family: var(--display); font-weight: 400; font-size: clamp(1.25rem, 5vw, 1.6rem); line-height: 1.1; letter-spacing: .02em; text-transform: uppercase;
  color: #fff; text-shadow: 0 2px 0 rgba(3, 60, 30, .7);
  background: linear-gradient(180deg, #19c268 0%, var(--cash) 48%, var(--cash-deep) 100%);
  border: 3px solid var(--ink); border-radius: 14px;
  padding: 16px 30px 15px;
  box-shadow: 0 6px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.go::after {                   /* one shine sweep on load, again on hover */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-18deg);
  animation: shine 1.1s ease-out 1s 1 both;
}
.go:hover::after { animation: shine-again .9s ease-out 1; }
@keyframes shine { to { left: 130%; } }
@keyframes shine-again { from { left: -60%; } to { left: 130%; } }
.go:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.go:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }

/* ---------- Sections on paper ---------- */
.band { padding-block: 64px; }
.band h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.02; color: var(--violet); text-wrap: balance; }
.band .lede { margin-top: 12px; max-width: 58ch; font-size: 1.15rem; color: var(--ink-soft); }

.leaks { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 26px; }
.leak {
  position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%;
  text-decoration: none; color: #fff;
  border: 4px solid var(--ink); border-radius: 18px; padding: 26px 24px 24px;
  box-shadow: 8px 8px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.leak:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.leak-1 { background: var(--pink); }
.leak-2 { background: var(--violet); }
.leak-3 { background: var(--cash-deep); }
.leak-n {
  font-family: var(--display); font-size: 5rem; line-height: .8;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 rgba(20, 2, 45, .6));
}
.leak h3 { font-family: var(--display); font-weight: 400; font-size: 1.65rem; line-height: 1.08; }
.leak p { font-weight: 600; line-height: 1.45; }
.leak-more { margin-top: auto; padding-top: 10px; font-weight: 800; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-color: var(--gold); }

/* ---------- Green "no velvet rope" band ---------- */
.rope { color: #fff; background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, .06) 0 22px, transparent 22px 44px),
    linear-gradient(180deg, var(--cash) 0%, var(--cash-deep) 100%);
  border-block: 6px solid var(--ink); }
.rope h2 { color: #fff; text-shadow: 0 4px 0 rgba(3, 50, 25, .6); }
.rope-grid { display: grid; gap: 30px; margin-top: 26px; }
.rope h3 { font-family: var(--display); font-weight: 400; font-size: 1.35rem; line-height: 1.15; color: var(--gold-hi); }
.rope p { margin-top: 8px; font-weight: 600; }

/* ---------- Closing call ---------- */
.closer { text-align: center; }
.closer h2 { margin-inline: auto; max-width: 16ch; }
.closer .go { margin-top: 26px; }
.closer .fine { margin-top: 18px; font-size: .95rem; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.foot { background: var(--violet-deep); color: #e9defa; font-size: .95rem; }
.foot .wrap { padding-block: 40px 44px; display: grid; gap: 22px; }
.foot .brand-name { font-size: 20px; }
.foot p { max-width: 78ch; line-height: 1.6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-weight: 800; }
.foot-links a { color: var(--gold-hi); }
.foot .copy { color: #b9a5d8; font-size: .85rem; }

/* ---------- Article ---------- */
.article-head { background: radial-gradient(120% 120% at 50% 0%, #7a1fd6 0%, var(--violet) 55%, var(--violet-deep) 100%); color: #fff; }
.article-head .wrap { max-width: 820px; padding-block: 46px 52px; }
.article-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 8.5vw, 4rem); line-height: 1; text-wrap: balance;
  background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #6b3500) drop-shadow(0 6px 0 rgba(20, 2, 45, .5)); }
.article-head p { margin-top: 18px; font-size: 1.2rem; font-weight: 600; max-width: 52ch; }
.article-head .dateline { margin-top: 14px; font-size: .95rem; font-weight: 600; color: #d9c6f5; }

.prose { max-width: 720px; margin: 0 auto; padding: 44px 20px 20px; }
.prose > p, .prose li { font-size: 1.12rem; line-height: 1.7; }
.prose > p + p { margin-top: 1.1em; }
.prose a { color: var(--violet); font-weight: 800; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose section { margin-top: 52px; scroll-margin-top: 20px; }
.prose section > p { margin-top: 1em; }
.prose h2 { display: flex; align-items: center; gap: 16px; font-family: var(--display); font-weight: 400; font-size: clamp(1.7rem, 6vw, 2.3rem); line-height: 1.08; color: var(--violet); }
.coin { flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-size: 2rem; color: #6b3500;
  background: radial-gradient(circle at 34% 30%, #fffbd6 0%, #ffd84a 38%, #e59a00 100%);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.prose h3 { margin-top: 1.5em; font-weight: 800; font-size: 1.2rem; }
.prose ul, .prose ol { margin: .8em 0 0; padding-left: 1.3em; display: grid; gap: .5em; }
.prose li::marker { color: var(--pink); font-weight: 800; }
.tip { margin-top: 1.4em; padding: 16px 18px; background: #ffe680; border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); font-weight: 600; }
.tip strong { font-weight: 800; }
.prose .note { margin-top: 48px; padding-top: 18px; border-top: 3px solid var(--ink); font-size: .95rem; color: var(--ink-soft); }
.invite { margin: 56px auto 0; display: flex; justify-content: center; padding: 0 20px 70px; }

/* ---------- Legal documents (Terms, Privacy) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 44px 20px 70px; }
.doc h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 7vw, 3rem); line-height: 1.05; color: var(--violet); }
.doc .dates { margin-top: 10px; color: var(--ink-soft); font-size: .95rem; }
.doc h2 { margin-top: 44px; font-weight: 800; font-size: 1.5rem; line-height: 1.2; scroll-margin-top: 20px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 8px; }
.doc a { color: var(--violet); font-weight: 600; }
.doc code { font-size: .9em; background: #f3e7c4; padding: 1px 5px; border-radius: 4px; }
.doc .toc { margin-top: 26px; padding: 18px 20px; background: #fff; border: 3px solid var(--ink); border-radius: 12px; }
.doc .toc ol { margin: 8px 0 0; columns: 2 240px; column-gap: 30px; }
.doc .short { padding: 14px 16px; background: #ffe680; border-radius: 10px; font-size: .98rem; }
.doc .scroll { overflow-x: auto; margin-top: 16px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .92rem; text-align: left; }
.doc th, .doc td { padding: 10px 14px; vertical-align: top; border-bottom: 1px solid #e6dcc0; }
.doc th { background: #f3e7c4; font-weight: 800; }

/* ---------- 404 ---------- */
.lost { min-height: 62vh; display: grid; place-items: center; }
.lost .wrap { padding-block: 60px; }

/* ---------- Wider screens ---------- */
@media (min-width: 760px) {
  .hero .wrap { padding-block: 70px 96px; }
  .menu { gap: 6px 26px; font-size: 16px; }
  .leaks { grid-template-columns: repeat(3, 1fr); }
  .rope-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .ticket-holder { margin-top: 18px; }
  .burst { top: -34px; right: -34px; width: 128px; height: 128px; font-size: 28px; }
  .band { padding-block: 84px; }
  .foot .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .foot .wide { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .go::after { animation: none; }
  .go, .leak { transition: none; }
}
