/* ═══════════════════════════════════════════════════════════════════════════
   Blobe AI — "Studio" skin for every page except the landing/download pages (those use studio.css).
   Loaded LAST (after main.css, refresh.css and, on the dashboard, assistant.css), so it only restyles —
   markup and behaviour are untouched. Remove the <link> from a page to roll that page back.
   Same system as studio.css: warm paper · black ink · electric blue · lime / lilac / butter accents.
═══════════════════════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

/* The old display face was "Syne" (hard-coded in hundreds of rules). Alias that name to Bricolage Grotesque
   (self-hosted, latin) so every heading on every page picks up the new type without touching each rule. */
@font-face { font-family: 'Syne'; src: url('/fonts/bricolage-grotesque-latin.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }

/* ───────────── tokens ───────────── */
:root {
  --paper: #f4f1e9; --ink: #101014; --lime: #d7ff4f; --butter: #ffe27a; --sky: #b7d3ff; --lilac: #d2c4ff; --mint: #b6f0d1; --peach: #ffc3ab; --rose: #ffb7d1; --coral: #ff6a4d;
  --sk-hard: #101014;
  --serif: 'Instrument Serif', Georgia, serif; --mono: 'DM Mono', ui-monospace, Consolas, monospace;

  --bg: #f4f1e9; --bg2: #fffdf8; --bg3: #ebe6d9; --card: #fffdf8;
  --border: rgba(16, 16, 20, .13); --border2: rgba(16, 16, 20, .28);
  --text: #101014; --text2: #44444d; --muted: #7a7a84;
  --accent: #2147ff; --accent-h: #1530c9; --accent-soft: #e6eaff; --accent-soft2: #ccd5ff; --accent-glow: rgba(33, 71, 255, .22);
  --success: #0a9a55; --error: #e5432d; --error-soft: #ffe9e4; --gold: #f5b800; --purple: #7c5cff; --pink: #ff7aa8;
  --grad-primary: #2147ff; --brand-grad: #2147ff; --grad-dark: #101014; --grad-gold: #ffe27a;
  --radius: 16px; --radius2: 26px;
  --shadow-sm: 0 1px 0 rgba(16, 16, 20, .05); --shadow: 0 10px 30px rgba(16, 16, 20, .08); --shadow-lg: 0 24px 60px rgba(16, 16, 20, .14); --shadow-xl: 0 30px 80px rgba(16, 16, 20, .2); --glow: none;
  --line-r: rgba(16, 16, 20, .13); --sh-card: none; --sh-card-h: 6px 6px 0 #101014;
}
[data-theme="dark"] {
  --bg: #0d0d11; --bg2: #16161c; --bg3: #1e1e26; --card: #1b1b23;
  --border: rgba(244, 241, 233, .13); --border2: rgba(244, 241, 233, .28);
  --text: #f4f1e9; --text2: #cbc8be; --muted: #8e8c96;
  --accent: #7f98ff; --accent-h: #a3b4ff; --accent-soft: rgba(127, 152, 255, .14); --accent-soft2: rgba(127, 152, 255, .28); --accent-glow: rgba(127, 152, 255, .3);
  --error-soft: rgba(255, 106, 77, .14);
  --sk-hard: rgba(244, 241, 233, .92); --line-r: rgba(244, 241, 233, .13); --sh-card-h: 6px 6px 0 rgba(244, 241, 233, .92);
}

/* ───────────── dashboard + chat tokens (css/assistant.css feeds on --as-*) ───────────── */
:root {
  --as-bg: #f4f1e9; --as-chat-bg: #fffdf8; --as-card: #fffdf8; --as-card-2: #f0ece0;
  --as-line: rgba(16, 16, 20, .13); --as-line2: rgba(16, 16, 20, .28);
  --as-ink: #101014; --as-ink2: #44444d; --as-muted: #7a7a84;
  --as-blue: #2147ff; --as-blue-h: #1530c9; --as-soft: #e6eaff; --as-soft2: #ccd5ff; --as-on-accent: #ffffff;
  --as-user: #2147ff; --as-hero: #2147ff; --as-hero-blob-1: #d2c4ff; --as-hero-blob-2: #d7ff4f; --as-hero-ink: #ffffff; --as-hero-sub: #e3e9ff;
  --as-hero-btn: #d7ff4f; --as-hero-btn-ink: #101014; --as-hero-line: rgba(255, 255, 255, .45);
  --as-spot: #101014; --as-spot-ink: #ffffff; --as-spot-sub: #cfcfd6; --as-spot-label: #d7ff4f; --as-spot-blob: #2a2a33;
  --as-good: #0a9a55; --as-warn-bg: #fff2d6; --as-warn: #b45309;
}
html[data-app-theme="dark"] {
  --as-bg: #0d0d11; --as-chat-bg: #0d0d11; --as-card: #1b1b23; --as-card-2: #1b1b23;
  --as-line: rgba(244, 241, 233, .13); --as-line2: rgba(244, 241, 233, .28);
  --as-ink: #f4f1e9; --as-ink2: #cbc8be; --as-muted: #8e8c96;
  --as-blue: #d7ff4f; --as-blue-h: #e8ff95; --as-soft: #26262f; --as-soft2: #34343f; --as-on-accent: #101014;
  --as-user: #2147ff; --as-hero: #2147ff; --as-hero-blob-1: #d2c4ff; --as-hero-blob-2: #d7ff4f; --as-hero-btn: #d7ff4f; --as-hero-btn-ink: #101014; --as-hero-line: rgba(255, 255, 255, .45);
  --as-spot: #d7ff4f; --as-spot-ink: #101014; --as-spot-sub: #2d3314; --as-spot-label: #101014; --as-spot-blob: #c2eb3c;
  --as-good: #7ee8c7; --as-warn-bg: #2a2115; --as-warn: #ffd166;
  --sk-hard: rgba(244, 241, 233, .92);
  --grad-primary: #d7ff4f; --brand-grad: #d7ff4f;
}
::selection { background: var(--lime); color: #101014; }
body { background: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { text-wrap: balance; }

/* ───────────── header ───────────── */
.header { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom: 1.5px solid var(--text); box-shadow: none; }
.header .btn-ghost { background: transparent; border: 1.5px solid var(--border2); color: var(--text); backdrop-filter: none; }
.header .btn-ghost:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.header .btn-ghost[style*="accent"] { background: var(--lime); color: #101014 !important; border-color: #101014; }
.inv-header { background: color-mix(in srgb, var(--bg) 88%, transparent) !important; border-bottom: 1.5px solid var(--text) !important; backdrop-filter: blur(14px); }
.inv-header .inv-logo-name { color: var(--text) !important; }
.inv-header .inv-logo img { filter: invert(1); }
[data-theme="dark"] .inv-header .inv-logo img { filter: none; }
.inv-header-link { color: var(--text2) !important; border-radius: 999px; }
.inv-header-link:hover { color: var(--text) !important; background: var(--bg3) !important; }
.inv-header-cta { background: var(--text) !important; color: var(--bg) !important; border-radius: 999px !important; box-shadow: none !important; }
.inv-header-cta:hover { transform: translate(-2px, -2px); box-shadow: 3px 3px 0 var(--accent) !important; }

/* ───────────── buttons ───────────── */
.btn { border-radius: 999px; letter-spacing: -.005em; font-weight: 600; }
.btn-primary { background: #101014 !important; color: #f4f1e9 !important; border: 1.5px solid #101014 !important; box-shadow: none !important; filter: none !important; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s cubic-bezier(.2, .8, .2, 1); }
.btn-primary:hover:not(:disabled) { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #2147ff !important; }
.btn-primary:active:not(:disabled) { transform: none; box-shadow: none !important; }
[data-theme="dark"] .btn-primary { background: var(--lime) !important; color: #101014 !important; border-color: var(--lime) !important; }
[data-theme="dark"] .btn-primary:hover:not(:disabled) { box-shadow: 4px 4px 0 #f4f1e9 !important; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border2); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); background: var(--text); color: var(--bg); }
.refer-banner-btn, .dash-filter-pill.active { background: #101014 !important; border-color: #101014 !important; color: var(--lime) !important; box-shadow: none !important; }
.dash-filter-pill { border-radius: 999px; border: 1.5px solid var(--border2); background: transparent; }
.dash-filter-pill:hover:not(.active) { border-color: var(--text); transform: translateY(-2px) rotate(-1deg); }

/* ───────────── heroes: one blue band with blobs ───────────── */
.dash-hero, .profile-hero, .pay-hero, .rp-hero, .inv-hero, .about-hero, .contact-hero, .legal-hero, .hero {
  background:
    radial-gradient(rgba(255, 255, 255, .24) 1.2px, transparent 1.7px) 0 0 / 24px 24px,
    radial-gradient(circle at 98% 118%, #d7ff4f 0 170px, transparent 171px),
    radial-gradient(circle at -2% -14%, #d2c4ff 0 150px, transparent 151px),
    #2147ff !important;
  animation: none !important; color: #fff;
}
.about-hero::before, .about-hero::after, .contact-hero::before, .contact-hero::after, .inv-hero::before, .inv-hero::after, .legal-hero::before, .legal-hero::after, .pay-hero::before, .pay-hero::after, .rp-hero::before, .rp-hero::after { display: none !important; }
.hero-glow, .pay-hero-blob-1, .pay-hero-blob-2, .inv-hero-glow, .contact-hero-glow { display: none !important; }
.about-hero h1, .contact-hero h1, .inv-hero h1, .legal-hero h1, .pay-hero h1, .rp-hero h1, .hero h1, .dash-hero h1 { color: #fff; letter-spacing: -.045em; line-height: 1.02; }
.about-hero h1 span, .contact-hero h1 span, .inv-hero h1 span, .legal-hero h1 span, .pay-hero h1 span, .rp-hero h1 span, .hero h1 span, .inv-hero h1 em, .about-hero h1 em, .hero h1 em, .contact-hero h1 em {
  background: none !important; -webkit-text-fill-color: #d7ff4f !important; color: #d7ff4f !important; font-family: var(--serif) !important; font-style: italic; font-weight: 400 !important; letter-spacing: -.01em; font-size: 1.08em;
}
.about-hero p, .contact-hero p, .inv-hero p, .legal-hero p, .pay-hero p, .rp-hero p, .hero p, .inv-hero-sub, .pay-hero-sub, .rp-hero-sub, .dash-hero p { color: rgba(255, 255, 255, .9) !important; }
.about-hero-tag, .contact-hero-tag, .inv-hero-eyebrow, .hero-pill, .pay-hero-tag, .legal-hero-tag, .rp-hero-tag { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; box-shadow: 3px 3px 0 #101014 !important; backdrop-filter: none !important; font-family: var(--mono); letter-spacing: .1em; }
.about-hero-tag *, .contact-hero-tag *, .inv-hero-eyebrow *, .hero-pill *, .pay-hero-tag *, .legal-hero-tag *, .rp-hero-tag * { color: #101014 !important; }
.greeting-line { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; backdrop-filter: none !important; }
.greeting-line::before { background: #0a9a55; box-shadow: none; }
.dash-hero .greeting-line, .dash-hero .greeting-line * { color: #101014 !important; -webkit-text-fill-color: #101014 !important; font-family: var(--mono); letter-spacing: .04em; }
.inv-hero-stats, .inv-stats-bar { background: rgba(16, 16, 20, .28) !important; border-color: rgba(255, 255, 255, .28) !important; backdrop-filter: none !important; }

/* ───────────── cards ───────────── */
.dash-stat-card, .dash-card, .mc-card, .pstat, .pcard, .prem-card, .pay-card, .rp-link-card, .rp-dual-card, .rp-cta-card, .inv-why-card, .inv-tiers-card,
.inv-progress-card, .inv-deal-card, .inv-calc-card, .inv-auth-card, .value-card, .team-card, .contact-info-card, .rating-card, .faq-card, .contact-form-card,
.guide-card, .picker-card, .note-box, .story-inner {
  border-radius: 26px; border: 1.5px solid var(--border2); box-shadow: none; background: var(--card);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.dash-stat-card:hover, .mc-card:hover, .value-card:hover, .team-card:hover, .inv-why-card:hover, .contact-info-card:hover, .rp-link-card:hover, .guide-card:hover {
  transform: translate(-3px, -3px); box-shadow: 6px 6px 0 var(--sk-hard); border-color: var(--text);
}
.value-card::before { display: none; }
.dash-stat-card-val, .pstat-val { background: none !important; -webkit-text-fill-color: currentColor; color: var(--text) !important; letter-spacing: -.04em; }
.dash-stat-card-icon { border-radius: 14px !important; box-shadow: none; border: 1.5px solid #101014; }

/* pastel rotation on feature-style cards (text stays dark even in dark mode) */
.value-card, .inv-why-card, .guide-card { --text: #101014; --text2: #3a3a42; --muted: #5d5d66; --border: rgba(16, 16, 20, .14); color: #101014; }
.value-card:nth-child(6n+1), .inv-why-card:nth-child(6n+1) { background: var(--butter); } .value-card:nth-child(6n+2), .inv-why-card:nth-child(6n+2) { background: var(--sky); }
.value-card:nth-child(6n+3), .inv-why-card:nth-child(6n+3) { background: var(--lilac); } .value-card:nth-child(6n+4), .inv-why-card:nth-child(6n+4) { background: var(--mint); }
.value-card:nth-child(6n+5), .inv-why-card:nth-child(6n+5) { background: var(--peach); } .value-card:nth-child(6n+6), .inv-why-card:nth-child(6n+6) { background: var(--rose); }
.value-card, .inv-why-card { border-color: #101014; }
.value-icon, .inv-why-icon { background: rgba(255, 255, 255, .75) !important; border: 1.5px solid #101014 !important; border-radius: 14px; }
.value-card:hover, .inv-why-card:hover { box-shadow: 6px 6px 0 #101014; }

/* ───────────── ink panels (were navy gradients) ───────────── */
.mission-visual, .about-cta, .about-vid-sec, .team-av, .inv-deal-head, .install-card-head, .inv-cta { background: #101014 !important; }
.about-vid-sec-bg { display: none; }
.mission-visual { border-radius: 32px; }
.mv-stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 18px; }
.mv-val { color: #d7ff4f; } .mv-lbl { color: rgba(255, 255, 255, .72); }
.story-quote { background: #d2c4ff; border: 1.5px solid #101014; border-radius: 26px; box-shadow: 7px 7px 0 #101014; }
.story-q-mark { color: #101014; } .story-q-text { color: #101014; } .story-q-author { color: #44444d; }
.about-cta { border-radius: 36px; } .about-cta h2, .about-vid-title { color: #fff; }
.about-cta p, .about-vid-sub { color: rgba(255, 255, 255, .72); }
.cta-primary { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; box-shadow: none; }
.cta-primary:hover { background: #d7ff4f !important; transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #fff !important; }
.cta-ghost { background: transparent !important; border-color: rgba(255, 255, 255, .4) !important; } .cta-ghost:hover { background: #fff !important; color: #101014 !important; }
.about-vid-eyebrow { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; font-family: var(--mono); }
.about-vid-stage { border: 1.5px solid #fff; box-shadow: 10px 10px 0 #d7ff4f; border-radius: 28px; }
.about-vid-play { background: #d7ff4f !important; border: 1.5px solid #101014 !important; box-shadow: 5px 5px 0 #101014 !important; }
.about-vid-play svg { color: #101014; fill: #101014; }
.team-av { border: 1.5px solid #101014; }

/* section labels */
.section-tag, .mission-label, .inv-eyebrow, .inv-section-tag { font-family: var(--mono); letter-spacing: .14em; color: var(--text2) !important; }
.section-title, .mission-block h2, .story-section h2 { letter-spacing: -.045em; }

/* ───────────── footers ───────────── */
.site-footer, .inv-footer, .footer, .rp-footer { background: #101014 !important; border-top: 0; color: #f4f1e9; }
[data-theme="dark"] .site-footer, [data-theme="dark"] .inv-footer, [data-theme="dark"] .footer, [data-theme="dark"] .rp-footer { background: #17171e !important; }
.footer-link:hover, .footer-bottom-link:hover { color: #d7ff4f !important; }
.footer-col-title { font-family: var(--mono) !important; letter-spacing: .14em; color: rgba(255, 255, 255, .45) !important; }
.footer-social-btn:hover { background: #d7ff4f !important; color: #101014 !important; transform: translateY(-3px) rotate(-6deg); }
.footer-logo-text { font-family: 'Syne', sans-serif; }

/* ───────────── forms ───────────── */
.form-input, .form-textarea, .form-select { border-radius: 14px; background: var(--bg2); border: 1.5px solid var(--border2); color: var(--text); }
.form-input:hover, .form-textarea:hover, .form-select:hover { border-color: var(--text); }
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--text); background: var(--bg2); box-shadow: 4px 4px 0 var(--lime); outline: none; }
.form-label { font-family: var(--mono); letter-spacing: .1em; font-size: .7rem; }

/* ───────────── login / signup ───────────── */
.auth-left {
  background:
    radial-gradient(rgba(255, 255, 255, .24) 1.2px, transparent 1.7px) 0 0 / 24px 24px,
    radial-gradient(circle at 100% 108%, #d7ff4f 0 230px, transparent 231px),
    radial-gradient(circle at -4% -6%, #d2c4ff 0 190px, transparent 191px),
    #2147ff !important;
}
.auth-left-title { color: #fff; letter-spacing: -.05em !important; } .auth-left-sub { color: rgba(255, 255, 255, .88) !important; }
.auth-right { background: var(--bg) !important; }
.auth-title { letter-spacing: -.05em !important; }


/* login brand mark + feature list */
.auth-brand { --lh: 34px; position: relative; display: block; width: calc(var(--lh) * 6.3); height: var(--lh); overflow: hidden; }
.auth-brand img { position: absolute !important; max-width: none !important; width: auto !important; height: calc(var(--lh) * 3.378) !important; left: calc(var(--lh) * -.468); top: calc(var(--lh) * -1.144); margin: 0; }
.auth-feat-icon { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; border-radius: 50% !important; font-weight: 800; }
.auth-feat span { color: rgba(255, 255, 255, .95); }
.auth-left-footer { color: rgba(255, 255, 255, .8) !important; font-family: var(--mono); font-size: .7rem; letter-spacing: .04em; }

/* ───────────── profile / dashboard bits ───────────── */
.ptab-btn { border-radius: 14px; }
.ptab-btn.active { background: #101014 !important; color: var(--lime) !important; box-shadow: none !important; }
.ptab-btn.active .ptab-icon, .ptab-btn.active .ptab-label { color: var(--lime) !important; }
.ptab-btn:hover:not(.active) { background: var(--bg3); transform: none; }
.profile-hero-av { box-shadow: 0 0 0 3px #101014, 6px 6px 0 #101014; }
.refer-banner { background: #101014 !important; border: 1.5px solid #101014 !important; }
html[data-app-theme="dark"] .refer-banner { background: #1b1b23 !important; border-color: rgba(244, 241, 233, .28) !important; }
html[data-app-theme="dark"] .refer-banner * { --as-ink: #f4f1e9; }
.profile-hero-email, .profile-hero-sub { color: rgba(255, 255, 255, .88) !important; }
.streak-pill { box-shadow: none; border: 1.5px solid #101014; }
.prem-card { background: #101014 !important; border: 1.5px solid #101014; box-shadow: 8px 8px 0 #d7ff4f; }
.chat-input-wrap:focus-within { box-shadow: 4px 4px 0 var(--lime); }

/* ───────────── install page ───────────── */
.os-card, .picker-card { border-radius: 24px; }
.os-card.active, .picker-card.active { background: var(--lilac) !important; border: 1.5px solid #101014 !important; box-shadow: 5px 5px 0 #101014 !important; color: #101014; --text: #101014; --text2: #3a3a42; --muted: #5d5d66; }
.install-step-num, .step-num { background: #101014 !important; color: var(--lime) !important; }


/* ───────────── invest page specifics ───────────── */
.inv-kpi-strip { background: rgba(16, 16, 20, .26); border-color: rgba(255, 255, 255, .35); }
.inv-kpi-val, .inv-kpi-val.blue { color: #fff; } .inv-kpi-val.blue { color: #d7ff4f; } .inv-kpi-lbl { color: rgba(255, 255, 255, .78); font-family: var(--mono); letter-spacing: .08em; }
.inv-hero-sub, .inv-hero p { color: rgba(255, 255, 255, .9) !important; }
.inv-invest-btn, .inv-deal-invest-btn, .inv-modal-confirm, .inv-ss-dash-btn { background: #101014 !important; color: #f4f1e9 !important; border: 1.5px solid #101014 !important; box-shadow: none !important; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s cubic-bezier(.2, .8, .2, 1); }
.inv-invest-btn:hover:not(:disabled), .inv-deal-invest-btn:hover:not(:disabled), .inv-modal-confirm:hover:not(:disabled), .inv-ss-dash-btn:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #2147ff !important; filter: none !important; }
[data-theme="dark"] .inv-invest-btn, [data-theme="dark"] .inv-deal-invest-btn, [data-theme="dark"] .inv-modal-confirm, [data-theme="dark"] .inv-ss-dash-btn { background: var(--lime) !important; color: #101014 !important; border-color: var(--lime) !important; }
.inv-progress-fill { background: #2147ff !important; }
.inv-my-stake { background: var(--accent-soft) !important; }
.inv-deal-head, .inv-portfolio-head, .guide-card-head { background: #101014 !important; }
.inv-deal-head *[class*="badge"], .inv-deal-head *[class*="tag"] { background: #d7ff4f !important; color: #101014 !important; border-color: #101014 !important; }
.inv-steps-grid::before { background: #101014 !important; opacity: .25; }
.inv-step-num { background: #101014 !important; color: #d7ff4f !important; }
.inv-body .inv-calc-card, .inv-body .inv-tiers-card { border-color: var(--border2); }
.team-av { color: #d7ff4f !important; }

/* ───────────── install page specifics ───────────── */
.hero-pill { font-family: var(--mono); }
.hero p { color: rgba(255, 255, 255, .9); }
.video-wrap { background: #101014 !important; }
.browser-tab.active { background: #101014; color: #f4f1e9; border-color: #101014; }
.guide-card { border-color: #101014; }
.faq-item, .faq-q { border-color: var(--border2); }

.os-head { background: #101014 !important; }
.rp-badge { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; box-shadow: 3px 3px 0 #101014 !important; backdrop-filter: none !important; font-family: var(--mono); letter-spacing: .1em; }
.rp-badge * { color: #101014 !important; } .rp-badge-dot { background: #101014 !important; box-shadow: none !important; }
.rp-orb { display: none !important; }


/* ───────────── onboarding (stays a dark, focused flow — re-keyed to ink + lime) ───────────── */
.bg-layer, .bg-layer.s1, .bg-layer.s2, .bg-layer.s3, .bg-layer.s4, .bg-layer.s5, .bg-layer.s6 {
  background:
    radial-gradient(rgba(244, 241, 233, .16) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(circle at 100% 0%, #2147ff 0 240px, transparent 241px),
    radial-gradient(circle at 0% 100%, rgba(215, 255, 79, .9) 0 150px, transparent 151px),
    #101014;
}
.bg-layer.s2 { background-position: 0 0, 0 0, 0 0, 0 0; }
.bg-layer::after { display: none; }
.ob-card { background: #1b1b23; border: 1.5px solid rgba(244, 241, 233, .22); border-bottom: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.ob-step-badge { background: #d7ff4f; color: #101014; border: 1.5px solid #101014; font-family: var(--mono); }
.ob-title .accent { background: none; -webkit-text-fill-color: #d7ff4f; color: #d7ff4f; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.08em; }
.ob-next, .ob-next.finish { background: #d7ff4f; color: #101014; box-shadow: none; border: 1.5px solid #101014; }
.ob-next:hover, .ob-next.finish:hover { background: #d7ff4f; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 #f4f1e9; }
.ob-dot.active { background: #d7ff4f; } .ob-dot.done { background: rgba(215, 255, 79, .5); }

/* ───────────── legal pages ───────────── */
.legal-body h2, .legal-content h2 { letter-spacing: -.04em; }
.legal-body a, .legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }



/* ───────────── standalone pages (404 + offline) — body.sa ───────────── */
html:has(body.sa) { background: #f4f1e9; }
[data-theme="dark"] html:has(body.sa), html[data-theme="dark"]:has(body.sa) { background: #0d0d11; }
body.sa { background: transparent !important; color: #101014; }
body.sa::before { content: ""; position: fixed; inset: 0; z-index: -1; opacity: 1;
  background: radial-gradient(rgba(16, 16, 20, .22) 1px, transparent 1.5px) 0 0 / 26px 26px,
    radial-gradient(circle at 6% 14%, #d2c4ff 0 150px, transparent 151px), radial-gradient(circle at 96% 20%, #ffe27a 0 120px, transparent 121px), radial-gradient(circle at 88% 96%, #d7ff4f 0 150px, transparent 151px), #f4f1e9; }
body.sa::after { display: none; }
body.sa .bg, body.sa .grid, body.sa .stars { display: none; }
body.sa .logo { background: #d7ff4f; border: 1.5px solid #101014; box-shadow: 4px 4px 0 #101014; border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; }
body.sa .logo img, body.sa .av img { filter: invert(1); }
body.sa .num { filter: none; font-weight: 800; letter-spacing: -.07em; }
body.sa .num span { background: none; -webkit-text-fill-color: #101014; color: #101014; }
body.sa .num span:nth-child(2) { -webkit-text-fill-color: #2147ff; color: #2147ff; }
body.sa .av { background: #d7ff4f; border: 1.5px solid #101014; box-shadow: 3px 3px 0 #101014; border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; }
body.sa .bubble { background: #b7d3ff; border: 1.5px solid #101014; box-shadow: 5px 5px 0 #101014; backdrop-filter: none; color: #101014; }
body.sa .bubble b { color: #101014; }
body.sa .typing i { background: #101014; }
body.sa .btn-primary { background: #101014; color: #f4f1e9; box-shadow: none; border: 1.5px solid #101014; }
body.sa .btn-primary:hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #2147ff; }
body.sa .btn-ghost { background: transparent; color: #101014; border: 1.5px solid rgba(16, 16, 20, .3); }
body.sa .btn-ghost:hover { background: #101014; color: #f4f1e9; border-color: #101014; transform: translateY(-2px); }
body.sa .links a { color: #44444d; } body.sa .links a:hover { color: #2147ff; }
body.sa .path { background: #fffdf8; border: 1.5px solid rgba(16, 16, 20, .2); color: #44444d; }
body.sa h1 { color: #101014; } body.sa p { color: #44444d; }
body.sa .core { background: #d7ff4f; border: 1.5px solid #101014; box-shadow: 5px 5px 0 #101014; border-radius: 58% 42% 55% 45% / 52% 48% 52% 48%; }
body.sa .core svg { color: #101014; } body.sa .core .x { background: #ff6a4d; border-color: #f4f1e9; }
body.sa .sig i { border-color: rgba(16, 16, 20, .5); }
body.sa .btn:not(.btn-primary):not(.btn-ghost) { background: #101014; color: #f4f1e9; box-shadow: none; }
body.sa .btn:not(.btn-primary):not(.btn-ghost):hover { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 #2147ff; }
body.sa .status { background: #fffdf8; border: 1.5px solid rgba(16, 16, 20, .2); color: #44444d; }
body.sa .tips { color: #44444d; } body.sa .tips div { background: #fffdf8; border: 1.5px solid rgba(16, 16, 20, .16); } body.sa .tips svg { color: #2147ff; }

/* dark mode: dark logo in the header, lighter ink panels */
[data-theme="dark"] .logo-container img { filter: invert(1) brightness(2); }
[data-theme="dark"] .mission-visual, [data-theme="dark"] .about-cta { background: #1d1d26 !important; border: 1.5px solid rgba(244, 241, 233, .18); }
.legal-tag { background: #d7ff4f !important; color: #101014 !important; border: 1.5px solid #101014 !important; box-shadow: 3px 3px 0 #101014; font-family: var(--mono); letter-spacing: .1em; }
.legal-hero p strong, .legal-hero p b { color: #d7ff4f !important; }
.legal-highlight { border: 1.5px solid #101014; background: var(--butter) !important; color: #101014 !important; }
.legal-highlight strong { color: #101014 !important; }
.toc { border: 1.5px solid var(--border2); }
.toc a:hover { color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { animation-duration: .001ms !important; transition-duration: .001ms !important; } }
