:root {
    --ath-tools-bg: #f5f7f2;
    --ath-tools-panel: #ffffff;
    --ath-tools-ink: #152418;
    --ath-tools-muted: #55645a;
    --ath-tools-border: #d6e0d7;
    --ath-tools-accent: #0f766e;
    --ath-tools-accent-dark: #115e59;
    --ath-tools-soft: #e6f4f1;
    --ath-tools-highlight: #f3ede1;
    --ath-tools-shadow: 0 18px 40px rgba(21, 36, 24, 0.08);
}

* { box-sizing: border-box; }
body.ath-tools-page {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--ath-tools-ink);
    background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.08), transparent 34%),
        linear-gradient(180deg, #fbfcf8 0%, var(--ath-tools-bg) 100%);
}
a { color: var(--ath-tools-accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.ath-tools-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.ath-tools-sitebar {
    position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px);
    background: rgba(251, 252, 248, 0.92); border-bottom: 1px solid rgba(214, 224, 215, 0.9);
}
.ath-tools-sitebar__inner {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.9rem 0;
}
.ath-tools-brand {
    font-size: 1.2rem; font-weight: 700; letter-spacing: 0.02em;
}
.ath-tools-nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.ath-tools-nav a { color: var(--ath-tools-muted); font-size: 0.98rem; }
.ath-tools-hero, .ath-tools-section, .ath-tools-offer, .ath-tools-workbench {
    margin: 1.4rem 0 0;
}
.ath-tools-hero {
    background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(230,244,241,0.85));
    border: 1px solid rgba(214, 224, 215, 0.95);
    border-radius: 28px;
    box-shadow: var(--ath-tools-shadow);
    padding: 2rem;
}
.ath-tools-breadcrumbs {
    color: var(--ath-tools-muted);
    font-size: 0.92rem;
    margin-bottom: 1rem;
}
.ath-tools-breadcrumbs span { margin: 0 0.3rem; }
.ath-tools-hero__eyebrow, .ath-tools-section__eyebrow, .ath-tools-card__eyebrow,
.ath-tools-category-card__eyebrow, .ath-tools-offer__eyebrow, .ath-tools-serp-preview__url {
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: #5d7466;
}
.ath-tools-hero h1 { margin: 0 0 0.9rem; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.06; }
.ath-tools-hero__lede { font-size: 1.12rem; margin: 0 0 0.8rem; max-width: 70ch; }
.ath-tools-hero__summary, .ath-tools-section__header p { color: var(--ath-tools-muted); max-width: 74ch; }
.ath-tools-hero__meta {
    display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.2rem;
}
.ath-tools-pill {
    display: inline-flex; align-items: center; padding: 0.55rem 0.9rem; border-radius: 999px;
    border: 1px solid #c6ddd6; background: rgba(255,255,255,0.9); color: #1a433f; font-size: 0.9rem;
}
.ath-tools-section, .ath-tools-offer, .ath-tools-panel {
    background: var(--ath-tools-panel);
    border: 1px solid var(--ath-tools-border);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: var(--ath-tools-shadow);
}
.ath-tools-trust-strip {
    display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem;
}
.ath-tools-mini-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(243, 237, 225, 0.72));
    border: 1px solid #d9dfd2; border-radius: 22px; padding: 1.25rem; box-shadow: var(--ath-tools-shadow);
}
.ath-tools-mini-card h2 {
    margin: 0.3rem 0 0.75rem; font-size: 1.15rem; line-height: 1.28;
}
.ath-tools-mini-card__eyebrow {
    text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; color: #5d7466; margin: 0;
}
.ath-tools-mini-list {
    margin: 0; padding-left: 1.1rem; color: var(--ath-tools-muted);
}
.ath-tools-mini-list li { margin-bottom: 0.55rem; }
.ath-tools-section__header h2, .ath-tools-panel h2, .ath-tools-result__header h2 { margin: 0.2rem 0 0.6rem; }
.ath-tools-category-grid, .ath-tools-card-grid, .ath-tools-article-grid {
    display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.ath-tools-link-grid {
    display: flex; flex-wrap: wrap; gap: 0.75rem;
}
.ath-tools-inline-link {
    display: inline-flex; align-items: center; padding: 0.7rem 1rem;
    border-radius: 999px; background: var(--ath-tools-soft); border: 1px solid #cfe3de;
}
.ath-tools-category-card, .ath-tools-card, .ath-tools-article-card {
    border: 1px solid var(--ath-tools-border); border-radius: 20px; background: #fff; padding: 1.2rem;
}
.ath-tools-card { display: flex; flex-direction: column; justify-content: space-between; min-height: 100%; }
.ath-tools-card__title, .ath-tools-category-card h3, .ath-tools-article-card h3 { margin: 0.3rem 0 0.75rem; font-size: 1.16rem; }
.ath-tools-card__description, .ath-tools-category-card p, .ath-tools-article-card p { color: var(--ath-tools-muted); }
.ath-tools-card__footer { margin-top: 1rem; }
.ath-tools-card__cta {
    display: inline-flex; padding: 0.7rem 1rem; border-radius: 999px;
    background: var(--ath-tools-highlight); color: var(--ath-tools-ink); font-weight: 600;
}
.ath-tools-workbench {
    display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 1rem; align-items: start;
}
.ath-tools-panel--result { position: sticky; top: 5.6rem; }
.ath-tools-steps {
    display: grid; gap: 0.75rem; margin: 0 0 1.1rem;
}
.ath-tools-step {
    display: grid; grid-template-columns: 2.1rem 1fr; gap: 0.8rem; align-items: start;
    padding: 0.85rem 0.95rem; border-radius: 18px; border: 1px solid #d7e3da; background: #f7fbf8;
}
.ath-tools-step span {
    display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem;
    border-radius: 999px; background: var(--ath-tools-accent); color: #fff; font-weight: 700;
}
.ath-tools-step p {
    margin: 0.15rem 0 0; color: var(--ath-tools-muted); font-weight: 400;
}
.ath-tools-form { display: grid; gap: 1rem; }
.ath-tools-form label { display: grid; gap: 0.45rem; font-weight: 600; }
.ath-tools-form span { font-size: 0.95rem; }
.ath-tools-form input, .ath-tools-form textarea, .ath-tools-form select {
    width: 100%; border: 1px solid #bfd0c4; border-radius: 16px; padding: 0.9rem 1rem;
    font: inherit; color: var(--ath-tools-ink); background: #fff;
}
.ath-tools-form textarea { resize: vertical; min-height: 110px; }
.ath-tools-form__actions, .ath-tools-checks { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.ath-tools-checks label { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 400; }
.ath-tools-button, .ath-tools-copy {
    border: 0; border-radius: 999px; padding: 0.85rem 1.15rem; font: inherit; cursor: pointer;
}
.ath-tools-button--primary, .ath-tools-button--accent, .ath-tools-copy {
    background: var(--ath-tools-accent); color: #fff;
}
.ath-tools-button--ghost { background: var(--ath-tools-highlight); color: var(--ath-tools-ink); }
.ath-tools-result {
    background: linear-gradient(180deg, #ffffff, #f7fbf9);
    border: 1px solid var(--ath-tools-border); border-radius: 20px; padding: 1rem;
}
.ath-tools-result--empty { color: var(--ath-tools-muted); }
.ath-tools-result__header {
    display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1rem;
}
.ath-tools-result__body pre {
    margin: 0; white-space: pre-wrap; word-break: break-word; background: #f2f7f4;
    border: 1px solid #d9e5de; border-radius: 16px; padding: 1rem; font-family: Consolas, monospace;
}
.ath-tools-result-help {
    margin-top: 1rem; padding-top: 1rem; border-top: 1px dashed #cfe0d4;
}
.ath-tools-result-help h3 { margin: 0 0 0.6rem; font-size: 1rem; }
.ath-tools-serp-preview {
    border: 1px solid var(--ath-tools-border); border-radius: 16px; padding: 1rem; background: #fff; margin-bottom: 1rem;
}
.ath-tools-serp-preview__title { color: #1a0dab; margin: 0 0 0.35rem; font-size: 1.08rem; }
.ath-tools-serp-preview__description, .ath-tools-note { color: var(--ath-tools-muted); }
.ath-tools-list { padding-left: 1.2rem; }
.ath-tools-list li { margin-bottom: 0.65rem; }
.ath-tools-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; }
.ath-tools-faq-list { display: grid; gap: 0.75rem; }
.ath-tools-faq-item {
    border: 1px solid var(--ath-tools-border); border-radius: 16px; padding: 1rem; background: #fff;
}
.ath-tools-faq-item summary { cursor: pointer; font-weight: 600; }
.ath-tools-offer h3 { margin: 0.3rem 0 0.6rem; }
.ath-tools-guidance-grid {
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr); gap: 1rem; align-items: start;
}
.ath-tools-example-box {
    border: 1px solid #d6e2d8; border-radius: 18px; background: #fbfcfa; padding: 1rem;
}
.ath-tools-example-box h3 { margin-top: 0; }
.ath-tools-footer {
    margin-top: 2rem; padding: 2rem 0 3rem; color: var(--ath-tools-muted); text-align: center;
}

@media (max-width: 920px) {
    .ath-tools-workbench { grid-template-columns: 1fr; }
    .ath-tools-panel--result { position: static; }
    .ath-tools-trust-strip, .ath-tools-guidance-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .ath-tools-shell { width: min(100% - 1rem, 1180px); }
    .ath-tools-sitebar__inner { flex-direction: column; align-items: flex-start; }
    .ath-tools-hero, .ath-tools-section, .ath-tools-offer, .ath-tools-panel { padding: 1.15rem; border-radius: 20px; }
    .ath-tools-result__header { flex-direction: column; align-items: flex-start; }
    .ath-tools-trust-strip { grid-template-columns: 1fr; }
}
