/* Tokens. The three overlay colours are the ones the tool itself draws with:
   blue for selection, red for spacing, pink for padding and gap. */
:root {
  --canvas: #e7e8eb;
  --surface: #fbfbfc;
  --ink: #14161a;
  --muted: #555b66;
  --line: #cfd1d6;
  --line-soft: #dcdee2;
  --blue: #0b7fe0;
  --blue-ink: #ffffff;
  --red: #e0401c;
  --pink: #d42a9f;
  --code-bg: #1d1e22;
  --code-ink: #e9eaee;
  --code-muted: #9a9fa9;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --page: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #17181b;
    --surface: #212227;
    --ink: #eeeff2;
    --muted: #a2a7b0;
    --line: #3a3c43;
    --line-soft: #2c2e34;
    --blue: #3da0f5;
    --blue-ink: #06121d;
    --red: #ff6a45;
    --pink: #f163c4;
    --code-bg: #0f1012;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
code, pre, kbd { font-family: var(--mono); }
p code, li code {
  font-size: 0.86em; padding: 0.1em 0.35em; border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--canvas); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

h2 {
  font-size: clamp(30px, 4.2vw, 50px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700;
  text-wrap: balance;
}
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; }
.fine { font-size: 14.5px; color: var(--muted); }

main > section, .top, .foot { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; }
main > section { padding-block: clamp(64px, 9vw, 120px); border-top: 1px solid var(--line); }
main > section.hero { border-top: 0; padding-top: clamp(40px, 6vw, 84px); }

/* ---------- top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px; height: 60px;
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.top::after { content: ""; position: absolute; inset: auto calc(-1 * var(--gutter)) 0; height: 1px; background: var(--line); }
.mark { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.top-nav { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--muted); }
.top-nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 20px; border-radius: 6px;
  background: var(--ink); color: var(--canvas);
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
  border: 0; cursor: pointer;
}
.btn:hover { background: var(--blue); color: var(--blue-ink); }
.btn-small { height: 36px; padding: 0 14px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero-copy { max-width: none; }
.pair { position: relative; }
h1 {
  font-size: clamp(38px, 5.7vw, 72px); line-height: 1; letter-spacing: -0.04em; font-weight: 800;
  text-wrap: balance; width: fit-content; padding: 0.04em 0 0.08em;
}
.ln { display: block; }
.lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--muted); max-width: 62ch; margin-top: 44px; padding: 10px 0; }

/* The headline and the paragraph are drawn the way the tool draws a two-layer
   selection: blue outlines, corner handles, a size badge, the gap in red. */
.layer { position: relative; }
.layer::before {
  content: ""; position: absolute; inset: 0 -1px; border: 1.5px solid var(--blue); pointer-events: none;
}
.hd { position: absolute; width: 9px; height: 9px; background: var(--canvas); border: 1.5px solid var(--blue); pointer-events: none; }
.hd-nw { left: -5px; top: -4px; } .hd-ne { right: -5px; top: -4px; }
.hd-sw { left: -5px; bottom: -4px; } .hd-se { right: -5px; bottom: -4px; }
.dim {
  position: absolute; left: 50%; bottom: -6px; transform: translate(-50%, 100%);
  background: var(--blue); color: var(--blue-ink);
  font: 600 11px/1 var(--sans); letter-spacing: 0; font-variant-numeric: tabular-nums; padding: 3px 5px; border-radius: 2px; white-space: nowrap;
  z-index: 2;
}
.gap { position: absolute; left: 72px; width: 0; pointer-events: none; z-index: 3; }
.gap i { position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: var(--red); }
.gap b {
  position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
  background: var(--red); color: #fff; font: 600 11px/1 var(--sans); font-variant-numeric: tabular-nums; padding: 3px 5px; border-radius: 2px;
}
@media (prefers-color-scheme: dark) { .gap b { color: #1a0803; } }

@media (prefers-reduced-motion: no-preference) {
  .layer-a::before, .layer-a .hd, .dim { animation: appear 0.25s 0.5s both; }
  .layer-b::before { animation: appear 0.25s 1.15s both; }
  .gap { animation: appear 0.25s 1.5s both; }
}
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 44px; align-items: stretch; }
.snip {
  display: flex; align-items: center; gap: 6px; min-width: 0; height: 48px; padding: 0 6px 0 16px;
  background: var(--code-bg); color: var(--code-ink); border-radius: 6px;
}
.hero-actions > * { min-width: 0; max-width: 100%; }
.snip code { flex: 1 1 auto; min-width: 0; font-size: 14.5px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.snip code::-webkit-scrollbar { display: none; }
.copy {
  flex: none; height: 32px; padding: 0 12px; border-radius: 4px; cursor: pointer;
  font: 600 13px/1 var(--sans); color: var(--code-ink);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16);
  min-width: 64px;
}
.copy:hover { background: rgba(255, 255, 255, 0.18); }
.copy.done { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero .fine { margin-top: 14px; }

/* ---------- recorded clips ---------- */
.win {
  background: #2c2c2c; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), 0 30px 60px -30px rgba(10, 14, 22, 0.45);
}
.win-bar { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; background: #1e1e1e; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #4a4b50; }
.win-bar span { margin: 0 auto; padding-right: 39px; font: 400 12px/1 var(--mono); color: #9a9fa9; }
.win video { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 856; background: #2c2c2c; }
.win figcaption { background: var(--canvas); color: var(--muted); font-size: 14.5px; padding: 12px 2px 0; }
.win:has(figcaption) { background: none; box-shadow: none; overflow: visible; border-radius: 0; }
.win:has(figcaption) .win-bar { border-radius: 10px 10px 0 0; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent); }
.win:has(figcaption) video { border-radius: 0 0 10px 10px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 16%, transparent), 0 30px 60px -30px rgba(10, 14, 22, 0.45); }
.win-hero { margin-top: clamp(48px, 6vw, 80px); }

/* ---------- why ---------- */
.why { display: grid; gap: 32px 64px; grid-template-columns: 1fr; }
.why-big { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -0.028em; font-weight: 700; max-width: 22ch; text-wrap: balance; }
.why-cols { display: grid; gap: 20px; color: var(--muted); max-width: 60ch; }
@media (min-width: 900px) { .why { grid-template-columns: 5fr 6fr; align-items: start; } }

/* ---------- how ---------- */
.steps { display: grid; gap: 40px; margin-top: 48px; }
.steps li { display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; align-content: start; }
.n {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--ink); font: 700 14px/1 var(--sans); font-variant-numeric: tabular-nums;
}
.steps p { color: var(--muted); }
.mini { margin-top: 10px; height: 52px; display: flex; align-items: center; padding: 0 14px; border-radius: 6px; }
pre.mini { background: var(--code-bg); color: var(--code-ink); font-size: 13.5px; overflow-x: auto; }
.mini-row { gap: 8px; border: 1px dashed var(--line); }
.chip { font: 600 12px/1 var(--sans); padding: 5px 7px; border-radius: 3px; color: #fff; font-variant-numeric: tabular-nums; }
.chip-blue { background: var(--blue); color: var(--blue-ink); }
.chip-red { background: var(--red); }
.chip-pink { background: var(--pink); }
.chip-btn { background: #0d99ff; padding: 8px 10px; border-radius: 5px; display: inline-flex; gap: 7px; align-items: center; }
.chip-btn em { font-style: normal; background: #fff; color: #0d99ff; border-radius: 9px; padding: 2px 6px; font-size: 11px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }

/* ---------- features ---------- */
.features > h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.feat { display: grid; gap: 28px; }
.feat + .feat { margin-top: clamp(64px, 8vw, 112px); }
.feat-copy { max-width: 56ch; }
.feat-copy h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.022em; line-height: 1.12; margin-top: 16px; text-wrap: balance; }
.feat-copy p { margin-top: 14px; color: var(--muted); }
.feat-copy ul { margin-top: 18px; display: grid; gap: 8px; font-size: 15.5px; }
.feat-copy li { padding-left: 18px; position: relative; }
.feat-copy li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 8px; height: 1.5px; background: var(--muted); }
.key { display: block; width: 28px; height: 6px; }
.key-blue { background: var(--blue); } .key-red { background: var(--red); } .key-pink { background: var(--pink); }
@media (min-width: 980px) {
  .feat { grid-template-columns: 4fr 8fr; gap: 56px; align-items: start; }
  .feat-copy { position: sticky; top: 96px; }
}

/* ---------- hand-off ---------- */
.handoff-head { display: grid; gap: 18px; max-width: 64ch; }
.handoff-head p { color: var(--muted); }
.handoff-grid { display: grid; gap: 28px; margin-top: 44px; align-items: start; }
.handoff-grid > * { min-width: 0; }
.clip { background: var(--code-bg); color: var(--code-ink); border-radius: 10px; overflow: hidden; }
.clip-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 13.5px; color: var(--code-muted); }
.clip pre { padding: 16px; font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 440px; overflow-y: auto; }
.points { display: grid; gap: 24px; margin-top: 48px; font-size: 16px; color: var(--muted); }
.points strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
@media (min-width: 980px) {
  .handoff-grid { grid-template-columns: 1fr 1fr; }
  .handoff-grid .win { position: sticky; top: 96px; }
  .clip pre { max-height: none; }
  .points { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

/* ---------- install ---------- */
.install-lead { margin-top: 18px; color: var(--muted); max-width: 60ch; }
.isteps { margin-top: 48px; display: grid; gap: 0; max-width: 860px; }
.isteps > li { padding: 28px 0 32px 46px; border-top: 1px solid var(--line); position: relative; }
.isteps h3 { display: flex; align-items: center; }
.isteps h3 .n { position: absolute; left: 0; }
.isteps > li > p, .panel p { color: var(--muted); margin-top: 14px; max-width: 64ch; }
.irow { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.tabs button {
  height: 38px; padding: 0 14px; border-radius: 6px; cursor: pointer;
  font: 600 14.5px/1 var(--sans); color: var(--muted);
  background: none; border: 1px solid var(--line);
}
.tabs button:hover { color: var(--ink); border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.code { position: relative; margin-top: 14px; background: var(--code-bg); color: var(--code-ink); border-radius: 8px; }
.code pre { padding: 18px 92px 18px 18px; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.code .copy { position: absolute; top: 10px; right: 10px; }
kbd {
  display: inline-block; min-width: 24px; padding: 3px 6px; text-align: center;
  font: 500 13px/1.2 var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
}

/* ---------- shortcuts ---------- */
.shortcuts { display: grid; gap: 40px; }
.sc-head { display: grid; gap: 16px; align-content: start; }
.sc-head p { color: var(--muted); max-width: 40ch; }
.keys { display: grid; }
.keys > div { display: grid; grid-template-columns: minmax(130px, 190px) 1fr; gap: 16px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-soft); }
.keys > div:last-child { border-bottom: 1px solid var(--line-soft); }
.keys dt { white-space: nowrap; font-size: 14px; color: var(--muted); }
.keys dd { font-size: 16px; }
@media (min-width: 900px) { .shortcuts { grid-template-columns: 4fr 7fr; gap: 64px; } }

/* ---------- limits and questions ---------- */
.limits-lead { margin-top: 16px; color: var(--muted); }
.lim { margin-top: 36px; display: grid; gap: 0; }
.lim li { padding: 16px 0; border-top: 1px solid var(--line-soft); color: var(--muted); }
.lim strong { color: var(--ink); font-weight: 600; }
@media (min-width: 860px) { .lim { grid-template-columns: 1fr 1fr; column-gap: 56px; } }
.faq-h { margin-top: clamp(64px, 8vw, 104px); }
.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 32px 18px 0; font-weight: 600; font-size: 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-weight: 400; font-size: 24px; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: 62ch; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 56px; display: flex; flex-wrap: wrap; gap: 6px 32px; justify-content: space-between; font-size: 14px; color: var(--muted); }

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top-nav { display: none; }
  .top .btn-small { margin-left: auto; }
  .gap { left: 40px; }
  .ln { display: inline; }
  .hero-actions { flex-direction: column; }
  .snip { justify-content: space-between; }
  .snip code { font-size: 13px; }
  .keys > div { grid-template-columns: 1fr; gap: 6px; }
  .isteps > li { padding-left: 0; }
  .isteps h3 .n { position: static; margin-right: 12px; }
  .code pre { padding: 54px 16px 16px; }
}

/* ---------- hero stage: the recording inside a browser frame ---------- */
.stage { margin-top: clamp(40px, 5vw, 64px); }
.stage-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 4px 6px clamp(8px, 9vw, 150px); }
.scribble { font: 700 clamp(21px, 2.3vw, 29px)/1.05 "Caveat", "Bradley Hand", cursive; display: flex; align-items: flex-end; gap: 6px; }
.scribble span { display: block; transform: rotate(-2.5deg); }
.scribble svg { flex: none; }
.scribble-browser { color: var(--blue); max-width: 460px; }
.scribble-browser span { padding-bottom: 26px; max-width: 15em; }
.scribble-browser svg { margin-bottom: -10px; }
.skin-pick { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); white-space: nowrap; margin-bottom: 10px; }
.dd { position: relative; }
.dd-btn, .dd-list button {
  display: flex; align-items: center; gap: 9px; font: 600 15px/1 var(--sans); color: var(--ink); cursor: pointer; text-align: left;
}
.dd-btn {
  height: 40px; padding: 0 34px 0 10px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23808590' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5L6 6l4.5-4.5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.dd-btn:hover { border-color: var(--ink); }
.dd-list {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 172px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 14px 34px -12px rgba(10, 14, 22, 0.4);
}
.dd-list[hidden] { display: none; }
.dd-list button { width: 100%; height: 38px; padding: 0 10px; border: 0; background: none; border-radius: 5px; }
.dd-list button:hover, .dd-list button:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dd-list button[aria-selected="true"]::after { content: ""; margin-left: auto; width: 6px; height: 11px; border: solid var(--blue); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.dd img { flex: none; display: block; }
.scribble-logo { flex: none; align-self: flex-start; margin-right: 6px; transform: rotate(-6deg); filter: drop-shadow(0 3px 5px rgba(10, 14, 22, 0.25)); }

.browser {
  --bz-strip: #dfe2e7; --bz-bar: #ffffff; --bz-field: #eff1f3; --bz-ink: #3d4148; --bz-dim: #7a7f88; --bz-tab: #ffffff; --bz-edge: rgba(20, 22, 26, 0.16);
  border-radius: 12px; position: relative;
}
@media (prefers-color-scheme: dark) {
  .browser { --bz-strip: #1e1f22; --bz-bar: #35363a; --bz-field: #1f2023; --bz-ink: #e6e8eb; --bz-dim: #9ba0a8; --bz-tab: #35363a; --bz-edge: rgba(255, 255, 255, 0.14); }
}
.bz { display: none; color: var(--bz-ink); font: 500 13px/1 var(--sans); border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 0 0 1px var(--bz-edge); }
.browser[data-skin="chrome"] .bz-chrome, .browser[data-skin="safari"] .bz-safari, .browser[data-skin="firefox"] .bz-firefox { display: block; }
.bz .ic { flex: none; color: var(--bz-dim); }
.lights { display: inline-flex; gap: 7px; flex: none; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.bz-tabs { display: flex; align-items: flex-end; gap: 10px; height: 40px; padding: 0 12px; background: var(--bz-strip); }
.bz-tabs .lights { align-self: center; margin-right: 6px; }
.tab { display: flex; align-items: center; gap: 8px; height: 32px; width: min(220px, 46%); padding: 0 10px; background: var(--bz-tab); border-radius: 9px 9px 0 0; }
.tab b, .arc-tab b { font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav { flex: none; width: 14px; height: 14px; border-radius: 4px; background: #2f6b4f; }
.tab-new { align-self: center; display: flex; }
.bz-bar { display: flex; align-items: center; gap: 14px; height: 44px; padding: 0 14px; background: var(--bz-bar); }
.omni { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 15px; background: var(--bz-field); }
.omni b { font: 400 13px/1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #7aa7ff, #b48cf2); }

/* Safari: one compact row, address centred */
.browser[data-skin="safari"] { --bz-bar: #f1f1f3; --bz-field: #e2e2e6; }
.bz-safari .bz-bar { height: 50px; gap: 16px; }
.bz-safari .omni { flex: 0 1 46%; margin: 0 auto; border-radius: 8px; justify-content: center; position: relative; }
.bz-safari .omni .ic { position: absolute; right: 9px; }
@media (prefers-color-scheme: dark) { .browser[data-skin="safari"] { --bz-bar: #39393c; --bz-field: #232325; } }

/* Firefox: floating tab, squarer address field */
.browser[data-skin="firefox"] { --bz-strip: #eeeef3; --bz-bar: #f9f9fb; --bz-field: #eeeef3; }
.bz-firefox .bz-tabs { align-items: center; height: 44px; }
.bz-firefox .tab { border-radius: 6px; height: 34px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.bz-firefox .omni { border-radius: 6px; height: 32px; }
.bz-firefox .fav { border-radius: 50%; }
@media (prefers-color-scheme: dark) { .browser[data-skin="firefox"] { --bz-strip: #1c1b22; --bz-bar: #2b2a33; --bz-field: #1c1b22; --bz-tab: #42414d; } }

/* Arc: coloured frame with the address and tabs in a sidebar */
.browser[data-skin="arc"] {
  display: grid; grid-template-columns: 172px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 0;
  padding: 8px; background: linear-gradient(160deg, #cdbcf7, #f2b6cf); box-shadow: 0 0 0 1px var(--bz-edge), 0 30px 60px -30px rgba(10, 14, 22, 0.45);
  --bz-ink: #2a2140; --bz-dim: #5d5378; --bz-field: rgba(255, 255, 255, 0.5);
}
@media (prefers-color-scheme: dark) { .browser[data-skin="arc"] { background: linear-gradient(160deg, #3a2e66, #5b2c47); --bz-ink: #efeaff; --bz-dim: #b9aedb; --bz-field: rgba(255, 255, 255, 0.12); } }
.browser[data-skin="arc"] .bz-arc { display: flex; flex-direction: column; gap: 8px; padding: 6px 12px 6px 4px; box-shadow: none; border-radius: 0; }
.arc-top { display: flex; align-items: center; gap: 10px; height: 28px; margin-bottom: 4px; }
.bz-arc .omni { flex: none; border-radius: 8px; height: 32px; }
.arc-tab { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; border-radius: 8px; }
.arc-tab.on { background: rgba(255, 255, 255, 0.6); }
@media (prefers-color-scheme: dark) { .arc-tab.on { background: rgba(255, 255, 255, 0.16); } }
.browser[data-skin="arc"] .viewport video { border-radius: 8px; box-shadow: none; }
.browser[data-skin="arc"] figcaption { grid-column: 1 / -1; max-width: none; padding-top: 20px; margin: 0 -8px -8px; padding-inline: 10px; }

.viewport { position: relative; }
.viewport video {
  display: block; width: 100%; height: auto; aspect-ratio: 1440 / 856; background: #faf8f4; border-radius: 0 0 12px 12px;
  box-shadow: 0 0 0 1px var(--bz-edge), 0 30px 60px -30px rgba(10, 14, 22, 0.45);
}
.browser figcaption { background: var(--canvas); color: var(--muted); font-size: 14.5px; padding: 14px 2px 0; max-width: 90ch; }
.scribble-pill { position: absolute; right: 2.5%; bottom: 9%; color: #b51a86; text-align: right; max-width: 11.5em; opacity: 0; transition: opacity 0.25s; pointer-events: none; }
.scribble-pill.on { opacity: 1; }
.scribble-pill span { padding-bottom: 30px; transform: rotate(-3deg); }

@media (max-width: 760px) {
  .stage-top { flex-direction: column-reverse; align-items: flex-start; padding-left: 0; gap: 14px; }
  .dd-list { right: auto; left: 0; }
  .scribble-logo { width: 36px; height: 36px; }
  .skin-pick { margin-bottom: 0; }
  .scribble-browser { padding-left: 6%; }
  .scribble-browser span { padding-bottom: 20px; }
  .bz-tabs { height: 32px; gap: 6px; } .tab { height: 26px; } .bz-firefox .bz-tabs { height: 36px; } .bz-firefox .tab { height: 26px; }
  .bz-bar, .bz-safari .bz-bar { height: 36px; gap: 9px; padding: 0 10px; }
  .omni, .bz-firefox .omni { height: 26px; }
  .lights { gap: 5px; } .lights i { width: 8px; height: 8px; }
  .bz-safari .ic:not(.omni .ic), .avatar { display: none; }
  .bz-safari .omni { flex: 1; }
  .browser[data-skin="arc"] { grid-template-columns: minmax(0, 1fr); padding: 6px; }
  .browser[data-skin="arc"] .bz-arc { flex-direction: row; align-items: center; padding: 0 2px 6px; }
  .arc-top { margin: 0; } .arc-top .ic, .arc-tab { display: none; }
  .bz-arc .omni { flex: 1; height: 26px; }
  .scribble-pill { font-size: 15px; bottom: 12%; }
  .scribble-pill svg { width: 30px; height: 27px; }
  .scribble-pill span { padding-bottom: 14px; }
}

/* ---------- more features: a grid of smaller items ---------- */
.more-feats { display: grid; gap: 36px 48px; margin-top: clamp(64px, 8vw, 112px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-soft); }
.more-feats h3 { font-size: 19px; }
.more-feats p { margin-top: 8px; color: var(--muted); font-size: 16px; }
@media (min-width: 720px) { .more-feats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .more-feats { grid-template-columns: repeat(3, 1fr); } }
.key-ink { background: var(--ink); }

/* ---------- blog teaser on the home page ---------- */
.reads-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; }
.reads-head a { font-weight: 600; }
.posts { display: grid; gap: 0; margin-top: 36px; }
.posts li { padding: 24px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.posts li:last-child { border-bottom: 1px solid var(--line); }
.posts a { text-decoration: none; }
.posts a:hover h2, .posts a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.posts h2, .posts h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.18; letter-spacing: -0.02em; font-weight: 700; max-width: 34ch; text-wrap: balance; }
.posts p { color: var(--muted); max-width: 70ch; }
.byline { font-size: 14.5px; color: var(--muted); }
.byline a { color: var(--ink); }

/* ---------- blog pages ---------- */
.top-nav a[aria-current] { color: var(--ink); }
main > .blog-index, main > .post { width: min(var(--page), 100% - 2 * var(--gutter)); margin-inline: auto; padding-block: clamp(40px, 6vw, 84px) clamp(64px, 9vw, 120px); }
.blog-index h1, .post h1 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.035em; max-width: 20ch; }
.blog-lead { margin-top: 20px; font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 56ch; }
.post { max-width: 760px; }
.crumbs { font-size: 14.5px; font-weight: 600; margin-bottom: 20px; }
.post-head .byline { margin-top: 20px; }
.prose { margin-top: clamp(32px, 4vw, 48px); font-size: 18px; line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.022em; line-height: 1.15; margin-top: 1.9em; }
.prose .lede { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.6em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--muted); }
.prose pre { background: var(--code-bg); color: var(--code-ink); border-radius: 8px; padding: 18px; font-size: 13.5px; line-height: 1.6; overflow-x: auto; }
.prose a, .foot a, .byline a, .crumbs a, .reads-head a, .more a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.post-cta { margin-top: clamp(48px, 6vw, 72px); padding: clamp(24px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: grid; gap: 14px; justify-items: start; }
.post-cta h2, .more h2 { font-size: 24px; letter-spacing: -0.02em; }
.post-cta p { color: var(--muted); }
.more { margin-top: clamp(48px, 6vw, 72px); }
.more ul { margin-top: 16px; display: grid; gap: 10px; font-weight: 600; }
@media (max-width: 760px) { .prose { font-size: 17px; } }
