:root {
    --bg: #f8f4e8;
    --surface: #ffffff;
    --surface-soft: #ede7d8;
    --ink: #101820;
    --muted: #68716e;
    --line: #ded6c5;
    --primary: #0f766e;
    --primary-dark: #0b4f4a;
    --accent: #d45d4c;
    --gold: #e6b84c;
    --blue: #255f85;
    --shadow: 0 18px 44px rgba(16, 24, 32, 0.12);
    --shadow-soft: 0 8px 24px rgba(16, 24, 32, 0.08);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px),
        linear-gradient(180deg, rgba(16, 24, 32, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 72%);
}

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

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.narrow {
    width: min(780px, calc(100% - 32px));
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid rgba(222, 214, 197, 0.92);
    background: rgba(248, 244, 232, 0.9);
    backdrop-filter: blur(16px);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand img {
    width: 248px;
    height: 48px;
}

.brand-mark,
.logo-fallback {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    font-weight: 800;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

nav a {
    border-radius: 999px;
    padding: 8px 10px;
}

nav a:hover {
    background: rgba(16, 24, 32, 0.06);
    color: var(--ink);
}

.hero,
.section {
    padding: 72px 0;
}

.hero {
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fbf7ed 0%, #f8f4e8 100%);
}

.page-hero {
    padding-bottom: 48px;
}

.hero-grid,
.tool-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 36px;
    align-items: center;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(2.65rem, 6vw, 5.25rem);
    line-height: 1;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 16px;
    font-size: 1.65rem;
    line-height: 1.18;
}

h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
}

.lead {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 1.15rem;
}

.search-box {
    margin-top: 30px;
}

.search-box input {
    width: min(620px, 100%);
    min-height: 54px;
    border: 1px solid rgba(16, 24, 32, 0.12);
    border-radius: 12px;
    padding: 0 18px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    box-shadow: var(--shadow-soft);
}

.search-box input:focus {
    outline: 3px solid rgba(15, 118, 110, 0.16);
    border-color: var(--primary);
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.trust-strip span {
    border: 1px solid rgba(16, 24, 32, 0.1);
    border-radius: 999px;
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--muted);
    font-size: 0.88rem;
}

.hero-panel,
.summary-panel,
.side-cta,
.compare-card {
    border: 1px solid rgba(16, 24, 32, 0.1);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.hero-panel {
    display: block;
    padding: 26px;
    background: #101820;
    color: #f8f4e8;
}

.hero-panel span {
    color: rgba(248, 244, 232, 0.7);
}

.spotlight-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 18px;
}

.spotlight-head img {
    width: 62px;
    height: 62px;
}

.spotlight-head strong {
    display: block;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1;
}

.hero-panel p {
    color: rgba(248, 244, 232, 0.82);
}

.spotlight-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 22px 0;
}

.spotlight-stats div {
    border: 1px solid rgba(248, 244, 232, 0.12);
    border-radius: 10px;
    padding: 12px;
    background: rgba(248, 244, 232, 0.06);
}

.spotlight-stats dt {
    color: rgba(248, 244, 232, 0.62);
}

.spotlight-stats dd {
    color: #ffffff;
    font-weight: 900;
    margin-bottom: 0;
}

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

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

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

.category-link,
.tool-card {
    border: 1px solid rgba(16, 24, 32, 0.1);
    border-radius: 12px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-link:hover,
.tool-card:hover {
    border-color: rgba(15, 118, 110, 0.32);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.category-link {
    min-height: 148px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
}

.category-link strong {
    font-size: 1.1rem;
}

.category-link span,
.tool-card p,
.compare-card p,
.side-cta p {
    color: var(--muted);
}

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 320px;
    padding: 22px;
}

.tool-card[hidden] {
    display: none;
}

.tool-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.tool-logo {
    flex: 0 0 auto;
}

.tool-logo.large .logo-fallback {
    width: 76px;
    height: 76px;
    font-size: 1.25rem;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    padding-top: 18px;
}

.meta-row span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--muted);
    font-size: 0.82rem;
}

.card-actions,
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.button,
.filter {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid transparent;
    padding: 0 16px;
    font-weight: 800;
    font: inherit;
    cursor: pointer;
}

.button.primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

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

.button.secondary,
.filter {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
}

.button.secondary:hover,
.filter:hover {
    border-color: rgba(16, 24, 32, 0.24);
}

.button.full {
    width: 100%;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.summary-panel,
.side-cta,
.compare-card {
    padding: 24px;
}

dl {
    margin: 18px 0 0;
}

dt {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 2px 0 14px;
}

.mini-disclosure,
.disclosure {
    color: var(--muted);
    font-size: 0.9rem;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 32px;
    align-items: start;
}

.content {
    max-width: 780px;
}

.content h2 {
    margin-top: 34px;
}

.content h2:first-child {
    margin-top: 0;
}

.check-list,
.content ul {
    padding-left: 20px;
}

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

.use-case-grid,
.pricing-table {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 6px;
}

.use-case-grid div,
.pricing-table div,
.verdict-box,
.conversion-band {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.use-case-grid div,
.pricing-table div {
    padding: 16px;
}

.use-case-grid strong,
.pricing-table strong {
    display: block;
    margin-bottom: 6px;
}

.use-case-grid span,
.pricing-table small,
.source-note,
.affiliate-note {
    color: var(--muted);
    font-size: 0.92rem;
}

.pricing-table span {
    display: block;
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 900;
    margin-bottom: 4px;
}

.conversion-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 34px 0;
    padding: 22px;
    background: #fff7df;
}

.conversion-band h2 {
    margin-bottom: 8px;
}

.conversion-band p:last-child {
    margin-bottom: 0;
}

.verdict-box {
    padding: 20px;
}

.verdict-box p {
    margin-top: 0;
}

.verdict-box a {
    color: var(--primary);
    font-weight: 900;
}

.mini-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mini-list a {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    background: var(--surface);
}

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

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

.side-cta {
    position: sticky;
    top: 96px;
}

.compare-grid {
    margin-bottom: 44px;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 28px;
}

@media (max-width: 860px) {
    .nav,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .brand img {
        width: 196px;
        height: auto;
    }

    .hero-grid,
    .tool-hero,
    .content-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-grid,
    .tool-grid,
    .use-case-grid,
    .pricing-table,
    .two-col,
    .compare-grid {
        grid-template-columns: 1fr;
    }

    .conversion-band {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .section {
        padding: 48px 0;
    }

    .side-cta {
        position: static;
    }
}
