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

:root {
    --sky: #0284c7;
    --sky-light: #e0f2fe;
    --sky-dark: #0369a1;
    --zinc-50: #fafafa;
    --zinc-100: #f4f4f5;
    --zinc-200: #e4e4e7;
    --zinc-400: #a1a1aa;
    --zinc-500: #71717a;
    --zinc-700: #3f3f46;
    --zinc-800: #27272a;
    --zinc-900: #18181b;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--zinc-800);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--zinc-200);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--zinc-900);
    padding: 4px;
}

.nav-logo-text {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: var(--zinc-900);
    letter-spacing: -0.02em;
}

.nav-logo-text span {
    color: var(--sky);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    color: var(--zinc-500);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--zinc-900);
}

.nav-cta {
    background: var(--zinc-900) !important;
    color: var(--white) !important;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 500 !important;
    font-size: 14px !important;
    transition: background 0.2s !important;
}

.nav-cta:hover {
    background: var(--sky) !important;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2.5rem 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-label::before {
    content: '';
    width: 24px;
    height: 1px;
    background: var(--sky);
}

.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--zinc-900);
    margin-bottom: 1.5rem;
}

.hero h1 em {
    font-style: italic;
    color: var(--sky);
}

.hero-desc {
    font-size: 18px;
    font-weight: 300;
    color: var(--zinc-500);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 460px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 0.5rem;
}

.btn-primary {
    background: var(--sky);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--sky-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--zinc-700);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.btn-secondary:hover {
    color: var(--sky);
}

.btn-secondary::after {
    content: '\2192';
    transition: transform 0.2s;
}

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

/* HERO CARD */
.hero-card {
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 20px 60px rgba(0, 0, 0, 0.06);
    animation: floatUp 0.8s ease-out both;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.card-header {
    background: var(--zinc-900);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot-row {
    display: flex;
    gap: 6px;
}

.dot-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-btn.r {
    background: #ef4444;
}

.dot-btn.y {
    background: #f59e0b;
}

.dot-btn.g {
    background: #22c55e;
}

.card-title {
    font-size: 13px;
    color: var(--zinc-400);
    margin-left: 8px;
    font-weight: 400;
}

.card-body {
    padding: 24px;
}

.card-section {
    margin-bottom: 20px;
}

.card-section:last-child {
    margin-bottom: 0;
}

.card-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--zinc-100);
}

.card-row:last-child {
    border-bottom: none;
}

.row-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--zinc-700);
}

.row-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--sky-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.row-value {
    font-size: 13px;
    font-weight: 500;
    color: var(--zinc-900);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    vertical-align: middle;
}

.pill.green {
    background: #dcfce7;
    color: #15803d;
}

.pill.blue {
    background: var(--sky-light);
    color: var(--sky-dark);
}

.pill.amber {
    background: #fef3c7;
    color: #b45309;
}

.progress-bar {
    height: 4px;
    background: var(--zinc-100);
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 2px;
    background: var(--sky);
}

/* SECTION */
section {
    padding: 100px 2.5rem;
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3vw, 2.8rem);
    letter-spacing: -0.02em;
    color: var(--zinc-900);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.section-sub {
    font-size: 17px;
    font-weight: 300;
    color: var(--zinc-500);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 3.5rem;
}

/* FLOW */
.flow-section {
    background: var(--zinc-50);
}

.flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}

.flow-grid::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--zinc-200) 20%, var(--zinc-200) 80%, transparent);
    z-index: 0;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.flow-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--white);
    border: 1.5px solid var(--zinc-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.flow-step.active .flow-icon {
    background: var(--sky);
    border-color: var(--sky);
    box-shadow: 0 0 0 6px var(--sky-light);
}

.flow-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--zinc-800);
    margin-bottom: 4px;
}

.flow-desc {
    font-size: 12px;
    color: var(--zinc-400);
    line-height: 1.5;
}

/* PRICING */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    border: 1px solid var(--zinc-200);
    border-radius: 12px;
    padding: 2rem;
    background: var(--white);
    position: relative;
}

.pricing-card.popular {
    border-color: var(--sky);
    border-width: 1.5px;
}

.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sky);
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zinc-400);
    margin-bottom: 0.5rem;
}

.pricing-tier.pro {
    color: var(--sky);
}

.pricing-name {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    color: var(--zinc-900);
    margin-bottom: 0.25rem;
}

.pricing-tagline {
    font-size: 13px;
    color: var(--zinc-400);
    margin-bottom: 1.5rem;
}

.pricing-price {
    font-size: 36px;
    font-weight: 500;
    color: var(--zinc-900);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.pricing-price>span:first-child {
    font-family: 'DM Serif Display', serif;
    font-size: 36px;
    color: var(--zinc-900);
}

.pricing-price span {
    font-size: 14px;
    font-weight: 400;
    color: var(--zinc-400);
}

#crm-per {
    display: block;
    margin-top: 2px;
}

.pricing-divider {
    height: 1px;
    background: var(--zinc-100);
    margin: 1.5rem 0;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    font-size: 13px;
    color: var(--zinc-600, #52525b);
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}

.feature-list li::before {
    content: '\2713';
    color: var(--sky);
    font-weight: 500;
    margin-top: 1px;
    flex-shrink: 0;
}

.pricing-cta {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    border: 1.5px solid var(--zinc-200);
    color: var(--zinc-700);
}

.pricing-cta:hover {
    border-color: var(--zinc-400);
    color: var(--zinc-900);
}

.pricing-cta.primary {
    background: var(--sky);
    border-color: var(--sky);
    color: var(--white);
}

.pricing-cta.primary:hover {
    background: var(--sky-dark);
    border-color: var(--sky-dark);
}

.addon-box {
    background: var(--zinc-50);
    border-radius: 8px;
    padding: 12px 14px;
    margin-top: 1rem;
}

.addon-title {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zinc-400);
    margin-bottom: 6px;
}

.addon-item {
    font-size: 12px;
    color: var(--zinc-500);
    padding: 2px 0;
    display: flex;
    justify-content: space-between;
}

/* TRUST BAR */
.trust-bar {
    background: var(--zinc-900);
    padding: 60px 2.5rem;
}

.trust-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 28px;
    margin-bottom: 0.75rem;
    display: block;
}

.trust-label {
    font-size: 13px;
    color: var(--zinc-400);
    line-height: 1.5;
}

.trust-label strong {
    display: block;
    font-size: 15px;
    color: var(--white);
    margin-bottom: 4px;
}

/* INTEGRATIONS */
.integration-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 2.5rem;
}

.integration-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--zinc-700);
    font-weight: 400;
}

.integration-pill span {
    font-size: 18px;
}

/* FOOTER */
footer {
    border-top: 1px solid var(--zinc-200);
    padding: 3rem 2.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 20px;
    color: var(--zinc-900);
}

.footer-logo span span {
    color: var(--sky);
}

.footer-copy {
    font-size: 13px;
    color: var(--zinc-400);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.footer-links a {
    font-size: 13px;
    color: var(--zinc-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--zinc-700);
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* SHARED NOTE */
.shared-note {
    background: var(--sky-light);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--sky-dark);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}


.hero-slide {
    display: none !important;
}

.hero-slide.active {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    animation: fadeSlide 0.5s ease;
}

.hero-carousel {
    background: var(--zinc-50);
    border: 1px solid var(--zinc-200);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    max-width: 460px;
}

.carousel-slide {
    display: none;
    align-items: flex-start;
    gap: 12px;
}

.carousel-slide.active {
    display: flex;
    animation: fadeSlide 0.4s ease;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

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

.carousel-icon {
    font-size: 26px;
    flex-shrink: 0;
    margin-top: 2px;
}

.carousel-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--zinc-900);
    margin-bottom: 4px;
}

.carousel-desc {
    font-size: 13px;
    color: var(--zinc-500);
    line-height: 1.6;
}

.carousel-dots {
    display: flex;
    gap: 6px;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--zinc-200);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, width 0.2s;
}

.carousel-dot.active {
    background: var(--sky);
    width: 18px;
    border-radius: 3px;
}

/* Billing toggle */
.billing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 2.5rem;
}

.billing-label {
    font-size: 14px;
    color: var(--zinc-500);
    cursor: pointer;
}

.billing-label.active {
    color: var(--zinc-900);
    font-weight: 500;
}

.billing-toggle {
    display: flex;
    align-items: center;
    background: var(--zinc-100);
    border: 1px solid var(--zinc-200);
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 2.5rem;
    width: fit-content;
    margin-left: auto;
}

.billing-option {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--zinc-500);
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.billing-option.active {
    background: var(--sky);
    color: var(--white);
}

.billing-option .pill.blue {
    background: var(--sky);
    color: var(--white);
}

.billing-option.active .pill.blue {
    background: var(--white);
    color: var(--sky);
}

/* CRM full-width feature grid */
.crm-feature-grid {
    column-width: 280px;
    column-gap: 2.5rem;
}

.crm-feature-grid li {
    break-inside: avoid;
}

/* Vendor logo */
.vendor-logo {
    height: 24px;
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.vendor-logo img,
.vendor-logo svg {
    height: 24px;
    width: auto;
}

/* ===== HERO STAT CARDS ===== */
.hero-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
    z-index: 3;
}

.stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.stat-card {
    background: #ffffff;
    border: 0.5px solid var(--zinc-200);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}

.stat-label {
    font-size: 11px;
    color: var(--zinc-400);
    margin-bottom: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

.delta {
    font-size: 12px;
    margin-top: 4px;
    color: var(--sky);
}

.delta-muted {
    color: #71717a;
}

.delta-amber {
    color: #f59e0b;
}

.delta-green {
    color: #15803d;
}

.stat-row-card {
    background: #fafafa;
    border: 0.5px solid var(--zinc-200);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

.stat-row-label {
    font-size: 12px;
    color: var(--zinc-400);
    margin-bottom: 2px;
}

.stat-row-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--zinc-900);
}

.stat-row-cta {
    font-size: 12px;
    color: var(--sky);
    font-weight: 500;
}

/* ===== FEATURE CARDS ===== */
.feature-card {
    background: var(--white);
    border: 0.5px solid var(--zinc-200);
    border-radius: 12px;
    padding: 1.5rem;
}

.feature-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--zinc-900);
    margin-bottom: 6px;
}

.feature-desc {
    font-size: 13px;
    color: var(--zinc-500);
    line-height: 1.6;
}

.feature-icon {
    margin-bottom: 1rem;
}

/* ===== EMAIL TIER CARDS ===== */
.tier-card {
    background: var(--zinc-50);
    border: 0.5px solid var(--zinc-200);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tier-price-footer {
    margin-top: auto;
    padding-top: 10px;
    border-top: 0.5px solid var(--zinc-200);
}

.serif-md {
    font-family: 'DM Serif Display', serif;
    font-size: 22px;
    color: var(--zinc-900);
}

.svg-icon {
    flex-shrink: 0;
}

.label-sm {
    font-size: 11px;
    color: var(--zinc-400);
}

.text-mute-sm {
    font-size: 12px;
    color: var(--zinc-400);
}

.text-mute-sm-mt {
    font-size: 12px;
    color: var(--zinc-400);
    margin-top: 4px;
}

.text-strong-sm {
    font-size: 13px;
    font-weight: 500;
    color: var(--zinc-900);
}

/* Integrationer/funktioner section gets muted bg */
#integrationer {
    background: var(--zinc-50);
}

/* Decorative hero background mark */
.hero-bg-mark {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 800px;
    height: 800px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

/* Pricing layout helpers */
.pricing-price-wrap {
    text-align: right;
}

.pricing-divider-flush {
    margin-top: 0;
}

.pricing-card-full {
    margin-bottom: 2rem;
}

/* Kontakt section — centered content */
#kontakt .section-inner,
#kontakt .section-label {
    text-align: center;
}

#kontakt .section-title {
    max-width: 600px;
    margin: 0 auto 1rem;
}

#kontakt .section-sub {
    margin: 0 auto 2.5rem;
    text-align: center;
}

.btn-primary-lg {
    font-size: 16px;
    padding: 16px 36px;
}

/* Add-on box wrapping email tier grid */
.addon-card {
    border: 1px solid var(--zinc-200);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    background: var(--white);
    margin-top: 2rem;
}

.addon-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
}

.addon-card-eyebrow {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zinc-400);
    margin-bottom: 4px;
}

/* Footnote under pricing */
.pricing-footnote {
    text-align: center;
    margin-top: 2.5rem;
    font-size: 14px;
    color: var(--zinc-400);
}

.pricing-footnote a {
    color: var(--zinc-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Pricing card head row */
.pricing-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pricing-card-cta-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Email tier add-on grid — auto-wraps */
.email-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 4px;
}

/* Feature cards grid — auto-wraps */
.feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* Addons section divider label */
.addons-label {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--zinc-400);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* ===== DEMO MODAL ===== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal[hidden] {
    display: none;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 24, 27, 0.5);
    backdrop-filter: blur(4px);
    animation: modalFade 0.2s ease;
}

.modal-card {
    position: relative;
    background: var(--white);
    border-radius: 14px;
    padding: 2rem 2rem 1.75rem;
    width: 100%;
    max-width: 480px;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    animation: modalRise 0.25s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

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

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: var(--zinc-400);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.modal-close:hover {
    color: var(--zinc-900);
    background: var(--zinc-100);
}

.modal-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--sky);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    color: var(--zinc-900);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.modal-sub {
    font-size: 14px;
    color: var(--zinc-500);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.demo-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.demo-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.demo-field-wide {
    grid-column: 1 / -1;
}

.demo-field span {
    font-size: 12px;
    font-weight: 500;
    color: var(--zinc-700);
}

.demo-field span em {
    font-style: normal;
    font-weight: 400;
    color: var(--zinc-400);
}

.demo-field input,
.demo-field textarea {
    font: inherit;
    font-size: 14px;
    color: var(--zinc-900);
    background: var(--white);
    border: 1px solid var(--zinc-200);
    border-radius: 6px;
    padding: 9px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.demo-field textarea {
    resize: vertical;
    min-height: 72px;
}

.demo-field input:focus,
.demo-field textarea:focus {
    outline: none;
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.demo-submit {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    border: none;
    cursor: pointer;
    font: inherit;
}

.demo-thanks {
    text-align: center;
    padding: 1rem 0;
}

.demo-thanks[hidden] {
    display: none;
}

.demo-thanks-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--sky-light);
    color: var(--sky-dark);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

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

body.modal-open {
    overflow: hidden;
}

/* ===== RESPONSIVE ===== */

/* Tablet — collapse heavy multi-column layouts */
@media (max-width: 900px) {
    .hero-slide.active {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-carousel {
        max-width: 100%;
    }

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

    .trust-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 2rem;
    }

    .flow-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
    }

    .flow-grid::after {
        display: none;
    }
}

/* Mobile — stack everything, tighten spacing */
@media (max-width: 640px) {
    nav {
        padding: 0 1.25rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-links li:not(:last-child) {
        display: none;
    }

    section {
        padding: 64px 1.25rem;
    }

    .hero {
        padding: 100px 1.25rem 64px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

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

    .trust-bar {
        padding: 48px 1.25rem;
    }

    .trust-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flow-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    footer {
        padding: 2rem 1.25rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 1.25rem;
        text-align: center;
    }

    .billing-toggle {
        margin-left: 0;
    }
}