/* video-lens.org landing page (034 B2, D5). Script-free, 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, the takeaway box, tabular times. */

/* Colors and fonts come from the tokens stylesheet, the top bar and footer from frame.css, both linked
   first. No script here, so no data-theme: the page follows the OS (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;
}
kbd { font-weight: 500; color: var(--strong); border-color: var(--pane-line); }

.narrow { max-width: 46rem; }

/* 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); }

/* ── Section nav in the top bar (the frame is frame.css) ── */
.nav { display: flex; gap: 1.4rem; font: 500 0.88rem/1 var(--sans); }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--strong); }
.btn svg { width: 1.05em; height: 1.05em; fill: currentColor; flex-shrink: 0; }

/* ── Hero ── */
.hero { padding-top: clamp(2.5rem, 7vw, 5rem); text-align: center; }
.hero .narrow { margin: 0 auto; max-width: 60rem; }
.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;
}

/* The install command: one click selects all of it (no script on this page, so no copy button). */
.cmd {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  margin: 0 auto;
  width: fit-content;
  background: var(--term);
  color: var(--term-text);
  border: 1px solid color-mix(in srgb, var(--term-text) 12%, transparent);
  border-radius: 10px;
  padding: 0.85rem 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;
}
.cmd-hint { font: 400 0.82rem/1.5 var(--sans); color: var(--muted); margin: 0.75rem 0 0; }
.cmd-hint code { font-size: 0.82rem; }

.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin: 1.6rem 0 0; }
.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;
}
.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 { transform: translateX(2px); }

/* ── Showcase: the report in a browser window, the phone beside it ── */
.showcase { position: relative; margin: clamp(2.5rem, 6vw, 4rem) auto 0; max-width: 70rem; }
.window {
  display: block;
  background: var(--pane);
  border: 1px solid var(--pane-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.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 { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--pane-line); }
.window-bar span { margin: 0 auto; font: 500 0.72rem/1 var(--sans); color: var(--label); padding-right: 2.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.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);
}
.phone img { width: 100%; aspect-ratio: 390 / 720; border-radius: 1.45rem; }
.caption { font: 400 0.85rem/1.5 var(--sans); color: var(--muted); margin: 1.1rem 0 0; text-align: center; }
.caption a { font-weight: 500; }

/* 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) {
  .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, 9vw, 6.5rem) 0; }
.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
h2 {
  font: 600 clamp(1.6rem, 1.1rem + 2vw, 2.4rem)/1.12 var(--sans);
  letter-spacing: -0.025em;
  color: var(--strong);
  margin: 0 0 0.8rem;
  text-wrap: balance;
}
.section-head p { 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; }

/* How it works: three numbered steps, the report's key-point circles. */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative;
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  font: 600 0.85rem/1 var(--sans);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.steps p { margin: 0 0 0.8rem; font-size: 1rem; }
.steps p:last-child { margin-bottom: 0; }
.prompts { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.4rem; }
.prompts li {
  font: 400 0.84rem/1.45 var(--mono);
  color: var(--strong);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
}
.prompts li::before { content: '› '; color: var(--accent); }
.nw { white-space: nowrap; }

/* ── What's in a report: each part in its own shape, with real text from the example ── */
.anatomy { display: grid; gap: 1.2rem; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.part { grid-column: span 12; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; }
.part .specimen { flex: 1; margin-bottom: 1.2rem; }
.part .note { margin: auto 0 0; padding-top: 1rem; border-top: 1px solid var(--line); font: 400 0.92rem/1.55 var(--sans); color: var(--muted); }
.part .note strong { font-weight: 600; }
@media (min-width: 760px) {
  .part.summary, .part.takeaway { grid-column: span 6; }
  .part.points, .part.outline { grid-column: span 6; }
}
@media (min-width: 1040px) {
  .part.summary { grid-column: span 7; }
  .part.takeaway { grid-column: span 5; }
  .part.points { grid-column: span 6; }
  .part.outline { grid-column: span 6; }
}
.summary .specimen p { margin: 0; font-size: 1.12rem; line-height: 1.6; color: var(--strong); }
.takeaway .box { border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 6px 6px 0; padding: 0.9rem 1.1rem 1rem; }
.takeaway .box p { margin: 0; font-size: 1rem; line-height: 1.6; }

.kp { list-style: none; margin: 0; padding: 0; counter-reset: kp 1; }
.kp > li { counter-increment: kp; position: relative; padding: 0.8rem 0 0.8rem 2.3rem; border-top: 1px solid var(--line); }
.kp > li:first-child { border-top: 0; padding-top: 0.2rem; }
.kp > li::before, .ref {
  display: grid;
  place-items: center;
  border-radius: 50%;
  font: 600 0.7rem/1 var(--sans);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.kp > li::before { content: counter(kp); position: absolute; left: 0; top: 0.8rem; width: 1.5rem; height: 1.5rem; }
.kp > li:first-child::before { top: 0.2rem; }
.kp > li.now::before { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.kp strong { font: 600 0.98rem/1.4 var(--sans); }
.kp p { margin: 0.3rem 0 0; font-size: 0.95rem; line-height: 1.55; }
.chip {
  display: inline-block;
  margin-left: 0.3rem;
  padding: 0 0.45rem;
  border-radius: 1rem;
  background: var(--accent-soft);
  color: var(--accent);
  font: 500 0.72rem/1.6 var(--sans);
  font-variant-numeric: tabular-nums;
  vertical-align: 0.08em;
  white-space: nowrap;
}

.rows { list-style: none; margin: 0 -1.5rem; padding: 0; }
.rows > li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; align-items: baseline; gap: 0 0.3rem; padding: 0.45rem 1.5rem; }
.rows .t { font: 500 0.8rem/1.4 var(--sans); font-variant-numeric: tabular-nums; color: var(--accent); }
.rows .title { font: 400 0.92rem/1.4 var(--sans); color: var(--text); }
.rows .refs { display: flex; gap: 0.2rem; }
.ref { width: 1.2rem; height: 1.2rem; font-size: 0.62rem; }
.rows .detail { grid-column: 2 / span 2; margin: 0.25rem 0 0.1rem; font: 400 0.84rem/1.5 var(--sans); color: var(--muted); }
.rows > li.active { background: var(--accent-soft); box-shadow: inset 3px 0 0 0 var(--accent); }
.rows > li.active .title { font-weight: 600; color: var(--strong); }
.timeline { display: flex; gap: 2px; margin: 0 0 0.9rem; }
.timeline i { height: 5px; background: var(--pane-line); border-radius: 1px; }
.timeline i.done { background: var(--accent); }
/* Segment widths: the example's 13 sections, as long as each is (seconds / 3992). */
.timeline i:nth-child(1) { flex: 175; }  .timeline i:nth-child(2) { flex: 200; }
.timeline i:nth-child(3) { flex: 301; }  .timeline i:nth-child(4) { flex: 275; }
.timeline i:nth-child(5) { flex: 414; }  .timeline i:nth-child(6) { flex: 340; }
.timeline i:nth-child(7) { flex: 245; }  .timeline i:nth-child(8) { flex: 298; }
.timeline i:nth-child(9) { flex: 657; }  .timeline i:nth-child(10) { flex: 326; }
.timeline i:nth-child(11) { flex: 428; } .timeline i:nth-child(12) { flex: 281; }
.timeline i:nth-child(13) { flex: 52; }
.timeline i.half { background: linear-gradient(90deg, var(--accent) 40%, var(--pane-line) 40%); }

/* The player beside the text: a wide band under the four parts. */
.beside {
  margin-top: 1.2rem;
  display: grid;
  gap: 1.5rem 2.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  background: var(--pane);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
@media (min-width: 860px) { .beside { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.beside p { margin: 0 0 0.9rem; }
.beside p:last-child { margin-bottom: 0; }
.keys { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem 1rem; margin: 0; align-items: center; font: 400 0.9rem/1.4 var(--sans); }
.keys dt { white-space: nowrap; }
.keys dd { margin: 0; color: var(--muted); }

/* ── Around the report: four cards ── */
.cards { display: grid; gap: 1.2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; }
.card .icon {
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.card .icon svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0 0 1rem; font-size: 0.98rem; }
.card .use { margin-top: auto; margin-bottom: 0; font: 400 0.8rem/1.45 var(--mono); color: var(--strong); background: var(--pane); border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.6rem; }
.card .use::before { content: '› '; color: var(--accent); }

.extras { list-style: none; margin: 1.8rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.extras li { font: 500 0.84rem/1 var(--sans); color: var(--muted); border: 1px solid var(--line); border-radius: 2rem; padding: 0.5rem 0.8rem; }

/* ── Privacy ── */
.privacy { display: grid; gap: 1.2rem; 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: 500 0.92rem/1.5 var(--sans); margin: 1.6rem 0 0; }

/* ── Install ── */
.install { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .install { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } }
.term {
  background: var(--term);
  color: var(--term-text);
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1rem;
  font: 400 0.86rem/1.7 var(--mono);
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.term code { font: inherit; background: none; border: 0; padding: 0; color: inherit; white-space: pre; }
.term .c { color: var(--term-muted); }
.term .ps { color: var(--term-accent); user-select: none; -webkit-user-select: none; }
.install .side h3 { margin-top: 1.6rem; }
.install .side h3:first-child { margin-top: 0; }
.install .side p { margin: 0 0 0.6rem; font-size: 1rem; }
.agents { list-style: none; margin: 0.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.agents li { font: 500 0.82rem/1 var(--sans); color: var(--strong); background: var(--pane); border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.65rem; }

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; }
.manual { margin-top: 1.6rem; }
.manual summary { font-size: 0.95rem; }
.manual p { font-size: 0.95rem; }
details p { font-size: 1rem; }
.faq { max-width: 46rem; margin: 0 auto; }

/* ── Closing band ── */
.closing { margin-top: clamp(4rem, 9vw, 6.5rem); padding-block: clamp(3rem, 7vw, 4.5rem); background: var(--pane); border-block: 1px solid var(--line); text-align: center; }
.closing h2 { margin-bottom: 1.4rem; }

/* The closing band ends the page, so the frame's footer needs no rule or gap of its own here. */
.foot { margin-top: 0; border-top: 0; }

/* ── Small screens ── */
@media (max-width: 720px) {
  .nav { display: none; }
}
@media (max-width: 480px) {
  .cmd { width: 100%; padding: 0.8rem 0.9rem; }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
  .part { padding: 1.2rem 1.1rem 1.3rem; }
  .rows { margin-inline: -1.1rem; }
  .rows > li { padding-inline: 1.1rem; grid-template-columns: 3rem minmax(0, 1fr) auto; }
  .eyebrow { font-size: 0.76rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .showcase, .closing { display: none; }
}
