/* Public site styling.
 *
 * One dark system shared with the product, so the screenshots on the landing
 * page and the thing they link to are visibly the same software. Restrained by
 * intention: an analyst evaluating a research tool is reading, not being sold
 * to, and the product's own tables are the most persuasive object available.
 *
 * Contrast: body text #b9c2d4 on #0d1016 is 9.6:1, headings 15.8:1, the accent
 * on dark 7.4:1 — all comfortably past WCAG AA, including the muted text.
 */
:root {
  --bg: #0d1016;
  --bg2: #12161f;
  --panel: #171b24;
  --panel2: #1d2230;
  --line: #262d3c;
  --line2: #333c50;
  --text: #eef1f7;
  --body: #b9c2d4;
  --muted: #8b93a7;
  --accent: #6aa6ff;
  --accent-dim: #1e2a40;
  --warn: #ffb020;
  --ok: #4ec9a0;
  --bad: #ff6b6b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--bg); color: var(--body);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--text); line-height: 1.25; margin: 0 0 12px;
                 letter-spacing: -.011em; }
h1 { font-size: clamp(30px, 4.6vw, 50px); letter-spacing: -.021em; }
h2 { font-size: clamp(22px, 2.9vw, 31px); letter-spacing: -.016em; }
h3 { font-size: 17px; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .88em; color: var(--text);
       background: var(--panel2); padding: 1px 5px; border-radius: 4px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--panel2);
        color: var(--text); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 0; }

/* --- header --------------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(13,16,22,.88);
               backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--text);
         font-weight: 650; letter-spacing: -.01em; font-size: 16px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 22px; height: 22px; }
.site-nav { display: flex; gap: 22px; margin-left: 12px; font-size: 14px; }
.site-nav a { color: var(--body); }
.header-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* --- buttons -------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
       font: inherit; font-size: 15px; font-weight: 550; padding: 11px 20px;
       border-radius: 8px; border: 1px solid var(--line2); background: transparent;
       color: var(--text); cursor: pointer; text-decoration: none;
       transition: border-color .15s, background .15s, filter .15s; }
.btn:hover { text-decoration: none; border-color: var(--accent); background: var(--accent-dim); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #08101f; }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.small { font-size: 14px; padding: 8px 14px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --- sections ------------------------------------------------------------- */
section { padding: 78px 0; border-top: 1px solid var(--line); }
section:first-of-type { border-top: 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .12em;
           color: var(--muted); font-weight: 650; margin: 0 0 12px; }
.lede { font-size: 19px; line-height: 1.6; color: var(--body); max-width: 68ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* --- hero ----------------------------------------------------------------- */
.hero { padding: 76px 0 44px; }
.hero .lede { font-size: 20px; margin: 18px 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.hero-shot { margin-top: 44px; }

/* --- product screenshot --------------------------------------------------- */
.shot { border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
        background: var(--panel); box-shadow: 0 24px 60px rgba(0,0,0,.42); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 11px 16px; font-size: 13px; color: var(--muted);
                   border-top: 1px solid var(--line); background: var(--bg2); }

/* --- grids ---------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
        padding: 22px; }
.card h3 { margin-bottom: 7px; }
.card p:last-child { margin-bottom: 0; }
.card .n { font-family: var(--mono); font-size: 13px; color: var(--accent);
           display: block; margin-bottom: 9px; }

/* --- tables --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--panel); }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em;
     color: var(--muted); font-weight: 650; padding: 11px 14px;
     border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top;
     color: var(--body); }
td b, td strong { color: var(--text); }
.num { font-family: var(--mono); text-align: right; white-space: nowrap; }

/* --- misc ----------------------------------------------------------------- */
.pill { display: inline-block; font-size: 11.5px; padding: 2px 9px; border-radius: 11px;
        border: 1px solid var(--line2); color: var(--muted); font-family: var(--mono); }
.pill.ok { color: var(--ok); border-color: #234238; background: #16241f; }
.pill.warn { color: var(--warn); border-color: #4a3a1c; background: #241d12; }

ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 9px 0 9px 26px; position: relative; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; }
ul.plain li::before { content: "→"; position: absolute; left: 0; color: var(--accent);
                      font-family: var(--mono); }

details.faq { border-top: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; padding: 15px 0; color: var(--text);
                      font-weight: 550; font-size: 16.5px; list-style: none;
                      display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
details.faq[open] summary::after { content: "–"; }
details.faq .body { padding: 0 0 16px; max-width: 76ch; }
details.faq .body p:last-child { margin-bottom: 0; }

.callout { border: 1px solid var(--line2); border-left: 3px solid var(--warn);
           background: var(--bg2); border-radius: 0 8px 8px 0; padding: 18px 20px; }

/* --- footer --------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: 14px;
               color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: baseline; }
.site-footer .spacer { flex: 1 1 auto; }

/* --- forms ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 550; color: var(--text);
               margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: 13px;
               margin-top: 2px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 15px; color: var(--text);
  background: var(--bg2); border: 1px solid var(--line2); border-radius: 8px;
  padding: 11px 13px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none;
  box-shadow: 0 0 0 3px rgba(106,166,255,.22); }
.field .err { display: none; color: var(--bad); font-size: 13.5px; margin-top: 6px; }
.field.invalid input, .field.invalid textarea { border-color: var(--bad); }
.field.invalid .err { display: block; }
.form-status { border-radius: 8px; padding: 14px 16px; font-size: 15px; display: none; }
.form-status.show { display: block; }
.form-status.ok { border: 1px solid #234238; background: #16241f; color: var(--ok); }
.form-status.bad { border: 1px solid #4a2731; background: #241a1e; color: var(--bad); }
.optional { color: var(--muted); font-weight: 400; }

/* --- responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .grid.two, .grid.four { grid-template-columns: 1fr; }
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 32px; }
  .hero-actions .btn { width: 100%; }
  .site-header .wrap { height: 56px; gap: 10px; }
  .header-cta .btn { padding: 8px 12px; font-size: 13.5px; }
  /* Two header buttons do not fit a phone without forcing the page wider than
     the screen. The demo is the primary call to action, so it is the one that
     stays; the pilot link is in the body and the footer on every page. */
  .header-cta .btn.primary { display: none; }
  h1 { font-size: 27px; }
  .hero .lede, .lede { font-size: 17px; }
  .card { padding: 18px; }
}

/* Nothing may push the page wider than the screen: a landing page that scrolls
   sideways on a phone reads as broken before a word of it is read. */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, table { max-width: 100%; }

@media (max-width: 900px) {
  #pilot-layout { grid-template-columns: 1fr !important; gap: 34px !important; }
}

/* display on .btn/.card would otherwise defeat the hidden attribute, which is
   how optional configuration (a booking link, a founder bio) stays out of the
   page when it is not set. */
[hidden] { display: none !important; }
