/* ============================================================
   InvestorUday: styles (mobile-first)
   Colors are set from config.js → theme. These are fallbacks.
   ============================================================ */

:root {
  --bg: #ffffff;
  --tint: #f3f6fd;
  --ink: #0b1530;
  --ink-2: #2b3654;
  --muted: #5d6a85;
  --line: #e2e8f4;
  --accent: #1f5eff;
  --accent-hover: #1749d1;
  --accent-light: #7fa6ff;
  --accent-ink: #ffffff;
  --gold: #ffb547;
  --dark: #070e26;
  --dark-2: #0e1a45;
  --on-dark: #eef3ff;
  --on-dark-muted: #a9b6d6;
  --ok: #16a34a;
  --highlight: #fff1a8;

  --head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r: 12px;
  --r-lg: 20px;
  --gutter: 20px;
  --max: 1180px;
  --section-y: 80px;
  --nav-h: 68px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 820px; }

/* ---------- Placeholders (draft only) ---------- */
.is-ph {
  background: var(--highlight);
  color: #4a3b00 !important;
  outline: 1px dashed #c9a400;
  outline-offset: 2px;
  border-radius: 2px;
  -webkit-text-fill-color: currentColor;
}
.draft-notice { background: #2b2b2b; color: #ffe98a; font-size: 13px; text-align: center; padding: 6px var(--gutter); }
.draft-notice code { color: #fff; }

/* ---------- Type ---------- */
.h2 {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(30px, 6.4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
}
.h2--xl { font-size: clamp(34px, 7.6vw, 60px); }
.h3 { font-family: var(--head); font-size: 20px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}
.kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.kicker--light { color: var(--accent-light); }
.lead { font-size: 19px; color: var(--muted); max-width: 40em; }
.lead--light { color: var(--on-dark-muted); }
.hl {
  background: linear-gradient(100deg, var(--accent-light), #c7d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font: 700 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: background .2s ease, transform .2s var(--ease), box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid var(--accent-light); outline-offset: 3px; }
.btn--sm { min-height: 40px; padding: 8px 18px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 17px; }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); box-shadow: none; }
.btn--ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); box-shadow: none; }
.btn--outline { background: transparent; color: var(--accent); border-color: var(--accent); box-shadow: none; }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--white { background: #fff; color: var(--accent); }
.btn--white:hover { background: #eef3ff; }
.btn--block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--line); color: var(--muted); box-shadow: none; cursor: not-allowed; transform: none; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr, .link-arrow:hover .arr { transform: translateX(4px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); text-decoration: none; }
.link-arrow .arr { transition: transform .2s var(--ease); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--on-dark);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  margin: 0 0 22px;
}
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); animation: pulse 2.4s ease-in-out infinite; }

/* ---------- Check lists ---------- */
.checks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .2em;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 12%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231f5eff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--dark) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: var(--on-dark);
  transition: background .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { background: color-mix(in srgb, var(--dark) 94%, transparent); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.nav__inner { display: flex; align-items: center; gap: 20px; height: var(--nav-h); }
.logo { display: flex; flex-direction: column; line-height: 1.1; text-decoration: none; color: #fff; min-width: 0; }
.logo__name { font-family: var(--head); font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.logo__name b { color: var(--accent-light); font-weight: 800; }
.logo__tag { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-top: 4px; white-space: nowrap; }
.nav__links { display: none; }
.nav__cta { display: none; }
.nav__toggle {
  margin-left: auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-content: center;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: 10px;
}
.nav__toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav__link {
  position: relative;
  color: var(--on-dark-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 2px;
  transition: color .2s;
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link--hl { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.nav__link--hl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: pulse 2s infinite; }

/* Mobile menu */
.nav.is-open .nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  padding: 12px var(--gutter) 24px;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  animation: dropIn .25s var(--ease);
}
.nav.is-open .nav__link { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 48px 0 72px; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__glow {
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 80%;
  background: radial-gradient(60% 60% at 70% 80%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
              radial-gradient(40% 40% at 20% 100%, color-mix(in srgb, var(--accent-light) 25%, transparent), transparent 70%);
  animation: glowRise 2.4s var(--ease) both;
}
.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 30%, #000, transparent 75%);
}
.hero__inner { position: relative; display: grid; gap: 48px; align-items: center; }
.hero__visual { max-width: 520px; width: 100%; justify-self: center; }
.iceberg { width: 100%; height: auto; display: block; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.iceberg__body { animation: rise 1.6s var(--ease) .2s both, float 6s ease-in-out 1.8s infinite; }
.iceberg__wave { animation: wave 4s linear infinite; }
.iceberg__label { opacity: 0; animation: fadeIn .7s ease forwards; }
.iceberg__label--tip, .iceberg__label--cap { animation-delay: 1.2s; }
.iceberg__label--b0 { animation-delay: 1.8s; }
.iceberg__label--b1 { animation-delay: 2.1s; }
.iceberg__label--b2 { animation-delay: 2.4s; }
.iceberg__label--base { animation-delay: 2.8s; }
.hero__title {
  font-family: var(--head);
  font-weight: 800;
  font-size: clamp(38px, 10vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: #fff;
  text-wrap: balance;
}
.hero__sub { font-size: 19px; color: var(--on-dark-muted); max-width: 36em; margin: 0 0 32px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__ctas .btn { flex: 1 1 220px; }
.hero__ctas--center { justify-content: center; }
.hero__ctas--center .btn { flex: 0 1 auto; }
.hero__points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14px; color: var(--on-dark-muted); }
.hero__points li { display: inline-flex; align-items: center; gap: 8px; }
.hero__points li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-light); }


/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .h2 { color: #fff; }
.section-head { max-width: 760px; margin: 0 0 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Method phases */
.phases { display: grid; gap: 18px; position: relative; }
.phase {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s ease, border-color .3s;
}
.phase:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(11, 21, 48, .35); border-color: transparent; }
.phase::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--phase-color); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.phase.is-in::after { transform: scaleX(1); transition-delay: .3s; }
.phase__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--phase-bg); color: var(--phase-color); }
.phase__icon svg { width: 30px; height: 30px; }
.phase__name { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--phase-color); margin-bottom: 6px; display: block; }
.phase p { color: var(--muted); }
.phase__num { position: absolute; right: 22px; top: 18px; font-family: var(--head); font-weight: 800; font-size: 54px; line-height: 1; color: var(--line); }
.phase--a { --phase-color: var(--accent); --phase-bg: color-mix(in srgb, var(--accent) 10%, transparent); }
.phase--b { --phase-color: #d97706; --phase-bg: #fff6e6; }
.phase--c { --phase-color: #16a34a; --phase-bg: #e9f8ee; }
.method__closing { margin-top: 40px; text-align: center; font-size: 18px; }


/* Hero market widget */
.widget { background: color-mix(in srgb, var(--dark-2) 85%, transparent); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-lg); padding: 26px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.widget__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.widget__head small { display: block; font-size: 13px; color: var(--on-dark-muted); }
.widget__state { display: block; font-family: var(--head); font-size: 26px; color: #fff; margin-top: 2px; }
.link-arrow--light { color: var(--accent-light); margin-top: 6px; font-size: 16px; }

/* Course cards */
.courses { display: grid; gap: 24px; }
.course-card {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 24px 50px -36px rgba(11, 21, 48, .45);
  transition: transform .45s var(--ease), box-shadow .45s ease, border-color .3s;
}
.course-card:hover { transform: translateY(-10px); border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 40px 80px -36px color-mix(in srgb, var(--accent) 60%, transparent); }
.course-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--dark-2); }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__tag { position: absolute; left: 16px; top: 16px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: #fff; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.course-card__body { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 26px; flex: 1; }
.course-card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.course-card__chips span { font-size: 12px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); padding: 5px 10px; border-radius: 999px; }
.course-card__badge { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: #fff; background: linear-gradient(100deg, var(--accent), #7c3aed); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.course-card__badge svg { width: 16px; height: 16px; flex: none; }
.course-card--closed .course-card__badge { filter: grayscale(.6); opacity: .8; }
.course-card .h3 { font-size: 23px; line-height: 1.25; margin: 0 0 6px; }
.course-card__points { list-style: none; padding: 16px 0 0; margin: 0 0 8px; display: grid; gap: 10px; border-top: 1px dashed var(--line); }
.course-card__points li { position: relative; padding-left: 30px; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.course-card__points li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%231f5eff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.js-reveal .course-card__points li { opacity: 0; }
.js-reveal .course-card.is-in .course-card__points li { animation: popIn .5s var(--ease) forwards; animation-delay: calc(var(--d, 0s) + .35s + var(--i) * .1s); }
.course-card:hover .course-card__points li::before { animation: pulse 1.2s ease-in-out infinite; }
.course-card__cta { margin-top: auto; }

/* Market sentiment band (home) */
.sentiment-band { overflow: hidden; }
.sentiment-band::before { content: ""; position: absolute; width: 560px; height: 560px; right: -160px; top: -200px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 45%, transparent), transparent); pointer-events: none; }
.sentiment-band__inner { position: relative; display: grid; gap: 40px; align-items: center; }
.sentiment-band .lead { margin-bottom: 28px; }

/* Principles */
.principles { display: grid; gap: 18px; }
.principle { padding: 26px; border-radius: var(--r); background: var(--tint); position: relative; overflow: hidden; }
.principle__num { font-family: var(--head); font-weight: 800; font-size: 15px; color: var(--accent); display: block; margin-bottom: 14px; }
.principle p { color: var(--muted); font-size: 16px; }

/* ---------- Sentiment widgets (shared by teaser + tool) ---------- */
.phase-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 22px; }
.phase-meter__seg { position: relative; padding: 12px 8px 10px; border-radius: 12px; text-align: center; font-size: 13px; font-weight: 700; background: rgba(255, 255, 255, .05); color: var(--on-dark-muted); border: 1px solid rgba(255, 255, 255, .08); transition: all .5s var(--ease); }
.phase-meter__seg small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-bottom: 2px; }
.phase-meter__seg.is-active { color: #fff; background: color-mix(in srgb, var(--zone) 22%, transparent); border-color: var(--zone); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zone) 18%, transparent), 0 14px 30px -14px var(--zone); transform: translateY(-3px); }
.phase-meter__seg.is-active::after { content: ""; position: absolute; left: 50%; bottom: -8px; width: 8px; height: 8px; border-radius: 50%; background: var(--zone); transform: translateX(-50%); animation: pulse 1.8s infinite; }
.bar { margin-bottom: 16px; }
.bar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; margin-bottom: 8px; color: var(--on-dark-muted); }
.bar__top strong { font-family: var(--head); font-size: 22px; color: #fff; }
.bar__track { position: relative; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width 1.4s var(--ease); }
.bar__track::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(255, 255, 255, .25); }
.status-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--zone) 25%, transparent); border: 1px solid var(--zone); }
.status-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--zone); animation: pulse 1.8s infinite; }
.sample-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #4a3b00; background: var(--highlight); padding: 4px 10px; border-radius: 999px; }

/* About */
.about { display: grid; gap: 40px; align-items: center; }
.about__photo { position: relative; max-width: 440px; width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
.about__photo::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border-radius: var(--r-lg); background: linear-gradient(140deg, var(--accent), var(--accent-light)); z-index: -1; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: var(--r-lg); }
.about__photo { isolation: isolate; }
.about__photo--ph { display: grid; place-items: center; border: 2px dashed #c9a400; background: #fffbe3; }
.about__role { color: var(--accent); font-weight: 700; margin-top: -6px; }
.about__story p { font-size: 18px; color: var(--ink-2); }
.about__quote { margin: 28px 0 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--tint); border-radius: 0 var(--r) var(--r) 0; font-family: var(--head); font-weight: 700; font-size: 19px; line-height: 1.4; color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s, box-shadow .2s; }
.faq__item.is-open { border-color: color-mix(in srgb, var(--accent) 40%, transparent); box-shadow: 0 16px 40px -28px color-mix(in srgb, var(--accent) 70%, transparent); }
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: 0;
  text-align: left;
  font: 700 17px/1.4 var(--sans);
  color: var(--ink);
  cursor: pointer;
}
.faq__q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r); }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); transition: background .2s, transform .3s var(--ease); }
.faq__icon::before,
.faq__icon::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; background: var(--accent); transition: transform .3s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__item.is-open .faq__icon { background: var(--accent); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: rotate(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-inner p { padding: 0 22px 20px; color: var(--muted); }
.faq__q[aria-expanded="false"] + .faq__a { visibility: hidden; transition: grid-template-rows .35s var(--ease), visibility 0s .35s; }

/* Final CTA */
.final__card {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 64px 24px;
  border-radius: 28px;
  background: linear-gradient(160deg, var(--dark-2), var(--dark) 70%);
  color: var(--on-dark);
  isolation: isolate;
}
.final__card .h2 { color: #fff; max-width: 14em; margin-left: auto; margin-right: auto; }
.final__card .lead { margin: 0 auto 30px; }
.final__glow { position: absolute; left: 50%; bottom: -260px; width: 520px; height: 520px; margin-left: -260px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 75%, transparent), color-mix(in srgb, var(--accent) 25%, transparent) 60%, transparent); animation: breathe 6s ease-in-out infinite; }

/* ---------- Track page ---------- */
.page-hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 40px 0 64px; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 640px; height: 640px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 50%, transparent), transparent); z-index: -1; }
.page-hero .h2 { color: #fff; font-size: clamp(34px, 8vw, 60px); }
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--on-dark-muted); text-decoration: none; margin-bottom: 26px; transition: color .2s; }
.crumb:hover { color: #fff; }
.page-hero .pill { margin-bottom: 18px; }
.page-hero .lead { color: var(--on-dark-muted); }

/* ---------- Tool page ---------- */
.tool-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.tool-tab { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--on-dark-muted); border: 1px solid rgba(255, 255, 255, .14); }
.tool-tab.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }
.tool-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); }
.market { background: var(--dark); color: var(--on-dark); border-radius: var(--r-lg); padding: 26px 22px; box-shadow: 0 40px 80px -40px rgba(7, 14, 38, .8); border: 1px solid rgba(255, 255, 255, .08); }
.market__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.market__head h3 { color: #fff; margin: 0; font-size: 22px; }
.market__head small { display: block; color: var(--on-dark-muted); font-size: 14px; }
.market__grid { display: grid; gap: 22px; margin-top: 8px; }
.alloc { text-align: center; padding: 24px 18px; border-radius: var(--r); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.alloc__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.alloc__value { font-family: var(--head); font-size: clamp(44px, 12vw, 64px); font-weight: 800; color: #fff; line-height: 1.1; margin: 8px 0; }
.alloc__ring { width: 150px; height: 150px; margin: 6px auto 10px; }
.alloc__ring circle { fill: none; stroke-width: 12; }
.alloc__ring .ring-bg { stroke: rgba(255, 255, 255, .08); }
.alloc__ring .ring-fg { stroke: var(--zone); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 1.6s var(--ease); }
.market__comment { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .08); color: var(--on-dark); }
.zones { display: grid; gap: 14px; }
.zone { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); border-top: 4px solid var(--zone); }
.zone.is-current { box-shadow: 0 0 0 2px var(--zone), 0 24px 50px -30px var(--zone); }
.zone__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.zone__phase { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.zone__alloc { font-size: 14px; font-weight: 700; color: var(--ink); background: var(--tint); padding: 4px 10px; border-radius: 999px; }
.zone p { color: var(--muted); font-size: 16px; }
.tool-note { padding: 22px; border-radius: var(--r); background: var(--tint); color: var(--ink-2); }
.tool-disclaimer { font-size: 14px; color: var(--muted); margin-top: 18px; }


/* ---------- Extra layout helpers ---------- */
.section--sm { padding: calc(var(--section-y) * .7) 0; }
.section--flush { padding: 0 0 calc(var(--section-y) * .5); margin-top: -40px; z-index: 2; }
.h2--sm { font-size: clamp(26px, 5vw, 36px); margin-bottom: 28px; }
.bar__top em { font-style: normal; opacity: .7; }

/* Allocation ring */
.alloc__ring-wrap { position: relative; width: 170px; height: 170px; margin: 10px auto 16px; }
.alloc__ring-wrap .alloc__ring { width: 100%; height: 100%; margin: 0; }
.alloc__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.alloc__center .alloc__value { font-size: 36px; margin: 0; }
.alloc__center span { font-size: 12px; color: var(--on-dark-muted); max-width: 9em; line-height: 1.3; }

/* Zones */
.zone { position: relative; }
.zone__rule { font-weight: 700; color: var(--ink) !important; font-size: 15px !important; }
.zone__now { position: absolute; top: -12px; right: 16px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--zone); padding: 4px 10px; border-radius: 999px; animation: pulse 2s infinite; }

/* Breadth explainers */
.explainers { display: grid; gap: 18px; }
.explainer { padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.explainer:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -32px rgba(11, 21, 48, .4); }
.explainer__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: #fff; margin-bottom: 18px; }
.explainer__icon svg { width: 26px; height: 26px; }
.explainer p { color: var(--muted); font-size: 16px; }

/* Steps (Friday routine) */
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: none; }
.step-row { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: center; padding: 18px 20px; border-radius: var(--r); background: var(--tint); }
.step-row__num { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--head); font-weight: 800; }
.step-row strong { font-family: var(--head); }
.step-row span:last-child { color: var(--muted); font-size: 16px; }

/* Backtest results */
.results { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.result { padding: 22px 18px; border-radius: var(--r); background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); }
.result strong { display: block; font-family: var(--head); font-size: clamp(22px, 5vw, 32px); font-weight: 800; color: var(--gold); line-height: 1.15; margin-bottom: 8px; }
.result span { font-size: 14px; color: var(--on-dark-muted); }
.results__note { margin-top: 24px; color: var(--on-dark-muted); max-width: 52em; font-size: 16px; }

/* Can / cannot */
.cancan { display: grid; gap: 18px; }
.cancan__col { padding: 26px; border-radius: var(--r-lg); background: var(--tint); }
.cancan__col ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.cancan__col li { position: relative; padding-left: 28px; color: var(--ink-2); }
.cancan__col li::before { position: absolute; left: 0; font-weight: 800; }
.cancan__col--yes li::before { content: "✓"; color: var(--ok); }
.cancan__col--no li::before { content: "!"; color: #d97706; left: 6px; }
.tool-closing { margin: 48px auto 0; text-align: center; max-width: 18em; font-family: var(--head); font-weight: 800; font-size: clamp(26px, 5.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.tool-disclaimer { text-align: center; }


/* ---------- Tools dropdown (nav) ---------- */
.nav__dd { position: relative; }
.nav__dd-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav__dd-btn::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: pulse 2s infinite; }
.nav__dd-caret { display: inline-flex; transition: transform .25s var(--ease); }
.nav__dd.is-open .nav__dd-caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute;
  top: calc(100% + 14px);
  right: -12px;
  width: 340px;
  padding: 8px;
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(7, 14, 38, .45), 0 0 0 1px var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .25s var(--ease), visibility 0s .25s;
}
.nav__dd.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .25s var(--ease); }
/* Invisible bridge so the menu stays open while the pointer crosses the gap */
.nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; }
@media (hover: hover) and (min-width: 1200px) {
  .nav__dd:hover .nav__menu, .nav__dd:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .25s var(--ease); }
  .nav__dd:hover .nav__dd-caret, .nav__dd:focus-within .nav__dd-caret { transform: rotate(180deg); }
}
.nav__menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .15s; }
.nav__menu-item:hover, .nav__menu-item.is-active { background: var(--tint); }
.nav__menu-item strong { display: block; font-size: 15px; }
.nav__menu-item small { display: block; font-size: 13px; color: var(--muted); }
.nav__menu-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.nav__menu-icon svg { width: 18px; height: 18px; }
.nav.is-open .nav__dd-btn { width: 100%; justify-content: flex-start; padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .06); color: #fff; }
.nav.is-open .nav__menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; background: transparent; box-shadow: none; padding: 4px 0 8px; display: none; }
.nav.is-open .nav__dd.is-open .nav__menu { display: block; }
.nav.is-open .nav__menu-item { color: var(--on-dark); }
.nav.is-open .nav__menu-item small { color: var(--on-dark-muted); }
.nav.is-open .nav__menu-item:hover, .nav.is-open .nav__menu-item.is-active { background: rgba(255, 255, 255, .06); }

/* ---------- Closed course ---------- */
.course-card__ribbon { position: absolute; right: 14px; top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: #dc2626; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .6); }
.course-card--closed .course-card__media img { filter: saturate(.55) brightness(.8); }
.course-card__note { margin: 4px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff6e6; color: #92400e; font-weight: 700; font-size: 15px; }

/* ---------- Tools list (end of home) ---------- */
.tool-links { display: grid; gap: 12px; }
.tool-link { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.tool-link:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 20px 40px -30px var(--accent); }
.tool-link strong { display: block; font-family: var(--head); font-size: 16px; }
.tool-link small { display: block; color: var(--muted); font-size: 14px; }
.tool-link__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.tool-link__icon svg { width: 20px; height: 20px; }
.tool-link .arr { margin-left: auto; color: var(--accent); font-weight: 800; transition: transform .2s; }
.tool-link:hover .arr { transform: translateX(4px); }

/* ---------- Calculators ---------- */
.calc { display: grid; gap: 28px; padding: 26px 22px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(7, 14, 38, .6); }
.calc__form { display: grid; gap: 20px; align-content: start; min-width: 0; }
.calc__out { min-width: 0; }
.calc__label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.calc__input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--tint); font: 700 17px var(--sans); color: var(--ink); transition: border-color .2s, background .2s; }
.calc__input:focus { outline: none; border-color: var(--accent); background: var(--bg); }
.calc__range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin-top: 14px; border-radius: 999px; background: linear-gradient(90deg, var(--accent) var(--p, 0%), var(--line) var(--p, 0%)); cursor: pointer; }
.calc__range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); box-shadow: 0 2px 8px rgba(7, 14, 38, .25); transition: transform .15s; }
.calc__range::-webkit-slider-thumb:active { transform: scale(1.2); }
.calc__range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.calc__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc__tile { padding: 16px; border-radius: 14px; background: var(--tint); }
.calc__tile span { display: block; font-size: 13px; font-weight: 700; color: var(--muted); }
.calc__tile strong { display: block; font-family: var(--head); font-size: 20px; color: var(--ink); margin-top: 4px; word-break: break-word; }
.calc__tile--big { grid-column: 1 / -1; background: var(--dark); }
.calc__tile--big span { color: var(--on-dark-muted); }
.calc__tile--big strong { font-size: clamp(30px, 7vw, 42px); color: #fff; animation: popIn .4s var(--ease); }
.calc__error { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #fdecec; color: #b91c1c; font-weight: 600; font-size: 15px; }
.calc__toggle { margin-top: 10px; background: none; border: 0; padding: 6px 0; font: 700 15px var(--sans); color: var(--accent); cursor: pointer; }
.calc__table-wrap { margin-top: 14px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.calc__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.calc__table th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--tint); padding: 10px 14px; }
.calc__table td { padding: 10px 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.calc__table tr.is-hot td { background: color-mix(in srgb, var(--accent) 10%, transparent); font-weight: 800; color: var(--accent); }

/* Growth chart */
.chart { margin: 22px 0 0; }
.chart__title { font-family: var(--head); font-weight: 700; font-size: 16px; }
.chart__legend { display: flex; gap: 18px; margin: 6px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.chart__key { display: inline-flex; align-items: center; gap: 6px; }
.chart__key::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.chart__key--inv::before { background: #8a99bd; }
.chart__key--gain::before { background: var(--accent); }
.chart__box { position: relative; }
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__axis { font: 600 11px var(--sans); fill: var(--muted); }
.chart__inv { fill: #8a99bd; }
.chart__gain { fill: var(--accent); }
.chart__bar { transition: opacity .2s; }
.chart__svg:hover .chart__bar:not(.is-hover) { opacity: .55; }
.chart__tip { position: absolute; top: 0; transform: translateX(-50%); padding: 10px 12px; border-radius: 10px; background: var(--dark); color: #fff; font-size: 13px; line-height: 1.45; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.chart__tip.is-on { opacity: 1; }
.chart__tip strong, .chart__tip span { display: block; }


/* ---------- Overview pages (Tools / Trackers) ---------- */
.hub { display: grid; gap: 18px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; padding: 26px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: 0 30px 60px -48px rgba(7, 14, 38, .6); transition: transform .35s var(--ease), border-color .3s, box-shadow .35s; }
.hub-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 34px 70px -36px color-mix(in srgb, var(--accent) 55%, transparent); }
.hub-card__icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #000)); margin-bottom: 6px; transition: transform .35s var(--ease); }
.hub-card:hover .hub-card__icon { transform: rotate(-6deg) scale(1.06); }
.hub-card__icon svg { width: 24px; height: 24px; }
.hub-card .h3 { margin: 0; }
.hub-card p { color: var(--muted); font-size: 16px; margin: 0; }
.hub-card .link-arrow { margin-top: auto; padding-top: 8px; }

/* ---------- Trackers ---------- */
.track-card { padding: 24px 20px; border-radius: var(--r-lg); background: var(--bg); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(7, 14, 38, .6); }
.track-updated { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, transparent); padding: 5px 12px; border-radius: 999px; margin: 0 0 18px; }
.track-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; white-space: pre-wrap; }
.track-sub { margin: 26px 0 12px; font-size: 18px; }
.track-table td.name strong { display: block; }
.track-table td.name small { display: block; color: var(--muted); font-size: 13px; }
.track-table .rank { color: var(--muted); font-weight: 700; width: 36px; }
.track-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.track-table td { vertical-align: middle; }
.num.pos, .pos.num { color: #15803d; font-weight: 700; }
.num.neg, .neg.num { color: #b91c1c; font-weight: 700; }
.trend-chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; margin: 2px 4px 2px 0; white-space: nowrap; }
.trend-chip.is-up { background: #e9f8ee; color: #15803d; }
.trend-chip.is-down { background: #fdecec; color: #b91c1c; }
.strength { min-width: 150px; white-space: nowrap; }
.strength__bar { position: relative; display: inline-block; vertical-align: middle; width: 90px; height: 8px; border-radius: 999px; background: var(--tint); margin-right: 10px; }
.strength__bar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--muted); opacity: .5; }
.strength__fill { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.strength__fill.pos { background: #22c55e; }
.strength__fill.neg { background: #ef4444; }
.strength__num { font-size: 14px; }
.leaders { display: grid; gap: 14px; margin-bottom: 22px; }
.leaders__col { padding: 18px; border-radius: var(--r); border-top: 4px solid; background: var(--tint); }
.leaders__col.is-lead { border-color: #22c55e; }
.leaders__col.is-lag { border-color: #ef4444; }
.leaders__col .h3 { font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.leaders__item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-weight: 600; }
.leaders__item:last-child { border-bottom: 0; }
.stock-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.stock-chips span { font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: #e9f8ee; color: #15803d; }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.cat-pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font: 700 14px var(--sans); color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cat-pill:hover { border-color: var(--accent); color: var(--accent); }
.cat-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart__zero { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.chart__up { fill: #22c55e; }
.chart__down { fill: #ef4444; }
.chart__key--up::before { background: #22c55e; }
.chart__key--down::before { background: #ef4444; }


/* ---------- Sortable tables ---------- */
.rank-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.rank-bar__label { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.rank-bar__hint { margin-left: auto; font-size: 13px; color: var(--muted); }
.rank-btn { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font: 700 13px var(--sans); color: var(--ink-2); cursor: pointer; }
.rank-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sort-btn { background: none; border: 0; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.sort-btn::after { content: "↕"; opacity: .35; font-size: 11px; }
th[aria-sort="descending"] .sort-btn::after { content: "↓"; opacity: 1; color: var(--accent); }
th[aria-sort="ascending"] .sort-btn::after { content: "↑"; opacity: 1; color: var(--accent); }
th.is-sorted { color: var(--accent); }
.calc__table th.num { text-align: right; }

/* ---------- Strategy tester ---------- */
.bt .calc__form { gap: 16px; }
.bt-chips { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.bt-chip { display: flex; align-items: center; gap: 8px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--tint); font-size: 14px; font-weight: 600; border-left: 4px solid #1f5eff; }
.bt-chip--1 { border-left-color: #ea580c; }
.bt-chip--2 { border-left-color: #0d9488; }
.bt-chip span { flex: 1; min-width: 0; }
.bt-chip button { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); font-size: 16px; cursor: pointer; }
.bt-chip button:hover { color: #b91c1c; }
.bt-search { position: relative; }
.bt-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; border-radius: 12px; background: var(--bg); box-shadow: 0 20px 40px -16px rgba(7, 14, 38, .4), 0 0 0 1px var(--line); overflow: hidden; }
.bt-results:empty { display: none; }
.bt-result { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.bt-result:hover { background: var(--tint); }
.bt-result small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.bt-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.bt-loading { color: var(--muted); font-weight: 600; animation: pulse 1.2s infinite; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--tint); }
.seg__btn { padding: 8px 16px; border-radius: 9px; border: 0; background: none; font: 700 14px var(--sans); color: var(--ink-2); cursor: pointer; }
.seg__btn.is-active { background: var(--bg); color: var(--accent); box-shadow: 0 2px 8px rgba(7, 14, 38, .12); }
.bt-table td.name { min-width: 200px; }
.bt-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 1px; }
.bt .calc__table-wrap { margin-top: 16px; }
.chart__key--line::before { background: var(--key); height: 3px; border-radius: 2px; }
.chart__key--dash::before { height: 0; border-top: 2px dashed #8a99bd; background: none; border-radius: 0; }
.chart__line { fill: none; stroke-width: 2; stroke-linejoin: round; }
.chart__invested { fill: none; stroke: #8a99bd; stroke-width: 2; stroke-dasharray: 5 5; }
.chart__cross { stroke: var(--muted); stroke-width: 1; opacity: 0; }
.chart__dot { opacity: 0; stroke: #fff; stroke-width: 2; }
.chart__svg.is-hover .chart__cross, .chart__svg.is-hover .chart__dot { opacity: 1; }


/* ---------- End of home: strategy tester card + lists ---------- */
.tester-card { position: relative; display: grid; gap: 18px; align-items: center; padding: 28px; margin-bottom: 36px; border-radius: 24px; text-decoration: none; color: #fff; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--dark-2), var(--dark) 70%); box-shadow: 0 40px 80px -40px rgba(7, 14, 38, .7); transition: transform .35s var(--ease); }
.tester-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 60%, transparent), transparent); animation: breathe 6s ease-in-out infinite; }
.tester-card:hover { transform: translateY(-4px); }
.tester-card__icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--accent); box-shadow: 0 14px 30px -12px var(--accent); }
.tester-card__icon svg { width: 30px; height: 30px; }
.tester-card__body strong { display: block; font-family: var(--head); font-size: clamp(22px, 4vw, 30px); letter-spacing: -.02em; margin-bottom: 6px; }
.tester-card__body span { display: block; color: var(--on-dark-muted); max-width: 40em; }
.tester-card__cta { justify-self: start; }
.end-lists { display: grid; gap: 28px; }
.end-lists__h { font-size: 15px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.end-lists .tool-links { grid-template-columns: 1fr; }


/* ---------- Contact / Privacy / Terms ---------- */
.page-hero--short { padding-bottom: 48px; }
.contact-cards { display: grid; gap: 14px; margin-bottom: 36px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--bg); text-decoration: none; color: inherit; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 20px 40px -30px var(--accent); }
.contact-card strong { font-family: var(--head); font-size: 19px; }
.contact-card__handle { color: var(--accent); font-weight: 700; }
.contact-card p { color: var(--muted); font-size: 16px; margin: 6px 0 10px; }
.legal { padding: 22px 0; border-top: 1px solid var(--line); }
.legal .h3 { margin-bottom: 10px; }
.legal p { color: var(--ink-2); font-size: 17px; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark-muted); padding: 64px 0 28px; font-size: 15px; }
.footer__top { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__name { display: block; font-family: var(--head); font-weight: 800; font-size: 22px; color: #fff; }
.footer__tag { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: 4px 0 14px; }
.footer__h { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer__disclaimer { font-size: 13px; line-height: 1.6; margin: 24px 0; opacity: .8; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- View transitions ---------- */
.view { animation: viewIn .5s var(--ease); }

/* ---------- Scroll reveal ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes glowRise { from { opacity: 0; transform: translateY(80px); } to { opacity: 1; transform: none; } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes wave { to { transform: translateX(80px); } }
@keyframes popIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .iceberg__label { opacity: 1; }
}

/* ============================================================
   Larger screens
   ============================================================ */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .phases { grid-template-columns: repeat(3, 1fr); }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .zones { grid-template-columns: repeat(3, 1fr); }
  .footer__top { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; }
  .tool-links { grid-template-columns: repeat(2, 1fr); }
  .hub { grid-template-columns: repeat(2, 1fr); }
  .contact-cards { grid-template-columns: repeat(3, 1fr); }
  .leaders { grid-template-columns: 1fr 1fr; }
  .track-card { padding: 32px; }
  .calc__tiles { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  :root { --section-y: 120px; --nav-h: 76px; }
  body { font-size: 18px; }
  .hero { padding: 88px 0 120px; }
  .hero__inner { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .hero__ctas .btn { flex: 0 0 auto; }
  .principles { grid-template-columns: repeat(4, 1fr); }
  .courses { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .sentiment-band__inner { grid-template-columns: 1fr 1.05fr; gap: 72px; }
  .about { grid-template-columns: 440px 1fr; gap: 80px; }
  .final__card { padding: 96px 48px; }
  .page-hero { padding: 56px 0 104px; }
  .market { padding: 36px; }
  .market__grid { grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
  .explainers { grid-template-columns: repeat(3, 1fr); }
  .results { grid-template-columns: repeat(4, 1fr); }
  .cancan { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 340px 1fr; gap: 44px; padding: 36px; }
  .tool-links { grid-template-columns: repeat(3, 1fr); }
  .hub { grid-template-columns: repeat(3, 1fr); }
  .tester-card { grid-template-columns: auto 1fr auto; padding: 36px 40px; }
  .end-lists { grid-template-columns: 1fr 1fr; gap: 40px; }
  .step-row { grid-template-columns: 44px 220px 1fr; }
  .step-row__num { grid-row: auto; }
  .section--flush { margin-top: -64px; }
}

/* Full top bar only where everything fits on one line; below this the ☰ menu is used */
@media (min-width: 1200px) {
  .nav__toggle { display: none; }
  .nav__links { display: flex; align-items: center; gap: 24px; margin-left: auto; }
  .nav__cta { display: inline-flex; white-space: nowrap; }
  .nav__link { white-space: nowrap; }
}
