:root {
  --bg: #eef3f2;
  --bg-deep: #071a23;
  --surface: #ffffff;
  --surface-soft: #f6faf9;
  --surface-tint: #edf7f4;
  --ink: #10202b;
  --ink-soft: #253846;
  --muted: #5a6a77;
  --line: #d9e5e3;
  --line-strong: #b8cbc7;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-bright: #2dd4bf;
  --blue: #2357c5;
  --gold: #c0841a;
  --warning: #fff8e6;
  --warning-line: #ead8aa;
  --shadow-sm: 0 1px 2px rgba(8, 27, 38, 0.06);
  --shadow-md: 0 18px 48px rgba(8, 27, 38, 0.10);
  --shadow-lg: 0 28px 80px rgba(8, 27, 38, 0.16);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-body: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-ui: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.20), transparent 360px),
    linear-gradient(180deg, #f7fbfa 0, var(--bg) 520px);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
}

a {
  color: var(--accent-strong);
  text-underline-offset: 3px;
}

a:hover {
  color: #073f3b;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(184, 203, 199, 0.65);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--bg-deep), var(--accent-strong));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.12rem;
  box-shadow: 0 10px 26px rgba(15, 118, 110, 0.22);
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.9rem;
}

.main-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #334653;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover {
  background: var(--surface-tint);
  color: var(--accent-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto;
}

.layout-wide {
  grid-template-columns: 1fr;
}

main,
.sidebar,
.site-footer {
  min-width: 0;
}

.page,
.sidebar-panel,
.site-footer {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page {
  padding: clamp(18px, 3vw, 36px);
}

.homepage {
  padding: clamp(18px, 3.2vw, 42px);
  overflow: hidden;
}

.home-hero,
.page-hero,
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: stretch;
  margin: -10px -10px 34px;
  padding: clamp(28px, 5vw, 62px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 88% 12%, rgba(45, 212, 191, 0.32), transparent 210px),
    linear-gradient(135deg, #071a23 0%, #0d2d35 58%, #0f4643 100%);
  color: #f7fffd;
  box-shadow: var(--shadow-lg);
}

.compact-hero {
  grid-template-columns: minmax(0, 1fr) 220px;
}

.home-hero h1,
.page-hero h1,
.hero-panel h1 {
  color: #fff;
}

.home-hero .lead,
.page-hero .lead,
.hero-panel .lead {
  color: #cfe4e1;
}

.home-hero-copy {
  display: grid;
  align-content: center;
}

.hero-dashboard-card,
.ticker-badge,
.versus-card {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(207, 228, 225, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.10);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}

.dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.10);
}

.hero-logo-pair {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  min-width: 112px;
  max-width: 112px;
  isolation: isolate;
}

.hero-logo-pair .brand-logo,
.hero-logo-pair .ticker-chip {
  flex: 0 0 auto;
}

.hero-logo-pair .brand-logo--xs {
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.hero-logo-pair .brand-logo + .brand-logo,
.hero-logo-pair .ticker-chip + .ticker-chip,
.hero-logo-pair .brand-logo + .ticker-chip,
.hero-logo-pair .ticker-chip + .brand-logo {
  margin-left: 6px;
}

.tv-badge {
  --badge-a: #1d4ed8;
  --badge-b: #0f766e;
  --badge-ink: #ffffff;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 255, 255, 0.42), transparent 18px),
    linear-gradient(135deg, var(--badge-a), var(--badge-b));
  color: var(--badge-ink);
  box-shadow: 0 14px 32px rgba(8, 27, 38, 0.16);
  text-decoration: none;
}

.tv-badge__mark {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
}

.tv-badge strong {
  position: relative;
  z-index: 1;
  margin: 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.tv-badge--xs {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.tv-badge--xs .tv-badge__mark {
  inset: 6px;
  border-radius: 9px;
}

.tv-badge--xs strong {
  font-size: 0.68rem;
}

.tv-badge--sm {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.tv-badge--lg {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.tv-badge--lg strong {
  font-size: 1.05rem;
}

.tv-badge--tech {
  --badge-a: #1d4ed8;
  --badge-b: #4f46e5;
}

.tv-badge--semiconductor {
  --badge-a: #4338ca;
  --badge-b: #0e7490;
}

.tv-badge--etf {
  --badge-a: #047857;
  --badge-b: #0f766e;
}

.tv-badge--communication {
  --badge-a: #3730a3;
  --badge-b: #2563eb;
}

.tv-badge--consumer {
  --badge-a: #c2410c;
  --badge-b: #b91c1c;
}

.tv-badge--default {
  --badge-a: #334155;
  --badge-b: #0f766e;
}

.brand-logo {
  position: relative;
  display: inline-grid;
  width: 58px;
  height: 58px;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 18px;
}

.brand-logo--xs {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.brand-logo--sm {
  width: 48px;
  height: 48px;
  border-radius: 15px;
}

.brand-logo--lg {
  width: 72px;
  height: 72px;
  border-radius: 22px;
}

.brand-logo img {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: inherit;
  background: #fff;
  object-fit: contain;
  box-shadow: var(--shadow-sm);
}

.brand-logo__fallback {
  /* Hidden while the logo image is present. Showing it underneath caused the
     wider ticker chip to peek out around the logo tile (icons over text). */
  display: none;
  grid-area: 1 / 1;
  place-items: center;
}

.brand-logo--fallback-active img {
  display: none;
}

.brand-logo--fallback-active .brand-logo__fallback {
  display: inline-grid;
}

.brand-logo .ticker-chip {
  box-shadow: none;
}

.ticker-chip {
  --chip-accent: #0f766e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--chip-accent) 26%, var(--line));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 252, 250, 0.92)),
    color-mix(in srgb, var(--chip-accent) 8%, transparent);
  color: var(--chip-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ticker-chip strong {
  color: inherit;
  font-family: var(--font-ui);
  font-size: 0.94rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
}

.ticker-chip--xs {
  min-width: 44px;
  min-height: 28px;
  padding: 6px 9px;
}

.ticker-chip--sm {
  min-width: 54px;
  min-height: 34px;
  padding: 7px 10px;
}

.ticker-chip--lg {
  min-width: 76px;
  min-height: 46px;
  padding: 10px 14px;
}

.ticker-chip--xs strong {
  font-size: 0.74rem;
}

.ticker-chip--sm strong {
  font-size: 0.84rem;
}

.ticker-chip--lg strong {
  font-size: 1.02rem;
}

.ticker-chip--tech {
  --chip-accent: #2563eb;
}

.ticker-chip--semiconductor {
  --chip-accent: #0e7490;
}

.ticker-chip--etf {
  --chip-accent: #047857;
}

.ticker-chip--communication {
  --chip-accent: #3730a3;
}

.ticker-chip--consumer {
  --chip-accent: #c2410c;
}

.tv-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 75% 20%, rgba(45, 212, 191, 0.28), transparent 18px),
    linear-gradient(135deg, #ffffff, var(--surface-tint));
  color: var(--accent-strong);
  box-shadow: var(--shadow-sm);
}

.home-hero .tv-icon,
.page-hero .tv-icon {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.12);
  color: var(--accent-bright);
}

.tv-icon svg {
  display: block;
  width: 24px !important;
  height: 24px !important;
  max-width: 24px;
  max-height: 24px;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tv-icon svg path,
.tv-icon svg rect,
.tv-icon svg circle,
.tv-icon svg line,
.tv-icon svg polyline,
.tv-icon svg polygon {
  fill: none !important;
  stroke: currentColor !important;
}

.tv-icon--ai {
  color: #2563eb;
}

.tv-icon--semiconductor {
  color: #4338ca;
}

.tv-icon--magnificent {
  color: #b45309;
}

.tv-icon--etf,
.tv-icon--calculator {
  color: var(--accent-strong);
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.hero-title-row h1 {
  margin-bottom: 0;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}

.metric-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.metric-chip--good {
  border-color: #a7d7ca;
  background: #e8f7f3;
  color: #0b5f59;
}

.metric-chip--warning {
  border-color: #ead8aa;
  background: #fff8e6;
  color: #8a5a0a;
}

.metric-chip--tech,
.metric-chip--semiconductor,
.metric-chip--communication {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
}

.metric-chip--consumer {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.metric-chip--etf {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.dashboard-row > span,
.ticker-badge span,
.ticker-badge small,
.versus-card span {
  color: #cfe4e1;
  font-size: 0.84rem;
  font-weight: 750;
}

.home-hero .ticker-chip,
.page-hero .ticker-chip,
.dashboard-row .ticker-chip {
  background:
    linear-gradient(180deg, #ffffff, #eef8f6),
    color-mix(in srgb, var(--chip-accent) 8%, transparent);
  color: var(--chip-accent);
}

.home-hero .ticker-chip strong,
.page-hero .ticker-chip strong,
.dashboard-row .ticker-chip strong {
  color: inherit;
}

.dashboard-row strong,
.ticker-badge strong,
.versus-card strong {
  color: #fff;
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1.1;
}

.versus-card {
  justify-items: center;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-bright);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.16;
}

h1 {
  max-width: 900px;
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 5vw, 4.8rem);
  font-weight: 760;
  letter-spacing: -0.035em;
}

h2 {
  margin: 40px 0 16px;
  font-family: var(--font-display);
  font-size: clamp(1.42rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
}

.lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.button-link.primary {
  border-color: var(--accent-bright);
  background: var(--accent-bright);
  color: #062225;
}

.button-link.ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.button-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.research-card-grid,
.comparison-card-grid,
.tool-card-grid,
.metric-grid,
.card-grid,
.insight-grid,
.split,
.winner-grid {
  display: grid;
  gap: 16px;
}

.research-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.comparison-card-grid,
.tool-card-grid,
.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid,
.winner-grid,
.split,
.insight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.research-card,
.comparison-card,
.tool-card,
.metric-card,
.insight-card,
.winner-card,
.range-card,
.empty-state,
.utility-panel,
.sitemap-group {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--surface-soft));
  box-shadow: var(--shadow-sm);
}

.research-card,
.tool-card,
.sector-card,
.next-step-card {
  display: grid;
  align-content: start;
  gap: 10px;
}

.badge-pair {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.badge-pair--hero {
  gap: 10px;
}

.card-subtitle {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.section-note {
  margin: -6px 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 60ch;
}

.order-reason {
  color: var(--muted);
  font-size: 0.86rem;
}

.cmp-moves {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 8px;
}

.cmp-move {
  font-size: 0.82rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cmp-move.up { color: #0b7a5b; }
.cmp-move.down { color: #b42318; }

.cmp-move-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-price-card {
  justify-items: start;
}

.hero-price-card .ticker-chip,
.hero-price-card .brand-logo {
  margin-bottom: 4px;
}

.research-card,
.comparison-card,
.tool-card,
.link-card {
  color: var(--ink);
  text-decoration: none;
}

.research-card:hover,
.comparison-card:hover,
.tool-card:hover,
.link-card:hover {
  border-color: #94b8b2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.research-card span,
.comparison-card span,
.tool-card span,
.metric-card span,
.metric-card small,
.winner-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.research-card .tv-icon,
.tool-card .tv-icon,
.sector-card .tv-icon,
.next-step-card .tv-icon,
.hero-title-row .tv-icon,
.dashboard-row .tv-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  color: var(--accent-strong);
  font-size: initial;
  font-weight: initial;
  letter-spacing: normal;
  text-transform: none;
}

.research-card .ticker-chip,
.comparison-card .ticker-chip,
.next-step-card .ticker-chip,
.table-ticker-link .ticker-chip,
.brand-logo .ticker-chip {
  display: inline-grid;
  color: var(--chip-accent);
  font-size: initial;
  font-weight: initial;
  letter-spacing: normal;
  text-transform: none;
}

.research-card .ticker-chip strong,
.comparison-card .ticker-chip strong,
.next-step-card .ticker-chip strong,
.table-ticker-link .ticker-chip strong,
.brand-logo .ticker-chip strong {
  display: block;
  margin: 0;
  color: inherit;
}

.research-card strong,
.comparison-card strong,
.tool-card strong,
.metric-card strong,
.winner-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1.22;
}

.research-card small,
.tool-card small,
.metric-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.tool-card span {
  display: inline-grid;
}

.sector-card-grid,
.link-list {
  display: grid;
  gap: 14px;
}

.sector-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sector-card,
.link-list a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #243847;
  font-size: 0.92rem;
  font-weight: 780;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.sector-card {
  min-height: 132px;
  border-radius: var(--radius);
}

.sector-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
}

.sector-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.sector-card:hover,
.link-list a:hover {
  border-color: var(--accent);
  background: var(--surface-tint);
  color: var(--accent-strong);
}

.recent-research-section {
  padding: 2px 0;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading-row h2 {
  margin-bottom: 4px;
}

.section-heading-row p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 620;
}

.section-updated-note {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 760;
  white-space: nowrap;
}

.updated-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.updated-card {
  display: grid;
  gap: 16px;
  min-height: 188px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 12%, rgba(45, 212, 191, 0.16), transparent 76px),
    linear-gradient(180deg, #ffffff, #f8fcfb);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.updated-card:hover,
.updated-card:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.updated-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.updated-card-title strong {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.updated-card-title span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: uppercase;
}

.updated-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.updated-metrics div {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.updated-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.updated-metrics strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  line-height: 1.15;
}

.updated-card-cta {
  align-self: end;
  color: var(--accent-strong);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-data-panel,
.notice,
.data-status {
  padding: 18px;
  border-radius: var(--radius);
}

.trust-data-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #b9d8d2;
  background: linear-gradient(135deg, var(--surface-tint), #fff);
}

.trust-data-panel h2 {
  margin-top: 0;
}

.trust-data-panel p {
  margin: 0;
  color: var(--muted);
}

.notice {
  border: 1px solid var(--warning-line);
  background: var(--warning);
}

.data-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
  border: 1px solid #b9d8d2;
  background: var(--surface-tint);
}

.data-status p,
.winner-card p,
.faq-item p,
.trust-panel p {
  margin: 0;
  color: var(--muted);
}

.data-status p {
  font-size: 0.84rem;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.84rem;
}

.breadcrumbs a {
  color: var(--muted);
}

.insight-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.insight-list li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.next-step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.next-step-card {
  min-height: 132px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.16), transparent 120px),
    #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.next-step-card strong {
  color: var(--ink);
  line-height: 1.22;
}

.next-step-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.next-step-card:hover {
  border-color: #94b8b2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #edf6f4;
  color: #243847;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tr:hover td {
  background: #fbfefd;
}

.table-ticker-link {
  display: inline-flex;
  text-decoration: none;
}

.winner-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border: 1px solid #a7d7ca;
  border-radius: 999px;
  background: #e8f7f3;
  color: #0b5f59;
  font-size: 0.8rem;
  font-weight: 900;
}

tbody td:nth-child(4) {
  background: rgba(232, 247, 243, 0.42);
}

.range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.86rem;
}

.range-labels strong {
  color: var(--ink);
}

.range-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #dbeafe, #99f6e4, #fde68a);
  overflow: hidden;
}

.range-track span {
  position: absolute;
  top: -4px;
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
}

.sparkline {
  width: 100%;
  max-width: 360px;
  height: 86px;
  margin-top: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.sparkline polyline {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calculator {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #b9d8d2;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.18), transparent 220px),
    #fff;
  box-shadow: var(--shadow-md);
}

.calculator label {
  display: grid;
  gap: 7px;
  color: #344a58;
  font-size: 0.88rem;
  font-weight: 850;
}

.calculator input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #b9c7ce;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.calculator button {
  min-height: 48px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.calculator button:hover {
  background: #073f3b;
}

.calculator button,
.calculator output {
  grid-column: 1 / -1;
}

.calculator output {
  display: grid;
  align-items: center;
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid #a8d7ce;
  border-radius: 14px;
  background: var(--surface-tint);
  color: var(--accent-strong);
  font-weight: 900;
  font-size: 1.18rem;
}

.winner-pill--neutral {
  background: var(--surface-tint);
  color: var(--muted);
  font-weight: 700;
}

.trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.trust-chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #eaf6f3;
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 16px;
}

.sidebar-panel {
  padding: 18px;
}

.sidebar-panel h2 {
  margin-top: 0;
  font-size: 1.15rem;
}

.sidebar-panel a {
  display: block;
  margin-top: 10px;
  font-weight: 750;
}

.disclaimer-panel {
  margin-top: 30px;
}

.sitemap-groups {
  display: grid;
  gap: 18px;
}

.faq-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.site-footer {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}

.footer-links a {
  font-weight: 750;
}

.disclaimer {
  max-width: 1040px;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .research-card-grid,
  .comparison-card-grid,
  .tool-card-grid,
  .sector-card-grid,
  .metric-grid,
  .next-step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero,
  .page-hero,
  .hero-panel,
  .compact-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    width: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 2px;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
  }

  .footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .layout,
  .site-footer {
    width: min(100% - 20px, 1240px);
  }

  .layout {
    margin-top: 18px;
  }

  .page {
    padding: 16px;
    border-radius: 18px;
  }

  .home-hero,
  .page-hero,
  .hero-panel {
    margin: -4px -4px 24px;
    padding: 24px 18px;
    border-radius: 20px;
  }

  .hero-dashboard-card,
  .ticker-badge,
  .versus-card {
    min-height: 0;
  }

  .research-card-grid,
  .comparison-card-grid,
  .tool-card-grid,
  .sector-card-grid,
  .updated-card-grid,
  .metric-grid,
  .card-grid,
  .winner-grid,
  .split,
  .insight-grid,
  .data-status,
  .calculator,
  .sidebar,
  .next-step-grid {
    grid-template-columns: 1fr;
  }

  .hero-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-updated-note {
    white-space: normal;
  }

  .updated-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-data-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button-link {
    width: 100%;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: normal;
  }

  th,
  td {
    padding: 11px;
  }

  .site-footer {
    padding: 18px;
    border-radius: 18px;
  }
}

/* ==========================================================================
   Brand mark + theme toggle controls
   ========================================================================== */
.brand-mark svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .theme-toggle__sun { display: none; }
.theme-toggle .theme-toggle__moon { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
:root[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

/* ==========================================================================
   Dark theme. Applied when JS resolves data-theme="dark" (the user's saved
   choice, or auto via prefers-color-scheme). The light theme above is the
   default. A no-JS variable fallback follows at the end.
   Additive only: overrides the CSS variables plus components that hard-code
   light surfaces.
   ========================================================================== */
:root[data-theme="dark"] {
  --bg: #0b1418;
  --surface: #16232b;
  --surface-soft: #1d2c34;
  --surface-tint: #1a2a30;
  --ink: #f2f6f7;
  --ink-soft: #d4dee1;
  --muted: #aab9bf;
  --line: #2c3b43;
  --line-strong: #41555e;
  --accent: #2dd4bf;
  --accent-strong: #4fd1c5;
  --warning: #2a2113;
  --warning-line: #4a3b1c;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.6);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.10), transparent 360px),
    linear-gradient(180deg, #0d171c 0, var(--bg) 520px);
  color: var(--ink);
}

:root[data-theme="dark"] a:hover { color: var(--accent-bright); }
:root[data-theme="dark"] .skip-link { background: var(--accent-strong); color: #04221f; }

:root[data-theme="dark"] .page,
:root[data-theme="dark"] .sidebar-panel,
:root[data-theme="dark"] .site-footer { background: var(--surface); }

:root[data-theme="dark"] .site-header {
  background: rgba(11, 20, 24, 0.86);
  border-bottom-color: var(--line);
}

:root[data-theme="dark"] .research-card,
:root[data-theme="dark"] .comparison-card,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .metric-card,
:root[data-theme="dark"] .insight-card,
:root[data-theme="dark"] .winner-card,
:root[data-theme="dark"] .range-card,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .utility-panel,
:root[data-theme="dark"] .sitemap-group {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
}

:root[data-theme="dark"] .comparison-card { color: var(--ink); }

:root[data-theme="dark"] .sector-card,
:root[data-theme="dark"] .link-list a {
  background: linear-gradient(180deg, var(--surface), var(--surface-soft));
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .updated-metrics div {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}

:root[data-theme="dark"] .updated-card {
  border-color: rgba(45, 212, 191, 0.22);
  background:
    radial-gradient(circle at 92% 12%, rgba(45, 212, 191, 0.12), transparent 76px),
    linear-gradient(180deg, var(--surface), var(--surface-soft));
}

:root[data-theme="dark"] .next-step-card {
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.12), transparent 120px),
    var(--surface);
}

:root[data-theme="dark"] .trust-data-panel { background: linear-gradient(135deg, var(--surface-tint), var(--surface)); }

:root[data-theme="dark"] .button-link {
  background: var(--surface-soft);
  color: #f4f9f8;
  border-color: rgba(45, 212, 191, 0.30);
}
:root[data-theme="dark"] .button-link:hover {
  background: #1d2d35;
  border-color: var(--accent-bright);
}
:root[data-theme="dark"] .button-link.primary {
  background: var(--accent-bright);
  color: #04221f;
  border-color: var(--accent-bright);
}
:root[data-theme="dark"] .button-link.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #f4f9f8;
  border-color: rgba(255, 255, 255, 0.24);
}
/* Calculator submit: in dark the accent is light, so use dark ink for contrast. */
:root[data-theme="dark"] .calculator button {
  background: var(--accent-bright);
  color: #04221f;
}
:root[data-theme="dark"] .calculator button:hover {
  background: #5eecd8;
}
:root[data-theme="dark"] .nav-toggle,
:root[data-theme="dark"] .theme-toggle { background: var(--surface-soft); color: #f4f9f8; border-color: rgba(45, 212, 191, 0.30); }

:root[data-theme="dark"] .tv-icon {
  border-color: var(--line);
  background: linear-gradient(135deg, var(--surface-soft), var(--surface));
}
:root[data-theme="dark"] .ticker-chip {
  border-color: var(--line-strong);
  background: linear-gradient(180deg, var(--surface-soft), var(--surface));
}

:root[data-theme="dark"] .metric-chip { background: var(--surface-soft); color: var(--ink-soft); border-color: var(--line); }
:root[data-theme="dark"] .metric-chip--good { border-color: rgba(45, 212, 191, 0.32); background: rgba(45, 212, 191, 0.14); color: #7fe9d6; }
:root[data-theme="dark"] .metric-chip--warning { border-color: rgba(234, 216, 170, 0.30); background: rgba(192, 132, 26, 0.16); color: #e7c073; }
:root[data-theme="dark"] .metric-chip--tech,
:root[data-theme="dark"] .metric-chip--semiconductor,
:root[data-theme="dark"] .metric-chip--communication { border-color: rgba(99, 102, 241, 0.32); background: rgba(79, 70, 229, 0.18); color: #b6bdfb; }
:root[data-theme="dark"] .metric-chip--consumer { border-color: rgba(251, 146, 60, 0.30); background: rgba(194, 65, 12, 0.18); color: #f3b186; }
:root[data-theme="dark"] .metric-chip--etf { border-color: rgba(16, 185, 129, 0.32); background: rgba(4, 120, 87, 0.20); color: #6ee7b7; }

:root[data-theme="dark"] .calculator {
  border-color: var(--line-strong);
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.12), transparent 220px),
    var(--surface);
}
:root[data-theme="dark"] .calculator input {
  background: var(--surface-soft);
  color: var(--ink);
  border-color: var(--line-strong);
}

:root[data-theme="dark"] table { background: var(--surface); }
:root[data-theme="dark"] th { background: var(--surface-soft); color: var(--ink-soft); }
:root[data-theme="dark"] tr:hover td { background: rgba(255, 255, 255, 0.035); }
:root[data-theme="dark"] tbody td:nth-child(4) { background: rgba(45, 212, 191, 0.08); }
:root[data-theme="dark"] .sparkline { background: var(--surface-soft); border-color: var(--line); }
:root[data-theme="dark"] .cmp-move.up { color: #6ee7b7; }
:root[data-theme="dark"] .cmp-move.down { color: #fca5a5; }

:root[data-theme="dark"] .winner-pill { border-color: rgba(45, 212, 191, 0.32); background: rgba(45, 212, 191, 0.14); color: #7fe9d6; }
:root[data-theme="dark"] .winner-pill--neutral { background: var(--surface-soft); color: var(--muted); }

:root[data-theme="dark"] .data-status { border-color: var(--line); background: var(--surface-tint); }
:root[data-theme="dark"] .notice { border-color: var(--warning-line); background: var(--warning); }
:root[data-theme="dark"] .sparkline { background: var(--surface); border-color: var(--line); }
:root[data-theme="dark"] .section-updated-note { background: var(--surface-tint); border-color: var(--line); }

/* Self-hosted logos sit on a white tile by design; keep it readable but softer */
:root[data-theme="dark"] .brand-logo img { background: #f3f6f6; }

/* Text that hard-codes dark colors in the light theme — make legible in dark. */
:root[data-theme="dark"] .main-nav a { color: #e6eff1; }
:root[data-theme="dark"] .main-nav a:hover { background: var(--surface-soft); color: var(--accent-bright); }
:root[data-theme="dark"] .calculator label { color: var(--ink); }
:root[data-theme="dark"] .calculator label { font-weight: 800; }
:root[data-theme="dark"] .breadcrumbs,
:root[data-theme="dark"] .breadcrumbs a { color: #b9c7cd; }
:root[data-theme="dark"] .card-subtitle,
:root[data-theme="dark"] .lead,
:root[data-theme="dark"] .insight-list li,
:root[data-theme="dark"] .faq-item p { color: var(--ink-soft); }
:root[data-theme="dark"] .tv-icon--ai { color: #74acff; }
:root[data-theme="dark"] .tv-icon--semiconductor { color: #9fa9ff; }
:root[data-theme="dark"] .tv-icon--magnificent { color: #e3ad6f; }
:root[data-theme="dark"] .eyebrow { color: var(--accent-bright); }

/* No-JS fallback: auto dark via OS setting (variables only) when JS has not
   resolved a theme. Components keyed on these variables follow automatically. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0b1418;
    --surface: #131e25;
    --surface-soft: #18242c;
    --surface-tint: #15252a;
    --ink: #e8eef0;
    --ink-soft: #c3d0d4;
    --muted: #93a4ab;
    --line: #25333b;
    --line-strong: #364952;
    --accent: #2dd4bf;
    --accent-strong: #4fd1c5;
  }
}

/* ==========================================================================
   Rebalancing calculator
   ========================================================================== */
.calculator--rebalance {
  grid-template-columns: 1fr;
}

.rebalance-contrib {
  max-width: 320px;
}

.rebalance-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 10px;
}

.rebalance-row label {
  font-size: 0.8rem;
}

[data-rebalance-output] {
  margin-top: 6px;
}

.rebalance-table {
  margin: 0;
}

.calc-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .rebalance-row {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Paper portfolio — allocation bars + value chart
   ========================================================================== */
.alloc-bars {
  display: grid;
  gap: 9px;
}

.alloc-row {
  display: grid;
  grid-template-columns: 64px 1fr 58px;
  align-items: center;
  gap: 10px;
}

.alloc-label {
  font-weight: 800;
  font-size: 0.85rem;
}

.alloc-track {
  height: 12px;
  border-radius: 999px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
  overflow: hidden;
}

.alloc-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
}

.alloc-fill--cash {
  background: var(--line-strong);
}

.alloc-val {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 0.85rem;
}

.portfolio-chart {
  width: 100%;
  max-width: 600px;
  height: 150px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.portfolio-chart .chart-value {
  fill: none;
  stroke: var(--accent-strong);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-chart .chart-benchmark {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 4 4;
}

.holding-notes {
  display: grid;
  gap: 12px;
}

.holding-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.holding-note p {
  margin: 0 0 4px;
}

.holding-note p:last-child {
  margin-bottom: 0;
}

.holding-note-head {
  font-size: 0.96rem;
  color: var(--ink);
}

/* Interactive portfolio chart */
.pf-chart-wrap { position: relative; }
.pf-chart-svg {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pf-grid { stroke: var(--line); stroke-width: 1; }
.pf-axis { fill: var(--muted); font-size: 11px; font-family: var(--font-ui); }
.pf-crosshair { stroke: var(--accent-strong); stroke-width: 1; stroke-dasharray: 3 3; }
.pf-tip {
  position: absolute;
  top: 6px;
  min-width: 112px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  font-size: 0.8rem;
  pointer-events: none;
  z-index: 2;
}
.pf-tip-date { font-weight: 800; margin-bottom: 4px; color: var(--ink); }
.pf-tip-row { display: flex; align-items: center; gap: 6px; color: var(--ink-soft); }
.pf-tip-dot, .pf-chip-dot { width: 9px; height: 9px; border-radius: 999px; display: inline-block; flex: 0 0 auto; }
.pf-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}
.pf-chip--off { opacity: 0.4; text-decoration: line-through; }

/* ===== Orderflow Terminal launch band ===== */
.launch-band{display:grid;grid-template-columns:1.05fr 1fr;gap:42px;align-items:center;margin:8px 0 40px;padding:40px clamp(22px,4vw,56px);border-radius:var(--radius-lg);background:radial-gradient(120% 140% at 12% 0%,#0d3b39 0%,#071a23 55%,#05131a 100%);color:#eaf3f1;border:1px solid #14313a;box-shadow:var(--shadow-md);overflow:hidden}
.launch-text{min-width:0}
.launch-eyebrow{display:inline-flex;align-items:center;gap:9px;margin:0 0 14px;font-size:.82rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--accent-bright)}
.live-dot{width:9px;height:9px;border-radius:50%;background:#2dd4bf;animation:lpulse 2s infinite}
@keyframes lpulse{0%{box-shadow:0 0 0 0 rgba(45,212,191,.55)}70%{box-shadow:0 0 0 10px rgba(45,212,191,0)}100%{box-shadow:0 0 0 0 rgba(45,212,191,0)}}
.launch-band h2{font-family:var(--font-display);font-size:clamp(1.7rem,3.4vw,2.5rem);line-height:1.08;margin:0 0 14px;color:#fff}
.launch-band h2 .accent{color:var(--accent-bright)}
.launch-band .lead{color:#bcd3ce;font-size:1.02rem;line-height:1.6;margin:0 0 18px;max-width:54ch}
.launch-band .lead strong{color:#eaf3f1}
.launch-chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0 0 22px}
.launch-chips li{font-size:.82rem;font-weight:600;color:#cfe7e2;background:rgba(45,212,191,.10);border:1px solid rgba(45,212,191,.28);border-radius:999px;padding:6px 13px}
.waitlist{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 14px}
.waitlist input{flex:1 1 220px;min-width:0;padding:13px 16px;border-radius:var(--radius-sm);border:1px solid #2b4a51;background:#08222a;color:#eaf3f1;font:inherit;font-size:.98rem}
.waitlist input::placeholder{color:#6f8a90}
.waitlist input:focus{outline:2px solid var(--accent-bright);outline-offset:1px;border-color:transparent}
.waitlist .button-link.primary{background:var(--accent-bright);color:#04222a;border:0;font-weight:700;white-space:nowrap}
.waitlist .button-link.primary:hover{background:#5eead4}
.waitlist-msg{flex-basis:100%;font-size:.88rem;font-weight:600;min-height:1.1em}
.waitlist-msg.ok{color:var(--accent-bright)}
.waitlist-msg.err{color:#fca5a5}
.launch-soon{margin:0;font-size:.92rem;color:#9fbdb7}
.launch-soon strong{color:#eaf3f1}
.launch-soon a{color:var(--accent-bright);text-decoration:none;font-weight:600;white-space:nowrap}
.launch-soon a:hover{text-decoration:underline}
.launch-media{margin:0;min-width:0}
.launch-video{width:100%;aspect-ratio:16/9;border-radius:var(--radius);background:#000;border:1px solid #1c3a42;box-shadow:var(--shadow-lg);display:block}
.launch-media figcaption{margin-top:10px;font-size:.82rem;color:#8fb0aa;display:flex;align-items:center;gap:7px}
.play-badge{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--accent-bright);color:#04222a;font-size:.6rem}
@media (max-width:820px){.launch-band{grid-template-columns:1fr;gap:26px;padding:30px 22px}.launch-media{order:-1}}

/* ===== YouTube facade (lazy embed) + honeypot ===== */
.yt-facade{position:relative;width:100%;aspect-ratio:16/9;border-radius:var(--radius);background:#000 center/cover no-repeat;border:1px solid #1c3a42;box-shadow:var(--shadow-lg);cursor:pointer;display:block}
.yt-facade .yt-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:76px;height:76px;border-radius:50%;background:var(--accent-bright);box-shadow:0 10px 34px rgba(0,0,0,.55);transition:transform .15s ease}
.yt-facade .yt-play::after{content:"";position:absolute;top:50%;left:54%;transform:translate(-50%,-50%);border-style:solid;border-width:15px 0 15px 24px;border-color:transparent transparent transparent #04222a}
.yt-facade:hover .yt-play{transform:translate(-50%,-50%) scale(1.08)}
.yt-facade:focus-visible{outline:3px solid var(--accent-bright);outline-offset:3px}
.waitlist .hp{position:absolute !important;left:-9999px !important;width:1px;height:1px;opacity:0;pointer-events:none}

/* ===== Brand logo (header) ===== */
.brand-img{width:36px;height:36px;border-radius:10px;display:block;flex:0 0 auto;box-shadow:0 2px 8px rgba(0,0,0,.25)}
