:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: #f4f0e6;
  background: #07182e;
  line-height: 1.45;
}
h1, h2, h3 { font-family: Palatino, Georgia, serif; line-height: 1.15; color: #07182e; }
.brandbar { display: flex; gap: 0.8rem; align-items: center; padding-top: 1rem; }
.brandbar .mark { height: 78px; width: auto; }
.brandbar h1 { margin: 0; }
.wordmark { height: 42px; width: auto; display: block; }
.eyebrow { margin: 0.15rem 0 0; color: #8ee8e6; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.tagline { margin: 0.1rem 0 0; color: #2ed6d8; font-weight: 700; }
.demo-banner {
  position: static;
  margin: 0;
  padding: 0.7rem 1rem;
  background: #f4f0e6;
  color: #07182e;
  text-align: center;
  font-weight: 800;
}
#catalog-status { padding-left: 1rem; padding-right: 1rem; }
.catalog-page .brandbar { padding-top: 1.25rem; }
.agency-label { margin: 0; color: #0b4f5c; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.badge-row { margin: 0.25rem 0 0.35rem; }
.funder-badge { display: inline-block; margin: 0 0.35rem 0.2rem 0; padding: 0.12rem 0.45rem; border: 1px solid #0b3140; background: #fffaf3; color: #07182e; font-size: 0.75rem; font-weight: 800; }
.funder-detail { margin: 0.15rem 0 0.45rem; }
.funder-detail summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.opp-card h3 { font-size: 1.35rem; margin: 0.15rem 0 0.45rem; }
.fact-list { margin: 0.2rem 0 0.5rem; padding: 0; list-style: none; }
.fact-list li { margin: 0.15rem 0; }
.wrap { width: min(980px, calc(100% - 1.25rem)); margin: 1rem auto 2rem; }
.panel, .card, .opp-card {
  background: #f7f4ee;
  color: #07182e;
  border: 1px solid #c9d5dc;
  padding: 0.8rem;
  margin: 0 0 0.8rem;
}
.layout { display: grid; gap: 1rem; }
.opp-card { border-left: 6px solid #8d7d64; }
.opp-card[data-fit="potential"] { border-left-color: #1f6b45; }
.opp-card[data-fit="contradiction"] { border-left-color: #8c1d18; }
.opp-card[data-fit="unknown"] { border-left-color: #8a5a12; }
.fit {
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.12rem 0.4rem;
  border: 1px solid currentColor;
}
.muted { color: #3e4654; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
@media (min-width: 900px) {
  .layout { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
}
label { display: block; font-weight: 700; margin: 0.45rem 0; }
input, select, button {
  font: inherit;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
}
input:not([type="checkbox"]), select { width: 100%; border: 1px solid #b7a78c; background: #fff; }
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; margin-right: 0.5rem; vertical-align: middle; }
button { border: 1px solid #0b3140; background: #2ed6d8; color: #07182e; font-weight: 700; }
button.secondary { background: transparent; color: #07182e; border-color: #0b3140; }
.fit { font-weight: 800; }
.fit-potential { color: #145c32; }
.fit-contradiction { color: #7a1b16; }
.fit-unknown { color: #6d4a10; }
.note { background: #f8efd9; border: 1px solid #8a5a12; padding: 0.55rem 0.7rem; }
.grid { display: grid; gap: 0.6rem; }
@media (min-width: 720px) { .grid.two { grid-template-columns: 1fr 1fr; } }
:focus-visible { outline: 3px solid #2ed6d8; outline-offset: 2px; }
a { color: #8ee8e6; }
.panel a, .card a { color: #0b4f5c; }
#app > p, main.wrap h1, main.wrap p { color: #f4f0e6; }

/* —— Cover gate —— */
body.cover-mode .demo-banner,
body.cover-mode header.brandbar,
body.cover-mode #catalog-status,
body.cover-mode #mode-banner { display: none !important; }
body.cover-mode {
  background: #071330;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}
body.cover-mode #app,
body.cover-mode #app.wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.cover {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(1.25rem, env(safe-area-inset-top, 0px))
           max(1.25rem, env(safe-area-inset-right, 0px))
           max(1.25rem, env(safe-area-inset-bottom, 0px))
           max(1.25rem, env(safe-area-inset-left, 0px));
  position: relative;
  isolation: isolate;
  background-color: #071330;
  background-image: url('/brand/fundsail-cover-mobile.jpg');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
@supports (background-image: image-set(url('/brand/fundsail-cover-mobile.webp') type('image/webp'))) {
  .cover {
    background-image: image-set(
      url('/brand/fundsail-cover-mobile.webp') type('image/webp'),
      url('/brand/fundsail-cover-mobile.jpg') type('image/jpeg')
    );
  }
}
@media (orientation: landscape) and (min-width: 700px) {
  .cover {
    background-image: url('/brand/fundsail-cover-desktop.jpg');
  }
  @supports (background-image: image-set(url('/brand/fundsail-cover-desktop.webp') type('image/webp'))) {
    .cover {
      background-image: image-set(
        url('/brand/fundsail-cover-desktop.webp') type('image/webp'),
        url('/brand/fundsail-cover-desktop.jpg') type('image/jpeg')
      );
    }
  }
}
.cover-inner {
  width: min(420px, 100%);
  margin: auto 0;
  padding: 1.75rem 0 1.25rem;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
.cover-brand {
  margin: 0 auto 1.5rem;
  position: relative;
}
.cover-brand .mark {
  display: block;
  margin: 0 auto;
  width: 42vw;
  max-width: 190px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(0,0,0,0.35));
}
@media (min-width: 768px) {
  .cover-brand .mark {
    width: auto;
    max-width: none;
    height: 200px;
  }
}
.cover-brand .wordmark {
  display: block;
  margin: 1.05rem auto 0;
  width: auto;
  height: clamp(42px, 9vw, 64px);
  max-width: min(300px, 86vw);
  filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}
.cover-brand .tagline {
  margin: 1rem 0 0;
  color: #5cc8c0;
  font-weight: 400;
  font-size: clamp(0.98rem, 2.6vw, 1.12rem);
  letter-spacing: 0.02em;
  line-height: 1.35;
}
.cover-brand-compact { margin-bottom: 0.95rem; }
.cover-brand-compact .mark {
  width: 22vw;
  max-width: 88px;
  height: auto;
}
@media (min-width: 768px) {
  .cover-brand-compact .mark {
    width: auto;
    height: 88px;
    max-width: none;
  }
}
.cover-brand-compact .wordmark {
  height: clamp(28px, 5vw, 40px);
  max-width: min(220px, 70vw);
  margin-top: 0.65rem;
}
.cover-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2rem;
}
.cover-actions button {
  width: 100%;
  max-width: 360px;
  min-height: 50px;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.cover-actions button.primary-cream {
  background: #f4f0e6;
  color: #07182e;
  border-color: #f4f0e6;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.cover-actions button.primary-teal {
  background: #2ed6d8;
  color: #07182e;
  border-color: #2ed6d8;
  box-shadow: 0 6px 18px rgba(46,214,216,0.22);
}
.cover-actions button.primary-cream:hover,
.cover-actions button.primary-teal:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.cover-actions button.primary-cream:active,
.cover-actions button.primary-teal:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
@media (prefers-reduced-motion: reduce) {
  .cover-actions button { transition: none; }
  .cover-actions button:hover { transform: none; }
}
.cover-panel {
  width: min(440px, 100%);
  margin: 0 auto;
  text-align: left;
  background: #f7f4ee;
  color: #07182e;
  border: 1px solid #c9d5dc;
  border-radius: 16px;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.cover-panel h2 { margin: 0 0 0.75rem; color: #07182e; font-size: 1.45rem; }
.cover-panel .trial-note {
  margin: 0 0 1rem;
  padding: 0.7rem 0.8rem;
  background: #e8fbfb;
  border: 1px solid #2ed6d8;
  border-radius: 10px;
  color: #07182e;
  font-size: 0.92rem;
  font-weight: 600;
}
.cover-panel label { display: block; margin: 0.55rem 0; font-weight: 600; }
.cover-panel input[type="email"],
.cover-panel input[type="text"],
.cover-panel input[type="password"] {
  width: 100%;
  margin-top: 0.25rem;
  color: #07182e;
  background: #fff;
}
.pw-row { display: flex; gap: 0.5rem; align-items: stretch; }
.pw-row input { flex: 1; }
.pw-row button.show-pw {
  flex: 0 0 auto;
  min-width: 4.5rem;
  background: #f4f0e6;
  color: #07182e;
  border-color: #0b3140;
  font-size: 0.85rem;
}
.cover-panel a.linkish { color: #0b4f5c; font-weight: 700; }
.cover-panel .row-actions { margin-top: 0.85rem; }
.cover-panel button.secondary { background: #fff; }
.cover-panel button.primary-teal {
  background: #2ed6d8;
  color: #07182e;
  border-color: #2ed6d8;
  width: 100%;
  min-height: 44px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(46,214,216,0.18);
}
.cover-panel button.primary-cream {
  background: #f4f0e6;
  color: #07182e;
  border-color: #f4f0e6;
}
.cover-panel .agree-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-weight: 500;
  margin: 0.85rem 0 0.4rem;
}
.cover-panel .agree-line input { margin-top: 0.2rem; }
.cover-panel .row-actions button { width: 100%; min-height: 44px; border-radius: 999px; }
.cover-footer {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.85rem 0.5rem 0.25rem;
  background: transparent;
  color: #f4f0e6;
  font-size: 0.78rem;
  text-align: center;
  z-index: 1;
}
.cover-footer .notice {
  margin: 0 0 0.45rem;
  color: #c5d3de;
  font-weight: 500;
  font-size: 0.72rem;
  line-height: 1.4;
}
.cover-footer a { color: #8ee8e6; margin: 0 0.45rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

