/* Vidlark website. Bright fields that own whole regions, ink type on colour, the app's own
   dark screens as the product proof, and one authored motion: a take being recorded. */

:root {
  --ink: #0e1f16;
  --ink-soft: #2c4036;
  --paper: #ffffff;
  --mist: #f0f7f2;
  --line: rgba(14, 31, 22, 0.12);
  --green: #1fd17c;
  --green-deep: #0a7340;
  --sun: #ffd43d;
  --sky: #5d9cff;
  --pink: #ff74b0;
  --lime: #d6f64e;
  --rec: #f04e3e;
  --night: #0e1110;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(14, 31, 22, 0.45), 0 4px 12px -4px rgba(14, 31, 22, 0.18);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scrollbar-color: var(--green-deep) var(--mist); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--lime); color: var(--ink); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 12px; border: 3px solid var(--mist); }

img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.foot :focus-visible, .band.ink :focus-visible, .code :focus-visible { outline-color: var(--lime); }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
  font-variation-settings: "opsz" 96, "wdth" 88;
}
h1 { font-size: clamp(2.7rem, 6.4vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
h3 { font-size: 1.32rem; letter-spacing: -0.02em; line-height: 1.15; font-variation-settings: "opsz" 24, "wdth" 92; }
p { margin: 0; text-wrap: pretty; }

code, .mono { font-family: var(--mono); font-size: 0.86em; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Navigation ---------- */

.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav.on-green { background: color-mix(in srgb, var(--green) 90%, transparent); border-bottom-color: rgba(14, 31, 22, 0.14); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { background: rgba(14, 31, 22, 0.08); }
.nav-links a[aria-current] { background: var(--ink); color: var(--paper); }
.free-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.01em;
  padding: 5px 11px; border-radius: 999px; border: 1.5px solid var(--ink);
}
.nav .btn { padding: 10px 16px; font-size: 0.95rem; }
.nav-toggle { display: none; }

@media (max-width: 760px) {
  .nav .wrap { gap: 12px; }
  .nav-links { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 22px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; }
  .nav-links a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-links a[aria-current] { background: none; color: var(--green-deep); }
  .nav.open .nav-links { display: flex; }
  .nav-links .btn { margin-top: 14px; justify-content: center; border-bottom: 1.5px solid var(--ink); }
  .nav-toggle { display: inline-flex; margin-left: auto; background: none; border: 1.5px solid var(--ink); border-radius: 12px; width: 44px; height: 40px;
    align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
  .nav .free-pill { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em;
  padding: 15px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 22px -12px rgba(14, 31, 22, 0.7);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px rgba(14, 31, 22, 0.75); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: none; }
.btn.ghost:hover { background: rgba(14, 31, 22, 0.08); }

/* ---------- Hero ---------- */

.hero { background: var(--green); position: relative; overflow: hidden; overflow-x: clip; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.18fr; gap: 56px; align-items: center; padding-block: 72px 96px; }
.hero h1 { max-width: 11ch; }
.hero .lead { font-size: 1.22rem; line-height: 1.5; margin-top: 24px; max-width: 34ch; color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 0.92rem; padding: 6px 12px 6px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); }
.facts svg { width: 16px; height: 16px; color: var(--green-deep); }
.needs { margin-top: 18px; font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; padding-block: 48px 72px; }
}

/* The take: the one authored motion. A screen being recorded, Me and Screen, then the files. */

.take { position: relative; }
.take-screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden;
  background: #f7f5ef; border: 10px solid var(--night); box-shadow: 0 40px 80px -30px rgba(14, 31, 22, 0.75);
}
.take-screen::after { /* the bezel's camera dot */
  content: ""; position: absolute; top: -7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #2a302d;
}
.slide { position: absolute; inset: 0; padding: 7% 8%; display: grid; grid-template-rows: auto auto 1fr; gap: 6%; }
.slide-title { font-weight: 800; font-size: clamp(1rem, 2.3vw, 1.7rem); letter-spacing: -0.03em; line-height: 1.05; max-width: 70%; }
.slide-sub { font-size: clamp(0.62rem, 1.1vw, 0.84rem); color: #5a6560; font-weight: 600; }
.bars { display: flex; align-items: end; gap: 5%; height: 100%; padding-right: 32%; }
.bars span { flex: 1; border-radius: 8px 8px 0 0; }
.bars span:nth-child(1) { height: 38%; background: var(--sky); }
.bars span:nth-child(2) { height: 62%; background: var(--pink); }
.bars span:nth-child(3) { height: 50%; background: var(--sun); }
.bars span:nth-child(4) { height: 86%; background: var(--green); }

.cam {
  /* The whole camera view, shrunk and clipped to the face circle at the bottom right. Me grows it
     back to the full screen. Transform and clip-path only, so nothing is laid out again. */
  position: absolute; inset: 0; z-index: 2;
  transform: translate(33.5%, 22%) scale(0.4);
  clip-path: circle(37.5% at 50% 50%);
  transition: transform 0.5s var(--ease-io), clip-path 0.5s var(--ease-io);
}
.cam svg { width: 100%; height: 100%; display: block; }
.take.me .cam { transform: none; clip-path: circle(75% at 50% 50%); }
.cam-ring {
  position: absolute; z-index: 2; left: 71%; top: 52%; width: 25%; height: 40%; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6); pointer-events: none;
  transition: opacity 0.2s var(--ease-out);
}
.take.me .cam-ring { opacity: 0; }

.rbox {
  position: absolute; top: 5%; right: 3.5%; z-index: 3; width: 34%;
  background: rgba(16, 20, 18, 0.94); color: #ecf1ee; border-radius: 12px; padding: 7px; display: grid; gap: 6px;
  box-shadow: 0 12px 26px -12px rgba(0, 0, 0, 0.7); font-size: clamp(0.5rem, 0.95vw, 0.72rem); font-weight: 700;
}
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #1d2321; border-radius: 8px; padding: 2px; }
.seg span { text-align: center; padding: 4px 0; border-radius: 6px; color: #d5ddd8; transition: background 0.2s, color 0.2s; }
.take:not(.me) .seg .s-screen, .take.me .seg .s-me { background: var(--green); color: var(--ink); }
.rrow { display: flex; align-items: center; gap: 6px; padding: 2px 4px; }
.rdot { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px rgba(240, 78, 62, 0.25); }
.take.stopped .rdot { background: #5b625f; box-shadow: none; }
.rtime { font-family: var(--mono); font-size: 1.15em; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.rmeter { display: flex; gap: 1.5px; margin-left: auto; }
.rmeter i { width: 3px; height: 9px; border-radius: 1px; background: var(--green); opacity: 0.2; }
.rmeter i.on { opacity: 1; }
.rstop { width: 15px; height: 15px; border-radius: 50%; background: #2a302d; display: grid; place-items: center; }
.rstop::after { content: ""; width: 6px; height: 6px; border-radius: 1.5px; background: var(--rec); }

.take-veil {
  position: absolute; inset: 0; z-index: 4; background: rgba(14, 17, 16, 0.7); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: clamp(0.9rem, 2vw, 1.3rem); letter-spacing: -0.01em;
  opacity: 0; transition: opacity 0.35s var(--ease-out); pointer-events: none;
}
.take.stopped .take-veil { opacity: 1; }
.take.done .take-veil { opacity: 0; }
.take-base { height: 14px; margin: 0 -6%; border-radius: 2px 2px 16px 16px; background: linear-gradient(#3a413e, #1b201e); box-shadow: 0 18px 30px -18px rgba(14, 31, 22, 0.8); position: relative; }
.take-base::after { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 5px; margin-left: -8%; border-radius: 0 0 8px 8px; background: #121615; }

.files { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; }
.files li {
  display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 12px;
  padding: 6px 9px; font-size: 0.86rem; font-weight: 700; box-shadow: 0 8px 16px -10px rgba(14, 31, 22, 0.6);
  opacity: 0; transform: translateY(14px) scale(0.96);
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.files li code { font-size: 0.74rem; }
.files li .tag { width: 9px; height: 9px; border-radius: 3px; flex: none; }
.take.stopped .files li { opacity: 1; transform: none; }
.take-caption { margin-top: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink-soft); min-height: 1.5em; }

@media (prefers-reduced-motion: reduce) {
  .cam, .cam-ring, .files li, .take-veil { transition: none; }
}

/* ---------- Sections ---------- */

.band { padding-block: clamp(72px, 10vw, 128px); position: relative; }
.band.mist { background: var(--mist); }
.band.sun { background: var(--sun); }
.band.sky { background: var(--sky); }
.band.pink { background: var(--pink); }
.band.lime { background: var(--lime); }
.band.ink { background: var(--ink); color: var(--paper); }
.band.ink .muted { color: #b9c9c0; }

.head { max-width: 760px; }
.head p { font-size: 1.2rem; margin-top: 20px; max-width: 58ch; }
.muted { color: var(--ink-soft); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; }
.points li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; border-top: 1.5px solid rgba(14, 31, 22, 0.18); font-size: 1.04rem; }
.points li:last-child { border-bottom: 1.5px solid rgba(14, 31, 22, 0.18); }
.points svg { width: 22px; height: 22px; margin-top: 3px; }
.points b { font-weight: 800; }

.shot { border-radius: var(--radius); overflow: hidden; background: var(--night); box-shadow: 0 34px 70px -34px rgba(14, 31, 22, 0.8); border: 1.5px solid rgba(14, 31, 22, 0.9); }
.shot img { width: 100%; height: auto; }
.shot.tall { max-width: 420px; margin-inline: auto; }
.shot-note { margin-top: 12px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); text-align: center; }

/* Files, the first proof */
.filegrid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0; border-top: 1.5px solid var(--ink); }
.filegrid li { padding: 22px 22px 24px 0; border-bottom: 1.5px solid var(--line); display: grid; gap: 6px; align-content: start; }
.filegrid code { font-size: 1rem; font-weight: 500; display: inline-flex; align-items: center; gap: 9px; }
.filegrid code i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.filegrid p { font-size: 1rem; color: var(--ink-soft); }

/* Me | Screen demonstration */
.mesc { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 40px; }
.shape-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; align-items: end; }
.shape { display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.shape i { display: block; background: var(--ink); border: 3px solid var(--paper); box-shadow: 0 8px 18px -10px rgba(14, 31, 22, 0.7); overflow: hidden; }
.shape i svg { width: 100%; height: 100%; }
.shape.circle i { width: 74px; height: 74px; border-radius: 50%; }
.shape.square i { width: 74px; height: 74px; border-radius: 16px; }
.shape.oval i { width: 62px; height: 82px; border-radius: 50%; }
.shape.wide i { width: 110px; height: 70px; border-radius: 16px; }
@media (max-width: 520px) {
  .shape-row { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 12px; }
  .shape.circle i, .shape.square i { width: 58px; height: 58px; }
  .shape.oval i { width: 48px; height: 64px; }
  .shape.wide i { width: 86px; height: 56px; }
}

/* Sync by sound */
.sync { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); overflow: hidden; }
.wave { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 10px 0; }
.wave + .wave { border-top: 1px solid var(--line); }
.wave b { font-size: 0.9rem; }
.wave b small { display: block; font-family: var(--mono); font-weight: 400; font-size: 0.74rem; color: var(--ink-soft); }
.bars-wave { height: 46px; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.bars-wave i { flex: none; width: 4px; border-radius: 2px; background: var(--ink); }
.bars-wave.slide-in { transform: translateX(var(--offset, 0)); transition: transform 1.2s var(--ease-io); }
.sync.aligned .bars-wave.slide-in { transform: translateX(0); }
.sync-state { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 800; font-size: 0.95rem; }
.sync-state .lamp { width: 10px; height: 10px; border-radius: 50%; background: #c5cfc9; transition: background 0.3s; }
.sync.aligned .sync-state .lamp { background: var(--green); }
.sync-state .later { display: none; }
.sync.aligned .sync-state .later { display: inline; }
.sync.aligned .sync-state .before { display: none; }

/* Free band */
.free-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.no-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.no-list li { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 16px; padding: 16px 18px; font-weight: 800; font-size: 1.1rem; display: flex; gap: 10px; align-items: center; }
.no-list svg { width: 22px; height: 22px; color: var(--green-deep); flex: none; }
@media (max-width: 900px) { .free-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .no-list { grid-template-columns: 1fr; } }

/* Demo video slot */
.demo { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--night); border: 1.5px solid var(--ink); box-shadow: 0 34px 70px -34px rgba(14, 31, 22, 0.8); margin-top: 44px; }
.demo video { display: block; width: 100%; height: 100%; background: var(--night); }
@media (max-width: 600px) { .take-base { margin: 0 -3%; } }

/* Light and safe */
.facts-row { list-style: none; padding: 0; margin: 46px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 255, 255, 0.25); }
.facts-row li { padding: 26px 26px 0 0; display: grid; gap: 10px; align-content: start; }
.facts-row li + li { padding-left: 26px; border-left: 1px solid rgba(255, 255, 255, 0.18); }
.facts-row b { font-size: 1.28rem; letter-spacing: -0.02em; line-height: 1.15; }
.facts-row p { color: #b9c9c0; font-size: 1rem; }
@media (max-width: 900px) {
  .facts-row { grid-template-columns: 1fr 1fr; }
  .facts-row li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-row li { padding-bottom: 26px; }
}
@media (max-width: 520px) {
  .facts-row { grid-template-columns: 1fr; }
  .facts-row li, .facts-row li + li { padding: 22px 0; border-left: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.15); }
}

/* Who built it */
.maker { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; }
.maker-mark { width: 120px; height: 120px; border-radius: 32px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font-weight: 800; font-size: 3rem; letter-spacing: -0.05em; transform: rotate(-4deg); box-shadow: var(--shadow); }
.maker p { font-size: 1.22rem; max-width: 52ch; margin-top: 14px; }
@media (max-width: 640px) { .maker { grid-template-columns: 1fr; } .maker-mark { width: 92px; height: 92px; font-size: 2.3rem; } }

/* Closing call */
.close { text-align: center; }
.close h2 { max-width: 16ch; margin-inline: auto; }
.close p { margin: 18px auto 0; font-size: 1.15rem; max-width: 50ch; }
.close .actions { justify-content: center; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- Page headers (Features, How to use it) ---------- */

.page-head { padding-block: 72px 80px; }
.page-head h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 14ch; }
.page-head p { font-size: 1.22rem; margin-top: 22px; max-width: 56ch; }
.page-head .facts { margin-top: 26px; }

/* ---------- Features page ---------- */

.feat-layout { display: grid; grid-template-columns: 230px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 2px; }
.toc a { text-decoration: none; font-weight: 700; font-size: 0.98rem; padding: 8px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; }
.toc a:hover { background: var(--mist); }
.toc a i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.toc-free { margin-top: 18px; padding: 16px; border-radius: 16px; background: var(--sun); border: 1.5px solid var(--ink); font-weight: 700; font-size: 0.95rem; line-height: 1.4; }
@media (max-width: 900px) { .feat-layout { grid-template-columns: 1fr; } .toc { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .toc-free { grid-column: 1 / -1; } }

.group { padding-bottom: 72px; scroll-margin-top: 90px; }
.group-head { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--c, var(--mist)); border: 1.5px solid var(--ink); border-radius: 20px; margin-bottom: 6px; }
.group-head .chip { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; border: 1.5px solid var(--ink); flex: none; background: var(--paper); }
.group-head .chip svg { width: 25px; height: 25px; }
.group-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.feat-list li { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.feat-list h3 { font-size: 1.12rem; }
.feat-list p { font-size: 1rem; color: var(--ink-soft); }
.group .shot { margin-top: 30px; }
@media (max-width: 720px) { .feat-list { grid-template-columns: 1fr; } }

/* ---------- How to use it ---------- */

.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }
.doc { max-width: 70ch; min-width: 0; }
.doc section { padding-bottom: 64px; scroll-margin-top: 90px; }
.doc h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 18px; }
.doc p + p { margin-top: 14px; }
.doc h3 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 34px 0 10px; scroll-margin-top: 90px; }
.doc h2 + p + h3 { margin-top: 26px; }
.doc ul.plain { padding-left: 1.2em; margin: 14px 0 0; }
.doc ul.plain li { margin: 8px 0; }
.steps { list-style: none; counter-reset: step; margin: 22px 0 0; padding: 0; display: grid; gap: 0; }
.steps > li { counter-increment: step; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps > li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%; background: var(--green); border: 1.5px solid var(--ink);
  display: grid; place-items: center; font-weight: 800; font-size: 1rem;
}
.steps > li > div > p + p { margin-top: 8px; }
.steps b { font-weight: 800; }

.code {
  position: relative; margin-top: 12px; background: var(--ink); color: #e9f3ed; border-radius: 14px; padding: 14px 54px 14px 16px;
  font-family: var(--mono); font-size: 0.88rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 88px;
}
.code::selection, .code *::selection { background: var(--green); color: var(--ink); }
.code.prompt, .code.prompt code { font-family: var(--display); font-size: 1rem; line-height: 1.55; font-variation-settings: "opsz" 14; overflow-wrap: break-word; }
.code.prompt { padding: 48px 20px 18px; }
.copy {
  position: absolute; top: 8px; right: 8px; background: #23362c; color: #e9f3ed; border: 0; border-radius: 9px; padding: 6px 9px; cursor: pointer;
  font-family: var(--display); font-weight: 700; font-size: 0.78rem;
}
.copy:hover { background: #2f4a3c; }
.copy.done { background: var(--green); color: var(--ink); }

.note { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--mist); border: 1.5px solid var(--line); font-size: 1rem; }
.note b { font-weight: 800; }

.table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 0.98rem; }
.table th, .table td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 800; border-bottom: 2px solid var(--ink); }
.table code { font-size: 0.86rem; }

/* ---------- Footer ---------- */

.foot { background: var(--ink); color: #dfe9e3; padding-block: 56px 40px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot .brand { color: var(--paper); }
.foot p { margin-top: 12px; font-size: 0.98rem; color: #b9c9c0; max-width: 36ch; }
.foot h3 { font-size: 0.95rem; color: var(--paper); margin-bottom: 10px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; color: #dfe9e3; }
.foot a:hover { color: var(--lime); }
.foot .legal { grid-column: 1 / -1; padding-top: 24px; margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem; color: #93a69b; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Mac and Windows ---------- */

.status {
  display: inline-flex; align-items: center; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.01em; line-height: 1.2;
  padding: 3px 9px; border-radius: 999px; border: 1.5px solid var(--ink); background: var(--green); color: var(--ink); white-space: nowrap;
}
.status.soon { background: var(--sun); }

/* The two platforms in How to use it's head band are its tabs. */
.platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 34px; max-width: 760px; }
.platform {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; text-align: left;
  padding: 18px 20px; border-radius: 20px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
  font: inherit; cursor: pointer; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s, color 0.2s;
}
.platform:hover { transform: translateY(-2px); }
.platform > svg { grid-row: span 2; width: 34px; height: 34px; }
.platform > b { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.platform > span { font-size: 0.95rem; font-weight: 600; color: var(--ink-soft); }
.platform[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.platform[aria-selected="true"] > span { color: #b9c9c0; }
.platform[aria-selected="true"] .status { border-color: var(--paper); }
.platform:focus-visible { outline-offset: 4px; }
@media (max-width: 560px) { .platforms { grid-template-columns: 1fr; } }

.platform-panel { scroll-margin-top: 90px; }
.platform-panel + .platform-panel { margin-top: 24px; }
.panel-title { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1.5px solid var(--ink); }
.js-tabs .panel-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.soon-note { margin: 0 0 40px; background: var(--sun); border-color: var(--ink); }
.dl { margin-top: 14px; }

/* A download that is not out yet: a dashed outline that cannot be pressed. */
.btn[aria-disabled="true"] { background: transparent; color: var(--ink-soft); border-style: dashed; box-shadow: none; cursor: default; pointer-events: none; }

/* Home: Get Vidlark */
.get { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.get-card { background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); display: grid; gap: 14px; align-content: start; box-shadow: var(--shadow); }
.get-card h3 { font-size: clamp(1.6rem, 2.6vw, 2rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-variation-settings: "opsz" 96, "wdth" 88; }
.get-card h3 svg { width: 34px; height: 34px; flex: none; }
.get-card p { color: var(--ink-soft); font-size: 1.04rem; max-width: 46ch; }
.get-card .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
@media (max-width: 760px) { .get { grid-template-columns: 1fr; } }

/* ---------- Feedback ---------- */

.form {
  max-width: 760px; display: grid; gap: 34px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 44px); box-shadow: var(--shadow);
}
.field { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field > legend, .field > label { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.2; padding: 0; margin-bottom: 4px; }
.optional { font-weight: 600; color: var(--ink-soft); font-size: 1rem; letter-spacing: 0; }
.hint { font-size: 0.98rem; color: var(--ink-soft); margin-top: -6px; }

.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; display: inline-flex; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--ink); background: var(--paper); font-weight: 700; font-size: 1rem; transition: background 0.15s;
}
.opt:hover span { background: var(--mist); }
.opt input:checked + span { background: var(--green); }
.opt input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.opt.num span { width: 52px; padding: 10px 0; font-variant-numeric: tabular-nums; }
.rate { display: inline-grid; gap: 6px; justify-self: start; }
.rate-ends { display: flex; justify-content: space-between; font-size: 0.9rem; font-weight: 700; color: var(--ink-soft); }

.input, .form textarea {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 14px; padding: 13px 15px;
}
.form textarea { min-height: 160px; resize: vertical; line-height: 1.5; }
.input:focus-visible, .form textarea:focus-visible { outline-offset: 2px; border-radius: 14px; }

.drop {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; align-items: center;
  padding: 20px; border: 1.5px dashed var(--ink); border-radius: 16px; background: var(--mist); transition: background 0.15s;
}
.drop > svg { width: 30px; height: 30px; }
.drop > p { font-size: 1rem; color: var(--ink-soft); }
.drop > p b { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 2px; }
.drop.over { background: color-mix(in srgb, var(--green) 30%, var(--paper)); }
.drop:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
/* The file input covers the box, so a click anywhere in it opens the picker. */
.drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.has-file input[type="file"] { pointer-events: none; }
.drop-preview { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 8px; position: relative; z-index: 1; }
.drop-preview img { width: 132px; height: 84px; object-fit: cover; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--paper); }
.drop-name { font-weight: 700; font-size: 0.95rem; overflow-wrap: anywhere; min-width: 0; flex: 1; }
.drop-remove {
  font: inherit; font-weight: 800; font-size: 0.92rem; padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink);
}
.drop-remove:hover { background: var(--mist); }

.field-error { color: #a3261b; font-weight: 700; font-size: 0.98rem; }
.field-error:empty { display: none; }
.form-foot { display: grid; gap: 14px; justify-items: start; padding-top: 6px; }
.form-foot .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.fine { font-size: 0.95rem; color: var(--ink-soft); max-width: 60ch; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.sent { max-width: 760px; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); background: var(--green); border: 1.5px solid var(--ink); box-shadow: var(--shadow); display: grid; gap: 14px; justify-items: start; }
.sent p { font-size: 1.2rem; }
.sent .btn { margin-top: 8px; }

/* ---------- Motion ----------
   One material idea runs through the page: things are recorded into view. The app's screens open
   from a circle, like the record dot and the face circle; lists land one after another, like files
   in a take's folder; and each band acts out its own claim (face shapes, Wide and Tall, live mics).
   Everything is visible without JavaScript; `.motion` is set only when motion is welcome. */

.btn:active { transform: translateY(0) scale(0.98); transition-duration: 0.1s; }

/* Headings rise once, the first time they are seen. */
.motion .rise { transition: transform 0.7s var(--ease-out), opacity 0.5s var(--ease-out); }
.motion .rise:not(.in) { opacity: 0; transform: translateY(0.45em); }

/* Lists land one by one: files, promises, facts, steps, features. */
.motion .land { transition: transform 0.6s var(--ease-out), opacity 0.45s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.motion .land:not(.in) { opacity: 0; transform: translateY(18px) scale(0.98); }

/* The app's screens open from a circle. The circle is dropped when it has finished. */
.motion .iris { transition: clip-path 0.9s var(--ease-io), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out); }
.motion .iris:not(.in) { clip-path: circle(0% at 50% 55%); transform: scale(0.94); filter: saturate(0.4); }
.motion .iris.in:not(.settled) { clip-path: circle(110% at 50% 55%); }

/* The hero's headline arrives word by word. */
.hero h1 .w { display: inline-block; }
.motion .hero h1 .w { animation: word-in 0.8s var(--ease-out) both; animation-delay: calc(var(--i) * 60ms); }
.motion .hero .lead, .motion .hero .actions, .motion .hero .facts, .motion .hero .needs { animation: soft-in 0.7s var(--ease-out) both; }
.motion .hero .lead { animation-delay: 0.35s; }
.motion .hero .actions { animation-delay: 0.45s; }
.motion .hero .facts { animation-delay: 0.55s; }
.motion .hero .needs { animation-delay: 0.62s; }
.motion .hero .take { animation: take-in 1s var(--ease-out) 0.2s both; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes soft-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes take-in { from { opacity: 0; transform: translateY(30px) scale(0.96) rotate(-1deg); } to { opacity: 1; transform: none; } }

/* The page's own timeline: a thin line under the nav that fills as you scroll, where supported. */
@supports (animation-timeline: scroll()) {
  .motion .nav::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ink);
    transform-origin: 0 50%; animation: page-progress linear both; animation-timeline: scroll(root);
  }
  @keyframes page-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* Me and Screen: the four face shapes take turns. */
.shape i { transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.shape-row.cycling .shape { transition: opacity 0.3s; }
.shape-row.cycling .shape:not(.on) { opacity: 0.55; }
.shape.on i { transform: translateY(-6px) scale(1.12); box-shadow: 0 0 0 3px var(--ink), 0 16px 26px -12px rgba(14, 31, 22, 0.75); }

/* Phones: one frame switching between Wide 16:9 and Tall 9:16, cropped like the phone page. */
.aspect { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.aspect-stage { width: 132px; height: 132px; display: grid; place-items: center; flex: none; }
.aspect-frame {
  width: 132px; height: 132px; border-radius: 14px; overflow: hidden; background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink), 0 14px 26px -14px rgba(14, 31, 22, 0.8);
  clip-path: inset(25.4% 0 25.4% 0 round 12px); transition: clip-path 0.7s var(--ease-io);
}
.aspect-frame svg { width: 100%; height: 100%; display: block; }
.aspect.tall .aspect-frame { clip-path: inset(0 25.4% 0 25.4% round 12px); }
.aspect-label { position: relative; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.015em; min-width: 9ch; height: 1.4em; }
.aspect-label span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity 0.35s, transform 0.5s var(--ease-out); }
.aspect .a-tall, .aspect.tall .a-wide { opacity: 0; transform: translateY(8px); }
.aspect.tall .a-tall { opacity: 1; transform: none; }

/* Microphones: a strip of live meters resting on the Sources screenshot. */
.shot-stack { position: relative; max-width: 420px; margin-inline: auto; }
.mic-strip {
  position: absolute; left: -44px; bottom: 34px; width: min(300px, 82%); display: grid; gap: 8px; padding: 12px 14px;
  background: rgba(16, 20, 18, 0.96); color: #ecf1ee; border-radius: 16px; border: 1.5px solid var(--ink);
  box-shadow: 0 24px 44px -20px rgba(14, 31, 22, 0.9); font-size: 0.8rem; font-weight: 700;
}
.mic-row { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 4px 10px; }
.mic-row em { grid-column: 2; font-style: normal; font-size: 0.68rem; color: var(--ink); background: var(--green); border-radius: 999px; padding: 1px 8px; justify-self: start; }
.mic-meter { display: flex; gap: 2px; height: 10px; }
.mic-meter i { flex: 1; border-radius: 1.5px; background: var(--green); opacity: 0.18; transition: opacity 0.08s; }
.mic-meter i.amber { background: var(--sun); }
.mic-meter i.on { opacity: 1; }
.motion .mic-strip:not(.in) { opacity: 0; transform: translate(-24px, 16px) rotate(-3deg); }
.motion .mic-strip { transition: opacity 0.6s var(--ease-out) 0.35s, transform 0.8s var(--ease-out) 0.35s; }
@media (max-width: 600px) { .mic-strip { left: -6px; bottom: -26px; } .shot-stack { margin-bottom: 40px; } }

/* How to use it: the chosen guide slides in. */
.motion .platform-panel.entering { animation: panel-in 0.35s var(--ease-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Feedback: a picked choice answers back, and Send shows it is working. */
.motion .opt input:checked + span { animation: pick 0.28s var(--ease-out); }
@keyframes pick { 40% { transform: scale(1.07); } }
.form-foot .btn[disabled] span::after { content: ""; display: inline-block; width: 0.5em; height: 0.5em; margin-left: 0.5em; border-radius: 50%; background: var(--lime); animation: blink 0.8s ease-in-out infinite; vertical-align: middle; }
@keyframes blink { 50% { opacity: 0.2; } }
.motion .sent:not([hidden]) { animation: take-in 0.6s var(--ease-out) both; }

/* The step numbers fill green as each step lands. */
.motion .steps > li.land::before { transition: background 0.4s var(--ease-out), transform 0.5s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms + 0.15s); }
.motion .steps > li.land:not(.in)::before { background: var(--paper); transform: scale(0.6); }

/* Who built it: the initials tile turns in. */
.motion .maker-mark.rise:not(.in) { transform: rotate(-24deg) scale(0.7); }
.motion .maker-mark.rise { transition: transform 0.8s var(--ease-out), opacity 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .shape i, .aspect-frame, .aspect-label span, .mic-meter i { transition: none; }
}

/* ---------- Open source ---------- */

.ink-lead { font-size: 1.2rem; margin-top: 20px; max-width: 46ch; color: #dfe9e3; }
.points.on-ink li { border-color: rgba(255, 255, 255, 0.16); }
.points.on-ink svg { color: var(--lime); }
.ink-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn.lime { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.btn.ghost.light { color: var(--paper); border-color: rgba(255, 255, 255, 0.6); }
.btn.ghost.light:hover { background: rgba(255, 255, 255, 0.1); }

/* Claude Code changing Vidlark: a request is typed, files are edited, the change appears. */
.chat { background: var(--night); color: #e9f3ed; border: 1.5px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-weight: 800; font-size: 0.92rem; }
.chat-dots { display: inline-flex; gap: 6px; }
.chat-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a413e; }
.chat-path { margin-left: auto; font-family: var(--mono); font-weight: 400; font-size: 0.78rem; color: #93a69b; }
.chat-body { padding: 20px; display: grid; gap: 16px; align-content: start; min-height: 262px; }
.chat-you { justify-self: end; max-width: 92%; background: var(--lime); color: var(--ink); padding: 12px 16px; border-radius: 16px 16px 4px 16px; font-weight: 700; line-height: 1.35; }
.caret { display: none; width: 2px; height: 1.05em; margin-left: 2px; background: var(--ink); vertical-align: text-bottom; }
.chat.typing .caret { display: inline-block; animation: caret 0.9s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.chat-claude { display: grid; gap: 8px; font-size: 0.95rem; }
.chat-step { display: flex; align-items: center; gap: 10px; color: #b9c9c0; font-weight: 600; }
.spin { flex: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.18); border-top-color: var(--green); }
.chat-step:not(.past) .spin { animation: spin 0.8s linear infinite; }
.chat-step.past .spin, .chat:not(.playing) .spin { border-color: var(--green); }
@keyframes spin { to { transform: rotate(360deg); } }
.chat-file { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #161c19; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; padding: 8px 12px; }
.chat-file code { font-size: 0.8rem; color: #e9f3ed; overflow-wrap: anywhere; min-width: 0; }
.chat-file b { flex: none; font-size: 0.72rem; color: var(--ink); background: var(--green); border-radius: 999px; padding: 2px 9px; }
.chat-done { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--lime); }
.chat-done svg { width: 18px; height: 18px; }
.chat-result { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-top: 1px solid rgba(255, 255, 255, 0.08); background: #121715; transition: opacity 0.4s var(--ease-out); }
.rec-ring { position: relative; width: 64px; height: 64px; flex: none; }
.rec-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rec-ring circle { fill: none; stroke-width: 6; }
.rec-ring .track { stroke: rgba(255, 255, 255, 0.12); }
.rec-ring .arc { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: var(--used, 0); transition: stroke-dashoffset 1s linear; }
.rec-core { position: absolute; inset: 21px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 4px rgba(240, 78, 62, 0.22); }
.rec-time { display: block; font-family: var(--mono); font-weight: 500; font-size: 1.7rem; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.chat-result small { color: #93a69b; font-weight: 600; font-size: 0.85rem; }
.motion .chat .chat-claude > *:not(.shown) { opacity: 0; transform: translateY(6px); }
.motion .chat .chat-claude > * { transition: opacity 0.35s var(--ease-out), transform 0.45s var(--ease-out); }
.motion .chat:not(.result) .chat-result { opacity: 0.3; }
.motion .chat.result .chat-result { animation: pick 0.4s var(--ease-out); }

/* How to use it: Change it with Claude */
.change .head { margin-bottom: 8px; }
.change-steps { max-width: 70ch; margin-top: 30px; }
.asks { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.asks li { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 14px 14px 14px 4px; padding: 8px 12px; font-weight: 700; font-size: 0.95rem; }

/* ---------- How to use it: the step-by-step guide ----------
   Numbered steps, each with the app's own screen beside it (wide screens) or under it (narrow
   ones). Tall captures sit beside the words; wide ones run under them. */

.doc.guide { max-width: 880px; }
.guide > section > p, .guide > section > ul.plain, .guide > section > .note, .guide h3 + p { max-width: 66ch; }
.guide .intro { font-size: 1.12rem; color: var(--ink-soft); }
.guide h3 { font-size: 1.32rem; }
.anchor { margin-left: 0.25em; font-size: 0.55em; color: var(--ink-soft); text-decoration: none; opacity: 0; vertical-align: 0.2em; transition: opacity 0.2s; }
.guide h2:hover .anchor, .guide h3:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: 0.5; } }

.guide .steps > li { scroll-margin-top: 90px; }
.step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.step.side { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 28px; }
.step.side.wide-fig { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
@media (max-width: 1120px) { .step.side, .step.side.wide-fig { grid-template-columns: minmax(0, 1fr); } }
.step > div > p + p, .step > div > p + .code, .step > div > .code + p { margin-top: 10px; }
.step .note { margin-top: 12px; }
.step > div > .fig, .step > div > .parts { margin-top: 14px; }
.path + p, .path + .note { margin-top: 12px; }

.fig { margin: 0; min-width: 0; }
.fig .shot { border-radius: 16px; box-shadow: 0 24px 44px -26px rgba(14, 31, 22, 0.75); }
.fig.narrow { max-width: 380px; }
.fig.phone { max-width: 300px; }
.fig figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: var(--ink-soft); }
.fig figcaption .status { margin-right: 6px; vertical-align: 1px; }
@media (max-width: 1120px) { .step.side .fig { max-width: 420px; } .step.side .fig.phone { max-width: 300px; } }

/* Before and after, side by side. */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; align-items: start; max-width: 760px; }
.pair .fig figcaption { margin: 0 0 10px; }
@media (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr); } }

/* Where to click, one place after another. */
.path { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 4px; }
.path li { display: inline-flex; align-items: center; gap: 4px; }
.path span { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 10px; padding: 3px 10px; font-weight: 700; font-size: 0.95rem; line-height: 1.4; }
.path svg { width: 16px; height: 16px; color: var(--ink-soft); flex: none; }

kbd { font-family: var(--display); font-weight: 700; font-size: 0.86em; padding: 1px 7px; border: 1.5px solid var(--ink); border-bottom-width: 3px; border-radius: 7px; background: var(--paper); white-space: nowrap; }

/* Smaller numbered steps inside a step: the certificate. */
.substeps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: sub; display: grid; gap: 12px; }
.substeps > li { counter-increment: sub; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
.substeps > li::before {
  content: counter(sub); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper);
  display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; margin-top: 1px;
}
.substeps .path { margin-top: 8px; }

/* The parts of a screen, one per row. */
.parts { list-style: none; margin: 12px 0 0; padding: 0; }
.parts li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.parts li:last-child { border-bottom: 1px solid var(--line); }
.parts b { font-weight: 800; }

.note.sun { background: var(--sun); border-color: var(--ink); }
.guide > .note.sun { margin: 0 0 56px; max-width: 66ch; }
.note ul { margin: 8px 0 0; padding-left: 1.2em; }
.note li + li { margin-top: 4px; }

/* If something goes wrong: a problem, then its fix. */
.fixes { margin-top: 18px; border-top: 1.5px solid var(--ink); }
.fix { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.fix h3 { font-size: 1.12rem; margin: 0 0 6px; font-variation-settings: "opsz" 24, "wdth" 92; }
.fix p { max-width: 66ch; }
.fix p + p, .fix p + .code { margin-top: 8px; }

/* The contents beside a long guide scroll on their own when the window is short. */
@media (min-width: 901px) {
  .doc-layout > .toc { max-height: calc(100vh - 110px); overflow-y: auto; overscroll-behavior: contain; padding-bottom: 4px; }
  .doc-layout > .toc a { padding-block: 6px; }
}

/* ---------- Blog ----------
   Posts are written in content/blog/ and built by Tools/blog.py. A post's head band takes its
   category's field (Guides green, Comparisons sky, Tutorials pink, Use cases sun, Behind the
   build lime), and its cover and cards carry the same colour as a small square tag. */

.band.green { background: var(--green); }

.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-weight: 700; font-size: 0.92rem; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.crumbs li + li::before { content: "/"; margin: 0 10px; opacity: 0.55; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs [aria-current] { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 42ch; }
@media (max-width: 520px) { .crumbs [aria-current] { max-width: 22ch; } }

.post-cat { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.post-cat i { width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--green)); border: 1.5px solid var(--ink); flex: none; }
.post-cat.chip a { display: inline-flex; align-items: center; gap: 8px; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 13px 5px 10px; text-decoration: none; font-weight: 800; font-size: 0.88rem; }

/* A post */
.post-head { background: var(--c, var(--mist)); padding-block: 56px 64px; }
.post-head h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); max-width: 18ch; margin-top: 16px; }
.post-lead { font-size: 1.22rem; margin-top: 22px; max-width: 58ch; }
.post-meta { margin-top: 22px; font-weight: 600; font-size: 0.95rem; }
.post-meta a { font-weight: 800; }

.post-body { padding-block: 56px 96px; }
.post-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 56px; align-items: start; }
.post-side { position: sticky; top: 92px; display: grid; gap: 18px; }
.post-side .toc { position: static; }
.toc-title { font-weight: 800; font-size: 0.95rem; padding: 0 12px 6px; grid-column: 1 / -1; }
.post-side .toc a { line-height: 1.3; }
.post-side .toc-free { margin-top: 0; }
.post-side .toc-free a { font-weight: 800; }
.post-main { min-width: 0; max-width: 760px; }
.post-cover { margin: 0 0 44px; border-radius: var(--radius); overflow: hidden; border: 1.5px solid var(--ink); background: var(--mist); box-shadow: 0 34px 70px -34px rgba(14, 31, 22, 0.8); }
.post-cover img { width: 100%; height: auto; }
@media (min-width: 901px) {
  .post-side .toc { max-height: calc(100vh - 260px); overflow-y: auto; overscroll-behavior: contain; }
}
@media (max-width: 900px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .post-side { position: static; }
  .post-side .toc-free, .post-layout:not(.has-toc) .post-side { display: none; }
  .post-side .toc { margin-bottom: 32px; background: var(--mist); border-radius: 16px; padding: 14px 8px; grid-template-columns: minmax(0, 1fr); }
}

/* The words of a post */
.prose { line-height: 1.65; }
.prose > * + * { margin-top: 18px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-top: 56px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.4rem; margin-top: 36px; scroll-margin-top: 90px; }
.prose h4 { font-size: 1.12rem; margin-top: 28px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; font-variation-settings: "opsz" 24, "wdth" 92; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 14px; }
.prose a { font-weight: 600; text-decoration-color: var(--green-deep); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose strong { font-weight: 800; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose li > ul, .prose li > ol, .prose li > p + p { margin-top: 8px; }
.prose ul > li::marker { color: var(--green-deep); }
.prose ol > li::marker { font-weight: 800; }
.prose :not(pre) > code { background: var(--mist); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; overflow-wrap: anywhere; }
.prose pre.code { margin-bottom: 0; }
.code code { font-size: inherit; }
.prose blockquote.note { margin: 18px 0 0; }
.prose blockquote.note > * + * { margin-top: 10px; }
.prose hr { border: 0; border-top: 1.5px solid var(--line); margin: 40px 0; }
.table-wrap { overflow-x: auto; }
.table-wrap .table { margin-top: 0; }
.prose td code, .prose th code { white-space: nowrap; overflow-wrap: normal; }
.post-fig { margin: 28px 0 0; }
.post-fig .shot { border-radius: 16px; }
.post-fig .shot.tall { max-width: 360px; }
.post-fig figcaption { margin-top: 10px; font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: var(--ink-soft); text-align: center; }

/* Questions: on posts and on Home */
.faq { margin-top: 64px; scroll-margin-top: 90px; }
.faq h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.faq-list { margin-top: 18px; border-top: 1.5px solid var(--ink); }
.faq-item { padding: 18px 0 20px; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 1.15rem; font-variation-settings: "opsz" 24, "wdth" 92; }
.faq-item p { margin-top: 8px; color: var(--ink-soft); max-width: 66ch; }
.faq-item a { font-weight: 700; color: var(--ink); }
.home-faq { max-width: 860px; margin-top: 40px; }

/* Get Vidlark, at the end of every post */
.post-cta { margin-top: 64px; background: var(--lime); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.post-cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.post-cta p { margin-top: 12px; font-size: 1.08rem; max-width: 52ch; }
.post-cta .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.post-cta .post-cta-fine { font-size: 0.95rem; font-weight: 600; margin-top: 20px; }
.post-cta-fine a { font-weight: 800; }

/* Post cards: the blog, Home's strip and Keep reading */
.strip-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; }
.post-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; margin-top: 36px; }
.post-card {
  position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid var(--ink); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 26px 48px -20px rgba(14, 31, 22, 0.55), 0 4px 12px -4px rgba(14, 31, 22, 0.18); }
.post-card:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.post-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1.5px solid var(--ink); background: var(--c, var(--mist)); }
.post-card-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card h2, .post-card h3 { font-size: 1.32rem; line-height: 1.12; letter-spacing: -0.02em; font-variation-settings: "opsz" 24, "wdth" 92; }
.post-card h2 a, .post-card h3 a { text-decoration: none; }
.post-card h2 a::after, .post-card h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card h2 a:focus-visible, .post-card h3 a:focus-visible { outline: none; }
.post-card-desc { font-size: 0.98rem; color: var(--ink-soft); }
.post-card-meta { margin-top: auto; padding-top: 4px; font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); }

/* The blog's list: filter by category */
.blog-head .feed-link { margin-top: 18px; font-size: 1rem; }
.feed-link a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.feed-link svg { width: 18px; height: 18px; }
.blog-list { padding-top: 56px; }
.blog-list .post-cards { margin-top: 28px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-filter button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--ink); background: var(--paper); color: var(--ink); font: inherit; font-weight: 700; font-size: 0.98rem; transition: background 0.15s;
}
.cat-filter button:hover { background: var(--mist); }
.cat-filter button[aria-pressed="true"] { background: var(--c, var(--ink)); }
.cat-filter button[data-filter="all"][aria-pressed="true"] { color: var(--paper); }
.cat-filter i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); border: 1.5px solid var(--ink); }
.cat-filter span { font-weight: 600; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* Not found */
.lost .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lost-links { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lost-links a { display: inline-flex; background: rgba(255, 255, 255, 0.55); border-radius: 999px; padding: 8px 14px; font-weight: 700; text-decoration: none; }
.lost-links a:hover { background: var(--paper); }
