/* Public site styling.
 *
 * A light page with the product kept dark: the workspace screenshot is the one
 * dark object on the page, which is what makes it the strongest thing on it.
 * 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 #475569 on #F8FAFC is 7.6:1, headings #0F172A 17.4:1, the teal
 * #0F766E on white 5.9:1 — all past WCAG AA. Amber marks a difference that
 * needs attention and red marks an error; both always sit beside a word that
 * says which, so the meaning does not depend on the colour.
 */
:root {
  --bg: #F8FAFC;          /* page */
  --bg2: #F1F5F9;         /* a step down from the page, for callouts */
  --panel: #FFFFFF;       /* cards and content panels */
  --panel2: #F1F5F9;
  --line: #E2E8F0;        /* borders */
  --line2: #CBD5E1;
  --text: #0F172A;        /* headings */
  --body: #475569;        /* body text */
  --muted: #64748B;
  --accent: #0F766E;      /* primary buttons and links */
  --accent-dim: #F0FDFA;
  --accent-ink: #FFFFFF;
  --warn: #B45309;        /* attention: a difference between sources */
  --warn-bg: #FFFBEB;
  --warn-line: #FCD34D;
  --ok: #047857;
  --ok-bg: #ECFDF5;
  --ok-line: #A7F3D0;
  --bad: #B91C1C;         /* error */
  --bad-bg: #FEF2F2;
  --bad-line: #FECACA;
  /* the product is dark; these frame its screenshot */
  --shot-bg: #171b24;
  --shot-line: #262d3c;
  --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; }
a:focus-visible, .btn:focus-visible { outline-color: var(--accent); }
: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(248,250,252,.9);
               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: var(--panel);
       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);
             color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); color: var(--accent-ink); }
.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 --------------------------------------------------- */
/* The product is dark and stays dark. On a light page the screenshot is the one
   dark object, so it is framed as such rather than lightened to match. */
.shot { border: 1px solid var(--shot-line); border-radius: 12px; overflow: hidden;
        background: var(--shot-bg); box-shadow: 0 24px 60px rgba(15,23,42,.18); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 11px 16px; font-size: 13px; color: var(--body);
                   border-top: 1px solid var(--line); background: var(--panel); }

/* --- 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.attention { border-left: 3px solid var(--warn-line); }

/* --- workflow steps: numbered columns, not boxes ------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps > div { padding: 4px 24px 0 0; margin-right: 24px; border-right: 1px solid var(--line); }
.steps > div:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.steps .n { font-family: var(--mono); font-size: 13px; color: var(--accent);
            display: block; margin-bottom: 9px; }
.steps h3 { margin-bottom: 7px; }
.steps p:last-child { margin-bottom: 0; }

/* --- 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: var(--ok-line); background: var(--ok-bg); }
.pill.warn { color: var(--warn); border-color: var(--warn-line); background: var(--warn-bg); }
.pill.bad { color: var(--bad); border-color: var(--bad-line); background: var(--bad-bg); }
.attention-text { color: var(--warn); }

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(--line); border-left: 3px solid var(--warn-line);
           background: var(--panel); border-radius: 0 8px 8px 0; padding: 18px 20px; }

/* --- founder: text only ---------------------------------------------------- */
.founder h2 { margin-bottom: 2px; }
.founder .role { color: var(--muted); font-size: 15px; margin-bottom: 14px; }
.founder .links { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px;
                  margin-top: 6px; }

/* --- 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(--panel); 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(15,118,110,.18); }
.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 var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.form-status.bad { border: 1px solid var(--bad-line); background: var(--bad-bg); 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)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .steps > div:nth-child(2n) { border-right: 0; margin-right: 0; padding-right: 0; }
  .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; }
  .steps { grid-template-columns: 1fr; row-gap: 0; }
  .steps > div { border-right: 0; margin-right: 0; padding: 18px 0;
                 border-top: 1px solid var(--line); }
  .steps > div:first-child { border-top: 0; padding-top: 4px; }
  .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:not(.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; }
