/*
 * Asyron landing page — Brand Guidelines v1.0 (August 2026).
 *
 * The tokens below are COPIED from `frontend/src/app/globals.css` rather than
 * imported, because this page is deployed to Cloudflare Pages from a different
 * pipeline and must not depend on the app's build. Copying a palette is a
 * drift risk, so it is written down once here and nowhere else in this
 * directory: if the brand changes, this block is the single place to change.
 *
 * THE RULE THAT CARRIES THE BRAND: AMBER MEANS RISK. In the app it is only ever
 * a flag, a score or a signal dot — never a button, never decoration. This page
 * has no risk to show, so it spends amber exactly twice: the dot in the
 * wordmark, and the step numbers. Both read as "the thing that noticed
 * something", which is what the product is. Every button here is ink.
 */
:root {
  --bg: #fbfaf9;
  --bg-band: #f4f2ee;
  --surface: #ffffff;
  --border: #e6e3dc;
  --border-strong: #d6d2c9;
  --ink: #14161a;
  --ink-hover: #35393f;
  --ink-muted: #5b6068;
  --label-muted: #6b7076;
  --accent: #b3701a;

  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* One measure for prose, one for the shell. 68ch keeps a paragraph inside the
     45–75 characters a line can be read without the eye losing its place. */
  --measure: 68ch;
  --shell: 1080px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  /* 17px, not 16: this page is read once, at arm's length, often on a phone in
     daylight. The app can be denser because it is read all day by someone
     leaning in. */
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* The one gutter. Side padding lives here and nowhere else, so no element can
   lose it at a narrow width. Vertical padding is set with padding-block on the
   sections, never a shorthand that would zero these sides. */
.wrap {
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (max-width: 480px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
}

/* Visible only once focused: a keyboard user gets past the nav, a mouse user
   never sees it. `top` is animated rather than display, so focus is not lost. */
.skip {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  transition: top 120ms;
}
.skip:focus { top: 12px; }

a { color: inherit; }

/* ── The bar ─────────────────────────────────────────────────────────────── */

.bar {
  border-bottom: 1px solid var(--border);
  background: rgba(251,250,249,0.9);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 5;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}

/* The only amber on the screen above the fold. A filled dot is the app's own
   "signal" glyph, so the wordmark says what the product does. */
.mark-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.bar nav {
  display: flex;
  gap: 22px;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.bar nav a { text-decoration: none; }
.bar nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Below this the three nav links crowd the wordmark. They are anchors to
   sections that are directly below anyway, so scrolling loses nothing. */
@media (max-width: 620px) {
  .bar nav { display: none; }
}

/* ── Type ────────────────────────────────────────────────────────────────── */

/* Mono, uppercase, tracked out: the app's "machine voice" for labels. It is the
   one typographic move that makes this page recognisably the same product. */
.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--label-muted);
}

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 54px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2 {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}

.section-h { margin-bottom: 28px; max-width: var(--measure); }

h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}

p { margin: 0 0 14px; color: var(--ink-muted); max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(17px, 2vw, 19.5px);
  line-height: 1.55;
  color: var(--ink-muted);
  margin-top: 22px;
}

/* ── Sections ────────────────────────────────────────────────────────────── */

.hero { padding-block: clamp(56px, 10vw, 104px) clamp(48px, 8vw, 76px); }

.band {
  background: var(--bg-band);
  border-block: 1px solid var(--border);
}
.band > .wrap { padding-block: clamp(48px, 8vw, 80px); }

.steps-section, .contact { padding-block: clamp(48px, 8vw, 80px); }

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn-primary, .btn-quiet {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 9999px;
  font-size: 15.5px;
  text-decoration: none;
  transition: background 120ms, color 120ms, border-color 120ms;
}

/* Ink, not amber — see the note at the top of this file. */
.btn-primary {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); }

.btn-quiet {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-quiet:hover { background: var(--surface); border-color: var(--ink-muted); }

/* ── Two-column prose ────────────────────────────────────────────────────── */

.cols {
  display: grid;
  /* 30ch is the narrowest a paragraph of this size stays readable at; below
     that the grid collapses to one column rather than making two bad ones. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30ch), 1fr));
  gap: clamp(28px, 5vw, 56px);
}

/* ── Steps ───────────────────────────────────────────────────────────────── */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr));
  /* 1px gap over the border colour is the app's table/card idiom: the hairline
     between cards IS the gap, so no card needs its own full border. */
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.steps li {
  background: var(--surface);
  padding: 24px 22px 26px;
}

/* Amber's second and last appearance. A step number is a marker, the same job
   the dot does — and there is nothing else on this page for the eye to confuse
   it with. */
.step-n {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 14px;
}

.steps p { font-size: 15.5px; max-width: none; }

.aside {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 2px solid var(--border-strong);
  background: var(--surface);
  font-size: 15.5px;
  max-width: var(--measure);
}
.aside strong { color: var(--ink); font-weight: 600; }

/* ── Data facts ──────────────────────────────────────────────────────────── */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 272px), 1fr));
  gap: clamp(22px, 3.4vw, 34px);
}

.fact p { font-size: 15.5px; max-width: none; }

/* ── Footer ──────────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 26px;
}

.foot-note { font-size: 14px; color: var(--label-muted); }

/*
 * NO DARK MODE, and it is a decision rather than an omission.
 *
 * The brand palette is paper-and-ink and the app has no dark theme either, so a
 * dark variant here would be the only dark Asyron surface in existence — and
 * the amber that carries the brand is specified for light backgrounds
 * (`--accent-light` exists in the app precisely because #b3701a fails on dark).
 * Half a brand is worse than one.
 */

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
