:root {
    color-scheme: light;
    --bg: #f6f8fb;
    --ink: #10201d;
    --muted: #60716d;
    --line: #dbe6e2;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --accent: #d97706;
    --blue: #2563eb;
    --violet: #7c3aed;
    --danger: #dc2626;
    --panel: #ffffff;
    --soft: #eaf4f0;
    --shadow: 0 24px 70px rgba(16, 32, 29, 0.12);
    --soft-shadow: 0 18px 44px rgba(15, 23, 42, .08);
    --ring: 0 0 0 4px rgba(15, 118, 110, .16);
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #081211;
    --ink: #edf7f4;
    --muted: #a7bbb5;
    --line: #24413c;
    --brand: #2dd4bf;
    --brand-dark: #5eead4;
    --accent: #f59e0b;
    --blue: #60a5fa;
    --violet: #a78bfa;
    --panel: #0f1f1d;
    --soft: #132b27;
    --shadow: 0 24px 70px rgba(0, 0, 0, .42);
    --soft-shadow: 0 18px 44px rgba(0, 0, 0, .28);
    --ring: 0 0 0 4px rgba(45, 212, 191, .18);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, #fbfdfd 0%, var(--bg) 44%, #eef5f3 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

:root[data-theme="dark"] body {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .08) 0 1px, transparent 1px 34px),
        radial-gradient(circle at top left, rgba(96, 165, 250, .14), transparent 34rem),
        linear-gradient(180deg, #07100f 0%, var(--bg) 52%, #0c1917 100%);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0;
    box-shadow: var(--ring);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    padding: .75rem 1rem;
    background: var(--ink);
    color: #fff;
    border-radius: .5rem;
}

.skip-link:focus {
    top: 1rem;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: rgba(255, 255, 255, .78);
    backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(219, 230, 226, .78);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .06);
}

body {
    padding-top: 74px;
}

.nav,
.hero,
.section,
.footer,
.trust-strip {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.nav {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    transition: transform .2s ease, color .2s ease;
}

.brand:hover {
    color: var(--brand-dark);
    transform: translateY(-1px);
}

.brand-logo {
    width: clamp(108px, 14vw, 160px);
    height: 50px;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
    filter: drop-shadow(0 10px 18px rgba(15, 23, 42, .1));
}

.brand-copy {
    display: grid;
    gap: .08rem;
    min-width: 0;
    line-height: 1.05;
}

.brand-copy strong {
    font-size: 1.04rem;
    font-weight: 950;
}

.brand-copy small {
    max-width: 190px;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 850;
    line-height: 1.2;
    text-transform: uppercase;
}

.brand-mark {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--blue) 56%, var(--accent));
    box-shadow: 0 14px 28px rgba(15, 118, 110, .22);
    font-size: .82rem;
    letter-spacing: 0;
    overflow: hidden;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: -35% auto auto -35%;
    width: 70%;
    height: 170%;
    background: rgba(255, 255, 255, .28);
    transform: rotate(28deg) translateX(-120%);
    transition: transform .55s ease;
}

.brand:hover .brand-mark::after {
    transform: rotate(28deg) translateX(260%);
}

.nav-links {
    position: relative;
    z-index: 11;
    display: flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem;
    border: 1px solid rgba(219, 230, 226, .78);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
    color: var(--muted);
    font-weight: 650;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .58rem .78rem;
    border-radius: 8px;
    transition: color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--brand-dark);
    background: #eef8f5;
    transform: translateY(-1px);
}

.nav-links a.active {
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, .16);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: .78rem;
    right: .78rem;
    bottom: .3rem;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .2s ease, transform .2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    opacity: 1;
    transform: scaleX(1);
}

.nav-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(15, 118, 110, .14), rgba(37, 99, 235, .12));
    border: 1px solid rgba(15, 118, 110, .13);
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    position: absolute;
    border-radius: 3px;
    background: var(--brand-dark);
}

.nav-icon[data-icon="tools"]::before {
    width: 5px;
    height: 5px;
    left: 5px;
    top: 5px;
    box-shadow: 7px 0 0 var(--brand-dark), 0 7px 0 var(--brand-dark), 7px 7px 0 var(--brand-dark);
}

.nav-icon[data-icon="pricing"]::before {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent);
}

.nav-icon[data-icon="pricing"]::after {
    width: 2px;
    height: 11px;
    background: var(--accent);
}

.nav-icon[data-icon="privacy"]::before {
    width: 12px;
    height: 9px;
    left: 5px;
    bottom: 4px;
    background: var(--brand-dark);
}

.nav-icon[data-icon="privacy"]::after {
    width: 8px;
    height: 7px;
    left: 7px;
    top: 4px;
    border: 2px solid var(--brand-dark);
    border-bottom: 0;
    background: transparent;
    border-radius: 7px 7px 0 0;
}

.nav-icon[data-icon="dashboard"]::before,
.nav-icon[data-icon="workflow"]::before {
    width: 12px;
    height: 3px;
    top: 6px;
    box-shadow: 0 5px 0 var(--brand-dark), 0 10px 0 var(--brand-dark);
}

.nav-icon[data-icon="login"]::before {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    top: 4px;
}

.nav-icon[data-icon="login"]::after {
    width: 14px;
    height: 6px;
    bottom: 3px;
    border-radius: 8px 8px 3px 3px;
}

.nav-icon[data-icon="faq"]::before {
    content: "?";
    inset: auto;
    color: var(--brand-dark);
    background: transparent;
    font-weight: 950;
    font-size: 15px;
    line-height: 1;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    padding: .55rem .7rem;
    min-width: 48px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-toggle:hover {
    border-color: rgba(15, 118, 110, .38);
    box-shadow: var(--soft-shadow);
    transform: translateY(-1px);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--ink);
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    min-height: 44px;
    margin-left: auto;
    padding: .55rem .75rem;
    border: 1px solid rgba(219, 230, 226, .9);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(15, 118, 110, .34);
    box-shadow: var(--soft-shadow);
}

.theme-icon {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .14);
    transition: background .2s ease, box-shadow .2s ease;
}

.theme-icon::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dotted rgba(217, 119, 6, .55);
}

.theme-icon::after {
    content: "";
    position: absolute;
    inset: 3px 1px 3px 8px;
    border-radius: 50%;
    background: transparent;
    transition: background .2s ease, transform .2s ease;
}

:root[data-theme="dark"] .theme-icon {
    background: linear-gradient(135deg, #dbeafe, #93c5fd);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, .16);
}

:root[data-theme="dark"] .theme-icon::before {
    border-color: transparent;
}

:root[data-theme="dark"] .theme-icon::after {
    background: var(--panel);
    transform: translateX(-3px);
}

.hero {
    min-height: calc(100svh - 74px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    padding: clamp(2.5rem, 7vw, 5.5rem) 0;
}

.eyebrow,
.card-kicker {
    color: var(--brand-dark);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin: 0 0 .65rem;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.55rem, 6vw, 5.7rem);
    line-height: .96;
    letter-spacing: 0;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.03;
}

h3 {
    margin: 0 0 .55rem;
    font-size: 1.2rem;
}

.hero-text {
    max-width: 680px;
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem;
    margin-top: 1.6rem;
}

.button,
.text-button {
    border: 0;
    cursor: pointer;
    font-weight: 800;
}

.button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: .8rem 1.1rem;
    border-radius: 8px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, .28) 45%, transparent 62%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button:hover::after {
    transform: translateX(120%);
}

.button.primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.button.secondary {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
}

.button.secondary:hover {
    border-color: rgba(15, 118, 110, .35);
    box-shadow: var(--soft-shadow);
}

.hero-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.mini-toolbar {
    display: flex;
    gap: .45rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
}

.mini-toolbar span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--line);
}

.workflow-preview {
    display: grid;
    gap: .8rem;
    margin: 1rem 0;
}

.workflow-preview div,
.score-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: var(--soft);
}

.workflow-preview small,
.score-card span,
.tool-card p,
.feature-list,
.steps span,
.footer p {
    color: var(--muted);
}

.score-card {
    background: #fff7ed;
    color: #7c2d12;
}

.trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
    margin-top: -2rem;
}

.trust-strip span {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    font-weight: 800;
    text-align: center;
}

.section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 1.5rem;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    font-size: 1.05rem;
}

.compact {
    margin-bottom: 1rem;
}

.filters {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.filter {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    border-radius: 8px;
    padding: .65rem .9rem;
    font-weight: 800;
    cursor: pointer;
}

.filter.active {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.tool-card {
    position: relative;
    display: flex;
    min-height: 230px;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(16, 32, 29, .1);
}

.pricing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 1rem;
    align-items: stretch;
    margin-bottom: 1rem;
}

.pricing-hero > div,
.pricing-status-card,
.pricing-note {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--soft-shadow);
}

.pricing-hero > div::before,
.pricing-status-card::before,
.pricing-note::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--blue));
}

.pricing-hero h1 {
    max-width: 780px;
    margin-bottom: .8rem;
}

.pricing-hero p:not(.eyebrow),
.pricing-note p {
    max-width: 780px;
    color: var(--muted);
}

.pricing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.2rem;
}

.pricing-status-card {
    display: grid;
    align-content: center;
    gap: .9rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .1), rgba(37, 99, 235, .08)),
        #fff;
}

.pricing-status-card span {
    color: var(--brand-dark);
    font-size: .76rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pricing-status-card strong {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    line-height: 1.08;
}

.pricing-status-card dl {
    display: grid;
    gap: .6rem;
    margin: 0;
}

.pricing-status-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .6rem;
    border-top: 1px solid var(--line);
}

.pricing-status-card dt {
    color: var(--muted);
    font-weight: 800;
}

.pricing-status-card dd {
    margin: 0;
    font-weight: 950;
    text-align: right;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.pricing-card {
    position: relative;
    display: flex;
    min-height: 360px;
    flex-direction: column;
    gap: .85rem;
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 44px rgba(16, 32, 29, .1);
}

.pricing-card.featured {
    border-color: rgba(15, 118, 110, .42);
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .09), rgba(37, 99, 235, .07)),
        #fff;
}

.pricing-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    color: #fff;
    font-size: .8rem;
    font-weight: 950;
}

.pricing-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: .34rem .62rem;
    border-radius: 999px;
    background: var(--ink);
    color: #fff;
    font-size: .72rem;
    font-weight: 950;
}

.pricing-card h3 {
    display: flex;
    align-items: flex-start;
    gap: .12rem;
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.25rem);
    line-height: .95;
}

.pricing-card h3 small {
    margin-top: .18rem;
    font-size: 1rem;
}

.pricing-card p:not(.card-kicker) {
    color: var(--muted);
}

.pricing-list {
    display: grid;
    gap: .58rem;
    margin: .1rem 0 auto;
    padding: 0;
    list-style: none;
}

.pricing-list li {
    position: relative;
    padding-left: 1.35rem;
    color: var(--muted);
    font-weight: 750;
}

.pricing-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .48rem;
    width: .55rem;
    height: .55rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--blue));
}

.pricing-note {
    margin-top: 1rem;
}

.pricing-note strong {
    display: block;
    margin-bottom: .3rem;
    font-size: 1.1rem;
}

.catalog-card h2 {
    margin: 0 0 .55rem;
    font-size: 1.2rem;
    line-height: 1.2;
}

.card-link-cover {
    position: absolute;
    inset: 0;
    z-index: 5;
    border-radius: 8px;
}

.tools-catalog-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(1rem, 3vw, 2rem);
}

.tools-catalog-hero h1 {
    max-width: 900px;
}

.catalog-count {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    margin-bottom: 1rem;
    color: var(--muted);
}

.catalog-count strong {
    color: var(--brand-dark);
    font-size: 1.7rem;
}

.card-foot {
    display: flex;
    justify-content: space-between;
    gap: .9rem;
    align-items: center;
    margin-top: 1rem;
    font-size: .9rem;
}

.card-foot span {
    color: var(--muted);
}

.tool-benefit {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    margin-top: .8rem;
    padding: .36rem .56rem;
    border: 1px solid rgba(15, 118, 110, .18);
    border-radius: 999px;
    background: rgba(15, 118, 110, .07);
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 850;
    line-height: 1.25;
}

.tool-status-pill {
    display: inline-flex;
    align-items: center;
    max-width: min(260px, 100%);
    min-height: 32px;
    padding: .34rem .56rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(248, 250, 252, .92);
    color: var(--muted);
    font-size: .76rem;
    font-weight: 850;
    line-height: 1.25;
}

.text-button {
    color: var(--brand-dark);
    background: transparent;
    padding: 0;
}

.workspace {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
}

.processor {
    display: grid;
    gap: 1rem;
}

.field {
    display: grid;
    gap: .45rem;
}

.field label {
    font-weight: 800;
}

select,
input[type="password"],
input[type="email"],
input[type="number"],
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

input[type="text"] {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .75rem;
    background: #fff;
    color: var(--ink);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

textarea {
    min-height: 96px;
    resize: vertical;
    line-height: 1.45;
}

select:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
input[type="text"]:focus,
textarea:focus {
    border-color: rgba(15, 118, 110, .55);
    box-shadow: var(--ring);
    transform: translateY(-1px);
}

.dropzone {
    position: relative;
    display: grid;
    gap: .45rem;
    place-items: center;
    min-height: 190px;
    padding: 1.5rem;
    text-align: center;
    border: 2px dashed #99c7c0;
    border-radius: 8px;
    background: var(--soft);
    cursor: pointer;
    overflow: hidden;
    transition: border-color .2s ease, background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.dropzone::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .8);
    pointer-events: none;
}

.dropzone::after {
    content: "";
    position: absolute;
    left: -12%;
    right: -12%;
    top: -2px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--brand), var(--blue), var(--accent), transparent);
    transform: translateX(-70%);
    transition: transform .7s ease;
}

.dropzone:hover {
    border-color: rgba(15, 118, 110, .72);
    box-shadow: 0 22px 55px rgba(15, 118, 110, .12);
    transform: translateY(-2px);
}

.dropzone:hover::after,
.dropzone.drag-active::after {
    transform: translateX(70%);
}

.primary-dropzone {
    min-height: 320px;
    border-width: 3px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #ffffff 0%, #eaf4f0 100%);
}

.upload-icon {
    position: relative;
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 18px 36px rgba(15, 118, 110, .22);
    animation: float-soft 3.4s ease-in-out infinite;
}

.select-file-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    min-width: 220px;
    padding: .9rem 1.4rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .24);
    font-size: 1.15rem;
    font-weight: 900;
    transition: transform .2s ease, box-shadow .2s ease;
}

.dropzone:hover .select-file-button {
    transform: translateY(-1px);
    box-shadow: 0 20px 42px rgba(15, 118, 110, .28);
}

.source-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .55rem;
    margin-top: .35rem;
}

.source-row span {
    padding: .45rem .65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
    font-weight: 800;
    font-size: .85rem;
}

.dropzone input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.dropzone.drag-active {
    border-color: var(--brand);
    background: #dff3ed;
    transform: translateY(-2px);
}

.drop-title {
    font-size: 1.2rem;
    font-weight: 900;
}

.drop-help {
    max-width: 560px;
    color: var(--muted);
}

.upload-preview {
    display: grid;
    gap: 1rem;
}

.preview-empty {
    display: grid;
    gap: .25rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--muted);
}

.preview-empty strong {
    color: var(--ink);
}

.preview-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: .8rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.preview-toolbar span {
    color: var(--muted);
    font-size: .92rem;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.preview-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(16, 32, 29, .08);
    cursor: grab;
}

.preview-card.dragging {
    opacity: .55;
    outline: 2px solid var(--brand);
}

.preview-body {
    display: grid;
    place-items: center;
    height: 260px;
    background: #edf5f2;
    border-bottom: 1px solid var(--line);
}

.preview-body img,
.preview-body object {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
}

.preview-body pre {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 1rem;
    overflow: auto;
    white-space: pre-wrap;
    color: var(--ink);
    background: #fbfdfc;
    font-size: .86rem;
}

.file-icon-preview {
    display: grid;
    place-items: center;
    width: 92px;
    height: 118px;
    border-radius: 8px;
    background: linear-gradient(160deg, #fff, #dff3ed);
    border: 1px solid var(--line);
    color: var(--brand-dark);
    font-weight: 900;
}

.preview-meta {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    padding: .85rem;
}

.preview-meta strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-meta small {
    display: block;
    color: var(--muted);
}

.preview-order {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

.preview-meta button {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff7ed;
    color: #9a3412;
    padding: .45rem .65rem;
    cursor: pointer;
    font-weight: 800;
}

.pdf-page-workspace {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.merge-workspace,
.split-workspace,
.extract-workspace,
.organize-workspace,
.browser-pdf-workspace,
.conversion-workspace,
.image-workspace,
.text-workspace {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.page-workspace-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 1rem;
    align-items: end;
}

.page-workspace-head h2 {
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.page-workspace-head p:not(.eyebrow) {
    color: var(--muted);
}

.page-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
}

.page-metrics div {
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.page-metrics b {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
}

.page-metrics span {
    color: var(--muted);
    font-size: .8rem;
    font-weight: 800;
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.page-download {
    display: none;
}

.page-download.ready {
    display: inline-flex;
}

.pdf-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(154px, 1fr));
    gap: 1rem;
    min-height: 280px;
}

.pdf-page-empty {
    display: grid;
    min-height: 240px;
    place-items: center;
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
    color: var(--muted);
    text-align: center;
}

.pdf-page-grid:not(:empty) + .pdf-page-empty {
    display: none;
}

.scan-workspace {
    display: grid;
    gap: 1rem;
}

body[data-tool-id="scan-to-pdf"] .primary-dropzone,
body[data-tool-id="scan-to-pdf"] .tool-upload-intro,
body[data-tool-id="scan-to-pdf"] .upload-preview {
    display: none;
}

body[data-tool-id="scan-to-pdf"]:not(.has-files) .form-actions {
    display: none;
}

.scan-connect-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, 290px);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdfc;
}

.scan-connect-panel h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.scan-connect-panel p:not(.eyebrow) {
    color: var(--muted);
}

.scan-status-row {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    align-items: center;
    margin-top: 1rem;
    color: var(--muted);
    font-weight: 850;
}

.device-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: .35rem .65rem;
    border-radius: 999px;
    font-weight: 900;
}

.device-pill.connected {
    color: #047857;
    background: #ecfdf3;
}

.device-pill.disconnected {
    color: #b42318;
    background: #fff1f0;
}

.qr-panel {
    display: grid;
    gap: .75rem;
    justify-items: center;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.qr-code {
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.qr-code img,
.qr-code canvas {
    width: 188px;
    height: 188px;
}

.qr-panel a {
    overflow-wrap: anywhere;
    color: var(--brand-dark);
    font-weight: 850;
    text-align: center;
}

.scan-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.scan-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 1rem;
    min-height: 260px;
}

.scan-page-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 32, 29, .09);
}

.scan-page-card img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #f8fbfa;
    border-bottom: 1px solid var(--line);
}

.scan-page-card footer {
    display: grid;
    gap: .55rem;
    padding: .75rem;
}

.scan-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.scan-page-actions button,
.scan-page-actions a {
    min-height: 32px;
    padding: .35rem .55rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: .78rem;
    font-weight: 900;
    cursor: pointer;
    text-decoration: none;
}

.scan-page-actions .delete {
    color: #b42318;
    background: #fff1f0;
}

.scan-preview-grid:not(:empty) + .pdf-page-empty {
    display: none;
}

.pdf-page-card {
    position: relative;
    overflow: hidden;
    padding: .65rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 32, 29, .09);
    cursor: pointer;
    user-select: none;
}

.pdf-page-card canvas {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #e4e7ec;
    border-radius: 5px;
    background: #fff;
}

.pdf-page-card footer {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
    min-height: 34px;
    padding-top: .6rem;
    font-weight: 850;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #ecfdf3;
    color: #047857;
    font-size: .78rem;
    font-weight: 900;
}

.pdf-page-card.selected {
    border-color: #ef7f73;
    background: #fff8f7;
}

.pdf-page-card.selected canvas {
    opacity: .48;
}

.pdf-page-card.selected::after {
    content: "Remove";
    position: absolute;
    inset: .7rem .7rem auto auto;
    padding: .35rem .55rem;
    border-radius: 999px;
    color: #fff;
    background: #b42318;
    font-size: .75rem;
    font-weight: 900;
}

.pdf-page-card.selected .page-badge {
    color: #b42318;
    background: #fff1f0;
}

.split-page-card {
    cursor: default;
}

.organize-page-card {
    cursor: grab;
}

.organize-page-card.dragging {
    opacity: .55;
    outline: 2px solid var(--brand);
}

.page-move-buttons {
    display: inline-flex;
    gap: .3rem;
}

.page-move-buttons button {
    min-height: 28px;
    padding: .25rem .45rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-size: .76rem;
    font-weight: 900;
    cursor: pointer;
}

.page-move-buttons button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.setting-cards {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
    margin: 0;
    padding: 0;
    border: 0;
}

.setting-cards legend {
    grid-column: 1 / -1;
    margin-bottom: .2rem;
    font-weight: 900;
}

.setting-cards label {
    display: grid;
    gap: .35rem;
    min-height: 132px;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.setting-cards label:has(input:checked) {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 2px rgba(15, 118, 110, .12);
    background: #eefaf6;
}

.setting-cards input {
    width: 18px;
    height: 18px;
}

.setting-cards span {
    color: var(--muted);
}

#status {
    color: var(--muted);
    font-weight: 750;
}

#status.success {
    color: var(--brand-dark);
}

#status.error {
    color: #b91c1c;
}

.split {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.muted {
    background: var(--soft);
    width: 100%;
    max-width: none;
    padding-inline: max(16px, calc((100% - 1180px) / 2));
}

.steps {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .3rem .8rem;
    align-items: start;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 900;
}

.steps span {
    grid-column: 2;
}

.feature-list {
    display: grid;
    gap: .75rem;
}

.feature-list p {
    margin: 0;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.faq details {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    margin-bottom: .8rem;
    padding: 1rem;
}

.faq summary {
    cursor: pointer;
    font-weight: 900;
}

.faq p {
    color: var(--muted);
}

.footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.seo-footer {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 1.45fr) repeat(2, minmax(180px, .55fr));
    gap: 1.25rem;
    align-items: start;
}

.footer-brand {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
}

.footer-logo {
    width: 118px;
    height: 46px;
    object-fit: contain;
    object-position: left center;
    flex: 0 0 auto;
}

.footer strong,
.seo-footer nav strong {
    color: var(--ink);
    font-weight: 950;
}

.footer nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-weight: 800;
}

.seo-footer nav {
    display: grid;
    gap: .55rem;
}

.seo-footer a {
    color: var(--muted);
}

.seo-footer a:hover {
    color: var(--brand-dark);
}

.policy-page {
    width: min(980px, calc(100% - 32px));
    margin: 0 auto;
}

.policy-page section {
    margin-top: 1rem;
    padding: 1.1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: var(--soft-shadow);
}

.policy-page h2 {
    margin-bottom: .5rem;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.policy-page p {
    color: var(--muted);
}

.policy-updated {
    font-weight: 850;
}

.tool-page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(2.4rem, 6vw, 5rem) 0 clamp(1rem, 3vw, 2rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(1.25rem, 4vw, 3rem);
    align-items: stretch;
    animation: page-rise .55s ease both;
}

.compact-tool-hero {
    min-height: auto;
    padding-bottom: 1rem;
}

.empty-tool-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding-top: clamp(2rem, 5vw, 4rem);
    padding-bottom: 1rem;
}

.empty-tool-hero .hero-text {
    margin-inline: auto;
}

.tool-icon-shell {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 78px;
    height: 78px;
    padding: 0 .75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--blue) 55%, var(--accent));
    color: #fff;
    box-shadow: 0 20px 46px rgba(15, 118, 110, .22);
    font-weight: 950;
    letter-spacing: .04em;
    overflow: hidden;
    animation: float-soft 4s ease-in-out infinite;
}

.tool-icon-shell::after {
    content: "";
    position: absolute;
    inset: auto 14px 12px 14px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
}

.tool-flow-page {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .06) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, #fbfdfd 0%, #f6faf8 46%, #edf5f2 46%, #edf5f2 100%);
}

.tool-upload-intro {
    text-align: center;
}

.tool-upload-intro h2 {
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.visual-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: .45rem;
    padding: .6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95);
}

.visual-steps span {
    display: grid;
    place-items: center;
    min-height: 36px;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 900;
    font-size: .86rem;
    text-align: center;
}

.visual-steps span.active {
    background: linear-gradient(135deg, var(--brand), var(--blue));
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 118, 110, .18);
}

.tool-hero-copy {
    align-self: center;
}

.tool-page-hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 5rem);
}

.tool-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    margin-top: 1.4rem;
}

.tool-meta-row span {
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .82);
    color: var(--muted);
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.tool-status-panel,
.side-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9));
    border: 1px solid rgba(219, 230, 226, .9);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: var(--soft-shadow);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tool-status-panel {
    position: relative;
    overflow: hidden;
}

.tool-status-panel::before,
.side-panel::before {
    content: "";
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: .9rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent));
}

.tool-status-panel:hover,
.side-panel:hover {
    border-color: rgba(15, 118, 110, .25);
    box-shadow: 0 24px 58px rgba(15, 23, 42, .1);
    transform: translateY(-2px);
}

.tool-status-panel h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.1;
}

.tool-status-panel p:not(.card-kicker) {
    color: var(--muted);
}

.tool-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1rem;
    align-items: start;
}

body:not(.has-files) .tool-layout {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
}

body:not(.has-files) .visual-steps,
body:not(.has-files) .tool-upload-intro,
body:not(.has-files) .upload-preview,
body:not(.has-files) .merge-workspace,
body:not(.has-files) .split-workspace,
body:not(.has-files) .extract-workspace,
body:not(.has-files) .organize-workspace,
body:not(.has-files) .browser-pdf-workspace,
body:not(.has-files) .conversion-workspace,
body:not(.has-files) .image-workspace,
body:not(.has-files) .text-workspace,
body:not(.has-files) .pdf-page-workspace,
body:not(.has-files) .tool-processor > .settings-grid,
body:not(.has-files) .tool-processor > .section-heading,
body:not(.has-files) .tool-processor > .form-actions,
body:not(.has-files) .tool-side,
body:not(.has-files) .related-tools-section,
body:not(.has-files) .deferred-panel {
    display: none;
}

body:not(.has-files) .tool-processor {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-top: 0;
}

body:not(.has-files) .primary-dropzone {
    min-height: 360px;
    box-shadow: 0 22px 70px rgba(16, 32, 29, .12);
}

body.has-files .empty-tool-hero {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    justify-items: stretch;
    text-align: left;
}

.tool-processor {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .94));
    border: 1px solid rgba(219, 230, 226, .92);
    border-radius: 8px;
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 22px 58px rgba(15, 23, 42, .09);
    animation: page-rise .62s .05s ease both;
}

.tool-side {
    display: grid;
    gap: 1rem;
    position: sticky;
    top: 90px;
}

.action-panel {
    display: grid;
    gap: .85rem;
}

.action-panel h2 {
    font-size: 1.45rem;
}

.action-panel p:not(.card-kicker) {
    color: var(--muted);
}

.action-panel .button {
    width: 100%;
}

#side-status {
    display: block;
    min-height: 24px;
    color: var(--muted);
    font-weight: 800;
}

#side-status.success {
    color: var(--brand-dark);
}

#side-status.error {
    color: #b91c1c;
}

body.is-processing .action-panel {
    outline: 2px solid rgba(15, 118, 110, .22);
}

body.is-processing .action-panel::after {
    content: "";
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand), var(--accent), var(--brand));
    background-size: 200% 100%;
    animation: progress-sweep 1.1s linear infinite;
}

@keyframes progress-sweep {
    from { background-position: 0% 0; }
    to { background-position: 200% 0; }
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-soft {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.launcher-search {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 680px;
    margin-top: 1.4rem;
    padding: .55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(16, 32, 29, .08);
}

.launcher-search input {
    width: 100%;
    min-height: 46px;
    border: 0;
    outline: 0;
    color: var(--ink);
    padding: .5rem .65rem;
}

.launcher-search span {
    white-space: nowrap;
    padding: .55rem .7rem;
    border-radius: 8px;
    background: var(--soft);
    color: var(--brand-dark);
    font-weight: 900;
}

.mini-steps {
    display: grid;
    gap: .65rem;
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

.mini-steps li::marker {
    color: var(--brand);
    font-weight: 900;
}

.tool-details {
    display: grid;
    gap: .75rem;
    margin: 0;
}

.tool-details div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--line);
}

.tool-details div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.tool-details dt {
    color: var(--muted);
    font-weight: 800;
}

.tool-details dd {
    margin: 0;
    font-weight: 850;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-settings {
    margin: 1rem 0;
}

.admin-panel-block {
    display: grid;
    gap: 1rem;
    padding: clamp(1rem, 3vw, 1.35rem);
    margin-top: 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--soft-shadow);
}

.admin-panel-block h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.admin-panel-block p:not(.eyebrow) {
    color: var(--muted);
}

.admin-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    min-height: 58px;
    padding: .85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
    cursor: pointer;
}

.switch-row input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-row span {
    position: relative;
    flex: 0 0 auto;
    width: 50px;
    height: 28px;
    border-radius: 999px;
    background: #cbd5d1;
    transition: background .2s ease;
}

.switch-row span::after {
    content: "";
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, .2);
    transition: transform .2s ease;
}

.switch-row input:checked + span {
    background: linear-gradient(135deg, var(--brand), var(--blue));
}

.switch-row input:checked + span::after {
    transform: translateX(22px);
}

.admin-alert {
    padding: .85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(220, 38, 38, .25);
    border-radius: 8px;
    background: rgba(220, 38, 38, .08);
    color: #b91c1c;
    font-weight: 850;
}

.admin-alert.success {
    border-color: rgba(15, 118, 110, .28);
    background: rgba(15, 118, 110, .1);
    color: var(--brand-dark);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(360px, 520px);
    gap: clamp(1rem, 4vw, 3rem);
    align-items: stretch;
    min-height: calc(100svh - 190px);
}

.auth-hero-panel,
.auth-card-premium,
.admin-hero,
.admin-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(219, 230, 226, .9);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .09) 0 1px, transparent 1px 30px),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .9));
    box-shadow: 0 26px 70px rgba(15, 23, 42, .1);
}

.auth-hero-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.25rem, 4vw, 2.4rem);
}

.auth-hero-panel::before,
.auth-card-premium::before,
.admin-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), var(--blue), var(--accent));
}

.auth-hero-panel h1,
.admin-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1;
}

.auth-hero-panel p:not(.eyebrow),
.auth-card-head p,
.admin-hero p,
.admin-hero-card small {
    color: var(--muted);
}

.auth-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 2rem;
}

.auth-proof-grid span {
    min-height: 74px;
    display: grid;
    place-items: center;
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    color: var(--brand-dark);
    font-weight: 900;
    text-align: center;
}

.auth-card-premium {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: clamp(1.15rem, 4vw, 2rem);
}

.auth-card-head {
    display: grid;
    gap: .35rem;
}

.auth-card-head h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.auth-badge {
    width: fit-content;
    padding: .45rem .65rem;
    border: 1px solid rgba(15, 118, 110, .2);
    border-radius: 8px;
    background: rgba(15, 118, 110, .09);
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.auth-form {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.auth-fields {
    grid-template-columns: 1fr;
}

.auth-fields .field {
    padding: .75rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .72);
}

.auth-fields .field label {
    color: var(--muted);
    font-size: .82rem;
}

.auth-fields input {
    border-color: transparent;
    background: transparent;
    padding-inline: 0;
    font-weight: 750;
}

.auth-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .75rem;
    color: var(--muted);
    font-weight: 750;
}

.admin-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 1rem;
    align-items: stretch;
    padding: clamp(1.2rem, 4vw, 2rem);
    margin-bottom: 1rem;
}

.admin-hero-card {
    display: grid;
    align-content: center;
    gap: .45rem;
    padding: 1rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .12), rgba(37, 99, 235, .08)),
        #fff;
}

.admin-hero-card span,
.admin-hero-card small {
    font-weight: 850;
}

.admin-hero-card strong {
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1;
}

.admin-stat-card {
    min-height: 190px;
    justify-content: start;
}

.admin-stat-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    margin-bottom: .8rem;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    color: #fff;
    font-size: .8rem;
    font-weight: 950;
    box-shadow: 0 16px 34px rgba(15, 118, 110, .2);
}

.admin-stat-card h3 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1;
}

.traffic-pages-card {
    position: relative;
    overflow: hidden;
    gap: 1.15rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, .08), rgba(37, 99, 235, .08)),
        rgba(255, 255, 255, .94);
}

.traffic-pages-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, var(--brand), var(--blue));
}

.traffic-page-list {
    display: grid;
    gap: .72rem;
    margin: 0;
}

.traffic-page-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    min-height: 58px;
    padding: .78rem .9rem .78rem 1rem;
    border: 1px solid rgba(207, 220, 216, .86);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 12px 26px rgba(15, 23, 42, .06);
}

.traffic-page-row dt {
    min-width: 0;
    color: var(--ink);
    font-weight: 850;
}

.traffic-page-row dt span {
    display: block;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.traffic-page-row dd {
    min-width: 54px;
    margin: 0;
    padding: .42rem .7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand), var(--blue));
    color: #fff;
    font-size: .9rem;
    font-weight: 950;
    text-align: center;
    box-shadow: 0 12px 22px rgba(15, 118, 110, .18);
}

.traffic-page-row.is-empty dt {
    color: var(--muted);
}

.monetag-slot {
    width: min(1180px, calc(100% - 32px));
    min-height: 90px;
    display: grid;
    place-items: center;
    gap: .35rem;
    margin: 1.5rem auto;
    padding: 1rem;
    border: 1px dashed var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .74);
    color: var(--muted);
    text-align: center;
}

.monetag-slot span {
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

:root[data-theme="dark"] .site-header {
    background: rgba(8, 18, 17, .78);
    border-bottom-color: rgba(36, 65, 60, .88);
    box-shadow: 0 14px 38px rgba(0, 0, 0, .32);
}

:root[data-theme="dark"] .brand {
    color: var(--ink);
}

:root[data-theme="dark"] .brand-copy small {
    color: var(--brand-dark);
}

:root[data-theme="dark"] .nav-links,
:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .nav-toggle {
    background: rgba(15, 31, 29, .82);
    border-color: rgba(58, 91, 84, .86);
    color: var(--ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}

:root[data-theme="dark"] .nav-toggle span {
    background: var(--ink);
}

:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .nav-links a.active {
    background: rgba(45, 212, 191, .12);
    color: var(--brand-dark);
}

:root[data-theme="dark"] .nav-icon {
    background: linear-gradient(135deg, rgba(45, 212, 191, .14), rgba(96, 165, 250, .12));
    border-color: rgba(94, 234, 212, .18);
}

:root[data-theme="dark"] .nav-icon::before,
:root[data-theme="dark"] .nav-icon::after {
    background: var(--brand-dark);
}

:root[data-theme="dark"] .nav-icon[data-icon="pricing"]::before,
:root[data-theme="dark"] .nav-icon[data-icon="privacy"]::after {
    background: transparent;
}

:root[data-theme="dark"] .nav-icon[data-icon="pricing"]::before,
:root[data-theme="dark"] .nav-icon[data-icon="pricing"]::after {
    border-color: var(--accent);
    background: var(--accent);
}

:root[data-theme="dark"] .nav-icon[data-icon="pricing"]::before {
    background: transparent;
}

:root[data-theme="dark"] .nav-icon[data-icon="faq"]::before {
    background: transparent;
    color: var(--brand-dark);
}

:root[data-theme="dark"] .hero-panel,
:root[data-theme="dark"] .workspace,
:root[data-theme="dark"] .processor,
:root[data-theme="dark"] .tool-processor,
:root[data-theme="dark"] .tool-card,
:root[data-theme="dark"] .pricing-hero > div,
:root[data-theme="dark"] .pricing-status-card,
:root[data-theme="dark"] .pricing-card,
:root[data-theme="dark"] .pricing-note,
:root[data-theme="dark"] .tool-status-panel,
:root[data-theme="dark"] .side-panel,
:root[data-theme="dark"] .preview-card,
:root[data-theme="dark"] .preview-empty,
:root[data-theme="dark"] .preview-toolbar,
:root[data-theme="dark"] .visual-steps,
:root[data-theme="dark"] .launcher-search,
:root[data-theme="dark"] .trust-strip span,
:root[data-theme="dark"] .filter,
:root[data-theme="dark"] .source-row span,
:root[data-theme="dark"] .workflow-preview div,
:root[data-theme="dark"] .score-card,
:root[data-theme="dark"] .page-metrics div,
:root[data-theme="dark"] .page-workspace-head,
:root[data-theme="dark"] .scan-connect-panel,
:root[data-theme="dark"] .qr-panel {
    background: linear-gradient(180deg, rgba(15, 31, 29, .98), rgba(12, 25, 23, .94));
    border-color: rgba(58, 91, 84, .86);
    color: var(--ink);
    box-shadow: var(--soft-shadow);
}

:root[data-theme="dark"] .tool-flow-page {
    background:
        linear-gradient(135deg, rgba(96, 165, 250, .06) 0 1px, transparent 1px 34px),
        linear-gradient(180deg, #07100f 0%, #081211 46%, #0e201d 46%, #0e201d 100%);
}

:root[data-theme="dark"] .primary-dropzone,
:root[data-theme="dark"] .dropzone {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .08) 0 1px, transparent 1px 28px),
        linear-gradient(180deg, #102220 0%, #132b27 100%);
    border-color: rgba(94, 234, 212, .38);
}

:root[data-theme="dark"] .dropzone.drag-active {
    background: #173b35;
    border-color: var(--brand);
}

:root[data-theme="dark"] .button.secondary,
:root[data-theme="dark"] select,
:root[data-theme="dark"] input[type="password"],
:root[data-theme="dark"] input[type="email"],
:root[data-theme="dark"] input[type="number"],
:root[data-theme="dark"] input[type="text"],
:root[data-theme="dark"] textarea,
:root[data-theme="dark"] .launcher-search input {
    background: #0b1816;
    color: var(--ink);
    border-color: rgba(58, 91, 84, .9);
}

:root[data-theme="dark"] .button.primary {
    color: #041211;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    box-shadow: 0 14px 30px rgba(45, 212, 191, .18);
}

:root[data-theme="dark"] .preview-body,
:root[data-theme="dark"] .preview-body pre,
:root[data-theme="dark"] .file-icon-preview,
:root[data-theme="dark"] .pdf-page-thumb,
:root[data-theme="dark"] .scan-preview-page {
    background: #0b1816;
    color: var(--ink);
    border-color: rgba(58, 91, 84, .86);
}

:root[data-theme="dark"] .filter.active,
:root[data-theme="dark"] .visual-steps span.active {
    color: #041211;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    border-color: transparent;
}

:root[data-theme="dark"] .text-button,
:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] .card-kicker {
    color: var(--brand-dark);
}

:root[data-theme="dark"] .tool-card p,
:root[data-theme="dark"] .pricing-card p:not(.card-kicker),
:root[data-theme="dark"] .pricing-list li,
:root[data-theme="dark"] .pricing-note p,
:root[data-theme="dark"] .seo-footer a,
:root[data-theme="dark"] .policy-page p,
:root[data-theme="dark"] .feature-list,
:root[data-theme="dark"] .steps span,
:root[data-theme="dark"] .footer p,
:root[data-theme="dark"] .hero-text,
:root[data-theme="dark"] .drop-help,
:root[data-theme="dark"] .preview-toolbar span,
:root[data-theme="dark"] .action-panel p:not(.card-kicker),
:root[data-theme="dark"] .tool-status-panel p:not(.card-kicker),
:root[data-theme="dark"] .tool-meta-row span,
:root[data-theme="dark"] .tool-details dt,
:root[data-theme="dark"] #side-status {
    color: var(--muted);
}

:root[data-theme="dark"] .tool-meta-row span {
    background: rgba(15, 31, 29, .78);
    border-color: rgba(58, 91, 84, .86);
}

:root[data-theme="dark"] .policy-page section {
    background: linear-gradient(180deg, rgba(15, 31, 29, .98), rgba(12, 25, 23, .94));
    border-color: rgba(58, 91, 84, .86);
}

:root[data-theme="dark"] .tool-benefit {
    background: rgba(45, 212, 191, .1);
    border-color: rgba(45, 212, 191, .24);
    color: var(--brand-dark);
}

:root[data-theme="dark"] .tool-status-pill {
    background: rgba(8, 18, 17, .62);
    border-color: rgba(58, 91, 84, .86);
    color: var(--muted);
}

:root[data-theme="dark"] .score-card,
:root[data-theme="dark"] .danger,
:root[data-theme="dark"] .replace-banner {
    background: rgba(245, 158, 11, .12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, .28);
}

:root[data-theme="dark"] .admin-panel-block,
:root[data-theme="dark"] .switch-row,
:root[data-theme="dark"] .monetag-slot {
    background: linear-gradient(180deg, rgba(15, 31, 29, .98), rgba(12, 25, 23, .94));
    border-color: rgba(58, 91, 84, .86);
}

:root[data-theme="dark"] .traffic-pages-card {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .08), rgba(96, 165, 250, .08)),
        linear-gradient(180deg, rgba(15, 31, 29, .98), rgba(12, 25, 23, .94));
}

:root[data-theme="dark"] .traffic-page-row {
    background: rgba(8, 18, 17, .72);
    border-color: rgba(58, 91, 84, .78);
    box-shadow: 0 14px 28px rgba(0, 0, 0, .16);
}

:root[data-theme="dark"] .switch-row span {
    background: #334b46;
}

:root[data-theme="dark"] .admin-alert {
    background: rgba(248, 113, 113, .12);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, .28);
}

:root[data-theme="dark"] .admin-alert.success {
    background: rgba(45, 212, 191, .12);
    color: var(--brand-dark);
    border-color: rgba(45, 212, 191, .25);
}

:root[data-theme="dark"] .auth-hero-panel,
:root[data-theme="dark"] .auth-card-premium,
:root[data-theme="dark"] .auth-proof-grid span,
:root[data-theme="dark"] .auth-fields .field,
:root[data-theme="dark"] .admin-hero,
:root[data-theme="dark"] .admin-hero-card {
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .08) 0 1px, transparent 1px 30px),
        linear-gradient(180deg, rgba(15, 31, 29, .98), rgba(12, 25, 23, .94));
    border-color: rgba(58, 91, 84, .86);
    color: var(--ink);
}

:root[data-theme="dark"] .auth-fields input {
    background: transparent;
}

:root[data-theme="dark"] ::selection {
    background: rgba(45, 212, 191, .32);
    color: var(--ink);
}

@media (max-width: 900px) {
    .hero,
    .split,
    .auth-shell,
    .admin-hero,
    .pricing-hero,
    .tool-page-hero,
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .trust-strip,
    .tool-grid,
    .pricing-grid,
    .seo-footer,
    .settings-grid,
    .admin-stats,
    .auth-proof-grid,
    .preview-grid,
    .setting-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-side {
        position: static;
    }
}

@media (max-width: 820px) {
    .brand {
        gap: .5rem;
    }

    .brand-logo {
        width: 104px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: .94rem;
    }

    .brand-copy small {
        max-width: 120px;
        font-size: .58rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-links {
        position: absolute;
        inset: 82px 16px auto 16px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        background: rgba(255, 255, 255, .96);
        border: 1px solid rgba(219, 230, 226, .92);
        border-radius: 8px;
        box-shadow: var(--shadow);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px) scale(.98);
        transition: opacity .2s ease, transform .2s ease;
    }

    .nav-links a {
        min-height: 48px;
        justify-content: flex-start;
    }

    .nav-links.open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    body.nav-open::before {
        content: "";
        position: fixed;
        inset: 74px 0 0;
        z-index: 9;
        background: rgba(15, 23, 42, .18);
        backdrop-filter: blur(2px);
    }

    .hero-actions,
    .form-actions,
    .footer {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .trust-strip,
    .tool-grid,
    .pricing-grid,
    .seo-footer,
    .settings-grid,
    .admin-stats,
    .admin-switch-grid,
    .auth-proof-grid,
    .auth-actions,
    .preview-grid,
    .setting-cards,
    .visual-steps {
        grid-template-columns: 1fr;
    }

    .preview-toolbar,
    .preview-meta {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .preview-body {
        height: 220px;
    }

    .card-foot,
    .workflow-preview div,
    .score-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

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