/* video-lens.org landing page (034 B2, D5). No inline style (the CSP of / allows style-src 'self'
   only). The visual language is the report's (036): warm paper, red accent, DM Sans for structure and
   interface, Georgia for prose, small uppercase labels, numbered circles, tabular numbers.

   Colors and fonts come from the tokens stylesheet, the top bar and footer from frame.css, both linked
   first. landing.js sets data-theme when the reader picks Light or Dark; Auto (the default, and the
   page without script) follows the OS through the tokens' media query. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4.5rem; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--serif);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
strong { color: var(--strong); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }
code, kbd {
  font-family: var(--mono);
  font-size: 0.86em;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.05em 0.35em;
}
.nw { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Small uppercase labels, as in the report. */
.label {
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  margin: 0 0 0.8rem;
}
.label.accent { color: var(--accent); }

/* ── The install command, with its copy button ── */
.cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  width: fit-content;
  margin: 0 auto;
  background: var(--term);
  color: var(--term-text);
  border: 1px solid color-mix(in srgb, var(--term-text) 12%, transparent);
  border-radius: 10px;
  padding: 0.5rem 0.5rem 0.5rem 1.1rem;
  font: 500 clamp(0.86rem, 0.8rem + 0.3vw, 1rem)/1.4 var(--mono);
  text-align: left;
  box-shadow: var(--shadow);
}
.cmd .ps { color: var(--term-accent); user-select: none; -webkit-user-select: none; }
.cmd code {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  user-select: all;
  -webkit-user-select: all;
  cursor: text;
  overflow-x: auto;
  white-space: nowrap;
}
.copy {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  margin-left: 0.2rem;
  color: var(--term-muted);
  background: color-mix(in srgb, var(--term-text) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--term-text) 14%, transparent);
  border-radius: 7px;
  cursor: pointer;
}
.copy:hover { color: var(--term-text); border-color: color-mix(in srgb, var(--term-text) 35%, transparent); }
.copy svg { grid-area: 1 / 1; width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.15s ease, transform 0.15s ease; }
.copy .ok { opacity: 0; transform: scale(0.6); color: #7fd49b; }
.copy.copied .ico { opacity: 0; transform: scale(0.6); }
.copy.copied .ok { opacity: 1; transform: none; }
/* "Copied" above the button, for a moment. */
.copy::after {
  content: 'Copied';
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 0.3rem 0.5rem;
  font: 500 0.72rem/1 var(--sans);
  color: var(--paper);
  background: var(--strong);
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.copy.copied::after { opacity: 1; transform: translate(-50%, 0); }
html:not(.js) .copy { display: none; }
html:not(.js) .cmd { padding-right: 1.1rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
  border-radius: 8px;
  padding: 0.8rem 1.15rem;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.secondary { color: var(--strong); border-color: var(--pane-line); background: var(--paper); }
.btn.secondary:hover { border-color: var(--muted); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow, .window:hover .arrow { transform: translateX(3px); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex-shrink: 0; }

/* ── The report in a browser window, the phone beside it ── */
.window {
  position: relative;
  display: block;
  background: var(--pane);
  border: 1px solid var(--pane-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.window-bar { display: flex; align-items: center; gap: 0.4rem; height: 2.1rem; padding: 0 0.85rem; border-bottom: 1px solid var(--pane-line); }
.window-bar i { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--pane-line); }
.window-bar span { margin: 0 auto; font: 500 0.72rem/1.4 var(--sans); color: var(--label); padding-right: 2.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* D14b: the example's frame shows the address it was shared at, as a browser would. */
.window-bar .chip { margin: 0 auto; padding: 0.28rem 0.75rem; font: 500 0.72rem/1.2 var(--mono); color: var(--muted); background: var(--paper); border-color: var(--pane-line); }
.window-bar .chip b { color: var(--strong); font-weight: 500; }
.window img { width: 100%; aspect-ratio: 1440 / 900; background: var(--paper); }
.window:hover { border-color: var(--muted); }
.phone {
  position: absolute;
  right: -1.5rem;
  bottom: -2.5rem;
  width: 14.5rem;
  border: 7px solid #111;
  border-radius: 2rem;
  overflow: hidden;
  background: #111;
  box-shadow: var(--shadow);
  pointer-events: none; /* a click on the phone opens the report under it */
}
.phone img { width: 100%; aspect-ratio: 390 / 720; border-radius: 1.45rem; }

/* ── Questions ── */
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer;
  list-style: none;
  font: 600 1rem/1.4 var(--sans);
  color: var(--strong);
  padding: 1rem 2rem 1rem 0;
  position: relative;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0.85rem; font: 400 1.3rem/1 var(--sans); color: var(--accent); }
details[open] summary::after { content: '−'; }
details > :not(summary) { margin: 0 0 1rem; }
details p { font-size: 1rem; }


/* ── Hero ── */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.eyebrow {
  display: inline-block;
  text-wrap: balance;
  font: 500 0.82rem/1.3 var(--sans);
  color: var(--muted);
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  margin: 0 0 1.4rem;
}
.eyebrow b { color: var(--accent); font-weight: 600; white-space: nowrap; }
h1 {
  font: 600 clamp(2.05rem, 1.2rem + 3.9vw, 3.6rem)/1.06 var(--sans);
  letter-spacing: -0.03em;
  color: var(--strong);
  margin: 0 auto 1.2rem;
  max-width: 16em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text);
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-wrap: pretty;
}

/* Three numbers under the command. Installs and stars link to where the number comes from. */
.stats {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 1.9rem auto 0;
  padding: 0;
  font-family: var(--sans);
}
.stats li + li { border-left: 1px solid var(--line); }
.stats a, .stats div { display: block; padding: 0.1rem clamp(0.9rem, 3vw, 1.9rem); text-decoration: none; }
.stats b {
  display: block;
  font: 600 1.55rem/1.15 var(--sans);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--strong);
}
.stats span { display: block; margin-top: 0.15rem; font: 500 0.78rem/1.3 var(--sans); color: var(--muted); }
.stats a:hover span { color: var(--accent); }

/* ── Showcase: a head that names the example and carries its one button, then the window ── */
.showcase { position: relative; margin: clamp(2.6rem, 6vw, 4rem) auto 0; max-width: 70rem; }
.showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin: 0 0.25rem 1rem;
  text-align: left;
}
.showcase-head .label { margin-bottom: 0.3rem; }
.showcase-note { margin: 0; font: 400 0.95rem/1.45 var(--sans); color: var(--muted); }
.window:hover { transform: translateY(-3px); }

/* Below 960 px the phone does not float; below 640 px the window shows the phone screenshot. */
@media (max-width: 959px) {
  .phone { display: none; }
}
@media (max-width: 639px) {
  .showcase-head { flex-direction: column; align-items: stretch; text-align: center; margin-inline: 0; }
  .showcase-head .btn { justify-content: center; }
  .window { max-width: 21rem; margin: 0 auto; border-radius: 1.6rem; border: 6px solid #111; background: #111; }
  .window-bar { display: none; }
  .window img { aspect-ratio: 390 / 720; border-radius: 1.2rem; }
}

/* ── Sections ── */
.section { padding-block: clamp(4rem, 8vw, 6rem) 0; }
.hero + .section { padding-top: clamp(5.5rem, 10vw, 8rem); } /* the phone hangs below the window */
.section-head { max-width: 40rem; margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
h2 {
  font: 600 clamp(1.6rem, 1.1rem + 2vw, 2.3rem)/1.12 var(--sans);
  letter-spacing: -0.025em;
  color: var(--strong);
  margin: 0 0 0.8rem;
  text-wrap: balance;
}
.section-head p:not(.label) { margin: 0; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
h3 { font: 600 1.08rem/1.35 var(--sans); color: var(--strong); margin: 0 0 0.4rem; letter-spacing: -0.005em; }

/* 057 D25: the sections below the example each get their own shape, not the eyebrow / H2 /
   paragraph / cards template. A3, C2 and B2 of design/landing-mockups.html, the owner's pick. */

/* ── How it works (D15, D23): the steps beside one terminal session that shows them ── */
.session { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 2.5rem; align-items: start; }
.session ol { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.3rem; }
.session ol li { counter-increment: step; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 0 0.8rem; }
.session ol li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  font: 600 0.82rem/1 var(--sans);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.session ol h3 { margin: 0.2rem 0; }
.session ol p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.session .first-run { margin: 1.6rem 0 0; font: 400 0.92rem/1.5 var(--sans); color: var(--muted); }
.tty {
  background: var(--term);
  color: var(--term-text);
  border: 1px solid color-mix(in srgb, var(--term-text) 12%, transparent);
  border-radius: 12px;
  box-shadow: var(--shadow);
  font: 400 0.84rem/1.6 var(--mono);
  overflow: hidden;
}
.tty-bar { display: flex; gap: 0.4rem; padding: 0.7rem 0.9rem; border-bottom: 1px solid color-mix(in srgb, var(--term-text) 10%, transparent); }
.tty-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: color-mix(in srgb, var(--term-text) 22%, transparent); }
.tty-body { margin: 0; padding: 1rem 1.2rem 1.3rem; display: grid; gap: 0.15rem; }
/* Every line keeps a gutter for the step number; a wrapped line lines up under its own text. */
.tty-body > * { position: relative; margin: 0; padding-left: 1.7rem; }
.tty .n {
  position: absolute;
  left: 0;
  top: 0.2em;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 50%;
  border: 1px solid var(--term-accent);
  color: var(--term-accent);
  font-size: 0.66rem;
  line-height: 1;
}
.tty .out { color: var(--term-muted); padding-left: calc(1.7rem + 2ch); }
.tty .ps { color: var(--term-accent); user-select: none; -webkit-user-select: none; }
.tty .out { color: var(--term-muted); padding-left: calc(1.7rem + 2ch); }
.tty .ok { color: #7fd49b; }
.tty .lnk { color: var(--term-text); text-decoration: underline; text-decoration-color: var(--term-accent); overflow-wrap: anywhere; }
.tty .gap { height: 0.7rem; }
@media (max-width: 860px) { .session { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .tty { font-size: 0.76rem; } .tty-body { padding-inline: 0.9rem; } }

/* ── What you can say (D19–D22): one reference sheet, four cells, the commands as a two-column list ── */
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.sheet-head {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.3rem 1rem;
  padding: 1rem 1.5rem;
  background: var(--pane);
  border-bottom: 1px solid var(--line);
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
}
.sheet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sheet-cell { display: flex; flex-direction: column; padding: 1.4rem 1.5rem 1.5rem; border-top: 1px solid var(--line); }
.sheet-cell:nth-child(odd) { border-right: 1px solid var(--line); }
.sheet-cell:nth-child(-n+2) { border-top: 0; }
.sheet-cell h3 { display: flex; align-items: center; gap: 0.55rem; }
.sheet-cell h3::before { content: ''; flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--accent); }
.sheet-cell > p { margin: 0 0 0.9rem; font-size: 0.97rem; color: var(--muted); }
.cmds { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.35rem 1rem; align-items: baseline; }
.cmds dt { font: 400 0.84rem/1.45 var(--mono); color: var(--strong); white-space: nowrap; }
.cmds dt::before { content: '› '; color: var(--accent); }
.cmds dd { margin: 0; color: var(--muted); font: 400 0.86rem/1.45 var(--sans); }
.sheet-cell .crop { margin-top: auto; }
.sheet-cell .cmds + .crop, .sheet-cell .cmds + .chip { margin-top: 1.1rem; }
.sheet-cell .setup-note { margin: 0.8rem 0 0; padding: 0.55rem 0.8rem; border: 1px dashed var(--line); border-radius: 7px; font: 400 0.86rem/1.45 var(--sans); color: var(--muted); }
.setup-note b { color: var(--strong); font-weight: 600; }
.sheet-foot { margin: 0; padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); background: var(--pane); font: 400 0.88rem/1.5 var(--sans); color: var(--muted); }
.sheet-foot b { color: var(--strong); font-weight: 600; }
@media (max-width: 760px) {
  .sheet-grid { grid-template-columns: minmax(0, 1fr); }
  .sheet-cell:nth-child(odd) { border-right: 0; }
  .sheet-cell:nth-child(2) { border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .cmds { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .cmds dd { margin-bottom: 0.45rem; }
  .sheet-head, .sheet-cell, .sheet-foot { padding-inline: 1.1rem; }
}

/* A share link, as the address it is: on the example's frame (D14b) and in the sheet. */
.chip {
  display: inline-block;
  max-width: 100%;
  font: 500 0.8rem/1 var(--mono);
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 2rem;
  padding: 0.4rem 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: fit-content;
}

/* Readable crops of one detail each (D21), cut from the 1120 × 700 feature shots. A click enlarges
   the whole shot (landing.f8bee4f0.js); without script the link opens it. */
.crop { position: relative; display: block; overflow: hidden; border-radius: 9px; border: 1px solid var(--line); background: var(--pane); cursor: zoom-in; }
.crop picture { display: block; }
.crop img { max-width: none; }
/* The shots are 1520 px wide (760 CSS px at 2x); each crop is 1400 px of it, from x 60. Gallery: the
   first row of cards, y 450 to 1370. Recommendations: the first pick, y 440 to 1036. */
.crop.gallery { aspect-ratio: 1400 / 920; }
.crop.gallery img { width: 108.571%; margin: -32.143% 0 0 -4.286%; }
.crop.rec { aspect-ratio: 1400 / 596; }
.crop.rec img { width: 108.571%; margin: -31.429% 0 0 -4.286%; }
.crop .zoom-hint {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 1.8rem;
  height: 1.8rem;
  display: grid;
  place-items: center;
  color: var(--strong);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.crop .zoom-hint svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.crop:hover { border-color: var(--muted); }
dialog.zoom { padding: 0; border: 0; background: transparent; max-width: min(96vw, 1400px); max-height: 94vh; }
dialog.zoom::backdrop { background: var(--backdrop); }
dialog.zoom img { width: auto; max-width: 100%; max-height: 92vh; border-radius: 10px; box-shadow: var(--shadow); cursor: zoom-out; }

/* ── Privacy ── */
.privacy { display: grid; gap: 1.2rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.privacy > div { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.privacy > div + div { border-top-color: var(--pane-line); }
.privacy ul { margin: 0; padding: 0; list-style: none; }
.privacy li { position: relative; padding-left: 1.4rem; margin-bottom: 0.65rem; font-size: 1rem; }
.privacy li::before { content: ''; position: absolute; left: 0.1rem; top: 0.62em; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--accent); }
.privacy > div + div li::before { background: var(--label); }
.more { font: 400 0.92rem/1.5 var(--sans); color: var(--muted); margin: 1.4rem 0 0; }
.more a { font-weight: 500; }

.faq { max-width: 46rem; }

/* ── Closing band: the command once more, for the reader who came all the way down ── */
.closing { margin-top: clamp(4rem, 8vw, 6rem); padding-block: clamp(3rem, 7vw, 4.5rem); background: var(--pane); border-block: 1px solid var(--line); text-align: center; }
.closing h2 { margin-bottom: 1.5rem; }
.closing-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem 1.6rem; margin: 1.5rem 0 0; font: 500 0.92rem/1.5 var(--sans); }
.closing-links a { color: var(--muted); }
.closing-links a:hover { color: var(--accent); }
.foot { margin-top: 0; border-top: 0; }

/* ── Small screens ── */
@media (max-width: 760px) {
  .nav { display: none; }
}
@media (max-width: 480px) {
  .eyebrow { font-size: 0.76rem; }
  .stats b { font-size: 1.3rem; }
  .stats span { font-size: 0.72rem; }
}
@media print {
  .showcase, .closing { display: none; }
}

@media (max-width: 480px) {
  .cmd { width: 100%; padding-left: 0.9rem; gap: 0.55rem; font-size: 0.8rem; }
  .cmd code { flex: 1; }
}
@media (max-width: 360px) {
  .cmd { gap: 0.4rem; padding-left: 0.7rem; font-size: 0.68rem; }
  .copy { width: 1.8rem; height: 1.8rem; margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
