/* Newskite site. Carbon ground under the weave, glass panels lit from above, machined 4 px corners; the ember is
   the one signal (the mark, focus, the one filled button), violet (desktop family) only as the index tick. */
@font-face { font-family: "Instrument Sans"; font-weight: 400; font-display: swap; src: url(fonts/InstrumentSans-Regular.woff2) format("woff2"); }
@font-face { font-family: "Instrument Sans"; font-weight: 600 700; font-display: swap; src: url(fonts/InstrumentSans-SemiBold.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 600; font-display: swap; src: url(fonts/JetBrainsMono-SemiBold.woff2) format("woff2"); }

:root {
  color-scheme: dark;
  --ground: var(--innerpulse-ground);
  --s1: var(--innerpulse-surface-1);
  --s2: var(--innerpulse-surface-2);
  --s3: var(--innerpulse-surface-3);
  --text: var(--innerpulse-text);
  --text-2: var(--innerpulse-text-2);
  --text-3: var(--innerpulse-text-3);
  --line: var(--innerpulse-line);
  --line-2: var(--innerpulse-line-2);
  --tick: var(--innerpulse-violet);
  --ease: var(--innerpulse-ease);
  --lip: rgba(227, 230, 233, .13);
  --shade: rgba(0, 0, 0, .5);
  --glass: linear-gradient(180deg, rgba(227, 230, 233, .055), rgba(227, 230, 233, .012) 34%, rgba(0, 0, 0, .1));
  --edge: inset 0 1px 0 var(--lip), inset 0 -1px 0 var(--shade);
  --drop: 0 18px 48px -14px rgba(0, 0, 0, .7);
  --weave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cdefs%3E%3ClinearGradient id='h' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230a0c0f'/%3E%3Cstop offset='.45' stop-color='%23171a1f'/%3E%3Cstop offset='1' stop-color='%230a0c0f'/%3E%3C/linearGradient%3E%3ClinearGradient id='v' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%230a0c0f'/%3E%3Cstop offset='.45' stop-color='%23171a1f'/%3E%3Cstop offset='1' stop-color='%230a0c0f'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='8' height='8' fill='url(%23h)'/%3E%3Crect x='8' y='8' width='8' height='8' fill='url(%23h)'/%3E%3Crect x='8' width='8' height='8' fill='url(%23v)'/%3E%3Crect y='8' width='8' height='8' fill='url(%23v)'/%3E%3C/svg%3E");
  --ip-page: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.6 var(--innerpulse-sans);
  color: var(--text-2);
  background:
    radial-gradient(90vmax 50vmax at 50% -20%, rgba(227, 230, 233, .05), transparent 64%),
    var(--weave) 0 0 / 16px 16px,
    var(--ground);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--innerpulse-pulse); outline-offset: 3px; border-radius: 2px; }
code { font: 400 .875em var(--innerpulse-mono); color: var(--text); background: var(--s2); padding: .12em .4em; border-radius: 3px; overflow-wrap: anywhere; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 99; padding: 10px 14px; background: var(--innerpulse-action); color: #fff; border-radius: 4px; }
.skip:focus { top: 10px; }
.wrap { width: min(var(--ip-page), 100% - 32px); margin-inline: auto; }

/* type */
h1 .eyebrow { display: block; }
.eyebrow { margin: 0 0 14px; font: 600 11px/1.4 var(--innerpulse-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--tick); }
h1, h2, h3 { margin: 0; color: var(--text); font-family: var(--innerpulse-headline); font-weight: 600; letter-spacing: -.03em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; }
h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; max-width: 22ch; }
h3 { font-size: 18px; letter-spacing: -.015em; }
p { margin: 0 0 1em; max-width: 60ch; }
h1 + .lede { margin-top: 22px; }
.lede { font-size: clamp(17px, 1.5vw, 19.5px); line-height: 1.55; color: var(--text-2); max-width: 54ch; }
.fine { font: 400 12.5px/1.6 var(--innerpulse-mono); color: var(--text-3); max-width: none; }
.fine a { color: var(--text-2); }
/* the loud line: brushed steel */
.steel {
  background: linear-gradient(180deg, #fbfcfd 6%, #cfd3d8 40%, #8b9097 56%, #b9bdc3 62%, #e3e6e9 84%, #9da2a9);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* buttons: the one filled action is ember; the rest are glass keys */
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 18px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  font: 600 13px/1 var(--innerpulse-sans); letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--text); background: var(--glass), var(--s2); border: 1px solid var(--line-2); border-radius: 4px;
  box-shadow: var(--edge); transition: background-color var(--innerpulse-dur-1) var(--ease), border-color var(--innerpulse-dur-1) var(--ease), transform var(--innerpulse-dur-1) var(--ease);
}
.btn:hover { border-color: rgba(227, 230, 233, .32); background-color: var(--s3); }
.btn:active { transform: translateY(1px); }
.btn-fill { color: #fff; border-color: transparent; background: linear-gradient(180deg, #e0392b, #d12c1e 50%, #b8241a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -1px 0 rgba(0, 0, 0, .3), 0 8px 24px -10px rgba(209, 44, 30, .7); }
.btn-fill:hover { background: linear-gradient(180deg, #d63325, #bd2417 50%, #a61f14); border-color: transparent; }

/* hero */
.hero { padding: clamp(40px, 7vw, 92px) 0 clamp(48px, 7vw, 96px); }
/* the statement and the action side by side, then the app itself at a size its text can be read */
.hero-top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: start; margin-bottom: clamp(36px, 5vw, 64px); }
.hero-top .hero-copy { padding-top: 30px; }
.hero-copy .lede { margin: 0; }
.hero-copy .cta { margin: 24px 0 16px; }
.hero-copy .fine { margin: 0; }

/* a screenshot in its window: glass lit from above, with the index tick */
.window { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 6px; background: var(--s1); box-shadow: var(--edge), var(--drop); }
.window::before { content: ""; position: absolute; left: 12px; top: -1px; width: 16px; height: 2px; background: var(--tick); }
.window img { width: 100%; border-radius: 5px; }
.window-tall { width: min(400px, 100%); justify-self: center; }
.window figcaption { position: absolute; left: 0; right: 0; top: calc(100% + 10px); font: 400 11.5px/1.5 var(--innerpulse-mono); color: var(--text-3); }

/* bands */
.band { padding: clamp(64px, 9vw, 124px) 0; border-top: 1px solid var(--line); }
.band h2 { margin-bottom: clamp(28px, 4vw, 48px); }

/* the four steps: one rail, numbered in mono */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 4px; background: var(--glass), var(--s1); box-shadow: var(--edge); }
.steps li { position: relative; padding: 26px 24px 22px; }
.steps li + li { border-left: 1px solid var(--line); }
.step-n { display: block; margin-bottom: 18px; font: 600 11px/1 var(--innerpulse-mono); letter-spacing: .14em; color: var(--text-3); }
.step-n::before { content: "0"; }
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.55; }
/* the article strip under the steps: cells fill once, left to right, as it comes into view */
.cells { display: grid; grid-template-columns: repeat(var(--n, 96), minmax(0, 1fr)); gap: 2px; margin-top: 14px; }
.cells i { height: 6px; border-radius: 1px; background: var(--s3); }
.cells i.on { background: var(--tick); }
.cells i.gap { background: transparent; box-shadow: inset 0 0 0 1px var(--innerpulse-err); }
.cells.run i.on, .cells.run i.gap { animation: cell-in .5s var(--ease) both; animation-delay: calc(var(--k) * 14ms); }
@keyframes cell-in { from { background: var(--s3); box-shadow: none; opacity: .5; } }

.legend { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 10px 0 0; max-width: none; font: 400 11.5px/1.6 var(--innerpulse-mono); color: var(--text-3); }
.legend .k { display: inline-block; width: 10px; height: 6px; margin-right: 6px; border-radius: 1px; background: var(--s3); vertical-align: 1px; }
.legend .k.on { background: var(--tick); }
.legend .k.gap { background: transparent; box-shadow: inset 0 0 0 1px var(--innerpulse-err); }

/* the masthead's way to the downloads: a key, not a second filled button */
.ip-masthead-bar nav a.nav-key { padding: 7px 12px; color: var(--text); border: 1px solid var(--line-2); border-radius: 4px; background: var(--glass), var(--s2); box-shadow: var(--edge); font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.ip-masthead-bar nav a.nav-key:hover { border-color: rgba(227, 230, 233, .34); }

/* split: picture and prose */
.split-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-grid p:not(.eyebrow) { font-size: 17px; }
.split-grid h2 { margin-bottom: 20px; }

/* facts: a two-column list with hairlines, not cards */
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 5vw, 72px); }
.facts > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line-2); }
.facts dt { font: 600 16px/1.4 var(--innerpulse-sans); color: var(--text); letter-spacing: -.01em; }
.facts dd { margin: 0; font-size: 15.5px; line-height: 1.55; }

/* what you bring */
.need-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.need-grid h2 { margin-bottom: 20px; }
.note { padding: 12px 14px; border-left: 2px solid var(--innerpulse-warn); background: var(--s1); font-size: 14.5px; border-radius: 0 4px 4px 0; }
.start { margin: 0; padding: 0; list-style: none; counter-reset: s; border: 1px solid var(--line-2); border-radius: 4px; background: var(--glass), var(--s1); box-shadow: var(--edge); }
.start li { counter-increment: s; position: relative; padding: 20px 22px 20px 64px; font-size: 16px; line-height: 1.55; }
.start li + li { border-top: 1px solid var(--line); }
.start li::before { content: "0" counter(s); position: absolute; left: 22px; top: 23px; font: 600 11px/1 var(--innerpulse-mono); letter-spacing: .14em; color: var(--tick); }
.start b { color: var(--text); font-weight: 600; }
.start i { font-style: normal; color: var(--text); }

/* questions: disclosures between hairlines, no script */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-grid h2 { margin-bottom: 0; }
.faq details { border-top: 1px solid var(--line-2); }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 18px/1 var(--innerpulse-mono); color: var(--text-3); }
.faq details[open] summary::after { content: "\2212"; color: var(--text); }
.faq summary h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.faq summary:hover h3 { color: #fff; }
.faq details p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.6; max-width: 64ch; }

/* the closing: downloads running into the footer, with a graduated scale along its top edge */
.closing { position: relative; padding: clamp(64px, 9vw, 120px) 0 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .1) 240px, transparent); border-top: 1px solid var(--line-2); }
.scale { position: absolute; left: 0; right: 0; top: 0; height: 9px; background:
  repeating-linear-gradient(90deg, rgba(227, 230, 233, .3) 0 1px, transparent 1px 64px) 0 0 / 100% 9px no-repeat,
  repeating-linear-gradient(90deg, var(--line-2) 0 1px, transparent 1px 8px) 0 0 / 100% 5px no-repeat; }
.closing h2 { margin-bottom: 14px; max-width: none; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 32px 0 22px; }
.panel { position: relative; padding: 22px 22px 18px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--glass), var(--s1); box-shadow: var(--edge), var(--drop); }
.panel.is-yours::before { content: ""; position: absolute; left: 12px; top: -1px; width: 16px; height: 2px; background: var(--innerpulse-pulse); }
.panel.is-yours::after { content: "your system"; position: absolute; right: 22px; top: 29px; font: 600 10.5px/1 var(--innerpulse-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--innerpulse-pulse); }
.panel h3 { font-size: 22px; margin-bottom: 14px; }
.panel h3 small { display: block; margin-top: 6px; font: 400 12px/1.4 var(--innerpulse-mono); letter-spacing: 0; color: var(--text-3); }
.files { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; padding: 12px 14px; text-decoration: none; border: 1px solid var(--line-2); border-radius: 4px; background: var(--s2); box-shadow: var(--edge); transition: border-color var(--innerpulse-dur-1) var(--ease), background-color var(--innerpulse-dur-1) var(--ease); }
.file:hover { border-color: rgba(227, 230, 233, .34); background: var(--s3); }
.file b { font: 600 15px/1.3 var(--innerpulse-sans); color: var(--text); }
.file .fname { grid-column: 1; font: 400 11.5px/1.4 var(--innerpulse-mono); color: var(--text-3); overflow-wrap: anywhere; }
.file .size { grid-column: 2; grid-row: 1 / span 2; font: 400 12.5px/1 var(--innerpulse-mono); color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.file .size::after { content: "↓"; margin-left: 10px; color: var(--text); }
.hint { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-3); max-width: none; }
.dl-foot { margin-bottom: 6px; }
/* a row of links, each a full tap target */
.links { display: flex; flex-wrap: wrap; gap: 0 22px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; }
.closing { padding-bottom: clamp(48px, 7vw, 88px); }
.foot { background: rgba(0, 0, 0, .1); font-size: 13px; color: var(--text-3); }
.foot .wrap { padding: 22px 0 34px; border-top: 1px solid var(--line); }
.foot p { max-width: 78ch; margin-bottom: .6em; }
.foot a { color: var(--text-2); }
.ip-credit { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 400 12px/1 var(--innerpulse-mono); color: var(--text-3); text-decoration: none; }
.ip-credit:hover { color: var(--text); }

/* reveal: rises once into place */
/* only what site.js found below the fold is armed; anything on screen at load is never hidden */
.reveal-pending { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-pending.in { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-top, .split-grid, .need-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-top .hero-copy { padding-top: 0; }
  .split-grid .window { order: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .window figcaption { position: static; padding: 8px 12px 10px; }
}
@media (max-width: 640px) {
  .steps, .dl-grid { grid-template-columns: minmax(0, 1fr); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--line); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .cells { --n: 48; }
  .btn { flex: 1 1 auto; justify-content: center; }
  .ip-masthead-bar nav a:first-child { display: none; }
  .foot a { display: inline-flex; align-items: center; min-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-pending { opacity: 1; transform: none; transition: none; }
  .cells.run i { animation: none; }
  .btn { transition: none; }
}
@media (max-width: 640px) { .ip-masthead-bar nav { font-size: 14px; } }
/* phones: the masthead keeps the one way to the downloads; the hero picture shows the queue itself, larger,
   instead of the whole window shrunk to a thumbnail */
@media (max-width: 640px) {
  .hero .window img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 30% 0; }
}
@media (max-width: 480px) {
  .ip-masthead-bar nav a:not(.nav-key) { display: none; }
}

/* inner pages: a head, then prose with tables and commands between hairlines */
.doc-head { padding: clamp(36px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }
.doc-head h1 { font-size: clamp(34px, 4.6vw, 56px); }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font: 400 12px/1.4 var(--innerpulse-mono); color: var(--text-3); }
.crumbs a { color: var(--text-2); }
.prose { padding-bottom: clamp(56px, 8vw, 104px); }
.prose > * { max-width: 74ch; }
.prose h2 { margin: 56px 0 16px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: clamp(22px, 2.4vw, 28px); max-width: none; scroll-margin-top: 80px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 16.5px; line-height: 1.65; }
.prose ul { margin: 0 0 1em; padding-left: 20px; }
.prose li { margin-bottom: 6px; }
.prose b { color: var(--text); font-weight: 600; }
.prose pre { margin: 0 0 1.2em; padding: 14px 16px; overflow-x: auto; background: var(--s1); border: 1px solid var(--line-2); border-radius: 4px; box-shadow: inset 0 1px 0 var(--shade); }
.prose pre code { padding: 0; background: none; font-size: 13.5px; line-height: 1.6; overflow-wrap: normal; white-space: pre; }
.prose table, .table-scroll { max-width: none; }
.table-scroll { overflow-x: auto; }
.prose table { width: 100%; margin: 0 0 1.4em; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 16px 11px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { font: 600 11px/1.4 var(--innerpulse-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); border-bottom-color: var(--line-2); }
.prose tbody th { font-weight: 600; color: var(--text); white-space: nowrap; }
.prose td:first-child { color: var(--text); }
.prose .facts-wide { grid-template-columns: minmax(0, 1fr); max-width: 86ch; margin-bottom: 1em; }
.prose .rel h2 time { margin-left: 10px; font: 400 13px/1 var(--innerpulse-mono); letter-spacing: 0; color: var(--text-3); }
.doc-closing h2 { margin-bottom: 12px; }
.doc-closing .cta { margin-bottom: 0; }
/* the footer's way around the site */
.pages { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 10px; }
.pages a { display: inline-flex; align-items: center; min-height: 36px; color: var(--text-2); text-decoration: none; }
.pages a:hover, .pages a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) {
  .prose table { font-size: 14px; }
  .prose tbody th { white-space: normal; }
}
.table-scroll table { min-width: 560px; }
