/* Zazu website theme (Homepage3 style)
   Loaded last, on top of popup.css / phone.css / site.css. Layout is untouched:
   this only changes the font, the backdrop behind the liquid glass, the logo and the white buttons.
   Price changes and charts keep the original green and red. */

:root {
  --font: "Space Grotesk", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: var(--font);
  --text: #f2f1ec;
  --muted: #8f8f8a;
  --cream: #f4f1d8;
  --lav: #c9cff0;
  --sheen: linear-gradient(120deg, #f4f1d8 0%, #ecebe4 40%, #c9cff0 100%);
}

/* ---------- Font ---------- */
body { font-family: var(--font); }
button, input, select, textarea { font-family: inherit; }

/* Wordmark: lowercase, bold, tight */
body:not(.report) .brand { text-transform: lowercase; font-weight: 700 !important; letter-spacing: -.05em; }
.report .brand { font-weight: 600; letter-spacing: -.03em; }
@media (min-width: 1100px) { .brand { font-size: 24px !important; } }

/* Big headings in thin uppercase, as in the reference */
.home-h, #signin h1 { font-weight: 400; text-transform: uppercase; letter-spacing: .005em; }
.home-h { font-size: 40px; }
/* Numbers a touch lighter so Space Grotesk stays crisp */
.price, .idx-price, .pf-total, .tile .big { font-weight: 500; }

/* ---------- Logo: the rising line cut into cream-to-lavender stripes ---------- */
.logo {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f4f1d8'/%3E%3Cstop offset='.5' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23c9cff0'/%3E%3C/linearGradient%3E%3Cpattern id='p' width='6' height='10' patternUnits='userSpaceOnUse'%3E%3Crect width='3.6' height='10' fill='url(%23s)'/%3E%3C/pattern%3E%3Cmask id='m'%3E%3Cpolyline points='8,82 38,48 60,64 92,18' fill='none' stroke='%23fff' stroke-width='20' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3C/defs%3E%3Crect width='100' height='100' fill='url(%23p)' mask='url(%23m)'/%3E%3C/svg%3E") center / contain no-repeat !important;
  box-shadow: none !important;
  width: 26px; height: 26px; border-radius: 0;
}
.logo svg { display: none; }
.big-logo { width: 64px; height: 64px; }

/* ---------- Backdrop behind the glass ---------- */
/* Black, with soft olive, silver and lavender light */
body {
  background:
    radial-gradient(55% 45% at 8% 0%, rgba(183,179,138,.30), transparent 70%),
    radial-gradient(45% 40% at 55% 35%, rgba(157,160,168,.14), transparent 70%),
    radial-gradient(55% 55% at 100% 100%, rgba(201,207,240,.24), transparent 70%),
    radial-gradient(35% 35% at 0% 100%, rgba(244,241,216,.10), transparent 70%),
    #050505;
  background-attachment: fixed;
}
/* A band of the bank-card streaks across the middle, and halftone dots in two corners.
   z-index -1 keeps them behind every pane without changing the page layout. */
body::before, body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; }
body::before {
  background:
    repeating-linear-gradient(-28deg, rgba(255,255,255,0) 0 6px, rgba(232,230,214,.10) 6px 8px),
    linear-gradient(115deg, transparent 20%, rgba(183,179,138,.25) 45%, rgba(201,207,240,.22) 65%, transparent 85%);
  -webkit-mask-image: linear-gradient(160deg, transparent 18%, #000 45%, #000 60%, transparent 85%);
          mask-image: linear-gradient(160deg, transparent 18%, #000 45%, #000 60%, transparent 85%);
}
body::after {
  background-image: radial-gradient(rgba(230,228,205,.55) 1.1px, transparent 1.7px);
  background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(45% 55% at 100% 100%, #000, transparent 75%), radial-gradient(35% 40% at 0% 0%, rgba(0,0,0,.7), transparent 75%);
          mask-image: radial-gradient(45% 55% at 100% 100%, #000, transparent 75%), radial-gradient(35% 40% at 0% 0%, rgba(0,0,0,.7), transparent 75%);
}

/* ---------- White pills become the cream-to-lavender sheen ---------- */
.primary, .range-tabs button.on, .tabs a.on {
  background: var(--sheen) !important;
  color: #0b0b0b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 4px 14px rgba(232,230,214,.14);
}
.primary:hover { filter: brightness(1.04); }
input:focus { border-color: rgba(244,241,216,.4); }
.news-lead:hover .news-title, .news-item:hover .news-title { color: var(--cream); }
