/* DuoCam site. Bright blue gradient, yellow pills, the app's violet / record red
   for the brand mark. System fonts, no external requests. */

:root {
  --blue-1: #2F6BFF;
  --blue-2: #00B4FF;
  --blue-3: #6FD3FF;
  --sky: #EEF6FF;
  --surface: #FFFFFF;
  --line: #D6E4F5;
  --text: #0E0E10;
  --dim: #3E4A5C;
  --faint: #66748A;
  --yellow: #FFD43B;
  --yellow-deep: #F5C400;
  --violet: #7B5CFF;
  --rec: #FF3B4E;
  --dark: #0E0E10;
  --link: #1F56E0;
  --radius: 20px;
  --wrap: 1120px;
  --grad: linear-gradient(135deg, var(--blue-1) 0%, var(--blue-2) 55%, var(--blue-3) 100%);
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

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

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--yellow); color: var(--dark); padding: 8px 14px; border-radius: 999px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ── header ─────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(47, 107, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -0.01em; font-size: 19px; }
.brand:hover { color: #fff; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: rgba(255, 255, 255, 0.92); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.16); }
.nav a[aria-current="page"] { color: var(--dark); background: var(--yellow); }
@media (max-width: 600px) { .nav .opt { display: none; } .nav a { padding: 6px 9px; } }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 64px 0 72px; overflow: hidden; background: var(--grad); color: #fff; }
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.12); pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -160px; top: -200px; }
.hero::after { width: 360px; height: 360px; left: -140px; bottom: -200px; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14px; line-height: 1.2;
  color: var(--dark); background: var(--yellow);
  padding: 7px 14px; border-radius: 999px;
}
.pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 0 3px rgba(255, 59, 78, 0.25); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(36px, 6vw, 62px); margin: 18px 0; overflow-wrap: break-word; }
h1 em { font-style: normal; color: var(--yellow); }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: rgba(255, 255, 255, 0.94); max-width: 36em; margin: 0 0 28px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.chips li { background: rgba(255, 255, 255, 0.18); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff; font-weight: 600; font-size: 14px; padding: 5px 12px; border-radius: 999px; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.play-badge {
  display: inline-flex; align-items: center; gap: 10px; min-height: 54px;
  padding: 10px 24px; border-radius: 999px; text-decoration: none;
  background: var(--yellow); color: var(--dark); font-weight: 800;
  box-shadow: 0 10px 30px rgba(14, 14, 16, 0.18);
}
.play-badge:hover { color: var(--dark); background: var(--yellow-deep); }
.play-badge small { display: block; font-weight: 600; font-size: 12px; opacity: 0.75; line-height: 1.2; }
.play-badge svg { width: 22px; height: 22px; flex: none; }
.ghost { color: #fff; font-weight: 700; text-decoration: none; padding: 10px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.6); }
.ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }
.fine { color: rgba(255, 255, 255, 0.86); font-size: 14px; margin: 16px 0 0; }
/* the QR to /get/: for desktop visitors, who would scan it with their phone */
.qr-get { display: none; }
@media (min-width: 880px) and (hover: hover) {
  .qr-get { display: flex; align-items: center; gap: 18px; margin-top: 26px; max-width: 440px; padding: 14px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); }
  .qr-get img { width: 112px; height: 112px; border-radius: 10px; background: #fff; flex: 0 0 auto; }
  .qr-get p { margin: 0; color: rgba(255, 255, 255, 0.9); font-size: 15px; line-height: 1.45; }
  .qr-get .qr-title { font-weight: 800; color: #fff; font-size: 16px; margin-bottom: 4px; }
}

.hero-shot { justify-self: center; width: min(320px, 78vw); position: relative; }
.hero-shot img { border-radius: 34px; border: 8px solid var(--dark); box-shadow: 0 30px 70px rgba(14, 14, 16, 0.35); background: var(--dark); }
.hero-shot .tag { position: absolute; left: -14px; top: 28px; }
.hero-shot .tag.b { left: auto; right: -14px; top: auto; bottom: 48px; }
@media (max-width: 400px) { .hero-shot .tag { left: -4px; } .hero-shot .tag.b { right: -4px; } }

/* ── sections ───────────────────────────────────────────────────────────── */
section { padding: 64px 0; }
.section-head { max-width: 42em; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); }
.section-head p { color: var(--dim); margin: 12px 0 0; }
.section-head .pill { margin-bottom: 14px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: 0 6px 20px rgba(47, 107, 255, 0.06);
}
.card h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
.card h3 .ico { width: 34px; height: 34px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; flex: none; }
.card h3 .ico svg { width: 19px; height: 19px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card ul { margin: 0; padding-left: 18px; color: var(--dim); }
.card li + li { margin-top: 6px; }
.card p { color: var(--dim); margin: 0; }
.tag-pro { font: 800 10px/1 var(--mono); color: var(--dark); background: var(--yellow); border-radius: 999px; padding: 3px 7px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0.04em; }

/* ── screenshots strip ─────────────────────────────────────────────────── */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(190px, 230px); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 22px; border: 6px solid var(--dark); background: var(--dark); }
.shots figcaption { margin-top: 10px; }
.shots figcaption span { display: inline-block; background: var(--yellow); color: var(--dark); font-weight: 700; font-size: 13px; padding: 4px 11px; border-radius: 999px; }
.credit-note { color: var(--faint); font-size: 14px; margin-top: 12px; }

/* ── layouts demo ──────────────────────────────────────────────────────── */
.layouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.lay { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; }
.lay .scr { aspect-ratio: 9 / 16; max-width: 120px; margin: 0 auto 12px; border-radius: 14px; background: linear-gradient(170deg, #3B7BFF, #00B4FF); position: relative; overflow: hidden; border: 4px solid var(--dark); }
.lay .scr i { position: absolute; background: linear-gradient(170deg, #9C85FF, #7B5CFF); border: 2px solid #fff; }
.lay.pip i { width: 42%; height: 30%; right: 8%; bottom: 8%; border-radius: 8px; }
.lay.split i { left: 0; right: 0; bottom: 0; height: 50%; border-width: 2px 0 0; }
.lay.side i { top: 0; bottom: 0; right: 0; width: 50%; border-width: 0 0 0 2px; }
.lay.circle i { width: 44%; aspect-ratio: 1; right: 8%; bottom: 8%; border-radius: 50%; }
.lay b { display: block; font-size: 16px; }
.lay small { color: var(--faint); font-size: 13px; }

/* ── free vs pro ────────────────────────────────────────────────────────── */
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-size: 15px; color: var(--dim); background: #E3EEFF; }
.compare thead th:last-child { color: var(--dark); background: var(--yellow); }
.compare tbody tr:last-child td, .compare tbody tr:last-child th { border-bottom: 0; }
.compare th[scope="row"] { font-weight: 700; }
.compare td { color: var(--dim); }
@media (max-width: 560px) { .compare th, .compare td { padding: 11px 9px; font-size: 14.5px; } }
.table-scroll { overflow-x: auto; }

/* ── privacy band ───────────────────────────────────────────────────────── */
.band { background: var(--grad); color: #fff; border-radius: 28px; padding: 36px; }
.band h2 { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 12px; }
.band p { color: rgba(255, 255, 255, 0.94); margin: 0 0 14px; max-width: 46em; }
.band a.btn { margin-top: 6px; }
@media (max-width: 560px) { .band { padding: 24px; } }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; }
.faq details + details { margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--dark); font: 800 18px/26px var(--mono); text-align: center; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--dim); margin: 0 0 16px; }

/* ── documents (privacy, terms, support) ────────────────────────────────── */
.doc-hero { background: var(--grad); color: #fff; padding: 44px 0 40px; }
.doc-hero .wrap { max-width: 840px; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 48px); margin: 14px 0 8px; }
.doc-hero .meta { color: rgba(255, 255, 255, 0.9); font: 14px/1.5 var(--mono); margin: 0; }
.doc { padding: 36px 0 72px; }
.doc .wrap { max-width: 840px; }
.doc h2 { font-size: 25px; margin: 44px 0 12px; scroll-margin-top: 80px; }
.doc h3 { font-size: 18px; margin: 26px 0 8px; scroll-margin-top: 80px; }
.doc p, .doc li { color: #26303D; }
.doc li + li { margin-top: 6px; }
.doc code { font-family: var(--mono); font-size: 0.86em; background: #E3EEFF; padding: 1px 6px; border-radius: 6px; color: #1A3FA8; overflow-wrap: anywhere; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: 14px; padding: 18px 20px; margin-top: 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 24px 0; }
.doc .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; background: var(--surface); }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: #E3EEFF; color: var(--text); }
.doc td { color: #26303D; }
.doc td:first-child { white-space: nowrap; }
@media (max-width: 560px) { .doc td:first-child { white-space: normal; } }

.contact-card { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; margin: 20px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 999px; background: var(--yellow); color: var(--dark); font-weight: 800; text-decoration: none; }
.btn:hover { color: var(--dark); background: var(--yellow-deep); }

/* ── footer ─────────────────────────────────────────────────────────────── */
footer { background: var(--dark); padding: 40px 0 48px; color: #A9B1BD; font-size: 14px; }
footer .wrap { display: grid; gap: 16px; }
footer .row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: #E6EAF0; text-decoration: none; }
footer a:hover { color: var(--yellow); }
footer p { margin: 0; }
footer .credits a { text-decoration: underline; }

/* ── reveal ─────────────────────────────────────────────────────────────── */
.reveal { opacity: 1; transform: none; }
html:not(.no-js) .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html:not(.no-js) .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; } }

/* Blog */
.doc figure.shot { margin: 28px auto; max-width: 320px; text-align: center; }
.doc figure.shot img { width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(20, 40, 90, .14); }
.doc figure.shot figcaption { font-size: 14px; color: var(--dim); margin-top: 10px; }
.doc figure.shot video { display: block; width: 100%; height: auto; border-radius: 22px; border: 1px solid var(--line); background: #000; box-shadow: 0 10px 30px rgba(20, 40, 90, .14); }
.doc ol.timeline { padding-left: 0; list-style: none; }
.doc ol.timeline li { margin: 0 0 8px; }
.doc ol.timeline time { display: inline-block; min-width: 3.4em; font-weight: 700; font-variant-numeric: tabular-nums; }
.doc .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.doc .pair figure.shot { margin: 0; }
.doc .tip { background: #FFF8DB; border: 1px solid #F2DE8A; border-radius: 14px; padding: 14px 18px; margin: 20px 0; }
.doc .cta { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; justify-content: space-between; }
.doc .cta p { margin: 0; flex: 1 1 260px; }
.posts { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.posts li { margin: 0 !important; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
.posts img { width: 84px; height: auto; border-radius: 12px; flex: none; border: 1px solid var(--line); }
.posts h2, .posts h3 { font-size: 18px; margin: 0 0 6px; }
.posts h2 a, .posts h3 a { text-decoration: none; color: var(--text); }
.posts p { margin: 0; font-size: 15px; color: var(--dim); }
