/* ── Self-hosted fonts (WOFF2 — fastest format, no CDN round-trip) ── */

/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86GPwyKK58VXh.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/rP2Wp2ywxg089UriCZaSExdy3sGt9zz86GPwyKy58Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZ2IHSeH.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/webfonts/rP2Hp2ywxg089UriCZOIHQ.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/-nFnOHM81r4j6k0gjAW3mujVU2B2G_5x0ujy.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/webfonts/-nFnOHM81r4j6k0gjAW3mujVU2B2G_Bx0g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --blue-light: #dbeafe;
    --blue-mid: #93c5fd;
    --green: #16a34a;
    --green-light: #dcfce7;
    --amber: #d97706;
    --amber-light: #fef3c7;
    --red: #dc2626;
    --red-light: #fee2e2;
    --purple: #7c3aed;
    --purple-light: #ede9fe;
    --teal: #0d9488;
    --teal-light: #ccfbf1;
    --rose: #e11d48;
    --rose-light: #ffe4e6;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-raised: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 4px 10px -3px rgba(0, 0, 0, 0.05);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--slate-50);
    color: var(--slate-900);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════
       NAVBAR
    ═══════════════════════════ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--slate-200);
    gap: 16px;
    flex-wrap: wrap;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    max-height: 35px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
}

.logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--slate-900);
    line-height: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    text-decoration: none;
    color: var(--slate-600);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: background .18s, color .18s;
}

.nav-links a:hover {
    background: var(--slate-100);
    color: var(--slate-900);
}

.nav-links a.active {
    color: var(--blue);
}

.nav-cta {
    background: var(--blue);
    color: var(--white);
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 9px 18px;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    transition: background .18s, box-shadow .18s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-cta:hover {
    background: var(--blue-dark);
    box-shadow: 0 4px 14px rgba(37, 99, 235, .3);
}

/* ═══════════════════════════
       HERO
    ═══════════════════════════ */
.hero {
    padding: 72px 0 56px;
    text-align: center;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 40px;
    margin-bottom: 24px;
    letter-spacing: .02em;
    animation: fadeDown .5s ease both;
}

.hero-eyebrow svg {
    width: 13px;
    height: 13px;
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 400;
    line-height: 1.12;
    color: var(--slate-900);
    margin-bottom: 20px;
    animation: fadeDown .5s .08s ease both;
}

.hero h1 em {
    font-style: normal;
    color: var(--blue);
}

.hero-sub {
    font-size: clamp(15px, 2vw, 18px);
    color: var(--slate-500);
    max-width: 520px;
    margin: 0 auto 36px;
    line-height: 1.7;
    animation: fadeDown .5s .16s ease both;
}

/* Search bar */
.search-wrap {
    max-width: 520px;
    margin: 0 auto 48px;
    position: relative;
    animation: fadeDown .5s .22s ease both;
}

.search-input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    border: 1.5px solid var(--slate-300);
    border-radius: 40px;
    background: var(--white);
    color: var(--slate-900);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    box-shadow: var(--shadow-sm);
}

.search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.search-input::placeholder {
    color: var(--slate-400);
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    pointer-events: none;
}

.search-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

/* Stats row */
.stats-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    animation: fadeDown .5s .3s ease both;
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--slate-900);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: var(--slate-400);
    font-weight: 500;
    margin-top: 3px;
    letter-spacing: .02em;
}

/* ═══════════════════════════
       CATEGORY FILTER TABS
    ═══════════════════════════ */
.tools-section {
    padding: 0 0 64px;
}

.tools-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}

.tools-title {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: var(--slate-900);
}

.filter-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 7px 16px;
    border: 1.5px solid var(--slate-200);
    border-radius: 40px;
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--slate-600);
    cursor: pointer;
    transition: all .18s;
}

.filter-tab:hover {
    border-color: var(--blue);
    color: var(--blue);
    background: var(--blue-light);
}

.filter-tab.active {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

/* ═══════════════════════════
       TOOL CARDS GRID
    ═══════════════════════════ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.tool-card {
    background: var(--white);
    border: 1px solid #e8edf5;
    border-radius: var(--radius-lg);
    padding: 24px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--blue));
    opacity: 0;
    transition: opacity .2s;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-raised);
    border-color: transparent;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.disabled {
    cursor: default;
}

.tool-card.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-card);
    border-color: #e8edf5;
}

.tool-card.disabled:hover::before {
    opacity: 0;
}

.tool-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}

.tool-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.badge-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 40px;
    white-space: nowrap;
    letter-spacing: .03em;
}

.badge-live {
    background: var(--green-light);
    color: #166534;
}

.badge-soon {
    background: var(--amber-light);
    color: #92400e;
}

.badge-planned {
    background: var(--slate-100);
    color: var(--slate-500);
}

.badge-popular {
    background: var(--rose-light);
    color: #9f1239;
}

.badge-new {
    background: var(--purple-light);
    color: #5b21b6;
}

.tool-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-900);
    margin-bottom: 7px;
    line-height: 1.3;
}

.tool-card p {
    font-size: 13px;
    color: var(--slate-500);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--slate-100);
    font-size: 12px;
    color: var(--slate-400);
}

.card-footer-tag {
    display: flex;
    align-items: center;
    gap: 5px;
}

.card-footer-tag svg {
    width: 12px;
    height: 12px;
}

.card-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--slate-200);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-400);
    transition: all .2s;
}

.tool-card:not(.disabled):hover .card-arrow {
    background: var(--blue);
    border-color: var(--blue);
    color: var(--white);
}

.card-arrow svg {
    width: 13px;
    height: 13px;
}

.no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 48px 24px;
    color: var(--slate-400);
    font-size: 15px;
}

.no-results strong {
    color: var(--slate-600);
    display: block;
    margin-bottom: 6px;
    font-size: 17px;
}

/* ═══════════════════════════
       WHY CALCMETER (about strip)
    ═══════════════════════════ */
.why-section {
    background: var(--white);
    border: 1px solid #e8edf5;
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    margin-bottom: 64px;
    box-shadow: var(--shadow-card);
}

.why-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.why-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--slate-900);
    margin-bottom: 14px;
    line-height: 1.25;
}

.why-text p {
    font-size: 15px;
    color: var(--slate-500);
    line-height: 1.7;
    margin-bottom: 12px;
}

.why-text a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

.why-text a:hover {
    text-decoration: underline;
}

.why-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pillar {
    background: var(--slate-50);
    border-radius: var(--radius-md);
    padding: 16px;
    border: 1px solid var(--slate-100);
}

.pillar-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.pillar-icon svg {
    width: 16px;
    height: 16px;
}

.pillar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 4px;
}

.pillar-desc {
    font-size: 12px;
    color: var(--slate-500);
    line-height: 1.5;
}

/* ═══════════════════════════
       NEWSLETTER (like nextastrology email capture)
    ═══════════════════════════ */
.newsletter {
    background: var(--slate-900);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    margin-bottom: 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(37, 99, 235, .25) 0%, transparent 70%);
    pointer-events: none;
}

.newsletter h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(22px, 3.5vw, 32px);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 10px;
    position: relative;
}

.newsletter p {
    font-size: 15px;
    color: var(--slate-400);
    margin-bottom: 28px;
    position: relative;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 220px;
    padding: 14px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    border: 1.5px solid rgba(255, 255, 255, .12);
    border-radius: 40px;
    background: rgba(255, 255, 255, .07);
    color: var(--white);
    outline: none;
    transition: border-color .2s;
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, .35);
}

.newsletter-input:focus {
    border-color: var(--blue-mid);
}

.newsletter-btn {
    padding: 14px 24px;
    background: var(--blue);
    color: var(--white);
    border: none;
    border-radius: 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s, box-shadow .18s;
    white-space: nowrap;
}

.newsletter-btn:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 20px rgba(37, 99, 235, .4);
}

.newsletter-note {
    font-size: 12px;
    color: rgba(255, 255, 255, .3);
    margin-top: 14px;
    position: relative;
}

/* Footer styles live in /footer.html (injected by /js/components.js) */

/* ═══════════════════════════
       TOAST
    ═══════════════════════════ */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: var(--slate-900);
    color: var(--white);
    padding: 13px 22px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .2);
    z-index: 999;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast svg {
    width: 16px;
    height: 16px;
    color: var(--blue-mid);
    flex-shrink: 0;
}

/* ═══════════════════════════
       ANIMATIONS
    ═══════════════════════════ */
@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeUp .45s ease forwards;
}

/* ═══════════════════════════
       RESPONSIVE
    ═══════════════════════════ */
@media (max-width: 800px) {
    .why-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 560px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding: 48px 0 40px;
    }

    .stats-row {
        gap: 24px;
    }

    .why-section {
        padding: 32px 20px;
    }

    .newsletter {
        padding: 36px 20px;
    }

    .tools-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ═══════════════════════════
       PERFORMANCE: reduced motion
   ═══════════════════════════ */
/* Disable heavy animations for users who prefer reduced motion
   AND on mobile where animations hurt LCP / TBT scores */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* On narrow mobile, skip entrance animations entirely to reduce TBT */
@media (max-width: 480px) {
    .hero-eyebrow,
    .hero h1,
    .hero-sub,
    .search-wrap,
    .stats-row {
        animation: none;
        opacity: 1;
    }

    .animate-up {
        animation: none;
        opacity: 1;
    }

    /* Disable card hover lift on touch — saves paint on scroll */
    .tool-card:hover {
        transform: none;
    }
}