/* clipengine.net: the app's own colours (clipengine/static/app.css). No web
   fonts, no third-party anything: the privacy page promises that. */
:root {
  --bg: #0e0f13;
  --bg-2: #121319;
  --panel: #16181e;
  --panel-2: #1c1f27;
  --line: #2a2e38;
  --line-2: #363b47;
  --text: #eceef3;
  --muted: #9097a6;
  --faint: #6b7282;
  --accent: #ff4f5a;
  --accent-2: #ff7a45;
  --grad: linear-gradient(135deg, #ff6a3d, #ff2d6f);
  --accent-soft: rgba(255, 79, 90, 0.14);
  --ok: #3ecf8e;
  --warn: #f5b83d;
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: #ff8a7a; text-underline-offset: 3px; }
a:hover { color: #ffb0a4; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; font-weight: 650; }
h4 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 1em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.1em 0.4em; overflow-wrap: anywhere; }
pre { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; overflow-x: auto; }
pre code { background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.wrap.narrow, .narrow { max-width: 820px; }
.lead.narrow { max-width: 680px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.9rem; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(14, 15, 19, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(42, 46, 56, 0.7); }
.top-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-family: var(--display); font-size: 1.08rem; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .top-row > .btn { margin-left: auto; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; text-align: center; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(255, 60, 90, 0.7); }
.btn.primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px -10px rgba(255, 60, 90, 0.85); }
.btn.ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.btn.big { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.btn.small { min-height: 36px; padding: 6px 16px; font-size: 0.92rem; }
.btn.disabled { background: var(--panel-2); color: var(--muted); box-shadow: none; border-color: var(--line-2); cursor: default; }
.btn.disabled:hover { transform: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.center-row { justify-content: center; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.02em; }
.pill.new { background: var(--accent-soft); color: #ff8a7a; border: 1px solid rgba(255, 79, 90, 0.35); }
.eyebrow { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.eyebrow .pill { margin-right: 8px; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 30%; height: 640px; background: radial-gradient(closest-side, rgba(255, 79, 90, 0.18), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } .hero { padding: 84px 0 72px; } }
.lead { font-size: 1.12rem; color: #c3c8d3; }
.hero .lead { font-size: 1.18rem; max-width: 36em; }

/* The phone, with the Live card beside it (overlapping only its bezel) or,
   where there's no room, under it. */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (min-width: 600px) and (max-width: 959px), (min-width: 1100px) {
  .hero-art { flex-direction: row; justify-content: center; gap: 0; }
  .hero-art .live-card { order: 0; align-self: flex-start; margin: 64px -18px 0 0; }
}
.phone { order: 1; position: relative; flex: none; width: 290px; aspect-ratio: 9 / 16; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #2c2f3a, #121319); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px #333846, 0 0 60px -10px rgba(255, 79, 90, 0.25); }
.screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: #000; display: grid; grid-template-rows: 38% 62%; }
.cam, .game { position: relative; overflow: hidden; }
.cam svg, .game svg { width: 100%; height: 100%; }
.cam { border-bottom: 2px solid #000; }
.hook { position: absolute; top: 41%; left: 0; right: 0; margin: 0; text-align: center; font: 900 1.45rem/1.05 var(--display); color: #fff; letter-spacing: 0.01em; text-shadow: 0 0 2px #000, 0 0 2px #000, 0 2px 0 #000, 0 3px 10px rgba(0, 0, 0, 0.6); -webkit-text-stroke: 1px #000; }
.caption { position: absolute; top: 63%; left: 8%; right: 8%; margin: 0; text-align: center; font: 800 1.08rem/1.25 var(--display); color: #fff; text-shadow: 0 0 3px #000, 0 2px 0 #000, 0 2px 8px rgba(0, 0, 0, 0.7); }
.caption mark { background: none; color: #ffd84a; }
.follow { position: absolute; left: 8%; right: 8%; bottom: 9%; display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 14px; background: rgba(12, 13, 18, 0.86); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); animation: follow 6s ease-in-out infinite; }
.follow-badge { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #23252f; }
.follow b { display: block; font-size: 0.82rem; line-height: 1.2; }
.follow small { display: block; font-size: 0.66rem; color: var(--muted); line-height: 1.2; }
.follow-btn { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--grad); font-size: 0.72rem; font-weight: 700; }
@keyframes follow { 0%, 12% { transform: translateY(140%); opacity: 0; } 22%, 78% { transform: none; opacity: 1; } 88%, 100% { transform: translateY(140%); opacity: 0; } }
.tag { position: absolute; top: 3%; right: 4%; font-size: 0.62rem; font-weight: 700; color: rgba(255, 255, 255, 0.85); background: rgba(0, 0, 0, 0.45); padding: 1px 6px; border-radius: 6px; }
.bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.18); }
.bar span { display: block; height: 100%; width: 62%; background: var(--grad); animation: bar 12s linear infinite; }
@keyframes bar { from { width: 4%; } to { width: 100%; } }

.live-card { order: 2; position: relative; z-index: 2; flex: none; width: 100%; max-width: 290px; padding: 14px 16px; border-radius: 16px; background: rgba(22, 24, 30, 0.92); border: 1px solid var(--line-2); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.9); font-size: 0.86rem; }
.live-card ul { list-style: none; margin: 0; padding: 0; }
.live-card li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.live-card li span:last-child { margin-left: auto; color: var(--muted); font-family: var(--mono); font-size: 0.74rem; }
.live-card li.rec { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.live-head { margin: 0 0 8px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.ok { background: var(--ok); box-shadow: 0 0 8px rgba(62, 207, 142, 0.7); }
.dot.live { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1.6s ease-in-out infinite; }
.dot.rec { background: #ff3b3b; }
@keyframes pulse { 50% { opacity: 0.35; } }
@media (min-width: 600px) and (max-width: 959px), (min-width: 1100px) { .hero-art .live-card { width: 205px; } }

/* Sections */
.section { padding: 72px 0; }
.section.tight { padding: 28px 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-head { padding: 64px 0 18px; }
.page-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); }

.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 18px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps p { color: #c3c8d3; margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); font-weight: 800; margin-bottom: 14px; }

.grid { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 680px) { .grid.three, .grid.two { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color 0.2s; }
.card:hover { border-color: var(--line-2); }
.card p { color: #c3c8d3; margin: 0; }
.card.big { padding: 26px; }
.card h3::before { content: ""; display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--grad); margin-bottom: 14px; }

.farm { display: grid; gap: 24px; margin-top: 40px; padding: 28px; border-radius: var(--radius); border: 1px solid rgba(255, 79, 90, 0.3); background: linear-gradient(135deg, rgba(255, 79, 90, 0.08), rgba(255, 122, 69, 0.03)); }
@media (min-width: 900px) { .farm { grid-template-columns: 1.1fr 1fr; } }
.farm p { color: #c3c8d3; margin: 0; }
.note { background: rgba(245, 184, 61, 0.07); border: 1px solid rgba(245, 184, 61, 0.28); border-radius: 12px; padding: 16px 18px; }
.note h4 { color: var(--warn); margin-bottom: 8px; }
.note ul { margin: 0; padding-left: 18px; color: #c9cdd6; font-size: 0.95rem; }
.note li + li { margin-top: 6px; }

/* Pricing */
.plans { display: grid; gap: 18px; margin: 36px auto 0; max-width: 900px; }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.plan.pro { border-color: rgba(255, 79, 90, 0.55); box-shadow: 0 0 0 1px rgba(255, 79, 90, 0.25), 0 30px 60px -30px rgba(255, 60, 90, 0.45); }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .price { font: 800 2.5rem/1.1 var(--display); margin: 6px 0 18px; letter-spacing: -0.02em; }
.plan .price span { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .ticks { flex: 1; margin-bottom: 24px; }
.plan .btn { align-self: stretch; }
.plan .fine { margin: 12px 0 0; }
.plan-flag { position: absolute; top: -12px; right: 22px; margin: 0; padding: 3px 12px; border-radius: 999px; background: var(--grad); font-size: 0.78rem; font-weight: 700; }
.plan-notes { max-width: 900px; margin: 28px auto 0; display: grid; gap: 4px; color: #c3c8d3; font-size: 0.97rem; }
.plan-notes p { margin: 0 0 6px; }

.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 28px; margin: 0 0 10px; color: #d4d8e0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 14px; height: 8px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.ticks li.minus { color: var(--muted); }
.ticks li.minus::before { width: 12px; height: 0; top: 0.75em; border-left: 0; border-bottom: 2.5px solid var(--faint); transform: none; }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin: 0 0 10px; }
details[open] { border-color: var(--line-2); }
summary { cursor: pointer; padding: 16px 0; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--muted); }
details[open] summary::after { content: "–"; }
details p { color: #c3c8d3; margin: 0 0 16px; }

.cta-band { text-align: center; background: radial-gradient(ellipse at center, rgba(255, 79, 90, 0.16), transparent 65%); }
.cta-band .btn { margin-top: 10px; }

/* Download */
.release { background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; margin-bottom: 36px; }
.release h2 { font-size: 1.7rem; }
.release .btn { margin: 8px 0 6px; }
.hash { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; margin: 14px 0 0; font-size: 0.85rem; }
.hash span { color: var(--muted); font-weight: 600; }
h2.sub { font-size: 1.35rem; margin-top: 8px; }
.numbered { padding-left: 22px; }
.numbered li { margin-bottom: 6px; }
.smartscreen { max-width: 460px; margin: 18px 0 24px; padding: 22px 24px; overflow: hidden; background: #0b5cad; color: #fff; border-radius: 4px; font-size: 0.9rem; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8); }
.ss-title { font: 600 1.4rem/1.2 var(--display); margin-bottom: 12px; }
.ss-info { line-height: 1.8; }
.ss-info span { font-weight: 600; }
.smartscreen figcaption { margin: 16px -24px -22px; padding: 8px 24px; background: rgba(0, 0, 0, 0.25); font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); }
.ss-buttons { display: flex; justify-content: flex-end; gap: 8px; margin: 18px 0 0; }
.ss-btn { padding: 5px 18px; border: 2px solid rgba(255, 255, 255, 0.85); font-weight: 600; }
.ss-btn.ss-main { background: rgba(255, 255, 255, 0.15); }
.notes h3 { font-size: 1.15rem; margin-top: 1.4em; }
.notes h4 { color: #ffb0a4; margin-top: 1.1em; }
.notes ul { padding-left: 20px; color: #c9cdd6; }
.notes li { margin-bottom: 6px; }
.notes details { margin-top: 18px; }

.toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; max-width: 520px; margin: 0 auto; padding: 14px 44px 14px 18px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8); font-size: 0.95rem; }
.toast b { color: var(--text); }
.toast-x { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); font-size: 1.3rem; cursor: pointer; }
.toast-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* Legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 1.8em; }
.legal ul, .legal ol { padding-left: 22px; color: #d4d8e0; }
.legal li { margin-bottom: 8px; }
.legal p { color: #d4d8e0; }
.legal blockquote { margin: 0 0 1.2em; padding: 16px 20px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 12px 12px 0; }
.legal blockquote p:last-child, .legal blockquote ul:last-child { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.toc a { font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--text); border-color: var(--muted); }
.data { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.93rem; }
.data th, .data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.data th { color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.data td:first-child { font-weight: 600; color: var(--text); }
.data td { color: #c9cdd6; }
@media (max-width: 680px) {
  .data thead { display: none; }
  .data tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .data td { display: block; border: 0; padding: 2px 0; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 34px; margin-top: 40px; background: var(--bg-2); }
.foot-grid { display: grid; gap: 22px; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1fr 1.4fr; } .foot-small { grid-column: 1 / -1; } }
.foot .brand { margin-bottom: 10px; }
.foot p { margin: 0; font-size: 0.92rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; align-content: flex-start; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--text); }
.foot-small { font-size: 0.85rem !important; border-top: 1px solid var(--line); padding-top: 18px; }
