:root {
    --bg: #f5f0e8;
    --panel: #fffaf2;
    --panel-strong: #ffffff;
    --text: #263238;
    --muted: #60717d;
    --line: rgba(38, 50, 56, 0.12);
    --accent: #6f4e37;
    --accent-dark: #4b3324;
    --soft: #eadfce;
    --shadow: 0 16px 40px rgba(44, 35, 28, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,.9), transparent 34rem),
        linear-gradient(135deg, #f8f2e8 0%, #ece4d8 45%, #f6efe6 100%);
    color: var(--text);
}

a {
    color: inherit;
}

.page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0 52px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .8fr);
    gap: 24px;
    align-items: stretch;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        linear-gradient(135deg, rgba(255,255,255,.72), rgba(255,250,242,.94)),
        repeating-linear-gradient(45deg, rgba(111,78,55,.04) 0 10px, transparent 10px 22px);
    box-shadow: var(--shadow);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .82rem;
}

h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.02;
    max-width: 820px;
}

.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.16rem;
    line-height: 1.65;
    margin: 18px 0 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(75, 51, 36, .22);
    background: rgba(255,255,255,.74);
    text-decoration: none;
    font-weight: 800;
}

.btn.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.hero-card {
    background: rgba(255,255,255,.76);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px;
}

.hero-card h2 {
    margin: 0 0 12px;
}

.hero-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
    line-height: 1.75;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin: 34px 0 18px;
}

.section-head h2,
.notes h2 {
    margin: 0;
    font-size: 1.7rem;
}

.section-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    display: flex;
    flex-direction: column;
    min-height: 235px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255,255,255,.78);
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(44, 35, 28, .07);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(44, 35, 28, .12);
    border-color: rgba(111,78,55,.35);
}

.muted-card {
    cursor: default;
    opacity: .82;
}

.muted-card:hover {
    transform: none;
}

.tool-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.tool-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--soft);
    font-size: 1.45rem;
}

.status {
    font-size: .75rem;
    font-weight: 800;
    color: var(--accent-dark);
    background: #f1e5d4;
    padding: 6px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.tag {
    margin: 18px 0 5px;
    color: var(--accent);
    font-weight: 800;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.tool-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.tool-card p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.48;
}

.notes {
    margin-top: 28px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.62);
}

.notes p {
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 0;
}

@media (max-width: 980px) {
    .hero,
    .tool-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 22px, 1180px);
        padding-top: 18px;
    }

    .hero {
        padding: 22px;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }
}