/* ── COMPASS LANDING ──────────────────────────────────────────────────────────
 * Standalone from the app's stylesheet: this page has none of the app's
 * component library and shouldn't drag ~5,000 lines of it over the wire to
 * render six sections. It shares the palette and the two typefaces, so the
 * app still feels like the same product when you land in it.
 *
 * Single-theme light, matching the app, for the same reason: the output gets
 * printed on paper.
 */

:root {
  --stone:  #eeece3;
  --paper:  #f8f7f2;
  --panel:  #ffffff;
  --line:   #dcd8c9;
  --line-2: #c7c2ae;
  --ink:    #23241d;
  --ink-2:  #66655a;
  --ink-3:  #98957f;
  --blaze:  #c74a1c;
  --blaze-h:#a93d14;
  --blaze-soft: #fbe7db;
  --moss:   #3f6b4a;
  --sky:    #3d6c8a;

  --display: "Big Shoulders Display", system-ui, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--stone);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── shared bits ─────────────────────────────────────────────────────────── */

.mark {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  position: relative; display: inline-block;
}
.mark::after {
  content: "";
  position: absolute; top: 3px; left: 50%;
  width: 2px; height: 10px;
  background: var(--blaze); border-radius: 2px;
  transform: translateX(-50%) rotate(18deg);
}
.wordmark {
  font-family: var(--display);
  font-size: 19px; font-weight: 800; letter-spacing: .1em;
}
.byline {
  font-size: 8.5px; letter-spacing: .14em; color: var(--ink-3);
}

.btn {
  font: inherit; font-size: 13px; font-weight: 600;
  border-radius: 9px; padding: 10px 17px;
  cursor: pointer; border: 1px solid transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background .14s, border-color .14s, color .14s;
}
.btn.ghost { background: none; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.solid:hover { background: var(--blaze); border-color: var(--blaze); }
.btn.lg { font-size: 14.5px; padding: 13px 26px; border-radius: 10px; }
.btn:focus-visible { outline: 2px solid var(--blaze); outline-offset: 2px; }

.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: .19em;
  color: var(--blaze); text-transform: uppercase; margin-bottom: 12px;
}

h1, h2, h3 { text-wrap: balance; }

/* ── nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 26px;
  padding: 15px 30px;
  background: rgba(238, 236, 227, .9);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.brand .byline {
  padding-left: 9px; margin-left: 1px;
  border-left: 1px solid var(--line-2);
}
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  text-decoration: none;
}
.nav-links a:hover { color: var(--blaze); }
.nav-actions { display: flex; gap: 9px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav-actions { margin-left: auto; } }

/* ── hero ────────────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; padding: 84px 30px 0; }
.rose {
  position: absolute; right: -120px; top: 50%;
  transform: translateY(-54%);
  width: 660px; height: 660px;
  opacity: .5; pointer-events: none;
}
@media (max-width: 1080px) { .rose { opacity: .22; right: -260px; } }

.hero-inner { max-width: 1140px; margin: 0 auto; position: relative; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(48px, 7.2vw, 88px);
  font-weight: 800; line-height: .93;
  letter-spacing: -.012em; text-transform: uppercase;
  max-width: 16ch;
}
.hero h1 .accent { color: var(--blaze); }
.dek {
  font-size: 16.5px; line-height: 1.62;
  color: var(--ink-2); max-width: 56ch;
  margin: 22px 0 34px;
}

.site-search {
  display: flex; align-items: center; gap: 11px;
  width: min(640px, 100%);
  background: var(--panel);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 8px 8px 8px 18px;
  box-shadow: 0 14px 32px -18px rgba(35, 36, 29, .5);
}
.site-search:focus-within { box-shadow: 0 0 0 4px var(--blaze-soft), 0 14px 32px -18px rgba(35,36,29,.5); }
.site-search .ic { width: 18px; height: 18px; color: var(--blaze); flex-shrink: 0; }
.site-search input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: none;
  font: inherit; font-size: 15px; color: var(--ink);
  padding: 8px 0;
}
.site-search input::placeholder { color: var(--ink-3); }

.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 13px; min-height: 1.4em; }
.hint b { color: var(--ink-2); font-weight: 600; }
.hint button {
  font: inherit; font-size: 12.5px; font-weight: 600;
  background: none; border: none; color: var(--blaze);
  cursor: pointer; padding: 0 2px; text-decoration: underline;
}

.hero-proof {
  position: relative;
  max-width: 1140px; margin: 62px auto 0;
  display: flex; gap: 52px;
  padding: 26px 0 76px;
  border-top: 1px solid var(--line);
}
.proof { display: flex; flex-direction: column; }
.proof .n {
  font-family: var(--display);
  font-size: 38px; font-weight: 800; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.proof .l {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--ink-3); text-transform: uppercase; margin-top: 5px;
}

/* ── bands ───────────────────────────────────────────────────────────────── */

.band { padding: 84px 30px; background: var(--paper); border-top: 1px solid var(--line); }
.band.alt { background: var(--stone); }
.band-inner { max-width: 1140px; margin: 0 auto; }
.band-inner.narrow { max-width: 720px; }
.band h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800; line-height: 1.02;
  text-transform: uppercase; letter-spacing: -.008em;
}
.lede {
  font-size: 15.5px; line-height: 1.65;
  color: var(--ink-2); max-width: 60ch; margin-top: 16px;
}

.cards {
  display: grid; gap: 18px; margin-top: 42px;
  grid-template-columns: repeat(auto-fit, minmax(238px, 1fr));
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 20px;
}
.card-art {
  height: 132px; margin-bottom: 18px;
  background: var(--stone); border-radius: 10px;
  display: grid; place-items: center;
}
.card-art svg { height: 96px; width: auto; }
.card h3 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.card p { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.tag {
  position: absolute; top: 20px; right: 20px;
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  letter-spacing: .06em;
  background: var(--stone); color: var(--ink-3);
  padding: 4px 8px; border-radius: 5px;
}

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 38px; } }

.sources { list-style: none; margin-top: 30px; }
.sources li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.sources li b { font-weight: 700; }
.sources li span { color: var(--ink-3); font-size: 12.5px; text-align: right; }

.data-fig { display: flex; flex-direction: column; gap: 16px; }
.fig-stack {
  position: relative; height: 300px;
  perspective: 900px;
}
.fig-stack .ply {
  position: absolute; left: 50%; top: 50%;
  width: 250px; height: 176px;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  transform-origin: center;
}
.fig-stack .p1 { background: rgba(61,108,138,.10);  transform: translate(-50%,-50%) rotateX(56deg) rotateZ(-32deg) translateZ(0px); }
.fig-stack .p2 { background: rgba(63,107,74,.14);   transform: translate(-50%,-50%) rotateX(56deg) rotateZ(-32deg) translateZ(34px); }
.fig-stack .p3 { background: rgba(199,74,28,.13);   transform: translate(-50%,-50%) rotateX(56deg) rotateZ(-32deg) translateZ(68px); }
.fig-stack .p4 { background: rgba(255,255,255,.85); transform: translate(-50%,-50%) rotateX(56deg) rotateZ(-32deg) translateZ(102px); }
.data-fig figcaption { font-size: 12px; color: var(--ink-3); line-height: 1.5; text-align: center; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.cta-note { font-size: 12.5px; color: var(--ink-3); }

/* ── footer ──────────────────────────────────────────────────────────────── */

.foot { background: var(--ink); color: var(--stone); padding: 40px 30px; }
.foot-inner {
  max-width: 1140px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 22px; flex-wrap: wrap;
}
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot .mark { border-color: var(--stone); }
.foot .byline { color: #8e8b7c; }
.foot-note { font-size: 12.5px; color: #8e8b7c; }

/* ── auth dialog ─────────────────────────────────────────────────────────── */

.auth {
  width: min(408px, calc(100vw - 32px));
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 30px 28px 24px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 30px 70px -28px rgba(35, 36, 29, .55);
}
.auth::backdrop { background: rgba(35, 36, 29, .42); backdrop-filter: blur(3px); }
.auth-x { position: absolute; top: 12px; right: 12px; }
.auth-x button {
  border: none; background: none; cursor: pointer;
  font-size: 21px; line-height: 1; color: var(--ink-3);
  padding: 5px 9px; border-radius: 7px;
}
.auth-x button:hover { background: var(--stone); color: var(--ink); }

.auth-head { text-align: center; margin-bottom: 22px; }
.auth-head .mark { margin-bottom: 13px; }
.auth-head h2 { font-size: 20px; font-weight: 700; margin-bottom: 7px; }
.auth-head p { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }

.btn.google {
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--line-2);
  color: var(--ink);
  font-weight: 600;
}
.btn.google:hover { border-color: var(--ink); }
.btn.google svg { width: 17px; height: 17px; }

.auth-or {
  display: flex; align-items: center; gap: 12px;
  margin: 17px 0;
  font-size: 10.5px; letter-spacing: .14em;
  color: var(--ink-3); text-transform: uppercase;
}
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-email { display: flex; flex-direction: column; gap: 7px; }
.auth-email label {
  font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  color: var(--ink-3); text-transform: uppercase;
}
.auth-email input {
  font: inherit; font-size: 14px;
  border: 1px solid var(--line-2); border-radius: 9px;
  padding: 11px 13px; background: var(--paper); color: var(--ink);
}
.auth-email input:focus-visible {
  outline: none;
  border-color: var(--blaze);
  box-shadow: 0 0 0 3px var(--blaze-soft);
}
.auth-email .btn { width: 100%; margin-top: 5px; }

.auth-msg { font-size: 12.5px; line-height: 1.5; margin-top: 14px; min-height: 1.4em; }
.auth-msg.ok  { color: var(--moss); }
.auth-msg.err { color: #b3271b; }
.auth-fine {
  font-size: 11px; line-height: 1.55; color: var(--ink-3);
  margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line);
}

/* ── explore path ────────────────────────────────────────────────────────────
   Sits directly under the search rather than in the nav: it is the alternative
   to the action above it, not a separate destination. */
.hero-alt {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-top: 20px;
}
.hero-alt-or {
  font-size: 10.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--ink-3); text-transform: uppercase;
}
.hero-alt .btn svg { width: 16px; height: 16px; }
.hero-alt-note { font-size: 12.5px; color: var(--ink-3); }

/* The [hidden] attribute is only a `display:none` rule in the UA stylesheet,
   which any explicit `display` in ours beats — .btn sets inline-flex, so a
   hidden button stayed on screen. This restores what [hidden] is supposed to
   mean for every element on the page, not just the one that caught it. */
[hidden] { display: none !important; }
