/* Recortia landing. One accent (coral), one radius scale: controls 12px, surfaces 20px. */
:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f2f3f5;
  --surface-2: #e7e9ed;
  --line: rgba(22, 24, 28, .12);
  --text: #16181c;
  --muted: #4d535e;
  --accent: #fa6b54;          /* fills */
  --accent-text: #b8392a;     /* coral as text on light: 5.6:1 */
  --on-accent: #16181c;
  --shadow: 0 24px 60px rgba(22, 24, 28, .14);
  --r-ctl: 12px;
  --r-srf: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131518;
    --surface: #1b1e23;
    --surface-2: #23272d;
    --line: rgba(255, 255, 255, .10);
    --text: #f5f5f7;
    --muted: #a9afb9;
    --accent-text: #fa6b54;   /* 6.3:1 on the dark ground */
    --shadow: 0 30px 80px rgba(0, 0, 0, .5);
  }
}

* { 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(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--pad); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.small { font-size: 14px; color: var(--muted); line-height: 1.5; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
section[id] { scroll-margin-top: 84px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 10px 14px; border-radius: var(--r-ctl); background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* nav */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom: 1px solid var(--line); }
.nav { height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.02em; text-decoration: none; }
.links { display: flex; gap: 4px; list-style: none; margin: 0 0 0 12px; padding: 0; }
.links a, .nav-end a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: var(--r-ctl); text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
.links a:hover, .nav-end a:hover { color: var(--text); background: var(--surface); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.lang-switch { font-weight: 600 !important; letter-spacing: .02em; border: 1px solid var(--line); }
@media (max-width: 767px) { .links { display: none; } .gh span { display: none; } .nav { gap: 12px; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: var(--r-ctl);
  font-weight: 600; font-size: 17px; text-decoration: none; white-space: nowrap; transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }
.btn:active { transform: translateY(1px) scale(.99); }
.cta-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px rgba(250, 107, 84, .28); }
.cta-primary:hover { background: #ff7c66; }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* hero */
.hero { padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 112px); }
.hero h1 { font-size: clamp(40px, 5.4vw, 76px); letter-spacing: -0.045em; max-width: 17em; text-wrap: balance; }
.hero-row { margin-top: clamp(28px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.lede { margin: 0 0 28px; font-size: clamp(18px, 1.5vw, 21px); color: var(--muted); max-width: 34ch; }
.hero .ctas { flex-direction: column; align-items: flex-start; }
.player { position: relative; margin: 0; border-radius: var(--r-srf); overflow: hidden; background: #131518; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 16 / 9; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.sound { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-ctl); background: rgba(19, 21, 24, .72); color: #f5f5f7; font: 600 15px var(--font); cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.sound:hover { background: rgba(19, 21, 24, .9); }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: block; }
.sound[aria-pressed="true"] .off { display: none; }
@media (max-width: 1023px) { .hero-row { grid-template-columns: minmax(0, 1fr); } .lede { max-width: 46ch; } .hero .ctas { flex-direction: row; } }

/* redaction */
.redact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.redact h2, .features h2, .privacy h2, .install h2 { font-size: clamp(34px, 3.6vw, 50px); }
.redact-copy p { margin-top: 20px; color: var(--muted); max-width: 44ch; }
.chips { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.chips img { width: 220px; height: auto; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); }
.compare-wrap { margin: 0; }
.compare { position: relative; border-radius: var(--r-srf); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); aspect-ratio: 1000 / 721; background: #fff; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--v)); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--v); width: 3px; margin-left: -1.5px; background: var(--accent); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15); pointer-events: none; }
.compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:has(.compare-range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.compare-cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 15px; font-weight: 600; color: var(--muted); }
@media (max-width: 1023px) { .redact { grid-template-columns: minmax(0, 1fr); } }

/* bento */
.features { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.bento { margin-top: clamp(28px, 4vw, 48px); display: grid; gap: 16px; grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas:
    "cap cap cap cap cap cap cap ann ann ann ann ann"
    "scr scr scr scr ocr ocr ocr ocr ocr ocr ocr ocr"
    "scr scr scr scr pix pix pix pix pin pin pin pin"; }
.cell { grid-area: var(--a); display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-srf); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cell h3 { font-size: 22px; letter-spacing: -0.02em; margin-top: 8px; }
.cell p { color: var(--muted); font-size: 16px; max-width: 48ch; }
.shot { flex: 1; min-height: 180px; display: grid; place-items: center; border-radius: 14px; padding: 18px; overflow: hidden; }
.shot img { max-height: 320px; width: auto; border-radius: 10px; box-shadow: 0 14px 34px rgba(0, 0, 0, .28); transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
.cell:hover .shot img { transform: scale(1.025); }
.cell-cap { --a: cap; } .cell-ann { --a: ann; } .cell-scr { --a: scr; } .cell-ocr { --a: ocr; } .cell-pix { --a: pix; } .cell-pin { --a: pin; }
.cell-cap .shot { background: linear-gradient(135deg, #5b4a93, #2d3566); }
.cell-ann .shot { background: radial-gradient(120% 90% at 20% 10%, rgba(250, 107, 84, .35), transparent 60%), var(--surface-2); }
.cell-scr .shot { background: linear-gradient(180deg, var(--surface-2), transparent); }
.cell-scr .shot img { max-height: 660px; }
.cell-ocr .shot { background: repeating-linear-gradient(0deg, transparent 0 23px, var(--line) 23px 24px), repeating-linear-gradient(90deg, transparent 0 23px, var(--line) 23px 24px), var(--surface-2); }
.cell-pix .shot { background: #212429; }
.cell-pin .shot { background: linear-gradient(135deg, #2d3566, #5b4a93); }
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "cap cap" "ann ocr" "scr pix" "scr pin"; }
}
@media (max-width: 767px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "cap" "ann" "ocr" "scr" "pix" "pin"; }
  .cell { padding: 16px; }
  .cell-scr .shot img { max-height: 380px; }
}

/* privacy */
.privacy { padding-block: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line); }
.facts { margin-top: clamp(28px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(32px, 6vw, 96px); }
.fact .ico { width: 34px; height: 34px; color: var(--accent-text); }
.fact h3 { font-size: 22px; margin: 16px 0 8px; letter-spacing: -0.02em; }
.fact p { color: var(--muted); max-width: 46ch; }
.note { margin-top: clamp(32px, 4vw, 48px); padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); max-width: 72ch; }
@media (max-width: 767px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* install */
.install { padding-block: clamp(40px, 6vw, 96px) clamp(64px, 9vw, 128px); }
.install-panel { border-radius: var(--r-srf); padding: clamp(24px, 5vw, 64px); background:
  radial-gradient(90% 120% at 100% 0%, rgba(250, 107, 84, .18), transparent 55%), var(--surface); border: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; justify-items: start; }
.cmd code { min-width: 0; }
.cmd { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 8px 8px 18px; border-radius: var(--r-ctl); background: #131518; color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .1); }
.cmd code { font: 500 16px/1.4 var(--mono); overflow-x: auto; white-space: nowrap; padding-block: 8px; }
.copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18); background: #23272d; color: #f5f5f7; font: 600 15px var(--font); cursor: pointer; flex: none; }
.copy:hover { background: #2c3139; }
.copy .c2 { display: none; }
.copy.done .c1 { display: none; }
.copy.done .c2 { display: block; color: #7fe0a3; }
.install-panel > p:not(.small) { color: var(--muted); }
.install-panel .small { max-width: 80ch; }
@media (max-width: 767px) {
  .cmd { flex-wrap: wrap; width: 100%; padding: 14px; }
  .cmd code { font-size: 15px; white-space: normal; overflow-wrap: anywhere; padding-block: 0 4px; }
}

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 40px 56px; }
.foot-in { display: grid; gap: 18px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 15px; display: inline-block; padding-block: 6px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; }
.notfound { padding-block: 120px; display: grid; gap: 20px; }

/* motion: only when the viewer allows it, and only once scripts run */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-copy > *, .player { animation: rise .9s cubic-bezier(.16, 1, .3, 1) both; }
  .lede { animation-delay: .1s; } .hero .ctas { animation-delay: .18s; } .player { animation-delay: .14s; }
  html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.16, 1, .3, 1); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
  .bento .cell:nth-child(2) { transition-delay: .06s; } .bento .cell:nth-child(3) { transition-delay: .1s; }
  .bento .cell:nth-child(4) { transition-delay: .14s; } .bento .cell:nth-child(5) { transition-delay: .18s; } .bento .cell:nth-child(6) { transition-delay: .22s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
