/* Text Extractor Tool: dark, glass-style interface with smooth motion.
   Motion only animates transform and opacity, so it stays smooth. Everything calms down for reduced-motion users. */

:root {
    --bg: #07080d;
    --bg-2: #0b0d14;
    --surface: rgba(255, 255, 255, .035);
    --surface-solid: #0f1117;
    --surface-2: rgba(255, 255, 255, .06);
    --glass-border: rgba(255, 255, 255, .08);
    --glass-border-strong: rgba(255, 255, 255, .16);
    --ink: #eef0f7;
    --ink-soft: #c9cdda;
    --muted: #8b90a3;
    --line: rgba(255, 255, 255, .08);
    --line-strong: rgba(255, 255, 255, .16);
    --brand: #8b8cf8;
    --brand-2: #6366f1;
    --brand-3: #a78bfa;
    --brand-soft: rgba(139, 140, 248, .12);
    --ok: #34d399;
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, .1);
    --radius: 16px;
    --display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --grad: linear-gradient(120deg, #6366f1 0%, #8b5cf6 55%, #c084fc 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 16px 40px -18px rgba(0, 0, 0, .7);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 40px 80px -30px rgba(0, 0, 0, .9);
    --glow: 0 0 0 3px rgba(139, 140, 248, .35);
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: dark;
}

* { box-sizing: border-box; }
/* The hidden attribute must always win over layout rules such as display: grid. */
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Nirmala UI", "Noto Sans Devanagari", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: -.005em;
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}
/* Subtle grid that fades out toward the bottom */
body::before {
    content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
body::after {
    content: ""; position: fixed; inset: 0 0 auto 0; height: 760px; z-index: -1; pointer-events: none;
    background:
        radial-gradient(40% 60% at 15% 0%, rgba(99, 102, 241, .22), transparent 70%),
        radial-gradient(35% 55% at 88% 4%, rgba(168, 85, 247, .16), transparent 70%);
}

h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 .45em; text-wrap: balance; letter-spacing: -.025em; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); letter-spacing: -.045em; font-weight: 750; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: .95rem; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .9em; color: var(--ink-soft); }
a { color: var(--brand); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: #c4c5ff; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, .dropzone:focus-visible, .tool-card:focus-visible {
    outline: none; box-shadow: var(--glow); border-radius: 12px;
}
::selection { background: rgba(139, 140, 248, .35); color: #fff; }
.wrap { width: min(1160px, 100% - 48px); margin-inline: auto; }
.small { font-size: .84rem; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--surface-solid); color: var(--ink); padding: .5rem 1rem; z-index: 50; border: 1px solid var(--line-strong); border-radius: 10px; }
.skip-link:focus { left: 1rem; top: 1rem; }
.gradient-text {
    background: linear-gradient(110deg, #a5b4fc 0%, #818cf8 25%, #c084fc 50%, #f0abfc 75%, #a5b4fc 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 9s linear infinite;
}
@keyframes shimmer { from { background-position: 0% 50%; } to { background-position: 220% 50%; } }
.section-title { font-size: 1.45rem; margin: 0 0 1.1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head .section-title { margin: 0; }
.link-more { font-weight: 600; font-size: .92rem; }
.field-label { display: block; font-weight: 600; margin-bottom: .35rem; color: var(--ink); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { margin: .4rem 0; }

/* Glass surface helper */
.panel, .side-card, .tool-card, .steps li, .faq details, .privacy-note, .file-list li, .option-set, .post-card {
    background: var(--surface);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 30;
    background: rgba(7, 8, 13, .6);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled { background: rgba(7, 8, 13, .86); border-bottom-color: var(--glass-border-strong); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: .7rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-text strong { display: block; font-size: .96rem; line-height: 1.1; letter-spacing: -.015em; font-weight: 650; }
.brand-text small { color: var(--muted); font-size: .7rem; }
.brand-mark {
    display: grid; place-items: center; width: 2.05rem; height: 2.05rem; border-radius: 10px; flex: none;
    background: var(--grad); color: #fff; font-weight: 700; font-size: .92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 8px 20px -8px rgba(139, 92, 246, .8);
}
.site-header nav { display: flex; gap: .15rem; flex-wrap: wrap; }
.site-header nav a {
    color: var(--ink-soft); padding: .42rem .75rem; border-radius: 9px; font-weight: 500; font-size: .9rem;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.site-header nav a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.free-pill {
    font-size: .74rem; font-weight: 600; color: #a7f3d0;
    background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .25);
    padding: .3rem .75rem; border-radius: 999px;
}

/* Footer */
.site-footer { margin-top: 5rem; padding: 3.2rem 0 1.6rem; background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .02)); border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: .55rem; font-weight: 650; color: var(--ink); font-size: 1rem; }
.footer-brand .brand-mark { width: 1.7rem; height: 1.7rem; font-size: .8rem; }
.footer-title { font-weight: 600; color: var(--ink); margin-bottom: .6rem; font-size: .85rem; letter-spacing: .01em; }
.footer-links li a { color: var(--muted); }
.footer-links li a:hover { color: var(--ink); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--brand); }
.footer-base { margin-top: 2.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }

main { padding-bottom: .5rem; }

/* Hero */
.hero { position: relative; padding: 5.2rem 0 2.4rem; text-align: center; isolation: isolate; }
.hero-glow { position: absolute; inset: -20% 0 auto 0; height: 520px; z-index: -1; pointer-events: none; }
.hero-glow::before, .hero-glow::after {
    content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(70px); opacity: .45;
    will-change: transform;
}
.hero-glow::before { left: 8%; top: 0; background: radial-gradient(circle, #6366f1, transparent 65%); animation: float-a 16s ease-in-out infinite; }
.hero-glow::after { right: 6%; top: 40px; background: radial-gradient(circle, #a855f7, transparent 65%); animation: float-b 19s ease-in-out infinite; }
@keyframes float-a { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@keyframes float-b { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-50px, 20px, 0) scale(1.1); } }
.hero h1 { max-width: 17ch; margin: 0 auto; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; font-weight: 550; letter-spacing: .01em;
    color: var(--ink-soft); background: var(--surface); border: 1px solid var(--glass-border-strong);
    padding: .36rem .9rem .36rem .7rem; border-radius: 999px; margin: 0 0 1.6rem;
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.lead { font-size: clamp(1rem, 1.5vw, 1.12rem); color: var(--muted); max-width: 60ch; margin: 1.2rem auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2rem 0 0; justify-content: center; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 1.6rem 0 0; padding: 0; }
.trust li {
    font-size: .8rem; color: var(--muted); padding: .3rem .75rem; border-radius: 999px; border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}
.btn-primary, .btn-ghost {
    position: relative; display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .94rem; padding: .72rem 1.25rem; border-radius: 12px;
    border: 1px solid transparent; text-decoration: none; will-change: transform;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 30px -10px rgba(139, 92, 246, .85); }
.btn-primary:hover { transform: translate3d(0, -2px, 0); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 40px -12px rgba(139, 92, 246, .95); color: #fff; text-decoration: none; }
.btn-primary:active { transform: translate3d(0, 0, 0) scale(.985); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--glass-border-strong); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { transform: translate3d(0, -2px, 0); border-color: rgba(255, 255, 255, .3); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.btn-ghost:active { transform: scale(.985); }

/* Reveal on scroll (only when JavaScript runs) */
.js .reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Search */
.search-band { padding: 2.6rem 0 0; max-width: 660px; }
.search-shell { position: relative; }
.search-input {
    display: block; width: 100%; font: inherit; font-size: 1rem; height: 56px; padding: 0 4.2rem 0 3.1rem; border-radius: 16px;
    border: 1px solid var(--glass-border-strong); background: rgba(255, 255, 255, .04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 1.1rem center / 18px;
    color: var(--ink); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow);
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.search-input::placeholder { color: #6b7080; }
.search-input:hover { border-color: rgba(255, 255, 255, .24); }
.search-input:focus { border-color: rgba(139, 140, 248, .6); box-shadow: 0 0 0 4px rgba(139, 140, 248, .18), var(--shadow); outline: none; background-color: rgba(255, 255, 255, .06); }
.search-input::-webkit-search-cancel-button { filter: invert(1); opacity: .6; }
.kbd {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: inherit; font-size: .78rem; color: var(--muted);
    border: 1px solid var(--glass-border-strong); border-bottom-width: 2px; border-radius: 7px; padding: .08rem .45rem; pointer-events: none;
}

/* Tools directory */
.tools { padding: 3.2rem 0 .5rem; }
.category { margin-bottom: 2.6rem; }
.category[hidden] { display: none; }
.category-head { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; }
.category-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; background: var(--brand-soft); color: var(--brand); border: 1px solid rgba(139, 140, 248, .2); }
.category-icon svg, .tool-icon svg { width: 17px; height: 17px; }
.category-title { font-size: 1.05rem; font-weight: 650; margin: 0; letter-spacing: -.015em; }
.category-count { font-size: .74rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: .05rem .5rem; border-radius: 999px; }
.tool-grid { display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.tool-card {
    --mx: 50%; --my: 50%;
    position: relative; display: flex; align-items: center; gap: .72rem; padding: .66rem .8rem; min-width: 0; overflow: hidden;
    color: var(--ink); text-decoration: none; border-radius: 14px; isolation: isolate;
    transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
    will-change: transform;
}
/* Cursor spotlight: positioned with CSS variables set from JavaScript */
.tool-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; pointer-events: none;
    background: radial-gradient(180px circle at var(--mx) var(--my), rgba(139, 140, 248, .22), transparent 70%);
    transition: opacity .4s var(--ease);
}
.tool-card:hover { transform: translate3d(0, -2px, 0); border-color: rgba(139, 140, 248, .35); box-shadow: 0 18px 40px -22px rgba(99, 102, 241, .6); color: var(--ink); text-decoration: none; }
.tool-card:hover::before { opacity: 1; }
.tool-card:active { transform: translate3d(0, 0, 0) scale(.99); transition-duration: .15s; }
.tool-card[hidden] { display: none; }
.tool-icon {
    display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 10px; flex: none;
    background: rgba(255, 255, 255, .05); color: var(--ink-soft); border: 1px solid var(--line);
    transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.tool-card:hover .tool-icon { color: #c7c8ff; background: rgba(139, 140, 248, .16); border-color: rgba(139, 140, 248, .3); transform: scale(1.04); }
.tool-name { flex: 1; min-width: 0; font-weight: 550; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-arrow { width: 15px; height: 15px; flex: none; color: #a5b4fc; opacity: 0; transform: translate3d(-4px, 4px, 0); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.tool-card:hover .tool-arrow { opacity: 1; transform: none; }
.tool-card .tool-text, .tool-card p, .tool-card .go { display: none; }

/* Blog cards, when used on the home page */
.latest-posts { padding-top: 3rem; }
.post-card { border-radius: 16px; transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease); }
.post-card:hover { transform: translate3d(0, -3px, 0); border-color: rgba(139, 140, 248, .3); box-shadow: 0 24px 50px -28px rgba(99, 102, 241, .6); }

/* How it works and FAQ */
.how { padding: 3rem 0 .5rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 1.3rem 1.3rem 1.4rem; border-radius: var(--radius); counter-increment: step; transition: border-color .4s var(--ease), transform .4s var(--ease); }
.steps li:hover { border-color: rgba(255, 255, 255, .16); transform: translate3d(0, -2px, 0); }
.steps li::before {
    content: counter(step); display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%;
    background: var(--grad); color: #fff; font-weight: 700; font-size: .85rem; margin-bottom: .8rem; box-shadow: 0 8px 18px -8px rgba(139, 92, 246, .9);
}
.steps li h3 { font-size: .98rem; margin-bottom: .25rem; }
.steps li p { color: var(--muted); margin: 0; font-size: .9rem; }
.faq { padding: 3rem 0 .5rem; max-width: 780px; }
.faq details { border-radius: 14px; padding: .8rem 1.05rem; margin-bottom: .55rem; transition: border-color .3s var(--ease), background .3s var(--ease); }
.faq details[open] { border-color: rgba(139, 140, 248, .3); }
.faq summary { cursor: pointer; font-weight: 600; font-size: .96rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 1.25rem; line-height: 1; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: .6rem 0 .2rem; color: var(--muted); font-size: .92rem; }

/* Tool page */
.breadcrumbs { font-size: .84rem; color: var(--muted); padding-top: 1.8rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); }
.tool-head { padding: .7rem 0 1.8rem; }
.tool-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.tool-head p { color: var(--muted); max-width: 64ch; font-size: 1.02rem; margin: 0; }
.tool-layout { display: grid; gap: 1.2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
@media (min-width: 980px) { .tool-layout { grid-template-columns: minmax(0, 1fr) 310px; align-items: start; } }
.panel { border-radius: 22px; box-shadow: var(--shadow); padding: clamp(1.2rem, 2.6vw, 1.9rem); }
.side-card { border-radius: 18px; padding: 1.15rem 1.25rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm); }
.side-card h2 { font-size: 1rem; }
.side-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.side-card ul, .side-card ol { list-style: none; padding: 0; margin: 0; }
.side-card li { margin: 0; }
.side-card h2 { margin-bottom: .6rem; }
.side-card .plain-links { display: grid; gap: 2px; margin: 0 -.45rem; }
.side-card .plain-links a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .5rem .45rem; border-radius: 9px; color: var(--ink-soft); font-weight: 500; font-size: .9rem; text-align: left;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.side-card .plain-links a span { color: var(--muted); transition: transform .3s var(--ease), color .3s var(--ease); }
.side-card .plain-links a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-card .plain-links a:hover span { color: #a5b4fc; transform: translate3d(2px, 0, 0); }
.all-tools-link { display: inline-block; margin-top: .8rem; font-size: .88rem; font-weight: 600; }

.dropzone {
    position: relative; border: 1px dashed rgba(255, 255, 255, .2); border-radius: 18px;
    padding: 2.4rem 1.2rem; text-align: center; background: rgba(255, 255, 255, .02);
    transition: border-color .35s var(--ease), background .35s var(--ease), transform .35s var(--ease);
}
.dropzone:hover, .dropzone.is-over { border-color: rgba(139, 140, 248, .6); background: rgba(139, 140, 248, .06); }
.dropzone.is-over { transform: scale(1.01); }
.drop-icon {
    width: 3rem; height: 3rem; margin: 0 auto .8rem; display: grid; place-items: center; border-radius: 14px;
    background: var(--grad); color: #fff; font-size: 1.35rem; font-weight: 600; box-shadow: 0 12px 26px -10px rgba(139, 92, 246, .9);
}
.drop-title { font-weight: 650; font-size: 1.05rem; margin-bottom: .2rem; color: var(--ink); }
.file-button {
    display: inline-block; background: rgba(255, 255, 255, .06); color: var(--ink); font-weight: 600; font-size: .9rem; padding: .6rem 1.15rem;
    border-radius: 11px; cursor: pointer; border: 1px solid var(--glass-border-strong);
    transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.file-button:hover { transform: translate3d(0, -1px, 0); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-list { list-style: none; padding: 0; margin: .8rem 0 0; text-align: left; display: grid; gap: .35rem; }
.file-list li { font-size: .88rem; padding: .45rem .75rem; border-radius: 10px; word-break: break-all; color: var(--ink-soft); }
#qr-text {
    width: 100%; font: inherit; padding: .8rem .95rem; border-radius: 12px; border: 1px solid var(--glass-border-strong);
    background: rgba(255, 255, 255, .03); color: var(--ink); min-height: 110px; resize: vertical; transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
#qr-text:focus { border-color: rgba(139, 140, 248, .6); box-shadow: var(--glow); outline: none; }

.option-grid { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-top: 1.1rem; }
@media (min-width: 640px) { .option-grid { grid-template-columns: 1fr 1fr; } }
.option-set { border-radius: 14px; padding: .8rem .9rem; margin: 1.1rem 0 0; }
.option-grid .option-set { margin-top: 0; }
.option-set legend { font-weight: 600; padding: 0 .3rem; font-size: .85rem; color: var(--muted); }
.radio {
    display: flex; gap: .55rem; align-items: center; margin: .3rem 0; padding: .5rem .7rem; border-radius: 10px;
    border: 1px solid transparent; background: rgba(255, 255, 255, .02); cursor: pointer; font-weight: 500; font-size: .9rem; color: var(--ink-soft);
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.radio:hover { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.radio:has(input:checked) { border-color: rgba(139, 140, 248, .55); background: var(--brand-soft); color: #d7d8ff; }
.radio input[type="color"] { margin-left: auto; width: 2rem; height: 1.6rem; border: 0; background: none; padding: 0; cursor: pointer; }

button, .button { font: inherit; font-weight: 600; font-size: .95rem; border: 1px solid transparent; border-radius: 12px; padding: .7rem 1.2rem; cursor: pointer; transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s var(--ease); }
button.primary { background: var(--grad); color: #fff; margin-top: 1.2rem; width: 100%; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 12px 28px -12px rgba(139, 92, 246, .9); }
button.primary:hover { transform: translate3d(0, -2px, 0); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 18px 36px -12px rgba(139, 92, 246, 1); }
button.primary:active { transform: scale(.99); }
button.secondary { background: var(--surface-2); color: var(--ink); border-color: var(--glass-border-strong); }
button.secondary:hover { transform: translate3d(0, -1px, 0); background: rgba(255, 255, 255, .1); }
button:disabled { opacity: .5; cursor: wait; transform: none; box-shadow: none; }
.status { margin: .8rem 0 0; color: var(--muted); text-align: center; font-size: .88rem; }
.notice { border-radius: 12px; padding: .85rem 1rem; margin-top: 1.1rem; border: 1px solid rgba(248, 113, 113, .3); background: var(--bad-soft); }
.notice.error p { color: #fca5a5; margin: 0; font-weight: 500; }
.notice p { margin: 0; }
.result { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
textarea#result-text {
    width: 100%; font: inherit; font-size: .95rem; line-height: 1.65; padding: .9rem 1rem; border-radius: 14px;
    border: 1px solid var(--glass-border-strong); background: rgba(255, 255, 255, .03); color: var(--ink); resize: vertical; min-height: 200px;
}
.result-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin: .9rem 0 .2rem; }
.result-actions button { margin-top: 0; width: auto; }

/* Tool information section */
.tool-info { padding: 2.8rem 0 .5rem; max-width: 900px; }
.tool-info h2 { font-size: 1.35rem; }
.tool-info > p { color: var(--muted); }
.steps-compact { margin-top: 1.2rem; }
.related-title { margin-top: 2rem; font-size: .95rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.related-list { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.related-list a { display: inline-block; font-size: .88rem; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--glass-border-strong); color: var(--ink-soft); transition: transform .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.related-list a:hover { transform: translate3d(0, -1px, 0); border-color: rgba(139, 140, 248, .5); color: var(--ink); text-decoration: none; }

/* Text pages */
.prose-page { max-width: 72ch; padding: 2.4rem 0 1rem; }
.prose-page .eyebrow { margin-bottom: 1rem; }
.prose-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.prose-page h2 { font-size: 1.2rem; margin-top: 2rem; }
.prose-page ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose-page li { margin: .35rem 0; }

@media (max-width: 640px) {
    .hero { padding-top: 3.2rem; }
    .wrap { width: min(1160px, 100% - 32px); }
    .brand-text small { display: none; }
    .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tool-card { padding: .55rem .6rem; gap: .5rem; }
    .tool-name { font-size: .86rem; }
    .kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Background remover */
.privacy-note { border-radius: 12px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .88rem; color: var(--ink-soft); border-color: rgba(52, 211, 153, .25) !important; background: rgba(52, 211, 153, .06) !important; }
.bg-progress { margin-top: .8rem; }
.bg-progress .bar { height: 6px; background: rgba(255, 255, 255, .06); border-radius: 999px; overflow: hidden; }
.bg-progress .bar span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s var(--ease); }
.bg-compare { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.3rem; }
@media (min-width: 720px) { .bg-compare { grid-template-columns: 1fr 1fr; } }
.bg-compare figure { margin: 0; }
.bg-compare figcaption { font-weight: 600; margin-bottom: .4rem; font-size: .88rem; color: var(--muted); }
.bg-compare img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--glass-border-strong); display: block; background: var(--surface-solid); }
.checker { border-radius: 14px; background-color: #1a1d27; background-image: linear-gradient(45deg, #242836 25%, transparent 25%), linear-gradient(-45deg, #242836 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #242836 75%), linear-gradient(-45deg, transparent 75%, #242836 75%); background-size: 20px 20px; }
.bg-download { grid-column: 1 / -1; }
.bg-download .button { display: inline-block; text-decoration: none; }

/* Tool page: About section with questions (below the tool, so the tool stays the focus) */
.tool-about { max-width: 760px; margin: 3.2rem 0 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.tool-about h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.tool-about > p { color: var(--muted); font-size: 1rem; }
.tool-about .faq-title { margin-top: 1.8rem; font-size: .95rem; color: var(--ink-soft); font-weight: 650; }
.tool-about details { border-radius: 12px; padding: .75rem 1rem; margin-bottom: .5rem; background: var(--surface); border: 1px solid var(--glass-border); }
.tool-about details[open] { border-color: rgba(139, 140, 248, .3); }
.tool-about summary { cursor: pointer; font-weight: 600; font-size: .95rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tool-about summary::-webkit-details-marker { display: none; }
.tool-about summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; transition: transform .35s var(--ease); }
.tool-about details[open] summary::after { transform: rotate(45deg); }
.tool-about details p { margin: .6rem 0 .2rem; color: var(--muted); font-size: .92rem; }

/* Footer: brand on its own row, then every tool category and the company links */
.footer-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 2.2rem 1.6rem; }
.footer-about { grid-column: 1 / -1; }
.footer-links li { margin: .3rem 0; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); } }

/* Background remover: percentage ring that fills as the work progresses */
.bg-progress { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1.6rem 0 .4rem; }
.bg-ring {
    --p: 0;
    position: relative; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center;
    background: conic-gradient(from -90deg, #6366f1 calc(var(--p) * 1%), rgba(255, 255, 255, .07) 0);
    box-shadow: 0 0 0 1px var(--glass-border), 0 20px 50px -24px rgba(99, 102, 241, .7);
    transition: background .5s var(--ease);
}
.bg-ring::before {
    content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--surface-solid);
}
.bg-ring span {
    position: relative; font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em;
    font-variant-numeric: tabular-nums; color: var(--ink);
}
.bg-ring.is-busy { animation: ring-pulse 1.8s var(--ease) infinite; }
@keyframes ring-pulse {
    0%, 100% { box-shadow: 0 0 0 1px var(--glass-border), 0 0 0 0 rgba(99, 102, 241, .45); }
    50% { box-shadow: 0 0 0 1px var(--glass-border), 0 0 0 18px rgba(99, 102, 241, 0); }
}
.bg-progress .small { margin: 0; }
