/* ── Design tokens ── */
:root {
    --color-primary: hsl(158 64% 32%);
    --color-primary-light: hsl(158 64% 42%);
    --color-primary-dark: hsl(158 64% 26%);
    --color-accent: hsl(24 95% 53%);
    --color-accent-dark: hsl(16 90% 48%);

    --color-bg: hsl(150 20% 99%);
    --color-fg: hsl(160 30% 10%);
    --color-muted: hsl(150 10% 46%);
    --color-border: hsl(150 15% 90%);
    --color-card: hsl(0 0% 100%);
    --color-surface: hsl(150 10% 95%);

    --color-feature-green: hsl(158 64% 38%);
    --color-feature-blue: hsl(200 80% 50%);
    --color-feature-purple: hsl(263 70% 58%);
    --color-feature-orange: hsl(25 95% 53%);
    --color-feature-pink: hsl(330 81% 60%);
    --color-feature-cyan: hsl(174 72% 40%);

    --font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px hsla(150, 20%, 20%, .04);
    --shadow-md: 0 4px 16px hsla(150, 20%, 20%, .06);
    --shadow-lg: 0 12px 40px hsla(150, 20%, 20%, .08);
    --shadow-xl: 0 24px 60px hsla(150, 20%, 20%, .1);
}

/* ── Reset & base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--color-fg);
    background: var(--color-bg);
    line-height: 1.6;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Container ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-outline {
    border: 2px solid var(--color-border);
    background: var(--color-card);
    color: var(--color-fg);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: hsla(158, 64%, 32%, 0.05);
}

.btn-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
    border-radius: var(--radius-2xl);
}

/* ── Header / Nav ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: hsla(150, 20%, 99%, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo svg {
    width: 1.5rem;
    height: 1.5rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--color-fg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-login {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-muted);
    transition: color 0.2s;
}

.nav-login:hover {
    color: var(--color-fg);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--color-fg);
}

/* ── Section shared ── */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

.section-muted {
    background: var(--color-surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    background: hsla(158, 64%, 32%, 0.08);
    color: var(--color-primary);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* ── Hero ── */
.hero {
    padding: 6rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, hsla(158, 64%, 32%, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: hsla(158, 64%, 32%, 0.08);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 .accent {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-note {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.hero-avatars {
    display: flex;
}

.hero-avatars span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border: 2px solid var(--color-card);
    margin-left: -0.5rem;
}

.hero-avatars span:first-child {
    margin-left: 0;
}

.hero-social-text {
    font-size: 0.875rem;
    color: var(--color-muted);
}

.hero-social-text strong {
    color: var(--color-fg);
}

/* ── Features grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
    transition: all 0.2s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: transparent;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.feature-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-icon.green  { background: hsla(158, 64%, 38%, 0.12); color: var(--color-feature-green); }
.feature-icon.blue   { background: hsla(200, 80%, 50%, 0.12); color: var(--color-feature-blue); }
.feature-icon.purple { background: hsla(263, 70%, 58%, 0.12); color: var(--color-feature-purple); }
.feature-icon.orange { background: hsla(25, 95%, 53%, 0.12); color: var(--color-feature-orange); }
.feature-icon.pink   { background: hsla(330, 81%, 60%, 0.12); color: var(--color-feature-pink); }
.feature-icon.cyan   { background: hsla(174, 72%, 40%, 0.12); color: var(--color-feature-cyan); }
.feature-icon.red    { background: hsla(0, 84%, 60%, 0.12); color: hsl(0 84% 60%); }
.feature-icon.yellow { background: hsla(45, 93%, 47%, 0.12); color: hsl(45 93% 47%); }
.feature-icon.indigo { background: hsla(239, 84%, 67%, 0.12); color: hsl(239 84% 67%); }

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.6;
}

/* ── Pain points ── */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.pain-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
}

.pain-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsla(0, 84%, 60%, 0.1);
    color: hsl(0 84% 60%);
}

.pain-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.pain-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.pain-card p {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.5;
}

/* ── Testimonials ── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 2rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.125rem;
    margin-bottom: 1rem;
    color: hsl(45 93% 47%);
}

.testimonial-stars svg {
    width: 1.125rem;
    height: 1.125rem;
    fill: currentColor;
}

.testimonial-card blockquote {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-fg);
    margin-bottom: 1.5rem;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.testimonial-role {
    font-size: 0.8125rem;
    color: var(--color-muted);
}

/* ── Pricing ── */
.pricing-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--color-card);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    text-align: center;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.pricing-popular {
    position: absolute;
    top: -0.875rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.375rem 1.25rem;
    border-radius: var(--radius-full);
}

.pricing-free-label {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-fg);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-muted);
}

.pricing-note {
    font-size: 0.875rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.625rem 0;
    font-size: 0.9375rem;
    border-bottom: 1px solid var(--color-border);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-primary);
    margin-top: 0.125rem;
}

.pricing-card .btn {
    width: 100%;
}

/* ── FAQ ── */
.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-fg);
    text-align: left;
}

.faq-question svg {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--color-muted);
    transition: transform 0.2s;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-muted);
    line-height: 1.7;
}

.faq-item.open .faq-answer {
    display: block;
}

/* ── CTA Banner ── */
.cta-banner {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: #fff;
}

.cta-banner h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-banner .btn-white {
    background: #fff;
    color: var(--color-primary);
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.cta-banner .btn-white:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.cta-banner .btn-ghost {
    border: 2px solid hsla(0, 0%, 100%, 0.3);
    background: transparent;
    color: #fff;
}

.cta-banner .btn-ghost:hover {
    background: hsla(0, 0%, 100%, 0.1);
    border-color: hsla(0, 0%, 100%, 0.5);
}

/* ── Footer ── */
.site-footer {
    background: var(--color-fg);
    color: hsla(0, 0%, 100%, 0.7);
    padding: 3.5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.7;
    max-width: 280px;
    margin-top: 0.75rem;
}

.footer-col h4 {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.625rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.6);
    transition: color 0.2s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid hsla(0, 0%, 100%, 0.1);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8125rem;
}

.footer-bottom a {
    color: hsla(0, 0%, 100%, 0.5);
}

.footer-bottom a:hover {
    color: #fff;
}

/* ── Industry page: brand color override ── */
.industry-hero::before {
    background: radial-gradient(circle, color-mix(in srgb, var(--brand-color) 8%, transparent) 0%, transparent 70%);
}

.industry-accent {
    background: linear-gradient(135deg, var(--brand-color) 0%, color-mix(in srgb, var(--brand-color) 80%, white) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Stats grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-fg);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-muted);
}

/* ── Industry testimonial (single, centered) ── */
.industry-testimonial {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 3rem;
}

.industry-testimonial .testimonial-stars {
    justify-content: center;
}

.industry-testimonial blockquote {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: normal;
}

.industry-testimonial .testimonial-author {
    justify-content: center;
}

/* ── SEO content ── */
.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.seo-content p {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ── Newsletter signup ── */
.newsletter-form {
    max-width: 480px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-card);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-2xl);
    padding: 0.375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.newsletter-input-group:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px hsla(158, 64%, 32%, 0.1);
}

.newsletter-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-fg);
    outline: none;
    min-width: 0;
}

.newsletter-input::placeholder {
    color: var(--color-muted);
}

.newsletter-btn {
    flex-shrink: 0;
}

.newsletter-hint {
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
}

.newsletter-feedback {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

.newsletter-feedback.success {
    color: var(--color-primary);
    font-weight: 500;
}

.newsletter-feedback.error {
    color: hsl(0 84% 60%);
    font-weight: 500;
}

/* CTA banner variant (white on green background) */
.newsletter-form-cta .newsletter-input-group {
    background: hsla(0, 0%, 100%, 0.15);
    border-color: hsla(0, 0%, 100%, 0.3);
}

.newsletter-form-cta .newsletter-input-group:focus-within {
    border-color: hsla(0, 0%, 100%, 0.6);
    box-shadow: 0 0 0 4px hsla(0, 0%, 100%, 0.1);
}

.newsletter-input-cta {
    color: #fff;
}

.newsletter-input-cta::placeholder {
    color: hsla(0, 0%, 100%, 0.6);
}

.newsletter-hint-cta {
    color: hsla(0, 0%, 100%, 0.7);
}

.newsletter-feedback-cta.success {
    color: #fff;
}

.newsletter-feedback-cta.error {
    color: hsl(0 100% 85%);
}

.newsletter-submitted .newsletter-input-group {
    opacity: 0.5;
    pointer-events: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .features-grid,
    .testimonials-grid,
    .pain-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .cta-banner h2 {
        font-size: 1.75rem;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-input {
        width: 100%;
        text-align: center;
    }

    .newsletter-btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .brancher-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Brancher (industry listing) page ── */

.brancher-hero {
    text-align: center;
    padding-top: 8rem;
}

.hero-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

.hero-trust-badges span::before {
    content: "\2713 ";
    color: var(--color-primary);
    font-weight: 700;
}

.brancher-category {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.brancher-category:nth-child(even) {
    background: var(--color-surface);
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-fg);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 1.5rem;
}

.brancher-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.branch-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-2xl);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.branch-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.branch-card-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
}

.branch-card-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.branch-card-content h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-fg);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s;
}

.branch-card:hover .branch-card-content h3 {
    color: var(--color-primary);
}

.branch-card-arrow {
    width: 1rem;
    height: 1rem;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.3s, transform 0.3s;
}

.branch-card:hover .branch-card-arrow {
    opacity: 1;
    transform: translateX(0);
}

.branch-card-content p {
    font-size: 0.875rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-top: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .brancher-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Blog ── */
.blog-hero {
    text-align: center;
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.blog-hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-top: 1rem;
    line-height: 1.15;
}

.blog-hero-subtitle {
    color: var(--color-muted);
    font-size: 1.125rem;
    margin-top: 1rem;
    max-width: 36rem;
    margin-inline: auto;
}

/* Featured post */
.blog-featured {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
}

.blog-featured:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.blog-featured-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-featured:hover .blog-featured-image img {
    transform: scale(1.05);
}

.blog-featured-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface), var(--color-border));
}

.blog-featured-content {
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.75rem;
}

.blog-featured-excerpt {
    color: var(--color-muted);
    line-height: 1.6;
    margin-top: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-read-more {
    color: var(--color-primary);
    font-weight: 600;
    margin-top: 1rem;
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Blog card */
.blog-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, transform 0.3s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-surface), var(--color-border));
}

.blog-card-body {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.blog-category-badge {
    display: inline-block;
    background: hsla(158, 64%, 32%, 0.1);
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.blog-reading-time {
    color: var(--color-muted);
    font-size: 0.8125rem;
}

.blog-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    margin-top: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-excerpt {
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.blog-card-author {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}

.blog-author-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.blog-author-avatar-lg {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
}

.blog-author-avatar-xl {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.25rem;
}

.blog-author-name {
    font-weight: 600;
    font-size: 0.875rem;
    display: block;
}

.blog-author-date {
    color: var(--color-muted);
    font-size: 0.8125rem;
    display: block;
}

/* Blog article */
.blog-breadcrumb {
    padding: 1.5rem 0;
    font-size: 0.875rem;
    color: var(--color-muted);
    background: var(--color-surface);
}

.blog-breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
}

.blog-breadcrumb a:hover {
    color: var(--color-primary);
}

.blog-breadcrumb span {
    margin: 0 0.375rem;
}

.blog-breadcrumb span:last-child {
    color: var(--color-fg);
    margin-left: 0.375rem;
}

.blog-article {
    padding: 3rem 0;
}

.blog-article .container {
    max-width: 48rem;
}

.blog-article-container {
    max-width: 48rem;
    margin-inline: auto;
}

.blog-article-header {
    margin-bottom: 2rem;
}

.blog-article-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blog-tag-badge {
    display: inline-block;
    background: var(--color-surface);
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-border);
}

.blog-article-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.blog-article-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--color-muted);
    font-size: 0.9375rem;
}

.blog-article-meta-text {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.blog-meta-separator {
    color: var(--color-border);
}

.blog-article-cover {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

.blog-article-cover img {
    width: 100%;
    height: auto;
    display: block;
}

/* Article body typography */
.blog-article-body {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--color-fg);
}

.blog-article-body h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.blog-article-body h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.blog-article-body p {
    margin-bottom: 1.25rem;
}

.blog-article-body ul,
.blog-article-body ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.blog-article-body li {
    margin-bottom: 0.5rem;
}

.blog-article-body a {
    color: var(--color-primary);
    text-decoration: underline;
    text-decoration-color: hsla(158, 64%, 32%, 0.3);
    text-underline-offset: 2px;
}

.blog-article-body a:hover {
    text-decoration-color: var(--color-primary);
}

.blog-article-body strong {
    font-weight: 600;
}

/* Tags row */
.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

/* Author box */
.blog-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
}

.blog-author-box strong {
    display: block;
    font-size: 1rem;
}

.blog-author-role {
    color: var(--color-muted);
    font-size: 0.875rem;
    display: block;
    margin-bottom: 0.5rem;
}

.blog-author-box p {
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Related posts */
.blog-related {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

/* Blog responsive */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-featured {
        grid-template-columns: 1fr;
    }

    .blog-featured-content {
        padding: 1.5rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-related {
        grid-template-columns: 1fr;
    }

    .blog-article-header h1 {
        font-size: 1.75rem;
    }

    .blog-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
