/* ============================================================
   SwiftShot — design tokens
   ============================================================ */

:root {
  /* palette */
  --ink: #070A12;
  --slate: #334155;
  --muted: #7B879D;
  --canvas: #F7F9FF;
  --mist: #EEF3FF;
  --surface: #FFFFFF;
  --border: #DDE5F4;
  --blue: #4F6BFF;
  --blue-deep: #3048E8;
  --violet: #8B5CF6;
  --cyan: #22D3EE;
  --orange: #FF8A3D;
  --success: #22C55E;
  --dark-canvas: #070A12;

  --grad-brand: linear-gradient(135deg, #4F6BFF 0%, #8B5CF6 55%, #FF8A3D 100%);
  --grad-cool: linear-gradient(135deg, #4F6BFF 0%, #8B5CF6 100%);

  /* type */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: "Instrument Serif", "New York", ui-serif, Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* depth */
  --shadow-sm: 0 1px 2px rgba(7, 10, 18, 0.05);
  --shadow-card: 0 2px 6px rgba(50, 70, 120, 0.06), 0 14px 40px rgba(50, 70, 120, 0.1);
  --shadow-lift: 0 4px 10px rgba(50, 70, 120, 0.08), 0 24px 64px rgba(50, 70, 120, 0.16);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 60px rgba(50, 70, 120, 0.16);

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

  --nav-h: 64px;
  --max-w: 1140px;
}

/* ============================================================
   Reset / base
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-size: 0.875rem;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section[id],
div[id] {
  scroll-margin-top: calc(var(--nav-h) + 20px);
}

.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex: none;
}

/* ============================================================
   Typography helpers
   ============================================================ */

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-head p {
  margin-top: 14px;
  font-size: 1.0625rem;
  color: var(--slate);
}

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease,
    filter 0.18s ease;
  will-change: transform;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5d77ff 0%, var(--blue-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 8px 22px rgba(48, 72, 232, 0.32);
}

.btn-primary:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 12px 28px rgba(48, 72, 232, 0.38);
}

.btn-ghost {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  border-color: #c3cfe8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-card);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
  border-radius: 14px;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.875rem;
  border-radius: 10px;
}

/* ============================================================
   Glass primitives
   ============================================================ */

.glass {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--glass-shadow);
}

.glass-dark {
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 50px rgba(0, 0, 0, 0.35);
}

/* keycap */
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate);
  background: linear-gradient(180deg, #fff 0%, #f3f6fd 100%);
  border: 1px solid var(--border);
  border-radius: 7px;
  box-shadow: 0 2px 0 var(--border), 0 3px 6px rgba(50, 70, 120, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.key.pressed {
  transform: translateY(2px);
  box-shadow: 0 0 0 var(--border), inset 0 1px 3px rgba(50, 70, 120, 0.15);
}

/* mac window chrome */
.mac-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.mac-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f2f5fc 100%);
  border-bottom: 1px solid var(--border);
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tl-r { background: #ff5f57; }
.tl-y { background: #febc2e; }
.tl-g { background: #28c840; }

.mac-title {
  flex: 1;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  /* offset traffic lights so the title is optically centered */
  margin-right: 43px;
}

/* skeleton bars used in mockups */
.bar {
  display: block;
  height: 9px;
  border-radius: 5px;
  background: var(--mist);
}

.bar-lg { height: 14px; background: #dfe7f8; }
.bar-dk { background: #2a3550; }
.w90 { width: 90%; }
.w85 { width: 85%; }
.w80 { width: 80%; }
.w70 { width: 70%; }
.w60 { width: 60%; }
.w50 { width: 50%; }
.w40 { width: 40%; }

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.2, 0.6, 0.2, 1),
    transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Navigation
   ============================================================ */

/* floating Liquid Glass pill */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 10px clamp(12px, 3vw, 24px) 0;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  position: relative;
  max-width: 1064px;
  margin: 0 auto;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  border-radius: 17px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.58) 100%);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(203, 214, 238, 0.55),
    0 12px 32px rgba(50, 70, 120, 0.12);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

/* refraction sheen along the top edge */
.nav-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.nav.scrolled .nav-inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.74) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(203, 214, 238, 0.65),
    0 16px 40px rgba(50, 70, 120, 0.16);
}

.nav.menu-open .nav-inner {
  background: rgba(255, 255, 255, 0.95);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.0313rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 28px;
  height: 28px;
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-menu a:not(.btn) {
  display: block;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  border-radius: 10px;
  transition: color 0.15s, background-color 0.15s;
}

.nav-menu a:not(.btn):hover {
  color: var(--ink);
  background: rgba(7, 10, 18, 0.05);
}

.nav-menu li:last-child {
  margin-left: 8px;
}

.nav-toggle {
  position: relative;
  display: none;
  padding: 8px;
  margin-right: 4px;
  color: var(--ink);
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 72px) 0 96px;
  background: linear-gradient(180deg, #fff 0%, var(--canvas) 60%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -120px;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79, 107, 255, 0.09) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--mist);
  border: 1px solid #dbe4ff;
  border-radius: 100px;
  margin-bottom: 22px;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.042em;
  margin-bottom: 20px;
  text-wrap: balance;
}

/* editorial serif accent line */
.h1-accent {
  display: block;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.03em;
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* the last word fades out — like the thought */
.fade-word {
  background: linear-gradient(95deg, var(--ink) 5%, #a3b0c8 95%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* small serif accents used across section headings */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
  letter-spacing: -0.01em;
}

.lede {
  font-size: 1.125rem;
  line-height: 1.65;
  color: var(--slate);
  max-width: 460px;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-row .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

/* ============================================================
   Hero simulator
   ============================================================ */

.sim {
  position: relative;
}

.sim .mac-window {
  border-radius: var(--r-xl);
}

.sim-stage {
  position: relative;
  aspect-ratio: 16 / 10.6;
  background: linear-gradient(160deg, #eef2fc 0%, #e4eaf9 100%);
  overflow: hidden;
}

/* fake app behind the capture */
.sim-app {
  position: absolute;
  inset: 6% 5%;
  display: grid;
  grid-template-columns: 24% 1fr;
  gap: 4%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4%;
}

.sim-side,
.sim-main {
  display: flex;
  flex-direction: column;
  gap: 9%;
  min-width: 0;
}

.sim-side {
  border-right: 1px solid var(--mist);
  padding-right: 14%;
}

.sim-img {
  width: 100%;
  flex: 1 1 34%;
  min-height: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #cdd9ff 0%, #e3d6ff 100%);
}

/* crosshair */
.sim-cross {
  position: absolute;
  left: 17%;
  top: 15%;
  width: 18px;
  height: 18px;
  margin: -9px;
  opacity: 0;
  pointer-events: none;
  animation: simCross 11s ease-in-out infinite;
}

.sim-cross::before,
.sim-cross::after {
  content: "";
  position: absolute;
  background: var(--ink);
}

.sim-cross::before {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
}

.sim-cross::after {
  top: 50%;
  left: 0;
  height: 1.5px;
  width: 100%;
}

/* capture rectangle (box-shadow dims everything around it) */
.sim-rect {
  position: absolute;
  left: 17%;
  top: 15%;
  width: 55%;
  height: 55%;
  border: 1.5px dashed rgba(255, 255, 255, 0.95);
  border-radius: 3px;
  box-shadow: 0 0 0 2000px rgba(7, 10, 18, 0.34);
  opacity: 0;
  animation: simRect 11s ease-in-out infinite;
}

.sim-rect i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
  opacity: 0;
  animation: simHandles 11s linear infinite;
}

.h-tl { left: -5px; top: -5px; }
.h-tr { right: -5px; top: -5px; }
.h-bl { left: -5px; bottom: -5px; }
.h-br { right: -5px; bottom: -5px; }

.sim-pill {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  color: #fff;
  background: rgba(7, 10, 18, 0.82);
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  animation: simPill 11s linear infinite;
}

/* OCR scan line + tint */
.sim-scan {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 4%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 30%, var(--cyan) 70%, transparent);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.8);
  opacity: 0;
  animation: simScan 11s linear infinite;
}

.sim-tint {
  position: absolute;
  inset: 0;
  background: var(--cyan);
  opacity: 0;
  animation: simTint 11s linear infinite;
}

/* floating annotation toolbar */
.sim-toolbar {
  position: absolute;
  left: 17%;
  top: 74.5%;
  display: flex;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  opacity: 0;
  animation: simToolbar 11s ease-in-out infinite;
}

.sim-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--slate);
}

.sim-tool .icon {
  width: 16px;
  height: 16px;
}

.sim-tool.on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 3px 10px rgba(48, 72, 232, 0.4);
}

/* toast */
.sim-toast {
  position: absolute;
  left: 50%;
  bottom: 6%;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #fff;
  background: rgba(7, 10, 18, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  box-shadow: 0 12px 36px rgba(7, 10, 18, 0.35);
  opacity: 0;
  animation: simToast 11s ease-in-out infinite;
}

.sim-toast .icon {
  width: 15px;
  height: 15px;
  color: var(--success);
}

/* final beautified card */
.sim-card {
  position: absolute;
  left: 21%;
  top: 14%;
  width: 50%;
  padding: 7%;
  border-radius: 16px;
  background: var(--grad-cool);
  box-shadow: 0 24px 60px rgba(79, 107, 255, 0.4);
  opacity: 0;
  animation: simCard 11s ease-in-out infinite;
}

.sim-card-shot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(7, 10, 18, 0.25);
}

.sim-card-shot .sim-img {
  flex: none;
  height: 44px;
}

/* simulator keyframes — transform/opacity where possible */
@keyframes simCross {
  0%, 2% { opacity: 0; left: 17%; top: 15%; }
  4% { opacity: 1; }
  17% { opacity: 1; left: 72%; top: 70%; }
  20%, 100% { opacity: 0; left: 72%; top: 70%; }
}

@keyframes simRect {
  0%, 2% { opacity: 0; width: 7%; height: 7%; }
  4% { opacity: 1; }
  17% { width: 55%; height: 55%; }
  60% { opacity: 1; width: 55%; height: 55%; }
  64%, 100% { opacity: 0; width: 55%; height: 55%; }
}

@keyframes simHandles {
  0%, 17% { opacity: 0; }
  19%, 58% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes simPill {
  0%, 4% { opacity: 0; }
  6%, 58% { opacity: 1; }
  62%, 100% { opacity: 0; }
}

@keyframes simToolbar {
  0%, 18% { opacity: 0; transform: translateY(10px); }
  21%, 57% { opacity: 1; transform: translateY(0); }
  61%, 100% { opacity: 0; transform: translateY(4px); }
}

@keyframes simScan {
  0%, 29% { opacity: 0; top: 4%; }
  31% { opacity: 1; }
  43% { opacity: 1; top: 93%; }
  45%, 100% { opacity: 0; top: 93%; }
}

@keyframes simTint {
  0%, 31% { opacity: 0; }
  36%, 42% { opacity: 0.14; }
  47%, 100% { opacity: 0; }
}

@keyframes simToast {
  0%, 46% { opacity: 0; transform: translate(-50%, 12px); }
  49%, 58% { opacity: 1; transform: translate(-50%, 0); }
  62%, 100% { opacity: 0; transform: translate(-50%, -6px); }
}

@keyframes simCard {
  0%, 62% { opacity: 0; transform: scale(0.94); }
  67% { opacity: 1; transform: scale(1); }
  78% { transform: scale(1) translateY(-5px); }
  88% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.97); }
}

/* ============================================================
   Workflow strip
   ============================================================ */

.workflow {
  padding: 64px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.flow-step {
  position: relative;
  padding: 22px 20px;
  background: var(--canvas);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -14px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg);
}

.flow-vis {
  position: relative;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--mist);
  overflow: hidden;
}

.flow-step h3 {
  font-size: 0.9688rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.flow-step p {
  font-size: 0.8438rem;
  line-height: 1.5;
  color: var(--muted);
}

/* step 1 — capture rect */
.flow-rect {
  position: absolute;
  inset: 14px 28%;
  border: 1.5px dashed var(--blue);
  border-radius: 6px;
  background: rgba(79, 107, 255, 0.06);
  animation: flowBreathe 2.8s ease-in-out infinite;
}

.flow-rect span {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 7px;
  height: 7px;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
}

@keyframes flowBreathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.94); opacity: 0.75; }
}

/* step 2 — arrow draw */
.flow-arrow {
  position: absolute;
  inset: 6px 30%;
  width: 40%;
  height: calc(100% - 12px);
  margin: 0 auto;
}

.flow-arrow path {
  stroke: var(--orange);
  stroke-width: 2.4;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: flowDraw 3.2s ease-in-out infinite;
}

@keyframes flowDraw {
  0%, 4% { stroke-dashoffset: 1; opacity: 1; }
  34%, 86% { stroke-dashoffset: 0; opacity: 1; }
  94%, 100% { stroke-dashoffset: 0; opacity: 0; }
}

/* step 3 — OCR scan */
.flow-ocr {
  position: absolute;
  inset: 13px 22%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flow-ocr .bar {
  height: 6px;
}

.flow-scanline {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
  animation: flowScan 2.4s ease-in-out infinite;
}

@keyframes flowScan {
  0%, 12% { transform: translateY(0); opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  88%, 100% { transform: translateY(42px); opacity: 0; }
}

/* step 4 — share pop */
.flow-share {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  animation: flowPop 2.8s ease-in-out infinite;
}

.flow-chip .icon {
  width: 13px;
  height: 13px;
  color: var(--success);
}

@keyframes flowPop {
  0%, 15% { transform: scale(0.7); opacity: 0; }
  28%, 80% { transform: scale(1); opacity: 1; }
  92%, 100% { transform: scale(0.92); opacity: 0; }
}

/* ============================================================
   Capture modes (interactive tabs)
   ============================================================ */

.capture {
  padding: 104px 0;
}

.seg {
  position: relative;
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 44px;
  padding: 4px;
  background: var(--mist);
  border: 1px solid var(--border);
  border-radius: 13px;
  overflow-x: auto;
}

.seg-ind {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  transition: transform 0.32s cubic-bezier(0.3, 0.8, 0.3, 1), width 0.32s cubic-bezier(0.3, 0.8, 0.3, 1);
}

.seg [role="tab"] {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  white-space: nowrap;
  transition: color 0.2s;
}

.seg [role="tab"]:hover {
  color: var(--slate);
}

.seg [role="tab"][aria-selected="true"] {
  color: var(--ink);
}

.capture-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 48px;
  align-items: center;
}

.stage .mac-window {
  border-radius: var(--r-xl);
}

.stage-body {
  position: relative;
  aspect-ratio: 16 / 10.4;
  background: linear-gradient(160deg, #eef2fc 0%, #e6ecfa 100%);
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(10px) scale(0.99);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.scene.on {
  opacity: 1;
  transform: none;
}

/* scene: area */
.scn-rect {
  position: absolute;
  left: 18%;
  top: 18%;
  width: 52%;
  height: 50%;
  border: 1.5px dashed var(--blue);
  border-radius: 4px;
  background: rgba(79, 107, 255, 0.05);
}

.scn-rect i {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 1.5px solid var(--blue);
  border-radius: 2px;
}

.scn-pill {
  position: absolute;
  left: 50%;
  bottom: -32px;
  transform: translateX(-50%);
  padding: 4px 11px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  color: #fff;
  background: rgba(7, 10, 18, 0.82);
  border-radius: 7px;
  white-space: nowrap;
}

/* scene: window */
.scn-win {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.scn-win.back {
  left: 10%;
  top: 14%;
  width: 44%;
  height: 52%;
  opacity: 0.65;
}

.scn-win.front {
  left: 34%;
  top: 28%;
  width: 48%;
  height: 54%;
  outline: 2.5px solid var(--blue);
  outline-offset: 3px;
  box-shadow: 0 18px 44px rgba(48, 72, 232, 0.25);
}

.scn-win .winbar {
  display: flex;
  gap: 5px;
}

.scn-win .winbar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.scn-tag {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 11px;
  font-size: 0.71rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  border-radius: 7px;
  white-space: nowrap;
}

/* scene: scrolling */
.scn-viewport {
  position: absolute;
  left: 26%;
  top: 10%;
  width: 48%;
  height: 80%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.scn-scrollcol {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  animation: scnScroll 7s linear infinite;
}

@keyframes scnScroll {
  0%, 12% { transform: translateY(0); }
  88%, 100% { transform: translateY(-52%); }
}

.scn-stitch {
  position: absolute;
  right: 7%;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.scn-stitch .icon {
  color: var(--blue);
}

/* scene: ocr */
.scn-ocrbox {
  position: absolute;
  left: 20%;
  top: 18%;
  width: 60%;
  height: 48%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6% 5%;
  background: var(--surface);
  border: 1.5px dashed var(--cyan);
  border-radius: 8px;
  overflow: hidden;
}

.scn-ocrbox .bar {
  height: 7px;
}

.scn-ocrline {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 8%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.7);
  animation: scnOcr 3s ease-in-out infinite;
}

@keyframes scnOcr {
  0%, 10% { top: 8%; opacity: 0; }
  16% { opacity: 1; }
  80% { top: 88%; opacity: 1; }
  90%, 100% { top: 88%; opacity: 0; }
}

.scn-copied {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
}

.scn-copied .icon {
  width: 14px;
  height: 14px;
  color: var(--success);
}

/* scene: annotate */
.scn-canvas {
  position: absolute;
  left: 16%;
  top: 14%;
  width: 56%;
  height: 62%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.scn-blur {
  position: relative;
  height: 12px;
  width: 55%;
  border-radius: 6px;
  background: repeating-linear-gradient(45deg, #cbd5ec 0 5px, #e3eaf8 5px 10px);
}

.scn-anno-arrow {
  position: absolute;
  right: 8%;
  top: 16%;
  width: 26%;
  height: auto;
  overflow: visible;
}

.scn-anno-arrow path {
  stroke: var(--orange);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scn-label {
  position: absolute;
  right: 5%;
  top: 6%;
  padding: 4px 10px;
  font-size: 0.71rem;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 7px;
}

/* tab info column */
.capture-info h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.capture-info > p {
  color: var(--slate);
  margin-bottom: 22px;
}

.capture-info ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
}

.capture-info li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9375rem;
  color: var(--slate);
}

.capture-info li .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.capture-hotkey {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.capture-hotkey .keys {
  display: inline-flex;
  gap: 4px;
}

/* ============================================================
   Feature rows
   ============================================================ */

.features {
  padding: 104px 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding: 56px 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--mist);
}

.feature-row.flip .feature-copy {
  order: 2;
}

.feature-copy h3 {
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  text-wrap: balance;
}

.feature-copy > p {
  color: var(--slate);
  margin-bottom: 20px;
  max-width: 440px;
}

.feature-points {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9063rem;
  color: var(--slate);
}

.feature-points .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
}

.feature-vis {
  position: relative;
}

/* — editor visual — */
.ed-window .mac-titlebar {
  gap: 7px;
}

.ed-tools {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--mist);
}

.ed-tool {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--muted);
}

.ed-tool .icon {
  width: 16px;
  height: 16px;
}

.ed-tool.on {
  background: var(--mist);
  color: var(--blue-deep);
}

.ed-canvas {
  position: relative;
  padding: 52px 26px 26px;
  background: linear-gradient(160deg, #f4f7ff 0%, #ecf1fc 100%);
}

.ed-shot {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

.ed-arrow {
  position: absolute;
  right: 12%;
  top: -12px;
  width: 30%;
  overflow: visible;
}

.ed-arrow path {
  stroke: var(--orange);
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1s ease 0.35s;
}

.reveal.in .ed-arrow path {
  stroke-dashoffset: 0;
}

.ed-note {
  position: absolute;
  right: 6%;
  top: 12px;
  padding: 5px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff;
  background: var(--orange);
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(255, 138, 61, 0.4);
}

/* — ocr visual — */
.ocr-vis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.ocr-src {
  position: relative;
  padding: 18px;
  background: var(--ink);
  border-radius: var(--r-md);
  overflow: hidden;
}

.ocr-src .term-line {
  font-family: var(--font-mono);
  font-size: 0.71rem;
  line-height: 1.9;
  color: #9fb1d1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ocr-src .term-line b {
  color: #ff8a8a;
  font-weight: 600;
}

.ocr-src .term-line em {
  color: var(--cyan);
  font-style: normal;
}

.ocr-vis-scan {
  position: absolute;
  left: 6%;
  right: 6%;
  top: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
  animation: ocrVisScan 3.4s ease-in-out infinite;
}

@keyframes ocrVisScan {
  0%, 8% { top: 10%; opacity: 0; }
  14% { opacity: 1; }
  78% { top: 88%; opacity: 1; }
  88%, 100% { top: 88%; opacity: 0; }
}

.ocr-out {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.ocr-out-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.ocr-out-head .chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 0.68rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
  color: var(--success);
  background: #ecfdf3;
  border: 1px solid #c6f0d5;
  border-radius: 100px;
}

.ocr-out pre {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  line-height: 1.8;
  color: var(--slate);
  white-space: pre-wrap;
  word-break: break-word;
}

/* — beautiful output visual — */
.bg-frame {
  padding: 12%;
  border-radius: var(--r-lg);
  background: var(--grad-cool);
  box-shadow: var(--shadow-lift);
  transition: background 0.5s ease;
}

.bg-frame[data-bg="sunrise"] { background: linear-gradient(135deg, #ff8a3d 0%, #f6519c 100%); }
.bg-frame[data-bg="lagoon"] { background: linear-gradient(135deg, #22d3ee 0%, #4f6bff 100%); }
.bg-frame[data-bg="brand"] { background: var(--grad-brand); }
.bg-frame[data-bg="graphite"] { background: linear-gradient(135deg, #2c3344 0%, #070a12 100%); }

.bg-shot {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(7, 10, 18, 0.3);
}

.bg-shot .sim-img {
  flex: none;
  height: 56px;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.swatches span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 4px;
}

.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border), 0 2px 6px rgba(50, 70, 120, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.swatch:hover {
  transform: scale(1.12);
}

.swatch[aria-pressed="true"] {
  box-shadow: 0 0 0 2px var(--blue), 0 2px 6px rgba(50, 70, 120, 0.18);
}

.sw-cool { background: var(--grad-cool); }
.sw-sunrise { background: linear-gradient(135deg, #ff8a3d, #f6519c); }
.sw-lagoon { background: linear-gradient(135deg, #22d3ee, #4f6bff); }
.sw-brand { background: var(--grad-brand); }
.sw-graphite { background: linear-gradient(135deg, #2c3344, #070a12); }

/* — pin / quick actions visual — */
.qa-vis {
  position: relative;
  height: 300px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #eef2fc 0%, #e4eaf9 100%);
  border: 1px solid var(--border);
  overflow: hidden;
}

.qa-stack {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}

.qa-card {
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.qa-card:nth-child(2) {
  transform: scale(0.96);
  opacity: 0.8;
}

.qa-card:nth-child(3) {
  transform: scale(0.92);
  opacity: 0.55;
}

.qa-card.top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.qa-thumb {
  height: 64px;
  background: linear-gradient(135deg, #cdd9ff 0%, #e3d6ff 100%);
}

.qa-actions {
  display: flex;
}

.qa-actions span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 0;
  font-size: 0.69rem;
  font-weight: 600;
  color: var(--slate);
  border-top: 1px solid var(--mist);
}

.qa-actions span + span {
  border-left: 1px solid var(--mist);
}

.qa-actions .icon {
  width: 13px;
  height: 13px;
}

.qa-pinned {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 150px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.qa-pinned .qa-thumb {
  height: 84px;
}

.qa-pinned-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--blue-deep);
}

.qa-pinned-tag .icon {
  width: 12px;
  height: 12px;
}

/* — shortcuts visual — */
.sc-panel {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}

.sc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 14px;
  border-radius: 11px;
  transition: background-color 0.25s ease;
}

.sc-row.live {
  background: var(--mist);
}

.sc-row .keys {
  display: flex;
  gap: 4px;
}

.sc-row .sc-name {
  flex: 1;
  font-size: 0.9063rem;
  font-weight: 500;
  color: var(--slate);
}

.sc-row.live .sc-name {
  color: var(--ink);
  font-weight: 600;
}

.sc-row .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.sc-row.live .icon {
  color: var(--blue);
}

/* ============================================================
   Privacy (dark)
   ============================================================ */

.privacy {
  position: relative;
  padding: 112px 0;
  background: var(--dark-canvas);
  color: #fff;
  overflow: hidden;
}

.privacy::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 560px;
  height: 380px;
  background: radial-gradient(ellipse, rgba(79, 107, 255, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.privacy .section-head h2 {
  color: #fff;
}

.privacy .section-head p {
  color: #aab6cd;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.privacy-card {
  padding: 28px 26px;
  border-radius: var(--r-lg);
}

.privacy-card .icon {
  width: 26px;
  height: 26px;
  color: var(--cyan);
  margin-bottom: 18px;
}

.privacy-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.privacy-card p {
  font-size: 0.9063rem;
  line-height: 1.6;
  color: #aab6cd;
}

/* ============================================================
   Beta / pricing
   ============================================================ */

.beta {
  padding: 104px 0;
  background: linear-gradient(180deg, var(--canvas) 0%, var(--mist) 100%);
}

.beta-card {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 38px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  text-align: center;
}

.beta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--grad-brand);
}

.beta-tag {
  display: inline-block;
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: var(--mist);
  border-radius: 100px;
  margin-bottom: 18px;
}

.beta-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.beta-price {
  margin: 10px 0 4px;
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.beta-price-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 26px;
}

.beta-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
  text-align: left;
}

.beta-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.9375rem;
  color: var(--slate);
}

.beta-list .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.beta-card .btn {
  width: 100%;
}

.beta-foot {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ============================================================
   FAQ
   ============================================================ */

.faq {
  padding: 104px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--mist);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-size: 1.0313rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
}

.faq-item p {
  padding: 0 4px 22px;
  color: var(--slate);
  max-width: 640px;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
  padding: 44px 0;
  background: var(--canvas);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.footer-tag {
  font-size: 0.8438rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--ink);
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-size: 0.9063rem;
  font-weight: 600;
  color: #fff;
  background: rgba(7, 10, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 13px;
  box-shadow: 0 16px 48px rgba(7, 10, 18, 0.4);
  opacity: 0;
  transform: translate(-50%, 14px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast .icon {
  width: 16px;
  height: 16px;
  color: var(--orange);
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy {
    max-width: 560px;
  }

  .capture-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 44px 0;
  }

  .feature-row.flip .feature-copy {
    order: 0;
  }

  .flow-grid {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step:not(:last-child)::after {
    display: none;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.9),
      0 0 0 1px rgba(203, 214, 238, 0.4),
      0 18px 48px rgba(50, 70, 120, 0.18);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-menu li a:not(.btn) {
    display: block;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-menu li a:not(.btn):hover {
    background: var(--mist);
  }

  .nav-menu li:last-child {
    margin: 8px 0 0;
  }

  .nav-menu li:last-child .btn {
    display: flex;
    width: 100%;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 48px);
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .ocr-vis {
    grid-template-columns: 1fr;
  }

  .capture,
  .features,
  .privacy,
  .beta,
  .faq {
    padding: 72px 0;
  }

  .seg {
    justify-content: flex-start;
  }

  .beta-card {
    padding: 32px 22px 28px;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* static, fully-composed simulator frame */
  .sim-rect,
  .sim-rect i,
  .sim-pill,
  .sim-toolbar {
    animation: none !important;
    opacity: 1;
  }

  .sim-cross,
  .sim-scan,
  .sim-tint,
  .sim-toast,
  .sim-card {
    animation: none !important;
    opacity: 0;
  }

  .ed-arrow path {
    stroke-dashoffset: 0;
  }
}
