:root {
    color-scheme: light;
    --canvas: #f2f7f4;
    --surface: #ffffff;
    --surface-soft: #eaf5ef;
    --ink: #10231d;
    --muted: #5c6f68;
    --line: #d7e5de;
    --brand: #0b6b57;
    --brand-dark: #075044;
    --accent: #e7b84b;
    --danger: #a83d3d;
    --success: #18794e;
    --shadow: 0 24px 70px rgba(16, 35, 29, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background:
        radial-gradient(circle at 5% 0%, rgba(231, 184, 75, 0.18), transparent 28rem),
        radial-gradient(circle at 95% 12%, rgba(11, 107, 87, 0.13), transparent 30rem),
        var(--canvas);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
    font: inherit;
    font-size: 16px;
}

button,
select,
label[for] {
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
summary:focus-visible,
.drop-zone:focus-within {
    outline: 3px solid rgba(11, 107, 87, 0.28);
    outline-offset: 3px;
}

.wrap {
    width: min(1120px, calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(215, 229, 222, 0.9);
    background: rgba(242, 247, 244, 0.88);
    backdrop-filter: blur(18px);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(1120px, calc(100% - 2rem));
    min-height: 4.5rem;
    margin-inline: auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: max-content;
    font-weight: 850;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border: 2px solid var(--ink);
    border-radius: 11px;
    background: linear-gradient(135deg, #ffe4a0, var(--accent));
    box-shadow: 4px 4px 0 var(--ink);
    font-size: 0.86rem;
    font-weight: 950;
}

.nav-links {
    display: flex;
    gap: 0.4rem;
}

.nav-link {
    min-height: 2.75rem;
    padding: 0.72rem 0.9rem;
    border-radius: 12px;
    color: var(--muted);
    font-weight: 750;
}

.nav-link:hover,
.nav-link.active {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(16, 35, 29, 0.07);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: clamp(2rem, 6vw, 5rem);
    align-items: center;
    padding-block: clamp(4rem, 10vw, 8rem);
}

.hero-copy {
    max-width: 43rem;
}

.eyebrow {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 1rem;
    padding: 0.48rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    letter-spacing: -0.045em;
    line-height: 1.08;
}

h1 {
    max-width: 14ch;
    margin-bottom: 1.4rem;
    font-size: clamp(2.7rem, 7vw, 5.8rem);
    font-weight: 930;
}

h2 {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 900;
}

h3 {
    margin-bottom: 0.7rem;
    font-size: 1.3rem;
}

p {
    color: var(--muted);
    line-height: 1.68;
}

.lead {
    max-width: 43rem;
    margin-bottom: 0;
    font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    padding: 0.82rem 1.15rem;
    border: 1px solid var(--brand);
    border-radius: 13px;
    color: #fff;
    background: var(--brand);
    box-shadow: 0 12px 25px rgba(11, 107, 87, 0.2);
    font-weight: 850;
    transition: transform 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.52;
    box-shadow: none;
}

.button.secondary {
    color: var(--brand-dark);
    background: var(--surface);
    box-shadow: none;
}

.button.secondary:hover {
    color: #fff;
}

.full-width {
    width: 100%;
}

.text-link {
    color: var(--brand-dark);
    font-weight: 820;
}

.privacy-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow);
}

.privacy-card::after {
    content: "";
    position: absolute;
    right: -4rem;
    bottom: -4rem;
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    background: rgba(231, 184, 75, 0.2);
}

.privacy-card > strong {
    display: block;
    margin-top: 1.4rem;
    font-size: 1.45rem;
}

.privacy-icon {
    display: grid;
    width: 4.3rem;
    height: 4.3rem;
    place-items: center;
    border-radius: 20px;
    color: var(--brand);
    background: var(--surface-soft);
}

.privacy-icon svg {
    width: 2.3rem;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem;
    margin-top: 1.4rem;
}

.mini-stats span {
    display: grid;
    gap: 0.2rem;
    padding: 0.8rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
    font-size: 0.82rem;
}

.mini-stats b {
    color: var(--ink);
    font-size: 1.25rem;
}

.section {
    padding-block: 4.5rem;
}

.section-heading {
    max-width: 43rem;
}

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

.tool-card {
    display: flex;
    min-height: 22rem;
    flex-direction: column;
    align-items: flex-start;
    padding: clamp(1.4rem, 4vw, 2rem);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 18px 45px rgba(16, 35, 29, 0.08);
}

.tool-card.featured {
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.tool-card.featured:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.tool-icon {
    display: grid;
    width: 3.5rem;
    height: 3.5rem;
    place-items: center;
    margin-bottom: auto;
    border-radius: 16px;
    color: var(--brand);
    background: var(--surface-soft);
    font-size: 1.6rem;
}

.tool-icon svg {
    width: 1.9rem;
}

.tool-icon.muted,
.coming-soon {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.55);
}

.card-kicker {
    margin-top: 1.5rem;
    color: var(--brand-dark);
    font-size: 0.8rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tool-card h3 {
    margin-top: 0.6rem;
    font-size: clamp(1.6rem, 4vw, 2.3rem);
}

.card-action {
    margin-top: 0.8rem;
    color: var(--brand-dark);
    font-weight: 850;
}

.values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    margin-block: 2rem 6rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--line);
}

.values div {
    display: grid;
    gap: 0.45rem;
    padding: 1.4rem;
    background: rgba(255, 255, 255, 0.9);
}

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

.tool-page {
    padding-block: 2rem 6rem;
}

.breadcrumb {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin-bottom: 2.8rem;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.tool-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    margin-bottom: 2rem;
}

.tool-intro h1 {
    max-width: 16ch;
    font-size: clamp(2.5rem, 6vw, 5rem);
}

.trust-note {
    display: flex;
    max-width: 19rem;
    gap: 0.7rem;
    align-items: center;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--brand-dark);
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.trust-note svg {
    width: 1.6rem;
    flex: 0 0 auto;
}

.compressor {
    display: grid;
    grid-template-columns: minmax(300px, 0.88fr) minmax(0, 1.12fr);
    gap: 1rem;
    align-items: start;
}

.control-panel,
.preview-panel,
.content-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(16, 35, 29, 0.07);
}

.control-panel,
.preview-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
}

.drop-zone {
    display: flex;
    min-height: 13rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 1.2rem;
    border: 2px dashed #a9c8bb;
    border-radius: 16px;
    color: var(--muted);
    background: #f7fbf8;
    text-align: center;
    transition: border-color 150ms ease, background 150ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
    border-color: var(--brand);
    background: var(--surface-soft);
}

.drop-zone strong {
    color: var(--ink);
    font-size: 1.05rem;
}

.upload-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    margin-bottom: 0.35rem;
    border-radius: 14px;
    color: var(--brand);
    background: var(--surface-soft);
}

.upload-icon svg {
    width: 1.55rem;
}

.file-name {
    max-width: 100%;
    margin-top: 0.4rem;
    overflow: hidden;
    color: var(--brand-dark);
    font-size: 0.84rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
    clip-path: inset(50%) !important;
}

.form-grid {
    display: grid;
    gap: 1rem;
    margin-block: 1.2rem;
}

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

.field label {
    font-size: 0.9rem;
    font-weight: 800;
}

.field small {
    color: var(--muted);
    line-height: 1.45;
}

input,
select {
    width: 100%;
    min-height: 3rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #bdd0c7;
    border-radius: 11px;
    color: var(--ink);
    background: var(--surface);
}

.input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 7rem;
    gap: 0.6rem;
}

.custom-target {
    display: none;
}

.custom-target.is-visible {
    display: grid;
}

.status {
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 11px;
    color: var(--muted);
    background: #f4f7f5;
    font-size: 0.88rem;
    line-height: 1.5;
}

.status[data-state="working"] {
    color: #76530a;
    background: #fff7df;
}

.status[data-state="success"] {
    color: var(--success);
    background: #e9f8ef;
}

.status[data-state="error"] {
    color: var(--danger);
    background: #fff0f0;
}

.preview-stage {
    display: grid;
    min-height: 26rem;
    overflow: hidden;
    place-items: center;
    border-radius: 16px;
    background:
        linear-gradient(45deg, #e8efeb 25%, transparent 25%),
        linear-gradient(-45deg, #e8efeb 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #e8efeb 75%),
        linear-gradient(-45deg, transparent 75%, #e8efeb 75%),
        #f8faf9;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0;
    background-size: 20px 20px;
}

.preview-placeholder {
    display: grid;
    max-width: 17rem;
    justify-items: center;
    gap: 0.8rem;
    padding: 1rem;
    color: var(--muted);
    text-align: center;
}

.preview-placeholder svg {
    width: 3.2rem;
}

.preview-image {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 36rem;
    object-fit: contain;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    margin-block: 1rem;
}

.metric {
    display: grid;
    gap: 0.3rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfcfb;
}

.metric span {
    color: var(--muted);
    font-size: 0.72rem;
}

.metric strong {
    overflow-wrap: anywhere;
    font-size: 0.93rem;
}

.hidden {
    display: none !important;
}

.content-card {
    margin-top: 1rem;
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

.content-card h2 {
    max-width: 21ch;
}

.content-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.content-columns > div {
    padding: 1.2rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfcfb;
}

.content-columns p {
    margin-bottom: 0;
}

.faq h2 {
    margin-bottom: 1.5rem;
}

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

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

.faq summary {
    padding-block: 1.1rem;
    cursor: pointer;
    font-weight: 820;
}

.faq details p {
    max-width: 48rem;
    padding-bottom: 1rem;
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.55);
}

.footer-inner {
    display: flex;
    min-height: 8rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.footer-inner p {
    margin: 0;
}

.footer-brand .brand-mark {
    width: 2rem;
    height: 2rem;
    box-shadow: 3px 3px 0 var(--ink);
}

@media (max-width: 820px) {
    .hero,
    .tool-intro,
    .compressor {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-block: 4rem;
    }

    .privacy-card,
    .trust-note {
        max-width: 34rem;
    }

    .metrics,
    .content-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .wrap,
    .nav {
        width: min(100% - 1rem, 1120px);
    }

    .nav {
        min-height: 4rem;
    }

    .brand > span:last-child {
        display: none;
    }

    .footer-brand > span:last-child {
        display: inline;
    }

    .nav-link {
        min-height: 2.55rem;
        padding: 0.62rem 0.7rem;
    }

    .hero {
        gap: 2.5rem;
    }

    h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .tool-grid,
    .values,
    .metrics,
    .content-columns {
        grid-template-columns: 1fr;
    }

    .values {
        gap: 1px;
    }

    .tool-card {
        min-height: 19rem;
    }

    .tool-page {
        padding-top: 1rem;
    }

    .breadcrumb {
        margin-bottom: 2rem;
    }

    .preview-stage {
        min-height: 20rem;
    }

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

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
