/* Tradez Log - shared custom CSS. Colour and font tokens live in each page's Tailwind @theme block. */
:root { color-scheme: light; }
html { scroll-behavior: smooth; }
body { background: var(--color-paper, #F5F8FF); color: var(--color-ink, #0B1B4B); overflow-x: clip; }

.wrap {
  margin-inline: auto; width: 100%; max-width: 90rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
#nav { padding-top: env(safe-area-inset-top, 0px); }
#nav nav { backdrop-filter: blur(14px); background: rgb(255 255 255 / .86); }
#nav a[aria-current="page"] { background: var(--color-tblue); color: var(--color-blue); }

:focus-visible { outline: 3px solid var(--color-blue); outline-offset: 3px; border-radius: 8px; }
.on-dark :focus-visible { outline-color: #fff; }
::selection { background: var(--color-blue); color: #fff; }

/* Soft card surfaces */
.pop { border: 1px solid var(--color-line); border-radius: 1.75rem; box-shadow: 0 1px 2px rgb(11 27 75 / .05), 0 30px 70px -30px rgb(11 60 201 / .35); }
.pop-sm { border: 1px solid var(--color-line); border-radius: 1.1rem; box-shadow: 0 1px 2px rgb(11 27 75 / .05), 0 14px 34px -18px rgb(11 60 201 / .3); }
.lift { transition: transform .35s var(--ease-pop), box-shadow .35s var(--ease-pop); }
.lift:hover { transform: translateY(-6px); box-shadow: 0 1px 2px rgb(11 27 75 / .05), 0 40px 80px -30px rgb(11 60 201 / .5); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: 999px; border: 1px solid transparent; font-weight: 700; transition: transform .25s var(--ease-pop), box-shadow .25s var(--ease-pop), background-color .25s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
/* Primary: logo green. Secondary: logo blue. */
.btn-sun { background: linear-gradient(180deg, #52C234, var(--color-green)); color: #fff; box-shadow: 0 12px 26px -10px rgb(63 165 42 / .7); }
.btn-sun:hover { box-shadow: 0 18px 34px -10px rgb(63 165 42 / .8); }
.btn-pink, .btn-ink { background: linear-gradient(180deg, #2B5BEA, var(--color-blue)); color: #fff; box-shadow: 0 12px 26px -10px rgb(11 60 201 / .7); }
.btn-pink:hover, .btn-ink:hover { box-shadow: 0 18px 34px -10px rgb(11 60 201 / .8); }
.btn-white { background: #fff; color: var(--color-ink); border-color: var(--color-line); box-shadow: 0 8px 20px -12px rgb(11 27 75 / .35); }
.btn-white:hover { border-color: var(--color-blue); color: var(--color-blue); }
.btn-sm { min-height: 40px; padding: .45rem 1.1rem; font-size: .875rem; }

.chip { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--color-line); background: #fff; color: var(--color-blue); font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.chip .dot, .live-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--color-green); flex: none; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(63 165 42 / .6); } 70%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* Highlighted words: the logo's blue-to-green, as gradient text */
.hl { background: linear-gradient(95deg, var(--color-blue) 10%, var(--color-green) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.on-dark .hl { background-image: linear-gradient(95deg, #B9F59F, #6FE04A); }

/* Page backgrounds */
.hero { background:
  radial-gradient(60rem 34rem at 88% -8%, rgb(11 60 201 / .16), transparent 65%),
  radial-gradient(44rem 30rem at -5% 45%, rgb(70 176 46 / .16), transparent 65%),
  linear-gradient(180deg, #fff, var(--color-paper)); }
.dots { position: absolute; inset: 0; pointer-events: none; color: var(--color-blue); background-image: radial-gradient(color-mix(in srgb, currentColor 16%, transparent) 1.2px, transparent 1.4px); background-size: 28px 28px; -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%); mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.shape { position: absolute; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: .22; }
.spin { display: none; }
.cta, .stats-band, .blue-card { background: radial-gradient(40rem 26rem at 90% 0%, rgb(114 211 52 / .35), transparent 60%), linear-gradient(135deg, #1348E0, #082C9C); color: #fff; }
.blue-card { border-color: transparent; }
.bob { animation: bob 5s ease-in-out infinite alternate; animation-delay: var(--d, 0s); }
@keyframes bob { from { translate: 0 -8px; } to { translate: 0 10px; } }

/* The rising arrow from the logo, drawn behind the dashboard */
.rise { position: absolute; pointer-events: none; }
.rise path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease-pop) .5s forwards; }
.rise polygon { opacity: 0; animation: fade .5s ease 1.9s forwards; }

.sticker { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border: 1px solid var(--color-line); border-radius: 1rem; background: #fff; box-shadow: 0 18px 40px -16px rgb(11 60 201 / .45); font-family: var(--font-display); font-weight: 700; color: var(--color-ink); white-space: nowrap; }
.sticker.s-green { color: var(--color-bull); } .sticker.s-blue { color: var(--color-blue); }

/* Load-in (CSS only, so it runs without JS) */
.load-in { animation: load-in .9s var(--ease-pop) both; animation-delay: var(--d, 0ms); }
@keyframes load-in { from { opacity: 0; transform: translateY(26px); } }

/* Scroll reveal: only hides content when JS is there to show it again */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-pop), transform .8s var(--ease-pop); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Marquee */
.band { border-block: 1px solid var(--color-line); background: #fff; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 1.75rem; padding-right: 1.75rem; }
.js .marquee-track { animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: 0; white-space: nowrap; color: var(--color-ink); }
.marquee-track svg { flex: none; }

/* Dashboard mockup */
.persp { perspective: 1600px; }
#dash { transform-origin: 50% 0; will-change: transform; box-shadow: 0 1px 2px rgb(11 27 75 / .06), 0 60px 120px -40px rgb(11 60 201 / .55); }
.kpi { border: 1px solid var(--color-line); border-radius: 1rem; padding: .85rem 1rem; }
.equity path.line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.4s var(--ease-pop) .7s forwards; }
.equity path.area { opacity: 0; animation: fade 1s ease 1.9s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
.heat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.heat span { aspect-ratio: 1; border-radius: 5px; background: #EDF1FB; }
.tag { display: inline-flex; align-items: center; white-space: nowrap; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--color-line); background: #fff; color: var(--color-ink); }
.tag-sun { background: var(--color-tblue); border-color: transparent; color: var(--color-blue); }
.tag-mint { background: var(--color-tgreen); border-color: transparent; color: #1F7A12; }
.tag-pink { background: var(--color-tred); border-color: transparent; color: #C0272D; }
.tag-blue { background: var(--color-blue); border-color: transparent; color: #fff; }
.num { font-variant-numeric: tabular-nums; }

/* Bars that grow when their card reveals */
.bar { height: .8rem; border-radius: 999px; background: #EDF1FB; overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--c, var(--color-blue)); transform-origin: left; }
.js [data-reveal] .bar > span { transform: scaleX(0); transition: transform 1.1s var(--ease-pop) .25s; }
.js [data-reveal].is-visible .bar > span { transform: none; }

/* Stacking cards: each step sticks and the next slides over it */
.stack { display: grid; gap: 1.5rem; }
.stack-card { display: grid; gap: 2rem; padding: 1.5rem; align-items: center; transform-origin: 50% 0; }
.big-no { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.5rem, 4.5vw, 3.75rem); line-height: .8; letter-spacing: -.05em; background: linear-gradient(120deg, var(--color-blue), var(--color-green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.on-dark .big-no { background-image: linear-gradient(120deg, #fff, #B9F59F); }
@media (min-width: 900px) {
  .stack-card { grid-template-columns: 5fr 6fr; gap: 3.5rem; padding: 3rem; }
}
@media (min-width: 900px) and (min-height: 680px) {
  .stack { gap: 4rem; }
  .stack-card { position: sticky; top: calc(6rem + var(--i) * 1.25rem); min-height: min(30rem, 66vh); }
}

/* Statement whose words light up on scroll */
.statement .w { display: inline-block; }

/* Horizontal gallery: native swipe by default, pinned scroll on desktop with GSAP */
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-block: 1rem 3rem; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-track { display: flex; gap: 1.75rem; width: max-content; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); }
.panel { scroll-snap-align: center; width: min(84vw, 44rem); flex: none; }
.gallery.is-pinned { overflow: hidden; scroll-snap-type: none; }
.gallery.is-pinned .gallery-track { padding-left: max(20px, calc((100vw - 76rem) / 2 + 20px)); }

/* FAQ */
details { border-bottom: 1px solid var(--color-line); }
details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.15rem 0; font-weight: 700; font-size: 1.1rem; min-height: 48px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--color-tblue); color: var(--color-blue); font-family: var(--font-mono); transition: rotate .3s var(--ease-pop), background-color .3s, color .3s; }
details[open] summary::after { rotate: 45deg; background: var(--color-blue); color: #fff; }
details p { padding: 0 0 1.25rem; max-width: 60ch; line-height: 1.65; opacity: .78; }

/* Form */
.field { width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: .85rem; border: 1px solid var(--color-line); background: #fff; color: var(--color-ink); transition: box-shadow .2s, border-color .2s; }
.field::placeholder { color: color-mix(in srgb, var(--color-ink) 45%, transparent); }
.field:focus { outline: none; border-color: var(--color-blue); box-shadow: 0 0 0 4px rgb(11 60 201 / .15); }

@media (max-width: 639px) { .hide-phone { display: none !important; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .marquee-track { animation: none; }
  .equity path.line, .rise path { stroke-dashoffset: 0; } .equity path.area, .rise polygon { opacity: 1; }
}

/* ---------- Additions for the full-feature site ---------- */
.price-was { text-decoration: line-through; text-decoration-thickness: 2px; opacity: .55; }

/* Comparison and limits tables */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--color-line); border-radius: 1.5rem; background: #fff; box-shadow: 0 14px 34px -18px rgb(11 60 201 / .3); }
.tbl { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { padding: .95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--color-line); vertical-align: top; }
.tbl thead th { font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--color-blue); background: var(--color-paper); }
.tbl tbody th { font-weight: 700; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .us { background: var(--color-tblue); font-weight: 700; }
.yes { color: var(--color-bull); font-weight: 700; } .no { color: var(--color-bear); font-weight: 700; } .meh { opacity: .65; }

/* Discipline: challenge day strip and rule checks */
.strip { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
.strip span { aspect-ratio: 1; border-radius: 4px; background: #EDF1FB; }
.strip span.ok { background: var(--color-green); }
.strip span.today { background: #fff; outline: 2px solid var(--color-blue); outline-offset: -2px; }
.check { display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: .45rem; border: 1px solid var(--color-line); background: #fff; color: var(--color-ink); }
.check.on { background: var(--color-tgreen); border-color: transparent; color: #1F7A12; }
.check.off { background: var(--color-tred); border-color: transparent; color: #C0272D; }
.ring { --p: 64; width: 7.5rem; height: 7.5rem; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--color-lgreen) calc(var(--p) * 1%), rgb(255 255 255 / .18) 0); }
.ring > div { width: 5.9rem; height: 5.9rem; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #0E3BB8; }

/* AI review columns */
.review li { padding: .85rem 1rem; border-radius: .9rem; border: 1px solid var(--color-line); background: #fff; line-height: 1.55; font-weight: 500; }

/* Captured-field list */
.fields { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.fields li { display: flex; flex-direction: column; gap: .15rem; padding: .85rem 1rem; border-radius: 1rem; border: 1px solid var(--color-line); background: #fff; }
.fields b { font-family: var(--font-display); font-weight: 700; }
.fields span { font-size: .9rem; opacity: .75; }

.form-note.ok { background: var(--color-tgreen); }
.form-note.err { background: var(--color-tred); }

/* ---------- Contact popup ---------- */
.contact-modal { width: min(40rem, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 0; background: transparent; color: var(--color-ink); overflow: auto; overscroll-behavior: contain; }
.contact-modal::backdrop { background: rgb(11 27 75 / .55); backdrop-filter: blur(6px); }
.contact-modal[open] { animation: modal-in .45s var(--ease-pop); }
.contact-modal[open]::backdrop { animation: fade .3s ease both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(24px) scale(.97); } }
html.modal-open { overflow: hidden; }
.modal-x { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-tblue); color: var(--color-blue); transition: background-color .2s, color .2s; }
.modal-x:hover { background: var(--color-blue); color: #fff; }

/* ---------- Blog ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-btn { min-height: 44px; padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--color-line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--color-ink); transition: background-color .2s, color .2s, border-color .2s; }
.filter-btn:hover { border-color: var(--color-blue); color: var(--color-blue); }
.filter-btn[aria-pressed="true"] { background: var(--color-blue); border-color: var(--color-blue); color: #fff; }
.post-card { position: relative; }
.post-card .post-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-card:hover .post-link { color: var(--color-blue); }
.post-card[hidden] { display: none !important; }
.avatar { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: linear-gradient(135deg, var(--color-blue), var(--color-green)); color: #fff; font-weight: 700; }

.prose { font-size: 1.075rem; line-height: 1.8; color: color-mix(in srgb, var(--color-ink) 86%, transparent); }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { margin-top: 2.75rem; font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 600; line-height: 1.25; letter-spacing: -.02em; color: var(--color-ink); }
.prose h3 { margin-top: 2rem; font-size: 1.25rem; font-weight: 600; color: var(--color-ink); }
.prose h2 + *, .prose h3 + * { margin-top: .75rem; }
.prose strong, .prose b { font-weight: 700; color: var(--color-ink); }
.prose a { color: var(--color-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li + li { margin-top: .45rem; }
.prose li::marker { color: var(--color-blue); font-weight: 700; }
.prose .callout { padding: 1.1rem 1.35rem; border-radius: 1.1rem; border: 1px solid var(--color-line); border-left: 5px solid var(--color-green); background: var(--color-tgreen); color: var(--color-ink); }
.prose .callout p { margin: 0; }
.prose .stat-row { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.prose .stat-box { padding: 1.1rem 1.2rem; border-radius: 1.1rem; border: 1px solid var(--color-line); background: #fff; box-shadow: 0 14px 34px -18px rgb(11 60 201 / .3); }
.prose .stat-num { margin: 0; font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--color-blue); }
.prose .stat-lbl { margin: .35rem 0 0; font-size: .9rem; line-height: 1.45; }

/* Force Poppins everywhere. Unlayered, so it beats the host skeleton's system-font body rule. */
body { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; font-size: 1rem; line-height: 1.5; }
h1, h2, h3, h4, .font-display, .font-sans, button, input, select, textarea, .btn, .sticker, .big-no, .marquee-track span, .fields b { font-family: "Poppins", "Segoe UI", system-ui, sans-serif; }

/* ---------- Floating enquiry button ---------- */
.enquiry-fab { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: .55rem; min-height: 52px; padding: .8rem 1.3rem .8rem 1.1rem; border-radius: 999px; background: linear-gradient(180deg, #2B5BEA, var(--color-blue)); color: #fff; font-weight: 700; box-shadow: 0 18px 38px -12px rgb(11 60 201 / .75), 0 0 0 4px rgb(255 255 255 / .9); animation: load-in .9s var(--ease-pop) .8s both; transition: transform .25s var(--ease-pop), box-shadow .25s var(--ease-pop); }
.enquiry-fab:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -12px rgb(11 60 201 / .85), 0 0 0 4px rgb(255 255 255 / .9); }
.enquiry-fab::before { content: ""; position: absolute; top: 6px; right: 8px; width: .6rem; height: .6rem; border-radius: 50%; background: var(--color-lgreen); box-shadow: 0 0 0 2px var(--color-blue); animation: pulse 2s infinite; }
html.modal-open .enquiry-fab { opacity: 0; pointer-events: none; }
@media (max-width: 479px) { .enquiry-fab { padding: .8rem 1.1rem; } }

/* ---------- Social links ---------- */
.social { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--color-line); background: #fff; color: var(--color-ink); transition: transform .25s var(--ease-pop), background-color .25s, color .25s, border-color .25s; }
a.social:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
a.social-ig:hover { background: linear-gradient(45deg, #F58529, #DD2A7B 50%, #8134AF); }
a.social-li:hover { background: #0A66C2; }
a.social-yt:hover { background: #FF0000; }
.social-pills { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.social-pill { display: flex; align-items: center; gap: .7rem; min-height: 56px; padding: .5rem .8rem .5rem .5rem; border-radius: 999px; border: 1px solid var(--color-line); background: var(--color-paper); transition: border-color .2s, transform .25s var(--ease-pop); }
.social-pill:hover { transform: translateY(-2px); }
.social-pill.social-ig .social { color: #DD2A7B; } .social-pill.social-ig:hover { border-color: #DD2A7B; }
.social-pill.social-li .social { color: #0A66C2; } .social-pill.social-li:hover { border-color: #0A66C2; }
.social-pill.social-yt .social { color: #FF0000; } .social-pill.social-yt:hover { border-color: #FF0000; }

/* ---------- Log in link (navbar) ---------- */
.nav-login { display: inline-flex; align-items: center; gap: .4rem; min-height: 40px; padding: .4rem .75rem; border-radius: 999px; font-size: .9rem; font-weight: 700; color: var(--color-ink); transition: color .2s, background-color .2s; }
.nav-login svg { transition: transform .25s var(--ease-pop); }
.nav-login:hover { color: var(--color-blue); background: var(--color-tblue); }
.nav-login:hover svg { transform: translateX(3px); }

/* ---------- Candlestick pointer trail ---------- */
.candle-trail { position: fixed; inset: 0; z-index: 60; width: 100vw; height: 100vh; pointer-events: none; }

/* Enquiry popup: still scrolls, but the scrollbar is invisible */
.contact-modal { scrollbar-width: none; -ms-overflow-style: none; }
.contact-modal::-webkit-scrollbar { display: none; width: 0; height: 0; }
