/* ============================================================
   PONSFOLIO ($FOLIO) — wealth-management app for one letter
   ============================================================ */

:root {
  --bg: #F8F9FB;
  --card: #FFFFFF;
  --ink: #1A1D26;
  --blue: #2F6BFF;          /* buttons, borders, fills, donut segments only */
  --blue-text: #1A4ACC;     /* blue as TEXT on light backgrounds (6.1:1) */
  --blue-soft: rgba(47, 107, 255, 0.08);
  --mint: #2BC48A;          /* fills, strokes, sparklines only */
  --mint-text: #17805A;     /* mint as TEXT on light backgrounds */
  --mint-soft: rgba(43, 196, 138, 0.12);
  --grey: #6A7280;          /* secondary text — 4.8:1 on app white */
  --down: #E25C6B;
  --hairline: 1px solid rgba(26, 29, 38, 0.08);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(26, 29, 38, 0.06);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.05), 0 14px 32px rgba(26, 29, 38, 0.10);
  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --tape-h: 38px;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-top: var(--tape-h);
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; display: block; }

.mono { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--blue); color: #fff; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus-visible { top: calc(var(--tape-h) + 8px); }

.container {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.container-narrow { width: min(760px, 100% - 40px); }

section { scroll-margin-top: calc(var(--tape-h) + var(--nav-h) + 16px); }

.section { padding: 88px 0; }
.section-alt { background: #F2F4F9; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
h3 { font-size: 1.1rem; font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--blue-text);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-sub { color: var(--grey); max-width: 62ch; margin-bottom: 36px; }

/* ---------- Cards & pills ---------- */

.card {
  background: var(--card);
  border-radius: var(--radius);
  border: var(--hairline);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pill-mint { background: var(--mint-soft); color: var(--mint-text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 107, 255, 0.35);
}
.btn-primary:hover { background: #2158e0; }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-ghost { background: transparent; color: var(--blue-text); padding-inline: 12px; }
.btn-ghost:hover { background: var(--blue-soft); }

.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-wide { width: 100%; }

.btn-copy {
  background: var(--blue-soft);
  color: var(--blue-text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 10px 18px;
}
.btn-copy:hover { background: var(--blue); color: #fff; }

.btn[disabled] { opacity: 0.65; cursor: wait; transform: none; }

/* ---------- 1. Ticker tape ---------- */

.tape {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--tape-h);
  background: var(--bg);
  border-bottom: var(--hairline);
  overflow: hidden;
  z-index: 60;
  display: flex;
  align-items: center;
}
.tape-track {
  display: inline-flex;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  animation: tape-scroll 48s linear infinite;
  will-change: transform;
}
.tape:hover .tape-track { animation-play-state: paused; }
.tape-chunk { padding-right: 2ch; }
.tape-sep { color: var(--blue-text); }
.tape-stat { color: var(--grey); }

@keyframes tape-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 2. Navbar ---------- */

.navbar {
  position: sticky;
  top: var(--tape-h);
  z-index: 50;
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}
.wordmark-logo { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; flex: none; }
.wordmark-logo-sm { width: 22px; height: 22px; }

.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.nav-links a:hover:not(.btn) { color: var(--blue-text); }
.nav-links a.is-current:not(.btn) { color: var(--blue-text); }
.nav-cta { color: #fff !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.nav-burger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 3. Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(26, 29, 38, 0.9) 1px, transparent 1.4px);
  background-size: 24px 24px;
  opacity: 0.03;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.04;
  margin-bottom: 20px;
}
.hero-sub { color: var(--grey); font-size: 1.05rem; max-width: 54ch; margin-bottom: 28px; }
.hero-sub .mono { color: var(--blue-text); font-weight: 600; }

.ca-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-bottom: 26px; }
.ca-pill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--blue-text);
  background: var(--card);
  border: 1.5px dashed var(--blue);
  border-radius: 999px;
  padding: 10px 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-media .media-slot {
  aspect-ratio: 16 / 9;
  background: var(--card);
  border: var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
}
/* media assets fill their slot edge to edge */
.media-slot { padding: 0; overflow: hidden; }
.media-slot video, .media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.avatar-slot { padding: 0; }
.avatar-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* ---------- 3b. The Statement (anti-scam) ---------- */

.section-statement { padding: 20px 0 40px; }
.statement-card {
  background: var(--card);
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(47, 107, 255, 0.12), 0 16px 40px rgba(26, 29, 38, 0.10);
  padding: 34px 36px;
}
.statement-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 18px; }
.statement-ca-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.statement-ca {
  flex: 1 1 320px;
  min-width: 0;
  font-size: clamp(15px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px dashed var(--blue);
  border-radius: 12px;
  padding: 16px 20px;
  word-break: break-all;
}
.statement-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.btn-lg { min-height: 52px; font-size: 1rem; padding: 14px 30px; }
.statement-warning { font-size: 0.95rem; color: var(--grey); max-width: 78ch; }

/* ---------- 4. Trust bar ---------- */

.trustbar { padding: 22px 0; border-top: var(--hairline); border-bottom: var(--hairline); }
.trust-line {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 5. Overview metrics ---------- */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.metric-card { padding: 26px 24px; }
.metric-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.metric-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--grey);
}
.metric-figure {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  white-space: nowrap;
}
.metric-note { font-size: 0.86rem; color: var(--grey); }

/* ---------- 6a. The Fund — donut ---------- */

.fund-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 28px;
  align-items: start;
}
.donut-wrap { position: relative; padding: 32px; }
#donut { width: 100%; height: auto; }
#donut path { cursor: pointer; transition: opacity 0.18s ease; }
#donut.has-focus path { opacity: 0.3; }
#donut.has-focus path.is-active { opacity: 1; }
.donut-center-top { font-size: 21px; font-weight: 600; fill: var(--ink); }
.donut-center-bot { font-size: 14px; fill: var(--grey); letter-spacing: 0.08em; }

.tooltip {
  position: absolute;
  z-index: 5;
  min-width: 220px;
  max-width: 260px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.75rem;
  line-height: 1.5;
  box-shadow: var(--shadow-lift);
  pointer-events: none;
}
.tooltip .tt-ticker { font-weight: 600; font-size: 0.85rem; }
.tooltip .tt-weight { float: right; color: #9DB9FF; font-weight: 600; }
.tooltip .tt-name { color: #C4C9D6; }
.tooltip .tt-line { color: #fff; margin-top: 6px; font-family: var(--font-body); font-style: italic; }
.tooltip .tt-letter { display: block; margin-top: 8px; color: var(--mint); font-size: 0.68rem; letter-spacing: 0.08em; }

.legend {
  list-style: none;
  max-height: 348px;
  overflow-y: auto;
  border: var(--hairline);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
  scrollbar-width: thin;
}
.legend-row {
  display: grid;
  grid-template-columns: 14px 92px 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: none;
  border: none;
  border-bottom: var(--hairline);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.legend li:last-child .legend-row { border-bottom: none; }
.legend-row:hover, .legend-row.is-active { background: #F1F4FA; }
.legend-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.legend-ticker { font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; }
.legend-name { color: var(--grey); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legend-weight { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }

.mono-line {
  min-height: 1.5em;
  font-size: 0.75rem;
  color: var(--mint-text);
  letter-spacing: 0.04em;
  margin: 14px 0 6px;
}
.score-readout { font-size: 0.78rem; color: var(--grey); letter-spacing: 0.03em; }
.score-readout strong { color: var(--mint-text); }

/* ---------- 6b. Holdings explorer ---------- */

.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pill-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(26, 29, 38, 0.14);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pill-btn:hover { border-color: var(--blue-text); color: var(--blue-text); }
.pill-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-btn-lucky { border-style: dashed; border-color: var(--blue-text); color: var(--blue-text); }
.pill-btn-lucky:hover { background: var(--blue); color: #fff; }

.holdings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.holding-card {
  position: relative;
  padding: 18px 16px 16px;
  scroll-margin-top: calc(var(--tape-h) + var(--nav-h) + 24px);
}
.holding-card[hidden] { display: none; }
.holding-card.is-lucky {
  border-color: var(--blue-text);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.25), var(--shadow-lift);
}
.holding-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.holding-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.holding-ticker { font-family: var(--font-mono); font-weight: 600; font-size: 0.85rem; }
.holding-weight {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--grey);
}
.holding-name { font-size: 0.8rem; font-weight: 600; margin-bottom: 4px; }
.holding-line { font-size: 0.76rem; color: var(--grey); min-height: 3.4em; margin-bottom: 10px; }
.holding-spark { width: 100%; height: 30px; }
.holding-spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark-up polyline { stroke: var(--mint); }
.spark-down polyline { stroke: var(--down); }
.holding-delta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--grey); margin-top: 6px; display: block; }

/* ---------- 7. Terminal ---------- */

.terminal-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}
.card-dark {
  background: #12141B;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-r { background: #FF5F57; }
.tdot-y { background: #FEBC2E; }
.tdot-g { background: #28C840; }
.terminal-title { margin-left: 10px; font-size: 0.72rem; color: #8A92A6; }
.terminal-screen {
  padding: 20px 22px 26px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: #DDE3F0;
  min-height: 430px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}
.c-kw { color: #7DA3FF; }
.c-str { color: #46D6A0; }
.c-com { color: #5D6579; font-style: italic; }
.c-fn { color: #B8C7FF; }
.cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  vertical-align: text-bottom;
  background: #46D6A0;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- 8. Performance / roadmap ---------- */

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.roadmap-card { padding: 24px 22px; }
.roadmap-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.roadmap-q { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; }
.roadmap-spark { width: 100%; height: 36px; margin-bottom: 14px; }
.roadmap-spark polyline {
  fill: none;
  stroke: var(--mint);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.roadmap-note { font-size: 0.84rem; color: var(--grey); }

/* ---------- 9. Advisors ---------- */

.advisors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.advisor-card { padding: 28px 26px; text-align: center; }
.avatar-slot {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 18px;
  background: #F1F4FA;
  border: var(--hairline);
  overflow: hidden;
}
.advisor-name { margin-bottom: 2px; }
.advisor-title { font-family: var(--font-mono); font-size: 0.72rem; color: var(--blue-text); margin-bottom: 14px; }
.advisor-quote { font-size: 0.88rem; color: var(--grey); font-style: italic; }

/* ---------- 10. Invest ---------- */

.invest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.invest-card { padding: 28px 26px; }
.step-num {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-text);
  background: var(--blue-soft);
  border-radius: 8px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.invest-card h3 { margin-bottom: 8px; }
.invest-card p { font-size: 0.9rem; color: var(--grey); }
.invest-card-final .ca-row { margin: 18px 0 14px; }
.invest-card-final .ca-pill { max-width: 100%; }

/* ---------- 11. FAQ ---------- */

.faq-list { margin-top: 30px; border-top: var(--hairline); }
.faq-item { border-bottom: var(--hairline); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-mark {
  font-family: var(--font-mono);
  color: var(--blue-text);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] .faq-mark { transform: rotate(45deg); }
.faq-item p { padding: 0 4px 20px; color: var(--grey); max-width: 62ch; }

/* ---------- 12. Footer ---------- */

.footer { border-top: var(--hairline); padding: 48px 0 40px; }
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}
.wordmark-footer { font-size: 1.05rem; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.footer-links a { color: var(--ink); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.footer-links a:hover { color: var(--blue-text); }
.footer-ca { font-size: 0.7rem; color: var(--grey); word-break: break-all; }
.disclaimer { font-size: 0.72rem; color: var(--grey); line-height: 1.7; max-width: 92ch; }

/* ---------- Mobile sticky CA bar ---------- */

.ca-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 80;
  display: none;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  padding: 12px 14px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  transition: transform 0.25s ease, visibility 0.25s;
}
.ca-bar.is-suppressed, .ca-bar.is-dismissed { transform: translateY(110%); visibility: hidden; }
.ca-bar-ticker { flex: none; font-size: 0.75rem; font-weight: 600; color: #9DB9FF; }
.ca-bar-ca {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  color: #C4C9D6;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ca-bar-copy {
  flex: none;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  cursor: pointer;
}
.ca-bar-close {
  flex: none;
  background: none;
  border: none;
  color: #C4C9D6;
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 0.8rem;
  padding: 12px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lift);
  z-index: 100;
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---------- Scroll reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .metrics-grid, .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .fund-grid, .terminal-grid, .hero-grid { grid-template-columns: 1fr; }
  .terminal-grid { gap: 32px; }
  .advisors-grid, .invest-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 52px; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: var(--hairline);
    padding: 8px 20px 18px;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 4px; border-bottom: var(--hairline); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-cta { margin-top: 12px; text-align: center; }
  .metrics-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .statement-card { padding: 24px 18px; }
  .statement-ca-row, .statement-actions { flex-direction: column; align-items: stretch; }
  .statement-ca { flex: none; }
  .ca-bar { display: flex; }
  .toast { bottom: 96px; }
  .donut-wrap { padding: 20px; }
  .legend-row { grid-template-columns: 12px 80px 1fr auto; gap: 8px; padding: 10px 12px; }
  .terminal-screen { min-height: 0; font-size: 0.7rem; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .container, .container-narrow { width: calc(100% - 28px); }
  .hero h1 { font-size: 2.1rem; }
  .legend-row { grid-template-columns: 12px 72px 1fr auto; font-size: 0.78rem; }
  .legend-name { display: none; }
  .holdings-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .tape-track { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .card:hover, .btn:hover { transform: none; }
  .cursor { animation: none; }
}
