/* ============================================================
   AGENOVATION v3 - Refined Premium Advisory
   Warm paper + deep navy. Serif display, Inter body.
   Homepage (EN + DE) only. Subpages keep styles.css.
   ============================================================ */

:root {
    --paper: #F8F4ED;
    --paper-alt: #F1EBE0;
    --white: #FFFFFF;
    --ink: #16304B;
    --ink-soft: #3A4E66;
    --ink-faint: #6B7B8E;
    --navy: #1F4E79;
    --navy-deep: #142E4A;
    --navy-deeper: #0F2438;
    --accent: #B8702E;
    --accent-soft: #E8D9C4;
    --line: #E3DCCE;
    --line-strong: #D2C9B6;
    --success: #1C7C54;
    --error: #C03434;

    --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --shadow-sm: 0 1px 3px rgba(22, 48, 75, 0.07);
    --shadow-md: 0 4px 16px rgba(22, 48, 75, 0.09);
    --shadow-lg: 0 12px 40px rgba(22, 48, 75, 0.14);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --container: 1160px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
    font-family: var(--font-body);
    background: var(--paper);
    color: var(--ink-soft);
    line-height: 1.65;
    font-size: 1.0625rem;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.funnel-open { overflow: hidden; }

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

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; font-weight: 600; }
h4, h5, h6 { color: var(--ink); }

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

::selection { background: rgba(31, 78, 121, 0.18); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }

/* ---- Reveal animations ---- */
.section-animate { opacity: 0; transform: translateY(14px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.section-animate.is-visible { opacity: 1; transform: none; }
html:not(.js) .section-animate { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .section-animate { opacity: 1; transform: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 60;
    background: rgba(248, 244, 237, 0.97);
    border-bottom: 1px solid var(--line);
}

.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-header__brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.site-header__brand img { width: 46px; height: 46px; border-radius: 10px; }
.site-header__brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.18rem;
    color: var(--ink);
    letter-spacing: 0.01em;
}
.site-header__brand-sub {
    display: block;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--accent);
    margin-top: -2px;
}

.site-header__nav { display: flex; gap: 24px; margin-left: auto; }
.site-header__nav a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    white-space: nowrap;
}
.site-header__nav a:hover { color: var(--navy); }

.site-header__actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.lang-switcher { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--white); }
.lang-switcher a {
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-faint);
    letter-spacing: 0.04em;
}
.lang-switcher a.is-active { background: var(--navy); color: var(--white); }
.lang-switcher a:hover:not(.is-active) { color: var(--navy); }

.site-header__cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 9px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s, transform 0.2s;
}
.site-header__cta:hover { background: var(--navy-deep); transform: translateY(-1px); }

@media (max-width: 1020px) { .site-header__nav { display: none; } }
@media (max-width: 560px) {
    .site-header__cta { display: none; }
    .site-header__brand-sub { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    padding: 150px 0 72px;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero__bg svg { width: 100%; height: 100%; }

.hero__grid {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: center;
}

.hero__kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}
.hero__kicker::before {
    content: '';
    width: 26px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.hero__title {
    font-size: clamp(2.3rem, 4.6vw, 3.55rem);
    letter-spacing: -0.015em;
    margin-bottom: 22px;
    max-width: 15ch;
}

.hero__subtitle {
    font-size: 1.18rem;
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 50ch;
    margin-bottom: 30px;
}

.hero__cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.hero__alt-line {
    font-size: 0.92rem;
    color: var(--ink-faint);
    margin-bottom: 10px;
}
.hero__alt-line button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--navy);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.hero__alt-line button:hover { color: var(--accent); }
.hero__alt-line a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.hero__capacity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.hero__capacity::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(28, 124, 84, 0.15);
}

/* Portrait card */
.hero__card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 26px;
    max-width: 400px;
    margin-left: auto;
    position: relative;
}
.hero__card::before {
    content: '';
    position: absolute;
    top: -14px; right: -14px;
    width: 112px; height: 112px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    z-index: -1;
}
.hero__card img.hero__portrait {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.04;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.hero__card-name {
    font-family: var(--font-display);
    font-size: 1.22rem;
    font-weight: 700;
    color: var(--ink);
    margin-top: 18px;
}
.hero__card-role { font-size: 0.88rem; color: var(--ink-faint); margin-top: 2px; }

.hero__card-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hero__card-chips span {
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--navy);
    background: rgba(31, 78, 121, 0.07);
    border: 1px solid rgba(31, 78, 121, 0.14);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

@media (max-width: 920px) {
    .hero { padding-top: 120px; }
    .hero__grid { grid-template-columns: 1fr; gap: 40px; }
    .hero__card { margin: 0 auto; }
    .hero__title { max-width: none; }
}

/* ---- Buttons ---- */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--navy);
    color: var(--white) !important;
    border: 1px solid var(--navy);
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cta-button:hover { background: var(--navy-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.cta-button--ghost {
    background: var(--white);
    color: var(--navy) !important;
    border: 1px solid var(--line-strong);
}
.cta-button--ghost:hover { background: var(--paper-alt); border-color: var(--navy); }

.cta-button--light {
    background: var(--white);
    color: var(--navy-deep) !important;
    border-color: var(--white);
}
.cta-button--light:hover { background: var(--paper); }

.cta-button.is-loading { opacity: 0.7; pointer-events: none; position: relative; }
.cta-button.is-loading::after {
    content: '';
    width: 16px; height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   STAT BAND
   ============================================================ */
.stat-band {
    background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy-deep) 60%, #1A3A5C 100%);
    padding: 52px 0;
    position: relative;
    overflow: hidden;
}
.stat-band::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}
.stat-band__grid {
    position: relative;
    z-index: 1;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat-band__item { text-align: center; }
.stat-band__value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
}
.stat-band__label {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 6px;
    line-height: 1.4;
}
@media (max-width: 760px) {
    .stat-band__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
}

/* ============================================================
   SECTIONS (generic)
   ============================================================ */
.section { padding: 92px 0; }
.section--alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__kicker {
    display: block;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}
.section__title { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: -0.01em; margin-bottom: 16px; }
.section__lead { font-size: 1.08rem; color: var(--ink-soft); }

/* ============================================================
   ENTRY POINTS
   ============================================================ */
.entry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.entry-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.25s;
    color: var(--ink-soft);
}
.entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--navy); color: var(--ink-soft); }

.entry-card__icon {
    width: 46px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(31, 78, 121, 0.08);
    color: var(--navy);
    margin-bottom: 16px;
}
.entry-card__icon svg { width: 24px; height: 24px; }
.entry-card h3 { font-family: var(--font-body); font-size: 1.04rem; font-weight: 700; margin-bottom: 8px; }
.entry-card p { font-size: 0.92rem; line-height: 1.55; }
.entry-card__more {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--navy);
}
.entry-card:hover .entry-card__more { color: var(--accent); }

@media (max-width: 920px) { .entry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .entry-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.case-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.case-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.case-card__metric {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1;
}
.case-card__metric small { font-size: 1rem; font-weight: 600; color: var(--ink-faint); }
.case-card__tag {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.case-card h3 { font-size: 1.18rem; margin: 10px 0 14px; }
.case-card ul { list-style: none; margin-bottom: 18px; }
.case-card li {
    font-size: 0.93rem;
    padding-left: 22px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.5;
}
.case-card li::before {
    content: '';
    position: absolute;
    left: 0; top: 8px;
    width: 12px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.case-card__link { margin-top: auto; font-size: 0.92rem; font-weight: 600; }

@media (max-width: 760px) { .case-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}
.testimonial-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.testimonial-card__quote-mark {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 0.6;
    color: var(--accent);
    opacity: 0.55;
    margin-bottom: 16px;
}
.testimonial-card__text {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink-soft);
    font-style: italic;
    margin-bottom: 22px;
}
.testimonial-card__person { display: flex; align-items: center; gap: 13px; margin-top: auto; }
.testimonial-card__avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; color: var(--ink); font-size: 0.97rem; line-height: 1.3; }
.testimonial-card__role { font-size: 0.83rem; color: var(--ink-faint); line-height: 1.4; }

@media (max-width: 760px) { .testimonial-grid { grid-template-columns: 1fr; } }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: linear-gradient(135deg, var(--navy-deeper) 0%, var(--navy-deep) 55%, #1A3A5C 100%);
    padding: 84px 0;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    top: -120px; right: -80px;
    width: 380px; height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 112, 46, 0.22), transparent 65%);
    pointer-events: none;
}
.cta-band__inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 0 28px;
    text-align: center;
}
.cta-band h2 {
    color: var(--white);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 14px;
}
.cta-band p { color: rgba(255, 255, 255, 0.78); font-size: 1.05rem; margin-bottom: 30px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 20px; }
.cta-band__alt { font-size: 0.9rem; color: rgba(255, 255, 255, 0.62); }
.cta-band__alt button {
    background: none; border: none; padding: 0;
    font: inherit; font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cta-band__alt button:hover { color: var(--white); }
.cta-band__alt a { color: rgba(255, 255, 255, 0.92); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-band__alt a:hover { color: var(--white); }
.cta-band__capacity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.72);
}
.cta-band__capacity::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #3DD68C;
    box-shadow: 0 0 0 4px rgba(61, 214, 140, 0.18);
}

/* ============================================================
   ABOUT + SERVICES
   ============================================================ */
.about__intro {
    display: grid;
    grid-template-columns: 116px 1fr;
    gap: 30px;
    align-items: start;
    max-width: 860px;
    margin: 0 auto 60px;
}
.about__intro img {
    width: 116px; height: 116px;
    object-fit: cover;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.about__intro p { font-size: 1.02rem; line-height: 1.7; }
.about__intro p strong { color: var(--ink); }
@media (max-width: 640px) {
    .about__intro { grid-template-columns: 1fr; }
    .about__intro img { margin: 0 auto; }
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 26px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card__icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent);
    margin-bottom: 16px;
}
.service-card__icon svg { width: 23px; height: 23px; }
.service-card h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; line-height: 1.55; }

@media (max-width: 920px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* ============================================================
   HOW WE WORK (timeline)
   ============================================================ */
.process { counter-reset: step; }
.process__track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
}
.process__track::before {
    content: '';
    position: absolute;
    top: 26px; left: 8%; right: 8%;
    height: 2px;
    background: linear-gradient(90deg, var(--line-strong), var(--navy), var(--line-strong));
    opacity: 0.4;
    z-index: 0;
}
.process__step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.process__num {
    width: 52px; height: 52px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    border: 4px solid var(--paper);
    box-shadow: var(--shadow-sm);
}
.section--alt .process__num { border-color: var(--paper-alt); }
.process__step h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.process__step p { font-size: 0.9rem; line-height: 1.55; }

.process__pricing {
    margin-top: 52px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 22px 28px;
    font-size: 0.97rem;
    color: var(--ink-soft);
    box-shadow: var(--shadow-sm);
}
.process__pricing strong { color: var(--ink); }

@media (max-width: 880px) {
    .process__track { grid-template-columns: repeat(2, 1fr); gap: 34px 22px; }
    .process__track::before { display: none; }
}
@media (max-width: 520px) { .process__track { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq__list { max-width: 760px; margin: 0 auto; }
.faq__item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.faq__item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 24px;
    font-weight: 700;
    color: var(--ink);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
    content: '+';
    font-family: var(--font-display);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
    transition: transform 0.25s var(--ease);
    flex-shrink: 0;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer { padding: 0 24px 22px; font-size: 0.96rem; line-height: 1.65; }

/* ============================================================
   TOOLS
   ============================================================ */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    max-width: 920px;
    margin: 0 auto;
}
.tool-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tool-card__icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(31, 78, 121, 0.08);
    color: var(--navy);
    margin-bottom: 16px;
}
.tool-card__icon svg { width: 23px; height: 23px; }
.tool-card h3 { font-size: 1.14rem; margin-bottom: 10px; }
.tool-card p { font-size: 0.93rem; line-height: 1.6; margin-bottom: 18px; }
.tool-card a { margin-top: auto; font-size: 0.92rem; font-weight: 600; }

@media (max-width: 720px) { .tools-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy-deeper);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 32px;
    font-size: 0.9rem;
}
.site-footer__grid {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
}
.site-footer__brand { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.site-footer__brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-footer__brand span {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--white);
}
.site-footer__tagline { line-height: 1.6; max-width: 34ch; margin-bottom: 18px; }
.site-footer__contact a { color: rgba(255, 255, 255, 0.85); font-weight: 600; }
.site-footer__contact a:hover { color: var(--white); }

.site-footer h4 {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer__grid a { color: rgba(255, 255, 255, 0.66); }
.site-footer__grid a:hover { color: var(--white); }

.site-footer__bottom {
    max-width: var(--container);
    margin: 48px auto 0;
    padding: 24px 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
}
.site-footer__bottom a { color: rgba(255, 255, 255, 0.6); margin-left: 18px; }
.site-footer__bottom a:first-child { margin-left: 0; }
.site-footer__bottom a:hover { color: var(--white); }

@media (max-width: 880px) { .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ============================================================
   FUNNEL (multi-step lead form) - IDs/classes match app.js
   ============================================================ */
.funnel {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(15, 36, 56, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.funnel.is-active { opacity: 1; visibility: visible; }

.funnel__container {
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 580px;
    max-height: 88vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(14px);
    transition: transform 0.35s var(--ease);
}
.funnel.is-active .funnel__container { transform: none; }

.funnel__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.funnel__close:hover { background: var(--navy); color: var(--white); }

.progress-bar { margin-bottom: 28px; }
.progress-bar__track {
    height: 6px;
    background: var(--line);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar__fill {
    height: 100%;
    width: 25%;
    background: linear-gradient(90deg, var(--navy), var(--accent));
    border-radius: 999px;
    transition: width 0.4s var(--ease);
}
.progress-bar__label {
    display: block;
    margin-top: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-faint);
}

.steps-wrapper { position: relative; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn 0.35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step__number {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 10px;
}
.step__title { font-size: 1.45rem; margin-bottom: 8px; }
.step__hint { font-size: 0.94rem; color: var(--ink-faint); margin-bottom: 22px; }

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.14);
}
.form-input.is-error { border-color: var(--error); }
textarea.form-input { min-height: 120px; resize: vertical; }
select.form-input { appearance: auto; cursor: pointer; }

.form-error {
    display: none;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--error);
    font-weight: 500;
}
.form-error.is-visible { display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: var(--white);
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip.is-selected { background: var(--navy); border-color: var(--navy); color: var(--white); }

.step__actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.step__actions .cta-button { padding: 12px 24px; font-size: 0.95rem; }
.step__actions .cta-button--text {
    background: none;
    border: none;
    color: var(--ink-faint) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.step__actions .cta-button--text:hover { color: var(--navy) !important; transform: none; box-shadow: none; }

.success-state { display: none; text-align: center; padding: 16px 0; }
.success-state.is-active { display: block; animation: stepIn 0.4s var(--ease); }
.success-state__icon {
    width: 64px; height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: rgba(28, 124, 84, 0.12);
    color: var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
}
.success-state__icon svg { width: 30px; height: 30px; }
.success-state h2 { font-size: 1.6rem; margin-bottom: 12px; }
.success-state p { font-size: 0.98rem; color: var(--ink-soft); margin-bottom: 26px; }
.success-state .cta-button { margin-bottom: 14px; }
.success-state__home {
    display: block;
    background: none;
    border: none;
    margin: 0 auto;
    font: inherit;
    font-size: 0.9rem;
    color: var(--ink-faint);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.success-state__home:hover { color: var(--navy); }

@media (max-width: 560px) {
    .funnel { padding: 12px; }
    .funnel__container { padding: 30px 22px; max-height: 92vh; }
}

/* perf: skip offscreen rendering */
.section, .cta-band, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 720px; }

/* ============================================================
   v4: Subpage styles (entry-point pages)
   ============================================================ */
.page-hero {
    position: relative;
    padding: 128px 0 50px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
}
.page-hero__crumb { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 18px; }
.page-hero__crumb a { color: var(--ink-faint); font-weight: 500; }
.page-hero__crumb a:hover { color: var(--navy); }
.page-hero h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.8rem);
    letter-spacing: -0.01em;
    max-width: 26ch;
    margin-bottom: 18px;
}
.page-hero__lead { font-size: 1.12rem; line-height: 1.65; max-width: 64ch; color: var(--ink-soft); margin-bottom: 26px; }

.container--narrow { max-width: 860px; margin: 0 auto; padding: 0 28px; }

.page-body { padding: 60px 0 72px; }
.page-body h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin: 50px 0 18px; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { font-family: var(--font-body); font-size: 1.07rem; font-weight: 700; margin: 28px 0 10px; }
.page-body p { margin-bottom: 16px; }
.page-body ul { margin: 0 0 18px; list-style: none; }
.page-body li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.page-body li::before {
    content: '';
    position: absolute;
    left: 0; top: 12px;
    width: 12px; height: 2px;
    background: var(--accent);
    border-radius: 2px;
}
.page-body a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.fact-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0 34px; }
.fact-strip > div {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}
.fact-strip strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.fact-strip span { display: block; font-size: 0.84rem; color: var(--ink-faint); line-height: 1.45; }
.fact-source { font-size: 0.8rem; color: var(--ink-faint); margin-top: -22px; margin-bottom: 30px; }

.related { padding: 68px 0; }
.related .section__head { margin-bottom: 40px; }

@media (max-width: 720px) {
    .fact-strip { grid-template-columns: 1fr; }
    .page-hero { padding-top: 106px; }
}
