/* ─────────────────────────────────────────────────────────────
   TaxSync Website — Main Stylesheet
   Design system matching the TaxSync app brand identity.
   ───────────────────────────────────────────────────────────── */

/* ── Design Tokens ────────────────────────────────────────── */
:root {
    --brand-dark: #0B4A36;
    --brand-light: #E6F5EE;
    --accent: #12A06A;
    --accent-light: #3DBD82;
    --grey: #6B7280;
    --grey-light: #F9FAFB;
    --grey-border: #E5E7EB;
    --white: #FFFFFF;
    --black: #111827;

    --font-heading: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 3px rgba(11, 74, 54, 0.06);
    --shadow: 0 4px 24px rgba(11, 74, 54, 0.08);
    --shadow-lg: 0 12px 48px rgba(11, 74, 54, 0.12);
    --shadow-accent: 0 4px 24px rgba(18, 160, 106, 0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;

    --container-width: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--black);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--brand-dark);
}

ul, ol {
    list-style: none;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: var(--brand-dark);
    line-height: 1.2;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.125rem; font-weight: 600; }

p {
    color: var(--grey);
    max-width: 65ch;
}

/* ── Layout ───────────────────────────────────────────────── */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 96px 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: var(--white);
    box-shadow: var(--shadow-accent);
    transform: translateY(-1px);
}

.btn-ghost {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--grey-border);
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-white {
    background: var(--white);
    color: var(--brand-dark);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--brand-light);
    border-color: var(--brand-light);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-arrow {
    transition: transform 0.2s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.section-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: var(--brand-light);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header-logo img {
    height: 36px;
    width: auto;
}

.header-nav {
    display: none;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--brand-dark);
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.header-actions .btn {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ── Mobile Menu Toggle ───────────────────────────────────── */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--brand-dark);
    transition: var(--transition);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-light) 0%, var(--white) 50%, #f0fdf4 100%);
    z-index: -1;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(18, 160, 106, 0.08) 0%, transparent 70%);
}

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

.hero-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(18, 160, 106, 0.1);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    margin-bottom: 24px;
}

.hero-title {
    margin-bottom: 24px;
}

.hero-title-accent {
    display: block;
    color: var(--accent);
}

.hero-subtitle {
    font-size: 1.1875rem;
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* ── Hero Dashboard Mockup ────────────────────────────────── */
.hero-dashboard-mockup {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--grey-border);
}

.mockup-bar {
    display: flex;
    gap: 6px;
    padding: 12px 16px;
    background: var(--grey-light);
    border-bottom: 1px solid var(--grey-border);
}

.mockup-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--grey-border);
}

.mockup-dot:first-child { background: #EF4444; }
.mockup-dot:nth-child(2) { background: #F59E0B; }
.mockup-dot:nth-child(3) { background: #22C55E; }

.mockup-content {
    display: flex;
    min-height: 280px;
}

.mockup-sidebar {
    width: 60px;
    background: var(--brand-dark);
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mockup-menu-item {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.mockup-menu-item.active {
    background: var(--accent);
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.mockup-card {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--grey-light);
}

.mockup-card-green { background: var(--brand-light); }
.mockup-card-blue { background: #EFF6FF; }
.mockup-card-amber { background: #FFFBEB; }

.mockup-card-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.mockup-card-value {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.mockup-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.mockup-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    width: 100%;
    height: 100px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent), var(--accent-light));
    border-radius: 4px 4px 0 0;
    min-height: 12px;
    animation: barGrow 1.5s ease-out forwards;
    transform-origin: bottom;
}

@keyframes barGrow {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

/* ── Stats ────────────────────────────────────────────────── */
.stats {
    background: var(--brand-dark);
    padding: 56px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item {
    color: var(--white);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--accent-light);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--accent-light);
}

.stat-currency::before {
    content: '€';
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* ── How It Works ─────────────────────────────────────────── */
.how-it-works {
    background: var(--grey-light);
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.step-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    box-shadow: var(--shadow);
    position: relative;
    max-width: 360px;
    width: 100%;
}

.step-number {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 36px;
    background: var(--accent);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
}

.step-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.step-title {
    margin-bottom: 12px;
}

.step-description {
    font-size: 0.9375rem;
    margin: 0 auto;
}

.step-connector {
    display: none;
}

/* ── Features ─────────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon-green { background: var(--brand-light); color: var(--accent); }
.feature-icon-blue { background: #EFF6FF; color: #3B82F6; }
.feature-icon-purple { background: #F3E8FF; color: #8B5CF6; }
.feature-icon-orange { background: #FFF7ED; color: #F97316; }
.feature-icon-teal { background: #F0FDFA; color: #14B8A6; }
.feature-icon-rose { background: #FFF1F2; color: #F43F5E; }

.feature-title {
    margin-bottom: 8px;
}

.feature-description {
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ── Country Grid ─────────────────────────────────────────── */
.country-grid {
    background: var(--brand-light);
}

.countries {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 32px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
    padding: 16px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.country-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.country-flag {
    font-size: 1.75rem;
    line-height: 1;
}

.country-name {
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 0.9375rem;
    flex: 1;
}

.country-tag {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: var(--brand-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.countries-note {
    text-align: center;
    font-size: 0.9375rem;
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.pricing-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: var(--shadow-accent);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 20px;
    border-radius: var(--radius-full);
}

.pricing-header {
    margin-bottom: 24px;
}

.pricing-tier {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.pricing-target {
    font-size: 0.875rem;
    color: var(--grey);
}

.pricing-price {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--grey-border);
}

.pricing-from {
    font-size: 0.875rem;
    color: var(--grey);
    display: block;
}

.pricing-amount {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
}

.pricing-period {
    font-size: 1rem;
    color: var(--grey);
}

.pricing-features {
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    font-size: 0.9375rem;
    color: var(--black);
}

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 18px;
    background: var(--brand-light);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2312A06A' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

.pricing-cta {
    text-align: center;
    width: 100%;
    justify-content: center;
}

.pricing-note {
    text-align: center;
    font-size: 0.875rem;
}

/* ── Testimonials / Trust ─────────────────────────────────── */
.testimonials {
    background: var(--grey-light);
}

.trust-categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-border);
    transition: var(--transition);
}

.trust-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.trust-icon {
    color: var(--accent);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.trust-label {
    color: var(--brand-dark);
    margin-bottom: 8px;
}

.trust-desc {
    font-size: 0.875rem;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--accent) 0%, var(--brand-dark) 100%);
    padding: 80px 0;
}

.cta-inner {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.125rem;
    margin: 0 auto 32px;
}

.cta-actions {
    display: flex;
    justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
    background: var(--brand-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-logo {
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.875rem;
    max-width: 280px;
}

.footer-heading {
    color: var(--white);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

.social-link {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-fast);
}

.social-link:hover {
    color: var(--accent-light);
}

/* ── Page Content ─────────────────────────────────────────── */
.page-content {
    padding-top: calc(var(--header-height) + 48px);
    min-height: 60vh;
}

/* ── Animations ───────────────────────────────────────────── */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ───────────────────────────────────────────── */

/* Tablet (640px+) */
@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .countries {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Tablet Landscape (768px+) */
@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card-featured {
        transform: scale(1.05);
    }

    .trust-categories {
        grid-template-columns: repeat(4, 1fr);
    }

    .steps-grid {
        flex-direction: row;
        gap: 16px;
    }

    .step-connector {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }

    .header-actions {
        display: flex;
    }

    .mobile-menu-toggle {
        display: none;
    }

    .hero-inner {
        grid-template-columns: 1fr 1.1fr;
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .countries {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .container {
        padding: 0 32px;
    }
}

/* ── Mobile Nav Overlay ───────────────────────────────────── */
@media (max-width: 1023px) {
    .header-nav.open {
        display: flex;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        padding: 32px 24px;
        z-index: 999;
    }

    .header-nav.open .nav-list {
        flex-direction: column;
        gap: 16px;
    }

    .header-nav.open .nav-link {
        font-size: 1.25rem;
        padding: 12px 0;
    }

    .header-nav.open + .header-actions {
        display: flex;
        position: fixed;
        bottom: 32px;
        left: 24px;
        right: 24px;
        z-index: 999;
    }

    .header-nav.open + .header-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ── Content Pages ────────────────────────────────────────── */

.content-page {
    padding: 6rem 0 4rem;
    min-height: 60vh;
    background: var(--grey-light);
}

.content-page .container {
    max-width: 900px;
}

/* Each tt_content element becomes a card */
.content-page .frame {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 3rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--grey-border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative;
}

.content-page .frame:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* Green accent on first card (main heading) */
.content-page .frame:first-child {
    border-left: 4px solid var(--accent);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.content-page .frame:last-child {
    margin-bottom: 0;
}

/* Content element headers */
.content-page .frame h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 1.25rem;
    line-height: 1.25;
}

/* First card gets bigger heading */
.content-page .frame:first-child h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.content-page .frame h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
}

/* Body text inside content elements */
.content-page .ce-bodytext {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--grey);
}

.content-page .ce-bodytext p {
    margin-bottom: 1.25rem;
    max-width: none;
}

.content-page .ce-bodytext p:last-child {
    margin-bottom: 0;
}

.content-page .ce-bodytext strong {
    color: var(--brand-dark);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.25rem;
}

.content-page .ce-bodytext a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(18, 160, 106, 0.3);
    transition: border-color 0.2s;
}

.content-page .ce-bodytext a:hover {
    border-bottom-color: var(--accent);
}

/* Feature list styling inside cards */
.content-page .ce-bodytext p strong:first-child {
    font-size: 1.0625rem;
    letter-spacing: 0.01em;
}

@media (max-width: 768px) {
    .content-page {
        padding: 5rem 0 3rem;
    }

    .content-page .frame {
        padding: 1.75rem 1.5rem;
        border-radius: var(--radius-sm);
    }

    .content-page .frame:first-child {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* ── TYPO3 Form Framework ─────────────────────────────────── */

.frame-type-form_formframework {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 3rem;
}

/* Form row (for side-by-side fields) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Fieldsets */
.form-group,
.form-element {
    margin-bottom: 1.5rem;
}

/* Labels */
.form-group label,
.form-element label,
form[id^="contact-form"] label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
    letter-spacing: 0.01em;
}

/* Required asterisk */
.form-group label .label-required,
.form-element .label-required {
    color: #E53E3E;
    margin-left: 0.2em;
}

/* Input fields, selects, textareas */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group textarea,
.form-group select,
.form-element input[type="text"],
.form-element input[type="email"],
.form-element input[type="tel"],
.form-element input[type="number"],
.form-element input[type="url"],
.form-element textarea,
.form-element select,
form[id^="contact-form"] input[type="text"],
form[id^="contact-form"] input[type="email"],
form[id^="contact-form"] textarea,
form[id^="contact-form"] select {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--black);
    background: var(--grey-light);
    border: 2px solid var(--grey-border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus,
.form-element input:focus,
.form-element textarea:focus,
.form-element select:focus,
form[id^="contact-form"] input:focus,
form[id^="contact-form"] textarea:focus,
form[id^="contact-form"] select:focus {
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(18, 160, 106, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-element input::placeholder,
.form-element textarea::placeholder {
    color: #9CA3AF;
}

/* Select dropdown arrow */
.form-group select,
.form-element select,
form[id^="contact-form"] select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Textarea */
.form-group textarea,
.form-element textarea,
form[id^="contact-form"] textarea {
    resize: vertical;
    min-height: 120px;
}

/* Submit button */
.form-navigation button[type="submit"],
form[id^="contact-form"] button[type="submit"],
.form-group .btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    margin-top: 0.5rem;
}

.form-navigation button[type="submit"]:hover,
form[id^="contact-form"] button[type="submit"]:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-accent);
}

/* Validation errors */
.form-group .error,
.form-element .error,
.form-element .form-error-message,
.help-block {
    display: block;
    font-size: 0.8125rem;
    color: #E53E3E;
    margin-top: 0.375rem;
    font-weight: 500;
}

.form-group input.error,
.form-group select.error,
.form-element input.error,
.form-element select.error {
    border-color: #E53E3E;
}

/* Confirmation message */
.form-confirmation {
    text-align: center;
    padding: 3rem 2rem;
}

.form-confirmation p {
    font-size: 1.125rem;
    color: var(--brand-dark);
    line-height: 1.7;
}

/* Fieldset styling */
fieldset {
    border: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

fieldset legend {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 1.5rem;
    padding: 0;
}

/* ── Content page top gradient bar ────────────────────────── */

.page-hero-mini {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1a7a55 100%);
    padding: 7rem 0 2rem;
    margin-bottom: 0;
}

.page-hero-mini .page-title {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    margin-bottom: 0;
    font-weight: 700;
}

.page-hero-mini .page-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    max-width: 600px;
}

/* ── Legal / Content Pages (TYPO3 content elements) ──────── */

.content-page {
    padding: 3rem 0 5rem;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.content-page h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--grey-border);
}

.content-page h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--black);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.content-page p {
    font-size: 0.9375rem;
    line-height: 1.75;
    color: var(--grey);
    margin-bottom: 1rem;
    max-width: none;
}

.content-page ul,
.content-page ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.content-page ol {
    list-style: decimal;
}

.content-page li {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--grey);
    margin-bottom: 0.375rem;
}

.content-page a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.content-page a:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}

.content-page address,
.content-page .legal-address-block {
    font-style: normal;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--grey);
    background: var(--grey-light);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--accent);
    margin: 1rem 0;
}

.content-page .legal-updated {
    font-size: 0.8125rem;
    color: #9ca3af;
    margin-bottom: 2rem;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.875rem;
}

.content-page th {
    text-align: left;
    font-weight: 600;
    color: var(--brand-dark);
    padding: 0.75rem 1rem;
    background: var(--grey-light);
    border: 1px solid var(--grey-border);
}

.content-page td {
    padding: 0.625rem 1rem;
    border: 1px solid var(--grey-border);
    color: var(--grey);
}

/* ── Solutions Page Cards ────────────────────────────────── */

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.solution-card {
    background: var(--white);
    border: 1px solid var(--grey-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
}

.solution-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    margin-top: 0;
}

.solution-card p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--grey);
    margin-bottom: 0.75rem;
    max-width: none;
}

.solution-card ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.solution-card li {
    font-size: 0.8125rem;
    color: var(--grey);
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}

.solution-card li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.solution-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.solution-icon-green { background: #dcfce7; color: #16a34a; }
.solution-icon-blue { background: #dbeafe; color: #2563eb; }
.solution-icon-purple { background: #ede9fe; color: #7c3aed; }
.solution-icon-orange { background: #fff7ed; color: #ea580c; }
.solution-icon-teal { background: #ccfbf1; color: #0d9488; }
.solution-icon-rose { background: #ffe4e6; color: #e11d48; }

@media (max-width: 768px) {
    .content-page {
        padding: 2rem 0 3rem;
    }

    .content-page h2 {
        margin-top: 2rem;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
}
