/* ===== CSS VARIABLES - V2 ===== */
:root {
    /* Brand Colors - Refined */
    --primary: #2F73B4;
    --primary-dark: #1a4d80;
    --primary-light: #5c9ce6;
    --primary-soft: rgba(47, 115, 180, 0.08);

    /* Neutral Colors */
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-2: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --text-on-primary: #ffffff;

    /* Accents */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Spacing */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */
    --space-2xl: 5rem;
    /* 80px */
    --space-3xl: 8rem;
    /* 128px */

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

    /* Borders & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 0 40px rgba(47, 115, 180, 0.15);

    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s ease;
}

ul {
    list-style: none;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.text-sm {
    font-size: 0.875rem;
}

/* ===== LAYOUT ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-2xl) 0;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(47, 115, 180, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(47, 115, 180, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    border: 1px solid var(--bg-surface-2);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 100;
}

header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: -1;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.nav-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}

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

.nav-links .btn-primary {
    color: white !important;
}

/* ===== NAV DROPDOWN ===== */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: default;
}

.nav-dropdown-trigger::after {
    content: '';
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after {
    transform: rotate(180deg);
}

.nav-dropdown:hover .nav-dropdown-trigger {
    color: var(--primary);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.nav-dropdown-menu ul {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    min-width: 210px;
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    font-weight: 450;
    color: var(--text-main);
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown-menu li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.nav-dropdown-menu li a:hover {
    background: var(--bg-surface);
    color: var(--primary);
}

.nav-dropdown-menu li a[href="/split/travel"]::before { background: #3b82f6; }
.nav-dropdown-menu li a[href="/split/rent"]::before { background: #8b5cf6; }
.nav-dropdown-menu li a[href="/split/couples"]::before { background: #ec4899; }
.nav-dropdown-menu li a[href="/split/groceries"]::before { background: #10b981; }
.nav-dropdown-menu li a[href="/split/utilities"]::before { background: #f59e0b; }
.nav-dropdown-menu li a[href="/split/teams"]::before { background: #06b6d4; }

/* ===== HERO ===== */
.hero {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.hero-bg-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.badge-live {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero h1 {
    margin-bottom: var(--space-md);
}

.hero p {
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    font-size: 1.25rem;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    margin-bottom: var(--space-2xl);
}

.hero-visual {
    position: relative;
    margin-top: var(--space-lg);
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-mockup {
    max-width: 280px;
    border-radius: 40px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    border: 8px solid white;
    position: relative;
    z-index: 2;
}

.hero-floating-card {
    position: absolute;
    background: white;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: float 6s ease-in-out infinite;
}

.card-left {
    top: 20%;
    left: 50%;
    transform: translateX(-220px);
}

.card-right {
    bottom: 20%;
    right: 50%;
    transform: translateX(220px);
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(var(--tx, 0), 0);
    }

    50% {
        transform: translate(var(--tx, 0), -15px);
    }
}

/* ===== HOW IT WORKS (THE LOOP) ===== */
.loop-section {
    background: var(--bg-surface);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-2xl);
}

.loop-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
}

/* Connecting line */
.loop-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
    z-index: 0;
    opacity: 0.3;
}

.step-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 2rem;
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ===== FEATURE ROWS (ZIGZAG) ===== */
.features-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
    max-width: 1000px;
    margin: 0 auto;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

/* If grid support is tricky with order, we can use flex or just swap columns in HTML. 
   But grid is fine. Let's use flex for easier ordering control on mobile too. */
.feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
}

.feature-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-icon-small {
    width: 48px;
    height: 48px;
    background: var(--bg-surface);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--primary);
}

.feature-text h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.feature-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.feature-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* "Compact" screenshots */
.feature-mockup {
    max-width: 280px;
    /* Smaller than full width */
    width: 100%;
    border-radius: 32px;
    box-shadow: var(--shadow-xl), 0 0 0 8px white;
    /* Frame */
    transition: transform 0.3s ease;
}

.feature-row:hover .feature-mockup {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 8px white, var(--shadow-glow);
}

/* Decorative blobs behind images */
.feature-blob {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    filter: blur(40px);
}

.blob-blue {
    background: #bfdbfe;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-green {
    background: #bbf7d0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-purple {
    background: #e9d5ff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-violet {
    background: #ddd6fe;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blob-yellow {
    background: #fef08a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {

    .feature-row,
    .feature-reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .feature-icon-small {
        margin: 0 auto var(--space-md);
    }

    .feature-reverse .feature-text {
        order: 0;
    }

    .feature-reverse .feature-image-container {
        order: 1;
    }
}

/* ===== COMPARISON ===== */
.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-surface-2);
}

th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

td {
    font-weight: 500;
    font-size: 0.9rem;
}

.col-feature {
    width: 30%;
}

.col-app {
    width: 22%;
    text-align: center;
}

.col-highlight {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
    border-bottom-color: rgba(47, 115, 180, 0.1);
}

.check {
    color: var(--success);
}

.cross {
    color: var(--text-light);
    opacity: 0.5;
}

/* ===== CTA ===== */
.cta-section {
    background: var(--primary);
    color: white;
    text-align: center;
    border-radius: var(--radius-xl);
    margin: var(--space-2xl) auto;
    padding: var(--space-3xl) var(--space-md);
    max-width: 1000px;
}

.cta-section h2 {
    color: white;
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-lg);
}

.cta-section .btn-secondary {
    background: white;
    color: var(--primary);
    border: none;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--bg-surface-2);
    padding: var(--space-2xl) 0;
    background: var(--bg-surface);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    margin-left: var(--space-lg);
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

    .span-4 {
        grid-column: span 2;
    }

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    /* Hide detail text in comparison table on mobile */
    .detail-text {
        display: none;
    }

    header {
        height: 64px;
    }

    .nav-container {
        padding: 0 var(--space-sm);
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        gap: var(--space-sm);
        font-size: 0.85rem;
    }

    /* Hide some nav links on mobile to reduce crowding */
    .nav-dropdown,
    .nav-links a[href="/compare"],
    .nav-links a[href="/blog"] {
        display: none;
    }

    .nav-links a:not(.btn) {
        padding: 0.5rem 0.75rem;
    }

    .nav-links .btn {
        padding: 0.6rem 1rem !important;
        font-size: 0.85rem !important;
        color: white !important;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        gap: var(--space-md);
    }

    .hero-mockup {
        max-width: 240px;
    }

    .hero-floating-card {
        display: none;
    }

    .loop-steps {
        grid-template-columns: 1fr;
    }

    .use-cases-grid {
        grid-template-columns: 1fr !important;
    }

    .loop-steps::before {
        display: none;
    }

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

    .span-2,
    .span-4 {
        grid-column: span 1;
    }

    .row-2 {
        grid-row: auto;
    }

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
    }

    .footer-links a {
        margin: 0 var(--space-sm);
    }
}

@media (max-width: 480px) {
    header {
        height: 60px;
    }

    .logo {
        font-size: 1rem;
    }

    .nav-links {
        gap: var(--space-xs);
        font-size: 0.8rem;
    }

    /* Hide Compare link on very small screens */
    .nav-links a[href="#comparison"] {
        display: none;
    }

    .nav-links .btn {
        padding: 0.55rem 1rem !important;
        font-size: 0.8rem !important;
        color: white !important;
    }

    h1 {
        font-size: 2rem;
    }

    .hero-mockup {
        max-width: 200px;
    }
}

/* ===== CTA / COMING SOON ===== */
.cta-section-wrapper {
    background: linear-gradient(135deg, #2F73B4 0%, #1e5a8e 100%);
    position: relative;
    overflow: hidden;
    padding: var(--space-3xl) 0;
    color: white;
}

/* Decorative background elements */
.cta-bg-circle-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    top: -200px;
    right: -100px;
    z-index: 0;
}

.cta-bg-circle-2 {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    bottom: -150px;
    left: -50px;
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-icon-wrapper {
    /* Removed fixed width/height and background to let the icon stand alone */
    display: inline-block;
    margin-bottom: var(--space-lg);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.cta-app-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    /* Optional: slight border to make it pop against the dark bg if needed */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section-wrapper:hover .cta-icon-wrapper {
    transform: rotate(0deg) scale(1.05);
}

/* ===== SMART SETTLEMENTS VISUALIZATION ===== */
.settlement-card {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settlement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.person {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.avatar-1 {
    background: #FF9F1C;
}

.avatar-2 {
    background: #FF6B6B;
}

.avatar-3 {
    background: #2EC4B6;
}

.avatar-4 {
    background: #E71D36;
}

.name {
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
}

.action {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
}

.pay-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: -4px;
}

.arrow {
    font-size: 1.2rem;
    line-height: 1;
}

.amount {
    font-weight: 700;
    color: var(--success);
    font-size: 1rem;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
}

@media (max-width: 480px) {
    .settlement-row {
        flex-wrap: wrap;
        justify-content: center;
    }

    .amount {
        width: 100%;
        text-align: center;
        margin-top: 0.25rem;
    }
}

/* ===== OLD WAY VISUALIZATION ===== */
.old-way-card {
    margin-top: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.messy-list-container {
    width: 200px;
    height: 180px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0.9;
    /* Increased from 0.5 */
    /* margin: 1rem auto 0; Removed centering as parent handles it */
}

.messy-row {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    /* Increased from 0.75rem */
    color: rgba(255, 255, 255, 0.9);
    /* Increased from 0.7 */
    white-space: nowrap;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 2px;
}

.settlements-comparison-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: start;
    max-width: 900px;
    margin: 0 auto;
}

.comparison-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-top: 4rem;
    /* Push down to align roughly with the middle of the visual elements */
    color: rgba(255, 255, 255, 0.4);
}

.separator-arrow {
    width: 32px;
    height: 32px;
}

@media (max-width: 768px) {
    .settlements-comparison-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .comparison-separator {
        padding-top: 0;
        transform: rotate(90deg);
    }
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: white;
}

.cta-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.75rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: default;
}

.app-store-badge:hover {
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.app-store-text {
    text-align: left;
    line-height: 1.2;
}

.app-store-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.app-store-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

/* ===== WAITLIST FORM ===== */
.waitlist-form {
    max-width: 400px;
    margin: 2rem auto 0;
}

.form-group {
    position: relative;
}

.waitlist-input {
    width: 100%;
    padding: 1.125rem 1.5rem;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-radius: 14px;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.waitlist-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.waitlist-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
}

.beta-toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.beta-toggle-label:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.beta-toggle-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    font-weight: 500;
    user-select: none;
}

.beta-toggle {
    position: relative;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
}

.beta-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.beta-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    transition: all 0.25s ease;
}

.beta-toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: all 0.25s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.beta-toggle-input:checked + .beta-toggle-slider {
    background: #34C759;
}

.beta-toggle-input:checked + .beta-toggle-slider::before {
    transform: translateX(20px);
}

.beta-toggle-input:focus + .beta-toggle-slider {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
}

.waitlist-submit {
    width: 100%;
    padding: 1.125rem 2rem;
    font-size: 1.0625rem;
    font-weight: 600;
    background: white;
    color: #1e5a8e;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.waitlist-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.waitlist-submit:active {
    transform: translateY(0);
}

.waitlist-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    animation: spin 1s linear infinite;
}

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

.form-message {
    text-align: center;
    font-size: 0.9375rem;
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
}

.form-message.success {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ===== iOS WIDGETS SECTION ===== */
.widgets-section {
    overflow: hidden;
}

.widgets-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.widget-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.carousel-track {
    position: relative;
    width: 100%;
    max-width: 320px;
    aspect-ratio: 9/15.5;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.widget-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    border-radius: 24px;
}

.carousel-dots {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: var(--primary-soft);
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.1);
}

.widget-info {
    position: relative;
    min-height: 200px;
}

.widget-type {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.widget-type.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.widget-type-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.widget-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.widget-size {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.widget-type h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.widget-type p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .widgets-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .widget-info {
        text-align: center;
        min-height: auto;
    }

    .widget-type-header {
        justify-content: center;
    }

    .carousel-track {
        max-width: 280px;
    }
}

/* ===== COMING SOON BADGE (REUSABLE) ===== */
.badge-coming-soon {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    margin-bottom: var(--space-sm);
}

.coming-soon-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.75rem;
    vertical-align: middle;
}

.feature-title-with-badge {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-sm);
}

.feature-title-with-badge h3 {
    margin-bottom: 0;
}

/* ===== iPad SECTION ===== */
.ipad-section {
    overflow: hidden;
    background: var(--bg-body);
}

/* Tablets page - standalone page styling */
.ipad-page-section {
    padding-top: 100px;
    padding-bottom: 0;
}

.ipad-page-section .section-header {
    margin-bottom: 0;
}

.ipad-page-section h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.ipad-page-section p {
    margin-bottom: 0;
}

/* Tablet Feature Sections - Individual sections with rotate capability */
.tablet-feature-section {
    padding: 3rem 0;
}

.tablet-feature-section:first-of-type {
    padding-top: 1.5rem;
}

.tablet-feature-section.tablet-feature-alt {
    background: var(--bg-surface);
}

.tablet-feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.tablet-feature-row.tablet-feature-reverse {
    direction: rtl;
}

.tablet-feature-row.tablet-feature-reverse > * {
    direction: ltr;
}

.tablet-feature-device {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.tablet-feature-info {
    padding: 1rem 0;
}

.tablet-feature-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.tablet-feature-info h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
}

.tablet-feature-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-light);
}

/* Individual rotate button for each section */
.tablet-rotate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tablet-rotate-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.tablet-rotate-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tablet-rotate-btn svg {
    transition: transform 0.4s ease;
}

.tablet-rotate-btn.rotating svg {
    transform: rotate(180deg);
}

.tablet-cta-section {
    padding: 4rem 0;
}

@media (max-width: 900px) {
    .tablet-feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .tablet-feature-row.tablet-feature-reverse {
        direction: ltr;
    }

    .tablet-feature-info {
        order: 2;
    }

    .tablet-feature-device {
        order: 1;
    }
}

/* Feature link style */
.feature-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.feature-link:hover {
    color: var(--primary-dark);
}

.ipad-showcase {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* iPad Carousel */
.ipad-carousel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ipad-carousel-track {
    position: relative;
    width: 100%;
    max-width: 560px;
    height: 420px;
    overflow: visible;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* iPad Device - actually rotates 90 degrees */
.ipad-device {
    position: relative;
    /* 11" iPad Pro aspect ratio: 1668:2388 ≈ 0.698:1 in portrait */
    width: 293px;
    height: 420px;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ipad-device.portrait {
    transform: rotate(0deg);
}

.ipad-device.landscape {
    transform: rotate(-90deg);
}

.ipad-device-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 20px;
    /* Padding adjusted so screen maintains iPad Pro 11" aspect ratio (0.698:1) */
    /* Screen: 277x396, ratio = 0.699 ≈ 0.698 */
    padding: 12px 8px;
    overflow: hidden;
    box-shadow:
        var(--shadow-xl),
        var(--shadow-glow),
        inset 0 1px 1px rgba(255,255,255,0.1),
        0 0 0 1px rgba(0,0,0,0.3);
}

.ipad-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-surface);
    /* iPad Pro 11" has ~40px corner radius at native 1668px width, scaled to our size */
    border-radius: 7px;
    overflow: hidden;
}

/* Fade effect during rotation - hides image while device rotates */
.ipad-image.rotating-fade {
    opacity: 0 !important;
}

.ipad-image {
    transition: opacity 0.15s ease;
}

/* Prevent slide transform animation during device rotation - only opacity should transition */
.ipad-device .ipad-carousel-slide {
    transition: opacity 0.4s ease 0.4s;
}

.ipad-device .ipad-carousel-slide.active {
    transition: opacity 0.4s ease;
}

/* Landscape mode: rotate the slide container so image can fill it naturally */
.ipad-device.landscape .ipad-carousel-slide {
    /* Screen is now 277x396, so landscape visual is 396x277 */
    width: 396px;
    height: 277px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    border-radius: 7px;
    overflow: hidden;
}

.ipad-device.landscape .ipad-carousel-slide.active {
    transform: translate(-50%, -50%) rotate(90deg);
}

/* Image fills the rotated slide naturally - no rotation needed on the image */
.ipad-device.landscape .ipad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 7px;
}

.ipad-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.4s ease 0.4s, transform 0.4s ease 0.4s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ipad-carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.ipad-carousel-slide.exiting {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* iPad Controls Container */
.ipad-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

/* Rotate Button */
.ipad-rotate-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ipad-rotate-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.ipad-rotate-btn:active {
    transform: scale(0.98);
}

.ipad-rotate-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    opacity: 0.5;
}

.ipad-rotate-btn:disabled:hover {
    transform: none;
}

.ipad-rotate-btn svg {
    transition: transform 0.3s ease;
}

.ipad-rotate-btn:hover svg {
    transform: rotate(180deg);
}

.ipad-rotate-btn.rotating svg {
    animation: spinOnce 0.6s ease-in-out;
}

@keyframes spinOnce {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(90deg); }
}

.ipad-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

/* Adjust display for portrait vs landscape images */
.ipad-portrait {
    height: 100%;
    width: auto;
}

.ipad-landscape {
    width: 100%;
    height: auto;
}


.ipad-carousel-dots {
    display: flex;
    gap: 0.75rem;
    margin-top: var(--space-md);
}

.ipad-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.ipad-carousel-dot:hover {
    background: var(--primary-soft);
}

.ipad-carousel-dot.active {
    background: var(--primary);
    transform: scale(1.1);
}

/* iPad Info Panel */
.ipad-info {
    position: relative;
    min-height: 220px;
}

.ipad-info-type {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.ipad-info-type.active {
    position: relative;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ipad-info-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}

.ipad-badge {
    display: inline-block;
    padding: 6px 12px;
    background: var(--primary);
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ipad-layout-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.ipad-info-type h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.ipad-info-type p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* iPad Feature Row Adjustments */
.feature-mockup-ipad {
    max-width: 340px;
    border-radius: 16px;
    border: 8px solid #1a1a1a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.blob-indigo {
    background: #c7d2fe;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ===== iPad SECTION RESPONSIVE ===== */
@media (max-width: 900px) {
    .ipad-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .ipad-info {
        text-align: center;
        min-height: auto;
    }

    .ipad-info-header {
        justify-content: center;
    }

    .ipad-carousel-track {
        max-width: 420px;
        height: 320px;
    }

    .ipad-device {
        /* Maintain 11" iPad Pro aspect ratio (0.698:1) */
        width: 224px;
        height: 320px;
    }

    .ipad-device.landscape .ipad-carousel-slide {
        width: 296px;
        height: 208px;
    }
}

@media (max-width: 768px) {
    .feature-title-with-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .coming-soon-badge {
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .ipad-carousel-track {
        max-width: 320px;
        height: 250px;
    }

    .ipad-device {
        /* Maintain 11" iPad Pro aspect ratio (0.698:1) */
        width: 175px;
        height: 250px;
    }

    .ipad-device.landscape .ipad-carousel-slide {
        width: 226px;
        height: 159px;
    }
}
/* ===== LAUNCH POPUP ===== */

/* ===== PRICING CARD ===== */
.pricing-card {
    margin-top: 2rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-md);
    padding: 1.5rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.pricing-sale-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 14px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.pricing-original {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    margin-bottom: 0.25rem;
}

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

.pricing-price {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    color: var(--success);
    line-height: 1;
}

.pricing-currency {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.3rem;
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.pricing-type {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.pricing-feature svg {
    color: var(--success);
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .pricing-card {
        flex-direction: column;
        gap: 1.25rem;
        padding: 1.25rem 1.5rem;
    }

    .pricing-features {
        align-items: center;
        text-align: center;
    }
}

/* ===== BLOG LISTING ===== */
.blog-listing {
    padding-top: calc(var(--header-height) + var(--space-xl));
    padding-bottom: var(--space-2xl);
}

.blog-listing .section-header {
    margin-bottom: var(--space-xl);
}

.blog-listing h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-sm);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.blog-card {
    background: var(--bg-body);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    background: var(--bg-surface-2);
}

.blog-card-body {
    padding: var(--space-md);
}

.blog-card-date {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: var(--space-xs);
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-card-title a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.blog-card-link:hover {
    color: var(--primary-dark);
    gap: 0.6rem;
}

.blog-card-link::after {
    content: '\2192';
}

/* ===== BLOG POST ===== */
.blog-post {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
}

/* ===== BLOG POST HEADER ===== */
.blog-post-header {
    margin-bottom: var(--space-xl);
}

.blog-post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: var(--space-md);
}

.blog-post-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.blog-post-breadcrumb a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.blog-post-breadcrumb .breadcrumb-separator {
    color: var(--text-light);
}

.blog-post-header h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.025em;
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.blog-post-meta .meta-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-light);
    display: inline-block;
}

/* ===== BLOG POST CONTENT (PROSE) ===== */
.blog-post-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.blog-post-content h2 {
    font-size: 1.75rem;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.blog-post-content h3 {
    font-size: 1.35rem;
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.blog-post-content ul,
.blog-post-content ol {
    list-style: initial;
    padding-left: 1.75rem;
    margin-bottom: var(--space-md);
}

.blog-post-content ol {
    list-style: decimal;
}

.blog-post-content li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.blog-post-content li::marker {
    color: var(--primary);
}

.blog-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: var(--space-sm) var(--space-md);
    margin: var(--space-lg) 0;
    background: var(--primary-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-post-content blockquote p {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 0;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin: var(--space-lg) 0;
}

/* Anchored headings clear the fixed header when jumped to */
.blog-post-content h2[id],
.blog-post-content h3[id] {
    scroll-margin-top: calc(var(--header-height) + var(--space-md));
}

/* In-article table of contents */
.blog-toc {
    background: var(--bg-surface);
    border: 1px solid var(--bg-surface-2);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
}

.blog-toc-title {
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 var(--space-sm);
    font-size: 1rem;
}

.blog-toc ol {
    columns: 2;
    column-gap: var(--space-lg);
    margin: 0 0 var(--space-sm);
    padding-left: 1.25rem;
}

.blog-toc li {
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.blog-toc-more {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

@media (max-width: 540px) {
    .blog-toc ol {
        columns: 1;
    }
}

/* Figures with captions */
.blog-figure {
    margin: var(--space-lg) 0;
    text-align: center;
}

.blog-figure img {
    margin: 0 auto;
}

.blog-figure figcaption {
    margin-top: var(--space-xs);
    font-size: 0.85rem;
    color: var(--text-light);
    font-style: italic;
}

/* Compact mid-article download CTA */
.blog-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    background: var(--primary-soft);
    border: 1px solid rgba(47, 115, 180, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-lg) 0;
}

.blog-inline-cta__text {
    margin: 0;
    flex: 1 1 280px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.blog-inline-cta__badges {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.blog-inline-cta__badges img {
    display: block;
    height: 45px;
    width: auto;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.1s ease, opacity 0.2s ease;
}

.blog-inline-cta__badges img.gplay {
    height: 60px;
}

.blog-inline-cta__badges a:hover img {
    transform: translateY(-2px);
    opacity: 0.9;
}

.blog-post-content a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(47, 115, 180, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s ease;
}

.blog-post-content a:hover {
    text-decoration-color: var(--primary);
    color: var(--primary-dark);
}

.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    font-size: 0.95rem;
    overflow-x: auto;
    display: block;
}

.blog-post-content thead {
    background: var(--bg-surface);
}

.blog-post-content th {
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid var(--bg-surface-2);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.blog-post-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--bg-surface-2);
    color: var(--text-muted);
}

.blog-post-content tbody tr:nth-child(even) {
    background: var(--bg-surface);
}

.blog-post-content tbody tr:hover {
    background: var(--primary-soft);
}

.blog-post-content code {
    background: var(--bg-surface-2);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

.blog-post-content pre {
    background: var(--text-main);
    color: #e2e8f0;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: var(--space-lg) 0;
    line-height: 1.6;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    color: inherit;
}

.blog-post-content hr {
    border: none;
    border-top: 1px solid var(--bg-surface-2);
    margin: var(--space-xl) 0;
}

/* ===== BLOG CTA ===== */
.blog-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    margin-top: var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.blog-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.blog-cta h2 {
    font-size: 1.75rem;
    color: white;
    margin-bottom: var(--space-xs);
}

.blog-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    margin-bottom: var(--space-md);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.blog-cta .btn-cta-inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
    border: none;
}

.blog-cta .btn-cta-inverted:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--bg-surface);
}

/* ===== SPLIT PAGE ===== */
.split-page {
    max-width: 900px;
    margin: 0 auto;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.split-page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.split-page-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-page-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-page-hero h1 {
    font-size: clamp(2rem, 5vw, 2.75rem);
    color: white;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.split-page-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.split-page-section {
    margin-bottom: var(--space-xl);
}

.split-page-section h2 {
    font-size: 1.75rem;
    margin-bottom: var(--space-md);
    color: var(--text-main);
    border-bottom: 2px solid var(--bg-surface-2);
    padding-bottom: var(--space-sm);
}

.split-page-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.split-section-kicker {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: var(--space-xs);
}

/* Alternating section backgrounds: Problem (child 2) and Features (child 4) */
.split-page > :nth-child(2),
.split-page > :nth-child(4) {
    background: var(--bg-surface);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-md);
}

.split-page > :nth-child(2) {
    border-left: 4px solid var(--primary);
}

.split-page-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
    position: relative;
}

.split-page-steps::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-soft), var(--primary-light), var(--primary-soft));
    border-radius: 2px;
    z-index: 0;
}

.split-step-card {
    background: white;
    padding: var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-top: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
}

.split-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.split-step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-on-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(47, 115, 180, 0.3);
}

.split-step-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
}

.split-step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.split-feature-box {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.split-feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
}

.split-feature-box p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

.split-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin: var(--space-lg) 0;
}

/* ===== COMPARE PAGE ===== */
.compare-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
}

.compare-page h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    text-align: center;
    margin-bottom: var(--space-xs);
}

.compare-page > p {
    text-align: center;
    font-size: 1.1rem;
    max-width: 650px;
    margin: 0 auto var(--space-xl);
}

.compare-section {
    margin-bottom: var(--space-xl);
}

.compare-section h2 {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--bg-surface-2);
}

.compare-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: var(--space-lg);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--bg-surface-2);
    font-size: 0.9rem;
}

.compare-table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-surface);
    position: sticky;
    top: 0;
}

.compare-table td {
    font-weight: 500;
    color: var(--text-main);
}

.compare-table .col-highlight {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 700;
}

.compare-table th.col-highlight {
    background: rgba(47, 115, 180, 0.12);
    color: var(--primary-dark);
}

.compare-table tbody tr:hover {
    background: var(--bg-surface);
}

/* Pricing Hero - SplitterUp featured card */
.compare-pricing-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    margin: var(--space-lg) 0 var(--space-lg);
    position: relative;
    overflow: hidden;
}

.compare-pricing-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -15%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.compare-pricing-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.compare-pricing-hero-card {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.compare-pricing-hero-badge {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-sm);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.compare-pricing-hero-card h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.compare-pricing-hero-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.compare-pricing-hero-card .price-period {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

.compare-pricing-hero-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-md);
}

.compare-pricing-hero-card ul {
    list-style: none;
    padding: 0;
    margin: 0 auto var(--space-lg);
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem var(--space-xl);
    text-align: left;
}

.compare-pricing-hero-card li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-pricing-hero-card li::before {
    content: '\2713';
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.compare-pricing-hero-cta {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.compare-pricing-hero-cta .btn-cta-inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.compare-pricing-hero-cta .btn-cta-inverted:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--bg-surface);
}

/* "The competition:" label */
.compare-pricing-others-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-sm);
}

/* Competitor cards grid */
.compare-pricing-others {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.compare-pricing-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compare-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compare-pricing-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
}

.compare-pricing-card .price {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.compare-pricing-card .price-period {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 400;
}

.compare-pricing-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.compare-pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.compare-pricing-card li {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-pricing-card li::before {
    content: '\2713';
    color: var(--success);
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.compare-section-divider {
    border: none;
    border-top: 1px solid var(--bg-surface-2);
    margin: var(--space-xl) 0;
}

.compare-verdict {
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.compare-verdict h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.compare-verdict p {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* "Do the Math" verdict - accent left border */
.compare-verdict-highlight {
    border-left: 4px solid var(--primary);
    background: var(--primary-soft);
    margin-top: var(--space-lg);
}

/* SplitterUp receipt scanning verdict */
.compare-verdict-splitterup {
    margin-bottom: var(--space-md);
}

/* Section trailing note */
.compare-section-note {
    margin-top: var(--space-md);
}

/* === Compare Page Hero Header === */
.compare-hero {
    background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-2) 100%);
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compare-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.compare-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.compare-hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 2.75rem);
    margin-bottom: var(--space-sm);
}

.compare-hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Move the page main content padding since hero now handles top padding */
.compare-hero + .compare-page {
    padding-top: var(--space-xl);
}

/* === Alternating Section Backgrounds === */
.compare-section:nth-child(even) {
    background: var(--bg-surface);
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    padding: var(--space-xl) var(--space-md);
    border-radius: var(--radius-md);
}

/* === Ordered List (Daily Limits) === */
.compare-expense-list {
    margin: var(--space-md) 0;
    padding-left: 1.75rem;
    list-style: decimal;
}

.compare-expense-list li {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.compare-expense-list li::marker {
    color: var(--primary);
    font-weight: 600;
}

/* === Table Cell Visual Indicators === */
.compare-table td[data-val="yes"].col-highlight {
    color: var(--success);
}

.compare-table td[data-val="no"]:not(.col-highlight) {
    color: var(--text-light);
}

.compare-table td[data-val="partial"]:not(.col-highlight) {
    color: var(--text-muted);
}

/* === Section Intro Paragraphs === */
.compare-section-intro {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: var(--space-lg);
}

/* === Daily Limits — Timeline Demo === */
.compare-limits-demo {
    max-width: 640px;
    margin: var(--space-lg) auto;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.compare-limits-day-label {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    background: var(--bg-main);
}

.compare-limits-timeline {
    padding: var(--space-xs) 0;
}

.compare-limits-item {
    display: grid;
    grid-template-columns: 5rem 0.75rem 1fr auto;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.6rem var(--space-md);
}

.compare-limits-time {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-light);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.compare-limits-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    justify-self: center;
}

.compare-limits-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.compare-limits-amount {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Divider */
.compare-limits-divider {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.75rem var(--space-md);
    margin: 0.25rem 0;
}

.compare-limits-divider-line {
    flex: 1;
    height: 1px;
    background: var(--error);
    opacity: 0.3;
}

.compare-limits-divider-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--error);
    white-space: nowrap;
}

/* Blocked items */
.compare-limits-item-blocked .compare-limits-dot {
    background: var(--border);
}

.compare-limits-item-blocked .compare-limits-name {
    color: var(--text-light);
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.4);
}

.compare-limits-item-blocked .compare-limits-time,
.compare-limits-item-blocked .compare-limits-amount {
    color: var(--text-light);
    opacity: 0.5;
}

/* Footer stats */
.compare-limits-footer {
    display: flex;
    border-top: 1px solid var(--border);
}

.compare-limits-footer-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    gap: 0.15rem;
}

.compare-limits-footer-stat + .compare-limits-footer-stat {
    border-left: 1px solid var(--border);
}

.compare-limits-footer-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.compare-limits-footer-bad .compare-limits-footer-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--error);
}

.compare-limits-footer-good .compare-limits-footer-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--success);
}

/* === Receipt Scanning — Side-by-Side Grid === */
.compare-receipt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.compare-receipt-grid .compare-verdict-splitterup {
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.04);
    margin-bottom: 0;
}

.compare-receipt-grid .compare-verdict-competitor {
    border-left: 4px solid var(--warning);
}

.compare-verdict-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.compare-verdict-badge-green {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.compare-verdict-badge-amber {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

/* === Competitor Verdict Cards Grid === */
.compare-verdict-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.compare-verdict-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    border-top: 4px solid transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compare-verdict-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compare-verdict-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-sm);
    color: var(--text-main);
}

.compare-verdict-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.compare-verdict-card-splitwise {
    border-top-color: var(--primary);
}

.compare-verdict-card-tricount {
    border-top-color: #14b8a6;
}

.compare-verdict-card-settleup {
    border-top-color: #f59e0b;
}

/* ===== BLOG / SPLIT / COMPARE RESPONSIVE ===== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .blog-post-header h1 {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        flex-wrap: wrap;
        gap: var(--space-xs);
    }

    .blog-post-content h2 {
        font-size: 1.5rem;
    }

    .blog-post-content h3 {
        font-size: 1.2rem;
    }

    .blog-cta {
        padding: var(--space-lg) var(--space-md);
    }

    .blog-cta h2 {
        font-size: 1.5rem;
    }

    .split-page-hero {
        padding: var(--space-xl) var(--space-md);
    }

    .split-page-steps {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .split-page-steps::before {
        display: none;
    }

    .split-feature-grid {
        grid-template-columns: 1fr;
    }

    .compare-table th,
    .compare-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }

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

    .compare-pricing-hero-card ul {
        grid-template-columns: 1fr;
    }

    .compare-section:nth-child(even) {
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
        padding: var(--space-lg) var(--space-sm);
    }

    .compare-receipt-grid {
        grid-template-columns: 1fr;
    }

    .compare-verdict-cards {
        grid-template-columns: 1fr;
    }

    .compare-limits-item {
        grid-template-columns: 4rem 0.75rem 1fr auto;
    }
}

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

    .blog-card-body {
        padding: var(--space-sm);
    }

    .blog-post {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .blog-post-content p {
        font-size: 1rem;
    }

    .blog-post-content table {
        font-size: 0.85rem;
    }

    .split-page {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .split-page > :nth-child(2),
    .split-page > :nth-child(4) {
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
        padding: var(--space-lg) var(--space-sm);
    }

    .split-page-hero h1 {
        font-size: 1.75rem;
    }

    .compare-page {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .compare-page h1 {
        font-size: 1.75rem;
    }

    .compare-hero-content h1 {
        font-size: 1.75rem;
    }

    .compare-pricing-hero {
        padding: var(--space-lg) var(--space-md);
    }

    .compare-pricing-hero-card .price {
        font-size: 2.25rem;
    }
}

/* ===== FEATURES PAGE — JUMP NAV ===== */

.features-toc {
    position: sticky;
    top: 64px; /* below the main nav */
    z-index: 90;
    background: white;
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    justify-content: center;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.features-toc::-webkit-scrollbar { display: none; }

.features-toc-link {
    display: inline-block;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s;
    margin-bottom: -1px;
}
.features-toc-link:hover {
    color: var(--text-primary, #0f172a);
}
.features-toc-link.active {
    color: var(--primary, #2F73B4);
    border-bottom-color: var(--primary, #2F73B4);
}

.feature-row[id],
.widgets-section[id] {
    scroll-margin-top: calc(64px + 41px + var(--space-sm));
}

/* ===== COMPARE PAGE OVERHAUL — NEW STYLES ===== */

/* === Hero Stat Pills === */
.compare-stat-pills {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-md);
}

.compare-stat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: white;
    border: 1px solid rgba(47, 115, 180, 0.2);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}

/* === Feature Highlight Cards === */
.compare-highlight-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.compare-highlight-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compare-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.compare-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.compare-highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.compare-highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* === "Do the Math" — Dark Contrast Section === */
.compare-do-the-math {
    background: #0f172a;
    color: white;
    margin-left: calc(-1 * var(--space-md));
    margin-right: calc(-1 * var(--space-md));
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.compare-do-the-math::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.compare-do-the-math-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.compare-do-the-math h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-lg);
}

.compare-do-the-math-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
}

.compare-do-the-math-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.compare-do-the-math-price {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.compare-do-the-math-ours .compare-do-the-math-price {
    color: var(--success);
}

.compare-do-the-math-theirs .compare-do-the-math-price {
    color: rgba(255, 255, 255, 0.85);
}

.compare-do-the-math-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--space-xs);
}

.compare-do-the-math-sub {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.25rem;
}

.compare-do-the-math-vs {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

/* === Mid-Page CTA === */
.compare-mid-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.compare-mid-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -15%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.compare-mid-cta p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
    position: relative;
    z-index: 1;
}

.compare-mid-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.compare-mid-cta-buttons .btn-cta-inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.compare-mid-cta-buttons .btn-cta-inverted:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--bg-surface);
}

/* === Compare Feature Row (Receipt + iPad screenshots) === */
.compare-feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.compare-feature-row-reverse {
    flex-direction: row-reverse;
}

.compare-feature-text {
    flex: 1;
}

.compare-feature-text h3 {
    font-size: 1.35rem;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
}

.compare-feature-text p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.compare-feature-image {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
}

.compare-feature-image img {
    max-width: 260px;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.compare-feature-image-wide {
    flex: 0 0 400px;
}

.compare-feature-image-wide img {
    max-width: 380px;
    border-radius: var(--radius-md);
}

/* === Verdict Tagline (bold one-liner) === */
.compare-verdict-tagline {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.compare-verdict-card .compare-verdict-tagline + p {
    margin-top: 0;
}

/* ===== COMPARE OVERHAUL — RESPONSIVE ===== */
@media (max-width: 768px) {
    .compare-highlight-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .compare-do-the-math {
        margin-left: calc(-1 * var(--space-sm));
        margin-right: calc(-1 * var(--space-sm));
        padding: var(--space-xl) var(--space-sm);
    }

    .compare-do-the-math-grid {
        gap: var(--space-md);
    }

    .compare-do-the-math-price {
        font-size: 2.5rem;
    }

    .compare-feature-row,
    .compare-feature-row-reverse {
        flex-direction: column;
        text-align: center;
    }

    .compare-feature-image,
    .compare-feature-image-wide {
        flex: none;
        width: 100%;
    }

    .compare-feature-image img,
    .compare-feature-image-wide img {
        max-width: 100%;
    }

    .compare-mid-cta {
        padding: var(--space-lg) var(--space-md);
    }
}

@media (max-width: 480px) {
    .compare-highlight-cards {
        grid-template-columns: 1fr 1fr;
    }

    .compare-stat-pills {
        gap: var(--space-xs);
    }

    .compare-stat-pill {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .compare-do-the-math-grid {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .compare-do-the-math-vs {
        font-size: 1rem;
    }
}

/* ===== SPLIT PAGE V2 — ENHANCED VISUAL DESIGN ===== */

/* Full-width split page layout (breaks out of narrow container) */
.split-page-v2 {
    max-width: 100%;
    padding: calc(var(--header-height) + var(--space-xl)) 0 0;
}

.split-page-v2 .split-v2-contained {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Hero — Full-width gradient with blob decoration */
.split-v2-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.split-v2-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v2-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v2-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.split-v2-hero .badge {
    margin-bottom: var(--space-md);
}

.split-v2-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    color: white;
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.split-v2-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Problem section — Offset accent card */
.split-v2-problem {
    padding: var(--space-2xl) var(--space-md);
}

.split-v2-problem-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.split-v2-problem-text {
    flex: 1;
}

.split-v2-problem-text h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-md);
    color: var(--text-main);
}

.split-v2-problem-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.split-v2-problem-visual {
    flex: 0 0 280px;
    display: flex;
    justify-content: center;
}

.split-v2-problem-visual img {
    max-width: 260px;
    border-radius: 32px;
    box-shadow: var(--shadow-xl), 0 0 0 8px white;
}

/* Steps section — Dark background with numbered cards */
.split-v2-steps-section {
    background: #0f172a;
    color: white;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.split-v2-steps-section::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v2-steps-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.split-v2-steps-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-v2-steps-header h2 {
    color: white;
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-sm);
}

.split-v2-steps-header p {
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0 auto;
}

.split-v2-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.split-v2-step-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.split-v2-step-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.split-v2-step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(47, 115, 180, 0.4);
}

.split-v2-step-card h3 {
    color: white;
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.split-v2-step-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features section — Icon cards on light background */
.split-v2-features {
    padding: var(--space-2xl) var(--space-md);
    background: var(--bg-surface);
}

.split-v2-features-inner {
    max-width: 900px;
    margin: 0 auto;
}

.split-v2-features-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-v2-features-header h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    margin-bottom: var(--space-sm);
}

.split-v2-features-header p {
    max-width: 550px;
    margin: 0 auto;
}

.split-v2-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.split-v2-feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-v2-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.split-v2-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.split-v2-feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
    color: var(--text-main);
}

.split-v2-feature-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Related use cases — Horizontal card row */
.split-v2-related {
    padding: var(--space-2xl) var(--space-md);
}

.split-v2-related-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.split-v2-related-inner h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: var(--space-md);
}

.split-v2-related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.split-v2-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-md);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-v2-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.split-v2-related-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
}

.split-v2-related-card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.split-v2-related-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* CTA — Full-width gradient matching index page */
.split-v2-cta {
    background: linear-gradient(135deg, #2F73B4 0%, #1e5a8e 100%);
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.split-v2-cta::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v2-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.split-v2-cta h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    color: white;
    margin-bottom: var(--space-sm);
}

.split-v2-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: var(--space-lg);
}

.split-v2-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.split-v2-cta-buttons .btn-cta-inverted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    background: white;
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    text-decoration: none;
}

.split-v2-cta-buttons .btn-cta-inverted:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--bg-surface);
}

/* Blog link in feature sections */
.split-v2-blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: var(--space-lg);
    transition: color 0.2s ease;
}

.split-v2-blog-link:hover {
    color: var(--primary-dark);
}

/* ===== FEATURES PAGE V2 — UNIFIED DESIGN ===== */

/* Features hero — Matches index hero style */
.features-v2-hero {
    padding: calc(var(--header-height) + var(--space-xl)) var(--space-md) var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-v2-hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.features-v2-hero-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.features-v2-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: var(--space-md);
    letter-spacing: -0.03em;
}

.features-v2-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    color: var(--text-muted);
}

/* Features highlight strip — Quick stats like index "Why SplitterUp" */
.features-v2-highlights {
    background: var(--bg-surface);
    padding: var(--space-xl) var(--space-md);
}

.features-v2-highlights-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.features-v2-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.features-v2-highlight-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-v2-highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.features-v2-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.features-v2-highlight-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.features-v2-highlight-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Features detail section — Full-width alternating rows */
.features-v2-detail-section {
    padding: var(--space-2xl) var(--space-md);
}

.features-v2-detail-section:nth-child(even) {
    background: var(--bg-surface);
}

.features-v2-detail-inner {
    max-width: 1000px;
    margin: 0 auto;
}

/* Dark feature section variant */
.features-v2-dark-section {
    background: #0f172a;
    color: white;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.features-v2-dark-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.features-v2-dark-section .feature-text h3 {
    color: white;
}

.features-v2-dark-section .feature-text p {
    color: rgba(255, 255, 255, 0.7);
}

.features-v2-dark-section .feature-icon-small {
    background: rgba(255, 255, 255, 0.1);
}

.features-v2-dark-section .feature-link {
    color: rgba(255, 255, 255, 0.8);
}

.features-v2-dark-section .feature-link:hover {
    color: white;
}

/* Split page V2 responsive */
@media (max-width: 768px) {
    .split-v2-hero {
        padding: calc(var(--header-height) + var(--space-lg)) var(--space-md) var(--space-xl);
    }

    .split-v2-hero h1 {
        font-size: 2rem;
    }

    .split-v2-problem-inner {
        flex-direction: column;
        text-align: center;
    }

    .split-v2-problem-visual {
        flex: none;
    }

    .split-v2-steps-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
    }

    .split-v2-feature-grid {
        grid-template-columns: 1fr;
    }

    .split-v2-related-cards {
        grid-template-columns: 1fr;
    }

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

    .features-v2-hero h1 {
        font-size: 2.25rem;
    }
}

@media (max-width: 480px) {
    .split-v2-hero h1 {
        font-size: 1.75rem;
    }

    .features-v2-highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-sm);
    }

    .features-v2-hero h1 {
        font-size: 1.75rem;
    }

    .split-v2-cta h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   SPLIT PAGE V3 — Conversion-focused landing pages
   ========================================================================== */

.split-v3 {
    width: 100%;
    overflow-x: hidden;
}

/* Hero — full-width dark gradient with side-by-side text + mockup */
.split-v3-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: var(--space-3xl) var(--space-md) var(--space-2xl);
    position: relative;
    overflow: hidden;
}

.split-v3-hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v3-hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v3-hero-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
}

.split-v3-hero-text {
    flex: 1;
}

.split-v3-hero-text .badge {
    margin-bottom: var(--space-md);
}

.split-v3-hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800;
    color: white;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.split-v3-hero-text p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 540px;
}

.split-v3-hero-mockup {
    flex-shrink: 0;
}

.split-v3-hero-mockup img {
    max-width: 280px;
    border-radius: 32px;
    box-shadow: var(--shadow-xl), 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 60px rgba(47, 115, 180, 0.2);
    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.split-v3-hero-mockup img:hover {
    transform: rotate(0deg) scale(1.03);
}

/* Contrast — dark problem/solution section */
.split-v3-contrast {
    background: #0f172a;
    color: white;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
    overflow: hidden;
}

.split-v3-contrast::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(47, 115, 180, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.split-v3-contrast-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.split-v3-contrast-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-v3-contrast-header h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.split-v3-contrast-header p {
    color: #94a3b8;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.split-v3-contrast-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.split-v3-contrast-old {
    background: rgba(255, 255, 255, 0.04);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    opacity: 0.7;
}

.split-v3-contrast-old h3 {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.split-v3-contrast-old ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.split-v3-contrast-old li {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    padding-left: 1.5rem;
    position: relative;
}

.split-v3-contrast-old li::before {
    content: '✕';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
}

.split-v3-contrast-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
}

.split-v3-contrast-arrow svg {
    width: 32px;
    height: 32px;
}

.split-v3-contrast-new {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.split-v3-contrast-new h3 {
    color: var(--success);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.split-v3-contrast-new img {
    max-width: 220px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Steps — light background, 3-column with screenshots */
.split-v3-steps {
    background: var(--bg-surface);
    padding: var(--space-2xl) var(--space-md);
}

.split-v3-steps-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.split-v3-steps-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-v3-steps-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.split-v3-steps-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.split-v3-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.split-v3-step-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-v3-step-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.split-v3-step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.split-v3-step-card h3 {
    font-size: 1.15rem;
    margin-bottom: var(--space-xs);
}

.split-v3-step-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.split-v3-step-screenshot {
    max-width: 200px;
    border-radius: 24px;
    box-shadow: var(--shadow-md), 0 0 0 4px white;
    margin: 0 auto;
    display: block;
}

/* Showcase — alternating feature rows with blob decorations */
.split-v3-showcase {
    padding: var(--space-2xl) var(--space-md);
}

.split-v3-showcase-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.split-v3-showcase-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-v3-showcase-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.split-v3-showcase .feature-row {
    margin-bottom: var(--space-2xl);
}

.split-v3-showcase .feature-row:last-child {
    margin-bottom: 0;
}

/* Value strip — horizontal highlight cards */
.split-v3-value-strip {
    background: var(--bg-surface);
    padding: var(--space-2xl) var(--space-md);
}

.split-v3-value-strip-inner {
    max-width: var(--container-width);
    margin: 0 auto;
}

.split-v3-value-strip-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.split-v3-value-strip-header h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
}

.split-v3-value-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.split-v3-value-cards--three {
    grid-template-columns: repeat(3, 1fr);
}

.split-v3-value-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-v3-value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.split-v3-value-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.split-v3-value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.split-v3-value-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

/* Related use cases */
.split-v3-related {
    padding: var(--space-2xl) var(--space-md);
}

.split-v3-related-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.split-v3-related-inner h2 {
    margin-bottom: var(--space-lg);
}

.split-v3-related-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    max-width: 800px;
    margin: 0 auto;
}

.split-v3-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-lg) var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.split-v3-related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.split-v3-related-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-xs);
}

.split-v3-related-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.split-v3-related-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* Blog link */
.split-v3-blog-link {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s ease;
}

.split-v3-blog-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* V3 Responsive — 768px */
@media (max-width: 768px) {
    .split-v3-hero {
        padding: var(--space-2xl) var(--space-md) var(--space-xl);
    }

    .split-v3-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .split-v3-hero-text p {
        margin: 0 auto;
    }

    .split-v3-hero-mockup img {
        max-width: 240px;
        transform: rotate(0deg);
    }

    .split-v3-contrast-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .split-v3-contrast-arrow {
        transform: rotate(90deg);
    }

    .split-v3-steps-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .split-v3-showcase .feature-row,
    .split-v3-showcase .feature-reverse {
        flex-direction: column;
        text-align: center;
        gap: var(--space-lg);
    }

    .split-v3-showcase .feature-icon-small {
        margin: 0 auto var(--space-md);
    }

    .split-v3-value-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-sm);
    }

    .split-v3-value-cards--three {
        grid-template-columns: 1fr;
        gap: var(--space-md);
        max-width: 420px;
        margin: 0 auto;
    }

    .split-v3-value-cards--three .split-v3-value-card {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: var(--space-md);
        align-items: center;
        text-align: left;
        padding: var(--space-md);
    }

    .split-v3-value-cards--three .split-v3-value-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        margin: 0;
    }

    .split-v3-value-cards--three .split-v3-value-card h3 {
        grid-column: 2;
        align-self: end;
    }

    .split-v3-value-cards--three .split-v3-value-card p {
        grid-column: 2;
        align-self: start;
    }

    .split-v3-related-cards {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

/* V3 Responsive — 480px */
@media (max-width: 480px) {
    .split-v3-hero-text h1 {
        font-size: 1.85rem;
    }

    .split-v3-hero-text p {
        font-size: 1.05rem;
    }

    .split-v3-hero-mockup img {
        max-width: 200px;
    }

    .split-v3-contrast-header h2,
    .split-v3-steps-header h2,
    .split-v3-showcase-header h2,
    .split-v3-value-strip-header h2 {
        font-size: 1.5rem;
    }

    .split-v3-value-cards {
        grid-template-columns: 1fr 1fr;
    }

    .split-v3-value-cards--three {
        grid-template-columns: 1fr;
    }
}
