/*
Theme Name: Vest Theme (Capital Grid Financial — Investment Demo)
Theme URI: https://example.com/
Author: Investment Demo
Description: Custom theme for Capital Grid Financial, a SIMULATED / SANDBOX crypto + AI investment platform. Demo only — all money and all returns are fake. Not a real broker, fund, or security.
Version: 0.1.0
Requires PHP: 7.4
Text Domain: vest
*/

/* ============================ Tokens ============================ */
:root {
	--vx-void: #0A0B12;
	--vx-void2: #070810;
	--vx-panel: #12141F;
	--vx-panel2: #1A1D2B;
	--vx-line: rgba(255,255,255,0.08);
	--vx-line2: rgba(255,255,255,0.14);
	--vx-aqua: #2DD4BF;
	--vx-aqua-ink: #06231E;
	--vx-violet: #8B7CFF;
	--vx-up: #34D399;
	--vx-down: #FB5C7D;
	--vx-amber: #FFC53D;
	--vx-ink: #EDEFF7;
	--vx-muted: #99A0B5;
	--vx-radius: 14px;
	--vx-mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
	--vx-sans: "Inter", system-ui, -apple-system, sans-serif;
	--vx-display: "Space Grotesk", var(--vx-sans);
	--vx-container: 1180px;
}

/* ============================ Base ============================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0; background: var(--vx-void); color: var(--vx-ink);
	font-family: var(--vx-sans); font-size: 16px; line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
a { color: var(--vx-aqua); text-decoration: none; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--vx-display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--vx-ink); }
.vest-container { max-width: var(--vx-container); margin: 0 auto; padding: 0 24px; }
.vest-mono { font-family: var(--vx-mono); font-variant-numeric: tabular-nums; }
.up { color: var(--vx-up); }
.down { color: var(--vx-down); }

/* Buttons (shared with app) */
.vest-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--vx-sans); font-weight: 600; font-size: 15px; line-height: 1; padding: 13px 22px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; transition: transform .12s ease, background .12s ease, border-color .12s ease; }
.vest-btn:hover { transform: translateY(-1px); }
.vest-btn--accent { background: var(--vx-aqua); color: var(--vx-aqua-ink); }
.vest-btn--accent:hover { background: #45e0cd; }
.vest-btn--ghost { background: transparent; color: var(--vx-ink); border-color: var(--vx-line2); }
.vest-btn--ghost:hover { border-color: var(--vx-aqua); color: var(--vx-aqua); }
.vest-btn--sm { padding: 9px 16px; font-size: 14px; border-radius: 8px; }
.vest-btn--lg { padding: 16px 30px; font-size: 17px; }

/* ============================ Demo banner ============================ */
.vest-demobar { background: var(--vx-amber); color: #14120A; font-size: 13.5px; }
.vest-demobar__inner { display: flex; align-items: center; gap: 12px; padding: 9px 24px; }
.vest-demobar__tag { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; background: #14120A; color: var(--vx-amber); padding: 3px 9px; border-radius: 5px; white-space: nowrap; }
.vest-demobar__txt { font-weight: 500; }

/* ============================ Broadcast / halt banners ============================ */
.vest-broadcast { background: linear-gradient(90deg, rgba(139,124,255,0.18), rgba(45,212,191,0.14)); border-bottom: 1px solid var(--vx-line2); font-size: 14px; color: var(--vx-ink); }
.vest-broadcast .vest-container { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.vest-broadcast__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vx-aqua); flex: 0 0 auto; animation: vest-pulse 1.6s infinite; }
.vest-halted { background: var(--vx-amber); color: #14120a; font-weight: 600; font-size: 13.5px; }
.vest-halted .vest-container { padding-top: 9px; padding-bottom: 9px; }
@keyframes vest-pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ============================ Header ============================ */
.vest-header { position: sticky; top: 0; z-index: 500; background: rgba(10,11,18,0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--vx-line); }
.vest-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.vest-header__brand { display: inline-flex; }
.vest-logo { display: inline-flex; align-items: center; gap: 10px; }
.vest-logo__wm { font-family: var(--vx-display); font-weight: 700; font-size: 20px; color: var(--vx-ink); letter-spacing: -0.02em; }
.vest-logo__mk { color: #C4CAD9; font-weight: 500; letter-spacing: .01em; }
.vest-nav { display: flex; align-items: center; gap: 22px; }
.vest-nav__head { display: none; }
.vest-nav__links { display: flex; align-items: center; gap: 22px; }
.vest-nav__link { color: var(--vx-muted); font-weight: 500; font-size: 15px; transition: color .12s ease; }
.vest-nav__link:hover { color: var(--vx-ink); }
.vest-nav__cta { display: flex; align-items: center; gap: 12px; }
/* Desktop: Sign in reads as a plain link, not a button */
.vest-nav__signin { color: var(--vx-ink); background: none; border-color: transparent; padding: 10px 4px; }
.vest-nav__signin:hover { color: var(--vx-aqua); background: none; border-color: transparent; transform: none; }
.vest-nav__ctabtn { padding: 10px 18px; font-size: 14px; }
.vest-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.vest-burger span { width: 24px; height: 2px; background: var(--vx-ink); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.vest-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vest-burger.is-open span:nth-child(2) { opacity: 0; }
.vest-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================ Hero ============================ */
.vest-hero { position: relative; overflow: hidden; padding: 88px 0 64px; }
.vest-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background:
	radial-gradient(60% 60% at 78% 8%, rgba(139,124,255,0.20), transparent 60%),
	radial-gradient(55% 55% at 8% 30%, rgba(45,212,191,0.16), transparent 60%); }
.vest-hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.vest-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--vx-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--vx-aqua); border: 1px solid var(--vx-line2); border-radius: 8px; padding: 6px 12px; margin-bottom: 22px; }
.vest-hero h1 { font-size: clamp(38px, 5.4vw, 62px); margin: 0 0 18px; }
.vest-hero h1 .g { color: var(--vx-aqua); }
.vest-hero__lead { font-size: 19px; color: var(--vx-muted); max-width: 540px; margin: 0 0 30px; }
.vest-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.vest-hero__note { margin-top: 18px; font-size: 13px; color: var(--vx-muted); }

/* Hero preview card (mock portfolio) */
.vest-heropanel { background: linear-gradient(180deg, var(--vx-panel2), var(--vx-panel)); border: 1px solid var(--vx-line2); border-radius: 18px; padding: 22px; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.9); }
.vest-heropanel__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.vest-heropanel__k { font-size: 12px; color: var(--vx-muted); text-transform: uppercase; letter-spacing: .06em; }
.vest-heropanel__v { font-family: var(--vx-mono); font-size: 34px; font-weight: 700; color: var(--vx-ink); }
.vest-heropanel__chg { font-family: var(--vx-mono); font-size: 14px; color: var(--vx-up); margin-bottom: 16px; }
.vest-spark { display: block; width: 100%; height: 96px; margin: 6px 0 16px; }
.vest-heropanel__rows { display: grid; gap: 8px; }
.vest-hpr { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; background: var(--vx-void); border: 1px solid var(--vx-line); border-radius: 10px; font-size: 14px; }
.vest-hpr__sym { font-family: var(--vx-display); font-weight: 600; }
.vest-hpr__px { font-family: var(--vx-mono); color: var(--vx-muted); }
.vest-hpr__chg { font-family: var(--vx-mono); }

/* ============================ Ticker bar ============================ */
.vest-tickerbar { margin-top: 8px; }

/* ============================ Section shell ============================ */
.vest-section { padding: 72px 0; }
.vest-section--alt { background: var(--vx-void2); border-top: 1px solid var(--vx-line); border-bottom: 1px solid var(--vx-line); }
.vest-section__head { max-width: 680px; margin: 0 0 44px; }
.vest-section__eyebrow { font-family: var(--vx-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--vx-violet); }
.vest-section__head h2 { font-size: clamp(28px, 4vw, 42px); margin: 10px 0 12px; }
.vest-section__head p { color: var(--vx-muted); font-size: 17px; margin: 0; }

/* How it works */
.vest-steps { position: relative; max-width: 920px; margin: 0 auto; }
.vest-steps__line { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.vest-step { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px; padding: 18px 0; }
.vest-step__card { grid-column: 1; background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: var(--vx-radius); padding: 26px 24px; transition: border-color .15s ease, transform .15s ease; }
.vest-step__card:hover { border-color: var(--vx-line2); transform: translateY(-2px); }
.vest-step.is-flip .vest-step__card { grid-column: 2; }
.vest-step__n { font-family: var(--vx-mono); font-size: 13px; color: var(--vx-aqua); border: 1px solid var(--vx-line2); border-radius: 8px; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.vest-step h3 { font-size: 18px; margin: 0 0 8px; }
.vest-step p { color: var(--vx-muted); font-size: 14.5px; margin: 0; }

/* Feature grid */
.vest-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.vest-feature { background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: var(--vx-radius); padding: 28px 24px; }
.vest-feature__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--vx-panel2); border: 1px solid var(--vx-line2); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--vx-aqua); }
.vest-feature h3 { font-size: 19px; margin: 0 0 8px; }
.vest-feature p { color: var(--vx-muted); font-size: 15px; margin: 0; }

/* Market preview */
.vest-mkt { background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: var(--vx-radius); overflow: hidden; }
.vest-mkt__row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 12px; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--vx-line); }
.vest-mkt__row:last-child { border-bottom: none; }
.vest-mkt__row--head { background: var(--vx-void2); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--vx-muted); }
.vest-mkt__sym { font-family: var(--vx-display); font-weight: 600; font-size: 16px; }
.vest-mkt__name { color: var(--vx-muted); font-size: 13px; }
.vest-mkt__num { font-family: var(--vx-mono); text-align: right; }
.vest-mkt__kind { display: inline-block; font-size: 11px; color: var(--vx-violet); border: 1px solid var(--vx-line2); border-radius: 6px; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }

/* Live coin cards (homepage market) */
.vest-coins { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vest-coin { background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: 16px; padding: 20px 20px 12px; transition: border-color .15s ease, transform .15s ease; }
.vest-coin:hover { border-color: var(--vx-line2); transform: translateY(-2px); }
.vest-coin__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.vest-coin__id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.vest-coin__logo { width: 34px; height: 34px; border-radius: 9px; background: #fff; object-fit: contain; padding: 4px; flex: 0 0 auto; box-shadow: 0 0 0 1px var(--vx-line); }
.vest-coin__idtext { min-width: 0; }
.vest-coin__sym { display: block; font-family: var(--vx-display); font-weight: 600; font-size: 18px; color: var(--vx-ink); }
.vest-coin__name { display: block; font-size: 13px; color: var(--vx-muted); }
.vest-coin__kind { font-size: 11px; color: var(--vx-violet); border: 1px solid var(--vx-line2); border-radius: 6px; padding: 3px 9px; }
.vest-coin__pxrow { display: flex; align-items: baseline; gap: 12px; margin: 14px 0 6px; }
.vest-coin__px { font-size: 22px; font-weight: 700; color: var(--vx-ink); }
.vest-coin__chg { font-size: 14px; }
.vest-coin__spark { width: 100%; height: 72px; display: block; }

/* Plans */
.vest-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.vest-plan { display: flex; flex-direction: column; background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: 16px; padding: 30px 26px; }
.vest-plan--feature { border-color: var(--vx-aqua); background: linear-gradient(180deg, rgba(45,212,191,0.06), var(--vx-panel)); }
.vest-plan__name { font-family: var(--vx-display); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.vest-plan__price { font-family: var(--vx-mono); font-size: 34px; font-weight: 700; color: var(--vx-ink); }
.vest-plan__price span { font-size: 15px; color: var(--vx-muted); font-weight: 400; }
.vest-plan__desc { color: var(--vx-muted); font-size: 14px; margin: 10px 0 18px; }
.vest-plan__list { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.vest-plan__list li { padding: 9px 0 9px 26px; position: relative; font-size: 14.5px; border-bottom: 1px solid var(--vx-line); }
.vest-plan__list li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 9px; border-radius: 3px; background: var(--vx-aqua); }

/* CTA */
.vest-cta { position: relative; overflow: hidden; text-align: center; background: var(--vx-panel2); border: 1px solid var(--vx-line2); border-radius: 20px; padding: 60px 30px; }
.vest-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(45,212,191,0.18), transparent 60%); }
.vest-cta__inner { position: relative; z-index: 1; }
.vest-cta h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 14px; }
.vest-cta p { color: var(--vx-muted); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }

/* FAQ */
.vest-faq { max-width: 820px; }
.vest-faq__item { border: 1px solid var(--vx-line); border-radius: 12px; margin-bottom: 12px; background: var(--vx-panel); overflow: hidden; }
.vest-faq__item summary { cursor: pointer; padding: 20px 22px; font-family: var(--vx-display); font-weight: 600; font-size: 17px; color: var(--vx-ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.vest-faq__item summary::-webkit-details-marker { display: none; }
.vest-faq__item summary::after { content: "+"; font-family: var(--vx-mono); color: var(--vx-aqua); font-size: 22px; }
.vest-faq__item[open] summary::after { content: "\2212"; }
.vest-faq__item p { padding: 0 22px 20px; margin: 0; color: var(--vx-muted); }

/* Generic content pages */
.vest-page { padding: 56px 0 72px; }
.vest-page__head { max-width: 760px; margin: 0 0 32px; }
.vest-page__head h1 { font-size: clamp(32px, 5vw, 48px); margin: 0 0 10px; }
.vest-page__head p { color: var(--vx-muted); font-size: 18px; margin: 0; }
.vest-prose { max-width: 760px; }
.vest-prose h2 { font-size: 26px; margin: 34px 0 12px; }
.vest-prose h3 { font-size: 20px; margin: 26px 0 10px; }
.vest-prose p, .vest-prose li { color: #c7ccdb; font-size: 16.5px; }
.vest-prose a { text-decoration: underline; }

/* Contact */
.vest-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.vest-form label { display: block; font-size: 13px; font-weight: 600; color: var(--vx-muted); margin-bottom: 16px; }
.vest-form input, .vest-form textarea { display: block; width: 100%; margin-top: 6px; padding: 13px 15px; box-sizing: border-box; background: var(--vx-panel); border: 1px solid var(--vx-line2); border-radius: 10px; color: var(--vx-ink); font-family: var(--vx-sans); font-size: 15px; }
.vest-form input:focus, .vest-form textarea:focus { outline: none; border-color: var(--vx-aqua); }
.vest-note { font-size: 13px; color: var(--vx-muted); background: var(--vx-panel); border: 1px dashed var(--vx-line2); border-radius: 10px; padding: 14px 16px; margin-top: 16px; }

/* ---- About page (real desktop layout: lead + at-a-glance card, then 3-up blocks) ---- */
.vest-about-hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.vest-about-hero__copy h1 { font-size: clamp(34px, 4.6vw, 54px); margin: 0 0 16px; }
.vest-about-hero__lead { font-size: 20px; color: var(--vx-muted); margin: 0 0 20px; line-height: 1.5; }
.vest-about-hero__copy p { color: #c7ccdb; font-size: 17px; margin: 0 0 16px; }
.vest-about-card { background: var(--vx-panel); border: 1px solid var(--vx-line2); border-radius: 18px; padding: 30px; position: sticky; top: 92px; background-image: radial-gradient(120% 120% at 100% 0%, rgba(45,212,191,0.10), transparent 55%); }
.vest-about-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--vx-muted); margin: 0 0 8px; }
.vest-about-card ul { list-style: none; margin: 0 0 22px; padding: 0; }
.vest-about-card li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--vx-line); }
.vest-about-card li:last-child { border-bottom: none; }
.vest-about-card .k { color: var(--vx-muted); font-size: 14px; }
.vest-about-card .v { font-family: var(--vx-display); font-weight: 600; color: var(--vx-ink); font-size: 15px; text-align: right; }
.vest-about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.vest-about-block { background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: 16px; padding: 30px 26px; }
.vest-about-block h2 { font-size: 20px; margin: 0 0 12px; }
.vest-about-block p { color: var(--vx-muted); font-size: 15.5px; margin: 0; line-height: 1.7; }

/* ---- FAQ page (sticky rail + wide accordion) ---- */
.vest-faq-layout { display: grid; grid-template-columns: 0.82fr 1.55fr; gap: 56px; align-items: start; }
.vest-faq-rail { position: sticky; top: 92px; }
.vest-faq-rail h1 { font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 14px; }
.vest-faq-rail__lead { color: var(--vx-muted); font-size: 17px; margin: 0 0 26px; line-height: 1.6; }
.vest-faq-cta { background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: 16px; padding: 24px; }
.vest-faq-cta h3 { font-size: 17px; margin: 0 0 8px; }
.vest-faq-cta p { color: var(--vx-muted); font-size: 14px; margin: 0 0 16px; }
.vest-faq-list { display: flex; flex-direction: column; gap: 12px; }

/* ---- Generic doc page: centered, balanced gutters (no dead side) ---- */
.vest-page--doc .vest-page__head, .vest-page--doc .vest-prose { margin-left: auto; margin-right: auto; }

/* ---- Signed-out app state: 2-col instead of a lonely centered box ---- */
.vest-signedout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; max-width: 1000px; margin: 0 auto; padding: 48px 0; }
.vest-signedout__copy h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 12px; }
.vest-signedout__copy p { color: var(--vx-muted); font-size: 18px; margin: 0 0 24px; }
.vest-signedout__card { background: var(--vx-panel); border: 1px solid var(--vx-line2); border-radius: 18px; padding: 28px; }
.vest-signedout__card ul { list-style: none; margin: 0; padding: 0; }
.vest-signedout__card li { padding: 12px 0 12px 26px; position: relative; border-bottom: 1px solid var(--vx-line); font-size: 15px; }
.vest-signedout__card li:last-child { border-bottom: none; }
.vest-signedout__card li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 9px; height: 9px; border-radius: 3px; background: var(--vx-aqua); }

/* App template wrapper */
.vest-app-shell { min-height: 60vh; }

/* Entrance animation */
.vest-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.vest-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .vest-reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ============================ Footer ============================ */
.vest-footer { background: var(--vx-void2); border-top: 1px solid var(--vx-line); padding: 60px 0 30px; margin-top: 40px; }
.vest-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.vest-logo--foot .vest-logo__wm { font-size: 18px; }
.vest-footer__tag { color: var(--vx-muted); font-size: 14px; margin: 14px 0 0; max-width: 320px; }
.vest-footer__col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--vx-ink); margin: 0 0 14px; }
.vest-footer__col a { display: block; color: var(--vx-muted); font-size: 14.5px; padding: 5px 0; }
.vest-footer__col a:hover { color: var(--vx-ink); }
.vest-footer__badge { display: inline-block; background: var(--vx-amber); color: #14120A; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.vest-footer__mini { color: var(--vx-muted); font-size: 12.5px; margin: 10px 0 0; }
.vest-social { display: flex; gap: 10px; margin-top: 18px; }
.vest-social__link { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--vx-line2); color: var(--vx-muted); transition: color .14s ease, border-color .14s ease, transform .14s ease, background .14s ease; }
.vest-social__link:hover { color: var(--vx-aqua-ink); background: var(--vx-aqua); border-color: var(--vx-aqua); transform: translateY(-2px); }
.vest-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; color: var(--vx-muted); font-size: 13px; flex-wrap: wrap; }

/* ============================ Breakpoints ============================ */
@media (max-width: 1024px) {
	.vest-hero__inner { grid-template-columns: 1fr; gap: 36px; }
	.vest-footer__grid { grid-template-columns: 1fr 1fr; }
	.vest-about-hero { grid-template-columns: 1fr; gap: 32px; }
	.vest-about-card { position: static; }
	.vest-about-grid { grid-template-columns: 1fr 1fr; }
	.vest-faq-layout { grid-template-columns: 1fr; gap: 32px; }
	.vest-faq-rail { position: static; }
	.vest-signedout { grid-template-columns: 1fr; gap: 28px; }
	.vest-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.vest-burger { display: flex; position: relative; z-index: 620; }
	/* When the drawer is open, its own close (x) is the single control — hide the burger-x. */
	.vest-burger.is-open { display: none; }
	/* Remove backdrop-filter on mobile: it makes the header a containing block and traps the fixed drawer. */
	.vest-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(10,11,18,0.97); }
	.vest-nav { position: fixed; inset: 0 0 0 auto; height: 100vh; height: 100dvh; z-index: 610; width: min(87vw, 370px); flex-direction: column; align-items: stretch; gap: 0; background: linear-gradient(180deg, #171A29 0%, #0D0F18 100%); border-left: 1px solid var(--vx-line2); box-shadow: -30px 0 70px -20px rgba(0,0,0,0.9); padding: 16px 22px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1); }
	.vest-nav.is-open { transform: none; }
	.vest-nav__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--vx-line); }
	.vest-nav__close { background: none; border: none; color: var(--vx-muted); font-size: 30px; line-height: 1; cursor: pointer; padding: 0 2px; transition: color .12s ease; }
	.vest-nav__close:hover { color: var(--vx-ink); }
	.vest-nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
	.vest-nav__link { padding: 14px 4px; font-size: 16.5px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.045); }
	.vest-nav__cta { display: flex; flex-direction: column; align-items: stretch; width: 100%; margin: 22px 0 0; gap: 12px; }
	.vest-nav__cta .vest-btn { width: 100%; padding: 15px 22px; font-size: 16px; }
	.vest-nav__signin { color: var(--vx-ink); }
	.vest-features { grid-template-columns: 1fr; }
	.vest-plans { grid-template-columns: 1fr; }
	.vest-step { grid-template-columns: 44px 1fr; column-gap: 0; padding: 11px 0; }
	.vest-step__card, .vest-step.is-flip .vest-step__card { grid-column: 2; }
	.vest-mkt__row { grid-template-columns: 1.6fr 1fr 1fr; }
	.vest-mkt__row .vest-mkt__col--kind { display: none; }
	.vest-contact { grid-template-columns: 1fr; }
	.vest-about-grid { grid-template-columns: 1fr; }
	.vest-coins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.vest-coin { padding: 16px 14px 10px; }
	.vest-coin__kind { display: none; } /* redundant on mobile: all board cards are stocks, header says Stocks */
	.vest-coin__logo { width: 28px; height: 28px; }
	.vest-coin__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.vest-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
	.vest-container { padding: 0 16px; }
	.vest-section { padding: 52px 0; }
	.vest-footer__grid { grid-template-columns: 1fr; }
	.vest-demobar__inner { align-items: flex-start; }
	/* Keep the full "Capital Grid Financial" wordmark on mobile; just size it to fit. */
	.vest-header__brand .vest-logo__wm { font-size: 17px; }
	.vest-header__brand .vest-logo svg { width: 26px; height: 26px; }
}

/* App nav inside the mobile hamburger drawer (labeled tabs for logged-in users) */
.vest-nav__app { display: none; }
@media (max-width: 767px) {
	.vest-nav__app { display: flex; flex-direction: column; gap: 14px; width: 100%; border-top: 1px solid var(--vx-line2); padding-top: 16px; margin-top: 2px; }
	.vest-nav__applabel { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--vx-muted); }
	.vest-nav__app .vest-nav__link { font-size: 16px; }
}

/* Asset-class grid (homepage, Phase 9) */
.vest-classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vest-classcard { background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: 14px; padding: 22px 20px; transition: transform .14s ease, border-color .14s ease; }
.vest-classcard:hover { transform: translateY(-3px); border-color: rgba(45,212,191,0.4); }
.vest-classcard__ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(45,212,191,0.1); color: var(--vx-aqua); margin-bottom: 12px; }
.vest-classcard h3 { font-family: var(--vx-display); font-size: 17px; font-weight: 600; color: var(--vx-ink); margin: 0 0 6px; }
.vest-classcard p { color: var(--vx-muted); font-size: 13.5px; line-height: 1.5; margin: 0; }
@media (max-width: 1024px) { .vest-classes { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 767px) { .vest-classes { grid-template-columns: repeat(2, 1fr); gap: 10px; } .vest-classcard { padding: 18px 16px; } }
@media (max-width: 380px) { .vest-classes { grid-template-columns: 1fr 1fr; } }

/* Differentiated market chart panels (Crypto / Stocks / Currencies) — TradingView */
.cg-tvpanel { position: relative; background: var(--vx-panel); border: 1px solid var(--vx-line); border-radius: 16px; padding: 16px; overflow: hidden; }
.cg-tvpanel__glow { position: absolute; top: -40%; right: -8%; width: 55%; height: 80%; background: radial-gradient(circle, rgba(45,212,191,0.14), transparent 70%); pointer-events: none; }
.cg-tvpanel__label { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--vx-muted); margin-bottom: 12px; position: relative; }
.cg-tvpanel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--vx-up); box-shadow: 0 0 0 4px rgba(52,211,153,0.16); animation: cg-pulse 2s infinite; }
@keyframes cg-pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.cg-tvpanel__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; position: relative; }
.cg-tvtab { background: var(--vx-void); border: 1px solid var(--vx-line); color: var(--vx-muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 8px; cursor: pointer; }
.cg-tvtab:hover { color: var(--vx-ink); }
.cg-tvtab.is-active { background: rgba(45,212,191,0.12); color: var(--vx-aqua); border-color: rgba(45,212,191,0.4); }
.cg-tvpanel__chart { height: 420px; position: relative; border-radius: 10px; overflow: hidden; }
.cg-tvpanel__chart .tradingview-widget-container { height: 100%; }
@media (max-width: 767px) { .cg-tvpanel__chart { height: 320px; } }
