/* AIToolsBox Free Tools - shared styles for /free-tools/ pages.
   Colours follow the site theme: indigo #4f46e5 -> violet #7c3aed -> pink #ec4899. */

:root {
  --ft-indigo: #4f46e5;
  --ft-primary: #7c3aed;
  --ft-primary-d: #6d28d9;
  --ft-pink: #ec4899;
  --ft-ink: #0f172a;
  --ft-text: #111827;
  --ft-muted: #374151;
  --ft-soft: #6b7280;
  --ft-border: #e5e7eb;
  --ft-border-d: #d1d5db;
  --ft-bg: #f8fafc;
  --ft-tint: #f5f3ff;
  --ft-ok: #047857;
  --ft-ok-bg: #ecfdf5;
  --ft-warn: #b45309;
  --ft-warn-bg: #fffbeb;
  --ft-bad: #b91c1c;
  --ft-bad-bg: #fef2f2;
  --ft-radius: 16px;
  --ft-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 10px 30px -12px rgba(76, 29, 149, .22);
  --ft-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #ec4899 100%);
  --ft-btn-grad: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.ft-page { background: var(--ft-bg); color: var(--ft-text); font-family: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ft-page *, .ft-page *::before, .ft-page *::after { box-sizing: border-box; }
.ft-page [hidden] { display: none !important; }
.ft-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Hero ---------- */
.ft-hero { background: var(--ft-grad); color: #fff; padding: calc(40px + 1.4rem) 1rem 4.6rem; position: relative; overflow: hidden; }
.ft-hero::after { content: ""; position: absolute; inset: auto -10% -60% -10%; height: 120%; background: radial-gradient(closest-side, rgba(255,255,255,.16), transparent 70%); pointer-events: none; }
.ft-hero-in { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }
.ft-crumbs { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; font-size: .82rem; margin: 0 0 .9rem; padding: 0; list-style: none; color: rgba(255,255,255,.85); }
.ft-crumbs a { color: #fff; text-decoration: none; opacity: .92; }
.ft-crumbs a:hover { text-decoration: underline; opacity: 1; }
.ft-crumbs li + li::before { content: "/"; margin-right: .35rem; opacity: .6; }
.ft-h1 { font-family: "Space Grotesk", Poppins, system-ui, sans-serif; font-size: clamp(1.7rem, 4.6vw, 2.6rem); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .6rem; }
.ft-lede { font-size: clamp(.98rem, 2.2vw, 1.12rem); line-height: 1.6; max-width: 720px; margin: 0; color: rgba(255,255,255,.95); }
.ft-badges { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.ft-badge { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .32rem .7rem; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); color: #fff; }
.ft-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Layout ---------- */
.ft-shell { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.ft-card { background: #fff; border: 1px solid var(--ft-border); border-radius: var(--ft-radius); box-shadow: var(--ft-shadow); padding: 1.1rem; }
@media (min-width: 640px) { .ft-card { padding: 1.6rem; } }
.ft-tool { margin-top: -3.4rem; position: relative; z-index: 2; }
.ft-tool-noscript { padding: 1rem; border-radius: 12px; background: var(--ft-warn-bg); color: var(--ft-warn); font-weight: 600; }
.ft-grid-2 { display: grid; gap: 1rem; }
@media (min-width: 860px) { .ft-grid-2 { grid-template-columns: 1fr 1fr; gap: 1.4rem; } .ft-grid-2.ft-wide-left { grid-template-columns: 1.35fr 1fr; } .ft-grid-2.ft-wide-right { grid-template-columns: 1fr 1.25fr; } }
.ft-stack > * + * { margin-top: 1rem; }
.ft-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.ft-row.ft-end { justify-content: flex-end; }
.ft-row.ft-between { justify-content: space-between; }
.ft-spacer { flex: 1 1 auto; }
.ft-divider { border: 0; border-top: 1px solid var(--ft-border); margin: 1.2rem 0; }
.ft-muted { color: var(--ft-muted); }
.ft-small { font-size: .84rem; }
.ft-tiny { font-size: .76rem; color: var(--ft-soft); }
.ft-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* ---------- Form controls ---------- */
.ft-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.ft-label { font-size: .84rem; font-weight: 700; color: var(--ft-text); }
.ft-hint { font-size: .78rem; color: var(--ft-soft); }
.ft-input, .ft-select, .ft-textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ft-text); background: #fff;
  border: 1.5px solid var(--ft-border-d); border-radius: 10px; padding: .62rem .75rem; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
.ft-textarea { min-height: 180px; line-height: 1.6; resize: vertical; }
.ft-input:focus, .ft-select:focus, .ft-textarea:focus { outline: none; border-color: var(--ft-primary); box-shadow: 0 0 0 3px rgba(124, 58, 237, .18); }
.ft-input[aria-invalid="true"] { border-color: var(--ft-bad); box-shadow: 0 0 0 3px rgba(185, 28, 28, .12); }
.ft-input-sm { min-height: 38px; padding: .4rem .6rem; font-size: 15px; }
.ft-color { width: 48px; height: 44px; padding: 3px; border: 1.5px solid var(--ft-border-d); border-radius: 10px; background: #fff; cursor: pointer; }
.ft-fields { display: grid; gap: .8rem; grid-template-columns: 1fr; }
@media (min-width: 540px) { .ft-fields.ft-cols-2 { grid-template-columns: 1fr 1fr; } .ft-fields.ft-cols-3 { grid-template-columns: repeat(3, 1fr); } }
.ft-check { display: inline-flex; gap: .5rem; align-items: center; font-size: .9rem; cursor: pointer; min-height: 32px; }
.ft-check input { width: 18px; height: 18px; accent-color: var(--ft-primary); }
.ft-range { width: 100%; accent-color: var(--ft-primary); height: 28px; }
.ft-range-row { display: flex; gap: .7rem; align-items: center; }
.ft-range-row output { min-width: 3.2rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Segmented control built from radio buttons */
.ft-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #f1f5f9; border-radius: 12px; border: 1px solid var(--ft-border); max-width: 100%; }
.ft-seg label { position: relative; }
.ft-seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ft-seg span { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 38px; padding: .4rem .85rem; border-radius: 9px; font-size: .88rem; font-weight: 600; color: var(--ft-muted); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.ft-seg input:checked + span { background: #fff; color: var(--ft-primary-d); box-shadow: 0 1px 3px rgba(15, 23, 42, .15); }
.ft-seg input:focus-visible + span { outline: 2px solid var(--ft-primary); outline-offset: 1px; }
.ft-seg.ft-seg-full { display: flex; width: 100%; }
.ft-seg.ft-seg-full label { flex: 1 1 0; }
.ft-seg.ft-seg-full span { width: 100%; }

/* ---------- Buttons ---------- */
.ft-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1; min-height: 44px; padding: .7rem 1.15rem; border-radius: 11px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: transform .08s, box-shadow .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.ft-btn:active { transform: translateY(1px); }
.ft-btn:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 2px; }
.ft-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.ft-btn-primary { background: var(--ft-btn-grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(79, 70, 229, .7); }
.ft-btn-primary:hover { box-shadow: 0 8px 22px -8px rgba(79, 70, 229, .9); filter: brightness(1.05); }
.ft-btn-ghost { background: #fff; color: var(--ft-primary-d); border-color: #ddd6fe; }
.ft-btn-ghost:hover { background: var(--ft-tint); border-color: #c4b5fd; }
.ft-btn-plain { background: transparent; color: var(--ft-muted); padding-left: .6rem; padding-right: .6rem; }
.ft-btn-plain:hover { color: var(--ft-primary-d); background: var(--ft-tint); }
.ft-btn-sm { min-height: 36px; padding: .45rem .8rem; font-size: .85rem; border-radius: 9px; }
.ft-btn-block { width: 100%; }
.ft-btn[disabled], .ft-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ft-icon-btn { min-height: 36px; min-width: 36px; padding: 0; }

/* ---------- Drop zone ---------- */
.ft-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .55rem; min-height: 230px; padding: 1.6rem 1rem; border: 2px dashed #c4b5fd; border-radius: 14px; background: linear-gradient(180deg, #faf8ff, #f5f3ff); cursor: pointer; transition: border-color .15s, background .15s, transform .15s; }
.ft-drop:hover, .ft-drop.is-over { border-color: var(--ft-primary); background: #ede9fe; }
.ft-drop.is-over { transform: scale(1.01); }
.ft-drop:focus-visible { outline: 3px solid rgba(124, 58, 237, .45); outline-offset: 3px; }
.ft-drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ft-drop-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--ft-btn-grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .8); }
.ft-drop-icon svg { width: 28px; height: 28px; }
.ft-drop-title { font-weight: 800; font-size: 1.08rem; color: var(--ft-ink); }
.ft-drop-sub { font-size: .86rem; color: var(--ft-muted); }
.ft-drop-privacy { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 600; color: var(--ft-ok); background: var(--ft-ok-bg); padding: .3rem .65rem; border-radius: 999px; margin-top: .25rem; }
.ft-drop-privacy svg { width: 14px; height: 14px; }
.ft-drop.ft-drop-compact { min-height: 120px; padding: 1rem; }

/* ---------- Status, progress, notes ---------- */
.ft-progress { height: 8px; border-radius: 99px; background: #ede9fe; overflow: hidden; }
.ft-progress > span { display: block; height: 100%; width: 0; background: var(--ft-btn-grad); border-radius: 99px; transition: width .25s ease; }
.ft-progress.is-indeterminate > span { width: 35%; animation: ft-indet 1.2s ease-in-out infinite; }
@keyframes ft-indet { 0% { transform: translateX(-110%); } 100% { transform: translateX(310%); } }
.ft-status { display: flex; gap: .6rem; align-items: center; font-size: .9rem; color: var(--ft-muted); }
.ft-spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid #ddd6fe; border-top-color: var(--ft-primary); animation: ft-spin .8s linear infinite; flex-shrink: 0; }
@keyframes ft-spin { to { transform: rotate(360deg); } }
.ft-note { border-radius: 12px; padding: .75rem .9rem; font-size: .88rem; line-height: 1.5; background: var(--ft-tint); color: #3b0764; border: 1px solid #e9d5ff; }
.ft-note.is-ok { background: var(--ft-ok-bg); color: #064e3b; border-color: #a7f3d0; }
.ft-note.is-warn { background: var(--ft-warn-bg); color: #78350f; border-color: #fde68a; }
.ft-note.is-bad { background: var(--ft-bad-bg); color: #7f1d1d; border-color: #fecaca; }
.ft-pill { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 700; padding: .18rem .55rem; border-radius: 999px; background: #f1f5f9; color: var(--ft-muted); }
.ft-pill.is-ok { background: var(--ft-ok-bg); color: var(--ft-ok); }
.ft-pill.is-warn { background: var(--ft-warn-bg); color: var(--ft-warn); }
.ft-pill.is-bad { background: var(--ft-bad-bg); color: var(--ft-bad); }
.ft-pill.is-brand { background: var(--ft-tint); color: var(--ft-primary-d); }

/* ---------- Image results ---------- */
.ft-checker { background-color: #fff; background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
.ft-stage { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--ft-border); display: grid; place-items: center; min-height: 240px; max-height: 70vh; }
.ft-stage img, .ft-stage canvas { display: block; max-width: 100%; max-height: 70vh; object-fit: contain; }
.ft-compare { position: relative; display: inline-block; max-width: 100%; line-height: 0; user-select: none; touch-action: pan-y; }
.ft-compare img { max-width: 100%; max-height: 66vh; display: block; }
.ft-compare .ft-cmp-before { position: absolute; inset: 0; overflow: hidden; width: 50%; }
.ft-compare .ft-cmp-before img { max-width: none; height: 100%; width: auto; }
.ft-compare .ft-cmp-handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 0 1px rgba(15,23,42,.25); cursor: ew-resize; }
.ft-compare .ft-cmp-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; color: var(--ft-primary-d); font-size: 18px; line-height: 36px; text-align: center; box-shadow: 0 4px 12px rgba(15,23,42,.25); }
.ft-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ft-cmp-tag { position: absolute; top: 10px; font-size: .72rem; font-weight: 700; line-height: 1; padding: .3rem .5rem; border-radius: 6px; background: rgba(15,23,42,.65); color: #fff; pointer-events: none; }
.ft-swatches { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.ft-swatch { width: 36px; height: 36px; border-radius: 10px; border: 2px solid var(--ft-border-d); cursor: pointer; padding: 0; position: relative; }
.ft-swatch[aria-pressed="true"] { border-color: var(--ft-primary); box-shadow: 0 0 0 3px rgba(124,58,237,.25); }
.ft-swatch.ft-checker { background-size: 10px 10px; background-position: 0 0, 0 5px, 5px -5px, -5px 0; }

/* File lists */
.ft-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.ft-file { display: flex; gap: .75rem; align-items: center; padding: .6rem; border: 1px solid var(--ft-border); border-radius: 12px; background: #fff; }
.ft-file-thumb { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; background: #f1f5f9; flex-shrink: 0; display: grid; place-items: center; color: var(--ft-soft); font-weight: 800; font-size: .7rem; }
.ft-file-main { flex: 1 1 auto; min-width: 0; }
.ft-file-name { font-weight: 700; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-file-meta { font-size: .78rem; color: var(--ft-muted); display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: center; }
.ft-file-actions { display: flex; gap: .3rem; flex-shrink: 0; }
.ft-file.is-drag { opacity: .5; }
.ft-saving { color: var(--ft-ok); font-weight: 700; }
.ft-saving.is-up { color: var(--ft-warn); }

/* ---------- Stats & tables ---------- */
.ft-stats { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.ft-stat { background: #fff; border: 1px solid var(--ft-border); border-radius: 12px; padding: .75rem .85rem; }
.ft-stat b { display: block; font-family: "Space Grotesk", Poppins, sans-serif; font-size: clamp(1.2rem, 2.6vw, 1.5rem); white-space: nowrap; color: var(--ft-ink); font-variant-numeric: tabular-nums; line-height: 1.2; }
.ft-stat span { font-size: .78rem; color: var(--ft-muted); font-weight: 600; }
.ft-stat.is-brand { background: linear-gradient(135deg, #eef2ff, #f5f3ff); border-color: #ddd6fe; }
.ft-table-wrap { overflow-x: auto; border: 1px solid var(--ft-border); border-radius: 12px; background: #fff; -webkit-overflow-scrolling: touch; }
.ft-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ft-table th, .ft-table td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--ft-border); white-space: nowrap; }
.ft-table th { background: #f8fafc; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ft-muted); position: sticky; top: 0; }
.ft-table td.num, .ft-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ft-table tbody tr:last-child td { border-bottom: 0; }
.ft-table tbody tr:hover td { background: #faf8ff; }
.ft-meter { height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.ft-meter > span { display: block; height: 100%; border-radius: 99px; background: var(--ft-ok); transition: width .2s, background .2s; }
.ft-meter.is-warn > span { background: #f59e0b; }
.ft-meter.is-bad > span { background: #ef4444; }

/* ---------- Copy blocks ---------- */
.ft-output { display: flex; gap: .5rem; align-items: stretch; }
.ft-output .ft-input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.ft-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: .9rem 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-all; line-height: 1.55; }

/* ---------- Next steps / service line ---------- */
.ft-next { margin-top: 1.4rem; }
.ft-next-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 800; margin: 0 0 .7rem; color: var(--ft-ink); }
.ft-next-grid { display: grid; gap: .65rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ft-next-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ft-next-grid { grid-template-columns: repeat(4, 1fr); } }
.ft-next-card { display: block; padding: .85rem .95rem; border: 1px solid var(--ft-border); border-radius: 12px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ft-next-card:hover { border-color: #c4b5fd; box-shadow: 0 8px 20px -12px rgba(124,58,237,.5); transform: translateY(-1px); }
.ft-next-card b { display: flex; align-items: center; justify-content: space-between; gap: .4rem; color: var(--ft-primary-d); font-size: .92rem; }
.ft-next-card span { display: block; margin-top: .25rem; font-size: .8rem; color: var(--ft-muted); line-height: 1.45; }
.ft-next.is-highlight .ft-next-card { border-color: #c4b5fd; }
.ft-service { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; justify-content: space-between; margin-top: 1rem; padding: .8rem 1rem; border-radius: 12px; background: linear-gradient(90deg, #eef2ff, #fdf2f8); border: 1px solid #e0e7ff; font-size: .9rem; color: var(--ft-text); }
.ft-service a { font-weight: 700; color: var(--ft-indigo); white-space: nowrap; }

/* ---------- Content sections ---------- */
.ft-content { padding: 2.6rem 0 1rem; }
.ft-section { max-width: 820px; margin: 0 auto 2.4rem; color: #000; line-height: 1.75; font-size: 1rem; }
.ft-section h2 { font-family: "Space Grotesk", Poppins, sans-serif; font-size: clamp(1.3rem, 3vw, 1.6rem); font-weight: 800; letter-spacing: -.01em; margin: 0 0 .8rem; color: var(--ft-ink); }
.ft-section h3 { font-size: 1.05rem; font-weight: 700; margin: 1.3rem 0 .4rem; }
.ft-section p { margin: 0 0 1rem; }
.ft-section ul { margin: 0 0 1.1rem 1.2rem; padding: 0; list-style: disc; }
.ft-section li { margin: 0 0 .45rem; }
.ft-section a { color: var(--ft-indigo); text-decoration: underline; text-underline-offset: 2px; }
.ft-section code { font-size: .88em; background: #f1f5f9; padding: .08em .35em; border-radius: 5px; }
.ft-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; counter-reset: ft-step; }
@media (min-width: 720px) { .ft-steps { grid-template-columns: repeat(2, 1fr); } }
.ft-steps li { counter-increment: ft-step; position: relative; margin: 0; padding: 1rem 1rem 1rem 3.6rem; background: #fff; border: 1px solid var(--ft-border); border-radius: 14px; }
.ft-steps li::before { content: counter(ft-step); position: absolute; left: 1rem; top: 1rem; width: 1.9rem; height: 1.9rem; border-radius: 9px; background: var(--ft-btn-grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .92rem; }
.ft-steps b { display: block; margin-bottom: .2rem; color: var(--ft-ink); }
.ft-steps span { color: var(--ft-muted); font-size: .93rem; line-height: 1.55; }
.ft-faq { border: 1px solid var(--ft-border); border-radius: 14px; background: #fff; overflow: hidden; }
.ft-faq details { border-bottom: 1px solid var(--ft-border); }
.ft-faq details:last-child { border-bottom: 0; }
.ft-faq summary { list-style: none; cursor: pointer; padding: 1rem 3rem 1rem 1.1rem; font-weight: 700; position: relative; color: var(--ft-ink); line-height: 1.45; }
.ft-faq summary::-webkit-details-marker { display: none; }
.ft-faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--ft-primary); transition: transform .2s; }
.ft-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ft-faq summary:focus-visible { outline: 3px solid rgba(124,58,237,.4); outline-offset: -3px; }
.ft-faq .ft-faq-a { padding: 0 1.1rem 1.1rem; color: #000; line-height: 1.7; }
.ft-updated { font-size: .82rem; color: var(--ft-soft); text-align: center; margin: 0 0 2rem; }

/* ---------- Chips & related ---------- */
.ft-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.ft-chip { display: inline-flex; align-items: center; min-height: 36px; padding: .4rem .85rem; border-radius: 999px; border: 1px solid #ddd6fe; background: #fff; color: var(--ft-primary-d); font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .15s, border-color .15s; }
.ft-chip:hover { background: var(--ft-tint); border-color: #c4b5fd; }
.ft-chip[aria-current="page"] { background: var(--ft-primary); border-color: var(--ft-primary); color: #fff; }
.ft-variants { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.ft-variants-label { font-size: .82rem; font-weight: 700; color: var(--ft-muted); }
.ft-cards { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ft-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .ft-cards { grid-template-columns: repeat(3, 1fr); } }
.ft-tool-card { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--ft-border); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; height: 100%; }
.ft-tool-card:hover { transform: translateY(-2px); border-color: #c4b5fd; box-shadow: var(--ft-shadow); }
.ft-tool-card:focus-visible { outline: 3px solid rgba(124,58,237,.45); outline-offset: 2px; }
.ft-tool-ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--ft-btn-grad); color: #fff; flex-shrink: 0; box-shadow: 0 8px 18px -10px rgba(79,70,229,.9); }
.ft-tool-ico svg { width: 24px; height: 24px; }
.ft-tool-card h3 { margin: 0 0 .25rem; font-size: 1rem; font-weight: 800; color: var(--ft-ink); line-height: 1.3; }
.ft-tool-card p { margin: 0; font-size: .86rem; color: var(--ft-muted); line-height: 1.5; }
.ft-tool-card .ft-go { margin-top: .5rem; display: inline-flex; gap: .25rem; font-size: .82rem; font-weight: 700; color: var(--ft-primary-d); }

/* ---------- Hub ---------- */
.ft-hub-hero { padding-bottom: 3.2rem; text-align: center; }
.ft-hub-hero .ft-lede { margin: 0 auto; }
.ft-hub-hero .ft-badges { justify-content: center; }
.ft-hub-hero .ft-crumbs { justify-content: center; }
.ft-group { margin: 0 0 2.4rem; }
.ft-group-head { margin: 0 0 1rem; }
.ft-group-head h2 { font-family: "Space Grotesk", Poppins, sans-serif; font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 800; margin: 0 0 .25rem; color: var(--ft-ink); }
.ft-group-head p { margin: 0; color: var(--ft-muted); font-size: .94rem; }
.ft-hub-why { display: grid; gap: .9rem; grid-template-columns: 1fr; margin: 0 0 2.6rem; }
@media (min-width: 720px) { .ft-hub-why { grid-template-columns: repeat(3, 1fr); } }
.ft-why { padding: 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--ft-border); }
.ft-why b { display: flex; gap: .5rem; align-items: center; font-size: .98rem; color: var(--ft-ink); margin-bottom: .3rem; }
.ft-why b svg { width: 20px; height: 20px; color: var(--ft-primary); }
.ft-why span { font-size: .88rem; color: var(--ft-muted); line-height: 1.55; }
.ft-hub-top { margin-top: -2.2rem; position: relative; z-index: 2; }

/* ---------- Toast & newsletter prompt ---------- */
.ft-toast-host { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 9998; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.ft-toast { pointer-events: auto; background: #111827; color: #fff; padding: .7rem 1rem; border-radius: 12px; font-size: .9rem; font-weight: 600; box-shadow: 0 12px 30px -10px rgba(0,0,0,.45); animation: ft-in .2s ease-out; max-width: 100%; }
.ft-toast.is-bad { background: #991b1b; }
.ft-toast.is-ok { background: #065f46; }
@keyframes ft-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ft-news { margin-top: 1.2rem; padding: 1rem 1.1rem; border-radius: 14px; border: 1px solid #ddd6fe; background: linear-gradient(135deg, #faf5ff, #eef2ff); position: relative; animation: ft-in .25s ease-out; }
.ft-news-close { position: absolute; top: .4rem; right: .4rem; }
.ft-news h2 { font-size: 1rem; font-weight: 800; margin: 0 2rem .25rem 0; color: var(--ft-ink); }
.ft-news p { margin: 0 0 .7rem; font-size: .88rem; color: var(--ft-muted); }
.ft-news form { display: flex; gap: .5rem; flex-wrap: wrap; }
.ft-news form .ft-input { flex: 1 1 220px; }

@media (prefers-reduced-motion: reduce) {
  .ft-page *, .ft-page *::before, .ft-page *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .ft-hero, .ft-content, .ft-next, .ft-service, .ft-news, #header, #promo-ticker, footer, #cookie-consent-banner { display: none !important; }
}
