/* ============================================================================
   OmniSEO Free Tools — Shared dark-theme styles
   Class prefix: ft-
   Loaded only on /tools/ pages.
   ============================================================================ */

:root {
  --ft-bg: #0a0a0f;
  --ft-surface: rgba(255,255,255,0.03);
  --ft-surface-2: rgba(255,255,255,0.05);
  --ft-surface-soft: rgba(255,255,255,0.02);
  --ft-border: rgba(255,255,255,0.10);
  --ft-border-strong: rgba(255,255,255,0.18);
  --ft-ink: #f8fafc;
  --ft-ink-2: #e2e8f0;
  --ft-ink-3: #cbd5e1;
  --ft-ink-4: #94a3b8;
  --ft-ink-5: #64748b;
  --ft-blue: #38bdf8;
  --ft-blue-2: #60a5fa;
  --ft-blue-bg: rgba(59,130,246,0.10);
  --ft-blue-border: rgba(59,130,246,0.28);
  --ft-green: #34d399;
  --ft-green-bg: rgba(16,185,129,0.10);
  --ft-red: #f87171;
  --ft-red-bg: rgba(239,68,68,0.10);
  --ft-yellow: #fbbf24;
  --ft-yellow-bg: rgba(245,158,11,0.12);
  --ft-purple: #c084fc;
  --ft-orange: #fb923c;
}

/* ============================================================================
   TOKEN PILL (sticky bar)
   ============================================================================ */

#token-pill-mount {
  display: flex;
  justify-content: flex-end;
  padding: 12px 0 0;
}

.ft-token-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ft-border);
  border-radius: 9999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ft-ink-3);
  letter-spacing: 0.04em;
  cursor: default;
  user-select: none;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.ft-token-pill .icon {
  display: inline-flex;
  flex: none;
  color: var(--ft-green);
}
.ft-token-pill .icon svg { width: 13px; height: 13px; display: block; }
.ft-token-pill .arrow { display: none; flex: none; }
.ft-token-pill .arrow svg { width: 11px; height: 11px; display: block; }
.ft-token-pill.warn .icon { color: var(--ft-yellow); }
.ft-token-pill.exhausted { color: var(--ft-red); border-color: rgba(239,68,68,0.30); }
.ft-token-pill.exhausted .icon { color: var(--ft-red); }
.ft-token-pill.needs-email {
  color: var(--ft-red);
  border-color: rgba(239,68,68,0.35);
  cursor: pointer;
}
.ft-token-pill.needs-email:hover {
  background: rgba(239,68,68,0.10);
  border-color: var(--ft-red);
}
.ft-token-pill.needs-email .icon { color: var(--ft-red); }
.ft-token-pill.needs-email .arrow { display: inline-flex; opacity: 0.85; }
.ft-token-pill.needs-email:hover .arrow { transform: translateX(1px); }

/* ============================================================================
   TOOL PAGE SHELL — a single max-width that every section on a tool page
   inherits, so the header, panels, long-form copy, and related cards all
   share the same left/right edges. Adjust here to change the column width
   for every per-tool page in one place.
   ============================================================================ */

.ft-tool-shell {
  --ft-tool-max: 1000px;
  max-width: var(--ft-tool-max);
  margin-inline: auto;
}

/* ============================================================================
   PANELS (input + output)
   ============================================================================ */

.ft-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: 100%;
  margin: 0 auto;
}
.ft-tool-grid.ft-stack {
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 980px) {
  .ft-tool-grid { grid-template-columns: minmax(0, 1fr); }
}

.ft-panel {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.20), 0 4px 12px rgba(0,0,0,0.20);
}

.ft-panel-head {
  padding: 14px 22px;
  border-bottom: 1px solid var(--ft-border);
  background: linear-gradient(135deg, rgba(56,189,248,0.06), rgba(56,189,248,0));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ft-panel-head .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-blue);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ft-panel-head .meta {
  font-size: 11.5px;
  color: var(--ft-ink-4);
  font-weight: 500;
}
.ft-panel-body { padding: 22px; }
.ft-panel-body.tight { padding: 12px; }

/* ============================================================================
   FORMS
   ============================================================================ */

.ft-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.ft-field:last-child { margin-bottom: 0; }
.ft-field label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ft-field .hint {
  font-size: 12px;
  color: var(--ft-ink-4);
  line-height: 1.5;
}
.ft-field input,
.ft-field textarea,
.ft-field select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ft-border-strong);
  border-radius: 8px;
  color: var(--ft-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px; /* iOS no-zoom */
  line-height: 1.5;
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.ft-field textarea {
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 110px;
  resize: vertical;
}
.ft-field textarea.code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  min-height: 160px;
}
.ft-field input:focus,
.ft-field textarea:focus,
.ft-field select:focus {
  border-color: var(--ft-blue);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
  background: rgba(255,255,255,0.06);
}
.ft-field input::placeholder,
.ft-field textarea::placeholder { color: var(--ft-ink-5); }
.ft-field code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ft-blue-2);
  font-size: 11.5px;
}

.ft-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.ft-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: filter .15s, transform .05s;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
  min-height: 40px;
}
.ft-btn:hover { filter: brightness(1.08); }
.ft-btn:active { transform: translateY(1px); }
.ft-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ft-btn svg { width: 15px; height: 15px; }

.ft-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--ft-ink);
  border: 1px solid var(--ft-border-strong);
  box-shadow: none;
}
.ft-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  filter: none;
  border-color: var(--ft-ink-5);
}

/* URL row layout */
.ft-url-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}
.ft-url-input-row .ft-field { margin-bottom: 0; }
.ft-url-input-row .ft-btn { align-self: start; margin-top: 25px; white-space: nowrap; }
@media (max-width: 680px) {
  .ft-url-input-row { grid-template-columns: 1fr; gap: 10px; }
  .ft-url-input-row .ft-btn { width: 100%; margin-top: 0; }
}

/* ============================================================================
   TABS
   ============================================================================ */

.ft-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ft-border);
  margin-bottom: 18px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ft-tabs::-webkit-scrollbar { display: none; }
.ft-tab {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 12px 18px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ft-ink-4);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  flex: none;
}
.ft-tab:hover { color: var(--ft-ink-2); }
.ft-tab.active {
  color: var(--ft-blue);
  border-bottom-color: var(--ft-blue);
}

/* ============================================================================
   STATES (loading, empty, error)
   ============================================================================ */

.ft-loading { padding: 40px 22px; text-align: center; }
.ft-spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(56,189,248,0.18);
  border-top-color: var(--ft-blue);
  border-radius: 50%;
  animation: ft-spin 0.7s linear infinite;
  margin: 0 auto 12px;
}
@keyframes ft-spin { to { transform: rotate(360deg); } }
.ft-loading .ft-stage {
  font-size: 13px; font-weight: 600; color: var(--ft-ink-3);
}

.ft-empty {
  padding: 32px 22px;
  text-align: center;
  color: var(--ft-ink-4);
  font-size: 13.5px;
  line-height: 1.6;
}
.ft-empty svg {
  width: 38px; height: 38px;
  color: var(--ft-ink-5);
  margin-bottom: 10px;
}
.ft-empty .title {
  font-weight: 700;
  color: var(--ft-ink-3);
  font-size: 14px;
  margin-bottom: 4px;
}

.ft-err {
  padding: 16px 18px;
  background: var(--ft-red-bg);
  border: 1px solid rgba(239,68,68,0.30);
  border-radius: 10px;
  color: var(--ft-red);
  font-size: 13px;
  line-height: 1.55;
  margin: 0;
}
.ft-err b { font-weight: 700; }
.ft-err .small {
  display: block;
  color: var(--ft-ink-4);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

/* ============================================================================
   RESULT CARDS (capsules, faqs)
   ============================================================================ */

.ft-result-card {
  padding: 18px 20px;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--ft-surface-2);
}
.ft-result-card:last-child { margin-bottom: 0; }
.ft-result-card .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ft-result-card .hd-q {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.ft-result-card .hd-q .q-text {
  font-weight: 700;
  color: var(--ft-ink);
  font-size: 14.5px;
  line-height: 1.4;
}
.ft-result-card .hd-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.ft-result-card .approach {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ft-result-card .wc {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--ft-ink-4);
  font-weight: 600;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border-radius: 9999px;
}
.ft-result-card .wc.bad { color: var(--ft-red); background: var(--ft-red-bg); }
.ft-result-card .wc.good { color: var(--ft-green); background: var(--ft-green-bg); }
.ft-result-card .text {
  font-size: 14.5px;
  color: var(--ft-ink-2);
  line-height: 1.6;
}
.ft-result-card .text.small { font-size: 14px; }

/* FAQ card variant: question + answer on the left, copy button always
   in its own top-right cell so the layout stays consistent regardless of
   how long the question is. Uses grid (not absolute positioning) so the
   button can never overlap wrapping question text on narrow screens. */
.ft-faq-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 12px;
  row-gap: 10px;
}
.ft-faq-card .ft-faq-q {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.ft-faq-card .ft-faq-q .q-text {
  font-weight: 700;
  color: var(--ft-ink);
  font-size: 14.5px;
  line-height: 1.4;
}
.ft-faq-card .text {
  grid-column: 1 / -1;
  grid-row: 2;
}
.ft-faq-card .ft-copy-pin {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11.5px;
}

/* Copy buttons (mini) */
.ft-copy-mini {
  appearance: none;
  background: transparent;
  border: 1px solid var(--ft-border-strong);
  padding: 7px 11px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ft-ink-3);
  border-radius: 6px;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
  flex: 0 0 auto;
  min-height: 40px;
}
.ft-copy-mini:hover { background: rgba(255,255,255,0.08); color: var(--ft-ink); }
.ft-copy-mini.copied {
  background: var(--ft-green-bg);
  color: var(--ft-green);
  border-color: var(--ft-green);
}

/* ============================================================================
   CODE BLOCKS
   ============================================================================ */

pre.ft-code {
  margin: 0;
  padding: 18px 20px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ft-ink-2);
  background: rgba(0,0,0,0.45);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  border-radius: 0;
  max-height: 480px;
  border-top: 1px solid var(--ft-border);
  border-bottom: 1px solid var(--ft-border);
}

/* ============================================================================
   STORY CARD (content gap, etc.)
   ============================================================================ */

.ft-story-card {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.30);
  margin: 8px 0;
}
.ft-story-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}
.ft-story-top > div:first-child { min-width: 0; }
.ft-story-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 800;
  color: var(--ft-blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.ft-story-title {
  color: var(--ft-ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
  margin: 0;
}
.ft-story-sub {
  color: var(--ft-ink-3);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 8px;
}
.ft-story-section { margin-top: 16px; }
.ft-story-section-title {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--ft-ink-4);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.ft-story-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ft-story-list li {
  position: relative;
  padding: 10px 12px 10px 34px;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  background: var(--ft-surface-2);
  color: var(--ft-ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.ft-story-list li::before {
  content: "✓";
  position: absolute;
  left: 12px;
  top: 10px;
  color: var(--ft-green);
  font-weight: 900;
}

/* ============================================================================
   FAN-OUT
   ============================================================================ */

.ft-fanout-item {
  padding: 14px 18px;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  margin-bottom: 10px;
  background: var(--ft-surface-2);
}
.ft-fanout-item:last-child { margin-bottom: 0; }
.ft-fanout-item .q {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ft-ink);
  margin-bottom: 6px;
  line-height: 1.4;
}
.ft-fanout-item .h2 {
  font-size: 13px;
  color: var(--ft-ink-3);
  margin-bottom: 8px;
  font-style: italic;
}
.ft-fanout-item .h2::before {
  content: "Heading: ";
  font-style: normal;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-blue);
  letter-spacing: 0.1em;
}
.ft-fanout-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.ft-fanout-foot .rationale {
  font-size: 12px;
  color: var(--ft-ink-4);
}
.ft-fanout-item .intent {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56,189,248,0.10);
  color: var(--ft-blue);
}
.ft-fanout-item .intent.comparison { background: rgba(192,132,252,0.10); color: var(--ft-purple); }
.ft-fanout-item .intent.troubleshooting { background: rgba(251,146,60,0.12); color: var(--ft-orange); }
.ft-fanout-item .intent.howto { background: var(--ft-green-bg); color: var(--ft-green); }
.ft-fanout-item .intent.bestof { background: var(--ft-yellow-bg); color: var(--ft-yellow); }

/* ============================================================================
   AUDIT (entity coverage)
   ============================================================================ */

.ft-audit-h {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  margin: 18px 22px 14px;
}
.ft-audit-h .score {
  width: 60px; height: 60px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ft-audit-h .score.good { background: var(--ft-green-bg); color: var(--ft-green); }
.ft-audit-h .score.med  { background: var(--ft-yellow-bg); color: var(--ft-yellow); }
.ft-audit-h .score.bad  { background: var(--ft-red-bg); color: var(--ft-red); }
.ft-audit-h .text .t { font-size: 15px; font-weight: 700; color: var(--ft-ink); margin-bottom: 2px; }
.ft-audit-h .text .s { font-size: 13px; color: var(--ft-ink-3); }

.ft-callout-block {
  margin: 0 22px 18px;
  padding: 16px 18px;
  background: rgba(56,189,248,0.06);
  border-left: 3px solid var(--ft-blue);
  border-radius: 6px;
}
.ft-section-title {
  padding: 0 22px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ft-section-title.spaced { margin-top: 14px; }
.ft-callout-block .ft-section-title { padding: 0; margin-bottom: 8px; color: var(--ft-blue); }
.ft-fix-list {
  padding-left: 18px;
  font-size: 13.5px;
  color: var(--ft-ink-2);
  line-height: 1.65;
  margin: 0;
}
.ft-audit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 22px 18px;
}
.ft-audit-item {
  padding: 12px 16px;
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 12px;
  align-items: flex-start;
}
.ft-audit-item .mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  flex: none;
  margin-top: 1px;
}
.ft-audit-item.pass .mark { background: var(--ft-green); }
.ft-audit-item.fail .mark { background: var(--ft-red); }
.ft-audit-item.warn .mark { background: var(--ft-yellow); }
.ft-audit-item > div:nth-child(2) { min-width: 0; }
.ft-audit-item .head {
  font-size: 14px;
  font-weight: 600;
  color: var(--ft-ink);
  margin-bottom: 3px;
  line-height: 1.4;
}
.ft-audit-item .head .cat {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 700;
  color: var(--ft-ink-4);
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.ft-audit-item .det {
  font-size: 12.5px;
  color: var(--ft-ink-3);
  line-height: 1.5;
}
.ft-audit-item .pri {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 9999px;
  align-self: flex-start;
  margin-top: 2px;
}
.ft-audit-item .pri.high { background: var(--ft-red-bg); color: var(--ft-red); }
.ft-audit-item .pri.med  { background: var(--ft-yellow-bg); color: var(--ft-yellow); }
.ft-audit-item .pri.low  { background: var(--ft-green-bg); color: var(--ft-green); }

/* Chip rows (already-mentioned entities) */
.ft-chip-row {
  padding: 0 22px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ft-chip {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.06);
  color: var(--ft-ink-2);
  font-weight: 600;
}
.ft-chip.ok {
  background: var(--ft-green-bg);
  color: var(--ft-green);
}

/* ============================================================================
   PERSONA CARD
   ============================================================================ */

.ft-persona-card {
  margin: 18px 22px;
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  background: var(--ft-surface);
  overflow: hidden;
}
.ft-persona-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px 20px;
  border-bottom: 1px solid var(--ft-border);
}
.ft-persona-avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  flex: none;
  box-shadow: 0 4px 12px rgba(37,99,235,0.30);
}
.ft-persona-avatar svg { width: 26px; height: 26px; }
.ft-persona-hero .meta { min-width: 0; }
.ft-persona-hero .name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 6px;
}
.ft-persona-hero .name {
  font-size: 22px;
  font-weight: 800;
  color: var(--ft-ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.ft-persona-hero .job {
  font-size: 13.5px;
  color: var(--ft-ink-3);
  font-weight: 500;
}
.ft-persona-meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-bottom: 12px;
}
.ft-persona-meta-chip {
  font-size: 11.5px;
  padding: 3px 9px;
  color: var(--ft-ink-3);
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: 5px;
  font-weight: 500;
  line-height: 1.4;
}
.ft-persona-summary {
  font-size: 13.5px;
  color: var(--ft-ink-2);
  line-height: 1.6;
  font-style: italic;
}
.ft-persona-section {
  padding: 18px 24px;
  border-top: 1px solid var(--ft-border);
}
.ft-persona-section > .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-ink-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ft-persona-subgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 28px;
}
.ft-persona-block .head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ft-ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ft-persona-block .head svg { width: 13px; height: 13px; flex: none; color: var(--ft-ink-5); }
.ft-persona-block .head.pain { color: var(--ft-red); }
.ft-persona-block .head.pain svg { color: var(--ft-red); }
.ft-persona-block .head.con { color: var(--ft-orange); }
.ft-persona-block .head.con svg { color: var(--ft-orange); }
.ft-persona-block .sublabel {
  font-size: 11.5px;
  color: var(--ft-ink-4);
  font-weight: 500;
  margin: -4px 0 10px;
  line-height: 1.45;
}
.ft-persona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ft-persona-chip {
  font-size: 12.5px;
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ft-surface-2);
  color: var(--ft-ink-2);
  font-weight: 500;
  border: 1px solid transparent;
  line-height: 1.45;
}
.ft-persona-chip.psy      { background: rgba(56,189,248,0.06); }
.ft-persona-chip.driver   { background: rgba(52,211,153,0.07); }
.ft-persona-chip.loyalty  { background: rgba(192,132,252,0.06); }
.ft-persona-chip.pain     { background: rgba(239,68,68,0.07); }
.ft-persona-chip.concern  { background: rgba(251,146,60,0.09); }

.ft-persona-journey { display: grid; gap: 16px; }
.ft-persona-journey-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
}
.ft-persona-journey-step .icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex: none;
  margin-top: 1px;
  background: rgba(255,255,255,0.06);
  color: var(--ft-ink-4);
}
.ft-persona-journey-step .icon svg { width: 13px; height: 13px; }
.ft-persona-journey-step .stage-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ft-ink);
  margin-bottom: 3px;
  line-height: 1.3;
}
.ft-persona-journey-step .body {
  font-size: 13.5px;
  color: var(--ft-ink-2);
  line-height: 1.55;
}
.ft-persona-journey-step.awareness  .icon { background: rgba(56,189,248,0.10); color: var(--ft-blue); }
.ft-persona-journey-step.research   .icon { background: rgba(251,146,60,0.10); color: var(--ft-orange); }
.ft-persona-journey-step.evaluation .icon { background: rgba(192,132,252,0.10); color: var(--ft-purple); }
.ft-persona-journey-step.decision   .icon { background: rgba(52,211,153,0.10); color: var(--ft-green); }
.ft-persona-journey-step.retention  .icon { background: rgba(239,68,68,0.10); color: var(--ft-red); }

@media (max-width: 720px) {
  .ft-persona-subgrid { grid-template-columns: 1fr; }
  .ft-persona-hero {
    grid-template-columns: auto 1fr;
    gap: 14px;
  }
  .ft-persona-hero .ft-copy-mini {
    grid-column: 1 / -1;
    justify-self: flex-start;
  }
}

/* ============================================================================
   AI CRAWLER ACCESS — bot list
   ============================================================================ */

.ft-bot-group { margin-bottom: 12px; }
.ft-bot-vendor {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ft-ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.ft-bot-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid var(--ft-border);
  border-radius: 8px;
  margin-bottom: 6px;
  background: var(--ft-surface-2);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.ft-bot-row:hover { border-color: var(--ft-border-strong); }
.ft-bot-row.blocked { background: rgba(239,68,68,0.05); border-color: rgba(239,68,68,0.20); }
.ft-bot-row input { margin-top: 2px; }
.ft-bot-row .info { min-width: 0; }
.ft-bot-row .ua {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--ft-ink);
  margin-bottom: 3px;
  word-break: break-all;
}
.ft-bot-row .blocked-tag {
  color: var(--ft-red);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
}
.ft-bot-row .desc {
  font-size: 12px;
  color: var(--ft-ink-3);
  line-height: 1.5;
}
.ft-bot-row .purpose {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  align-self: flex-start;
  padding: 3px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}
.ft-bot-row .purpose.training  { background: rgba(192,132,252,0.10); color: var(--ft-purple); }
.ft-bot-row .purpose.retrieval { background: rgba(56,189,248,0.10);  color: var(--ft-blue); }
.ft-bot-row .purpose.both      { background: rgba(251,146,60,0.10);  color: var(--ft-orange); }

.ft-preset-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.ft-preset-row .ft-btn {
  padding: 8px 12px;
  font-size: 12.5px;
  min-height: 34px;
}

/* ============================================================================
   TOKEN GATE (email capture)
   ============================================================================ */

.ft-token-gate {
  margin: 18px 22px;
  padding: 28px 24px;
  background: linear-gradient(135deg, rgba(56,189,248,0.10), rgba(56,189,248,0.02));
  border: 1px solid rgba(56,189,248,0.25);
  border-radius: 12px;
  text-align: center;
}
.ft-token-gate .ft-lock {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
.ft-token-gate .ft-lock svg { width: 22px; height: 22px; }
.ft-token-gate h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ft-ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.ft-token-gate p {
  font-size: 13.5px;
  color: var(--ft-ink-3);
  max-width: 50ch;
  margin: 0 auto 16px;
  line-height: 1.6;
}
.ft-token-gate .ft-form {
  display: flex;
  gap: 8px;
  max-width: 420px;
  margin: 0 auto;
}
.ft-token-gate .ft-form input {
  flex: 1;
  padding: 11px 14px;
  font-size: 16px;
  border: 1px solid var(--ft-border-strong);
  border-radius: 8px;
  outline: none;
  background: rgba(255,255,255,0.04);
  color: var(--ft-ink);
}
.ft-token-gate .ft-form input:focus {
  border-color: var(--ft-blue);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18);
}
.ft-token-gate .ft-priv {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--ft-ink-4);
}
.ft-token-gate.exhausted {
  background: linear-gradient(135deg, var(--ft-surface-2), transparent);
  border-color: var(--ft-border);
}
.ft-token-gate.exhausted .ft-lock { background: rgba(255,255,255,0.10); }
@media (max-width: 680px) {
  .ft-token-gate .ft-form { flex-direction: column; }
  .ft-token-gate .ft-form .ft-btn { width: 100%; }
}

/* ============================================================================
   FAQ-row in schema generator
   ============================================================================ */

.faq-row {
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  background: var(--ft-surface-2);
}

/* ============================================================================
   LANDING PAGE STYLES (tools index)
   ============================================================================ */

.ft-tools-section { padding: 32px 0 64px; }
.ft-tools-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.ft-tools-head h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ft-ink);
}
.ft-filter {
  display: inline-flex;
  gap: 6px;
  background: var(--ft-surface-2);
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  padding: 5px;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ft-filter::-webkit-scrollbar { display: none; }
.ft-filter-btn {
  white-space: nowrap;
  flex: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--ft-ink-3);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.ft-filter-btn:hover { color: var(--ft-ink); }
.ft-filter-btn.active {
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
}
.ft-filter-btn .count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--ft-ink-5);
  margin-left: 5px;
  font-weight: 700;
}
.ft-filter-btn.active .count { color: rgba(255,255,255,0.7); }

.ft-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 980px) {
  .ft-tools-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .ft-tools-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* Wrapper keeps a stable hover region while the card translates on hover.
   Without it, hovering near the bottom edge causes the card to shift up
   and out from under the cursor, which retriggers hover in a flicker loop. */
.ft-tool-card-wrap {
  display: block;
  position: relative;
}

.ft-tool-card {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 14px;
  padding: 24px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.ft-tool-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.ft-tool-card-wrap:hover .ft-tool-card,
.ft-tool-card-wrap:focus-within .ft-tool-card {
  border-color: rgba(56,189,248,0.40);
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
  transform: translateY(-2px);
}
.ft-tool-card-wrap:hover .ft-tool-card::before,
.ft-tool-card-wrap:focus-within .ft-tool-card::before {
  transform: scaleX(1);
}
.ft-tool-card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.ft-tool-card .head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}
.ft-tool-card .icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(56,189,248,0.10);
  display: grid; place-items: center;
  color: var(--ft-blue);
  flex: none;
  border: 1px solid rgba(56,189,248,0.25);
}
.ft-tool-card .icon svg { width: 20px; height: 20px; }
.ft-tool-card .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: none;
}
.ft-badge {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 9999px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
  background: rgba(255,255,255,0.06);
  color: var(--ft-ink-3);
  border: 1px solid var(--ft-border);
}
.ft-badge.ai { background: rgba(192,132,252,0.10); color: var(--ft-purple); border-color: rgba(192,132,252,0.20); }
.ft-badge.js { background: var(--ft-green-bg); color: var(--ft-green); border-color: rgba(16,185,129,0.25); }
.ft-badge.cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px 3px 5px;
  background: rgba(56,189,248,0.10);
  color: var(--ft-blue);
  border: 1px solid rgba(56,189,248,0.22);
}
.ft-badge.cost svg { width: 11px; height: 11px; flex: none; }
.ft-badge.cost b { font-weight: 700; }
.ft-tool-card .head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ft-ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  min-width: 0;
}
.ft-tool-card p {
  font-size: 13.5px;
  color: var(--ft-ink-3);
  line-height: 1.55;
  flex: 1;
}
.ft-tool-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ft-ink-4);
  font-weight: 600;
}
.ft-tool-card .foot .arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ft-blue);
  font-weight: 700;
}
.ft-tool-card .foot .arrow .arrow-icon {
  display: inline-block;
  transition: transform .2s ease;
}
.ft-tool-card-wrap:hover .ft-tool-card .foot .arrow .arrow-icon,
.ft-tool-card-wrap:focus-within .ft-tool-card .foot .arrow .arrow-icon {
  transform: translateX(4px);
}

/* Intro strip */
.ft-intro-strip { padding: 40px 0; border-bottom: 1px solid var(--ft-border); }
.ft-intro-strip h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ft-ink);
  max-width: 56ch;
  margin-bottom: 8px;
}
.ft-intro-strip .lede {
  font-size: 15.5px;
  color: var(--ft-ink-3);
  max-width: 64ch;
  line-height: 1.6;
}
.ft-intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}
@media (max-width: 880px) {
  .ft-intro-cards { grid-template-columns: 1fr; }
}
.ft-intro-card {
  background: var(--ft-surface);
  border: 1px solid var(--ft-border);
  border-radius: 12px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ft-intro-card .num {
  display: inline-grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(56,189,248,0.10);
  color: var(--ft-blue);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(56,189,248,0.22);
}
.ft-intro-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ft-ink);
}
.ft-intro-card p {
  font-size: 13.5px;
  color: var(--ft-ink-3);
  line-height: 1.6;
}

/* ============================================================================
   TOOL HEADER (per-tool page hero)
   ============================================================================ */

.ft-tool-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--ft-border);
  margin-bottom: 28px;
}
.ft-tool-head .icon {
  width: 56px; height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  display: grid; place-items: center;
  color: #fff;
  flex: none;
  box-shadow: 0 4px 12px rgba(37,99,235,0.30);
}
.ft-tool-head .icon svg { width: 28px; height: 28px; }
.ft-tool-head .meta { min-width: 0; }
.ft-tool-head h1 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ft-ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ft-tool-head .desc {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--ft-ink-3);
  line-height: 1.55;
}
.ft-tool-head .badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ft-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ft-ink-3);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.ft-back-link:hover { color: var(--ft-ink); }
.ft-back-link svg { width: 14px; height: 14px; }

/* ============================================================================
   LONG-FORM CONTENT (per-tool description for SEO)
   ============================================================================ */

.ft-tool-content {
  margin: 56px 0 0;
  padding-top: 48px;
  border-top: 1px solid var(--ft-border);
  color: var(--ft-ink-2);
}
.ft-tool-content .eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ft-blue);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.ft-tool-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ft-ink);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  line-height: 1.25;
}
.ft-tool-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ft-ink);
  letter-spacing: -0.01em;
  margin: 32px 0 10px;
  line-height: 1.3;
}
.ft-tool-content p {
  font-size: 15px;
  color: var(--ft-ink-2);
  line-height: 1.7;
  margin-bottom: 14px;
}
.ft-tool-content p:last-child { margin-bottom: 0; }
.ft-tool-content ul {
  padding-left: 22px;
  margin-bottom: 14px;
}
.ft-tool-content ul li {
  font-size: 14.5px;
  color: var(--ft-ink-2);
  line-height: 1.65;
  margin-bottom: 6px;
}
.ft-tool-content ul li strong { color: var(--ft-ink); font-weight: 700; }
.ft-tool-content code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--ft-blue-2);
}
.ft-tool-content a {
  color: var(--ft-blue-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ft-tool-content a:hover { color: var(--ft-blue); }
.ft-tool-content .callout {
  padding: 18px 20px;
  background: rgba(56,189,248,0.06);
  border-left: 3px solid var(--ft-blue);
  border-radius: 8px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--ft-ink-2);
  line-height: 1.65;
}
.ft-tool-content .callout strong { color: var(--ft-ink); font-weight: 700; }

/* Related tools */
.ft-related-tools {
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--ft-border);
}
.ft-related-tools .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--ft-ink-4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.ft-related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (max-width: 680px) {
  .ft-related-list { grid-template-columns: 1fr; }
}
.ft-related-card {
  padding: 14px 16px;
  border: 1px solid var(--ft-border);
  border-radius: 10px;
  background: var(--ft-surface);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-decoration: none;
  display: block;
}
.ft-related-card:hover {
  border-color: rgba(56,189,248,0.40);
  background: var(--ft-surface-2);
}
.ft-related-card .name {
  font-size: 14px;
  font-weight: 700;
  color: var(--ft-ink);
  margin-bottom: 4px;
}
.ft-related-card .blurb {
  font-size: 12.5px;
  color: var(--ft-ink-3);
  line-height: 1.5;
}

/* ============================================================================
   MOBILE RESPONSIVE TWEAKS
   ============================================================================ */

@media (max-width: 680px) {
  .ft-tool-head {
    grid-template-columns: auto 1fr;
    gap: 12px;
    padding: 16px 0 20px;
    margin-bottom: 22px;
  }
  .ft-tool-head .icon { width: 44px; height: 44px; border-radius: 10px; }
  .ft-tool-head .icon svg { width: 22px; height: 22px; }
  .ft-tool-head h1 { font-size: 22px; }
  .ft-tool-head .desc { font-size: 13.5px; margin-top: 4px; }
  .ft-tool-head .badges { grid-column: 1 / -1; justify-content: flex-start; }

  .ft-panel-head { padding: 12px 14px; gap: 8px; flex-wrap: wrap; }
  .ft-panel-body { padding: 16px; }

  .ft-result-card { padding: 14px 16px; }
  .ft-result-card .text { font-size: 14px; }
  .ft-fanout-item { padding: 12px 14px; }
  .ft-fanout-item .q { font-size: 13.5px; }

  .ft-audit-h { padding: 14px; gap: 12px; margin: 14px; }
  .ft-audit-h .score { width: 50px; height: 50px; font-size: 19px; border-radius: 10px; }
  .ft-audit-h .text .t { font-size: 14px; }
  .ft-audit-item { padding: 12px 14px; grid-template-columns: 22px 1fr; gap: 10px; }
  .ft-audit-item .pri { grid-column: 2 / 3; justify-self: flex-start; margin-top: 4px; }
  .ft-section-title { padding: 0 14px; }
  .ft-callout-block { margin: 0 14px 14px; }
  .ft-audit-list { padding: 0 14px 14px; }
  .ft-chip-row { padding: 0 14px 14px; }

  .ft-persona-card { margin: 14px; }
  .ft-persona-hero { padding: 18px 16px 16px; }
  .ft-persona-avatar { width: 46px; height: 46px; }
  .ft-persona-avatar svg { width: 22px; height: 22px; }
  .ft-persona-hero .name { font-size: 19px; }
  .ft-persona-section { padding: 16px; }

  .ft-token-gate { margin: 14px; padding: 22px 18px; }
  .ft-token-gate h3 { font-size: 17px; }
  .ft-token-gate p { font-size: 13px; }

  pre.ft-code { font-size: 11.5px; padding: 14px 16px; max-height: 360px; }

  .ft-tool-content { margin-top: 36px; padding-top: 28px; }
  .ft-tool-content h2 { font-size: 20px; }
  .ft-tool-content h3 { font-size: 16px; margin-top: 24px; }
  .ft-tool-content p { font-size: 14.5px; }
  .ft-tool-content ul li { font-size: 14px; }
}

@media (max-width: 420px) {
  .ft-token-pill {
    padding: 4px 10px 4px 8px;
    font-size: 10px;
    letter-spacing: 0.03em;
  }
  .ft-tools-head h2 { font-size: 22px; }
  .ft-tool-card { padding: 18px; gap: 10px; }
  .ft-tool-card .icon { width: 34px; height: 34px; }
  .ft-tool-card .icon svg { width: 18px; height: 18px; }
  .ft-tool-card .head h3 { font-size: 15px; }
  .ft-tool-card p { font-size: 13px; }
}
