:root {
    --bg: #fcfcfc;
    --surface: #ffffff;
    --surface-soft: #f3f6f8;
    --text: #1f2937;
    --muted: #64748b;
    --line: #e5e7eb;
    --green: #10b981;
    --green-strong: #0e9f6e;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --red: #ef4444;
    --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

body.sinonimaizer-dark,
.sinonimaizer-dark {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-soft: #0f172a;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: #243044;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: background 0.25s ease, color 0.25s ease;
}

button,
textarea,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.app-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header__inner {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--green), var(--purple));
    box-shadow: 0 10px 24px rgba(16, 185, 129, 0.22);
}

.brand__name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand__badge {
    display: inline-flex;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.09);
    color: var(--green);
    font-size: 11px;
    font-weight: 800;
}

.site-nav__menu {
    display: flex;
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.site-nav__menu a {
    text-decoration: none;
}

.site-nav__menu a:hover {
    color: var(--green);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button,
.sample-row button,
.result-actions button,
.history-panel button,
.meta-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.icon-button:hover,
.sample-row button:hover,
.result-actions button:hover,
.history-panel button:hover,
.meta-row button:hover {
    border-color: color-mix(in srgb, var(--green) 45%, var(--line));
    background: var(--surface-soft);
}

.icon-button--square {
    width: 38px;
    padding: 0;
}

.app-main {
    flex: 1;
    padding: 34px 0 54px;
}

.tool-hero {
    display: grid;
    gap: 24px;
}

.hero-copy {
    max-width: 880px;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.02;
    letter-spacing: 0;
}

.hero-copy p:last-child {
    max-width: 760px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.65;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.trust-card,
.panel,
.settings-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.trust-card {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px 12px;
    align-items: center;
    padding: 16px;
}

.trust-card span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    font-weight: 900;
}

.trust-card strong {
    font-size: 14px;
}

.trust-card small {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

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

.panel,
.settings-panel {
    padding: 22px;
}

.panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel__label {
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.panel h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.2;
}

.counter {
    flex: none;
    color: var(--muted);
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
}

textarea,
.result-box,
.diff-box {
    width: 100%;
    min-height: 360px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 15px;
    line-height: 1.7;
    outline: none;
}

textarea {
    resize: vertical;
}

textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.result-box,
.diff-box {
    overflow: auto;
    white-space: pre-wrap;
}

.result-box.is-loading {
    color: var(--muted);
    animation: pulse 1.3s ease-in-out infinite;
}

.placeholder {
    margin: 0;
    color: var(--muted);
}

.sample-row,
.result-actions,
.action-row,
.meta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.sample-row {
    margin-top: 14px;
}

.score {
    display: grid;
    grid-template-columns: auto 1fr minmax(110px, 160px);
    align-items: center;
    gap: 14px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.score__value {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.score strong,
.score span {
    display: block;
}

.score span {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.score__bar {
    height: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.score__bar span {
    display: block;
    width: 0;
    height: 100%;
    margin: 0;
    background: var(--green);
    transition: width 0.45s ease;
}

.settings-panel {
    display: grid;
    gap: 18px;
}

.mode-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mode-card {
    min-height: 112px;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 6px 10px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
}

.mode-card strong {
    font-size: 15px;
}

.mode-card small {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.mode-card__check {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border: 2px solid var(--line);
    border-radius: 50%;
    color: transparent;
    font-size: 12px;
    font-weight: 900;
}

.mode-card.is-active {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 1px var(--green);
}

.mode-card.is-active .mode-card__check {
    border-color: var(--green);
    color: var(--green);
}

.action-row {
    justify-content: space-between;
}

.meaning-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-soft);
    font-size: 14px;
    font-weight: 800;
}

.meaning-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.primary-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 32px rgba(16, 185, 129, 0.26);
}

.primary-button:hover {
    background: var(--green-strong);
}

.primary-button:disabled {
    cursor: wait;
    background: #94a3b8;
    box-shadow: none;
}

.meta-row {
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.meta-row i {
    width: 8px;
    height: 8px;
    display: inline-block;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--green);
}

.privacy {
    margin-left: auto;
}

.compare-panel,
.history-panel {
    box-shadow: none;
}

.diff-added {
    border-radius: 5px;
    background: rgba(16, 185, 129, 0.18);
    color: #047857;
    font-weight: 800;
}

.diff-removed {
    border-radius: 5px;
    background: rgba(239, 68, 68, 0.15);
    color: var(--red);
    text-decoration: line-through;
}

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

.history-card {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
    text-align: left;
}

.history-card strong {
    font-size: 12px;
    color: var(--green);
    text-transform: uppercase;
}

.history-card p {
    display: -webkit-box;
    overflow: hidden;
    min-height: 58px;
    margin: 0;
    color: var(--muted);
    font-family: "Roboto Mono", monospace;
    font-size: 12px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.file-panel {
    box-shadow: none;
}

.file-drop {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 150px;
    padding: 24px;
    border: 2px dashed color-mix(in srgb, var(--green) 45%, var(--line));
    border-radius: 18px;
    background: color-mix(in srgb, var(--green) 8%, var(--surface));
    text-align: center;
}

.file-drop.is-over {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.14);
}

.file-drop strong {
    font-size: 18px;
}

.file-drop span {
    color: var(--muted);
    font-size: 13px;
}

.file-controls,
.file-summary,
.file-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.file-controls label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.file-controls select {
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--text);
}

.file-summary div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface-soft);
}

.file-summary span,
.file-summary strong {
    display: block;
}

.file-summary span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.file-summary strong {
    margin-top: 4px;
}

.file-actions {
    display: flex;
    align-items: center;
}

.file-progress {
    height: 9px;
    margin-top: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-soft);
}

.file-progress i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--green);
    transition: width 0.3s ease;
}

.file-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.file-result {
    margin-top: 12px;
    white-space: pre-wrap;
    line-height: 1.7;
}

.file-result .primary-button {
    width: auto;
    margin-top: 12px;
    text-decoration: none;
}

.seo-section {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
}

.seo-section--muted {
    background: var(--surface-soft);
}

.seo-section__intro {
    max-width: 830px;
}

.seo-section h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
}

.seo-section p {
    color: var(--muted);
    line-height: 1.7;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.seo-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.seo-grid h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.seo-grid p {
    margin: 0;
    font-size: 14px;
}

.steps-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps-list li {
    position: relative;
    min-height: 120px;
    padding: 18px 18px 18px 64px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    counter-increment: step;
}

.steps-list li::before {
    content: counter(step);
    position: absolute;
    top: 18px;
    left: 18px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.steps-list strong,
.steps-list span {
    display: block;
}

.steps-list span {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.keyword-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.keyword-grid span {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.keyword-grid a {
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.keyword-grid a:hover {
    border-color: color-mix(in srgb, var(--green) 45%, var(--line));
    color: var(--green);
}

.landing-page {
    display: grid;
    gap: 24px;
}

.landing-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.landing-breadcrumbs a {
    color: var(--green);
    text-decoration: none;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
    gap: 20px;
    align-items: stretch;
}

.landing-hero__copy,
.landing-hero__cta {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.landing-hero__copy h1 {
    max-width: 860px;
    margin: 0;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
    letter-spacing: 0;
}

.landing-hero__copy p,
.landing-hero__cta p {
    color: var(--muted);
    line-height: 1.7;
}

.landing-hero__copy p {
    max-width: 820px;
    margin: 18px 0 0;
    font-size: 18px;
}

.landing-hero__cta {
    display: grid;
    align-content: center;
    gap: 14px;
}

.landing-hero__cta strong {
    font-size: 22px;
}

.landing-hero__cta p {
    margin: 0;
}

.landing-hero__cta .primary-button {
    width: 100%;
    text-decoration: none;
}

.landing-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.landing-content-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-soft);
}

.landing-content-grid h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.landing-content-grid p {
    margin: 0;
}

.landing-links__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.landing-links__grid a {
    min-height: 54px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
}

.landing-links__grid a:hover {
    border-color: color-mix(in srgb, var(--green) 45%, var(--line));
    color: var(--green);
}

.faq-section details {
    border-bottom: 1px solid var(--line);
}

.faq-section details:last-child {
    border-bottom: 0;
}

.faq-section summary {
    padding: 18px 0;
    font-weight: 900;
    cursor: pointer;
}

.faq-section details p {
    margin: 0 0 18px;
}

.content-section,
.content-page {
    margin-top: 36px;
}

.content-entry,
.content-page {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.content-entry + .content-entry {
    margin-top: 16px;
}

.content-entry__title,
.content-page h1 {
    margin-top: 0;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.55);
}

.modal__dialog {
    position: relative;
    width: min(460px, 100%);
    display: grid;
    gap: 14px;
    padding: 24px;
    border-radius: 22px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}

.modal__dialog h2,
.modal__dialog p {
    margin: 0;
}

.modal__dialog p {
    color: var(--muted);
    line-height: 1.5;
}

.modal__dialog input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 22px;
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 60;
    max-width: min(380px, calc(100% - 44px));
    padding: 14px 16px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--surface-soft);
}

.site-footer__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--green);
    font-weight: 800;
}

[hidden] {
    display: none !important;
}

@keyframes pulse {
    0%,
    100% {
        opacity: 0.56;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 980px) {
    .site-nav {
        display: none;
    }

    .trust-row,
    .workspace,
    .mode-group,
    .history-grid,
    .file-controls,
    .file-summary,
    .seo-grid,
    .steps-list,
    .landing-hero,
    .landing-content-grid,
    .landing-links__grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1 {
        font-size: 42px;
    }
}

@media (max-width: 680px) {
    .site-header__inner,
    .site-footer__inner,
    .app-main {
        width: min(100% - 20px, 1240px);
    }

    .site-header__inner {
        min-height: auto;
        padding: 12px 0;
        flex-wrap: wrap;
    }

    .site-header__actions {
        width: 100%;
        justify-content: space-between;
    }

    .hide-mobile {
        display: none;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy p:last-child {
        font-size: 16px;
    }

    .panel,
    .settings-panel,
    .seo-section,
    .landing-hero__copy,
    .landing-hero__cta {
        padding: 16px;
        border-radius: 18px;
    }

    .landing-hero__copy h1 {
        font-size: 34px;
    }

    .landing-hero__copy p {
        font-size: 16px;
    }

    .seo-section h2 {
        font-size: 23px;
    }

    .panel__head,
    .action-row,
    .meta-row,
    .site-footer__inner {
        align-items: stretch;
        flex-direction: column;
    }

    textarea,
    .result-box,
    .diff-box {
        min-height: 270px;
    }

    .score {
        grid-template-columns: auto 1fr;
    }

    .score__bar {
        grid-column: 1 / -1;
    }

    .primary-button {
        width: 100%;
    }
}

/* Footer final cascade layer: keeps footer readable after all legacy overrides. */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    padding: 54px 20px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.14), transparent 30%),
        #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer .site-footer__inner {
    display: block;
    width: min(1180px, 100%);
    min-height: 0;
    margin: 0 auto;
    color: inherit;
    font-size: inherit;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
    align-items: start;
}

.site-footer .footer-logo,
.site-footer .footer-logo:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
}

.site-footer .footer-logo__mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green), var(--purple));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.site-footer .footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.site-footer .footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.site-footer .footer-badges span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.site-footer .footer-col h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer .footer-col a,
.site-footer .footer-col span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}

.site-footer .footer-col a + a,
.site-footer .footer-col a + span,
.site-footer .footer-col span + a {
    margin-top: 9px;
}

.site-footer .footer-col a:hover {
    color: #ffffff;
}

.site-footer .footer-service span {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer .site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.55;
}

.site-footer .site-footer__bottom span:last-child {
    max-width: 620px;
    text-align: right;
}

@media (max-width: 980px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-footer {
        margin-top: 34px;
        padding: 38px 16px 24px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .site-footer__bottom {
        flex-direction: column;
    }

    .site-footer .site-footer__bottom span:last-child {
        text-align: left;
    }
}

/* Footer and competitor-gap content blocks */
.audience-grid,
.capability-grid,
.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.audience-grid article,
.capability-grid article,
.related-tools-grid a,
.rewrite-example > div {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 18px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.audience-grid article::before,
.capability-grid article::before,
.related-tools-grid a::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--green), var(--purple), var(--amber));
}

.audience-grid strong,
.capability-grid strong,
.related-tools-grid strong,
.rewrite-example span {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 800;
}

.audience-grid p,
.capability-grid span,
.related-tools-grid span,
.rewrite-example p {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.rewrite-example {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.rewrite-example > div {
    min-height: 0;
    background: #ffffff;
}

.rewrite-example > div:last-child {
    border-color: rgba(16, 185, 129, 0.28);
    background: linear-gradient(135deg, #ecfdf5, #ffffff 70%);
}

.capability-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.related-tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.related-tools-grid a {
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.related-tools-grid a:hover {
    border-color: rgba(139, 92, 246, 0.34);
    box-shadow: 0 22px 54px rgba(99, 102, 241, 0.14);
    transform: translateY(-2px);
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    padding: 54px 20px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.14), transparent 30%),
        #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer__inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
    align-items: start;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
}

.footer-logo__mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green), var(--purple));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.footer-badges span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.footer-col h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col a,
.footer-col span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}

.footer-col a + a,
.footer-col a + span,
.footer-col span + a {
    margin-top: 9px;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-service span {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.55;
}

.site-footer__bottom span:last-child {
    max-width: 620px;
    text-align: right;
}

@media (max-width: 980px) {
    .audience-grid,
    .capability-grid,
    .related-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .audience-grid,
    .capability-grid,
    .related-tools-grid,
    .rewrite-example,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .audience-grid article,
    .capability-grid article,
    .related-tools-grid a {
        min-height: 0;
    }

    .site-footer {
        margin-top: 34px;
        padding: 38px 16px 24px;
    }

    .site-footer__bottom {
        flex-direction: column;
    }

    .site-footer__bottom span:last-child {
        text-align: left;
    }
}

/* Unified original-style blocks and forms */
.tool-hero > .seo-section,
.landing-page > .seo-section,
.content-page,
.modal__dialog {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.tool-hero > .seo-section,
.landing-page > .seo-section {
    overflow: hidden;
    padding: 0;
}

.seo-section__intro,
.seo-section > .panel__label,
.seo-section > h2,
.seo-section > p,
.seo-section > .keyword-grid,
.seo-section > .steps-list,
.seo-section > .seo-grid,
.seo-section > .landing-content-grid,
.seo-section > .landing-links__grid,
.seo-section > details {
    margin-left: 18px;
    margin-right: 18px;
}

.seo-section__intro,
.seo-section > .panel__label:first-child {
    padding-top: 18px;
}

.seo-section h2 {
    font-size: 22px;
    font-weight: 800;
}

.seo-grid,
.steps-list,
.keyword-grid,
.landing-content-grid,
.landing-links__grid {
    margin-bottom: 18px;
}

.seo-grid article,
.steps-list li,
.landing-content-grid article,
.landing-links__grid a,
.history-card,
.file-summary div {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    box-shadow: none;
}

.seo-grid article,
.landing-content-grid article {
    padding: 16px;
}

.seo-grid h3,
.landing-content-grid h3 {
    font-size: 15px;
    font-weight: 800;
}

.steps-list li {
    min-height: 108px;
    padding: 16px 16px 16px 58px;
}

.steps-list li::before {
    top: 16px;
    left: 16px;
    width: 30px;
    height: 30px;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
}

.faq-section > .panel__label,
.faq-section > h2 {
    display: block;
    margin-left: 18px;
    margin-right: 18px;
}

.faq-section details {
    padding: 0 18px;
    margin: 0;
    border-bottom-color: var(--line-soft);
}

.faq-section summary {
    padding: 16px 0;
    font-size: 14px;
}

.faq-section details p {
    color: var(--muted);
    font-size: 14px;
}

.file-controls label,
.modal__dialog label {
    display: grid;
    gap: 7px;
}

.file-controls label span,
.file-summary span {
    color: #78869a;
    font-size: 11px;
    font-weight: 800;
}

.file-controls select,
.modal__dialog input,
.content-page input,
.content-page select,
.content-page textarea {
    min-height: 46px;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-soft);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.file-controls select {
    padding: 0 13px;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #94a3b8 50%),
        linear-gradient(135deg, #94a3b8 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 20px,
        calc(100% - 13px) 20px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.file-controls select:focus,
.modal__dialog input:focus,
.content-page input:focus,
.content-page select:focus,
.content-page textarea:focus {
    border-color: var(--green);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.file-drop {
    min-height: 136px;
    border: 2px dashed rgba(16, 185, 129, 0.42);
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.95), rgba(240, 253, 250, 0.72));
}

.file-drop strong {
    font-size: 17px;
    font-weight: 800;
}

.file-drop span {
    max-width: 520px;
    font-size: 12px;
}

.file-summary div {
    min-height: 66px;
    padding: 13px 14px;
}

.file-summary strong {
    color: var(--text);
    font-size: 15px;
}

.file-actions {
    gap: 10px;
}

.file-progress {
    height: 8px;
    border-radius: 999px;
    background: #eef3f7;
}

.file-progress i {
    border-radius: inherit;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.28);
}

.file-status {
    color: #66758a;
    font-size: 12px;
    font-weight: 800;
}

.file-result {
    color: var(--text);
    font-size: 14px;
}

.history-panel .panel__head button,
.history-panel [data-clear-history],
.file-panel [data-file-reset] {
    min-height: 34px;
    border-radius: 11px;
    background: var(--surface);
}

.history-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-card {
    min-height: 74px;
    padding: 13px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.history-card:hover {
    border-color: rgba(139, 92, 246, 0.35);
    background: var(--surface);
    transform: translateY(-1px);
}

.history-card strong {
    color: var(--green);
    font-size: 11px;
}

.diff-box {
    border: 1px solid var(--line);
    background: var(--surface-soft);
    font-family: "Roboto Mono", monospace;
}

.diff-added {
    background: rgba(16, 185, 129, 0.16);
    color: #047857;
}

.diff-removed {
    background: rgba(239, 68, 68, 0.13);
}

.landing-breadcrumbs {
    min-height: 34px;
    padding: 0 2px;
}

.landing-hero__copy,
.landing-hero__cta {
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.landing-hero__copy {
    background:
        radial-gradient(circle at 14% 0, rgba(16, 185, 129, 0.07), transparent 32%),
        var(--surface);
}

.landing-hero__cta {
    background:
        linear-gradient(180deg, rgba(236, 253, 245, 0.72), rgba(255, 255, 255, 0.98));
}

.landing-hero__cta strong {
    font-size: 19px;
    font-weight: 800;
}

.landing-links__grid a {
    min-height: 58px;
    font-size: 13px;
}

.keyword-grid a,
.keyword-grid span {
    border-color: #e6ebf1;
    background: #ffffff;
    color: #334155;
}

.keyword-grid a:hover {
    background: #ecfdf5;
}

.modal__dialog {
    overflow: hidden;
    padding: 24px;
}

.modal__dialog h2 {
    font-size: 20px;
    font-weight: 800;
}

.modal__close {
    top: 12px;
    right: 12px;
    border-radius: 11px;
    background: var(--surface-soft);
}

.toast {
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #111827;
}

@media (max-width: 980px) {
    .history-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .seo-section__intro,
    .seo-section > .panel__label,
    .seo-section > h2,
    .seo-section > p,
    .seo-section > .keyword-grid,
    .seo-section > .steps-list,
    .seo-section > .seo-grid,
    .seo-section > .landing-content-grid,
    .seo-section > .landing-links__grid,
    .seo-section > details,
    .faq-section > .panel__label,
    .faq-section > h2 {
        margin-left: 14px;
        margin-right: 14px;
    }

    .faq-section details {
        padding: 0 14px;
    }

    .diff-box,
    .history-grid,
    .file-drop,
    .file-controls,
    .file-summary,
    .file-actions,
    .file-progress,
    .file-status,
    .file-result {
        margin-left: 14px;
        margin-right: 14px;
    }

    .diff-box {
        width: calc(100% - 28px);
    }

    .file-controls,
    .file-summary {
        gap: 10px;
    }
}

/* Pixel-oriented port of the original React/Tailwind layout */
.original-app {
    gap: 24px;
}

.app-hero {
    max-width: 760px;
    margin: 6px auto 0;
    text-align: center;
}

.app-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    margin-bottom: 12px;
    padding: 0 13px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 999px;
    background: rgba(236, 253, 245, 0.9);
    color: #059669;
    font-size: 12px;
    font-weight: 700;
}

.app-hero__badge span:first-child {
    color: var(--green);
    animation: pulse 1.5s ease-in-out infinite;
}

.app-hero h1 {
    margin: 0;
    color: #111827;
    font-size: clamp(34px, 4.2vw, 46px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.app-hero h1 span {
    background: linear-gradient(90deg, var(--green), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.app-hero p {
    max-width: 690px;
    margin: 13px auto 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

.sample-prompts {
    width: min(920px, 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 auto;
    padding: 14px 16px;
    border: 1px solid #eef2f7;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.92);
}

.sample-prompts__label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sample-prompts .sample-row {
    margin: 0;
}

.sample-prompts .sample-row button {
    min-height: 32px;
    padding: 0 12px;
    border-color: #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: #374151;
    font-size: 12px;
}

.sample-prompts .sample-row button:hover {
    border-color: rgba(16, 185, 129, 0.55);
    color: var(--green);
}

.app-workspace {
    gap: 24px;
}

.app-editor-card {
    min-height: 460px;
    border-color: rgba(229, 231, 235, 0.95);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.app-card-head {
    min-height: 64px;
    padding: 15px 18px;
    background: rgba(248, 250, 252, 0.75);
}

.app-card-title {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    align-items: center;
}

.app-card-title h2 {
    grid-column: 2;
}

.status-dot {
    width: 10px;
    height: 10px;
    display: inline-block;
    border-radius: 999px;
    background: var(--green);
}

.status-dot--purple {
    background: #6366f1;
}

.app-editor-body {
    flex: 1;
    min-height: 0;
    display: flex;
    padding: 16px;
}

.app-editor-card textarea,
.app-result-box {
    width: 100%;
    min-height: 292px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #1f2937;
    font-family: "Roboto Mono", monospace;
    font-size: 14px;
    line-height: 1.75;
}

.app-editor-card textarea:focus {
    box-shadow: none;
}

.app-result-box {
    white-space: pre-wrap;
}

.empty-result {
    min-height: 100%;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 8px;
    padding: 26px;
    border: 1px dashed #e5e7eb;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.6);
    color: #94a3b8;
    text-align: center;
    white-space: normal;
}

.empty-result span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #f1f5f9;
    color: #94a3b8;
    font-family: inherit;
    font-size: 22px;
}

.empty-result strong {
    color: #475569;
    font-family: Poppins, Inter, sans-serif;
    font-size: 14px;
}

.empty-result p {
    max-width: 360px;
    margin: 0;
    color: #94a3b8;
    font-family: Poppins, Inter, sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.app-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 13px 16px;
    border-top: 1px solid #eef2f7;
    background: rgba(248, 250, 252, 0.72);
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.app-editor-card .score {
    margin: 0;
    padding: 15px 16px;
    border-top: 1px solid #eef2f7;
    background: rgba(236, 253, 245, 0.35);
}

.app-controls {
    gap: 20px;
    padding: 22px;
    border-radius: 24px;
}

.app-controls .settings-panel__top h2 {
    margin: 0;
    font-size: 17px;
}

.app-controls .settings-panel__top p {
    max-width: 620px;
    font-size: 12px;
}

.app-controls .mode-group {
    gap: 10px;
}

.app-controls .mode-card {
    min-height: 84px;
    padding: 13px;
    border-radius: 18px;
}

.app-controls .action-row {
    align-items: center;
}

.app-controls .meta-row {
    padding-top: 13px;
}

.app-panel {
    border-radius: 24px;
}

.app-panel .panel__head {
    min-height: 64px;
}

.app-trust {
    max-width: 850px;
    margin: 0 auto;
}

.app-modal label {
    display: grid;
    gap: 7px;
}

.app-modal label span {
    color: #374151;
    font-size: 12px;
    font-weight: 800;
}

.app-modal__head {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 12px;
    align-items: start;
}

.app-modal__head > span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #ecfdf5;
    color: var(--green);
    font-weight: 900;
}

.app-modal__tip {
    padding: 14px;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.sinonimaizer-dark .app-hero h1 {
    color: #f8fafc;
}

.sinonimaizer-dark .app-hero__badge,
.sinonimaizer-dark .sample-prompts,
.sinonimaizer-dark .app-card-head,
.sinonimaizer-dark .app-card-foot {
    border-color: #1f2937;
    background: rgba(15, 23, 42, 0.72);
}

.sinonimaizer-dark .app-editor-card,
.sinonimaizer-dark .app-controls,
.sinonimaizer-dark .app-panel {
    background: #111827;
    border-color: #1f2937;
}

.sinonimaizer-dark .app-editor-card textarea,
.sinonimaizer-dark .app-result-box {
    color: #f8fafc;
}

.sinonimaizer-dark .empty-result {
    border-color: #243044;
    background: rgba(15, 23, 42, 0.55);
}

@media (max-width: 980px) {
    .app-hero {
        max-width: 680px;
    }

    .app-editor-card {
        min-height: 420px;
    }
}

@media (max-width: 680px) {
    .original-app {
        gap: 16px;
    }

    .app-hero {
        margin-top: 2px;
        text-align: left;
    }

    .app-hero__badge {
        min-height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }

    .app-hero h1 {
        font-size: 30px;
    }

    .app-hero p {
        font-size: 13px;
    }

    .sample-prompts {
        justify-content: flex-start;
        padding: 12px;
        border-radius: 16px;
    }

    .sample-prompts .sample-row {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .app-editor-card {
        min-height: 398px;
        border-radius: 20px;
    }

    .app-card-head {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding: 13px 14px;
    }

    .app-card-title {
        width: 100%;
    }

    .app-card-head .result-actions {
        width: 100%;
    }

    .app-card-head .result-actions button {
        flex: 1;
    }

    .app-editor-body {
        padding: 14px;
    }

    .app-editor-card textarea,
    .app-result-box {
        min-height: 230px;
        font-size: 13px;
    }

    .empty-result {
        padding: 18px;
    }

    .app-card-foot {
        align-items: flex-start;
        flex-direction: column;
        padding: 12px 14px;
    }

    .app-controls {
        padding: 14px;
        border-radius: 20px;
    }

    .app-controls .settings-panel__top {
        gap: 8px;
    }

    .app-controls .mode-group {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .app-controls .mode-card {
        min-height: 84px;
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 10px;
    }

    .app-controls .mode-card small {
        grid-column: 1;
    }

    .app-controls .mode-card__check {
        width: 18px;
        height: 18px;
    }
}

/* Original app visual alignment */
:root {
    --bg: #fcfcfc;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #f0f4f8;
    --text: #1f2937;
    --muted: #64748b;
    --soft-muted: #94a3b8;
    --line: #e5e7eb;
    --line-soft: #eef2f7;
    --green: #10b981;
    --green-strong: #0e9f6e;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --red: #ef4444;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 28px rgba(15, 23, 42, 0.04);
}

body {
    font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sinonimaizer-dark,
.sinonimaizer-dark {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-soft: #0f172a;
    --surface-muted: #111827;
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft-muted: #64748b;
    --line: #1f2937;
    --line-soft: #172033;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.16), 0 14px 34px rgba(0, 0, 0, 0.2);
}

.site-header {
    z-index: 40;
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    border-bottom-color: var(--line-soft);
    backdrop-filter: blur(14px);
}

.site-header__inner,
.site-footer__inner,
.app-main {
    width: min(1280px, calc(100% - 32px));
}

.site-header__inner {
    min-height: 64px;
    gap: 16px;
}

.brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 18px;
    box-shadow: 0 8px 18px rgba(16, 185, 129, 0.18);
}

.brand__name {
    font-size: 20px;
    line-height: 1;
    background: linear-gradient(90deg, #111827, #374151);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sinonimaizer-dark .brand__name {
    background: linear-gradient(90deg, #ffffff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand__badge {
    padding: 2px 7px;
    border-radius: 8px;
    border-color: #d1fae5;
    background: #ecfdf5;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
}

.sinonimaizer-dark .brand__badge {
    border-color: rgba(16, 185, 129, 0.22);
    background: rgba(6, 78, 59, 0.35);
}

.icon-button,
.sample-row button,
.result-actions button,
.history-panel button,
.meta-row button {
    min-height: 36px;
    padding: 0 12px;
    border-color: var(--line);
    border-radius: 12px;
    box-shadow: none;
    font-size: 12px;
    font-weight: 700;
}

.icon-button:hover,
.sample-row button:hover,
.result-actions button:hover,
.history-panel button:hover,
.meta-row button:hover {
    background: var(--surface-soft);
    transform: none;
}

.app-main {
    padding: 30px 0 48px;
}

.tool-hero {
    gap: 20px;
}

.hero-copy {
    order: 1;
    max-width: 920px;
    padding-top: 4px;
}

.workspace {
    order: 2;
}

.settings-panel {
    order: 3;
}

.compare-panel {
    order: 4;
}

.history-panel {
    order: 5;
}

.file-panel {
    order: 6;
}

.trust-row {
    order: 7;
}

.seo-section {
    order: 8;
}

.hero-copy h1 {
    max-width: 850px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.04;
}

.hero-copy p:last-child {
    max-width: 770px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.7;
}

.eyebrow,
.panel__label {
    letter-spacing: 0.07em;
}

.trust-card,
.panel,
.settings-panel,
.file-panel,
.seo-section,
.landing-hero__copy,
.landing-hero__cta {
    border-color: var(--line);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel,
.settings-panel,
.seo-section {
    padding: 20px;
}

.workspace {
    gap: 16px;
}

.panel__head {
    margin-bottom: 14px;
}

.panel h2 {
    font-size: 18px;
}

textarea,
.result-box,
.diff-box {
    min-height: 330px;
    padding: 16px;
    border-radius: 14px;
    background: var(--surface-soft);
    font-size: 14px;
    line-height: 1.7;
}

.sample-row button {
    background: var(--surface);
}

.settings-panel {
    gap: 18px;
}

.mode-group {
    gap: 8px;
}

.mode-card {
    min-height: 92px;
    padding: 14px;
    border-radius: 18px;
    gap: 5px 10px;
}

.mode-card strong {
    font-size: 13px;
}

.mode-card small {
    font-size: 10px;
    line-height: 1.35;
}

.mode-card__check {
    width: 20px;
    height: 20px;
    font-size: 10px;
}

.mode-card.is-active {
    border-color: var(--purple);
    background: color-mix(in srgb, var(--purple) 8%, transparent);
    box-shadow: 0 0 0 1px var(--purple);
}

.mode-card.is-active .mode-card__check {
    border-color: var(--purple);
    color: var(--purple);
}

.mode-card[data-mode="light"].is-active {
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 1px var(--green);
}

.mode-card[data-mode="light"].is-active .mode-card__check {
    border-color: var(--green);
    color: var(--green);
}

.mode-card[data-mode="maximum"].is-active {
    border-color: var(--amber);
    background: rgba(245, 158, 11, 0.08);
    box-shadow: 0 0 0 1px var(--amber);
}

.mode-card[data-mode="maximum"].is-active .mode-card__check {
    border-color: var(--amber);
    color: var(--amber);
}

.meaning-toggle {
    min-height: 48px;
    border-radius: 16px;
    background: var(--surface-soft);
    font-size: 13px;
    font-weight: 700;
}

.primary-button {
    min-height: 48px;
    border-radius: 16px;
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(16, 185, 129, 0.22);
}

.primary-button:active {
    transform: scale(0.98);
}

.meta-row {
    border-top-color: var(--line-soft);
    font-size: 12px;
}

.score {
    margin-top: 14px;
    padding-top: 14px;
    border-top-color: var(--line-soft);
}

.score__value {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 15px;
}

.score__bar {
    height: 8px;
}

.trust-row {
    width: min(900px, 100%);
    justify-self: center;
    gap: 14px;
}

.trust-card {
    grid-template-columns: 32px 1fr;
    padding: 14px;
    border-radius: 18px;
    box-shadow: none;
}

.trust-card span {
    width: 32px;
    height: 32px;
}

.trust-card strong {
    font-size: 12px;
}

.trust-card small {
    font-size: 10px;
}

.history-card,
.seo-grid article,
.landing-content-grid article,
.landing-links__grid a,
.file-summary div {
    border-radius: 16px;
    background: var(--surface-soft);
}

.seo-section {
    margin-top: 4px;
    box-shadow: none;
}

.seo-section--muted {
    background: var(--surface-muted);
}

.seo-section h2 {
    font-size: 24px;
}

.seo-section p,
.landing-content-grid p {
    font-size: 14px;
}

.keyword-grid span,
.keyword-grid a {
    border-radius: 999px;
    background: var(--surface-soft);
    font-size: 12px;
}

.landing-page {
    gap: 20px;
}

.landing-hero {
    gap: 16px;
}

.landing-hero__copy,
.landing-hero__cta {
    padding: 24px;
}

.landing-hero__copy h1 {
    font-size: clamp(34px, 5vw, 54px);
}

.landing-hero__copy p {
    font-size: 16px;
}

.site-footer {
    border-top-color: var(--line-soft);
    background: color-mix(in srgb, var(--surface-soft) 58%, transparent);
}

.site-footer__inner {
    min-height: 72px;
    font-size: 12px;
}

.site-footer__tags {
    color: var(--green);
    font-size: 12px;
}

@media (max-width: 980px) {
    .hero-copy h1 {
        font-size: 42px;
    }

    textarea,
    .result-box,
    .diff-box {
        min-height: 300px;
    }
}

@media (max-width: 680px) {
    .site-header__inner,
    .site-footer__inner,
    .app-main {
        width: min(100% - 20px, 1280px);
    }

    .site-header__actions {
        gap: 6px;
    }

    .icon-button {
        padding: 0 10px;
    }

    .hero-copy h1,
    .landing-hero__copy h1 {
        font-size: 32px;
    }

    .panel,
    .settings-panel,
    .seo-section,
    .landing-hero__copy,
    .landing-hero__cta {
        padding: 16px;
        border-radius: 20px;
    }

    .mode-card {
        min-height: auto;
    }

    .trust-row {
        width: 100%;
    }

    .toast {
        right: 10px;
        bottom: 10px;
        max-width: calc(100% - 20px);
        padding: 12px 14px;
        border-radius: 14px;
        font-size: 12px;
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    }
}

/* Strong original-inspired redesign */
:root {
    --bg: #f7f9fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-muted: #f0f4f8;
    --text: #172033;
    --muted: #738196;
    --line: #e6ebf1;
    --line-soft: #eef2f7;
    --green: #10b981;
    --green-strong: #0e9f6e;
    --purple: #8b5cf6;
    --amber: #f59e0b;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 36px rgba(15, 23, 42, 0.06);
}

body {
    background:
        linear-gradient(180deg, #ffffff 0, #f8fafc 360px, #f7f9fb 100%);
    color: var(--text);
    font-family: Poppins, Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 15px;
}

body.sinonimaizer-dark,
.sinonimaizer-dark {
    --bg: #0b0f19;
    --surface: #111827;
    --surface-soft: #0f172a;
    --surface-muted: #0b1220;
    --text: #f8fafc;
    --muted: #94a3b8;
    --line: #243044;
    --line-soft: #1c2638;
}

.site-header {
    background: rgba(255, 255, 255, 0.78);
    border-bottom-color: #edf1f6;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.sinonimaizer-dark .site-header {
    background: rgba(11, 15, 25, 0.78);
}

.site-header__inner {
    min-height: 64px;
}

.brand {
    gap: 10px;
}

.brand__mark {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 17px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 42%, #8b5cf6 100%);
    box-shadow: 0 12px 28px rgba(16, 185, 129, 0.22), 0 6px 16px rgba(139, 92, 246, 0.16);
}

.brand__mark::after {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(139, 92, 246, 0.16));
    filter: blur(8px);
}

.brand__name {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #111827 0%, #334155 56%, #10b981 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sinonimaizer-dark .brand__name {
    background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 58%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.brand__badge {
    margin-left: 5px;
    padding: 2px 7px 3px;
    border-radius: 7px;
    border: 1px solid #bbf7d0;
    background: linear-gradient(180deg, #ecfdf5, #dcfce7);
    color: #10b981;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.site-header__actions {
    gap: 7px;
}

.icon-button {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.72);
    border-color: #e7edf4;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
}

.sinonimaizer-dark .icon-button {
    background: rgba(15, 23, 42, 0.75);
}

.icon-button--square {
    width: 34px;
}

.app-main {
    padding-top: 28px;
}

.tool-hero {
    gap: 18px;
}

.hero-copy {
    max-width: 920px;
}

.eyebrow {
    margin-bottom: 10px;
    color: var(--green);
    font-size: 12px;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 820px;
    font-size: clamp(38px, 5.1vw, 62px);
    line-height: 1.05;
    font-weight: 800;
}

.hero-copy p:last-child {
    max-width: 740px;
    color: #7a8798;
    font-size: 16px;
    line-height: 1.65;
}

.workspace {
    gap: 16px;
}

.panel,
.settings-panel,
.file-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.editor-panel {
    min-height: 462px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
}

.editor-panel .panel__head {
    min-height: 66px;
    align-items: center;
    margin: 0;
    padding: 15px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
}

.panel__label {
    margin-bottom: 3px;
    color: #7d8aa0;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.panel h2 {
    font-size: 17px;
    font-weight: 800;
}

.counter {
    color: #8390a3;
    font-size: 11px;
}

.editor-panel textarea,
.editor-panel .result-box {
    flex: 1;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 20px 20px 12px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    box-shadow: none;
    font-size: 14px;
    line-height: 1.75;
}

.editor-panel textarea:focus {
    box-shadow: inset 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.editor-panel .sample-row {
    margin: 0;
    padding: 12px 18px 18px;
    border-top: 1px solid var(--line-soft);
    background: var(--surface);
}

.sample-row button,
.result-actions button,
.history-panel button,
.meta-row button {
    min-height: 34px;
    border-radius: 11px;
    background: #ffffff;
    font-size: 12px;
    font-weight: 800;
}

.result-actions {
    gap: 8px;
}

.editor-panel .score {
    margin: 0;
    padding: 13px 18px;
    border-top: 1px solid var(--line-soft);
    background: #fbfdfc;
}

.score__value {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 14px;
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.18);
}

.score strong {
    font-size: 13px;
}

.score span {
    font-size: 11px;
}

.settings-panel {
    display: grid;
    gap: 16px;
    padding: 18px;
}

.settings-panel__top {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.settings-panel__top p {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
    text-align: right;
}

.mode-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.mode-card {
    min-height: 84px;
    grid-template-columns: 20px 1fr;
    padding: 13px;
    border-radius: 18px;
    background: #ffffff;
}

.mode-card strong {
    font-size: 13px;
}

.mode-card small {
    font-size: 10px;
}

.mode-card__check {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

.mode-card.is-active {
    transform: translateY(-1px);
}

.action-row {
    align-items: center;
}

.meaning-toggle {
    min-height: 44px;
    border-radius: 14px;
    background: #f8fafc;
    font-size: 13px;
}

.meaning-toggle input {
    width: 17px;
    height: 17px;
}

.primary-button {
    min-height: 46px;
    border-radius: 15px;
    padding: 0 26px;
    font-size: 14px;
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.25);
}

.meta-row {
    padding-top: 13px;
    border-top-color: var(--line-soft);
    font-size: 12px;
}

.compare-panel,
.history-panel,
.file-panel {
    overflow: hidden;
    padding: 0;
}

.compare-panel .panel__head,
.history-panel .panel__head,
.file-panel .panel__head {
    margin: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
}

.diff-box,
.history-grid,
.file-drop,
.file-controls,
.file-summary,
.file-actions,
.file-progress,
.file-status,
.file-result {
    margin-left: 18px;
    margin-right: 18px;
}

.diff-box {
    width: calc(100% - 36px);
    min-height: 300px;
    margin-top: 18px;
    margin-bottom: 18px;
    border-radius: 15px;
}

.history-grid {
    margin-top: 18px;
    margin-bottom: 18px;
}

.file-drop {
    margin-top: 18px;
    border-radius: 18px;
    background: #ecfdf5;
}

.file-result {
    margin-bottom: 18px;
}

.trust-row {
    width: min(850px, 100%);
    padding-top: 4px;
}

/* Final footer visibility override. Keep this after legacy theme layers. */
.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    padding: 54px 20px 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    background:
        radial-gradient(circle at 20% 0%, rgba(16, 185, 129, 0.16), transparent 32%),
        radial-gradient(circle at 82% 12%, rgba(139, 92, 246, 0.14), transparent 30%),
        #0f172a;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer .site-footer__inner {
    display: block;
    width: min(1180px, 100%);
    min-height: 0;
    margin: 0 auto;
    color: inherit;
    font-size: inherit;
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 1fr));
    gap: 28px;
    align-items: start;
}

.site-footer .footer-logo,
.site-footer .footer-logo:visited {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
}

.site-footer .footer-logo__mark {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green), var(--purple));
    color: #ffffff;
    box-shadow: 0 16px 34px rgba(16, 185, 129, 0.28);
}

.site-footer .footer-brand p {
    max-width: 520px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.75;
}

.site-footer .footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.site-footer .footer-badges span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 700;
}

.site-footer .footer-col h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-footer .footer-col a,
.site-footer .footer-col span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 14px;
    line-height: 1.55;
    text-decoration: none;
}

.site-footer .footer-col a + a,
.site-footer .footer-col a + span,
.site-footer .footer-col span + a {
    margin-top: 9px;
}

.site-footer .footer-col a:hover {
    color: #ffffff;
}

.site-footer .footer-service span {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.58);
}

.site-footer .site-footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.56);
    font-size: 12px;
    line-height: 1.55;
}

.site-footer .site-footer__bottom span:last-child {
    max-width: 620px;
    text-align: right;
}

@media (max-width: 980px) {
    .site-footer .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-footer {
        margin-top: 34px;
        padding: 38px 16px 24px;
    }

    .site-footer .footer-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .site-footer__bottom {
        flex-direction: column;
    }

    .site-footer .site-footer__bottom span:last-child {
        text-align: left;
    }
}

.trust-card {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: none;
}

.trust-card:nth-child(2) span {
    background: rgba(139, 92, 246, 0.1);
    color: var(--purple);
}

.trust-card:nth-child(3) span {
    background: rgba(245, 158, 11, 0.11);
    color: var(--amber);
}

.seo-section {
    border-radius: 24px;
    background: #ffffff;
}

.seo-section--muted {
    background: #f0f4f8;
}

.landing-hero__copy,
.landing-hero__cta,
.landing-content-grid article,
.landing-links__grid a {
    border-radius: 24px;
}

@media (max-width: 980px) {
    .settings-panel__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .settings-panel__top p {
        text-align: left;
    }
}

@media (max-width: 680px) {
    body {
        font-size: 14px;
    }

    .app-main {
        padding-top: 22px;
    }

    .site-header__inner {
        gap: 10px;
    }

    .brand__mark {
        width: 31px;
        height: 31px;
        border-radius: 10px;
        font-size: 15px;
    }

    .brand__name {
        font-size: 18px;
    }

    .hero-copy h1 {
        font-size: 30px;
        line-height: 1.08;
    }

    .hero-copy p:last-child {
        font-size: 14px;
    }

    .editor-panel {
        min-height: 408px;
        border-radius: 20px;
    }

    .editor-panel .panel__head {
        min-height: 58px;
        padding: 13px 14px;
    }

    .editor-panel textarea,
    .editor-panel .result-box {
        padding: 16px 14px 10px;
    }

    .editor-panel .sample-row,
    .editor-panel .score {
        padding-left: 14px;
        padding-right: 14px;
    }

    .settings-panel {
        padding: 14px;
        border-radius: 20px;
    }

    .mode-card {
        min-height: 72px;
    }

    .action-row {
        gap: 10px;
    }

    .primary-button {
        width: 100%;
    }
}

/* SaaS content block redesign */
.tool-hero > .seo-section {
    position: relative;
    width: min(1180px, 100%);
    margin: 26px auto 0;
    padding: 30px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.tool-hero > .seo-section > .panel__label,
.tool-hero > .seo-section > h2,
.tool-hero > .seo-section > p,
.tool-hero > .seo-section > .steps-list,
.tool-hero > .seo-section > .seo-grid,
.tool-hero > .seo-section > .audience-grid,
.tool-hero > .seo-section > .capability-grid,
.tool-hero > .seo-section > .related-tools-grid,
.tool-hero > .seo-section > details,
.tool-hero > .seo-section .seo-section__intro,
.tool-hero > .seo-section .rewrite-example {
    margin-left: 0;
    margin-right: 0;
}

.tool-hero > .seo-section > .panel__label:first-child,
.tool-hero > .seo-section .seo-section__intro {
    padding-top: 0;
}

.tool-hero > .seo-section .panel__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 10px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
    font-size: 11px;
    line-height: 1;
}

.tool-hero > .seo-section h2 {
    max-width: 800px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(26px, 3.2vw, 42px);
    font-weight: 900;
    line-height: 1.08;
}

.tool-hero > .seo-section p {
    max-width: 760px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 28px;
    align-items: stretch;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96) 58%, rgba(6, 95, 70, 0.92));
    color: #ffffff;
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] .panel__label {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.1);
    color: #8ff0c5;
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] h2,
.tool-hero > .seo-section[aria-labelledby="seo-about-title"] h3 {
    color: #ffffff;
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] p {
    color: rgba(255, 255, 255, 0.72);
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] .seo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] .seo-grid article {
    position: relative;
    min-height: 126px;
    padding: 20px 20px 20px 68px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.tool-hero > .seo-section[aria-labelledby="seo-about-title"] .seo-grid article::before {
    content: "";
    position: absolute;
    top: 22px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green), var(--purple));
    box-shadow: 0 14px 30px rgba(16, 185, 129, 0.24);
}

.tool-hero > .seo-section[aria-labelledby="seo-how-title"] {
    background: #ecfdf5;
}

.tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 24px;
    background: #ffffff;
}

.tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list li {
    min-height: 176px;
    padding: 28px 24px 24px;
    border: 0;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 0;
    background: transparent;
}

.tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list li:last-child {
    border-right: 0;
}

.tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list li::before {
    position: static;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: none;
}

.seo-audience-section {
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.seo-audience-section .audience-grid {
    grid-template-columns: 1.15fr 0.85fr 0.85fr 1.15fr;
    gap: 14px;
    margin-top: 24px;
}

.seo-audience-section .audience-grid article {
    min-height: 210px;
    padding: 22px;
    border-radius: 26px;
    background: #ffffff;
}

.seo-audience-section .audience-grid article::after {
    content: "";
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 18px;
    border-radius: 999px;
    background: var(--green);
}

.seo-audience-section .audience-grid article:nth-child(2)::after {
    background: var(--purple);
}

.seo-audience-section .audience-grid article:nth-child(3)::after {
    background: var(--amber);
}

.seo-audience-section .audience-grid article:nth-child(4)::after {
    background: #38bdf8;
}

.seo-example-section {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 26px;
    align-items: center;
    background:
        linear-gradient(135deg, #f8fafc, #eef2ff);
}

.seo-example-section .rewrite-example {
    position: relative;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
}

.seo-example-section .rewrite-example::before {
    content: "rewrite";
    position: absolute;
    top: 50%;
    right: 24px;
    z-index: 2;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    transform: translateY(-50%);
}

.seo-example-section .rewrite-example > div {
    min-height: 132px;
    padding: 22px 128px 22px 22px;
    border-radius: 24px;
    box-shadow: none;
}

.seo-example-section .rewrite-example > div:first-child {
    background: #ffffff;
}

.seo-example-section .rewrite-example > div:last-child {
    border-color: rgba(16, 185, 129, 0.22);
    background: #0f172a;
}

.seo-example-section .rewrite-example > div:last-child span,
.seo-example-section .rewrite-example > div:last-child p {
    color: #ffffff;
}

.seo-example-section .rewrite-example > div:last-child p {
    color: rgba(255, 255, 255, 0.72);
}

.seo-capabilities-section {
    background: #ffffff;
}

.seo-capabilities-section .capability-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.seo-capabilities-section .capability-grid article {
    min-height: 172px;
    padding: 22px;
    border-radius: 24px;
    background: #f8fafc;
    box-shadow: none;
}

.seo-capabilities-section .capability-grid article:nth-child(1),
.seo-capabilities-section .capability-grid article:nth-child(4) {
    grid-column: span 2;
    background: linear-gradient(135deg, #ecfdf5, #ffffff);
}

.seo-capabilities-section .capability-grid article:nth-child(2) {
    background: #f5f3ff;
}

.seo-capabilities-section .capability-grid article:nth-child(3) {
    background: #fffbeb;
}

.tool-hero > .related-tools-section {
    overflow: hidden;
    background: linear-gradient(135deg, #111827, #0f172a);
}

.tool-hero > .related-tools-section .panel__label {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
    color: #8ff0c5;
}

.tool-hero > .related-tools-section h2 {
    color: #ffffff;
}

.tool-hero > .related-tools-section .related-tools-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.tool-hero > .related-tools-section .related-tools-grid a {
    min-height: 164px;
    padding: 20px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.tool-hero > .related-tools-section .related-tools-grid a::before {
    top: auto;
    bottom: 18px;
    left: 20px;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green), var(--purple));
}

.tool-hero > .related-tools-section .related-tools-grid strong {
    color: #ffffff;
}

.tool-hero > .related-tools-section .related-tools-grid span {
    color: rgba(255, 255, 255, 0.66);
}

.faq-section {
    background: #ffffff;
}

.faq-section details {
    padding: 0;
    border-bottom-color: rgba(148, 163, 184, 0.22);
}

.faq-section summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 62px;
    padding: 18px 0;
    color: var(--ink);
    font-size: 16px;
}

.faq-section summary::after {
    content: "+";
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 10px;
    background: #ecfdf5;
    color: var(--green);
    font-weight: 900;
}

.faq-section details[open] summary::after {
    content: "-";
}

@media (max-width: 980px) {
    .tool-hero > .seo-section,
    .tool-hero > .seo-section[aria-labelledby="seo-about-title"],
    .seo-example-section {
        grid-template-columns: 1fr;
    }

    .seo-audience-section .audience-grid,
    .seo-capabilities-section .capability-grid,
    .related-tools-section .related-tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .seo-capabilities-section .capability-grid article:nth-child(1),
    .seo-capabilities-section .capability-grid article:nth-child(4) {
        grid-column: span 1;
    }
}

@media (max-width: 680px) {
    .tool-hero > .seo-section {
        margin-top: 18px;
        padding: 20px;
        border-radius: 22px;
    }

    .tool-hero > .seo-section h2 {
        font-size: 25px;
    }

    .tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list,
    .seo-audience-section .audience-grid,
    .seo-capabilities-section .capability-grid,
    .related-tools-section .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list li {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    }

    .tool-hero > .seo-section[aria-labelledby="seo-how-title"] .steps-list li:last-child {
        border-bottom: 0;
    }

    .seo-audience-section .audience-grid article,
    .seo-capabilities-section .capability-grid article,
    .related-tools-section .related-tools-grid a {
        min-height: 0;
    }

    .seo-example-section .rewrite-example > div {
        padding-right: 22px;
    }

    .seo-example-section .rewrite-example::before {
        position: static;
        width: fit-content;
        margin: 2px 0;
        transform: none;
    }
}

/* Below-editor SaaS panels: modes, file rewrite and trust cards */
.original-app .app-controls {
    position: relative;
    overflow: hidden;
    width: min(1180px, 100%);
    margin: 4px auto 0;
    padding: 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        radial-gradient(circle at 0% 0%, rgba(16, 185, 129, 0.12), transparent 34%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.original-app .app-controls::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--green), var(--purple), var(--amber));
}

.original-app .app-controls .settings-panel__top {
    align-items: flex-start;
    padding-top: 6px;
}

.original-app .app-controls .settings-panel__top h2 {
    color: var(--ink);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 900;
    line-height: 1.12;
}

.original-app .app-controls .settings-panel__top p {
    max-width: 520px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.original-app .app-controls .mode-group {
    gap: 12px;
}

.original-app .app-controls .mode-card {
    position: relative;
    min-height: 134px;
    padding: 20px 18px 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.original-app .app-controls .mode-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 38px;
    height: 4px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.28);
}

.original-app .app-controls .mode-card[data-mode="light"]::after {
    background: var(--green);
}

.original-app .app-controls .mode-card[data-mode="standard"]::after {
    background: var(--purple);
}

.original-app .app-controls .mode-card[data-mode="maximum"]::after {
    background: var(--amber);
}

.original-app .app-controls .mode-card:hover {
    border-color: rgba(16, 185, 129, 0.28);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.09);
    transform: translateY(-2px);
}

.original-app .app-controls .mode-card.is-active {
    border-color: rgba(139, 92, 246, 0.55);
    background: linear-gradient(135deg, #ffffff, #f5f3ff);
    box-shadow: 0 24px 54px rgba(139, 92, 246, 0.16);
}

.original-app .app-controls .mode-card__check {
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 10px;
    background: #ecfdf5;
    color: var(--green);
    font-size: 13px;
}

.original-app .app-controls .mode-card.is-active .mode-card__check {
    background: var(--purple);
    color: #ffffff;
}

.original-app .app-controls .mode-card strong {
    color: var(--ink);
    font-size: 17px;
    font-weight: 900;
}

.original-app .app-controls .mode-card small {
    max-width: 220px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.original-app .app-controls .action-row {
    display: grid;
    grid-template-columns: minmax(180px, auto) minmax(260px, 1fr);
    gap: 14px;
}

.original-app .app-controls .meaning-toggle {
    justify-content: center;
    min-height: 56px;
    border: 1px solid rgba(16, 185, 129, 0.18);
    border-radius: 18px;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 900;
}

.original-app .app-controls .primary-button {
    min-height: 58px;
    border-radius: 18px;
    font-size: 15px;
    box-shadow: 0 20px 42px rgba(16, 185, 129, 0.28);
}

.original-app .app-controls .meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
}

.original-app .file-panel {
    position: relative;
    overflow: hidden;
    width: min(1180px, 100%);
    margin: 12px auto 0;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.94)),
        radial-gradient(circle at 100% 0%, rgba(139, 92, 246, 0.12), transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, 0.12), transparent 28%);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.original-app .file-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--green), #38bdf8, var(--purple));
}

.original-app .file-panel .panel__head {
    position: relative;
    padding: 28px 28px 12px;
    border-bottom: 0;
    background: transparent;
}

.original-app .file-panel .panel__head .panel__label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 10px;
    padding: 7px 10px;
    border: 1px solid rgba(16, 185, 129, 0.16);
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: var(--green);
    font-size: 11px;
}

.original-app .file-panel .panel__head h2 {
    color: var(--ink);
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 900;
    letter-spacing: 0;
}

.original-app .file-drop {
    position: relative;
    min-height: 188px;
    margin: 10px 24px 18px;
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(236, 253, 245, 0.74), rgba(255, 255, 255, 0.9) 58%, rgba(245, 243, 255, 0.72)),
        repeating-linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0 1px, transparent 1px 12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.original-app .file-drop::before {
    content: "DOCX";
    position: absolute;
    top: 18px;
    left: 18px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.86);
    color: #ffffff;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.original-app .file-drop::after {
    content: "PDF";
    position: absolute;
    right: 18px;
    bottom: 18px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(139, 92, 246, 0.14);
    color: var(--purple);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.original-app .file-drop:hover,
.original-app .file-drop.is-over {
    border-color: rgba(16, 185, 129, 0.58);
    box-shadow: 0 18px 48px rgba(16, 185, 129, 0.13);
    transform: translateY(-1px);
}

.original-app .file-drop strong {
    color: var(--ink);
    font-size: clamp(19px, 2vw, 26px);
    font-weight: 900;
}

.original-app .file-drop span {
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.original-app .file-controls {
    margin: 0 24px;
    gap: 14px;
}

.original-app .file-controls label {
    position: relative;
    padding: 14px 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.045);
}

.original-app .file-controls label span {
    color: #64748b;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.original-app .file-controls select {
    min-height: 52px;
    border-color: rgba(148, 163, 184, 0.18);
    border-radius: 17px;
    background-color: #ffffff;
    color: var(--ink);
    font-weight: 800;
}

.original-app .file-summary {
    margin: 14px 24px 0;
    gap: 14px;
}

.original-app .file-summary div {
    min-height: 82px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.original-app .file-actions,
.original-app .file-progress,
.original-app .file-status,
.original-app .file-result {
    margin-left: 24px;
    margin-right: 24px;
}

.original-app .file-actions {
    align-items: center;
    margin-top: 18px;
}

.original-app .file-actions .primary-button {
    min-height: 50px;
    border-radius: 16px;
}

.original-app .file-progress {
    height: 9px;
    background: rgba(226, 232, 240, 0.9);
}

.original-app .file-progress i {
    background: linear-gradient(90deg, var(--green), #38bdf8);
}

.original-app .file-result {
    margin-bottom: 24px;
    border-radius: 18px;
    background: rgba(248, 250, 252, 0.8);
}

.original-app .app-trust {
    width: min(1180px, 100%);
    max-width: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 14px auto 0;
    padding: 0;
    align-items: stretch;
}

.original-app .app-trust .trust-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    row-gap: 6px;
    align-items: start;
    min-height: 132px;
    padding: 22px 22px 26px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.07);
}

.original-app .app-trust .trust-card span {
    position: static;
    grid-row: 1 / span 2;
    display: grid;
    width: 46px;
    height: 46px;
    min-width: 46px;
    place-items: center;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 900;
}

.original-app .app-trust .trust-card strong {
    display: block;
    min-width: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.28;
}

.original-app .app-trust .trust-card small {
    display: block;
    min-width: 0;
    margin: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

.original-app .app-trust .trust-card::after {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: var(--green);
}

.original-app .app-trust .trust-card:nth-child(2)::after {
    background: var(--purple);
}

.original-app .app-trust .trust-card:nth-child(3)::after {
    background: var(--amber);
}

@media (max-width: 980px) {
    .original-app .app-controls .settings-panel__top,
    .original-app .app-controls .action-row {
        grid-template-columns: 1fr;
    }

    .original-app .app-controls .settings-panel__top {
        display: grid;
    }

    .original-app .app-controls .mode-group,
    .original-app .app-trust {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .original-app .app-controls,
    .original-app .file-panel {
        border-radius: 22px;
    }

    .original-app .app-controls {
        padding: 20px;
    }

    .original-app .app-controls .mode-card {
        min-height: 0;
    }

    .original-app .app-controls .meta-row {
        align-items: flex-start;
        flex-direction: column;
        padding-left: 0;
        padding-right: 0;
    }

    .original-app .file-panel .panel__head {
        padding: 20px;
    }

    .original-app .file-drop,
    .original-app .file-controls,
    .original-app .file-summary,
    .original-app .file-actions,
    .original-app .file-progress,
    .original-app .file-status,
    .original-app .file-result {
        margin-left: 16px;
        margin-right: 16px;
    }

    .original-app .file-drop strong {
        font-size: 18px;
    }

    .original-app .app-trust .trust-card {
        min-height: 0;
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 18px;
        border-radius: 20px;
    }

    .original-app .app-trust .trust-card span {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}
