/* SetMirror landing page. Tokens mirror the app (DESIGN.md): system fonts, blue accent, light/dark follow the device. */
:root {
  --bg: 255 255 255;
  --bg2: 242 242 247;
  --card: 255 255 255;
  --text: 0 0 0;
  --muted: 99 99 102;
  --line: 209 209 214;
  --accent: 0 122 255;
  --accent-strong: 0 100 209;
  --accent-text: 0 88 184;
  --ok: 36 138 61;
  --warn: 255 149 0;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 12px 32px rgb(0 0 0 / 0.08);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: 0 0 0;
    --bg2: 28 28 30;
    --card: 28 28 30;
    --text: 255 255 255;
    --muted: 174 174 178;
    --line: 72 72 74;
    --accent: 10 132 255;
    --accent-strong: 0 113 227;
    --accent-text: 112 181 255;
    --ok: 48 209 88;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 12px 32px rgb(0 0 0 / 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--text));
  font: 400 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: rgb(var(--accent-text)); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid rgb(var(--accent)); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.muted { color: rgb(var(--muted)); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgb(var(--accent-text)); }
.skip { position: absolute; left: -999px; top: 8px; background: rgb(var(--accent-strong)); color: #fff; padding: 8px 16px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px; font: 600 16px/1 inherit; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: rgb(var(--accent-strong)); color: #fff; }
.btn-primary:hover { background: rgb(var(--accent)); }
.btn-ghost { background: transparent; color: rgb(var(--text)); border-color: rgb(var(--line)); }
.btn-ghost:hover { background: rgb(var(--bg2)); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 15px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 50; background: rgb(var(--bg) / 0.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgb(var(--line) / 0.6); }
.bar .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: rgb(var(--text)); text-decoration: none; font-size: 19px; }
.brand b { font-weight: 700; }
.brand span { font-weight: 400; }
.brand svg { width: 26px; height: 26px; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { color: rgb(var(--muted)); text-decoration: none; font-size: 15px; }
.nav a:hover { color: rgb(var(--text)); }
.bar .btn { margin-left: 8px; }
@media (max-width: 820px) { .nav { display: none; } .bar .btn { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; text-align: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.8rem); line-height: 1.04; font-weight: 700; max-width: 16ch; margin: 16px auto 0; }
.hero h1 em { font-style: normal; color: rgb(var(--accent-text)); }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.35rem); color: rgb(var(--muted)); max-width: 52ch; margin: 24px auto 0; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hero .note { margin-top: 16px; font-size: 14px; color: rgb(var(--muted)); }
.stage { position: relative; margin: 48px auto 0; width: min(1160px, 100% - 48px); aspect-ratio: 16 / 7; border-radius: 22px 22px 0 0; background: #000; border: 1px solid rgb(var(--line)); border-bottom: 0; overflow: hidden; box-shadow: var(--shadow); }
.stage canvas { width: 100%; height: 100%; }
.stage .chip { position: absolute; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgb(0 0 0 / 0.55); color: #fff; border: 1px solid rgb(255 255 255 / 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.stage .c1 { left: 16px; top: 16px; }
.stage .c2 { right: 16px; top: 16px; }
.stage .c3 { left: 16px; bottom: 16px; }
.stage .c4 { right: 16px; bottom: 16px; }
@media (max-width: 640px) { .stage { aspect-ratio: 4 / 5; } .stage .c3, .stage .c4 { display: none; } .hero { padding-top: 48px; } }

/* Sections */
section { padding: 96px 0; }
.alt { background: rgb(var(--bg2)); }
.head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.head h2 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.1; font-weight: 700; margin-top: 12px; }
.head p { margin-top: 16px; color: rgb(var(--muted)); font-size: 1.15rem; }

.formats { padding: 40px 0; border-bottom: 1px solid rgb(var(--line) / 0.6); }
.formats .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; justify-content: center; color: rgb(var(--muted)); font-size: 15px; }
.formats strong { color: rgb(var(--text)); font-weight: 600; }
.tag { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid rgb(var(--line)); font-size: 13px; font-weight: 600; color: rgb(var(--text)); }

/* Feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 56px 0; }
.row:nth-child(even) .copy { order: 2; }
.row h3 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.15; margin-top: 8px; }
.row .copy > p { margin-top: 16px; color: rgb(var(--muted)); }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px; border-left: 2.5px solid rgb(var(--accent)); border-bottom: 2.5px solid rgb(var(--accent)); transform: translateY(-50%) rotate(-45deg) scale(0.9); }
.panel { background: rgb(var(--card)); border: 1px solid rgb(var(--line)); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.alt .panel { border-color: rgb(var(--line) / 0.8); }
.panel svg { width: 100%; height: auto; }
@media (max-width: 900px) { .row { grid-template-columns: 1fr; gap: 32px; padding: 32px 0; } .row:nth-child(even) .copy { order: 0; } section { padding: 64px 0; } }

/* Mini UI used inside illustrations */
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--line)); font-size: 13px; color: rgb(var(--muted)); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--line)); }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 16px; }
.shot { position: relative; aspect-ratio: 2.39 / 1; border-radius: 10px; overflow: hidden; background: linear-gradient(160deg, #1d2b3f, #0b0f17 70%); }
.shot:nth-child(2) { aspect-ratio: 16 / 9; background: linear-gradient(200deg, #3a2a1c, #0b0f17 70%); }
.shot:nth-child(3) { aspect-ratio: 16 / 9; background: linear-gradient(120deg, #1b3a33, #0b0f17 70%); }
.shot:nth-child(4) { aspect-ratio: 2.39 / 1; background: linear-gradient(20deg, #2f2142, #0b0f17 70%); }
.shot b { position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; background: rgb(var(--accent-strong)); color: #fff; font-size: 12px; display: grid; place-items: center; }
.shot i { position: absolute; right: 8px; bottom: 6px; font-size: 11px; font-style: normal; color: #fff; opacity: .85; }
.shot::after { content: ""; position: absolute; inset: 14% 8%; border: 1px solid rgb(255 255 255 / 0.55); border-radius: 3px; }
.listline { display: flex; justify-content: space-between; padding: 12px 16px; border-top: 1px solid rgb(var(--line)); font-size: 14px; }
.listline span:last-child { color: rgb(var(--muted)); }

/* Grid of smaller features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: rgb(var(--card)); border: 1px solid rgb(var(--line)); border-radius: 18px; padding: 28px; }
.card h3 { font-size: 1.25rem; margin-top: 16px; }
.card p { margin-top: 8px; color: rgb(var(--muted)); font-size: 16px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--accent) / 0.14); display: grid; place-items: center; color: rgb(var(--accent-text)); }
.ico svg { width: 24px; height: 24px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: 18px; background: rgb(var(--card)); border: 1px solid rgb(var(--line)); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgb(var(--accent-strong)); color: #fff; font-weight: 700; }
.step h3 { font-size: 1.2rem; margin-top: 16px; }
.step p { margin-top: 8px; color: rgb(var(--muted)); font-size: 16px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Security */
.sec { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.sec .card { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.sec .card h3 { margin-top: 0; }
@media (max-width: 760px) { .sec { grid-template-columns: 1fr; } }

/* Audience */
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.who .card h3 { margin-top: 0; font-size: 1.1rem; }
@media (max-width: 960px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .who { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid rgb(var(--line)); }
.faq details { border-bottom: 1px solid rgb(var(--line)); padding: 20px 4px; }
.faq summary { cursor: pointer; font-size: 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: rgb(var(--accent-text)); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: rgb(var(--muted)); }

/* Final call + footer */
.final { text-align: center; }
.final h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; max-width: 18ch; margin: 0 auto; }
.final p { margin: 16px auto 0; max-width: 46ch; color: rgb(var(--muted)); font-size: 1.15rem; }
.final .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
footer { padding: 40px 0 56px; border-top: 1px solid rgb(var(--line)); font-size: 14px; color: rgb(var(--muted)); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: rgb(var(--muted)); }
footer a:hover { color: rgb(var(--text)); }

/* Reveal on scroll (only when JS runs; content is visible without it) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* Eyebrows inside heads and copy columns must beat the generic paragraph rules above. */
.head p.eyebrow, .row .copy > p.eyebrow { color: rgb(var(--accent-text)); font-size: 13px; margin-top: 0; }

/* No inline styles anywhere (strict CSP): the few one-offs live here. */
section.hero { padding-bottom: 0; }
section.tight { padding-bottom: 24px; }
.mock-title { margin-left: 8px; }
.fine { margin-top: 16px; font-size: 14px; }
.notfound { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 16px; }
.notfound h1 { font-size: 2rem; }

/* Legal pages: the text comes from the app's own components (rendered by site/build-legal.mjs), so the app's utility class names are styled here. */
.legal { max-width: 760px; padding: 56px 0 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.1; }
.legal h2 { font-size: 1.35rem; margin-top: 2.25rem; margin-bottom: 0.5rem; }
.legal p, .legal li { font-size: 16px; margin-top: 0.5rem; }
.legal ul, .legal ol { padding-left: 1.25rem; margin: 0.5rem 0 0; }
.legal .text-secondary { color: rgb(var(--muted)); }
.legal .text-footnote { font-size: 13px; }
.legal .font-medium { font-weight: 600; }
.legal .font-normal { font-weight: 400; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid rgb(var(--line)); }
.legal th { color: rgb(var(--muted)); font-weight: 600; }
.legal .overflow-hidden { border: 1px solid rgb(var(--line)); border-radius: 12px; background: rgb(var(--card)); overflow: hidden; }
.legal .overflow-hidden > div { padding: 12px 16px; border-bottom: 1px solid rgb(var(--line)); }
.legal .overflow-hidden > div:last-child { border-bottom: 0; }
.legal .flex { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.legal .flex p { margin-top: 0; }
.legal code { font-size: 0.9em; }
