/* ═══════════════════════════════════════════════
   Clipr — landing, guide, about, privacy.
   Palette straight off the banner: charcoal, one
   tomato accent, and the four corner brackets of a
   capture frame as the signature motif.
   ═══════════════════════════════════════════════ */

:root {
  --bg: #0e0e10;
  --bg-2: #141417;
  --card: #18181c;
  --card-2: #1e1e23;
  --line: #26262c;
  --line-2: #34343c;

  --ink: #f2f2f4;
  --ink-2: #c6c6cd;
  --muted: #8b8b95;
  --muted-2: #67676f;

  --rec: #f5623d;
  --rec-2: #d84a26;
  --rec-soft: rgba(245, 98, 61, 0.13);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.55);

  /* stronger than the built-in curves */
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --nav-h: 62px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.64;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(62% 40% at 50% -8%, rgba(245, 98, 61, 0.15), transparent 72%),
    radial-gradient(38% 28% at 90% 6%, rgba(216, 74, 38, 0.08), transparent 74%);
  background-repeat: no-repeat;
}

::selection { background: rgba(245, 98, 61, 0.34); color: #fff; }
a { color: var(--rec); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 810px; }

html[lang="en"] .only-ru { display: none !important; }
html[lang="ru"] .only-en { display: none !important; }

* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--line-2); border-radius: 99px;
  border: 3px solid transparent; background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: #45454f; background-clip: padding-box; }

/* ═══ Nav ═══ */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: rgba(14, 14, 16, 0.95);
  border-bottom: 1px solid var(--line);
}
.nav-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink); font-weight: 700; font-size: 1.14rem; letter-spacing: -0.025em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 27px; height: 27px; display: block; border-radius: 7px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  color: var(--muted); font-size: 0.91rem; font-weight: 500;
  padding: 7px 12px; border-radius: 9px;
  transition: background 150ms ease, color 150ms ease;
}
.nav-links a:hover { background: var(--card); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--rec); background: var(--rec-soft); }
.nav-cta {
  background: linear-gradient(180deg, var(--rec), var(--rec-2)) !important;
  color: #fff !important; font-weight: 600 !important;
  padding: 9px 18px !important; margin-left: 16px;
  box-shadow: 0 6px 18px rgba(245, 98, 61, 0.28);
  transition: transform 150ms var(--ease), filter 150ms ease !important;
}
.nav-cta:hover { filter: brightness(1.08); }
.nav-cta:active { transform: scale(0.97); }

.lang-btn {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 9px;
  padding: 6px 12px; margin-left: 8px;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, transform 150ms var(--ease);
}
.lang-btn:hover { border-color: var(--rec); color: var(--rec); }
.lang-btn:active { transform: scale(0.96); }

.burger {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: 9px; width: 40px; height: 36px; cursor: pointer;
  color: var(--ink); font-size: 1rem; align-items: center; justify-content: center;
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 10px 24px 16px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { padding: 10px 12px; }
  .nav-cta { text-align: center; margin: 6px 0 0; }
  .lang-btn { margin: 8px 0 0; width: 100%; }
}

/* ═══ Section furniture ═══ */
.eyebrow {
  font-family: var(--mono); font-size: 0.71rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--rec);
  margin-bottom: 14px;
}
section { padding: 84px 0; }
section h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.25rem);
  letter-spacing: -0.038em; line-height: 1.16; margin-bottom: 12px;
}
.section-sub { color: var(--muted); max-width: 660px; margin-bottom: 38px; }

/* ═══ The capture frame: four corner brackets ═══ */
.frame { position: relative; padding: 42px 38px; }
.frame::before, .frame::after,
.frame > .c-bl, .frame > .c-br {
  content: ""; position: absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--rec);
  pointer-events: none;
}
.frame::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.frame::after { top: 0; right: 0; border-left: none; border-bottom: none; }
.frame > .c-bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.frame > .c-br { bottom: 0; right: 0; border-left: none; border-top: none; }
.frame.live::before, .frame.live::after,
.frame.live > .c-bl, .frame.live > .c-br { border-color: #ff3b30; }
@media (max-width: 640px) { .frame { padding: 30px 20px; } }

/* a static record dot — it never blinks, blinking at 1 Hz is exactly
   the kind of slow looping motion that wears a page out */
.rec-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--rec);
  display: inline-block; flex: none;
  box-shadow: 0 0 0 4px rgba(245, 98, 61, 0.16);
}

/* ═══ Hero ═══ */
.hero { padding: 82px 0 56px; text-align: center; }
.hero-logo {
  width: 100px; height: 100px; margin: 0 auto 26px; display: block;
  border-radius: 24px; box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 1.02; letter-spacing: -0.05em; font-weight: 800;
  margin-bottom: 18px;
}
.hero .lead { font-size: 1.14rem; color: var(--ink-2); max-width: 620px; margin: 0 auto 32px; }
.hero .lead b { color: var(--ink); font-weight: 600; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.95rem; font-weight: 600; padding: 13px 26px;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform 160ms var(--ease), box-shadow 200ms ease,
              background 160ms ease, border-color 160ms ease, color 160ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--rec), var(--rec-2));
  color: #fff; box-shadow: 0 10px 26px rgba(245, 98, 61, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 34px rgba(245, 98, 61, 0.42); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--rec); color: var(--rec); }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  margin-top: 26px; font-size: 0.85rem; color: var(--muted-2);
}
.hero-meta b { color: var(--ink-2); font-weight: 600; }

/* ═══ The floating panel, drawn in CSS ═══ */
.panel-mock {
  display: inline-flex; align-items: center; gap: 6px;
  background: #1c1c20; border: 1px solid var(--line-2);
  border-radius: 14px; padding: 8px 10px;
  box-shadow: var(--shadow);
}
.panel-mock b {
  font-family: var(--mono); font-size: 0.78rem; color: var(--ink-2);
  padding: 0 8px 0 4px; font-weight: 600;
}
.panel-mock i {
  width: 34px; height: 34px; border-radius: 9px; font-style: normal;
  display: grid; place-items: center; font-size: 0.95rem;
  background: #26262c; color: var(--ink-2);
  transition: background 140ms ease, transform 140ms var(--ease);
}
.panel-mock i.hot { background: var(--rec); color: #fff; }

/* an area being recorded: the frame, a window inside it, the panel on top */
.capture { position: relative; max-width: 820px; margin: 48px auto 0; padding-bottom: 30px; }
.capture .frame { padding: 26px; }
.capture .panel-mock.float {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
}
.fakewin {
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; text-align: left;
}
.fw-bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.fw-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.fw-body { display: grid; grid-template-columns: 116px 1fr; min-height: 190px; }
.fw-side { padding: 16px 14px; border-right: 1px solid var(--line); background: var(--card); }
.fw-side i, .fw-main i { display: block; height: 9px; border-radius: 99px; background: var(--line); margin-bottom: 11px; }
.fw-side i:nth-child(1) { width: 78%; }
.fw-side i:nth-child(2) { width: 58%; }
.fw-side i:nth-child(3) { width: 70%; background: var(--rec); opacity: .55; }
.fw-side i:nth-child(4) { width: 46%; }
.fw-main { padding: 18px 20px; }
.fw-main i:nth-child(1) { width: 62%; height: 13px; }
.fw-main i:nth-child(2) { width: 92%; }
.fw-main i:nth-child(3) { width: 84%; }
.fw-main i:nth-child(4) { width: 88%; }
.fw-main i:nth-child(5) { width: 46%; }
.fw-main i:nth-child(6) { width: 74%; }
@media (max-width: 560px) {
  .fw-body { grid-template-columns: 1fr; }
  .fw-side { display: none; }
  .capture .panel-mock.float { position: static; transform: none; margin-top: 18px; }
  .capture { padding-bottom: 0; }
}

.stage {
  margin: 44px auto 0; max-width: 920px;
  border-radius: var(--r-lg); border: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden; box-shadow: var(--shadow);
}
.stage img { width: 100%; display: block; }
.stage-cap { text-align: center; font-size: 0.83rem; color: var(--muted-2); margin-top: 14px; }

/* ═══ Timeline strip ═══ */
.timeline {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 18px 20px 14px;
}
.track {
  position: relative; height: 46px; border-radius: 8px;
  background:
    repeating-linear-gradient(90deg,
      #202026 0 3px, #26262c 3px 6px, #202026 6px 11px, #2c2c34 11px 14px);
  overflow: hidden;
}
.track .keep {
  position: absolute; top: 0; bottom: 0; left: 18%; right: 26%;
  background: rgba(245, 98, 61, 0.16);
  border-left: 2px solid var(--rec); border-right: 2px solid var(--rec);
}
.track .head { position: absolute; top: 0; bottom: 0; left: 44%; width: 2px; background: #fff; }
.tl-meta {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted-2);
  margin-top: 10px;
}

/* ═══ Features ═══ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr));
  gap: 18px;
}
.feature {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 24px 28px;
  transition: transform 260ms var(--ease), border-color 200ms ease, box-shadow 260ms ease;
}
.feature .ico {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 11px; font-size: 1.05rem; margin-bottom: 14px;
  background: var(--rec-soft); border: 1px solid rgba(245, 98, 61, 0.2);
}
.feature h3 { font-size: 1.04rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.91rem; }
.feature p + p { margin-top: 8px; }

@media (hover: hover) and (pointer: fine) {
  .feature:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
  .panel-mock i:hover { background: #32323a; }
}

/* ═══ Keys ═══ */
kbd {
  font-family: var(--mono); font-size: 0.79em;
  background: var(--card-2); border: 1px solid var(--line-2);
  border-bottom-width: 2px; border-radius: 6px;
  padding: 2px 7px; color: var(--ink-2); white-space: nowrap;
}

/* ═══ Download ═══ */
.download { text-align: center; }
.download .section-sub { margin-left: auto; margin-right: auto; }
.req { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 24px; }
.req span {
  font-family: var(--mono); font-size: 0.73rem; color: var(--muted-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.note-line { margin-top: 18px; font-size: 0.85rem; color: var(--muted-2); }
.note-line b { color: var(--ink-2); }

/* ═══ FAQ ═══ */
.faq { display: grid; gap: 10px; max-width: 820px; }
details {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 22px; transition: border-color 200ms ease;
}
details[open] { border-color: var(--line-2); }
summary {
  cursor: pointer; font-weight: 600; font-size: 0.97rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--mono); font-size: 1.22rem;
  color: var(--rec); transition: transform 200ms var(--ease); flex: none;
}
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
details p + p { margin-top: 10px; }

/* ═══ Prose ═══ */
.prose { padding: 54px 0 90px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.6rem); letter-spacing: -0.048em; margin-bottom: 12px; }
.prose .lead-p { color: var(--muted); font-size: 1.04rem; margin-bottom: 38px; }
.prose h2 {
  font-size: 1.38rem; letter-spacing: -0.032em; margin: 46px 0 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h3 { font-size: 1.05rem; margin: 28px 0 10px; letter-spacing: -0.018em; }
.prose p { margin-bottom: 14px; color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 16px 24px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--card-2); border: 1px solid var(--line);
  border-radius: 6px; padding: 1px 6px; color: #ffab8f;
}
.prose img {
  max-width: 100%; border-radius: var(--r); border: 1px solid var(--line);
  margin: 12px 0 20px; display: block;
}
.callout {
  background: var(--rec-soft); border: 1px solid rgba(245, 98, 61, 0.22);
  border-left: 3px solid var(--rec); border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 20px; margin-bottom: 20px; font-size: 0.94rem; color: var(--ink-2);
}
.callout b, .callout strong { color: var(--ink); }

.steps { counter-reset: s; list-style: none; margin-left: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding-left: 46px; margin-bottom: 26px; }
.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700; color: #fff;
  background: linear-gradient(180deg, var(--rec), var(--rec-2));
}
.steps > li > b { display: block; font-size: 1.02rem; margin-bottom: 6px; letter-spacing: -0.02em; }

.tbl-wrap { overflow-x: auto; margin-bottom: 24px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 440px; }
th, td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono); font-size: 0.71rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); background: var(--bg-2); white-space: nowrap;
}
td:first-child { white-space: nowrap; }
tbody tr:hover { background: var(--card); }

/* ═══ Footer ═══ */
.foot { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; font-size: 0.89rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--rec); }
.foot small { color: var(--muted-2); font-size: 0.82rem; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
@media (prefers-contrast: more) {
  :root { --line: #3a3a44; --muted: #a6a6b0; }
}
@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 54px 0 34px; }
  .panel-mock { flex-wrap: wrap; justify-content: center; }
}
