/* ==========================================================================
   Growthvine — design tokens (Brand Book)
   Primary: Vine Indigo #9B81F5 · Foundation Grey #1D1D1B · Clarity White
   Secondary: Mint #B1F0DB · Peach #FFBB90 · Mustard #F1F68E
   Type: Poppins
   ========================================================================== */

:root {
  /* Surfaces */
  --ink: #1d1d1b; /* Foundation Grey — hero / dark chrome */
  --ink-swirl: #2a2a28;
  --surface-a: #f7f5ff; /* soft Vine Indigo wash */
  --surface-b: #ecf4fe;
  --surface-c: #e9f5ff;
  --card: #ffffff;

  /* Brand — Vine Indigo family */
  --violet: #9b81f5; /* Vine Indigo primary */
  --violet-soft: #d4c8fb;
  --violet-tint: #f0ecfe;
  --indigo: #6b5ad4; /* darkened Vine Indigo — tables / solid fills */
  --indigo-deep: #5240b8; /* primary buttons on light */
  --purple: #9b81f5; /* links, active, marks */

  /* Text */
  --text: #1d1d1b; /* Foundation Grey */
  --text-2: #64748b;
  --text-3: #94a3b8;

  /* Data + secondary brand */
  --green: #16a34a;
  --mint: #b1f0db;
  --amber: #f59e0b;
  --mustard: #f1f68e;
  --orange: #ea580c;
  --red: #dc2626;
  --gold: #f5a524;
  --peach: #ffbb90; /* Brand Peach */

  /* Lines */
  --line: #e4ddf8;
  --line-cool: #c9d6e1;
  --glow: #9b81f524;

  /* Elevation */
  --sh-sm: 0 2px 10px rgba(29, 29, 27, 0.04);
  --sh-md: 0 12px 32px rgba(29, 29, 27, 0.07);
  --sh-lg: 0 24px 60px rgba(155, 129, 245, 0.18);

  --r-card: 22px;
  --r-lg: 18px;
  --r-md: 12px;
  --shell: 1240px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--surface-a);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }

.shell { width: min(var(--shell), 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--text-3); font-size: 0.875rem; }
.na { color: var(--text-3); }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: none; border-radius: 999px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; padding: 0.75rem 1.5rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-peach { background: var(--peach); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, 0.28); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, 0.08); }
.btn-primary { background: var(--indigo-deep); color: #fff; }
.btn-primary:hover { box-shadow: var(--sh-md); }
.btn-violet { background: var(--violet); color: #fff; }
.btn-outline { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Header — floating pill nav, fixed above all pages.
   ========================================================================== */
.site-header {
  position: fixed; top: 1rem; left: 50%; transform: translateX(-50%);
  width: calc(100% - 2rem); max-width: 1152px; z-index: 50;
  border-radius: 999px; padding: 0.6rem 0.5rem; color: #fff;
  background: rgba(23, 21, 28, 0.6); backdrop-filter: blur(20px);
  box-shadow: var(--sh-lg);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
header.site-header .shell { width: 100%; margin: 0; padding: 0 1rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; position: relative; }
header.site-header .header-inner { /* logo | nav | cta */ }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.logo img { height: 36px; width: auto; max-width: 200px; flex-shrink: 0; }
.logo-wordmark {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo-wordmark .vine { color: var(--violet); }
.nav { display: flex; align-items: center; justify-content: center; gap: 0.15rem; justify-self: center; max-width: 100%; min-width: 0; background: rgba(255, 255, 255, 0.1); border-radius: 999px; padding: 0.3rem; font-size: 0.85rem; }
.nav a { padding: 0.5rem 1rem; border-radius: 999px; text-decoration: none; color: rgba(255, 255, 255, 0.85); opacity: 1; transition: background 0.2s ease, color 0.2s ease; }
.nav a:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.app-cta {
  display: inline-flex; align-items: center; gap: 0.6rem; background: #fff; color: var(--ink);
  border-radius: 999px; padding: 0.6rem 1.1rem; font-size: 0.82rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: transform 0.15s ease; justify-self: end;
}
.app-cta:hover { transform: scale(1.04); }

/* dark header variant — transparent over the hero, blurs in once you scroll past it */
.site-header.on-dark { background: transparent; backdrop-filter: none; box-shadow: none; padding: 1rem 0.5rem; }
.site-header.on-dark.scrolled { background: rgba(23, 21, 28, 0.6); backdrop-filter: blur(20px); box-shadow: var(--sh-lg); padding: 0.6rem 0.5rem; }

/* mobile nav toggle + dropdown panel */
.nav-toggle { display: none; align-items: center; justify-content: center; width: 32px; height: 32px; justify-self: end; background: none; border: none; cursor: pointer; color: #fff; }
.nav-mobile { display: none; }
.nav-mobile .app-cta-mobile { margin-top: 0.5rem; justify-content: center; width: 100%; }

/* ==========================================================================
   Hero — full-viewport, square corners, orbital arcs background
   Shape lock: radius 0 on the hero plane (pills/CTAs keep their own system).
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 0;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5.5rem 0 3rem;
  background-color: #1a1a1b;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}
.hero::before { content: none; }
.hero .shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.35fr);
  gap: 1rem 0.75rem;
  align-items: center;
  width: min(var(--shell), 100% - 2rem);
  margin-inline: auto;
  flex: 1;
}
.hero-copy { max-width: 34rem; }
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  pointer-events: none;
  width: 100%;
  min-width: 0;
  /* Let the illustration bleed a little past the shell edge */
  margin-right: -1.5rem;
}
.hero-visual img {
  width: 118%;
  max-width: none;
  height: auto;
  object-fit: contain;
  mix-blend-mode: lighten;
  transform: scale(1.08);
  transform-origin: center right;
}

.hero h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
.hero h1 .mark { color: var(--violet); position: relative; white-space: nowrap; }
.hero h1 .mark::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -0.12em; height: 5px;
  background: var(--violet); border-radius: 0; opacity: 0.85;
}
.hero .lede {
  color: rgba(255, 255, 255, 0.72);
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 42ch;
  margin: 1.1rem 0 1.75rem;
}

.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.hero-actions .btn { border-radius: 0; font-family: 'Poppins', system-ui, sans-serif; }

/* ==========================================================================
   Top rated shelf
   ========================================================================== */
.section { padding: 4.5rem 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 2rem; }
.section-head h2, .section-head-center h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.section-head p, .section-head-center p { color: var(--text-2); font-size: 0.9rem; margin-top: 0.5rem; max-width: 52ch; }
.section-head-center { text-align: center; margin-bottom: 3rem; }
.section-head-center p { margin-inline: auto; }

/* Catalog band: Top Rated + Categories share one ice-blue field + G mark */
.section-catalog {
  position: relative;
  overflow: visible;
  border-radius: 0;
  background-color: #ecf4fe;
  padding: 4.5rem 0 5rem;
}
.section-catalog .shell { position: relative; z-index: 1; }
.section-catalog .catalog-block { margin-top: 5rem; }
.section-catalog .section-head { margin-bottom: 1.75rem; }
.section-catalog .section-head-center { margin-bottom: 3.25rem; }
h2 .mark { color: var(--purple); }
.link-more { color: var(--text); font-weight: 600; font-size: 0.85rem; text-decoration: none; white-space: nowrap; }
.link-more:hover { color: var(--purple); }

.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 1.15rem;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: visible;
  /* Room above for the hover lift so cards aren't clipped */
  padding: 1.35rem 0.15rem 1.5rem;
  margin-top: -0.5rem;
  scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }

/* Same height + same shadow on every card so the row shares one baseline.
   Only the purple tint steps down across the row. */
.fund-card {
  position: relative;
  border-radius: 16px;
  padding: 1.35rem;
  min-height: 178px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
  text-decoration: none;
  /* Soft lift + hard bottom edge for stacked 3D — identical on t0–t4 */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 24px rgba(45, 35, 80, 0.18),
    0 3px 0 rgba(30, 22, 55, 0.35);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.22s ease;
}
.fund-card:hover {
  transform: translateY(-14px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 22px 40px rgba(45, 35, 80, 0.28),
    0 5px 0 rgba(30, 22, 55, 0.42);
}
.fund-card:active { transform: translateY(-6px); }
.fund-card.t0 { background: var(--indigo); }
.fund-card.t1 { background: #7a66e0; }
.fund-card.t2 { background: #8f7ceb; }
.fund-card.t3 { background: #a492f2; }
.fund-card.t4 { background: #b8a8f7; }
.fund-tag {
  align-self: flex-start; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.09em;
  text-transform: uppercase; background: rgba(255, 255, 255, 0.16); padding: 0.3rem 0.7rem;
  border-radius: 999px; margin-bottom: 1rem;
}
.fund-card h3 { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.fund-card .figure { margin-top: auto; display: flex; align-items: baseline; gap: 0.4rem; }
.fund-card .figure b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.fund-card .figure span { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; }
.fund-card .rank { font-size: 0.68rem; opacity: 0.82; margin-top: 0.5rem; }

/* ==========================================================================
   Category cards
   ========================================================================== */
.categories { position: relative; padding-bottom: 5rem; }
/* Equal height, equal baseline — Equity leads, then Hybrid, Debt, Others. */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  align-items: stretch;
  /* Icon sits above the card; hover lifts further — keep both clear */
  padding-top: 3.75rem;
  padding-bottom: 0.5rem;
}

.cat-card {
  background: var(--card);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 3.5rem 1.65rem 1.65rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  /* Soft floating shadow on all sides */
  box-shadow:
    0 2px 4px rgba(55, 70, 110, 0.04),
    0 16px 40px rgba(55, 70, 110, 0.1);
  transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1), box-shadow 0.22s ease;
}
.cat-card:hover, .cat-card:focus-within {
  transform: translateY(-18px);
  box-shadow:
    0 6px 12px rgba(55, 70, 110, 0.08),
    0 28px 52px rgba(55, 70, 110, 0.16);
}
.cat-card:active { transform: translateY(-8px); }
.cat-card .cat-icon { position: absolute; top: -36px; left: 50%; transform: translateX(-50%); width: 88px; filter: drop-shadow(0 6px 12px rgba(55, 70, 110, 0.12)); }
.cat-card h3 { font-size: 1.22rem; margin-bottom: 0.4rem; }
.cat-card .cat-desc { color: var(--text-2); font-size: 0.85rem; min-height: 2.6em; }
/* Stats sit at the bottom of the tallest card, so every button lines up. */
.cat-stats { margin: 1.25rem 0 1.35rem; text-align: left; margin-top: auto; }

.cat-card .btn { transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 4px 14px rgba(255, 187, 144, 0.4); }
.cat-card:hover .btn, .cat-card:focus-within .btn { background: var(--violet); border-color: transparent; color: #fff; box-shadow: 0 8px 20px rgba(155, 129, 245, 0.35); }
.stat-line { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-2); }
.stat-line b { font-size: 1rem; font-weight: 700; }
.track { height: 7px; border-radius: 999px; background: #f1f0f6; margin: 0.55rem 0 1rem; overflow: hidden; }
.track > i { display: block; height: 100%; border-radius: 999px; }
.t-green { color: var(--green); } .fill-green { background: var(--green); }
.t-violet { color: var(--purple); } .fill-violet { background: var(--violet); }
.t-peach { color: #c2410c; } .fill-peach { background: var(--peach); }
.t-navy { color: #1e3a8a; } .fill-navy { background: #1e3a8a; }
.t-teal { color: #0f766e; } .fill-teal { background: #14b8a6; }
.t-ink { color: var(--text); } .fill-ink { background: #6b6480; }
.t-red { color: var(--red); }

.assessment {
  margin-top: 3rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.4rem 1.75rem; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap; box-shadow: var(--sh-sm);
}
.assessment .who { display: flex; align-items: center; gap: 1rem; }
.assessment h4 { font-size: 1rem; }
.assessment p { font-size: 0.82rem; color: var(--text-2); }

/* ==========================================================================
   Filter drawer
   ========================================================================== */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff;
  z-index: 60; padding: 2rem; overflow-y: auto; transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1); box-shadow: var(--sh-lg);
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
.scrim { position: fixed; inset: 0; background: rgba(23, 21, 28, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.3s ease; z-index: 50; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; }
.drawer-head img { width: 48px; margin-bottom: 1rem; }
.drawer h2 { font-size: 1.9rem; color: var(--indigo-deep); }
.drawer .sub { color: var(--text-2); font-size: 0.85rem; margin: 0.4rem 0 2rem; }
.x-btn { background: none; border: none; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--text-2); }
.field-group { margin-bottom: 2rem; }
.field-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--purple); margin-bottom: 0.75rem; }
.seg-toggle { display: inline-flex; background: #f4f2f8; border-radius: 999px; padding: 0.25rem; gap: 0.25rem; }
.seg-toggle button { border: none; background: none; border-radius: 999px; padding: 0.55rem 1.5rem; font-size: 0.85rem; cursor: pointer; color: var(--text-2); }
.seg-toggle button.active { background: var(--violet); color: #fff; font-weight: 600; }
.field-hint { font-size: 0.72rem; color: var(--text-3); margin-top: 0.6rem; line-height: 1.45; }
.text-field { position: relative; }
.text-field input { width: 100%; border: none; background: #f7f6fa; border-radius: 12px; padding: 0.8rem 1rem 0.8rem 2.5rem; font-size: 0.85rem; }
.text-field img { position: absolute; left: 0.95rem; top: 50%; transform: translateY(-50%); width: 14px; }
.opt-list { margin-top: 1rem; max-height: 40vh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.1rem; }
.opt {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0.5rem; border-radius: 10px;
  font-size: 0.88rem; cursor: pointer;
}
.opt:hover { background: var(--violet-tint); }
.opt input { accent-color: var(--violet); width: 18px; height: 18px; }
.opt .n { margin-left: auto; font-size: 0.72rem; color: var(--text-3); }
.drawer-foot { margin-top: auto; padding-top: 1.5rem; display: grid; grid-template-columns: 1fr 1.4fr; gap: 0.75rem; }

/* ==========================================================================
   Inner page shell
   ========================================================================== */
.page { background: linear-gradient(180deg, var(--surface-a) 0%, var(--surface-b) 100%); min-height: 100dvh; padding-top: 6rem; padding-bottom: 0; box-sizing: border-box; display: flex; flex-direction: column; }
body.page > #root { flex: 1 0 auto; display: flex; flex-direction: column; width: 100%; min-height: 0; }
/* Only the page content shell — not the one inside the fixed header */
body.page > #root > .shell { padding-bottom: 3.5rem; }
/* Fixed header is still a flex child of #root — stretch would blow it into a giant pill */
body.page .site-header { align-self: center; flex: none; height: auto; }
header.site-header .shell { padding-bottom: 0; }
body.page .site-footer { margin-top: auto; flex: none; }
.page-top { padding: 2.5rem 0 2rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.page-top .badge { width: 56px; flex: none; }
.page-top h1 { font-size: clamp(1.6rem, 3.4vw, 2.15rem); font-weight: 800; }
.page-top .meta { color: var(--text-2); font-size: 0.82rem; margin-top: 0.2rem; display: flex; align-items: center; gap: 0.5rem; }
.page-top .spacer { margin-left: auto; }
.plan-select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.3rem 0.7rem; font-size: 0.78rem; }

/* Clearance under the fixed floating header (logo + pill). Used on fund /
   category shells so we don't rely on oversized inline marginTop alone.
   Header sits at top:1rem with ~3rem of pill height → ~4rem from viewport top. */
.shell.below-header { margin-top: 4.75rem; }
.crumbs { padding: 0.5rem 0 0.85rem; font-size: 0.78rem; color: var(--text-2); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--purple); }
.crumbs b { color: var(--text); font-weight: 500; }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 1.6rem; box-shadow: var(--sh-sm); margin-bottom: 1.25rem;
}
.card > h3 { font-size: 1.02rem; }
.card-sub { color: var(--text-3); font-size: 0.78rem; margin-top: 0.25rem; margin-bottom: 1.25rem; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.card-head .card-sub { margin-bottom: 0; }

/* ==========================================================================
   Recommended strip
   ========================================================================== */
.strip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 1.1rem; }
.strip-head h2 { font-size: 1.3rem; display: flex; align-items: center; gap: 0.6rem; }
.strip-head h2 img { width: 40px; }
.strip-head p { font-size: 0.82rem; color: var(--text-2); margin-top: 0.35rem; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 0.75rem; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }

.rec-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.25rem; display: flex; flex-direction: column; box-shadow: var(--sh-sm); }
.rec-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; }
.avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-size: 0.8rem; font-weight: 700; }
.rec-card .name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }
.stars { color: var(--gold); font-size: 0.72rem; letter-spacing: 1.5px; }
.stars.na { color: #d8d3e3; letter-spacing: 0; }
.rec-figures { display: flex; justify-content: space-between; gap: 1rem; margin-top: auto; margin-bottom: 1.15rem; }
.figure-label { font-size: 0.58rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-3); font-weight: 600; display: block; margin-bottom: 0.15rem; }
.figure-value { font-size: 1.05rem; font-weight: 700; }
.figure-value.pos { color: var(--green); }

/* ==========================================================================
   Fund table
   ========================================================================== */
.toolbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.search-box { position: relative; flex: 1; min-width: 240px; }
.search-box input { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.72rem 1rem 0.72rem 2.75rem; font-size: 0.86rem; }
.search-box img { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 14px; }
.chip-select { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.6rem 1rem; font-size: 0.82rem; font-weight: 500; color: #475569; cursor: pointer; }
.chip-select:focus { border-color: var(--violet); }
.link-btn { border: none; background: none; color: var(--purple); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.view-toggle { display: inline-flex; background: var(--text); border-radius: 12px; padding: 0.25rem; gap: 0.15rem; }
.view-toggle button { border: none; background: none; padding: 0.3rem; border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.view-toggle button.active { background: #fff; }
.view-toggle img { width: 22px; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-sm); }
.table-scroll { overflow-x: auto; }
table.funds { width: 100%; border-collapse: collapse; min-width: 860px; }
table.funds th {
  background: var(--indigo); color: #fff; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; padding: 0.9rem 1rem; text-align: right; white-space: nowrap;
}
table.funds th:first-child, table.funds th:nth-child(2) { text-align: left; }
table.funds td { padding: 0.95rem 1rem; border-bottom: 1px solid #f4f2f8; font-size: 0.86rem; text-align: right; vertical-align: middle; }
table.funds td:first-child, table.funds td:nth-child(2) { text-align: left; }
table.funds tbody tr:last-child td { border-bottom: none; }
table.funds tbody tr:hover { background: #fbfaff; }
table.funds input[type='checkbox'] { accent-color: var(--violet); width: 17px; height: 17px; }
/* Sortable headers: a stacked chevron pair, the active direction filled in. */
table.funds th[data-sort] { padding: 0; }
.sorter {
  width: 100%; border: none; background: none; cursor: pointer; color: inherit; font: inherit;
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.9rem 1rem;
  justify-content: flex-end; text-transform: inherit; letter-spacing: inherit;
}
th:first-child .sorter, th:nth-child(2) .sorter { justify-content: flex-start; }
.sorter:hover { background: rgba(255, 255, 255, 0.08); }
.sorter.is-active { background: rgba(255, 255, 255, 0.12); }
.chev { display: inline-grid; gap: 2px; flex: none; }
.chev i { display: block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.chev .up { border-bottom: 5px solid rgba(255, 255, 255, 0.4); }
.chev .down { border-top: 5px solid rgba(255, 255, 255, 0.4); }
.chev[data-dir='asc'] .up { border-bottom-color: #fff; }
.chev[data-dir='desc'] .down { border-top-color: #fff; }

.fund-cell strong { display: block; font-weight: 600; font-size: 0.88rem; }
.fund-cell .sub { font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; }
td.pos { color: var(--green); font-weight: 600; }

.risk { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; white-space: nowrap; }
.risk::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.risk-low { color: var(--green); } .risk-mod { color: var(--orange); }
.risk-high { color: var(--red); } .risk-vhigh { color: #b91c1c; }
.risk.na { color: var(--text-3); }

.explore-btn { display: inline-block; background: var(--violet-tint); color: var(--indigo-deep); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.78rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.explore-btn:hover { background: var(--violet-soft); }
.table-foot { display: flex; justify-content: center; padding: 1rem; }

.notice { background: var(--violet-tint); border: 1px solid var(--violet-soft); color: #5240b8; font-size: 0.78rem; padding: 0.85rem 1.1rem; border-radius: 12px; margin-bottom: 1rem; line-height: 1.5; }
.footnote { font-size: 0.72rem; color: var(--text-3); margin-top: 0.85rem; line-height: 1.5; }

/* compare dock */
.dock {
  position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(150%);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--sh-lg);
  padding: 0.45rem 0.45rem 0.45rem 1.35rem; display: flex; align-items: center; gap: 1rem;
  z-index: 40; transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); max-width: calc(100% - 2rem);
}
.dock.up { transform: translateX(-50%); }
.dock .count { font-size: 0.85rem; font-weight: 600; white-space: nowrap; flex: none; }
.dock .chips { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--violet-tint); color: var(--indigo-deep); border-radius: 999px; padding: 0.35rem 0.75rem; font-size: 0.72rem; white-space: nowrap; }
.chip button { border: none; background: none; cursor: pointer; font-size: 0.85rem; line-height: 1; color: inherit; }
.dock .btn {
  flex: none;
  align-self: center;
  white-space: nowrap;
  line-height: 1.2;
  font-size: 0.82rem;
  padding: 0.55rem 1.2rem;
  min-height: 2.4rem;
  height: 2.4rem;
  box-sizing: border-box;
}
.dock .btn:hover { transform: none; }
.dock .btn img {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
  object-fit: contain;
}

/* ==========================================================================
   Modal (compare)
   ========================================================================== */
.modal-scrim { position: fixed; inset: 0; background: rgba(23, 21, 28, 0.45); display: none; align-items: center; justify-content: center; padding: 2rem 1rem; z-index: 70; }
.modal-scrim.open { display: flex; }
.modal { background: var(--surface-a); border-radius: 24px; width: min(1040px, 100%); max-height: 100%; overflow: auto; padding: 1.75rem; }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.25rem; }
.modal-head h2 { font-size: 1.5rem; }
.modal-head p { font-size: 0.82rem; color: var(--text-2); margin-top: 0.3rem; }
table.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; min-width: 620px; }
table.compare th { background: var(--indigo); color: #fff; font-size: 0.78rem; padding: 1rem; text-align: center; }
table.compare th:first-child { background: #f7f6fa; color: var(--text-2); text-align: left; font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; }
table.compare td { padding: 0.8rem 1rem; border-bottom: 1px solid #f4f2f8; font-size: 0.85rem; text-align: center; }
table.compare td:first-child { text-align: left; color: var(--text-2); font-weight: 500; white-space: nowrap; }
table.compare td.best { color: var(--green); font-weight: 700; }

/* ==========================================================================
   Fund detail
   ========================================================================== */
.fund-hero { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; }
.tag-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.tag { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; background: var(--violet-tint); color: var(--purple); padding: 0.28rem 0.65rem; border-radius: 6px; }
.fund-hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.fund-hero .bench { font-size: 0.8rem; color: var(--text-2); margin-top: 0.4rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1rem; margin: 1.75rem 0; }
.stat .k { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); display: block; margin-bottom: 0.25rem; }
.stat .v { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.stat .v.pos { color: var(--green); }
.stat .n { font-size: 0.62rem; color: var(--text-3); display: block; }

.riskometer { text-align: center; }
.riskometer .cap { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.riskometer .verdict { font-size: 1.2rem; font-weight: 800; color: var(--red); margin-top: 0.5rem; }
.riskometer .why { background: #fff4f4; border-radius: 14px; padding: 0.85rem 1rem; font-size: 0.7rem; color: #8a3a3a; line-height: 1.5; margin-top: 1.1rem; }

.tabs { display: flex; gap: 0.25rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem; margin: 2rem 0 1.5rem; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { border: none; background: none; padding: 0.7rem 1.2rem; border-radius: 999px; font-size: 0.88rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { background: var(--violet-tint); color: var(--purple); font-weight: 600; }

.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }

.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 0.85rem; }
.metric { border: 1px solid var(--surface-c); background: #fbfdff; border-radius: 14px; padding: 1rem; }
.metric .k { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: 0.35rem; }
.metric .v { font-size: 1.3rem; font-weight: 700; color: var(--purple); letter-spacing: -0.02em; }
.metric .v.neg { color: var(--red); }
.metric .v.na { color: #cfd6e0; }
.metric .n { font-size: 0.66rem; color: var(--text-3); display: block; margin-top: 0.3rem; line-height: 1.4; }

table.data { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
table.data th { background: var(--violet-tint); color: var(--indigo); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.65rem 0.8rem; text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }
table.data td { padding: 0.65rem 0.8rem; border-bottom: 1px solid #f4f2f8; text-align: right; }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td .vs { display: block; font-size: 0.66rem; color: var(--text-3); font-weight: 400; }
table.data td.pos { color: var(--green); font-weight: 600; }

.bars { display: grid; gap: 0.55rem; }
.bar { display: grid; grid-template-columns: minmax(110px, 170px) 1fr 68px; gap: 0.85rem; align-items: center; font-size: 0.82rem; }
.bar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.bar .amt { text-align: right; font-weight: 600; }
.bar .track { margin: 0; }
.holdings-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }

/* auto-fit, so a fund with no market-cap split leaves one full-width card
   rather than a half-width one stranded beside an empty column.
   Cards stretch to a shared height; .card-viz then centres each chart in
   whatever room is left, so the slack is balanced instead of pooling
   under the shortest card. */
.holdings-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
/* margin moves to the container: grid gap spaces the cards from each other but
   leaves nothing under the last row, which butted this row against the next */
.holdings-top > .card { display: flex; flex-direction: column; margin-bottom: 0; }
.card-viz { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 1.25rem; }
/* rings sit at the top of the viz area rather than centred in it, so they line
   up across cards regardless of what else the card carries -- concentration's
   content happens to fill the box exactly, so centring dropped the
   index-overlap rings 53px lower than it. The auto margin hands the slack to
   whatever follows (total holdings), or to the bottom when nothing does. */
.card-viz > .ring-grid { margin-bottom: auto; }
.ring-grid { display: grid; gap: 1.75rem; justify-items: center; }
/* the donut builder ships height="180"; let its square viewBox set the height
   instead, so a narrowed donut doesn't sit in a letterboxed box. Ring.jsx sizes
   its own svg, so scope this to the injected markup only. */
.donut-card svg, .card-viz > div > svg { height: auto; }

/* Ring.jsx: value and label sit centred over the arc, which draws itself in on
   mount. The dash endpoints come through custom properties set as a React style
   prop -- that is CSSOM, so it needs no 'unsafe-inline' in the CSP. */
.ring-stat { position: relative; display: inline-grid; line-height: 0; }
.ring-arc {
  filter: drop-shadow(0 3px 6px rgba(124, 58, 237, 0.28));
  stroke-dashoffset: var(--ring-to);
  animation: ring-draw 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes ring-draw {
  from { stroke-dashoffset: var(--ring-from); }
  to { stroke-dashoffset: var(--ring-to); }
}
/* Value sits on the ring's geometric centre; label is hung below so it
   doesn't pull the number off-centre. */
.ring-text { position: absolute; inset: 0; pointer-events: none; }
.ring-text b {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.9rem; font-weight: 800; color: var(--purple); letter-spacing: -0.02em; line-height: 1;
}
.ring-text b.na { color: #cfd6e0; }
.ring-text small {
  position: absolute; top: calc(50% + 1.45rem); left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-2); white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .ring-arc { animation: none; }
}
.donut-legend { display: grid; gap: 0.6rem; font-size: 0.85rem; }
.donut-legend li { display: flex; align-items: center; gap: 0.5rem; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.donut-legend b { margin-left: auto; }
/* reuses .ring from the calendar-year grid: caption above, value inside */
/* index overlap / active share used flat bordered circles here; they now use
   the same animated Ring as concentration, so .ring is back to being the
   calendar-year grid's alone. */

.quartile { display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin: 0.6rem 0 0.5rem; }
.quartile i { display: block; }
.q1 { background: #16a34a; } .q2 { background: #6ee7b7; } .q3 { background: #fbbf24; } .q4 { background: #ef4444; }
.q-key { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.7rem; color: var(--text-2); }
.q-key i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 5px; }

.mini-toggle { display: inline-flex; background: #f4f2f8; border-radius: 999px; padding: 0.2rem; }
.mini-toggle button { border: none; background: none; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.74rem; cursor: pointer; color: var(--text-2); }
.mini-toggle button.active { background: #fff; color: var(--purple); font-weight: 600; box-shadow: var(--sh-sm); }
/* A window with no series stays clickable — the click explains why it's empty. */
.mini-toggle button.is-empty { color: var(--text-3); text-decoration: line-through; text-decoration-thickness: 1px; }

.empty-chart {
  display: grid; gap: 0.35rem; place-content: center; text-align: center;
  min-height: 200px; padding: 1.5rem; border: 1px dashed var(--violet-soft);
  border-radius: 14px; background: var(--surface-a);
}
.empty-chart strong { font-size: 0.92rem; }
.empty-chart span { font-size: 0.8rem; color: var(--text-2); max-width: 44ch; }

.year-grid { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.year { text-align: center; width: 104px; }
.ring { width: 82px; height: 82px; border-radius: 50%; border: 6px solid var(--line); background: #fff; display: grid; place-content: center; margin: 0 auto 0.5rem; }
.ring b { font-size: 0.95rem; color: var(--text); } .ring small { font-size: 0.58rem; color: var(--text-3); }
.year .yr { font-size: 0.72rem; font-weight: 600; background: var(--violet-tint); border-radius: 999px; padding: 0.1rem 0.65rem; display: inline-block; }
.year .qt { font-size: 0.63rem; color: var(--text-2); display: block; margin-top: 0.3rem; }

.invest {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.5rem;
  position: sticky; top: 6rem; box-shadow: var(--sh-sm);
}
.invest h3 { font-size: 1rem; margin-bottom: 1.1rem; }
.field { margin-bottom: 0.9rem; }
.field label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); display: block; margin-bottom: 0.3rem; }
.field input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0.6rem 0.75rem; font-size: 0.88rem; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.result { display: flex; justify-content: space-between; font-size: 0.84rem; padding: 0.45rem 0; }
.result b { color: var(--purple); }

details.faq { border-bottom: 1px solid #f4f2f8; padding: 0.9rem 0; }
details.faq summary { cursor: pointer; font-weight: 600; font-size: 0.88rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--purple); font-size: 1.1rem; line-height: 1; }
details.faq[open] summary::after { content: '\2212'; }
details.faq p { font-size: 0.85rem; color: #475569; margin-top: 0.6rem; line-height: 1.6; }

.gap-note { background: var(--glow); border: 1px dashed var(--violet-soft); color: #6b5b95; font-size: 0.73rem; padding: 0.65rem 0.85rem; border-radius: 10px; margin-top: 0.9rem; line-height: 1.5; }
.prose { font-size: 0.9rem; line-height: 1.65; color: #475569; }

/* ==========================================================================
   States
   ========================================================================== */
.error-box { background: #fff4f4; border: 1px solid #ffd5d5; color: #a33; padding: 1rem 1.15rem; border-radius: 14px; font-size: 0.88rem; }
.error-box strong { display: block; margin-bottom: 0.15rem; }
.error-box span { font-weight: 400; opacity: 0.85; }
.retry-btn { margin-top: 0.85rem; padding: 0.5rem 1.1rem; font-size: 0.8rem; }

.skeleton { background: linear-gradient(90deg, #efe9f7 25%, #f9f5ff 37%, #efe9f7 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border: none !important; box-shadow: none !important; }
.fund-card.skeleton, .rec-card.skeleton { min-height: 172px; }
.cat-card.skeleton { min-height: 330px; }
/* fund page: mirror the real hero/tab shapes so nothing jumps when data lands */
.sk-hero { height: 330px; border-radius: var(--r-card); margin-bottom: 1.25rem; }
.sk-tabs { height: 58px; border-radius: 999px; margin: 2rem 0 1.5rem; }
.sk-card { height: 220px; border-radius: var(--r-card); margin-bottom: 1.25rem; }
.sk-rail { height: 400px; border-radius: var(--r-card); }
@keyframes shimmer { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.7); padding: 4rem 0 2rem; font-size: 0.875rem; }
.footer-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem; align-items: start; }
.footer-brand { display: flex; flex-direction: column; gap: 1.5rem; }
.site-footer h2 { color: #fff; font-size: 1rem; font-weight: 600; margin: 0 0 1rem; }
.site-footer .footer-subhead { margin-top: 1.5rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-address { display: grid; gap: 0.75rem; }
.footer-address p { margin: 0; font-size: 0.875rem; color: rgba(255, 255, 255, 0.7); }
.site-footer a { text-decoration: none; color: inherit; transition: color 0.2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .logo img { height: 42px; max-width: 220px; }
.socials { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.socials a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: grid; place-items: center; color: #fff; transition: background 0.2s ease; }
.socials a:hover { background: var(--violet); color: #fff; }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 3rem; padding-top: 1.5rem; text-align: center; font-size: 0.75rem; color: rgba(255, 255, 255, 0.5); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  /* Keep the "Growthvine" wordmark; only tighten nav link padding. */
  .nav a { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
}
@media (max-width: 1024px) {
  .hero { padding: 6rem 0 3rem; min-height: 100dvh; }
  .hero .shell {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding-bottom: 0.5rem;
  }
  .hero-copy { max-width: none; text-align: center; margin-inline: auto; }
  .hero-copy .lede { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  /* Side illustration is a wide desktop asset; stacking it on phones
     crowds the hero. Keep it for laptop/wide screens only. */
  .hero-visual { display: none; }
  /* auto | 1fr so the logo+wordmark size to content; toggle stays right. */
  header.site-header .shell { grid-template-columns: auto 1fr; }
  .nav, .app-cta { display: none; }
  .nav-toggle { display: flex; justify-self: end; }
  .nav-mobile.open {
    display: flex; flex-direction: column; gap: 0.15rem;
    position: absolute; top: calc(100% + 0.5rem); left: 0; right: 0;
    background: rgba(23, 21, 28, 0.95); backdrop-filter: blur(20px);
    border-radius: 24px; padding: 0.75rem; box-shadow: var(--sh-lg);
  }
  .nav-mobile a { padding: 0.75rem 1rem; border-radius: 14px; text-decoration: none; color: #fff; }
  .nav-mobile a:hover { background: rgba(255, 255, 255, 0.1); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; align-items: stretch; }
  .fund-hero, .detail-grid { grid-template-columns: 1fr; }
  .holdings-split { grid-template-columns: 1fr; }
  .invest { position: static; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Fixed header is shorter once nav/CTA hide — less clearance needed. */
  .shell.below-header { margin-top: 3.75rem; }
  .crumbs { padding: 0.25rem 0 0.65rem; }
  .page-top { padding: 1.25rem 0 1.25rem; }
}
@media (max-width: 640px) {
  .hero { padding: 5.5rem 0 2.5rem; }
  .hero .shell { gap: 1.35rem; width: min(100% - 1.5rem, var(--shell)); }
  .hero h1 { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .hero .lede { font-size: 0.95rem; margin: 0.85rem 0 1.35rem; }
  .hero-actions { gap: 0.65rem; }
  .hero-actions .btn { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .dock { border-radius: 20px; flex-wrap: wrap; padding: 1rem; }
  .section { padding: 3rem 0; }
  .shell.below-header { margin-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
