/* AI Tools Fox — free tools first, Apple-style (WEB-10b) */
.free-tools, .ft-cats-wrap {
  --ft-ease: cubic-bezier(.2,.8,.2,1);
  --ft-ink: #1d1d1f; --ft-soft: #86868b; --ft-sub: #6e6e73; --ft-blue: #0071e3;
  --ft-card: #fff; --ft-fill: rgba(120,120,128,.12);
  --ft-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px -10px rgba(0,0,0,.10);
  --ft-shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 22px 44px -14px rgba(0,0,0,.18);
}
section.converters.free-tools { background: #fff; padding-top: 84px; padding-bottom: 56px; text-align: center; }
.ft-head :is(h1,h2) { font-size: clamp(2.5rem, 7.2vw, 5rem); font-weight: 700; letter-spacing: -.048em; line-height: 1.04; color: var(--ft-ink); text-wrap: balance; }
.ft-head :is(h1,h2) .soft { color: var(--ft-soft); }
.ft-sub { margin: 16px auto 0; max-width: 34em; font-size: clamp(1.1rem, 2.3vw, 1.4rem); color: var(--ft-sub); letter-spacing: -.012em; line-height: 1.35; }
.ft-search { position: relative; max-width: 540px; margin: 34px auto 0; }
.ft-search svg { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--ft-soft); pointer-events: none; }
.ft-search input {
  width: 100%; font: inherit; font-size: 1.05rem; color: var(--ft-ink); background: var(--ft-fill);
  border: 0; border-radius: 999px; padding: 15px 20px 15px 50px; outline: none; -webkit-appearance: none; appearance: none;
  transition: background .3s var(--ft-ease), box-shadow .3s var(--ft-ease);
}
[dir="rtl"] .ft-search input { padding: 15px 50px 15px 20px; }
.ft-search input::placeholder { color: var(--ft-soft); }
.ft-search input:focus { background: #fff; box-shadow: 0 0 0 4px rgba(0,113,227,.22), 0 8px 24px -8px rgba(0,0,0,.18); }
.ft-results { max-width: 620px; margin: 14px auto 0; display: grid; gap: 10px; text-align: start; }
.ft-results[hidden] { display: none; }
.ft-res { display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; border-radius: 18px; text-decoration: none; color: var(--ft-ink); background: var(--ft-card);
  box-shadow: var(--ft-shadow); transition: transform .3s var(--ft-ease), box-shadow .3s var(--ft-ease); }
.ft-res:hover, .ft-res:focus-visible { transform: translateY(-2px); box-shadow: var(--ft-shadow-hover); outline: none; }
.ft-res strong { font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ft-res span.d { font-size: .88rem; color: var(--ft-sub); }
.ft-none { color: var(--ft-sub); font-size: .98rem; padding: 10px 4px; text-align: center; }
.ft-none a { color: var(--ft-blue); text-decoration: none; }

/* product strip: gradient squircles + label */
.ft-strip { margin-top: 48px; }
.ft-strip-in { display: flex; gap: 34px; width: max-content; max-width: none; margin: 0 auto; }
.ft-tile { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 112px; text-decoration: none; color: var(--ft-ink); -webkit-tap-highlight-color: transparent;
  animation: ft-rise .7s var(--ft-ease) backwards; animation-delay: calc(var(--i, 0) * 80ms); outline: none; }
.ft-sq { width: 104px; height: 104px; border-radius: 29px; display: grid; place-items: center; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 10px 22px -8px var(--c, rgba(0,0,0,.35)), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .35s var(--ft-ease), box-shadow .35s var(--ft-ease); will-change: transform; }
.ft-sq::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,0) 55%); pointer-events: none; }
.g-pdf { background: linear-gradient(145deg, #ff7a6e, #ff3b30); --c: rgba(255,59,48,.5); }
.g-img { background: linear-gradient(145deg, #5ad1fa, #0a84ff); --c: rgba(10,132,255,.5); }
.g-aud { background: linear-gradient(145deg, #ff6ea8, #af52de); --c: rgba(175,82,222,.5); }
.g-vid { background: linear-gradient(145deg, #ffc247, #ff7a00); --c: rgba(255,122,0,.5); }
.g-off { background: linear-gradient(145deg, #5bde7f, #1fa84a); --c: rgba(31,168,74,.5); }
.g-ai  { background: linear-gradient(135deg, #5e5ce6, #9b5cf6 50%, #ff5ea8); --c: rgba(125,90,240,.55); }
.ft-label { font-size: .92rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.25; color: var(--ft-ink); text-wrap: balance; }
@media (hover: hover) { .ft-tile:hover .ft-sq { transform: translateY(-5px) scale(1.06); box-shadow: 0 20px 34px -10px var(--c, rgba(0,0,0,.4)), inset 0 1px 0 rgba(255,255,255,.4); } }
.ft-tile:focus-visible .ft-sq { transform: translateY(-5px) scale(1.06); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--ft-blue); }
.ft-tile:active .ft-sq { transform: scale(.96); }
@keyframes ft-rise { from { opacity: 0; transform: translateY(18px); } }
.ft-ic { width: 50px; height: 50px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; position: relative; z-index: 1; }
.ft-ic * { transform-box: fill-box; }

/* icon micro-motions (hover / focus / tap) */
.ft-ic .pg, .ft-ic .fold, .ft-ic .mtn, .ft-ic .sun, .ft-ic .n, .ft-ic .rec, .ft-ic .cell, .ft-ic .sp { transition: transform .35s var(--ft-ease), opacity .35s var(--ft-ease); }
.ft-ic .pg { transform-origin: 20% 100%; }
.ft-ic .fold { transform-origin: 100% 0; }
.ft-ic .cell { fill: currentColor; stroke: none; opacity: 0; }
.ft-ic .rec { fill: currentColor; stroke: none; }
.ft-ic .sp { transform-origin: 50% 50%; }
.ft-ic .sp.s2, .ft-ic .sp.s3 { fill: currentColor; stroke: none; opacity: .95; }
@media (hover: hover) {
  .ft-tile:hover .ic-pdf .pg { animation: ft-pg .6s var(--ft-ease); }
  .ft-tile:hover .ic-pdf .fold { animation: ft-fold .6s var(--ft-ease); }
  .ft-tile:hover .ic-img .mtn { animation: ft-slide .6s var(--ft-ease); }
  .ft-tile:hover .ic-img .sun { animation: ft-sun .6s var(--ft-ease); }
  .ft-tile:hover .ic-aud .n1 { animation: ft-bounce .8s var(--ft-ease) infinite; }
  .ft-tile:hover .ic-aud .n2 { animation: ft-bounce .8s var(--ft-ease) .18s infinite; }
  .ft-tile:hover .ic-vid .rec { animation: ft-rec 1.1s ease-in-out infinite; }
  .ft-tile:hover .ic-off .cell { animation: ft-fill .5s var(--ft-ease) forwards; animation-delay: calc(var(--k) * 80ms); }
  .ft-tile:hover .ic-ai .s1 { animation: ft-twinkle 1.3s ease-in-out infinite; }
  .ft-tile:hover .ic-ai .s2 { animation: ft-twinkle 1.3s ease-in-out .3s infinite; }
  .ft-tile:hover .ic-ai .s3 { animation: ft-twinkle 1.3s ease-in-out .6s infinite; }
}
.ft-tile:focus-visible .ic-pdf .pg, .ft-tile:active .ic-pdf .pg { animation: ft-pg .6s var(--ft-ease); }
.ft-tile:focus-visible .ic-pdf .fold, .ft-tile:active .ic-pdf .fold { animation: ft-fold .6s var(--ft-ease); }
.ft-tile:focus-visible .ic-img .mtn, .ft-tile:active .ic-img .mtn { animation: ft-slide .6s var(--ft-ease); }
.ft-tile:focus-visible .ic-img .sun, .ft-tile:active .ic-img .sun { animation: ft-sun .6s var(--ft-ease); }
.ft-tile:focus-visible .ic-aud .n1, .ft-tile:active .ic-aud .n1 { animation: ft-bounce .8s var(--ft-ease) 2; }
.ft-tile:focus-visible .ic-aud .n2, .ft-tile:active .ic-aud .n2 { animation: ft-bounce .8s var(--ft-ease) .18s 2; }
.ft-tile:focus-visible .ic-vid .rec, .ft-tile:active .ic-vid .rec { animation: ft-rec 1.1s ease-in-out 2; }
.ft-tile:focus-visible .ic-off .cell, .ft-tile:active .ic-off .cell { animation: ft-fill .5s var(--ft-ease) forwards; animation-delay: calc(var(--k) * 80ms); }
.ft-tile:focus-visible .ic-ai .sp, .ft-tile:active .ic-ai .sp { animation: ft-twinkle 1.3s ease-in-out 2; }
@keyframes ft-pg { 0% { transform: rotate(0); } 40% { transform: rotate(-7deg) translateY(-2px); } 100% { transform: rotate(0); } }
@keyframes ft-fold { 0% { transform: scale(1); } 40% { transform: scale(1.35) translate(1px,-1px); } 100% { transform: scale(1); } }
@keyframes ft-slide { 0% { transform: translateX(-9px); opacity: .2; } 100% { transform: translateX(0); opacity: 1; } }
@keyframes ft-sun { 0% { transform: translateY(5px) scale(.8); } 60% { transform: translateY(-2px) scale(1.1); } 100% { transform: translateY(0) scale(1); } }
@keyframes ft-bounce { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-5px); } 70% { transform: translateY(1px); } }
@keyframes ft-rec { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .35; } }
@keyframes ft-fill { to { opacity: .45; } }
@keyframes ft-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.78) rotate(12deg); opacity: .6; } }

/* category sections: light grey band, white cards */
.ft-cats-wrap { background: #f5f5f7; padding: 72px max(22px, calc((100vw - 1080px) / 2)) 96px; }
.ft-cats { display: grid; gap: 72px; }
.ft-cat { scroll-margin-top: 72px; }
.ft-cat-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.ft-cat-head :is(h2,h3), .ft-h { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; color: var(--ft-ink); }
.ft-more { color: var(--ft-blue); text-decoration: none; font-size: 1.02rem; white-space: nowrap; }
.ft-more:hover { text-decoration: underline; }
.ft-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.ft-card { display: flex; gap: 16px; align-items: flex-start; background: var(--ft-card); border-radius: 20px; padding: 22px; text-decoration: none; color: var(--ft-ink);
  box-shadow: var(--ft-shadow); transition: transform .35s var(--ft-ease), box-shadow .35s var(--ft-ease); }
.ft-card.reveal.in:hover, .ft-card:hover { transform: translateY(-4px); box-shadow: var(--ft-shadow-hover); }
.ft-card:focus-visible { outline: 3px solid rgba(0,113,227,.55); outline-offset: 3px; }
.ft-ico { flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px -6px var(--c, rgba(0,0,0,.3)), inset 0 1px 0 rgba(255,255,255,.35); }
.ft-ico .ft-ic { width: 26px; height: 26px; stroke-width: 1.9; }
.ft-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ft-card h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.ft-card p { font-size: .9rem; color: var(--ft-sub); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-pill, .ft-free, .ft-paid { align-self: flex-start; font-size: .68rem; font-weight: 600; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; background: rgba(48,209,88,.15); color: #1f8a3c; line-height: 1.5; margin-top: 8px; }
.ft-paid { background: rgba(0,113,227,.12); color: #0058b0; }
.ft-res .ft-free, .ft-res .ft-paid { margin-top: 0; }
.ft-card .dc-card-badge { font-size: .66rem; vertical-align: middle; }

/* how it works */
.conv-how { margin: 36px 0 8px; }
.conv-how h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 14px; letter-spacing: -.03em; }
.conv-how ol { list-style: none; counter-reset: s; display: grid; gap: 10px; padding: 0; }
.conv-how li { counter-increment: s; display: flex; gap: 12px; align-items: center; color: var(--muted); }
.conv-how li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,113,227,.1); color: var(--blue); font-weight: 700; font-size: .85rem; }

@media (max-width: 700px) {
  section.converters.free-tools { padding-top: 52px; padding-bottom: 36px; }
  .ft-strip { margin-top: 36px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 18px; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin-inline: -18px; padding: 6px 18px 14px; }
  .ft-strip::-webkit-scrollbar { display: none; }
  .ft-strip-in { gap: 18px; }
  .ft-tile { width: 80px; gap: 10px; scroll-snap-align: start; }
  .ft-sq { width: 76px; height: 76px; border-radius: 22px; }
  .ft-ic { width: 38px; height: 38px; }
  .ft-label { font-size: .78rem; }
  .ft-cats-wrap { padding: 48px 18px 64px; }
  .ft-cats { gap: 52px; }
  .ft-grid-cards { grid-template-columns: 1fr; gap: 14px; }
  .ft-card { padding: 18px; border-radius: 18px; }
  .ft-search { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ft-tile, .ft-tile *, .ft-card, .ft-res, .ft-search input, .ft-sq { animation: none !important; transition: none !important; }
  .ft-tile:hover .ft-sq, .ft-tile:focus-visible .ft-sq, .ft-card:hover { transform: none; }
  .ft-ic .cell { opacity: 0; }
}
/* dark mode (system setting): black band + dark cards, Apple style */
@media (prefers-color-scheme: dark) {
  .free-tools, .ft-cats-wrap { --ft-ink: #f5f5f7; --ft-soft: #86868b; --ft-sub: #a1a1a6; --ft-blue: #2997ff; --ft-card: #1c1c1e; --ft-fill: rgba(235,235,245,.12);
    --ft-shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px -10px rgba(0,0,0,.6); --ft-shadow-hover: 0 22px 44px -14px rgba(0,0,0,.8); }
  section.converters.free-tools { background: #000; }
  .ft-cats-wrap { background: #0b0b0d; }
  .ft-search input:focus { background: #2c2c2e; box-shadow: 0 0 0 4px rgba(41,151,255,.35); }
  .ft-free, .ft-pill { background: rgba(48,209,88,.2); color: #63e68a; }
  .ft-paid { background: rgba(10,132,255,.25); color: #8cc4ff; }
  .ft-tile:focus-visible .ft-sq { box-shadow: 0 0 0 3px #000, 0 0 0 6px #2997ff; }
}

section.converters.free-tools.ft-hub { padding-top: 40px; padding-bottom: 28px; }
.free-tools.ft-hub .ft-search { margin-top: 0; }
.free-tools.ft-hub .ft-strip { margin-top: 36px; }

/* ---- multi-page: home teasers, category pages (WEB-10c) */
.ft-h { font-size: clamp(1.6rem, 3.4vw, 2.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; color: var(--ft-ink); }
.ft-cats-wrap { scroll-margin-top: 60px; }
.ft-teasers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.ft-teaser { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px 32px 30px; min-height: 270px; border-radius: 28px; color: #fff; text-decoration: none;
  box-shadow: var(--ft-shadow); transition: transform .4s var(--ft-ease), box-shadow .4s var(--ft-ease); isolation: isolate; }
.ft-teaser::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.ft-teaser::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 90% at 100% 0%, rgba(255,255,255,.28), rgba(255,255,255,0) 55%); }
.t-xl::before { background: linear-gradient(145deg, #34c759, #0f8f3d); }
.t-ai::before { background: linear-gradient(135deg, #4b49d6, #8b5cf6 55%, #ff5ea8); }
@media (hover: hover) { .ft-teaser:hover { transform: translateY(-5px) scale(1.012); box-shadow: var(--ft-shadow-hover); } }
.ft-teaser:focus-visible { outline: 3px solid var(--ft-blue); outline-offset: 3px; }
.ft-t-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4); }
.ft-t-ico .ft-ic { width: 30px; height: 30px; stroke-width: 1.9; }
.ft-t-ico .ic-off .cell { opacity: .45; }
.ft-t-title { font-size: clamp(1.7rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.ft-t-text { font-size: 1rem; line-height: 1.42; opacity: .92; max-width: 30em; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ft-t-cta { margin-top: auto; font-weight: 600; font-size: 1.02rem; padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,.95); color: #1d1d1f; }
.ft-t-cta span { display: inline-block; transition: transform .3s var(--ft-ease); }
.ft-teaser:hover .ft-t-cta span { transform: translateX(3px); }
.ft-teasers { margin-top: 0; }
.ft-cats > .ft-teasers { margin-top: 8px; }

.ft-page-hero { background: #fff; text-align: center; padding: 56px max(22px, calc((100vw - 880px) / 2)) 48px;
  --ft-ease: cubic-bezier(.2,.8,.2,1); --ft-ink: #1d1d1f; --ft-sub: #6e6e73; --ft-soft: #86868b; }
.ft-page-hero .crumbs { justify-content: center; margin-bottom: 26px; font-size: .85rem; }
.ft-sq.big { width: 112px; height: 112px; border-radius: 32px; margin: 0 auto 24px; animation: ft-rise .7s var(--ft-ease) backwards; }
.ft-sq.big .ft-ic { width: 56px; height: 56px; }
.ft-page-hero h1 { font-size: clamp(2.3rem, 6.4vw, 4rem); font-weight: 700; letter-spacing: -.045em; line-height: 1.05; color: var(--ft-ink); text-wrap: balance; }
.ft-page-hero .ft-sub { margin-top: 14px; }
.ft-cats-wrap .ft-cat > .ft-grid-cards { margin-top: 0; }
.ft-faq { background: #fff; padding: 64px max(22px, calc((100vw - 760px) / 2)) 72px; --ft-ink: #1d1d1f; }
.ft-faq h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 20px; color: var(--ft-ink); }
.ft-faq .faq-item { background: #f5f5f7; border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; border: 0; }
.ft-faq .faq-item summary { padding: 14px 0; font-weight: 600; cursor: pointer; }
.ft-faq .faq-item p { padding: 0 0 16px; color: var(--ft-sub, #6e6e73); line-height: 1.5; }
section.converters.free-tools.ft-other { background: #f5f5f7; padding: 56px 0 72px; }
.ft-other .ft-h { margin-bottom: 8px; }
.ft-other .ft-strip { margin-top: 28px; }
.ft-other .ft-sq { box-shadow: 0 10px 22px -8px var(--c, rgba(0,0,0,.35)), inset 0 1px 0 rgba(255,255,255,.35); }
@media (max-width: 760px) {
  .ft-teasers { grid-template-columns: 1fr; }
  .ft-teaser { min-height: 0; padding: 26px 24px; border-radius: 24px; }
  .ft-t-cta { margin-top: 10px; }
  .ft-page-hero { padding: 36px 22px 36px; }
  .ft-sq.big { width: 92px; height: 92px; border-radius: 27px; }
  .ft-sq.big .ft-ic { width: 46px; height: 46px; }
  .ft-faq { padding: 44px 18px 52px; }
  section.converters.free-tools.ft-other { padding: 40px 18px 52px; }
  .ft-other .ft-strip { margin-inline: -18px; padding-inline: 18px; }
}
@media (prefers-color-scheme: dark) {
  .ft-page-hero, .ft-faq { background: #000; --ft-ink: #f5f5f7; --ft-sub: #a1a1a6; --ft-soft: #86868b; }
  .ft-faq .faq-item { background: #1c1c1e; }
  section.converters.free-tools.ft-other { background: #0b0b0d; }
}
@media (prefers-reduced-motion: reduce) { .ft-teaser, .ft-t-cta span, .ft-sq.big { animation: none !important; transition: none !important; } .ft-teaser:hover { transform: none; } }
.ft-h, .ft-cat-head :is(h2,h3), .ft-t-title, .ft-card h3, .ft-card p, .ft-label, .ft-faq h2 { overflow-wrap: anywhere; min-width: 0; }
.ft-cat-head { min-width: 0; }
