/* ============================================
   PLAINRIGHT.DE – Design System v2.0
   Premium dark theme for high-conversion
   landlord risk analysis funnel
   ============================================ */

/* --- Font: Inter (self-hosted, see /fonts/fonts.css) --- */

/* --- CSS Variables (PlainRight Brand Tokens) --- */
:root {
    /* Primary gradient from logo */
    --pr-blue-start: #29ABE2;
    --pr-blue-end: #0072BC;
    --pr-blue-mid: #1A8FD1;
    --pr-blue-glow: rgba(41, 171, 226, 0.35);
    --pr-blue-subtle: rgba(41, 171, 226, 0.08);

    /* Dark backgrounds */
    --pr-dark-900: #0A0D14;
    --pr-dark-800: #0D1117;
    --pr-dark-700: #161B22;
    --pr-dark-600: #1C2333;
    --pr-dark-500: #21293A;

    /* Surfaces (glassmorphism cards) */
    --pr-surface: rgba(22, 27, 34, 0.75);
    --pr-surface-solid: #161B22;
    --pr-surface-hover: rgba(28, 35, 51, 0.85);
    --pr-surface-border: rgba(41, 171, 226, 0.12);
    --pr-surface-border-hover: rgba(41, 171, 226, 0.3);

    /* Text */
    --pr-text: #F0F4F8;
    --pr-text-secondary: #8B9AB0;
    --pr-text-muted: #5A6A80;
    --pr-text-dark: #1A1A2E;

    /* Accent colors */
    --pr-green: #22C55E;
    --pr-green-glow: rgba(34, 197, 94, 0.2);
    --pr-yellow: #F59E0B;
    --pr-red: #EF4444;
    --pr-orange: #F97316;

    /* White on dark contexts */
    --pr-white: #FFFFFF;
    --pr-white-10: rgba(255, 255, 255, 0.10);
    --pr-white-06: rgba(255, 255, 255, 0.06);
    --pr-white-03: rgba(255, 255, 255, 0.03);

    /* Light mode surfaces (for funnel form) */
    --pr-light-bg: #F8FAFC;
    --pr-light-surface: #FFFFFF;
    --pr-light-border: #E2E8F0;
    --pr-light-text: #334155;
    --pr-light-text-secondary: #64748B;
    --pr-light-text-muted: #94A3B8;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 24px var(--pr-blue-glow), 0 0 64px rgba(41, 171, 226, 0.12);
    --shadow-glow-strong: 0 0 32px var(--pr-blue-glow), 0 0 80px rgba(41, 171, 226, 0.18);

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Icon System ── */
.pr-icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    display: inline-block;
    flex-shrink: 0;
}
.pr-icon-lg {
    width: 1.5em;
    height: 1.5em;
}
.pr-icon-xl {
    width: 2em;
    height: 2em;
}


/* --- 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-family);
    color: var(--pr-text);
    background: var(--pr-dark-900);
    line-height: 1.6;
    overflow-x: hidden; /* safety net – investigate if removing causes horizontal scroll */
}

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

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

a {
    color: inherit;
    text-decoration: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 13, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.nav.scrolled {
    background: rgba(10, 13, 20, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

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

.nav-logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--pr-text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--pr-blue-start), var(--pr-blue-end));
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--pr-text);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.lang-switch {
    display: flex;
    align-items: center;
    background: var(--pr-white-06);
    border: 1px solid var(--pr-white-10);
    border-radius: var(--radius-full);
    padding: 3px;
    gap: 0;
}

.lang-btn {
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-family);
    color: var(--pr-text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--pr-blue-start), var(--pr-blue-end));
    color: var(--pr-white);
    box-shadow: 0 2px 8px rgba(41, 171, 226, 0.3);
}

.lang-btn:hover:not(.active) {
    color: var(--pr-text-secondary);
}

/* Nav CTA */
.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--pr-blue-start), var(--pr-blue-end));
    color: var(--pr-white) !important;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 12px rgba(41, 171, 226, 0.25);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-glow);
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pr-text);
    transition: var(--transition);
    border-radius: 1px;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 120px 24px 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 20%, rgba(41, 171, 226, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 30% 80%, rgba(0, 114, 188, 0.06) 0%, transparent 50%),
        linear-gradient(180deg,
            var(--pr-dark-900) 0%,
            #0B1120 40%,
            #0F1628 70%,
            var(--pr-dark-800) 100%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Floating grid pattern */
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(41, 171, 226, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(41, 171, 226, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, black 20%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 840px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--pr-white-06);
    border: 1px solid var(--pr-white-10);
    color: var(--pr-text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 32px;
    backdrop-filter: blur(8px);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pr-blue-start);
    box-shadow: 0 0 8px var(--pr-blue-glow);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 800;
    color: var(--pr-white);
    line-height: 1.12;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title-accent {
    display: block;
    background: linear-gradient(135deg, var(--pr-blue-start) 0%, #5ECAE8 50%, var(--pr-blue-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--pr-text-secondary);
    max-width: 620px;
    margin: 0 auto 44px;
    line-height: 1.75;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 52px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(5px, 0.8vw, 8px) clamp(10px, 1.5vw, 16px);
    background: var(--pr-white-03);
    border: 1px solid var(--pr-white-06);
    border-radius: var(--radius-full);
    color: var(--pr-text-secondary);
    font-size: clamp(11px, 1.5vw, 13px);
    font-weight: 500;
    backdrop-filter: blur(4px);
}

.trust-check {
    color: var(--pr-green);
    font-weight: 700;
    font-size: 14px;
}

/* Hero Stats Bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--pr-white-06);
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--pr-blue-start), var(--pr-blue-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--pr-text-muted);
    margin-top: 4px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pr-blue-start), var(--pr-blue-end));
    color: var(--pr-white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.btn-glow:hover {
    box-shadow: var(--shadow-glow-strong);
}

.btn-secondary {
    background: var(--pr-white-06);
    color: var(--pr-text);
    border: 1px solid var(--pr-white-10);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--pr-white-10);
    transform: translateY(-2px);
    border-color: var(--pr-surface-border-hover);
}

.btn-back {
    background: transparent;
    color: var(--pr-light-text-secondary);
    border: 1px solid var(--pr-light-border);
}

.btn-back:hover {
    background: var(--pr-light-bg);
    color: var(--pr-light-text);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--pr-blue-subtle);
    color: var(--pr-blue-start);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 18px;
    border: 1px solid rgba(41, 171, 226, 0.15);
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 800;
    color: var(--pr-white);
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 16px;
    color: var(--pr-text-secondary);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================================
   PAIN POINTS (Section B)
   ============================================ */
.pain-section {
    padding: 120px 0;
    background: var(--pr-dark-800);
    position: relative;
}

.pain-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pain-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-surface-border);
    border-radius: var(--radius-xl);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(24px);
}

.pain-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pain-card:hover {
    transform: translateY(-6px);
    border-color: var(--pr-surface-border-hover);
    box-shadow: var(--shadow-glow);
}

.pain-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.12), rgba(0, 114, 188, 0.08));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    font-size: 26px;
    border: 1px solid rgba(41, 171, 226, 0.1);
}

.pain-card h3 {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--pr-white);
    margin-bottom: 10px;
    min-height: 2.7em;
}

.pain-card p {
    font-size: 14px;
    color: var(--pr-text-secondary);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

.pain-card .pain-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    padding: 5px 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-full);
    color: var(--pr-red);
    font-size: 12px;
    font-weight: 600;
}

/* ============================================
   5 DIMENSIONS (old Section B – now part of pain/features)
   ============================================ */
.dimensions {
    padding: 120px 0;
    background: var(--pr-dark-900);
    position: relative;
}

.dimensions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.dim-card {
    background: var(--pr-surface);
    border: 1px solid var(--pr-surface-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateY(20px);
}

.dim-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dim-card:hover {
    transform: translateY(-4px);
    border-color: var(--pr-surface-border-hover);
    box-shadow: 0 8px 24px rgba(41, 171, 226, 0.08);
}

.dim-card-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.12), rgba(0, 114, 188, 0.06));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--pr-blue-start);
    border: 1px solid rgba(41, 171, 226, 0.1);
}

.dim-card-icon svg {
    width: 24px;
    height: 24px;
}

.dim-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pr-white);
    margin-bottom: 10px;
}

.dim-card p {
    font-size: 14px;
    color: var(--pr-text-secondary);
    line-height: 1.65;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 120px 0;
    background: var(--pr-dark-800);
    position: relative;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

.steps-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
}

.step-card {
    text-align: center;
    padding: 36px 28px;
    max-width: 300px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pr-blue-start), var(--pr-blue-end));
    color: var(--pr-white);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    box-shadow: 0 4px 16px rgba(41, 171, 226, 0.3);
}

.step-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pr-white);
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--pr-text-secondary);
    line-height: 1.65;
}

.step-connector {
    width: 48px;
    color: var(--pr-text-muted);
    flex-shrink: 0;
    opacity: 0.4;
}

.step-connector svg {
    width: 100%;
}

.steps-cta {
    text-align: center;
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
    padding: 100px 0;
    background: var(--pr-dark-900);
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trust-badge-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--pr-surface);
    border: 1px solid var(--pr-surface-border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    backdrop-filter: blur(12px);
}

.trust-badge-card:hover {
    border-color: var(--pr-surface-border-hover);
    transform: translateY(-3px);
}

.trust-badge-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.trust-badge-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--pr-white);
    margin-bottom: 6px;
}

.trust-badge-text {
    font-size: 12.5px;
    color: var(--pr-text-muted);
    line-height: 1.5;
}

/* ============================================
   FAQ
   ============================================ */
.faq-section {
    padding: 120px 0;
    background: var(--pr-dark-800);
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--pr-surface-border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--pr-surface);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--pr-surface-border-hover);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: 15px;
    font-weight: 600;
    color: var(--pr-text);
    text-align: left;
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--pr-blue-start);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    color: var(--pr-text-muted);
    transition: transform var(--transition);
    flex-shrink: 0;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    color: var(--pr-blue-start);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 14px;
    color: var(--pr-text-secondary);
    line-height: 1.7;
}

/* ============================================
   FUNNEL
   ============================================ */
.funnel-section {
    padding: 100px 0 140px;
    background: linear-gradient(180deg, var(--pr-dark-800) 0%, var(--pr-dark-900) 100%);
    position: relative;
}

.funnel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

.funnel-container {
    max-width: 780px;
    margin: 0 auto;
    background: var(--pr-light-surface);
    border: 1px solid var(--pr-light-border);
    border-radius: var(--radius-2xl);
    padding: 44px;
    box-shadow: var(--shadow-xl);
    color: var(--pr-light-text);
}

/* Progress Bar */
.funnel-progress {
    margin-bottom: 36px;
}

.funnel-progress-bar {
    height: 6px;
    background: #E8EDF2;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
    position: relative;
}

.funnel-progress-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: var(--progress, 10%);
    background: linear-gradient(90deg, var(--pr-blue-start), var(--pr-blue-end));
    border-radius: var(--radius-full);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(41, 171, 226, 0.3);
}

.funnel-progress-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--pr-light-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-phase {
    display: inline-block;
    padding: 3px 14px;
    background: var(--pr-blue-subtle);
    color: var(--pr-blue-end);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border: 1px solid rgba(41, 171, 226, 0.1);
}

.progress-detail {
    font-size: 12px;
    font-weight: 500;
    color: var(--pr-light-text-muted);
}

/* Step Dots */
.step-dots {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-bottom: 24px;
}

.step-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #D5DCE5;
    transition: all 0.3s ease;
}

.step-dots .dot.done {
    background: var(--pr-blue-start);
}

.step-dots .dot.active {
    background: var(--pr-blue-end);
    width: 24px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 6px rgba(41, 171, 226, 0.3);
}

/* Step Content */
.funnel-step-wrapper {
    min-height: 300px;
}

.funnel-step {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Step Header with Icon */
.funnel-step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 4px;
}

.funnel-step-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.funnel-step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pr-text-dark);
    margin-bottom: 4px;
}

.funnel-step-subtitle {
    font-size: 14px;
    color: var(--pr-light-text-secondary);
    margin-bottom: 0;
}

/* Diagnostic Intro Card */
.funnel-intro {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(41, 171, 226, 0.04), rgba(0, 114, 188, 0.02));
    border-left: 3px solid var(--pr-blue-start);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 16px 0 24px;
}

.funnel-intro-icon {
    color: var(--pr-blue-end);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.6;
    flex-shrink: 0;
}

.funnel-intro p {
    font-size: 13px;
    color: var(--pr-light-text-secondary);
    line-height: 1.65;
    margin: 0;
}

/* Micro-copy */
.funnel-micro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #F1F5F9;
    font-size: 12px;
    color: var(--pr-light-text-muted);
    font-weight: 500;
}

.funnel-micro-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pr-green);
    flex-shrink: 0;
    box-shadow: 0 0 4px var(--pr-green-glow);
}

/* Form Elements */
.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--pr-text-dark);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--pr-light-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    color: var(--pr-light-text);
    background: var(--pr-light-surface);
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--pr-blue-start);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.1);
}

.form-input::placeholder {
    color: var(--pr-light-text-muted);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-hint {
    font-size: 12px;
    color: var(--pr-light-text-muted);
    margin-top: 4px;
}

/* Separate address fields in the risk-analysis funnel */
.address-fields-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(110px, 0.75fr) minmax(120px, 0.9fr) minmax(0, 1.5fr);
    gap: 12px;
}

.address-field .form-label {
    white-space: nowrap;
}

/* Radio & Checkbox Groups */
.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.radio-option,
.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 1px solid var(--pr-light-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
    color: var(--pr-light-text);
}

.radio-option:hover,
.checkbox-option:hover {
    border-color: var(--pr-blue-start);
    background: rgba(41, 171, 226, 0.03);
}

.radio-option.selected,
.checkbox-option.selected {
    border-color: var(--pr-blue-start);
    background: rgba(41, 171, 226, 0.06);
    box-shadow: 0 0 0 1px rgba(41, 171, 226, 0.15);
}

.radio-option input,
.checkbox-option input {
    accent-color: var(--pr-blue-start);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Number Input Row (for units) */
.number-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 14px;
}

.number-row label {
    font-size: 14px;
    color: var(--pr-light-text);
}

.number-row input[type="number"] {
    width: 80px;
    padding: 10px 12px;
    border: 1px solid var(--pr-light-border);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 14px;
    text-align: center;
    outline: none;
    transition: var(--transition);
}

.number-row input[type="number"]:focus {
    border-color: var(--pr-blue-start);
    box-shadow: 0 0 0 3px rgba(41, 171, 226, 0.1);
}

/* Object Cards (Block 1) */
.object-card {
    background: var(--pr-light-bg);
    border: 1px solid var(--pr-light-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
}

.object-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.object-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pr-text-dark);
}

.object-card-remove {
    background: none;
    border: none;
    color: var(--pr-red);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.object-card-remove:hover {
    background: rgba(239, 68, 68, 0.08);
}

.add-object-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--pr-blue-subtle);
    color: var(--pr-blue-end);
    border: 1px dashed rgba(41, 171, 226, 0.3);
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-object-btn:hover {
    background: rgba(41, 171, 226, 0.12);
    border-color: var(--pr-blue-start);
}

/* Funnel Nav */
.funnel-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #F1F5F9;
}

/* ============================================
   RESULT SECTION
   ============================================ */
.result-section {
    padding: 60px 0 140px;
    background: var(--pr-dark-900);
}

.result-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--pr-light-surface);
    border: 1px solid var(--pr-light-border);
    border-radius: var(--radius-2xl);
    padding: 52px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    color: var(--pr-light-text);
}

.result-score {
    font-size: 72px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.result-score-label {
    font-size: 14px;
    color: var(--pr-light-text-muted);
    margin-bottom: 24px;
}

/* PlainRight report preview in the lead gate (no third-party product branding). */
.pr-report-preview {
    position: relative;
    width: min(200px, 100%);
    aspect-ratio: 0.72;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.15);
    color: #0f172a;
}

.pr-report-preview__brand {
    padding: 10px 14px;
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.pr-report-preview__shield {
    display: grid;
    width: 42px;
    height: 42px;
    margin: 22px auto 12px;
    place-items: center;
    border: 2px solid #0284c7;
    border-radius: 50% 50% 42% 42%;
    color: #0284c7;
    font-size: 11px;
    font-weight: 800;
}

.pr-report-preview__title {
    color: #0f172a;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.08;
}

.pr-report-preview__subtitle {
    margin-top: 9px;
    color: #475569;
    font-size: 8px;
    line-height: 1.35;
}

.pr-report-preview__rule {
    width: 68%;
    height: 4px;
    margin: 18px auto 0;
    border-top: 2px solid #0f172a;
    border-bottom: 1px solid #d4a843;
}

.pr-report-preview__footer {
    position: absolute;
    right: 0;
    bottom: 12px;
    left: 0;
    color: #64748b;
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.result-level {
    display: inline-block;
    padding: 6px 22px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 28px;
}

.result-bullets {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    max-width: 100%;
    text-align: left;
    margin: 0 auto 36px;
}

.result-bullets li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--pr-light-text);
    list-style: none;
    position: relative;
    padding-left: 24px;
}

.result-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--pr-blue-start);
    font-weight: 700;
}

/* Contact Form in Result */
.result-form {
    text-align: left;
}

.result-form h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--pr-text-dark);
    margin-bottom: 20px;
    text-align: center;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-checkbox-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    margin-bottom: 20px;
}

.form-checkbox-wrapper input[type="checkbox"] {
    accent-color: var(--pr-blue-start);
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-checkbox-wrapper label {
    font-size: 12.5px;
    color: var(--pr-light-text-secondary);
    line-height: 1.5;
}

.result-submit-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 8px;
}

.form-error {
    color: var(--pr-red);
    font-size: 12px;
    margin-top: 4px;
}

.field-error {
    border-color: var(--pr-red) !important;
}

/* Success state */
.result-success {
    text-align: center;
    padding: 40px 0;
}

.result-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--pr-green-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: var(--pr-green);
    font-size: 32px;
}

.result-success h3 {
    font-size: 22px;
    color: var(--pr-text-dark);
    margin-bottom: 12px;
}

.result-success p {
    color: var(--pr-light-text-secondary);
    font-size: 15px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--pr-dark-900);
    color: var(--pr-text-secondary);
    padding: 80px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--pr-surface-border), transparent);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 18px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-text {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 22px;
    max-width: 380px;
    color: var(--pr-text-muted);
}

.footer-contact-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-items a,
.footer-contact-items span {
    color: var(--pr-text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition);
}

.footer-contact-items a:hover {
    color: var(--pr-blue-start);
}

.footer-col h4 {
    color: var(--pr-white);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
    text-transform: uppercase;
}

.footer-col a {
    display: block;
    color: var(--pr-text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--pr-blue-start);
}

.footer-bottom {
    border-top: 1px solid var(--pr-white-06);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--pr-text-muted);
}

.footer-bottom a {
    color: var(--pr-text-muted);
    transition: color var(--transition);
}

.footer-bottom a:hover {
    color: var(--pr-blue-start);
}

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

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .pain-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-stats {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(10, 13, 20, 0.97);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--pr-white-06);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .hero {
        padding: 100px 20px 60px;
        min-height: auto;
    }

    .hero-trust {
        gap: 8px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .pain-section,
    .dimensions,
    .how-it-works,
    .faq-section,
    .trust-section {
        padding: 80px 0;
    }

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

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

    .steps-row {
        flex-direction: column;
        gap: 0;
    }

    .step-connector {
        transform: rotate(90deg);
        margin: -8px 0;
    }

    .funnel-container {
        padding: 28px 20px;
        border-radius: var(--radius-xl);
    }

    .address-fields-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .result-card {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .number-row input[type="number"] {
        width: 70px;
    }

    .address-fields-grid {
        grid-template-columns: 1fr;
    }

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

    .pain-grid {
        gap: 16px;
    }
}

/* ============================================
   LARGE SCREENS – avoid "lost on big monitor"
   ============================================ */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
        padding: 0 48px;
    }

    .hero-content {
        max-width: 960px;
    }

    .hero h1 {
        font-size: 52px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .funnel-container {
        max-width: 920px;
        padding: 52px 56px;
    }

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

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

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

    .section-title {
        font-size: 38px;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Loading spinner */
.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--pr-light-border);
    border-top-color: var(--pr-blue-start);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, var(--pr-blue-start), var(--pr-blue-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
