.hero {
    padding: var(--space-6) 0 var(--space-5);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background-color: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    line-height: 1.12;
    letter-spacing: -0.025em;
    max-width: 18ch;
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 58ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    padding-top: var(--space-2);
}

.friction-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.builder-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 380px);
    gap: var(--space-6);
    align-items: start;
}

.phone-preview-col {
    position: sticky;
    top: 84px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-width: 0;
}

.preview-mode-tabs {
    justify-content: center;
}

.phone-preview {
    max-height: calc(100vh - 148px);
    overflow-y: auto;
    background-color: var(--surface);
    border: 8px solid #0f172a;
    border-radius: 28px;
    padding: var(--space-5) var(--space-4);
    box-shadow: var(--shadow-lg);
    min-width: 0;
}

[data-theme="dark"] .phone-preview {
    border-color: #334155;
}

.integration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.integration-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-4);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.flow-shell {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
}

.flow-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.flow-progress {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    height: 6px;
    background-color: var(--surface-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.flow-progress > * {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.25s ease;
}

.otp-input {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    padding: 12px var(--space-3);
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-2);
}

.slot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px var(--space-2);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.slot-btn:hover {
    border-color: var(--primary);
}

.slot-btn.is-selected,
.slot-btn[aria-pressed="true"] {
    border-color: var(--primary);
    background-color: color-mix(in srgb, var(--primary) 10%, transparent);
    color: var(--primary);
    font-weight: 600;
}

[data-theme="dark"] .slot-btn.is-selected,
[data-theme="dark"] .slot-btn[aria-pressed="true"] {
    border-color: color-mix(in srgb, var(--primary) 65%, #ffffff);
    background-color: color-mix(in srgb, var(--primary) 24%, rgba(255, 255, 255, 0.08));
    color: var(--text);
}

.payment-summary {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--space-4);
    background-color: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.offer-box {
    padding: var(--space-4);
    border: 1px solid color-mix(in srgb, var(--success) 35%, transparent);
    background-color: var(--success-bg);
    color: var(--text);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.detail-section {
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
}

.crm-pill {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface-muted);
}

.is-selected-row {
    background-color: color-mix(in srgb, var(--primary) 8%, transparent);
}

.flow-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--border);
}

.flow-brand-logo {
    max-height: 40px;
    max-width: 160px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.flow-brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.flow-brand-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
}

.flow-brand-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.flow-footer {
    margin-top: var(--space-4);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.flow-footer a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.flow-footer a:hover {
    color: var(--text);
}

.logo-upload-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px dashed var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface-muted);
}

.logo-preview-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 48px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    border: 1px solid var(--border);
}

.logo-preview-img {
    max-height: 36px;
    max-width: 140px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.color-picker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}

.color-input-native {
    width: 42px;
    height: 42px;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background-color: var(--surface);
    cursor: pointer;
}

.color-swatches {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.color-swatch {
    width: 26px;
    height: 26px;
    border-radius: var(--radius-full);
    border: 2px solid rgba(15, 23, 42, 0.14);
    padding: 0;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.is-active {
    box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text);
}

.subtabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    background-color: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    align-self: flex-start;
}

.subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.subtab-btn:hover {
    color: var(--text);
}

.subtab-btn.is-active,
.subtab-btn[aria-selected="true"] {
    background-color: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.ad-audit-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-3);
}

.ad-audit-stat {
    padding: var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface-muted);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ad-audit-card {
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background-color: var(--surface);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ad-check-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
}

.ad-check-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-2);
    font-size: 0.8125rem;
}

.disconnect-row {
    padding-top: var(--space-3);
    margin-top: var(--space-2);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
}

.btn-disconnect-trigger {
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-disconnect-trigger:hover,
.btn-disconnect-trigger:focus-visible {
    color: var(--danger);
    background-color: var(--danger-bg);
    border-color: color-mix(in srgb, var(--danger) 30%, transparent);
    outline: none;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    background-color: rgba(15, 23, 42, 0.48);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.modal-card {
    width: 100%;
    max-width: 440px;
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-lg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-5);
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-4);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

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

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: var(--text);
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.usage-bar {
    width: 100%;
    height: 8px;
    background-color: var(--surface-muted);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 1px solid var(--border);
}

.usage-bar-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: var(--radius-full);
    transition: width 0.25s ease;
}

.paywall-card {
    background-color: var(--surface);
    border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
}

.stat-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-5);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.faq-item {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    box-shadow: var(--shadow-sm);
    transition: border-color 0.15s ease;
}

.faq-item[open] {
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
}

.faq-item summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    cursor: pointer;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
}

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

.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1;
    color: var(--text-muted);
}

.faq-item[open] summary::after {
    content: "\2212";
    color: var(--primary);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

.faq-answer {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.pillar-links-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-4);
}

.pillar-link-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: var(--space-2);
    padding: var(--space-5);
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    color: var(--text);
    text-decoration: none;
    min-width: 0;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pillar-link-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.compare-check {
    color: var(--success);
    font-weight: 600;
}

.compare-muted {
    color: var(--text-faint);
}

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

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

    .phone-preview-col {
        position: static;
        max-width: 380px;
        width: 100%;
        margin: 0 auto;
    }

    .phone-preview {
        max-height: none;
    }

    .feature-grid,
    .integration-grid,
    .pillar-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .friction-compare,
    .feature-grid,
    .integration-grid,
    .ad-audit-summary,
    .pillar-links-grid {
        grid-template-columns: 1fr;
    }

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

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

    .flow-shell {
        padding: var(--space-4) var(--space-3);
    }

    .flow-card {
        padding: var(--space-4);
    }
}

@media (max-width: 440px) {
    .stat-strip {
        grid-template-columns: 1fr;
    }
}
