/* MooChedda — public site (day theme): landing page and legal pages */
:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --paper-3: #f1f5f9;
  --brand: #1d4ed8;
  --brand-2: #2563eb;
  --brand-soft: #eff6ff;
  --teal: #0d9488;
  --green: #059669;
  --green-soft: #ecfdf5;
  --red: #dc2626;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --radius: 14px;
  --shadow-lg: 0 30px 60px -20px rgba(15, 23, 42, 0.25), 0 18px 36px -18px rgba(15, 23, 42, 0.2);
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.06);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.site-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--brand) 0%, var(--teal) 100%); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; letter-spacing: 0.02em; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-top: -3px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 1px solid transparent; cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(29, 78, 216, 0.6); }
.btn-primary:hover { background: #1e40af; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--paper-3); }
.btn-lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: var(--brand-soft); }

/* Sections */
section { padding: 96px 0; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.15; margin: 0; }
h2.section-title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 16px; }
.lead { font-size: 18px; color: var(--ink-2); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin: 0 auto; }
.muted { color: var(--ink-3); }

/* Hero */
.hero { padding: 72px 0 40px; background:
  radial-gradient(900px 420px at 85% -10%, rgba(37, 99, 235, 0.12), transparent 70%),
  radial-gradient(700px 380px at -10% 10%, rgba(13, 148, 136, 0.10), transparent 70%),
  linear-gradient(180deg, #f8fbff 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); margin-bottom: 24px; }
.pill b { color: var(--brand); }
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; margin-bottom: 20px; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand) 0%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 0 auto 32px; font-size: 19px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid #1e2d4a; background: #0a0e1a; }
.browser { border-radius: 16px; background: #e2e8f0; padding: 0; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line-2); }
.browser-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: linear-gradient(#f1f5f9, #e2e8f0); border-bottom: 1px solid var(--line-2); }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.browser-bar i:nth-child(1) { background: #f87171; } .browser-bar i:nth-child(2) { background: #fbbf24; } .browser-bar i:nth-child(3) { background: #34d399; }
.browser-url { flex: 1; margin-left: 10px; background: #fff; border-radius: 6px; font-size: 12px; color: var(--ink-3); padding: 4px 10px; max-width: 360px; }
.hero-shot { max-width: 1100px; margin: 0 auto; }
.caption { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; text-align: center; }

/* Fact strip */
.facts { padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-2); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.fact span { font-size: 13.5px; color: var(--ink-3); }

/* Problem / solution */
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.ps-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; }
.ps-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.ps-problem { font-size: 13px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.ps-card h3 { font-size: 19px; font-weight: 700; }
.ps-card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.ps-fix { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 14.5px; color: var(--ink); }
.ps-fix b { color: var(--green); }

/* Tour */
.tour { background: linear-gradient(180deg, #fff, var(--paper-2)); }
.tour-row { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-top: 80px; }
.tour-row.flip { grid-template-columns: 7fr 5fr; }
.tour-row.flip .tour-copy { order: 2; }
.tour-copy h3 { font-size: 28px; font-weight: 800; margin-bottom: 14px; }
.tour-copy p { color: var(--ink-2); font-size: 16.5px; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: ''; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23059669' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }

/* Compare */
.compare-wrap { margin-top: 48px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: #fff; }
table.compare { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--paper-2); font-size: 13px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.compare thead th.us { color: var(--brand); background: var(--brand-soft); }
.compare td.us { background: #f7faff; font-weight: 600; color: var(--ink); }
.compare tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; }
.meh { color: var(--ink-3); }
.footnote { font-size: 12.5px; color: var(--ink-3); margin-top: 14px; }

/* Asset classes */
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 40px; }
.asset { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: #fff; display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 15px; }
.asset small { display: block; font-weight: 400; color: var(--ink-3); font-size: 12.5px; }
.asset .dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }

/* Markets */
.markets-card { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.markets-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.badge-sim { display: inline-flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; padding: 4px 10px; border-radius: 999px; background: var(--amber-soft); color: var(--amber); border: 1px solid #fde68a; }
table.markets { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.markets th, .markets td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.markets th { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--paper-2); }
.markets td.num, .markets th.num { text-align: right; font-variant-numeric: tabular-nums; }
.markets tr:last-child td { border-bottom: 0; }
.up { color: var(--green); } .down { color: var(--red); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 16px; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* FAQ */
.faq { max-width: 860px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* CTA */
.cta { padding: 0 0 96px; }
.cta-box { border-radius: 24px; padding: 64px 48px; text-align: center; color: #fff; background: radial-gradient(600px 300px at 80% 0%, rgba(255,255,255,.18), transparent 70%), linear-gradient(120deg, var(--brand) 0%, #1e3a8a 55%, var(--teal) 130%); box-shadow: var(--shadow-lg); }
.cta-box h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; }
.cta-box p { color: rgba(255,255,255,.85); font-size: 17px; margin: 0 auto 28px; max-width: 600px; }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 56px 0 32px; font-size: 14px; }
.site-footer a { color: #e2e8f0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #94a3b8; }
.legal-small { border-top: 1px solid #1e293b; margin-top: 40px; padding-top: 24px; font-size: 12.5px; color: #94a3b8; line-height: 1.7; }
.legal-small p { margin: 0 0 10px; }

/* Legal documents */
.doc-hero { background: linear-gradient(180deg, #f8fbff, #fff); border-bottom: 1px solid var(--line); padding: 56px 0 36px; }
.doc-hero h1 { font-size: clamp(32px, 5vw, 46px); font-weight: 800; margin-bottom: 10px; }
.doc-meta { color: var(--ink-3); font-size: 14px; }
.doc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 48px 0 96px; }
.toc { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 13.5px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 12px; }
.toc ol { margin: 0; padding-left: 28px; display: grid; gap: 6px; }
.toc a { color: var(--ink-2); }
.doc { max-width: 780px; font-size: 15.5px; color: var(--ink-2); }
.doc h2 { font-size: 22px; font-weight: 800; color: var(--ink); margin: 44px 0 14px; scroll-margin-top: 90px; }
.doc h3 { font-size: 17px; font-weight: 700; color: var(--ink); margin: 26px 0 10px; }
.doc p, .doc li { margin: 0 0 12px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 14px; }
.doc .caps { text-transform: uppercase; font-size: 14.5px; letter-spacing: .01em; color: var(--ink); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.doc th, .doc td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.doc th { background: var(--paper-2); color: var(--ink); }
.callout { border: 1px solid #bfdbfe; background: var(--brand-soft); border-radius: 12px; padding: 18px 20px; margin: 0 0 24px; color: var(--ink); }
.callout.warn { border-color: #fde68a; background: var(--amber-soft); }
.ph { background: #fef3c7; color: #92400e; padding: 0 4px; border-radius: 4px; font-weight: 600; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .facts .wrap { grid-template-columns: repeat(2, 1fr); }
  .ps-grid, .steps { grid-template-columns: 1fr; }
  .tour-row, .tour-row.flip { grid-template-columns: 1fr; gap: 28px; margin-top: 56px; }
  .tour-row.flip .tour-copy { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .nav-actions .btn-ghost { display: none; }
  .facts .wrap, .footer-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 44px 22px; }
  .markets th:nth-child(4), .markets td:nth-child(4), .markets th:nth-child(5), .markets td:nth-child(5) { display: none; }
}
