:root {
    --accent: #0f7a66;
    --accent-hover: #0c6554;
    --foam: #fbf8f1;
    --paper: #f3efe4;
    --paper-2: #e7f0ea;
    --ink: #14231f;
    --ink-soft: #2c4039;
    --line: rgba(20, 35, 31, 0.12);
    --radius: 22px;
    --shadow: 0 24px 60px rgba(20, 35, 31, 0.12);
    --font-display: "Fraunces", Georgia, serif;
    --font-sans: "Manrope", sans-serif;
    --word: #2b579a;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--font-sans);
    color: var(--ink);
    background:
        radial-gradient(900px 420px at 85% -10%, #dceee6 0%, transparent 55%),
        var(--paper);
    line-height: 1.55;
    min-height: 100vh;
}

a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 0.6rem; }
h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
h2 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--ink-soft); }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header { padding: 1.1rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.brand-mark { display: flex; }
.brand-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.brand-badge {
    background: var(--accent);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.5rem;
    border-radius: 999px;
}

.nav-tools { position: relative; }
.nav-tools summary {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
}
.nav-tools summary::-webkit-details-marker { display: none; }
.nav-tools summary::after { content: " ▾"; font-size: 0.75em; }
.nav-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    min-width: 180px;
    padding: 0.4rem;
    box-shadow: var(--shadow);
    z-index: 5;
}
.nav-panel a { display: block; text-decoration: none; padding: 0.55rem 0.7rem; border-radius: 10px; }
.nav-panel a:hover { background: var(--paper); }

.hero { padding: 2.2rem 0 1rem; }
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--paper-2);
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.9rem;
}
.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 36rem; }

.converter-card {
    background: #fff;
    border-radius: 28px;
    box-shadow: var(--shadow);
    padding: 1.2rem;
}
.dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 230px;
    border: 2px dashed rgba(15, 122, 102, 0.45);
    border-radius: 20px;
    background: #f7fbf8;
    cursor: pointer;
    text-align: center;
    padding: 1.5rem;
}
.dropzone.is-over { background: var(--paper-2); border-color: var(--accent); }
.drop-plus {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 2rem;
    line-height: 48px;
    margin-bottom: 0.4rem;
}
.drop-title { font-weight: 700; }
.drop-hint, .file-name { color: var(--ink-soft); font-size: 0.92rem; }
.file-name { font-weight: 600; color: var(--ink); }
.text-btn {
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0.3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.2rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    margin-top: 0.9rem;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.form-error { color: #9b1c1c; font-size: 0.92rem; margin: 0.7rem 0 0; }

.converter-progress, .converter-done { text-align: center; padding: 2rem 0.5rem; }
.spinner {
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    border: 4px solid var(--paper-2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.steps, .more { padding: 3rem 0; }
.step-grid, .tool-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1.2rem;
}
.step-grid article, .tool-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 1.2rem 1.15rem;
    box-shadow: 0 8px 24px rgba(20, 35, 31, 0.05);
}
.step-grid span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.6rem;
}
.tool-grid { grid-template-columns: repeat(2, 1fr); }
.tool-card { text-decoration: none; color: inherit; display: block; }
.tool-card.is-soon { opacity: 0.72; }
.tool-icon {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 800;
    margin-bottom: 0.8rem;
}
.tool-icon-word { background: var(--word); }
.tool-icon-soon { background: #6b7c76; }

.legal { padding: 2.5rem 0 4rem; max-width: 720px; }
.legal h1 { margin-bottom: 1rem; }

.site-footer {
    padding: 2.5rem 0 1.5rem;
    border-top: 1px solid var(--line);
    background: rgba(251, 248, 241, 0.7);
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
}
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.footer-label { font-weight: 700; margin-bottom: 0.4rem; }
.site-footer a { display: block; text-decoration: none; color: var(--ink-soft); margin: 0.25rem 0; }
.footer-copy { color: var(--ink-soft); font-size: 0.9rem; padding-top: 1.2rem; }

@media (max-width: 860px) {
    .hero-grid, .step-grid, .tool-grid, .footer-inner { grid-template-columns: 1fr; }
    .hero { padding-top: 1rem; }
}
