:root {
  --bg: #1a1a1a;
  --bg-subtle: #222;
  --text: #e5e5e5;
  --text-secondary: #aaa;
  --text-muted: #777;
  --border: #3a3a3a;
  --border-light: #333;
  --card-bg: #2a2a2a;
  --card-border: #3a3a3a;
  --btn-bg: #e5e5e5;
  --btn-text: #1a1a1a;
  --hover-bg: #333;
  --severity-critical: #ef4444;
  --severity-warning: #f59e0b;
  --severity-info: #6b7280;
  --font: 'Google Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-demo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  cursor: url('data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2220%22%20height%3D%2224%22%20viewBox%3D%220%200%2020%2024%22%20fill%3D%22none%22%3E%3Cpath%20d%3D%22M1%201L18.5%2013.5L10%2015L6.5%2023L1%201Z%22%20fill%3D%22%23000%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%2F%3E%3C%2Fsvg%3E') 1 1, auto;
}

a, button, [role="button"] {
  cursor: pointer;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 0; }
li { list-style: none; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: 0;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}
.btn-primary:hover { opacity: 0.85; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  background: var(--hover-bg);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  background: var(--hover-bg);
}

.btn-pro {
  background: transparent;
  color: var(--text);
  border: 1px solid #666;
}
.btn-pro:hover { border-color: #888; }

.btn-lg {
  padding: 14px 32px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
  text-align: center;
  padding: 14px 24px;
}

.pro-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid #666;
  color: var(--text-secondary);
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 4px;
  line-height: 1.4;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 0;
  flex-shrink: 0;
}
.logo-mark img {
  width: 52px;
  height: 52px;
  display: block;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo .logo-mark {
  width: 32px;
  height: 32px;
}
.nav-logo .logo-mark img {
  width: 32px;
  height: 32px;
}

.nav-logo-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
  text-decoration: none;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 0;
  transition: all 0.2s;
}

/* ========== HERO ========== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 32px;
}

.hero-logo img {
  height: 160px;
  width: 160px;
  display: block;
}

.hero-logo-plus {
  font-size: 48px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-lokum-wrap,
.hero-figma-wrap {
  position: relative;
  display: inline-block;
}

.hero-logo.animating {
  pointer-events: none;
}

.hero-lokum-wrap.bounce img {
  animation: lokumBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.hero-figma-wrap.bounce img {
  animation: lokumBounce 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes lokumBounce {
  0%   { transform: translateY(0) scaleX(1) scaleY(1); }
  15%  { transform: translateY(0) scaleX(1.06) scaleY(0.94); }
  30%  { transform: translateY(-24px) scaleX(0.96) scaleY(1.04); }
  50%  { transform: translateY(-28px) scaleX(1) scaleY(1); }
  65%  { transform: translateY(-28px) scaleX(0.98) scaleY(1.02); }
  80%  { transform: translateY(0) scaleX(1.04) scaleY(0.96); }
  90%  { transform: translateY(-4px) scaleX(0.99) scaleY(1.01); }
  100% { transform: translateY(0) scaleX(1) scaleY(1); }
}

.lokum-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  animation: particleDrift 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes particleDrift {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--px), var(--py)) scale(0.3);
  }
}

.hero-title {
  font-size: 56px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-highlight {
  background: linear-gradient(135deg, #e5e5e5 0%, #777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 64px;
}

/* ========== FEATURES ========== */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

.feature-card {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.15s;
}
.feature-card:hover {
  background: var(--hover-bg);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}
.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ========== HOW IT WORKS ========== */
.how-it-works {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--btn-bg);
  color: var(--btn-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.step-content {
  padding-top: 4px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-connector {
  width: 2px;
  height: 40px;
  background: var(--border);
  margin: 8px 0;
  margin-left: 23px;
  align-self: flex-start;
}

/* ========== FRAMEWORKS ========== */
.frameworks {
  padding: 100px 0;
}

.fw-list {
  max-width: 700px;
  margin: 0 auto;
}

.fw-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.fw-item:first-child {
  border-top: 1px solid var(--border);
}

.fw-item-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.fw-name {
  font-size: 16px;
  font-weight: 600;
  font-family: var(--font);
}

.fw-tier {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  flex-shrink: 0;
}

.fw-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ========== PRICING ========== */
.pricing {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  max-width: 740px;
  margin: 0 auto;
  background: var(--border);
}

.pricing-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}

.pricing-pro {
  position: relative;
  border: 1px solid #666;
  background: #222;
}

.pricing-pro-badge {
  position: absolute;
  top: -10px;
  left: 32px;
  background: var(--bg);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 2px 12px;
  border: 1px solid #666;
}

.pricing-card-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.pricing-tier {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-features {
  flex: 1;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-features li {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pricing-features li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 0;
  flex-shrink: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 11px;
}

.pricing-features li.included::before {
  background-color: var(--hover-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23e5e5e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.pricing-features li.excluded {
  color: var(--text-muted);
}
.pricing-features li.excluded::before {
  background-color: var(--card-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

/* ========== FAQ ========== */
.faq {
  padding: 100px 0;
}

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

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: color 0.15s;
}
.faq-question:hover {
  color: var(--text-secondary);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer-inner {
  padding-bottom: 20px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.faq-answer p {
  padding-bottom: 20px;
}
.faq-answer ul, .faq-answer ol {
  padding-bottom: 20px;
  padding-left: 20px;
}
.faq-answer li {
  list-style: disc;
  margin-bottom: 6px;
}
.faq-answer ol li {
  list-style: decimal;
}
.faq-answer strong {
  color: var(--text);
}

/* ========== CTA ========== */
.cta {
  padding: 100px 0;
  background: var(--bg-subtle);
}

.cta-inner {
  text-align: center;
  padding: 64px 40px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.cta-title {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

/* ========== FOOTER ========== */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-logo span {
  font-size: 15px;
  font-weight: 600;
}
.footer-logo .logo-mark {
  width: 28px;
  height: 28px;
}
.footer-logo .logo-mark img {
  width: 28px;
  height: 28px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.footer-dedication {
  font-style: italic;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .nav-links.open,
  .nav-actions.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }
  .nav-links.open a {
    font-size: 16px;
    padding: 8px 0;
  }
  .nav-actions.open .btn {
    width: 100%;
    justify-content: center;
  }

  .hero { padding: 120px 0 60px; }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 300px; }

  .section-title { font-size: 28px; }

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

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-links { gap: 40px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .cta-inner { padding: 40px 24px; }
  .cta-title { font-size: 28px; }
  .cta-actions { flex-direction: column; align-items: center; }
  .cta-actions .btn { width: 100%; max-width: 300px; }

  .figma-body { height: 420px; }
  .figma-layers { width: 120px; }
  .figma-design { width: 160px; }
  .figma-plugin-float { width: 180px; bottom: 12px; right: 12px; }
  .dff-left { width: 280px; }
}


/* ============================================================
   INTERACTIVE DEMO — FIGMA SHELL
   ============================================================ */

.demo { width: 80%; margin: 0 auto; padding-bottom: 80px; }
.demo .container { max-width: none; }

.figma-shell {
  background: #2c2c2c;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid #3a3a3a;
  font-family: var(--font-demo);
}

.figma-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  background: #2c2c2c;
  border-bottom: 1px solid #444;
}
.figma-toolbar-left,
.figma-toolbar-center,
.figma-toolbar-right {
  display: flex; align-items: center; gap: 10px;
}
.figma-filename {
  font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.8);
}
.figma-toolbar-sep { width: 1px; height: 16px; background: #555; }
.figma-toolbar-center svg { cursor: pointer; }

.figma-body {
  display: flex;
  height: 520px;
  position: relative;
}

/* --- Left Layers Panel --- */
.figma-layers {
  width: 180px;
  flex-shrink: 0;
  background: #252525;
  border-right: 1px solid #3a3a3a;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.figma-layers-header {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.8px;
  margin-bottom: 4px;
}
.skel-pill {
  height: 8px;
  background: #3a3a3a;
  border-radius: 4px;
}
.skel-spacer { height: 20px; }

/* --- Right Design Panel --- */
.figma-design {
  width: 220px;
  flex-shrink: 0;
  background: #252525;
  border-left: 1px solid #3a3a3a;
  display: flex;
  flex-direction: column;
}
.figma-design-tabs {
  display: flex;
  border-bottom: 1px solid #3a3a3a;
  padding: 0 12px;
}
.figma-design-tab {
  font-size: 11px; font-weight: 500;
  color: rgba(255,255,255,0.35);
  padding: 8px 10px;
  border-bottom: 2px solid transparent;
}
.figma-design-tab.active {
  color: rgba(255,255,255,0.8);
  border-bottom-color: #fff;
}
.figma-design-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skel-pill-d {
  height: 8px;
  background: #3a3a3a;
  border-radius: 4px;
}
.skel-pill-d-sm {
  height: 20px;
  background: #333;
  border-radius: 4px;
}
.fig-design-row,
.figma-design-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.skel-color-dot {
  width: 14px; height: 14px;
  border-radius: 3px;
  background: #2563eb;
  border: 1px solid #1d4ed8;
  flex-shrink: 0;
}
.figma-design-sep {
  height: 1px;
  background: #3a3a3a;
  margin: 4px 0;
}

/* --- Canvas --- */
.figma-canvas {
  flex: 1;
  background: #1e1e1e;
  position: relative;
  overflow: hidden;
}
.figma-canvas-inner {
  position: absolute;
  top: 50%;
  left: 38%;
  transform: translate(0, -50%);
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.figma-canvas-phone-wrap {
  position: relative;
  flex-shrink: 0;
}

.figma-canvas-findings-wrap {
  margin-left: 60px;
  align-self: flex-start;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.5s, transform 0.5s;
  pointer-events: none;
}

.figma-canvas-findings-wrap.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.demo-findings-frame {
  flex-shrink: 0;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  overflow: hidden;
}
.figma-frame-label {
  font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.4);
  margin-bottom: 6px;
  padding-left: 8px;
}
.figma-selection-box {
  display: none;
}

/* --- Floating Plugin Panel (dark mode) --- */
.figma-plugin-float {
  position: absolute;
  bottom: 16px;
  right: 30px;
  width: 260px;
  background: #2c2c2c;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.08);
  z-index: 20;
  overflow: hidden;
  color: rgba(255,255,255,0.8);
  font-size: 11px;
}
.fpf-dragbar {
  height: 8px;
  background: #383838;
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fpf-dragbar::after {
  content: '';
  width: 28px; height: 3px;
  background: #555;
  border-radius: 0;
}
.fpf-header {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 6px;
  border-bottom: 1px solid #3a3a3a;
}
.fpf-logo-mark {
  width: 24px; height: 24px; border-radius: 0;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
}
.fpf-logo-mark img {
  width: 24px; height: 24px; display: block;
}
.fpf-header-text {
  display: flex; flex-direction: column; gap: 1px;
}
.fpf-title { font-size: 11px; font-weight: 600; color: #e5e5e5; }
.fpf-desc { font-size: 9px; color: rgba(255,255,255,0.4); }
.fpf-layout {
  display: flex;
  min-height: 320px;
}
.fpf-sidebar {
  width: 72px;
  flex-shrink: 0;
  background: #252525;
  border-right: 1px solid #333;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.fpf-sb-item {
  width: 56px;
  height: 7px;
  background: #3a3a3a;
  border-radius: 0;
}
.fpf-sb-item.active { background: #555; }
.fpf-sb-spacer { flex: 1; }
.skel-pill-dk {
  height: 7px;
  background: #3a3a3a;
  border-radius: 0;
}
.fpf-spacer { flex: 1; }
.fpf-scan-btn {
  width: 100%; padding: 8px;
  background: #e5e5e5; color: #1a1a1a; border: none;
  border-radius: 0; font-size: 10px; font-weight: 600;
  cursor: pointer; font-family: var(--font-demo);
  transition: opacity 0.15s;
}
.fpf-scan-btn:hover { opacity: 0.85; }
.fpf-scan-btn:disabled { background: #555; color: #888; cursor: not-allowed; }
.fpf-reset-btn {
  width: 100%; padding: 7px;
  background: transparent; color: rgba(255,255,255,0.6);
  border: 1px solid #444;
  border-radius: 0; font-size: 9px; font-weight: 600;
  cursor: pointer; font-family: var(--font-demo);
  transition: all 0.15s;
}
.fpf-reset-btn:hover { border-color: rgba(255,255,255,0.3); color: #fff; }

/* --- Canvas cursor for panning --- */
.figma-canvas { cursor: grab; }
.figma-canvas.panning { cursor: grabbing; }
.figma-body.panning .figma-plugin-float { pointer-events: none; }


/* ============================================================
   PHONE UI (FalconBank mockup)
   ============================================================ */

.demo-phone {
  width: 220px;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0;
  overflow: hidden;
  position: relative;
  font-family: var(--font-demo);
}

.dp-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 14px;
  font-size: 9px;
  font-weight: 600;
  color: #1a1a1a;
}

.dp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
}

.dp-logo {
  font-size: 15px;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}

.dp-bell {
  position: relative;
  width: 18px;
  height: 18px;
}

.dp-bell-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 6px;
  height: 6px;
  background: #ef4444;
  border-radius: 50%;
  border: 1px solid #fff;
}

.dp-balance-card {
  margin: 0 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #1a1a1a, #333);
  border-radius: 10px;
  color: #fff;
}

.dp-balance-label {
  font-size: 10px;
  opacity: 0.6;
  margin-bottom: 4px;
}

.dp-balance-amount {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.dp-card-num {
  font-size: 10px;
  opacity: 0.4;
  margin-bottom: 12px;
}

.dp-spending-label {
  font-size: 9px;
  opacity: 0.5;
}

.dp-spending-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.dp-spending-pct {
  font-size: 9px;
  font-weight: 700;
  color: #f59e0b;
}

.dp-spending-bar {
  height: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.dp-spending-fill {
  height: 100%;
  width: 78%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  border-radius: 2px;
}

.dp-actions {
  display: flex;
  gap: 20px;
  padding: 14px 14px 10px;
}

.dp-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dp-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dp-action-label {
  font-size: 9px;
  font-weight: 600;
  color: #1a1a1a;
}

.dp-transactions {
  padding: 6px 14px 8px;
}

.dp-tx-header {
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.dp-tx {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.dp-tx-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dp-tx-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dp-tx-name {
  font-size: 11px;
  font-weight: 600;
  color: #1a1a1a;
}

.dp-tx-date {
  font-size: 9px;
  color: #999;
}

.dp-tx-amount {
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.dp-tx-amount.neg { color: #ef4444; }
.dp-tx-amount.pos { color: #16a34a; }

.dp-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 8px 8px 10px;
  border-top: 1px solid #f0f0f0;
  margin-top: 4px;
}

.dp-nav-item {
  font-size: 9px;
  font-weight: 500;
  color: #999;
  padding: 2px 0;
}

.dp-nav-item.active {
  color: #1a1a1a;
  font-weight: 700;
}


/* ============================================================
   SCAN OVERLAY
   ============================================================ */

.demo-scan-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,30,30,0.9);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 30;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.fpf-main {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-scan-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.demo-scan-dots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.demo-scan-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  animation: dotPulse 1.4s ease-in-out infinite;
}

.demo-scan-dots .dot.anim-1 { animation-delay: 0s; }
.demo-scan-dots .dot.anim-2 { animation-delay: 0.15s; }
.demo-scan-dots .dot.anim-3 { animation-delay: 0.3s; }
.demo-scan-dots .dot.anim-4 { animation-delay: 0.45s; }
.demo-scan-dots .dot.anim-5 { animation-delay: 0.6s; }
.demo-scan-dots .dot.anim-6 { animation-delay: 0.75s; }
.demo-scan-dots .dot.anim-7 { animation-delay: 0.9s; }
.demo-scan-dots .dot.anim-8 { animation-delay: 1.05s; }
.demo-scan-dots .dot.anim-9 { animation-delay: 1.2s; }

@keyframes dotPulse {
  0%, 100% { background: rgba(255,255,255,0.1); transform: scale(0.8); }
  50% { background: rgba(255,255,255,0.6); transform: scale(1.3); }
}

.demo-scan-text {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  margin-bottom: 8px;
  text-align: center;
}

.demo-scan-hint {
  font-size: 10px;
  color: rgba(255,255,255,0.3);
  text-align: center;
}


/* ============================================================
   PINS (canvas only)
   ============================================================ */

.demo-pins {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.demo-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: auto;
  cursor: default;
  z-index: 10;
}

.demo-pin.visible { transform: scale(1); }
.demo-pin.critical { background: #ef4444; }
.demo-pin.warning { background: #f59e0b; }
.demo-pin.info { background: #6b7280; }

.demo-pin-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #e5e5e5;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 0;
  white-space: normal;
  width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  border: 1px solid #444;
  z-index: 100;
}

.demo-pin:hover .demo-pin-tooltip { opacity: 1; }


/* ============================================================
   FINDINGS FRAME
   ============================================================ */

.dff-inner {
  display: flex;
  gap: 0;
  overflow: hidden;
}

.dff-left {
  width: 320px;
  background: #fff;
}

.dff-findings-header {
  padding: 12px 14px 0;
  background: #fff;
}

.dff-title {
  display: none;
}

.dff-summary {
  font-size: 10px;
  color: #999;
}

.dff-divider {
  height: 1px;
  background: #f0f0f0;
  margin-top: 8px;
}

.dff-findings-body {
  padding: 8px 0;
}


/* ============================================================
   FINDING ITEMS (in findings list)
   ============================================================ */

.demo-sev-group {
  margin-bottom: 8px;
}

.demo-sev-header {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 14px;
}

.demo-sev-header.critical { color: #ef4444; background: #fef2f2; }
.demo-sev-header.warning { color: #f59e0b; background: #fffbeb; }
.demo-sev-header.info { color: #6b7280; background: #f9fafb; }

.demo-finding {
  padding: 10px 14px;
  border-bottom: 1px solid #f5f5f5;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

.demo-finding.visible {
  opacity: 1;
  transform: translateY(0);
}

.demo-finding-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.demo-finding-id {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 18px;
  border-radius: 0;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.demo-finding-id.critical { background: #ef4444; }
.demo-finding-id.warning { background: #f59e0b; }
.demo-finding-id.info { background: #6b7280; }

.demo-finding-fw {
  font-size: 10px;
  font-weight: 600;
  color: #999;
}

.demo-finding-comment {
  font-size: 11px;
  line-height: 1.5;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.demo-finding-rec {
  font-size: 10px;
  line-height: 1.4;
  color: #16a34a;
  font-weight: 500;
}
