/* ScribeOps landing page.
   Direction "Datasheet": the page is the product's spec sheet — numbered
   sections, FIG. captions, hairline blueprint frames with registration marks.
   Tokens and the .blueprint / .btn / .card / .nav / .table components come from
   the Industry design system; the layout classes below replace the design
   canvas's inline styles so the page can be responsive and maintained.

   Light-only by design: the whole concept is ink on a technical ground, and a
   dark inversion would fight it. Every colour is stated explicitly so the
   viewer's theme never shows through. */

/* ─────────────────────────── tokens ─────────────────────────── */

:root {
  --color-bg:      #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text:    #1d1f20;
  --color-accent:  #5980a6;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;

  --color-accent-100: #eef6ff;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-body:    "Barlow", system-ui, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  /* One page rhythm, so sections and gutters scale together. */
  --wrap:   1080px;
  --gutter: clamp(20px, 4vw, 40px);
  --band:   clamp(56px, 8vw, 90px);
}

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }
a { color: var(--color-accent-700); text-decoration: none; }
a:hover { color: var(--color-accent); }
code { font-family: var(--font-mono); font-size: 0.9em; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); }

/* Tinted full-bleed band, used for sections 02 and 04. */
.band-tint {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: var(--band) 0;
}

/* ───────────────── blueprint frame + registration marks ───────────────── */

.blueprint { position: relative; border: 1px solid var(--color-divider); border-radius: 0; }
.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before,
.blueprint > .corner::after { content: ""; position: absolute; background: currentColor; }
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 12px 24px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover  { background: var(--color-accent-600); color: var(--color-bg); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); color: var(--color-text); }
.btn-secondary:hover  { background: color-mix(in srgb, var(--color-text) 7%, transparent); color: var(--color-text); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }

/* ─────────────────────────── nav ─────────────────────────── */

.nav {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter);
}
.nav-brand { font-family: var(--font-heading); font-weight: 600; font-size: 19px; letter-spacing: 0.06em; }
.nav-badge {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  color: var(--color-neutral-600); border: 1px solid var(--color-divider); padding: 3px 8px;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.nav-links a { color: inherit; font-size: 13.5px; }
.nav-links a:hover { color: var(--color-accent); }
.nav-rule { height: 1px; background: var(--color-divider); }

/* ─────────────────────────── hero ─────────────────────────── */

.hero {
  display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 64px;
  align-items: start;
  /* .hero is also .wrap — never use the `padding` shorthand here, it would
     zero the side gutters that .wrap sets and run the hero edge to edge. */
  padding-top: clamp(48px, 6vw, 74px);
  padding-bottom: var(--band);
}
.eyebrow {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--color-accent-700); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(44px, 6.4vw, 74px); line-height: 0.94; letter-spacing: -0.02em; max-width: 14ch; }
.hero .lede { margin-top: 26px; font-size: 18px; line-height: 1.55; max-width: 48ch; color: var(--color-neutral-800); }
.hero .actions { display: flex; gap: 14px; margin-top: 32px; align-items: center; flex-wrap: wrap; }

/* The specification panel — privacy and speed as readings of the same kind. */
.spec { padding: 20px 20px 16px; margin-top: 8px; }
.spec-head {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--color-neutral-600); margin-bottom: 14px;
}
.spec dl { margin: 0; font-family: var(--font-mono); font-size: 12px; }
.spec dl > div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 7px 0; border-top: 1px solid var(--color-divider);
}
.spec dl > div:last-child { border-bottom: 1px solid var(--color-divider); }
.spec dt { color: var(--color-neutral-700); }
.spec dd { margin: 0; font-weight: 500; }
.spec .zero { color: var(--color-accent-700); }
.spec .soft { color: var(--color-neutral-600); font-weight: 400; }

/* ─────────────────── figure captions and section heads ─────────────────── */

.fig-rule { display: flex; align-items: baseline; gap: 14px; margin-bottom: 12px; }
.fig-rule::after { content: ""; flex: 1; height: 1px; background: var(--color-divider); }
.fig-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.18em;
  color: var(--color-neutral-600); text-transform: uppercase;
}
figure { margin: 0; }
figcaption {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  margin-top: 14px; color: var(--color-neutral-600);
}

.sec { padding-bottom: var(--band); }
.sec-head {
  display: grid; grid-template-columns: 0.34fr 0.66fr; gap: 56px;
  align-items: start; margin-bottom: 40px;
}
.sec-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; color: var(--color-accent-700); }
.sec-head h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.02; margin-top: 12px; }
.sec-head p { font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); max-width: 52ch; }

/* ─────────────────────── the live editor demo ─────────────────────── */

.app { background: var(--color-neutral-100); }
.app-bar, .app-foot {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  font-family: var(--font-mono); font-size: 11.5px; color: var(--color-neutral-700);
}
.app-bar { border-bottom: 1px solid var(--color-divider); }
.app-foot { border-top: 1px solid var(--color-divider); font-size: 11px; color: var(--color-neutral-600); }
.app-bar .dots { display: flex; gap: 5px; }
.app-bar .dots i { width: 8px; height: 8px; background: var(--color-neutral-400); display: block; }
.app-bar .status, .app-foot b { color: var(--color-accent-700); }
.app-foot .readout { margin-left: auto; }
.app-foot b { font-weight: 500; font-variant-numeric: tabular-nums; }

.panes { display: grid; grid-template-columns: 1fr 1fr; }
.pane { min-width: 0; }
.pane + .pane { border-left: 1px solid var(--color-divider); }
.pane-head {
  padding: 7px 14px; border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em;
  color: var(--color-neutral-600);
}
.pane textarea {
  display: block; width: 100%; height: 400px; border: 0; resize: none;
  padding: 18px 20px; font-family: var(--font-mono); font-size: 12.5px;
  line-height: 1.68; color: var(--color-text); background: transparent;
  outline: none; white-space: pre-wrap; tab-size: 2;
}
.pane textarea:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

/* ───────────────── rendered markdown, inside the demo ───────────────── */

.md-out { height: 400px; overflow: auto; padding: 18px 22px; font-size: 14px; line-height: 1.62; }
.md-out h1, .md-out h2, .md-out h3 { font-family: var(--font-heading); margin: 1em 0 0.3em; line-height: 1.14; }
.md-out h1 { font-size: 1.65em; }
.md-out h2 { font-size: 1.3em; }
.md-out h3 { font-size: 1.1em; }
.md-out p { margin: 0.45em 0; }
.md-out ul, .md-out ol { margin: 0.4em 0 0.7em; padding-left: 1.3em; }
.md-out li { margin: 0.1em 0; }
.md-out code {
  font-family: var(--font-mono); font-size: 0.86em; background: var(--color-neutral-200);
  border: 1px solid var(--color-divider); padding: 0.05em 0.3em;
}
.md-out pre {
  background: var(--color-neutral-200); border: 1px solid var(--color-divider);
  padding: 12px; overflow-x: auto; margin: 0.6em 0;
}
.md-out pre code { background: none; border: 0; padding: 0; }
.md-out blockquote {
  border-left: 2px solid var(--color-accent); margin: 0.5em 0;
  padding-left: 12px; color: var(--color-neutral-700);
}
.md-out strong { font-weight: 700; }
.md-out em { font-style: italic; }
.md-out .math { font-family: var(--font-mono); color: var(--color-accent-700); }
.md-out .fm {
  background: var(--color-neutral-200); border: 1px solid var(--color-divider);
  padding: 8px 12px; font-family: var(--font-mono); font-size: 11.5px;
  color: var(--color-neutral-700); margin-bottom: 12px; white-space: pre-wrap;
}
.md-out .mm { display: flex; gap: 8px; align-items: center; margin: 10px 0; flex-wrap: wrap; }
.md-out .mm span { border: 1px solid var(--color-divider); padding: 5px 12px; font-family: var(--font-mono); font-size: 11.5px; }
.md-out .mm i { font-style: normal; color: var(--color-neutral-600); }

/* ─────────────────────────── data tables ─────────────────────────── */

.table { width: 100%; border-collapse: collapse; font-size: 14px; font-family: var(--font-mono); }
.table th, .table td { text-align: left; padding: 12px 18px; }
.table thead th {
  font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-neutral-600); border-bottom: 1px solid var(--color-divider);
}
.table tbody tr + tr td { border-top: 1px solid var(--color-divider); }
.table .win { font-weight: 500; }
.table .lose { color: var(--color-neutral-600); }
.table-note {
  padding: 12px 18px; border-top: 1px solid var(--color-divider);
  font-size: 12.5px; color: var(--color-neutral-700);
}
.scroll-x { overflow-x: auto; }

/* Key/value rows: the export list and the offline payload. */
.rows { font-family: var(--font-mono); font-size: 12px; }
.rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 16px; border-bottom: 1px solid var(--color-divider);
}
.rows > div:last-child { border-bottom: 0; }
.rows .val { font-weight: 500; }
.rows .soft { color: var(--color-neutral-600); font-weight: 400; }
.rows-head {
  display: flex; padding: 9px 16px; border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--color-neutral-600);
}
.rows-head .status { margin-left: auto; color: var(--color-accent-700); }

.dl-flat { margin: 0; font-family: var(--font-mono); font-size: 12px; max-width: 400px; }
.dl-flat > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 8px 0; border-top: 1px solid var(--color-divider);
}
.dl-flat > div:last-child { border-bottom: 1px solid var(--color-divider); }
.dl-flat dd { margin: 0; color: var(--color-neutral-600); }

/* ───────────────── the data-path diagram (section 02) ───────────────── */

.path {
  display: flex; align-items: center; font-family: var(--font-mono); font-size: 11.5px;
  margin-bottom: 44px; flex-wrap: wrap; gap: 0;
}
.path span { border: 1px solid var(--color-divider); padding: 9px 16px; background: var(--color-bg); }
.path .here { border-color: var(--color-accent); color: var(--color-accent-800); background: var(--color-accent-100); }
.path .gone { border-style: dashed; border-color: var(--color-neutral-400); color: var(--color-neutral-500); text-decoration: line-through; }
.path i { flex: none; width: 40px; height: 1px; background: var(--color-divider); }

/* ─────────────────────────── cards ─────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; padding: 18px; background: transparent; }
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; margin: 4px 0 6px; }
.card-body { margin: 0; font-size: 13px; color: var(--color-neutral-800); flex: 1; }

/* Column strips divided by hairlines (features, audiences). */
.strip { display: grid; gap: 0; border-top: 1px solid var(--color-divider); }
.strip-4 { grid-template-columns: repeat(4, 1fr); }
.strip-3 { grid-template-columns: repeat(3, 1fr); }
.strip > div { padding: 22px 24px 0; }
.strip > div:first-child { padding-left: 0; }
.strip > div:last-child { padding-right: 0; }
.strip > div + div { border-left: 1px solid var(--color-divider); }
.strip h4 { font-size: 16px; margin-bottom: 6px; }
.strip h3 { font-size: 23px; margin-bottom: 10px; }
.strip p { font-size: 13.5px; line-height: 1.6; color: var(--color-neutral-700); }
.strip-3 p { font-size: 14.5px; color: var(--color-neutral-800); }

/* ─────────────── figures: focus mode, palette, print ─────────────── */

.fig-head {
  display: flex; padding: 8px 14px; border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--color-neutral-600);
}
.fig-head .key { margin-left: auto; }

.focus-lines {
  padding: 22px 20px; font-family: var(--font-mono); font-size: 12.5px;
  line-height: 2.05; display: flex; flex-direction: column; height: 252px; overflow: hidden;
}
.focus-lines .dim  { opacity: 0.2; }
.focus-lines .dim2 { opacity: 0.32; }
.focus-lines .dim3 { opacity: 0.55; }
.focus-lines .now  { background: var(--color-accent-100); box-shadow: 0 0 0 6px var(--color-accent-100); }

.palette { height: 252px; display: flex; flex-direction: column; }
.palette .query {
  padding: 13px 18px; border-bottom: 1px solid var(--color-divider);
  font-family: var(--font-mono); font-size: 13px; color: var(--color-neutral-700);
}
.palette .query b { color: var(--color-accent); font-weight: 500; }
.palette .cmd {
  display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--color-neutral-700);
}
.palette .cmd.on { background: var(--color-accent-100); color: var(--color-accent-800); }
.palette .cmd .key { opacity: 0.6; }
.palette .foot {
  margin-top: auto; padding: 9px 18px; border-top: 1px solid var(--color-divider);
  font-family: var(--font-mono); font-size: 10.5px; color: var(--color-neutral-600);
}

.sheet { background: var(--color-bg); padding: 30px 34px; height: 300px; overflow: hidden; }
.sheet h3 { font-family: var(--font-heading); font-size: 26px; line-height: 1.1; margin-bottom: 8px; }
.sheet .rule { width: 56px; height: 2px; background: var(--color-accent); margin-bottom: 14px; }
.sheet p { margin-bottom: 8px; font-size: 13.5px; line-height: 1.6; color: var(--color-neutral-800); }
.sheet .eq {
  border: 1px solid var(--color-divider); padding: 8px 12px; font-family: var(--font-mono);
  font-size: 11.5px; color: var(--color-accent-700); margin-bottom: 8px;
}

/* ─────────────── two-column section bodies ─────────────── */

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.duo-wide { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.split { display: grid; grid-template-columns: 0.34fr 0.66fr; gap: 56px; align-items: start; }

/* ─────────────────────────── footer ─────────────────────────── */

footer { border-top: 1px solid var(--color-divider); padding: clamp(48px, 6vw, 74px) 0 34px; }
.foot-cta { display: grid; grid-template-columns: 1fr 0.8fr; gap: 64px; align-items: center; }
.foot-cta h2 { font-size: clamp(38px, 5vw, 56px); line-height: 0.98; margin-bottom: 14px; }
.foot-cta p { font-size: 17px; color: var(--color-neutral-800); max-width: 40ch; }
.foot-cta .actions { display: flex; gap: 14px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.colophon {
  margin-top: 52px; padding-top: 20px; border-top: 1px solid var(--color-divider);
  display: flex; gap: 26px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--color-neutral-600);
}
.colophon .push { margin-left: auto; }

/* ─────────────────────────── responsive ─────────────────────────── */

@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { max-width: 18ch; }
  .spec { margin-top: 0; }
  .sec-head, .split { grid-template-columns: 1fr; gap: 18px; }
  .sec-head h2 { margin-top: 8px; }
  .duo-wide { grid-template-columns: 1fr; gap: 40px; }
  .strip-4 { grid-template-columns: repeat(2, 1fr); }
  .strip-4 > div:nth-child(3) { border-left: 0; }
  .strip-4 > div:nth-child(-n+2) { padding-bottom: 22px; }
  .strip-4 > div:nth-child(n+3) { border-top: 1px solid var(--color-divider); }
  .strip-4 > div:nth-child(odd) { padding-left: 0; }
  .strip-4 > div:nth-child(even) { padding-right: 0; }
  .foot-cta { grid-template-columns: 1fr; gap: 32px; }
  .foot-cta .actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .duo { grid-template-columns: 1fr; gap: 34px; }
  .panes { grid-template-columns: 1fr; }
  .pane + .pane { border-left: 0; border-top: 1px solid var(--color-divider); }
  .pane textarea { height: 300px; }
  .md-out { height: 320px; }
  .path { gap: 10px; }
  .path i { display: none; }
  .strip-3, .strip-4 { grid-template-columns: 1fr; }
  .strip > div { padding: 20px 0; border-left: 0 !important; }
  .strip > div + div { border-top: 1px solid var(--color-divider); }
  .nav-links a:not(.btn) { display: none; }
}

@media (max-width: 460px) {
  .nav { gap: 12px; }
  .nav-badge { display: none; }
  .hero .actions .btn, .foot-cta .actions .btn { flex: 1 1 auto; }
}


/* ─────────── utilities the page markup leans on ─────────── */

.nav-cta { padding: 8px 16px; font-size: 13.5px; }
.fig-01 { padding-bottom: var(--band); }
.band-gap { margin-bottom: var(--band); }
.fig-panel { background: var(--color-neutral-100); }
.strip-gap { margin-top: 40px; }
.sec-h2 { font-size: clamp(32px, 4vw, 44px); line-height: 1.02; margin: 12px 0 18px; }
.sec-lede { margin-bottom: 26px; font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); max-width: 52ch; }
.duo-wide .sec-lede { max-width: 44ch; }
.fine { margin-top: 16px; font-size: 13.5px; line-height: 1.6; color: var(--color-neutral-700); }
