/* FacePlugin static Space — shared stylesheet.
   Source of truth: hugging_face/_static-space-kit/style.css. Edit it there and run build.py;
   each Space gets a copy. */

:root {
  --bg: #fafafc;
  --fg: #0f1115;
  --card: #ffffff;
  --muted: #f3f4f7;
  --muted-fg: #5b6274;
  --border: #e8e8ef;
  --input: #e2e2ea;
  --primary: #8456e6;
  --accent: #efeafa;
  --accent-fg: #6d3fd6;
  --violet: #9465ea;
  --sky: #2db7f9;
  --gradient: linear-gradient(124deg, #9465ea 0%, #2db7f9 100%);
  --grid-dot: rgb(15 17 21 / 0.075);
  --checker: rgb(15 17 21 / 0.045);
  --success: #10b981;
  --success-fg: #047857;
  --danger: #ef4444;
  --danger-fg: #b91c1c;
  --warning: #f59e0b;
  --warning-fg: #b45309;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 8px 24px -12px rgb(15 17 21 / 0.12);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0a0f;
  --fg: #ececf3;
  --card: #111118;
  --muted: #17171f;
  --muted-fg: #9a9ab0;
  --border: rgb(255 255 255 / 0.08);
  --input: rgb(255 255 255 / 0.12);
  --primary: #a98bf5;
  --accent: #221b3a;
  --accent-fg: #cdb8ff;
  --grid-dot: rgb(255 255 255 / 0.06);
  --checker: rgb(255 255 255 / 0.035);
  --success-fg: #6ee7b7;
  --danger-fg: #fca5a5;
  --warning-fg: #fcd34d;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 500;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
p {
  margin: 0;
}

img {
  display: block;
}

::selection {
  background: rgb(148 101 234 / 0.25);
}

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ icons */

.ic {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ic.sm {
  width: 13px;
  height: 13px;
}

.ic.lg {
  width: 22px;
  height: 22px;
}

.ic.xl {
  width: 26px;
  height: 26px;
}

.spin {
  animation: fp-spin 0.9s linear infinite;
}

@keyframes fp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
  transition: background 0.15s, opacity 0.15s, box-shadow 0.15s, transform 0.1s;
}

.btn:active:not(:disabled) {
  transform: translateY(1px);
}

.btn-gradient {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgb(148 101 234 / 0.6);
}

.btn-gradient:hover:not(:disabled) {
  opacity: 0.93;
  box-shadow: 0 12px 30px -8px rgb(45 183 249 / 0.55);
}

.btn-gradient:disabled {
  opacity: 0.45;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--muted);
}

.btn-outline {
  border-color: var(--border);
  background: var(--card);
}

.btn-outline:hover {
  background: var(--muted);
}

.btn-lg {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14.5px;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-fg);
  transition: background 0.15s, color 0.15s;
}

.btn-icon:hover {
  background: var(--muted);
  color: var(--fg);
}

.btn-icon.lg {
  width: 36px;
  height: 36px;
}

/* ----------------------------------------------------------------- topbar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  height: 58px;
  margin: 0 auto;
  padding: 0 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand img {
  height: 24px;
  width: auto;
}

.brand-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.brand-title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: color-mix(in srgb, var(--fg) 82%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.api-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-right: 6px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted-fg);
  white-space: nowrap;
}

.api-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
}

.api-pill.is-online .api-dot {
  background: var(--success);
  box-shadow: 0 0 0 3px rgb(16 185 129 / 0.18);
}

.api-pill.is-offline .api-dot {
  background: var(--danger);
  box-shadow: 0 0 0 3px rgb(239 68 68 / 0.18);
}

.api-pill.is-checking .api-dot {
  animation: fp-pulse 1.2s ease-in-out infinite;
}

@keyframes fp-pulse {
  50% {
    opacity: 0.35;
  }
}

.theme-toggle .moon,
:root[data-theme="dark"] .theme-toggle .sun {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .moon {
  display: block;
}

/* ------------------------------------------------------------------ shell */

.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 20px 40px;
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow);
  scrollbar-width: none;
}

.tab {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 0 auto;
  padding: 8px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 0.15s;
}

.tab:hover {
  background: var(--muted);
}

.tab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--muted);
  color: var(--muted-fg);
}

.tab.is-active {
  background: var(--accent);
}

.tab.is-active .tab-icon {
  background: var(--gradient);
  color: #fff;
}

.tab-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.tab-sub {
  display: block;
  font-size: 12px;
  color: var(--muted-fg);
  white-space: nowrap;
}

.workspace {
  display: grid;
  gap: 20px;
}

@media (min-width: 1000px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    align-items: start;
  }
}

.left {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

/* -------------------------------------------------------------- tool head */

.tool-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 15px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 30px -12px rgb(148 101 234 / 0.8);
}

.tool-head h2 {
  font-family: var(--font-head);
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.tool-head p {
  margin-top: 6px;
  max-width: 640px;
  color: var(--muted-fg);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  font-size: 12px;
  font-weight: 650;
  color: var(--muted-fg);
  transition: border-color 0.15s, color 0.15s;
}

a.chip:hover {
  border-color: color-mix(in srgb, var(--violet) 45%, transparent);
  color: var(--fg);
}

.chip.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--fg);
}

.chip.mono b {
  color: var(--success);
  font-weight: 700;
}

/* ------------------------------------------------------------------ input */

.inputs {
  display: grid;
  gap: 14px;
}

@container (min-width: 600px) {
  .inputs.two {
    grid-template-columns: 1fr 1fr;
  }
}

.input-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-card:hover {
  border-color: color-mix(in srgb, var(--fg) 15%, transparent);
}

.input-card.is-active {
  border-color: color-mix(in srgb, var(--violet) 55%, transparent);
  box-shadow: 0 0 0 4px rgb(148 101 234 / 0.12);
}

.input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px 16px;
}

.input-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  font-weight: 700;
}

.input-title .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.slot-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 800;
}

.input-card.is-active .slot-num {
  background: var(--primary);
  color: #fff;
}

.optional {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-actions {
  display: flex;
  gap: 2px;
}

.stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 13px;
}

.stage.filled,
.checker {
  background-color: var(--muted);
  background-image:
    linear-gradient(45deg, var(--checker) 25%, transparent 25%, transparent 75%, var(--checker) 75%),
    linear-gradient(45deg, var(--checker) 25%, transparent 25%, transparent 75%, var(--checker) 75%);
  background-size: 16px 16px;
  background-position:
    0 0,
    8px 8px;
}

.fit {
  position: relative;
  max-width: 100%;
}

.fit > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fit.scanning::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgb(148 101 234 / 0.07);
}

.fit.scanning::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -30%;
  z-index: 3;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgb(45 183 249 / 0.3));
  border-bottom: 2px solid rgb(45 183 249 / 0.85);
  animation: fp-scan 1.4s ease-in-out infinite;
}

@keyframes fp-scan {
  to {
    top: 100%;
  }
}

.file-meta {
  position: absolute;
  bottom: 8px;
  left: 8px;
  z-index: 4;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
}

.dropzone {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  border: 2px dashed var(--border);
  border-radius: 13px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.dropzone:hover,
.input-card.is-active .dropzone {
  border-color: color-mix(in srgb, var(--violet) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 45%, transparent);
}

.dz-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--card);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.dz-title {
  font-size: 14px;
  font-weight: 700;
}

.dz-sub {
  margin-top: -6px;
  color: var(--muted-fg);
  font-size: 12px;
}

.stage.drag-over::after {
  content: "Release to load";
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--violet);
  border-radius: 13px;
  background: rgb(148 101 234 / 0.12);
  backdrop-filter: blur(2px);
  color: var(--primary);
  font-weight: 700;
}

/* boxes + landmarks (shared by input stage and result images) */

.mark {
  position: absolute;
  z-index: 2;
  border: 2px solid var(--tone, var(--sky));
  border-radius: 6px;
  box-shadow:
    0 0 0 1px rgb(0 0 0 / 0.2),
    0 0 16px rgb(0 0 0 / 0.15);
}

.mark-label {
  position: absolute;
  left: -2px;
  top: -3px;
  transform: translateY(-100%);
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--tone, var(--violet));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.mark-label.inside {
  top: 2px;
  left: 2px;
  transform: none;
}

.pt {
  position: absolute;
  z-index: 3;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.9);
  transform: translate(-50%, -50%);
}

.stamp {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--tone);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px -6px rgb(0 0 0 / 0.4);
}

/* ---------------------------------------------------------------- samples */

.samples {
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
}

.samples-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
}

.samples-head b {
  font-size: 14px;
}

.samples-head span {
  color: var(--muted-fg);
  font-size: 12px;
}

.samples-head span strong {
  color: var(--fg);
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.sample {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--muted);
  box-shadow: 0 0 0 1px var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.sample.doc {
  aspect-ratio: 4 / 3;
}

.sample img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  pointer-events: none;
}

.sample:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--violet) 55%, transparent),
    0 10px 24px -10px rgb(0 0 0 / 0.3);
}

.sample:hover img {
  transform: scale(1.05);
}

.sample.is-used {
  box-shadow: 0 0 0 2px var(--violet);
}

.sample-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

/* ---------------------------------------------------------------- run bar */

.runbar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.ready {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dots {
  display: flex;
  gap: 6px;
}

.dots span {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 15%, transparent);
}

.dots span.opt {
  background: var(--border);
}

.dots span.on {
  background: linear-gradient(90deg, #9465ea, #2db7f9);
}

.ready-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted-fg);
  font-size: 13.5px;
}

.ready-text b {
  color: var(--fg);
}

.run-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.kbds {
  display: flex;
  gap: 4px;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
  box-shadow: 0 1px 0 var(--border);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
}

/* ----------------------------------------------------------- result panel */

.result-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--shadow);
}

@media (min-width: 1000px) {
  .result-panel {
    position: sticky;
    top: 74px;
    max-height: calc(100vh - 90px);
  }
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.result-title {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
}

.result-sub {
  color: var(--muted-fg);
  font-size: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 700;
}

.status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status.running {
  background: rgb(245 158 11 / 0.12);
  color: var(--warning-fg);
}

.status.running i {
  animation: fp-pulse 1s ease-in-out infinite;
}

.status.success {
  background: rgb(16 185 129 / 0.12);
  color: var(--success-fg);
}

.status.error {
  background: rgb(239 68 68 / 0.12);
  color: var(--danger-fg);
}

.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--border);
}

.meta-left {
  display: flex;
  gap: 12px;
  white-space: nowrap;
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 11px;
}

.meta-left .ok {
  color: var(--success);
  font-weight: 700;
}

.meta-left .bad {
  color: var(--danger);
  font-weight: 700;
}

.meta-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.seg {
  display: flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--muted);
}

.seg button {
  padding: 4px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 700;
}

.seg button.is-on {
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.result-body {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

/* empty / busy / error */

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 8px;
  text-align: center;
}

.empty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 0 40px rgb(148 101 234 / 0.35);
}

.empty h2 {
  font-family: var(--font-head);
  font-size: 18px;
}

.empty > p {
  max-width: 270px;
  margin-top: 6px;
  color: var(--muted-fg);
  font-size: 13.5px;
}

.steps {
  width: 100%;
  max-width: 290px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  color: var(--muted-fg);
  font-size: 13px;
}

.steps b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
}

.busy-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--muted) 50%, transparent);
  color: var(--primary);
}

.busy-card b {
  display: block;
  color: var(--fg);
  font-size: 14px;
}

.busy-card span {
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 11px;
}

.skel {
  border-radius: 10px;
  background: linear-gradient(90deg, var(--muted) 0%, color-mix(in srgb, var(--muted) 40%, var(--card)) 50%, var(--muted) 100%);
  background-size: 200% 100%;
  animation: fp-shimmer 1.3s linear infinite;
}

@keyframes fp-shimmer {
  to {
    background-position: -200% 0;
  }
}

.error-card {
  display: flex;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgb(239 68 68 / 0.25);
  border-radius: 12px;
  background: rgb(239 68 68 / 0.06);
  color: var(--danger-fg);
}

.error-card b {
  display: block;
  font-size: 14px;
}

.error-card p {
  margin-top: 3px;
  color: var(--muted-fg);
  font-size: 13.5px;
  overflow-wrap: anywhere;
}

/* JSON */

.json {
  margin: 0;
  padding: 16px;
  overflow: auto;
  border-radius: 12px;
  background: #0d0d14;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.05);
  color: #e4e4f0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

.json .k {
  color: #c4b5fd;
}

.json .s {
  color: #7dd3fc;
}

.json .b {
  color: #f9a8d4;
}

.json .n {
  color: #fcd34d;
}

/* ------------------------------------------------------- result components */

.tone-success {
  --tone: var(--success);
  --tone-fg: var(--success-fg);
  --tone-soft: rgb(16 185 129 / 0.12);
}

.tone-danger {
  --tone: var(--danger);
  --tone-fg: var(--danger-fg);
  --tone-soft: rgb(239 68 68 / 0.12);
}

.tone-warning {
  --tone: var(--warning);
  --tone-fg: var(--warning-fg);
  --tone-soft: rgb(245 158 11 / 0.14);
}

.tone-brand {
  --tone: var(--violet);
  --tone-fg: var(--primary);
  --tone-soft: var(--accent);
}

.tone-neutral {
  --tone: #94a3b8;
  --tone-fg: var(--muted-fg);
  --tone-soft: var(--muted);
}

.hero {
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent);
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 14%, transparent), color-mix(in srgb, var(--tone) 2%, transparent));
}

.tone-brand.hero {
  background: linear-gradient(135deg, rgb(148 101 234 / 0.15), rgb(45 183 249 / 0.05));
}

.hero-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--tone);
  color: #fff;
  box-shadow: 0 8px 20px -8px var(--tone);
}

.tone-brand .hero-icon {
  background: var(--gradient);
}

.hero-text {
  flex: 1;
  min-width: 0;
}

.eyebrow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--tone-fg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-sub {
  margin-top: 2px;
  color: var(--muted-fg);
  font-size: 13.5px;
}

.hero-extra {
  margin-top: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--tone-soft);
  color: var(--tone-fg);
  font-size: 12px;
  font-weight: 750;
}

.pill .soft {
  font-weight: 550;
  opacity: 0.8;
}

.ring {
  position: relative;
  flex-shrink: 0;
}

.ring svg {
  display: block;
  transform: rotate(-90deg);
}

.ring .track {
  stroke: color-mix(in srgb, var(--fg) 10%, transparent);
}

.ring .tick {
  stroke: color-mix(in srgb, var(--fg) 70%, transparent);
}

.ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-text b {
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1;
}

.ring-text b small {
  font-size: 11px;
}

.ring-text span {
  margin-top: 2px;
  color: var(--muted-fg);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meter {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.meter.thin {
  height: 6px;
}

.meter-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--tone, var(--gradient));
}

.tone-brand .meter-fill,
.meter.tone-brand .meter-fill {
  background: linear-gradient(90deg, #9465ea, #2db7f9);
}

.meter-tick {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 16px;
  border-radius: 2px;
  background: color-mix(in srgb, var(--fg) 70%, transparent);
  transform: translateX(-50%);
}

.sec {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sec-title {
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sec-aside {
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 650;
}

.card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.card.pad {
  padding: 16px;
}

.note {
  color: var(--muted-fg);
  font-size: 11.5px;
}

.explain {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  color: var(--muted-fg);
  font-size: 13.5px;
  line-height: 1.6;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tiles.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.tile-label {
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 650;
}

.tile-value {
  margin-top: 1px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 750;
}

.tile-value.warn {
  color: var(--warning-fg);
}

.tile-hint {
  color: var(--muted-fg);
  font-size: 11px;
}

.pose-bar {
  position: relative;
  height: 6px;
  margin-top: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}

.pose-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 10px;
  background: color-mix(in srgb, var(--fg) 30%, transparent);
  transform: translateY(-50%);
}

.pose-bar i {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 2px var(--card);
  transform: translate(-50%, -50%);
}

.pose-bar i.warn {
  background: var(--warning);
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 14px;
}

.checks li + li {
  border-top: 1px solid var(--border);
}

.checks .ic {
  margin-top: 2px;
}

.check-text {
  flex: 1;
  min-width: 0;
}

.check-text b {
  display: block;
  font-size: 13.5px;
}

.check-text span {
  display: block;
  margin-top: 1px;
  color: var(--muted-fg);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.check-value {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
}

.st-pass {
  color: var(--success);
}

.st-pass.check-value {
  color: var(--success-fg);
}

.st-fail {
  color: var(--danger);
}

.st-fail.check-value {
  color: var(--danger-fg);
}

.st-warn {
  color: var(--warning);
}

.st-warn.check-value {
  color: var(--warning-fg);
}

.st-skip {
  color: var(--muted-fg);
}

.annot {
  margin: 0;
}

.annot-frame {
  display: flex;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--border);
}

.annot figcaption {
  margin-top: 6px;
  color: var(--muted-fg);
  font-size: 11px;
}

.annot-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.thumb {
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  background-color: var(--muted);
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px var(--border);
}

.profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-name {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.15;
  font-weight: 700;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tag {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 650;
}

.tag.accent {
  background: var(--accent);
  color: var(--accent-fg);
}

.mini-title {
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 650;
}

.emotions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emo {
  display: grid;
  grid-template-columns: 88px 1fr 40px;
  align-items: center;
  gap: 10px;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 650;
}

.emo.top {
  color: var(--fg);
}

.emo span:last-child {
  font-family: var(--font-mono);
  text-align: right;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.match-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 16px;
}

.match-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 650;
}

.match-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.match-link .circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tone-soft);
  color: var(--tone-fg);
}

.match-link b {
  color: var(--tone-fg);
  font-family: var(--font-head);
  font-size: 14px;
}

.scale {
  position: relative;
  height: 16px;
  margin-top: 8px;
  color: var(--muted-fg);
  font-size: 10px;
  font-weight: 650;
}

.scale span {
  position: absolute;
}

.scale .mid {
  transform: translateX(-50%);
}

.scale .end {
  right: 0;
}

.score-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
  font-weight: 650;
}

.score-line b {
  color: var(--tone-fg);
  font-family: var(--font-head);
  font-size: 18px;
}

/* ID card */

.idcard {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 18px 16px 16px;
  overflow: hidden;
}

.idcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #9465ea, #2db7f9);
}

.idcard-photo {
  width: 96px;
  height: 120px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 12px;
  background: var(--muted);
  box-shadow: 0 0 0 1px var(--border);
}

.idcard-photo.empty-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
}

.idcard-body {
  flex: 1;
  min-width: 0;
}

.idcard-name {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 10px 0 0;
}

.facts dt {
  color: var(--muted-fg);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.facts dd {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 700;
}

.facts dd.expired {
  color: var(--danger-fg);
}

.fields {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.field {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 14px;
  border: 0;
  background: transparent;
  text-align: left;
  transition: background 0.12s;
}

.field + .field {
  border-top: 1px solid var(--border);
}

.field:hover {
  background: color-mix(in srgb, var(--muted) 60%, transparent);
}

.field dt {
  color: var(--muted-fg);
  font-size: 13.5px;
}

.field dd {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.field dd .ic {
  opacity: 0;
  color: var(--muted-fg);
  transition: opacity 0.12s;
}

.field:hover dd .ic {
  opacity: 1;
}

.expired-tag {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgb(239 68 68 / 0.12);
  color: var(--danger-fg);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.iq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@container (min-width: 380px) {
  .iq {
    grid-template-columns: 1fr 1fr;
  }
}

.iq div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 650;
}

.iq span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iq em {
  color: var(--muted-fg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-style: normal;
}

.crops {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.crops figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.crops .crop-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 8px;
}

.crops img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.crops figcaption {
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  color: var(--muted-fg);
  font-size: 11px;
  font-weight: 650;
}

.auth {
  overflow: hidden;
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  font-size: 13.5px;
  font-weight: 750;
}

.auth .checks {
  border: 0;
  border-radius: 0;
}

.auth-score {
  padding: 12px 14px;
}

.auth-score div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--muted-fg);
  font-size: 12px;
}

.auth-score b {
  color: var(--fg);
  font-family: var(--font-head);
  font-size: 14px;
}

/* ----------------------------------------------------------------- footer */

.foot {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 28px;
  color: var(--muted-fg);
  font-size: 12.5px;
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-weight: 650;
}

.foot-links a:hover {
  color: var(--fg);
}

/* ----------------------------------------------------------------- camera */

.camera {
  width: min(560px, calc(100vw - 32px));
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  color: var(--fg);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.5);
}

.camera::backdrop {
  background: rgb(0 0 0 / 0.5);
  backdrop-filter: blur(3px);
}

.camera h2 {
  font-family: var(--font-head);
  font-size: 18px;
}

.camera p {
  margin-top: 4px;
  color: var(--muted-fg);
  font-size: 13.5px;
}

.camera video {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 14px;
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

.camera .cam-error {
  margin-top: 14px;
  color: var(--danger-fg);
}

.camera-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

/* ----------------------------------------------------------------- toasts */

.toasts {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 650;
  animation: fp-toast 0.2s ease-out;
}

.toast.error {
  color: var(--danger-fg);
}

@keyframes fp-toast {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 760px) {
  .topbar-inner {
    padding: 0 14px;
  }

  .hide-sm {
    display: none !important;
  }

  .shell {
    padding: 16px 14px 32px;
  }

  .tool-head h2 {
    font-size: 23px;
  }

  .kbds {
    display: none;
  }

  .runbar .ready-text {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===================================================================== */
/*        Static, crawlable page content (rendered by build.py)          */
/* ===================================================================== */

.intro {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 20px 2px;
}

.intro-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

.intro h1 {
  margin-top: 12px;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.intro h1 .grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.intro > p {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted-fg);
  font-size: 16px;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.intro-badges li {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--muted-fg);
  font-size: 12px;
  font-weight: 650;
}

.seo {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 20px 8px;
}

.seo-block {
  margin-top: 44px;
}

.seo h2 {
  font-family: var(--font-head);
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.022em;
}

.seo-lede {
  max-width: 820px;
  margin-top: 8px;
  color: var(--muted-fg);
  font-size: 15.5px;
  line-height: 1.65;
}

.seo-lede + .seo-lede {
  margin-top: 10px;
}

.seo a.inline {
  color: var(--primary);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--primary) 35%, transparent);
  text-underline-offset: 3px;
}

.feature-grid,
.repo-grid,
.space-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.feature h3,
.repo h3,
.space-card h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
}

.feature p {
  margin-top: 6px;
  color: var(--muted-fg);
  font-size: 13.5px;
  line-height: 1.55;
}

.feature .num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 9px;
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.repo,
.space-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.repo:hover,
.space-card:hover {
  border-color: color-mix(in srgb, var(--violet) 45%, transparent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.repo-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.platform {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 800;
}

.repo .ic,
.space-card .ic {
  color: var(--muted-fg);
}

.repo h3 {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.repo p,
.space-card p {
  color: var(--muted-fg);
  font-size: 13px;
  line-height: 1.5;
}

.repo .go,
.space-card .go {
  margin-top: auto;
  padding-top: 4px;
  color: var(--primary);
  font-size: 12.5px;
  font-weight: 700;
}

.usecases {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.usecases li {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  font-size: 13.5px;
  font-weight: 650;
}

.faq {
  margin-top: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.faq details + details {
  border-top: 1px solid var(--border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--muted-fg);
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  padding: 0 18px 16px;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 1.65;
}

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding: 28px;
  border-radius: 22px;
  background: var(--gradient);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 620px;
  margin-top: 6px;
  color: rgb(255 255 255 / 0.9);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-white {
  background: #fff;
  color: #6d3fd6;
}

.btn-white:hover {
  opacity: 0.92;
}

.btn-glass {
  border-color: rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.btn-glass:hover {
  background: rgb(255 255 255 / 0.2);
}

.foot {
  margin-top: 40px;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 26px 0 18px;
  border-top: 1px solid var(--border);
}

.foot-cols p {
  margin-bottom: 8px;
  color: var(--fg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.foot-cols ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-cols li + li {
  margin-top: 6px;
}

.foot-cols a:hover {
  color: var(--fg);
}

.foot-note {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

@media (max-width: 760px) {
  .intro {
    padding: 18px 14px 0;
  }

  .seo {
    padding: 12px 14px 0;
  }

  .cta-band {
    padding: 22px;
  }
}
