/* FrameShot website. Native Mac, light. One motif: the capture selection (dashed blue frame, round handles, size label). */

:root {
  --canvas: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #515154;
  --ink-3: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.14);
  --blue: #0a7aff;
  --blue-press: #0062d6;
  --blue-ink: #0066cc;
  --blue-wash: #e8f1ff;
  --red: #ff3b30;
  --yellow: #ffcc00;
  --green: #28cd41;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-tile: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px -12px rgba(0, 0, 0, 0.08);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 17px/1.5 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-wide { width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.section-title {
  font-size: clamp(36px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.section-lede { max-width: 620px; margin-top: 18px; color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; }

/* Buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn:hover { background: #1f86ff; text-decoration: none; }
.btn:active { background: var(--blue-press); transform: scale(0.97); }
.btn-small { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn-large { min-height: 52px; padding: 0 28px; font-size: 18px; }
.btn-block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-size: 18px; font-weight: 500; }
.link-arrow::after { content: "›"; font-size: 1.3em; line-height: 1; transform: translateY(-1px); transition: transform 0.2s var(--ease); }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover::after { transform: translate(3px, -1px); }

kbd {
  display: inline-grid; place-items: center;
  min-width: 1.9em; height: 1.9em; padding: 0 0.45em;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 1.5px 0 #d2d2d7;
  color: var(--ink);
  font: 600 0.82em/1 var(--font);
}

/* Nav */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--canvas) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav[data-scrolled] { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; width: min(1240px, 100% - 2 * var(--gutter)); height: 56px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14px; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }

/* The selection motif */

.marquee { position: relative; display: inline-block; padding: 0 0.1em; }
.marquee::before {
  content: ""; position: absolute; inset: 0.02em -0.04em -0.04em;
  border: 2px dashed var(--blue);
  background: color-mix(in srgb, var(--blue) 7%, transparent);
  pointer-events: none;
}
.handle {
  position: absolute; width: 13px; height: 13px;
  border: 2px solid var(--blue); border-radius: 50%; background: #fff;
  pointer-events: none;
}
.handle.tl { left: calc(-0.04em - 6px); top: calc(0.02em - 6px); }
.handle.tr { right: calc(-0.04em - 6px); top: calc(0.02em - 6px); }
.handle.bl { left: calc(-0.04em - 6px); bottom: calc(-0.04em - 6px); }
.handle.br { right: calc(-0.04em - 6px); bottom: calc(-0.04em - 6px); }
.marquee-size {
  position: absolute; left: calc(100% + 18px); top: 50%; transform: translateY(-50%);
  padding: 3px 8px; border-radius: 999px;
  background: rgba(29, 29, 31, 0.86); color: #fff;
  font: 600 12px/1.2 var(--mono); letter-spacing: 0; white-space: nowrap;
}

/* On load the hero selection is "dragged" from its top-left corner, then the handles and size label appear. */
.js .hero .marquee::before { animation: drag-select 0.9s 0.35s var(--ease) both; }
.js .hero .handle, .js .hero .marquee-size { animation: fade-in 0.3s 1.15s ease-out both; }
@keyframes drag-select { from { clip-path: inset(0 100% 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Any card marked .selectable shows a selection around it on hover, sized to the card. */
.selectable { position: relative; }
.selectable::before, .selectable::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  opacity: 0; transform: scale(0.985);
  transition: opacity 0.18s ease-out, transform 0.25s var(--ease);
}
/* The dashed frame sits 9px outside the card; the handles' 12px dots are centred on its corners. */
.selectable::after { inset: -9px; border: 1.5px dashed var(--blue); border-radius: 3px; }
.selectable::before {
  inset: -15px;
  --dot: radial-gradient(circle, #fff 3.2px, var(--blue) 3.7px 5.3px, transparent 5.8px);
  background: var(--dot) 0 0 / 12px 12px no-repeat, var(--dot) 100% 0 / 12px 12px no-repeat,
    var(--dot) 0 100% / 12px 12px no-repeat, var(--dot) 100% 100% / 12px 12px no-repeat;
  z-index: 3;
}
.sel-size {
  position: absolute; left: 50%; bottom: -9px; z-index: 3; transform: translate(-50%, calc(50% - 4px));
  padding: 3px 8px; border-radius: 999px;
  background: rgba(29, 29, 31, 0.86); color: #fff;
  font: 600 11.5px/1.2 var(--mono); white-space: nowrap;
  opacity: 0; transition: opacity 0.18s ease-out, transform 0.25s var(--ease);
  pointer-events: none;
}
@media (hover: hover) {
  .selectable:hover::before, .selectable:hover::after { opacity: 1; transform: none; }
  .selectable:hover .sel-size { opacity: 1; transform: translate(-50%, 50%); }
}

/* Small pills and labels stay on one line at any width. */
.chip, .rb-opt, .rb-rec, .sd-badge, .cam-rec, .ocr-toast, .qa-action, .marquee-size, .sel-size, kbd { white-space: nowrap; }

/* Hero */

.hero { padding-top: clamp(56px, 9vw, 112px); overflow-x: clip; }
.hero-title {
  max-width: 13ch;
  font-size: clamp(48px, 8.4vw, 104px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.hero-title .marquee { margin-inline: 0.06em; }
.lede { max-width: 600px; margin-top: 30px; color: var(--ink-2); font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; letter-spacing: -0.015em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.hero-meta { margin-top: 18px; color: var(--ink-3); font-size: 14px; }
.hero-meta span { margin: 0 6px; color: #b8b8bd; }

.hero-stage { position: relative; margin-top: clamp(56px, 8vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); }
.hero-shot {
  margin: 0;
  border-radius: clamp(10px, 1.7vw, 20px);
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 50px 100px -30px rgba(0, 0, 0, 0.28), 0 24px 40px -24px rgba(0, 0, 0, 0.18);
  background: #ececee;
}
.hero-shot img { width: 100%; height: auto; }

/* The app's own surface: opaque light gray with a hairline edge, like its control bars. */
.float {
  position: absolute;
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  background: #f6f6f7;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.25);
}
.js .float { animation: float-in 0.8s var(--ease) both; }
.float-record { top: -26px; right: 5%; display: flex; width: max-content; white-space: nowrap; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 18px; animation-delay: 0.9s !important; }
.float-qa { left: -14px; bottom: 16px; padding: 5px; border-radius: 18px; animation-delay: 1.1s !important; }
@keyframes float-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }

.rb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 36px; padding: 0 8px; border-radius: 9px; }
.rb-btn svg, .tools svg, .ocr-toast svg, .qa-pen svg, .qa-drag svg {
  width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.rb-btn svg { color: var(--ink-3); }
.rb-on { background: rgba(0, 0, 0, 0.07); }
.rb-on svg { color: var(--ink); }
.rb-close { display: grid; place-items: center; width: 22px; height: 22px; margin: 0 7px 0 4px; border-radius: 50%; background: #8e8e93; }
.rb-close svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.rb-sep { width: 1px; height: 22px; margin: 0 7px; background: rgba(0, 0, 0, 0.14); }
.rb-opt { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; font-size: 15px; color: var(--ink); }
.rb-opt svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rb-rec { display: inline-flex; align-items: center; height: 36px; margin-left: 6px; padding: 0 18px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 600; }
/* The live microphone level: a small spectrum, tallest in the middle. */
.rb-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.rb-wave i { width: 2px; height: var(--h); border-radius: 1px; background: var(--ink); opacity: 0.8; transform-origin: center; animation: rb-wave 1.1s ease-in-out infinite alternate; }
.rb-wave i:nth-child(1), .rb-wave i:nth-child(9) { --h: 4px; animation-delay: -0.2s; }
.rb-wave i:nth-child(2), .rb-wave i:nth-child(8) { --h: 7px; animation-delay: -0.5s; }
.rb-wave i:nth-child(3), .rb-wave i:nth-child(7) { --h: 10px; animation-delay: -0.8s; }
.rb-wave i:nth-child(4), .rb-wave i:nth-child(6) { --h: 14px; animation-delay: -0.35s; }
.rb-wave i:nth-child(5) { --h: 17px; animation-delay: -0.65s; }
@keyframes rb-wave { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

.qa-thumb { position: relative; width: clamp(150px, 19vw, 236px); aspect-ratio: 236 / 146; border-radius: 13px; overflow: hidden; }
.qa-thumb img { width: 100%; height: 100%; object-fit: cover; }
.qa-thumb::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 30, 0.38); }
.qa-action { position: absolute; left: 50%; transform: translateX(-50%); padding: 0.3em 1.6em; border-radius: 999px; background: #f6f6f7; color: var(--ink); font-weight: 600; font-size: clamp(12px, 1.2vw, 14px); box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.3); }
.qa-action:nth-of-type(1) { top: 26%; }
.qa-action:nth-of-type(2) { bottom: 26%; }

/* Shortcuts */

.keys { padding-block: var(--section); background: var(--surface); }
.keys-try { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.keys-try kbd { font-size: 13px; }
.key-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px;
  margin: 56px 0 0; padding: 0; list-style: none;
}
.key-grid li {
  display: flex; flex-direction: column; gap: 16px;
  padding: 20px 16px 18px;
  border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--canvas);
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--ease);
}
.combo { display: flex; gap: 4px; }
.combo kbd { font-size: 15px; transition: transform 0.12s, box-shadow 0.12s, background-color 0.12s, color 0.12s; }
.key-name { font-size: 15px; font-weight: 600; letter-spacing: -0.015em; }
.key-grid li.pressed { border-color: color-mix(in srgb, var(--blue) 40%, transparent); background: var(--blue-wash); transform: translateY(-2px); }
.key-grid li.pressed kbd { transform: translateY(1.5px); box-shadow: 0 0 0 #d2d2d7; background: var(--blue); border-color: var(--blue); color: #fff; }

/* Features */

.features { padding-block: var(--section) 0; }
.bento {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
}
.tile {
  display: flex; flex-direction: column; gap: 28px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-tile);
  min-width: 0;
}
.tile h3 { font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; line-height: 1.12; letter-spacing: -0.028em; }
.tile-copy p { max-width: 46ch; margin-top: 10px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }

.tile-annotate { grid-column: span 7; }
.tile-scroll { grid-column: span 5; grid-row: span 2; }
.tile-record { grid-column: span 7; }
.tile-camera, .tile-ocr, .tile-qa { grid-column: span 4; }
.tile-bg { grid-column: span 12; order: 10; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 56px); }
.swatches { display: flex; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.swatches li { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.swatches li:nth-child(1) { background: linear-gradient(135deg, #6a85f1, #7b4fb0); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--blue); }
.swatches li:nth-child(2) { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.swatches li:nth-child(3) { background: linear-gradient(135deg, #f6d365, #fda085); }
.swatches li:nth-child(4) { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.swatches li:nth-child(5) { background: linear-gradient(135deg, #fa709a, #fee140); }
.swatches li:nth-child(6) { background: #1d1d1f; }
.tile-bg img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 24px 48px -24px rgba(60, 40, 140, 0.45); }

.tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.tools li {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 10px 10px 10px 12px;
  border-radius: 12px; background: var(--canvas);
  font-size: 14px; font-weight: 500;
}
.tools svg { flex: none; color: var(--blue); }
.tools kbd { margin-left: auto; font-size: 12px; min-width: 22px; height: 22px; }

/* Scrolling capture demo: the page scrolls in steps while the stitched result grows. */
.scroll-demo { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 76px; gap: 20px; min-height: 300px; }
.sd-view { position: relative; height: 100%; border-radius: 12px; background: var(--canvas); overflow: hidden; outline: 2px dashed var(--blue); outline-offset: 5px; }
.sd-page { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; gap: 10px; padding: 18px; animation: page-scroll 8s var(--ease) infinite; }
.sd-page .l { display: block; height: 9px; border-radius: 5px; background: #d9d9de; }
.sd-page .w9 { width: 92%; } .sd-page .w8 { width: 80%; } .sd-page .w7 { width: 70%; } .sd-page .w6 { width: 60%; } .sd-page .w5 { width: 46%; }
.sd-page .img { display: block; height: 74px; border-radius: 9px; background: linear-gradient(135deg, #8fd3ff, #4a8cff); }
.sd-page .img.alt { background: linear-gradient(135deg, #ffd38f, #ff7a59); }
.sd-badge {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  background: rgba(29, 29, 31, 0.86); color: #fff; font-size: 12px; font-weight: 600;
}
.sd-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 35%, transparent); animation: pulse 1.2s ease-in-out infinite; }
.sd-stitch { height: 100%; padding: 6px; border-radius: 10px; background: var(--canvas); }
.sd-strip {
  height: 30%; border-radius: 5px; background-color: #fff;
  background-image:
    repeating-linear-gradient(180deg, transparent 0 22px, #8fb8ff 22px 36px, transparent 36px 74px),
    repeating-linear-gradient(180deg, #d9d9de 0 3px, transparent 3px 8px);
  background-size: 100% 100%, calc(100% - 14px) 100%;
  background-position: 0 0, 7px 4px;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px var(--line);
  animation: strip-grow 8s var(--ease) infinite;
}
@keyframes page-scroll {
  0%, 8% { transform: translateY(0); }
  18%, 28% { transform: translateY(-18%); }
  38%, 48% { transform: translateY(-36%); }
  58%, 92% { transform: translateY(-52%); }
  100% { transform: translateY(0); }
}
@keyframes strip-grow {
  0%, 8% { height: 30%; }
  18%, 28% { height: 52%; }
  38%, 48% { height: 74%; }
  58%, 92% { height: 100%; }
  100% { height: 30%; }
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* Recording: trim filmstrip and export chips */
.trim { position: relative; height: 70px; margin-top: auto; padding: 3px 0; border-radius: 10px; overflow: hidden; }
.film { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; height: 100%; border-radius: 10px; overflow: hidden; }
.film i { display: block; background: linear-gradient(160deg, #cfe3ff, #9cc2ff); }
.film i:nth-child(2n) { background: linear-gradient(160deg, #d9ccff, #a99cff); }
.film i:nth-child(3n) { background: linear-gradient(160deg, #ffe0c7, #ffb48a); }
.trim-sel {
  position: absolute; top: -3px; bottom: -3px; left: 16%; width: 58%;
  border: 3px solid var(--yellow); border-inline-width: 12px; border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(245, 245, 247, 0.62);
}
.trim-sel span { position: absolute; top: 50%; width: 3px; height: 18px; margin-top: -9px; border-radius: 2px; background: rgba(0, 0, 0, 0.35); }
.trim-sel span:first-child { left: -7.5px; }
.trim-sel span:last-child { right: -7.5px; }
.playhead { position: absolute; top: 0; bottom: 0; left: 20%; width: 2px; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2); animation: play 4s linear infinite; }
@keyframes play { from { left: 18.5%; } to { left: 71%; } }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--canvas); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--ink); color: #fff; }
.chip-sep { width: 1px; height: 18px; margin: 0 6px; background: var(--line-strong); }

/* Camera bubble */
.cam-demo { position: relative; height: 190px; margin-top: auto; }
.cam-screen { position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(140deg, #dfe9ff, #f3e8ff); overflow: hidden; }
.cam-screen .win { position: absolute; border-radius: 8px; background: #fff; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.25); }
.cam-screen .win.a { left: 8%; top: 14%; width: 56%; height: 62%; }
.cam-screen .win.b { left: 38%; top: 34%; width: 44%; height: 50%; background: #fbfbfd; }
.cam-rec { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(29, 29, 31, 0.86); color: #fff; font: 600 11.5px/1.3 var(--mono); }
.cam-rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: pulse 1.2s ease-in-out infinite; }
.cam-bubble {
  position: absolute; right: 14px; bottom: 14px; width: 92px; height: 92px; border-radius: 50%;
  border: 3px solid #fff; background: linear-gradient(160deg, #ffd9b8, #f6a77c); overflow: hidden;
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.35);
  animation: bob 6s ease-in-out infinite;
}
.cam-bubble svg { width: 100%; height: 100%; fill: rgba(120, 60, 30, 0.55); }
@keyframes bob { 50% { transform: translate(-6px, -4px); } }

/* Text recognition */
.ocr-demo { position: relative; margin-top: auto; padding: 20px 18px 56px; border-radius: 14px; background: var(--canvas); font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.ocr-hit { background: linear-gradient(color-mix(in srgb, var(--blue) 20%, transparent), color-mix(in srgb, var(--blue) 20%, transparent)) no-repeat 0 0 / 0% 100%; animation: ocr-sweep 5s var(--ease) infinite; border-radius: 3px; }
.ocr-hit + br + .ocr-hit { animation-delay: 0.25s; }
.ocr-toast {
  position: absolute; left: 18px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px;
  background: #f6f6f7; color: var(--ink); font-size: 13px; font-weight: 600;
  border: 0.5px solid rgba(0, 0, 0, 0.1); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.3);
  animation: toast 5s var(--ease) infinite;
}
.ocr-toast svg { width: 15px; height: 15px; color: var(--green); stroke-width: 2.6; }
@keyframes ocr-sweep { 0%, 10% { background-size: 0% 100%; } 30%, 85% { background-size: 100% 100%; } 100% { background-size: 100% 100%; opacity: 0.4; } }
@keyframes toast { 0%, 34% { opacity: 0; transform: translateY(8px); } 42%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Quick Access */
.qa-demo { position: relative; height: 190px; margin-top: auto; border-radius: 14px; background: var(--canvas); }
.qa-card { position: absolute; left: 50%; top: 50%; width: min(220px, 70%); aspect-ratio: 23 / 14; transform: translate(-50%, -50%) rotate(-3deg); border: 4px solid #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.35); animation: qa-drag 6s var(--ease) infinite; }
.qa-card img { width: 100%; height: 100%; object-fit: cover; }
.qa-card::before { content: ""; position: absolute; inset: 0; background: rgba(20, 20, 30, 0.35); }
.qa-x, .qa-pen { position: absolute; top: 7px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #f6f6f7; color: var(--ink); box-shadow: 0 2px 6px -1px rgba(0, 0, 0, 0.3); }
.qa-x { left: 7px; font-size: 16px; line-height: 1; }
.qa-pen { right: 7px; }
.qa-pen svg { width: 13px; height: 13px; }
.qa-mid { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; color: var(--ink); font-size: 13px; }
.qa-mid b { padding: 4px 22px; border-radius: 999px; background: #f6f6f7; font-weight: 600; box-shadow: 0 3px 8px -2px rgba(0, 0, 0, 0.3); }
.qa-drag { position: absolute; left: 58%; top: 56%; color: var(--ink); animation: qa-hand 6s var(--ease) infinite; }
.qa-drag svg { width: 26px; height: 26px; fill: #fff; stroke-width: 1.5; }
@keyframes qa-drag { 0%, 20% { transform: translate(-50%, -50%) rotate(-3deg); } 45%, 70% { transform: translate(-28%, -62%) rotate(2deg); } 90%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } }
@keyframes qa-hand { 0%, 20% { transform: translate(0, 0); } 45%, 70% { transform: translate(48px, -22px); } 90%, 100% { transform: translate(0, 0); } }

.extras {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px;
  margin: clamp(56px, 7vw, 88px) 0 0; padding: 0 0 var(--section); list-style: none;
}
.extras li { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.extras b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 17px; letter-spacing: -0.015em; }

/* Privacy band */

.private { padding-block: var(--section); background: #111113; color: #f5f5f7; }
.private .eyebrow { color: #8e8e93; }
.private-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.private-list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; margin: 0; padding: 0; list-style: none; }
.private-list li { padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14); color: #a1a1a6; font-size: 16px; line-height: 1.5; }
.private-list b { display: block; margin-bottom: 6px; color: #fff; font-size: 19px; letter-spacing: -0.02em; }

/* Pricing */

.pricing-section { padding-block: var(--section); }
.pricing-section-flush { padding-top: 0; }
.pricing { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; margin-top: clamp(40px, 6vw, 64px); }
.price-card { padding: clamp(28px, 3.4vw, 40px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 30px 60px -30px rgba(0, 0, 0, 0.18); }
.price-head { display: flex; align-items: center; gap: 16px; }
.price-head img { border-radius: 14px; }
.price-head h3 { font-size: 22px; letter-spacing: -0.025em; }
.price-head p { color: var(--ink-3); font-size: 15px; }
.price { display: flex; align-items: flex-end; gap: 12px; margin: 32px 0 24px; }
.price-amount { font-family: var(--font-display); font-size: 72px; font-weight: 700; line-height: 0.9; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.price-note { padding-bottom: 4px; color: var(--ink-3); font-size: 14px; line-height: 1.25; }
.price-fine { margin-top: 12px; color: var(--ink-3); font-size: 13px; line-height: 1.45; text-align: center; }
.checks { display: grid; gap: 12px; margin: 28px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 15px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.5' fill='none' stroke='%230a7aff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.pricing-aside { padding-top: 8px; }
.pricing-aside h3 { font-size: 24px; letter-spacing: -0.025em; }
.assurances { display: grid; margin: 20px 0 0; }
.assurances div { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.assurances dt { font-weight: 600; letter-spacing: -0.015em; }
.assurances dd { margin: 0; color: var(--ink-2); font-size: 15px; }
.aside-note { margin-top: 24px; color: var(--ink-3); font-size: 15px; }

/* FAQ */

.faq-section { padding-block: var(--section); background: var(--surface); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; align-items: start; }
.faq-wrap .section-title { position: sticky; top: 96px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: 19px; font-weight: 600; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--canvas)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8M11 7v8' stroke='%231d1d1f' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 62ch; padding: 0 0 24px; color: var(--ink-2); font-size: 16px; }

/* Closer */

.closer { padding-block: var(--section); text-align: center; }
.closer-title { margin-bottom: 40px; font-size: clamp(44px, 7vw, 88px); font-weight: 700; line-height: 1.08; letter-spacing: -0.045em; }
.closer .marquee { margin-bottom: 0.08em; }

/* Footer */

.footer { border-top: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 56px 0 40px; }
.footer-brand p { max-width: 280px; margin-top: 12px; color: var(--ink-3); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, auto)); gap: 32px 56px; }
.footer-cols h2 { margin-bottom: 12px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink); }
.footer-cols a { display: block; padding: 4px 0; color: var(--ink-2); }
.footer-cols a:hover { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; width: min(1240px, 100% - 2 * var(--gutter)); margin-inline: auto; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12px; }

/* Documents: legal, support, pricing page header */

.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; }
.page-head p { margin-top: 16px; color: var(--ink-3); font-size: 15px; }
.page-head .section-lede { color: var(--ink-2); font-size: clamp(17px, 1.6vw, 21px); }

.doc { padding-bottom: var(--section); }
.doc-body {
  max-width: 720px;
  padding: clamp(28px, 4vw, 56px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface);
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
}
.doc-body > :first-child { margin-top: 0; }
.doc-body h2 { margin: 40px 0 12px; color: var(--ink); font-size: 22px; letter-spacing: -0.025em; }
.doc-body h3 { margin: 24px 0 8px; color: var(--ink); font-size: 17px; letter-spacing: -0.015em; }
.doc-body p, .doc-body ul, .doc-body ol { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li { margin-bottom: 6px; }
.doc-body strong { color: var(--ink); }
.doc-summary { margin-bottom: 32px !important; padding: 18px 20px; border-radius: 14px; background: var(--blue-wash); color: #183b6b; }
.doc-summary strong { color: #0b2a52; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 88px; font-size: 14px; }
.doc-toc h2 { margin-bottom: 10px; font-family: var(--font); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.doc-toc a { display: block; padding: 5px 0; color: var(--ink-2); }
.doc-toc a:hover { color: var(--ink); }

.support-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 56px; }
.support-card { display: flex; flex-direction: column; gap: 8px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-tile); color: var(--ink-2); font-size: 15px; }
.support-card h2 { color: var(--ink); font-size: 20px; letter-spacing: -0.02em; }
.support-card a { margin-top: auto; padding-top: 8px; font-weight: 500; }

.notfound { padding: clamp(80px, 14vw, 180px) 0; text-align: center; }
.notfound h1 { font-size: clamp(44px, 7vw, 80px); letter-spacing: -0.045em; margin: 28px 0 12px; }
.marquee-404 { padding: 18px 28px; font: 600 20px/1 var(--mono); }
.doc-body code { font-size: 0.88em; }
.notfound p { color: var(--ink-2); margin-bottom: 32px; }

/* Responsive */

@media (max-width: 1060px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tile-annotate, .tile-qa, .tile-bg { grid-column: span 6; }
  .tile-scroll { grid-column: span 3; grid-row: span 2; }
  .tile-record { grid-column: span 3; }
  .tile-camera, .tile-ocr { grid-column: span 3; }
  .key-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { display: none; }
  .pricing { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .bento > .tile { grid-column: auto; grid-row: auto; }
  .tile-bg { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scroll-demo { min-height: 260px; }
  .key-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .private-inner, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .faq-wrap .section-title { position: static; }
  .private-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .support-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { flex-direction: column; }
  .float-record { left: 50%; right: auto; transform: translateX(-50%); top: auto; bottom: -4px; animation: none !important; }
  .float-qa, .marquee-size { display: none; }
  .selectable::before, .selectable::after, .sel-size { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .assurances div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .float-record { padding: 6px 8px; }
  .float-record .rb-cam, .float-record .rb-spk, .float-record .rb-opt, .float-record .rb-sep-opt { display: none; }
  .hero-meta span { margin: 0 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
