/*
 * Fabriscope — marketing site.
 *
 * Tokens come from the product: ink and amber are the app's brand, the lane
 * colours are the lineage graph's. The page sits on a cool "drafting film"
 * with a faint engineering dot grid, echoing the lattice inside the logo.
 * Light-only, like the product.
 */

:root {
  color-scheme: light;

  --ink: #1c2e44;
  --ink-2: #2a3f5a;
  --amber: #d98f2b;
  --amber-deep: #93610e;
  --amber-wash: #f7ead4;
  --film: #edf0f3;
  --sheet: #fbfcfd;
  --slate: #5b6b7f;
  --rule: #d6dce3;
  --rule-soft: #e3e7ec;

  /* lineage lanes, from the product */
  --lane-src: #98a2b3;
  --lane-lh: #2f7d57;
  --lane-sm: #5b4bb7;
  --lane-rp: #1e5fa5;

  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --section: clamp(72px, 10vw, 128px);
}

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

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--film);
  background-image: radial-gradient(rgba(28, 46, 68, 0.085) 1px, transparent 1.2px);
  background-size: 24px 24px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.88em; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 50;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}
.skip:focus { left: 8px; }

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

/* ------------------------------------------------------------- type scale */
.display {
  font-family: var(--display);
  font-stretch: 118%;
  font-weight: 750;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.display-sm { font-size: clamp(30px, 3.8vw, 48px); }
.h2 {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 10px 0 20px;
  text-wrap: balance;
}
.h2 code { font-size: 0.82em; font-weight: 600; letter-spacing: -0.03em; }
.h2-narrow { max-width: 22ch; }
.eyebrow {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.lede {
  font-size: clamp(17px, 1.45vw, 19.5px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
  margin: 22px 0 26px;
}
.fine { font-size: 14px; color: var(--slate); margin: 16px 0 0; }
/* The promise a security reviewer looks for first, set apart from the lede. */



.meta-only {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  margin: -14px 0 30px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.meta-only .frame {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

/*
 * The reticle frame: the logo's four corner brackets, around a label. Used for
 * what Fabriscope "finds" — product names, plan caps — never as decoration.
 */
.frame {
  position: relative;
  display: inline-block;
  padding: 3px 9px;
  --c: var(--amber);
  background:
    linear-gradient(var(--c), var(--c)) top left / 7px 1.6px,
    linear-gradient(var(--c), var(--c)) top left / 1.6px 7px,
    linear-gradient(var(--c), var(--c)) top right / 7px 1.6px,
    linear-gradient(var(--c), var(--c)) top right / 1.6px 7px,
    linear-gradient(var(--c), var(--c)) bottom left / 7px 1.6px,
    linear-gradient(var(--c), var(--c)) bottom left / 1.6px 7px,
    linear-gradient(var(--c), var(--c)) bottom right / 7px 1.6px,
    linear-gradient(var(--c), var(--c)) bottom right / 1.6px 7px;
  background-repeat: no-repeat;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 15px/1.2 var(--body);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 22px; font-size: 16px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-amber { background: var(--amber); color: #1a1206; }
.btn-amber:hover { background: #e59d3a; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: rgba(28, 46, 68, 0.06); }
.link-quiet { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-2); }
.link-quiet:hover { text-decoration: underline; text-underline-offset: 3px; }

/* -------------------------------------------------------------------- nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(237, 240, 243, 0.86);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-word {
  font-family: var(--display);
  font-stretch: 105%;
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.ink { color: var(--ink); }
.amber { color: var(--amber); }
.nav-links { display: flex; gap: 26px; margin-right: auto; }
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1.5px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--amber); }
.nav-cta { display: flex; align-items: center; gap: 18px; }

/* ------------------------------------------------------------------- hero */
.hero { padding: clamp(32px, 4.5vw, 60px) 0 clamp(48px, 6vw, 80px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero .eyebrow { margin-bottom: 22px; }
.hl {
  background: linear-gradient(transparent 62%, rgba(217, 143, 43, 0.38) 62%, rgba(217, 143, 43, 0.38) 92%, transparent 92%);
  padding: 0 0.04em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions-center { justify-content: center; }

/* The signature: code on top, the lineage it yields below, a reticle between. */
.parse {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 30px 60px -30px rgba(28, 46, 68, 0.35),
    0 8px 20px -12px rgba(28, 46, 68, 0.18);
  overflow: hidden;
}
.parse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px 0 6px;
  background: #f3f5f8;
  border-bottom: 1px solid var(--rule-soft);
}
.parse-file {
  padding: 12px 8px 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  margin-right: auto;
}
.parse-steps { display: flex; gap: 4px; flex-shrink: 0; }
.parse-steps i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  background: var(--rule);
  transition: background-color 260ms ease;
}
.parse-steps i.done { background: #c9a36b; }
.parse-steps i.active { background: var(--amber); }
.parse-kind {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--amber-deep);
  white-space: nowrap;
}
.parse-code { position: relative; padding: 18px 20px 20px; min-height: 196px; }
.code {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.75;
  color: #3b4b60;
  white-space: pre;
  overflow: hidden;
  transition: opacity 220ms ease;
}
.code.fading { opacity: 0; }
.code .k { color: #6a5bb9; }
.code .s { color: #8a5a12; }
.code .c { color: #98a2b3; }
.code .tok { border-radius: 3px; transition: background-color 300ms ease, color 300ms ease; }
.code .tok.found { background: var(--amber-wash); color: var(--ink); }

.reticle {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    left 480ms cubic-bezier(0.65, 0, 0.35, 1),
    top 480ms cubic-bezier(0.65, 0, 0.35, 1),
    width 480ms cubic-bezier(0.65, 0, 0.35, 1),
    height 480ms cubic-bezier(0.65, 0, 0.35, 1),
    opacity 200ms ease;
}
.reticle.on { opacity: 1; }
.reticle i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 0 solid var(--amber);
  transition: transform 180ms ease;
}
.reticle i:nth-child(1) { left: -5px; top: -4px; border-left-width: 2px; border-top-width: 2px; }
.reticle i:nth-child(2) { right: -5px; top: -4px; border-right-width: 2px; border-top-width: 2px; }
.reticle i:nth-child(3) { left: -5px; bottom: -4px; border-left-width: 2px; border-bottom-width: 2px; }
.reticle i:nth-child(4) { right: -5px; bottom: -4px; border-right-width: 2px; border-bottom-width: 2px; }
/* A "lock": the brackets pinch in once, the way a viewfinder confirms focus. */
.reticle.lock i:nth-child(1) { transform: translate(2px, 2px); }
.reticle.lock i:nth-child(2) { transform: translate(-2px, 2px); }
.reticle.lock i:nth-child(3) { transform: translate(2px, -2px); }
.reticle.lock i:nth-child(4) { transform: translate(-2px, -2px); }

.parse-graph {
  border-top: 1px dashed var(--rule);
  background:
    radial-gradient(rgba(28, 46, 68, 0.07) 1px, transparent 1.2px) 0 0 / 16px 16px,
    #f7f9fb;
  padding: 14px 14px 10px;
}
.parse-graph svg { display: block; width: 100%; height: auto; }
.lanes text {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  fill: var(--slate);
}
.lanes line { stroke: var(--rule); stroke-dasharray: 2 4; }
.edges path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 700ms cubic-bezier(0.4, 0, 0.2, 1), stroke 900ms ease;
}
.edges path.drawn { stroke-dashoffset: 0; }
.edges path.settled { stroke: #b3bcc8; }
.gnode { opacity: 0; transition: opacity 360ms ease; }
.gnode.shown { opacity: 1; }
.gnode rect { fill: #fff; stroke: #c9d1db; stroke-width: 1; }
.gnode.fresh rect { stroke: var(--amber); stroke-width: 1.6; }
.gnode .n-name { font-family: var(--mono); font-size: 10.5px; font-weight: 600; fill: var(--ink); }
.gnode .n-sub { font-family: var(--body); font-size: 8.5px; fill: var(--slate); }
.lane-src circle { fill: var(--lane-src); }
.lane-lh circle { fill: var(--lane-lh); }
.lane-sm circle { fill: var(--lane-sm); }
.lane-rp circle { fill: var(--lane-rp); }
.parse-note {
  min-height: 20px;
  margin-top: 6px;
  font-size: 11.5px;
  color: var(--slate);
  transition: opacity 200ms ease;
}
.parse-note b { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ reads */
.reads { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(251, 252, 253, 0.6); }
.reads .wrap {
  display: grid;
  grid-template-columns: minmax(180px, 0.55fr) 2.4fr;
  gap: 32px;
  align-items: center;
  padding-top: 30px;
  padding-bottom: 30px;
}
.reads-title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 108%;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.reads-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.reads-list li { padding-left: 14px; position: relative; line-height: 1.4; }
.reads-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--amber);
}
.reads-list .mono { display: block; margin-top: 2px; font-size: 12px; color: var(--slate); }

/* -------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section-sheet { background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-ink { background: var(--ink); color: #e8edf3; }
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.split-copy > p { color: var(--ink-2); max-width: 36em; }
.section-ink .split-copy > p { color: #c3cdd9; }
.points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.points li {
  padding-left: 22px;
  position: relative;
  color: var(--ink-2);
  font-size: 16px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 9px;
  height: 1.8px;
  background: var(--amber);
}
.points strong { color: var(--ink); font-weight: 650; }

/* --------------------------------------------------------------- products */
.product-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.does-title,
.limits-title {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--slate);
}


/* The stage: real screens from the app, one view at a time. */
.stage { margin: clamp(40px, 5vw, 64px) 0 0; }
.stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.stage-tabs button {
  font: 500 14px/1 var(--body);
  color: var(--ink-2);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.stage-tabs button:hover { border-color: var(--slate); }
.stage-tabs button[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.stage-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f4f5f7;
  border: 1px solid var(--rule);
  box-shadow:
    0 40px 80px -48px rgba(28, 46, 68, 0.5),
    0 12px 28px -18px rgba(28, 46, 68, 0.25);
}
.stage-screen img,
.stage-screen video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}
.stage-screen img { cursor: zoom-in; }
.stage-screen .fade-in { animation: stage-in 280ms ease; }
@keyframes stage-in { from { opacity: 0; } to { opacity: 1; } }
.stage-caption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.stage-caption .demo-note {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--slate);
}


.limits {
  display: grid;
  grid-template-columns: minmax(160px, 0.5fr) 2fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.limits ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.limits li { padding-left: 14px; border-left: 2px solid var(--rule); }

.lightbox {
  width: min(1480px, 96vw);
  max-height: 94vh;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}
.lightbox::backdrop { background: rgba(20, 30, 45, 0.72); }
.lightbox img,
.lightbox video { display: block; width: 100%; height: auto; }
.lightbox [hidden] { display: none; }

/* Every screen opens larger: at section width an app screen is too small to read. */
/* Every screen sits in a macOS window, so it reads as an app, not a picture. */
.stage-screen { position: relative; padding-top: 36px; }
.stage-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 36px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 18px 18px, #ff5f57 5.5px, transparent 6px),
    radial-gradient(circle at 38px 18px, #febc2e 5.5px, transparent 6px),
    radial-gradient(circle at 58px 18px, #28c840 5.5px, transparent 6px),
    linear-gradient(#f6f7f9, #eceff3);
}
.stage-screen::after {
  content: "app.fabriscope.com";
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  font: 500 11.5px/1.4 var(--mono);
  color: var(--slate);
}
.stage-screen > img,
.stage-screen > video { cursor: zoom-in; }
.stage-zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px 6px 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 46, 68, 0.86);
  color: #fff;
  font: 500 12.5px/1 var(--body);
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.stage-screen:hover .stage-zoom,
.stage-zoom:focus-visible { opacity: 1; }
@media (hover: none) { .stage-zoom { opacity: 1; } }
@media (max-width: 560px) {
  .stage-screen { padding-top: 26px; }
  .stage-screen::before { height: 26px; background:
    radial-gradient(circle at 13px 13px, #ff5f57 4px, transparent 4.5px),
    radial-gradient(circle at 28px 13px, #febc2e 4px, transparent 4.5px),
    radial-gradient(circle at 43px 13px, #28c840 4px, transparent 4.5px),
    linear-gradient(#f6f7f9, #eceff3); }
  .stage-screen::after { top: 5px; font-size: 10px; }
}
.lightbox-close {
  position: sticky;
  top: 10px;
  float: right;
  margin: 10px 10px -46px 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* ------------------------------------------------------------------ setup */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1.5px solid var(--ink);
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 26px 26px 0 0;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-top: -42px;
  margin-bottom: 18px;
  font: 600 13px/1 var(--mono);
  background: var(--film);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 50%;
}
.steps li:last-child::before { background: var(--amber); border-color: var(--amber); color: #1a1206; }
.steps h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-stretch: 108%;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.steps p { margin: 0; font-size: 15px; color: var(--ink-2); }

/* --------------------------------------------------------------- security */
.eyebrow-on-ink { color: var(--amber); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, 0.1); border-radius: 12px; overflow: hidden; }
.fact { background: var(--ink); padding: 24px 24px 26px; }
.fact:nth-child(2) { background: #243851; }
.fact h3 { margin: 0 0 8px; font-size: 16.5px; font-weight: 650; color: #fff; }
.fact p { margin: 0; font-size: 14.5px; color: #b9c4d2; }
.fact code { color: #f0c27c; }

/* ---------------------------------------------------------------- pricing */
.pricing-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: end; }
.pricing-note { color: var(--ink-2); margin: 0 0 22px; }
.pricing-tax { display: block; margin-top: 10px; font-size: 14px; color: var(--slate); }

.meter {
  margin-top: 40px;
  padding: 26px 28px 34px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.meter-label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.meter-out { font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.meter-n, .meter-price {
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 750;
  font-size: 22px;
  color: var(--ink);
}
.meter-plan { font-weight: 700; color: var(--ink); }
.meter-arrow { color: var(--amber); margin: 0 4px; }
.meter-scale { position: relative; height: 16px; margin-top: 8px; margin-right: calc(28px + var(--out-w, 330px)); font-size: 11px; color: var(--slate); }
.meter-scale span { position: absolute; transform: translateX(-50%); }
.meter-scale span:first-child { transform: none; }
.meter-scale span:last-child { transform: translateX(-100%); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--amber) var(--fill, 14%), #d6dce3 var(--fill, 14%));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: #d6dce3; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 6px rgba(28, 46, 68, 0.25);
}
input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--amber); outline-offset: 3px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 2px solid var(--amber); outline-offset: 3px; }

.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.tier {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px 24px;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 12px;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}
.tier.match {
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber), 0 24px 40px -28px rgba(147, 97, 14, 0.55);
  transform: translateY(-3px);
}
.tier.match .btn-line { background: var(--ink); color: #fff; }
.tier-name {
  margin: 0;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.tier-price { margin: 0; }
.tier-price .num {
  font-family: var(--display);
  font-stretch: 116%;
  font-weight: 750;
  font-size: 44px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tier-price .per { color: var(--slate); font-size: 15px; margin-left: 4px; }
.tier-cap { margin: 4px 0 0; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.tier-blurb { margin: 0 0 8px; color: var(--ink-2); font-size: 15px; }
.tier .btn { margin-top: auto; }

.included {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.included h3 { margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.included li { padding-left: 22px; position: relative; }
.included li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.38em;
  width: 9px;
  height: 5px;
  border-left: 2px solid #2f7d57;
  border-bottom: 2px solid #2f7d57;
  transform: rotate(-45deg);
}
.trial-line {
  margin: 40px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
}
.trial-line .frame { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--ink); }

/* -------------------------------------------------------------------- faq */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-grid .h2 { margin-top: 0; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-weight: 650;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); max-width: 40em; }

/* ---------------------------------------------------------------- contact */
.contact { border-top: 1px solid var(--rule); }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-body > p { margin: 8px 0 18px; color: var(--ink-2); max-width: 34em; font-size: 18px; }
.contact-mail {
  display: inline-block;
  font-family: var(--display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 3px solid var(--amber);
  padding-bottom: 2px;
  word-break: break-all;
}
.contact-mail:hover { color: var(--amber-deep); }
.contact-topics {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.contact-topics li {
  font-size: 13.5px;
  color: var(--ink-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--sheet);
}
.foot-note a { color: var(--ink); }

/* ------------------------------------------------------------------ close */
.close { padding: var(--section) 0; text-align: center; }
.close-inner { display: grid; justify-items: center; gap: 24px; }
.close-mark { opacity: 0.92; }
.close .display { max-width: 16ch; }

.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; }
.foot-inner { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: center; }
.brand-foot .brand-word { font-size: 16px; }
.foot-note { margin: 0; font-size: 14px; color: var(--ink-2); }
.foot-legal { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12.5px; color: var(--slate); }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 72px; }
.legal .h2 { margin-top: 10px; }
.legal-lede { font-size: 19px; color: var(--ink-2); margin: 0 0 32px; }
.legal h2 {
  font-family: var(--display);
  font-stretch: 108%;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 10px;
}
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--ink); text-decoration-color: var(--amber); text-underline-offset: 3px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 8px 0 16px; }
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}
.legal-table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--slate); }
.legal-contact { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); }
/* A detail only the seller can fill in: impossible to miss until it is. */
mark.fill { background: #ffe9a8; color: var(--ink); padding: 0 4px; border-radius: 3px; }
.nav-links a[aria-current="page"] { border-bottom-color: var(--amber); }
.foot-legal a { color: var(--slate); }

/* ------------------------------------------------------------- reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .reticle, .edges path, .gnode, .tier, .code { transition: none !important; }
  .stage-screen .fade-in { animation: none; }
}

/* ---------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .reads-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; border-top: 0; }
  .steps li { border-top: 1.5px solid var(--ink); }
}
@media (max-width: 960px) {
  .hero-grid, .split, .pricing-head, .faq-grid, .product-head, .limits, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { gap: 12px; }
  .limits ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stage-caption { flex-direction: column; gap: 4px; }
  .reads .wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tiers, .included { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .faq-grid { gap: 20px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .nav-cta .link-quiet, .nav-cta .btn-line { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .meter { padding: 20px 18px 26px; }
  .meter-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .meter-out { white-space: normal; }
  .meter-scale { margin-right: 0; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .stage-tabs button { padding: 8px 11px; font-size: 13px; }
  .code { font-size: 11px; }
  .parse-code { padding: 14px 14px 16px; overflow-x: auto; }
  .parse-file { font-size: 11.5px; }
  .parse-kind { display: none; }
  .foot-inner { grid-template-columns: minmax(0, 1fr); }
}


/* ======================================================================
 * Landing and product design, second pass.
 * The products are presented the way the catalog presents a table: a spec
 * sheet with a header row, one capability per row. Same vocabulary as the app.
 * ==================================================================== */

/* -- hero: the two products as cards you can follow */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  right: -10%;
  top: 4%;
  width: 62%;
  height: 92%;
  background: radial-gradient(closest-side, rgba(217, 143, 43, 0.16), rgba(217, 143, 43, 0) 72%);
  pointer-events: none;
}
.hero-grid { position: relative; }
.layers {
  display: grid;
  gap: 10px;
  margin: -4px 0 24px;
}
.layer {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  gap: 14px;
  align-items: center;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 10px 24px -20px rgba(28, 46, 68, 0.45);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.layer:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -22px rgba(147, 97, 14, 0.55);
}
.layer:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.layer-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--amber-wash);
  color: var(--amber-deep);
}
.layer-body { display: grid; gap: 2px; }
.layer-name {
  font-family: var(--display);
  font-stretch: 108%;
  font-size: 16.5px;
  font-weight: 750;
  color: var(--ink);
}
.layer-text { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.layer-go { color: var(--slate); transition: transform 0.18s ease, color 0.18s ease; }
.layer:hover .layer-go { color: var(--amber); transform: translateX(3px); }

/* -- product header */
.product-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.product-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--amber);
  box-shadow: 0 12px 24px -16px rgba(28, 46, 68, 0.7);
}
.product-mark svg { width: 26px; height: 26px; }
.product-kind {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.product-name { margin: 0; }
.product-brand { color: var(--slate); font-weight: 500; }

/* -- the spec sheet */
.spec {
  margin-top: 30px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 48px -40px rgba(28, 46, 68, 0.45);
}
.section-sheet .spec { background: #fff; }
.spec-head,
.spec-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 28px;
  padding: 0 24px;
}
.spec-head {
  padding-top: 11px;
  padding-bottom: 11px;
  background: var(--film);
  border-bottom: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
}
.spec dl { margin: 0; }
.spec-row {
  position: relative;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.15s ease;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  transform: scaleY(0);
  transition: transform 0.18s ease;
}
.spec-row:hover { background: #fdf8f0; }
.spec-row:hover::before { transform: scaleY(1); }
.spec-row dt {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}
.spec-row dd { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* -- the stage: a segmented control over a window */
.stage { margin-top: clamp(36px, 4.5vw, 56px); position: relative; }
.stage-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 16px -14px rgba(28, 46, 68, 0.5);
}
.stage-tabs button {
  border: 0;
  border-radius: 9px;
  padding: 9px 15px;
}
.stage-tabs button:hover { background: var(--film); border-color: transparent; }
.stage-tabs button[aria-selected="true"],
.stage-tabs button[aria-selected="true"]:hover {
  background: var(--ink);
  color: #fff;
}
.stage-screen {
  border-radius: 14px;
  box-shadow:
    0 50px 90px -50px rgba(28, 46, 68, 0.55),
    0 18px 36px -24px rgba(28, 46, 68, 0.3),
    0 0 0 6px rgba(255, 255, 255, 0.55);
}
.stage::before {
  content: "";
  position: absolute;
  inset: 18% 6% -6% 6%;
  background: radial-gradient(closest-side, rgba(217, 143, 43, 0.16), transparent 75%);
  z-index: -1;
  pointer-events: none;
}

/* -- limits: a quiet note, not a third list */
.limits {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 16px 24px;
  margin-top: 28px;
  padding: 18px 22px;
  border: 1px dashed var(--rule);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}
.limits ul { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* -- the estate strip: cells, not bullets */
.reads-list { gap: 0; border-left: 1px solid var(--rule); }
.reads-list li {
  padding: 10px 16px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule-soft);
}
.reads-list li:nth-last-child(-n + 4) { border-bottom: 0; }
.reads-list li::before { display: none; }

@media (max-width: 900px) {
  .spec-head { display: none; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 18px; }
  .limits { grid-template-columns: minmax(0, 1fr); }
  .reads-list li:nth-last-child(-n + 4) { border-bottom: 1px solid var(--rule-soft); }
  .reads-list li:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 900px) { .hero::before { display: none; } }
@media (max-width: 560px) {
  .layer { grid-template-columns: 36px minmax(0, 1fr); padding: 12px; }
  .layer-icon { width: 36px; height: 36px; }
  .layer-go { display: none; }
  .product-mark { width: 46px; height: 46px; border-radius: 12px; }
  .stage-tabs { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  .layer, .layer-go, .spec-row::before { transition: none; }
}
