@keyframes revealBlock {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

section { animation: revealBlock 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hero-text > * { animation: revealBlock 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards; opacity: 0; }
.hero-text > *:nth-child(1) { animation-delay: 0.08s; }
.hero-text > *:nth-child(2) { animation-delay: 0.16s; }
.hero-text > *:nth-child(3) { animation-delay: 0.24s; }
.hero-text > *:nth-child(4) { animation-delay: 0.32s; }

:root {
    --primary: #6B1D2F;
    --primary-dark: #4A1220;
    --accent: #8E2840;
    --link: #B87D24;
    --canvas: #FDFBF7;
    --surface: #F4EFE6;
    --surface-border: #E5DEC9;
    --ink: #1E1418;
    --body: #2D2226;
    --hairline: #6E5D63;
    --accent-1: #D4A359;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-xxs: 4px;
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 22px;
    --spacing-xl: 28px;
    --spacing-xxl: 34px;
    --spacing-xxxl: 42px;
    --spacing-section: clamp(32px, 5.5vw, 64px);
    --spacing-band: clamp(44px, 7.5vw, 84px);
    --rounded-xs: 8px;
    --rounded-sm: 10px;
    --rounded-md: 12px;
    --rounded-lg: 20px;
    --rounded-full: 9999px;
    --shadow-sm: 0 8px 24px -4px rgba(74, 18, 32, 0.07);
    --shadow-md: 0 16px 36px -6px rgba(74, 18, 32, 0.14);
    --transition: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    overflow-wrap: break-word;
    word-wrap: break-word;
    font-family: var(--font-body);
    color: var(--body);
    background-color: var(--canvas);
    line-height: 1.5;
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--ink);
    margin-top: 0;
    margin-bottom: var(--spacing-lg);
}

h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.18; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 3vw, 27px); line-height: 1.25; }
h4 { font-family: var(--font-body); font-weight: 600; line-height: 1.35; }

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

@media (min-width: 1024px) {
    .container { padding: 0 var(--spacing-section); }
}

section {
    padding: var(--spacing-band) 0;
}

.bg-surface {
    background-color: var(--surface);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #FFFFFF;
}

.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6 {
    color: #FFFFFF;
}

.bg-primary p {
    color: #FDFBF7;
}

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

.btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 12px 30px;
    border-radius: var(--rounded-sm);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    text-align: center;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--canvas);
    box-shadow: 0 4px 14px rgba(107, 29, 47, 0.25);
}

.btn-primary:hover, .btn-primary:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(107, 29, 47, 0.35);
    opacity: 0.96;
}

.btn-warm {
    background: linear-gradient(135deg, #C48829 0%, #9E6914 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(184, 125, 36, 0.28);
}

.btn-warm:hover, .btn-warm:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(184, 125, 36, 0.4);
    opacity: 0.96;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    min-height: 56px;
}

.btn-outline:hover {
    background: rgba(107, 29, 47, 0.06);
}

input[type="text"], input[type="tel"], input[type="email"], select {
    width: 100%;
    min-height: 54px;
    border: 1.5px solid #D6CFC2;
    border-radius: var(--rounded-sm);
    padding: 0 var(--spacing-md);
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--ink);
    background: #FFFFFF;
    box-sizing: border-box;
    margin-bottom: var(--spacing-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 29, 47, 0.12);
    outline: none;
    background: #FFFFFF;
}

input:hover {
    border-color: #B8AE9E;
}

.card {
    transition: var(--transition);
    background: #FFFFFF;
    border: 1px solid rgba(107, 29, 47, 0.1);
    border-radius: var(--rounded-md);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    color: var(--body);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(107, 29, 47, 0.22);
}

/* Priority Banner Card (Deep Burgundy with White Text) */
.card.bg-primary,
div.card.bg-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(212, 163, 89, 0.4) !important;
    box-shadow: 0 16px 36px -6px rgba(74, 18, 32, 0.25) !important;
}

.card.bg-primary:hover,
div.card.bg-primary:hover {
    border-color: rgba(212, 163, 89, 0.75) !important;
    box-shadow: 0 20px 42px -6px rgba(74, 18, 32, 0.35) !important;
}

/* Direct Section Banner Content */
section.bg-primary > .container > h1,
section.bg-primary > .container > h2,
section.bg-primary > .container > h3,
section.bg-primary > .container > p,
.card.bg-primary > h1,
.card.bg-primary > h2,
.card.bg-primary > h3,
.card.bg-primary > p,
.banner-content h1,
.banner-content h2,
.banner-content h3,
.banner-content h4,
.banner-content p,
.banner-content li {
    color: #FFFFFF !important;
}

.banner-content p {
    color: #FDFBF7 !important;
    opacity: 0.95;
}

/* Comparison Table on Dark Sections */
.comparison-card {
    background: #FFFFFF !important;
    border-radius: var(--rounded-lg) !important;
    overflow: hidden !important;
    box-shadow: var(--shadow-md) !important;
    color: #2D2226 !important;
}

.comparison-card * {
    color: #2D2226;
}

.comparison-card h3.col-fake-title {
    color: #C02626 !important;
}

.comparison-card h3.col-legal-title {
    color: #6B1D2F !important;
}

.comparison-card ul.custom-list li {
    color: #2D2226 !important;
}

.comparison-card ul.custom-list li::before {
    color: var(--link) !important;
}

.comparison-card .unique-block {
    background: rgba(107, 29, 47, 0.05) !important;
    border-left: 4px solid #6B1D2F !important;
    color: #2D2226 !important;
}

.comparison-card .unique-block * {
    color: #2D2226 !important;
}

/* Nested White Cards inside Burgundy Banners MUST have crisp dark text */
.bg-primary .card,
.card.bg-primary .card {
    background: #FFFFFF !important;
    border: 1px solid #E5DEC9 !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18) !important;
    color: #2D2226 !important;
}

.bg-primary .card:hover,
.card.bg-primary .card:hover {
    transform: none !important;
    border-color: var(--primary) !important;
}

.bg-primary .card h1, .bg-primary .card h2, .bg-primary .card h3,
.bg-primary .card h4, .bg-primary .card h5, .bg-primary .card h6,
.card.bg-primary .card h1, .card.bg-primary .card h2, .card.bg-primary .card h3,
.card.bg-primary .card h4, .card.bg-primary .card h5, .card.bg-primary .card h6 {
    color: #1E1418 !important;
}

.bg-primary .card p, .card.bg-primary .card p,
.bg-primary .card label, .card.bg-primary .card label,
.bg-primary .card span, .card.bg-primary .card span,
.bg-primary .card li, .card.bg-primary .card li {
    color: #2D2226 !important;
    opacity: 1 !important;
}

.bg-primary .card p[style*="var(--hairline)"],
.card.bg-primary .card p[style*="var(--hairline)"],
.bg-primary .card .hairline,
.card.bg-primary .card .hairline {
    color: #6E5D63 !important;
}

.bg-primary .card input,
.card.bg-primary .card input,
.bg-primary .card select,
.card.bg-primary .card select {
    background: #FFFFFF !important;
    color: #1E1418 !important;
    border: 1.5px solid #D6CFC2 !important;
}

.bg-primary .card input:focus,
.card.bg-primary .card input:focus {
    border-color: var(--primary) !important;
    outline: none !important;
}

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--spacing-xl); }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--spacing-xl); }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--spacing-xl); }

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: 1fr 1fr; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.hero {
    padding: var(--spacing-band) 0;
    background: linear-gradient(135deg, #F6EFE2 0%, #EDE2CE 55%, #F8F3E9 100%);
    border: 1px solid #E2D6C1;
    border-radius: var(--rounded-lg);
    margin-top: var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

@media (min-width: 1024px) {
    .hero-content { flex-direction: row; align-items: stretch; }
    .hero-text { flex: 1; display: flex; flex-direction: column; justify-content: center; }
    .hero-form { width: 410px; flex-shrink: 0; }
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(107, 29, 47, 0.1);
    color: var(--primary);
    border: 1px solid rgba(107, 29, 47, 0.24);
    padding: 7px 16px;
    border-radius: var(--rounded-full);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
}

.step-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.step-num {
    width: 50px;
    height: 50px;
    border-radius: var(--rounded-sm);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--canvas);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(107, 29, 47, 0.2);
}

ul.custom-list {
    list-style: none;
    padding: 0;
}

ul.custom-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: var(--spacing-sm);
    line-height: 1.55;
}

ul.custom-list li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--link);
    font-weight: bold;
    font-size: 17px;
}

details.faq-item {
    border-bottom: 1px solid var(--surface-border);
    padding: var(--spacing-md) 0;
}

details.faq-item summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary h4 {
    margin: 0;
    font-size: 19px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    color: var(--ink);
}

details.faq-item summary h4::after {
    content: '+';
    color: var(--primary);
    font-size: 24px;
    font-weight: 600;
    flex-shrink: 0;
}

details.faq-item[open] summary h4::after {
    content: '−';
}

.unique-block {
    border-left: 4px solid var(--primary);
    margin: var(--spacing-lg) 0;
    background: rgba(107, 29, 47, 0.05);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: 0 var(--rounded-sm) var(--rounded-sm) 0;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--body);
}

.bg-primary .unique-block,
.card.bg-primary .unique-block {
    background: rgba(255, 255, 255, 0.12) !important;
    border-left-color: var(--accent-1) !important;
    color: #FFFFFF !important;
}

.stat-item {
    text-align: center;
    padding: var(--spacing-md);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 46px;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

input[type="radio"], input[type="checkbox"] {
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: 0;
    display: inline-block;
    cursor: pointer;
}

.quiz-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-md);
    background: #FFFFFF;
    border: 1.5px solid var(--surface-border);
    border-radius: var(--rounded-sm);
    transition: var(--transition);
}

.quiz-label:hover {
    border-color: var(--primary);
    background: var(--surface);
}

.quiz-label input[type="radio"] {
    transform: scale(1.25);
    margin-right: 12px;
    accent-color: var(--primary);
}

/* Netlify Badge & HUD Suppressor */
iframe[src*="netlify"],
netlify-hud,
[data-netlify-site-id],
.netlify-badge,
#netlify-badge,
div[class*="netlify-"],
div[id*="netlify-"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
}