/* The public front page (routes/landing.mjs). Same black-glass tokens as the app. */
:root {
  --void: #030405; --glass: #0d0f13; --glass-raised: #15181e;
  --edge: rgba(255,255,255,.09); --edge-hi: rgba(255,255,255,.18);
  --ink: #f4f6f8; --ink-2: #a3a9b3; --ink-3: #737985;
  --up: #34d399; --down: #f87171;
  --glass-bg: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.012) 38%, rgba(255,255,255,0)), var(--glass);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: var(--void); color: var(--ink); font: 16px/1.55 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; }
.lp a { color: inherit; }
.lp main { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.lp-top { max-width: 1080px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 600; font-size: 21px; letter-spacing: -.04em; }
.lp-nav { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.lp-nav > a:not(.lp-btn) { color: var(--ink-2); text-decoration: none; }
.lp-nav > a:not(.lp-btn):hover { color: var(--ink); }

.lp-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 999px; background: #fff; color: #050607 !important; font: 600 15px/1 "Geist", system-ui, sans-serif; text-decoration: none; border: 1px solid #fff; cursor: pointer; }
.lp-btn.ghost { background: transparent; color: var(--ink) !important; border-color: var(--edge-hi); }
.lp-btn.sm { min-height: 36px; padding: 0 16px; font-size: 13.5px; }
.lp-btn:hover { opacity: .9; }
.lp-btn:disabled { opacity: .6; cursor: wait; }

.lp-hero { padding: 56px 0 30px; text-align: center; }
.lp-hero h1 { margin: 0 auto; max-width: 820px; font-size: clamp(36px, 6.4vw, 64px); line-height: 1.04; letter-spacing: -.045em; font-weight: 600; text-wrap: balance; }
.lp-lead { margin: 20px auto 0; max-width: 640px; color: var(--ink-2); font-size: clamp(16px, 2.1vw, 18.5px); text-wrap: pretty; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.lp-small { margin: 12px 0 0; color: var(--ink-3); font-size: 13px; }

.lp-strip { list-style: none; margin: 40px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--edge); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; text-align: left; }
.lp-strip li { background: var(--glass); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; row-gap: 2px; font-variant-numeric: tabular-nums; }
.lp-ix { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.lp-px { font-size: 15px; font-weight: 500; }
.lp-ch { font-size: 13.5px; font-weight: 600; align-self: center; }
.lp-ch.up { color: var(--up); } .lp-ch.down { color: var(--down); }

.lp-sec { padding: 44px 0 8px; }
.lp-sec h2, .lp-end h2 { margin: 0; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: -.03em; font-weight: 600; }
.lp-sub { margin: 10px 0 20px; color: var(--ink-2); max-width: 760px; }

.lp-map { position: relative; margin: 0; width: 100%; aspect-ratio: 1000 / 520; border-radius: 14px; overflow: hidden; background: #0a0c0f; border: 1px solid var(--edge); }
.lp-grp { position: absolute; pointer-events: none; }
.lp-grp span { position: absolute; left: 6px; top: 2px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.lp-tile { position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; outline: 1px solid #0a0c0f; color: #fff; overflow: hidden; text-align: center; line-height: 1.1; }
.lp-tile b { font-size: clamp(10px, 1.5vw, 15px); font-weight: 700; }
.lp-tile i { font-style: normal; font-size: clamp(9px, 1.2vw, 12.5px); opacity: .92; }
.lp-tile.big b { font-size: clamp(13px, 2.6vw, 28px); }
.lp-tile.big i { font-size: clamp(10px, 1.7vw, 17px); }
.lp-tile:hover { filter: brightness(1.12); }

.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.lp-grid article { background: var(--glass-bg); border: 1px solid var(--edge); border-radius: 16px; padding: 20px; }
.lp-grid h3 { margin: 0 0 8px; font-size: 17px; letter-spacing: -.015em; }
.lp-grid p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.lp-faq details { border-top: 1px solid var(--edge); padding: 14px 0; }
.lp-faq details:last-child { border-bottom: 1px solid var(--edge); }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::after { content: "+"; color: var(--ink-2); font-weight: 400; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq p { margin: 8px 0 0; color: var(--ink-2); max-width: 760px; }
.lp-faq h2 { margin-bottom: 14px; }

.lp-end { padding: 56px 0 64px; text-align: center; }
.lp-foot { max-width: 1080px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--edge); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--ink-3); font-size: 13px; }
.lp-foot a { color: var(--ink-2); }

/* The heatmap and stock pages (routes/seo-pages.mjs) and the 404 */
.lp .up { color: var(--up); } .lp .down { color: var(--down); }
.lp-crumbs ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.lp-crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-3); }
.lp-crumbs a { color: var(--ink-2); text-decoration: none; }
.lp-crumbs a:hover { color: var(--ink); }
.lp-page-head { padding: 22px 0 18px; }
.lp-page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.04em; font-weight: 600; text-wrap: balance; }
.lp-page-head .lp-lead { margin: 14px 0 0; max-width: 760px; }
.lp-page-head .lp-small { margin-top: 10px; }
.lp-cta.left { justify-content: flex-start; margin: 18px 0 0; }
.lp-quote { margin: 10px 0 0; display: flex; align-items: baseline; gap: 12px; font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; }
.lp-quote-px { font-size: clamp(26px, 4vw, 34px); letter-spacing: -.03em; }
.lp-quote-px small { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.lp-prose p { color: var(--ink-2); max-width: 760px; margin: 12px 0 0; }
.lp-prose p a, .lp-sub a, .lp-table a { color: var(--ink); }
.lp-examples { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); }
.lp-examples li { margin: 4px 0; }
.lp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lp-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; border: 1px solid var(--edge); border-radius: 16px; background: var(--glass-bg); text-decoration: none; }
.lp-card:hover { border-color: var(--edge-hi); }
.lp-card b { font-size: 16.5px; letter-spacing: -.015em; }
.lp-card-sub { color: var(--ink-3); font-size: 13px; }
.lp-card-data { color: var(--ink-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.lp-table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; margin-top: 14px; }
.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lp-table th, .lp-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--edge); vertical-align: top; }
.lp-table tbody tr:last-child > * { border-bottom: 0; }
.lp-table thead th { color: var(--ink-3); font-weight: 500; font-size: 12.5px; background: var(--glass); }
.lp-table tbody th { font-weight: 500; }
.lp-table tr.me { background: rgba(255,255,255,.04); }
.lp-table td { white-space: nowrap; }
.lp-vs td { white-space: normal; color: var(--ink-2); }
.lp-vs td:nth-child(2) { color: var(--ink); }
.lp-sym { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.lp-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 14px 0 0; background: var(--edge); border: 1px solid var(--edge); border-radius: 14px; overflow: hidden; }
.lp-facts div { background: var(--glass); padding: 12px 14px; }
.lp-facts dt { font-size: 12px; color: var(--ink-2); }
.lp-facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.lp-404 { padding-bottom: 64px; }

/* /ai-stock-research: example questions and the shape of an answer (static, marked as examples). */
.lp-ex-tag { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border: 1px solid var(--edge); border-radius: 999px; color: var(--ink-2); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.lp-grid .lp-ex-q { color: var(--ink); font-weight: 600; margin-bottom: 8px; }
.lp-ex ul { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.lp-ex li { margin: 4px 0; }
.lp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) {
  .lp-hero { padding-top: 34px; }
  .lp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-grid, .lp-grid.two { grid-template-columns: minmax(0, 1fr); }
  .lp-map { aspect-ratio: 1000 / 760; }
  .lp-grp span { display: none; } /* sector labels collide at phone width */
  .lp-nav > a:not(.lp-btn) { display: none; }
  .lp-cta .lp-btn { flex: 1 1 100%; }
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .lp-table th, .lp-table td { padding: 9px 10px; }
  .lp-foot { flex-direction: column; }
}
