/* OmniArc — landing site stylesheet.
   No @import, no url() pointing off-origin, no web fonts. System stacks only. */

:root {
  --ink: #0b0b0b;
  --paper: #fcfcfb;
  --blue: #2a78d6;
  --orange: #eb6834;
  --green: #1baf7a;
  /* Darkened from the deck's #8a8983 (3.42:1 on paper, below AA) to clear
     4.5:1 for normal text — a web-only deviation; the deck palette is unchanged. */
  --muted: #6b6a63;
  --ink-2: #52514e;
  --rule: #dcdbd6;
  /* Text-only: --blue is 4.30:1 on paper, under the 4.5:1 AA floor for normal
     text. This is the same blue already used for the button's hover state,
     reused here so link text clears AA (5.67:1) without touching --blue's
     other uses (buttons, bullet dots, borders, the chart). */
  --link: #2166b3;

  --sans: ui-sans-serif, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;

  --measure: min(68rem, 92vw);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
}

a:visited {
  color: var(--link);
}

.wrap {
  width: var(--measure);
  margin-inline: auto;
}

/* ---------- header ---------- */

.site-header {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule);
}

.site-header .wrap {
  display: flex;
  align-items: center;
}

.logo {
  width: 141px;
  display: block;
}

/* ---------- sections ---------- */

main {
  display: block;
}

section {
  padding-block: 3.5rem;
  border-bottom: 1px solid var(--rule);
}

section .wrap > h2 {
  margin-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 40rem) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  line-height: 1.15;
}

/* ---------- hero ---------- */

.hero {
  padding-block: 4rem 3rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.hero .lede {
  max-width: 44rem;
  font-size: 1.2rem;
  color: var(--ink-2);
  margin: 0 0 2rem;
}

.hero .proof {
  max-width: 44rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* The measured figures used to be links to FINDINGS.md; the repository isn't
   public, so those hrefs were dead on every real deployment (fix 3). They're
   plain <strong class="num"> now, and read as emphasis through weight alone
   rather than the underline that used to signal "clickable". */

/* ---------- signup form ---------- */

form.signup {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  max-width: 34rem;
}

form.signup label[for] {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

form.signup input[type="email"] {
  flex: 1 1 16rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--sans);
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
}

form.signup input[type="email"]:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

form.signup button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-family: var(--sans);
  font-weight: 600;
  border: 1px solid var(--blue);
  border-radius: 4px;
  background: var(--blue);
  color: var(--paper);
  cursor: pointer;
}

form.signup button:hover {
  background: #2166b3;
}

/* The honeypot: hidden off-screen rather than display:none, which some bots
   know to skip. A person never sees it; a script fills it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- lists ---------- */

.checks {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.checks li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-2);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- code sample ---------- */

pre.code {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.6;
}

pre.code code {
  font-family: inherit;
}

/* ---------- cost / chart ---------- */

.chart-figure {
  margin: 2rem 0 0;
}

/* The chart's labels are a fixed dark ink on a transparent background (it is
   plain, portable SVG), so it gets its own light card rather than trusting
   whatever the surrounding page's colour scheme happens to be. */
.chart-card {
  background: #fcfcfb;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 1.25rem 1rem;
}

.chart-figure img {
  display: block;
  width: 100%;
}

.chart-figure figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- proof strip ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 2rem 0 1.5rem;
}

@media (min-width: 40rem) {
  .proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  border-top: 3px solid var(--blue);
  padding-top: 0.75rem;
}

.stat .num {
  display: block;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.stat .label {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.proof .fine {
  color: var(--ink-2);
  max-width: 44rem;
}

/* ---------- closing / footer ---------- */

footer {
  padding-block: 3rem;
}

footer h2 {
  margin-top: 0;
}

footer .small {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 40rem;
}

footer .small a {
  color: var(--muted);
  text-decoration: underline;
}

/* ---------- simple page shell (joined / oops) ---------- */

.shell {
  padding-block: 4rem;
  min-height: 40vh;
}

.shell h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.shell p {
  max-width: 36rem;
  color: var(--ink-2);
  font-size: 1.1rem;
}

.shell .home {
  display: inline-block;
  margin-top: 1rem;
}

/* ---------- print ---------- */

@media print {
  form.signup,
  .hp {
    display: none !important;
  }
}

/* ---------- dark mode ---------- */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1116;
    --ink: #fcfcfb;
    --blue: #4d9bf0;
    --rule: #262a30;
    --muted: #9a9a97;
    --ink-2: #c9c9c6;
    /* The light-mode --link (#2166b3) is only 3.25:1 here — under AA against
       this dark paper. Dark --blue itself already clears AA for text
       (6.54:1), so link text can just follow it in this scheme. */
    --link: var(--blue);
  }

  form.signup input[type="email"] {
    background: #171b21;
    border-color: var(--rule);
    color: var(--ink);
  }

  form.signup button {
    color: #0e1116;
  }

  /* The light-mode hover (#2166b3) is a dark navy — fine against the
     light-mode button's light text, but against this scheme's #0e1116
     button text it lands at roughly 2.9:1, under the 4.5:1 AA floor. This
     is a lighter, more saturated blue that keeps a visible darken-on-hover
     against the base --blue while giving #0e1116 text ~5.15:1. */
  form.signup button:hover {
    background: #3f86e0;
  }

  pre.code {
    background: #05070a;
    color: #fcfcfb;
  }

}
