/* Modern SaaS Design System */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --shadow: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-muted); }

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    border: none;
}

.cta-button.primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.39);
}

.cta-button.primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.23);
}

.cta-button.secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border);
}

.cta-button.secondary:hover {
    background-color: #f1f5f9;
    border-color: #cbd5e1;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent),
                radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.05), transparent);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.brand-name {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    display: block;
}

.hero-headline {
    margin-bottom: 1.5rem;
    color: #0f172a;
}

.hero-subheadline {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-extra {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    margin-top: 1.5rem;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Mockup */
.hero-mockup {
    position: relative;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    max-width: 380px;
    margin: 0 auto;
}

.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.product-title {
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.signal-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.signal-badge.success { background: #dcfce7; color: #166534; }
.signal-badge.info { background: #e0e7ff; color: #3730a3; }

.product-signals {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.signal-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.signal-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.signal-content h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.signal-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.watch-out {
    background: #fff7ed;
    padding: 12px;
    border-radius: var(--radius-sm);
    border-left: 4px solid var(--warning);
    margin-top: 10px;
}

.watch-out p {
    color: #9a3412;
    font-size: 0.85rem;
    margin: 0;
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-light { background-color: white; }
.section-offwhite { background-color: #f9fafb; }

/* Product Logic Section */
.logic-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    gap: 40px;
    align-items: start;
}

.logic-column h3 {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.logic-items-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.logic-card-small {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.logic-card-small i {
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 4px;
    opacity: 0.7;
}

.logic-card-small .card-content h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
    color: var(--text-main);
}

.logic-card-small .card-content p {
    font-size: 0.85rem;
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Highlighted Column */
.logic-card-main {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.logic-column.highlight h3 {
    color: var(--primary);
    opacity: 1;
}

.track-list {
    list-style: none;
    margin-bottom: 24px;
}

.track-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.track-list li i {
    color: var(--primary);
    width: 18px;
}

.verdict-area {
    background: #f8fafc;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}

.verdict-title {
    display: block;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 8px;
}

.verdict-pills {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
}

.verdict-pills span {
    color: var(--primary);
}

.verdict-pills .sep {
    margin: 0 4px;
    color: var(--border);
}

/* How It Works - Polished Design */
.process-grid {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    margin-top: 40px;
}

.process-card {
    flex: 1;
    background: white;
    padding: 32px 28px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

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

.process-card.highlight {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.08), var(--shadow);
}

.step-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #eef2ff;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.process-icon-wrapper {
    width: 56px;
    height: 56px;
    background: #f5f3ff;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.process-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.process-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Thinner, shorter connectors */
.process-connector {
    position: absolute;
    top: 50%;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    opacity: 0.2;
    z-index: 1;
    transform: translateY(-50%);
}

.process-connector::after {
    content: '';
    position: absolute;
    right: -1px;
    top: -3px;
    width: 6px;
    height: 6px;
    border-top: 1px solid var(--secondary);
    border-right: 1px solid var(--secondary);
    transform: rotate(45deg);
}

.process-connector-1 { left: calc(33.33% - 12px); }
.process-connector-2 { left: calc(66.66% - 12px); }

@media (max-width: 968px) {
    .process-grid { flex-direction: column; align-items: center; gap: 40px; }
    .process-card { width: 100%; max-width: 380px; }
    .process-connector { display: none; }
    .process-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -24px;
        left: 50%;
        width: 1px;
        height: 16px;
        background: linear-gradient(180deg, var(--primary), var(--secondary));
        opacity: 0.2;
        transform: translateX(-50%);
    }
}

/* Differentiation Section */
.diff-container {
    max-width: 900px;
    margin: 0 auto;
}

.diff-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.diff-card {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.diff-card.traditional {
    background: #f1f5f9;
}

.diff-card.later {
    background: #eef2ff;
    border: 2px solid var(--primary);
}

.diff-list {
    list-style: none;
    margin-top: 24px;
}

.diff-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}

.diff-list li i {
    font-size: 1.2rem;
}

.check-icon { color: var(--success); }
.cross-icon { color: var(--text-muted); opacity: 0.5; }

/* What We Track */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.feature-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 16px;
}

.feature-card i {
    color: var(--primary);
    font-size: 1.25rem;
}

.feature-card span {
    font-weight: 600;
    color: var(--text-main);
}

/* Email Preview */
.email-preview-container {
    max-width: 500px;
    margin: 0 auto;
}

.email-card {
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.email-header {
    background: #f8fafc;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.email-subject {
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.email-body {
    padding: 32px 24px;
}

.email-text {
    font-size: 0.95rem;
    margin-bottom: 24px;
    color: #334155;
}

.email-actions {
    display: flex;
    gap: 12px;
}

/* Final CTA */
.final-cta {
    background: var(--primary);
    color: white;
    text-align: center;
}

.final-cta h2, .final-cta p { color: white; }

.email-form-wrapper {
    max-width: 500px;
    margin: 40px auto 0;
}

.email-input-group {
    display: flex;
    gap: 12px;
    background: white;
    padding: 8px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.email-input-group input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 1rem;
    outline: none;
}

.email-input-group button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
}

/* Footer */
.footer {
    padding: 60px 0;
    background: #0f172a;
    color: #94a3b8;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    margin-bottom: 12px;
    color: #94a3b8;
}

.footer-disclaimer {
    opacity: 0.7;
    max-width: 600px;
    margin: 20px auto 0;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content { text-align: center; }
    .hero-subheadline { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .logic-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; gap: 48px; }
    .steps-grid { grid-template-columns: 1fr; gap: 60px; }
    .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hero-actions { flex-direction: column; }
    .email-input-group { flex-direction: column; background: transparent; padding: 0; gap: 12px; }
    .email-input-group input { border-radius: var(--radius-md); }
    .email-input-group button { border-radius: var(--radius-md); padding: 16px; }
}

/* Connector arrow polish */
.process-connector {
    width: 32px;
    height: 1.5px;
    opacity: 0.35;
}

.process-connector::after {
    width: 7px;
    height: 7px;
    border-top-width: 1.5px;
    border-right-width: 1.5px;
    right: -1px;
    top: -3px;
}

.process-connector-1 { left: calc(33.33% - 16px); }
.process-connector-2 { left: calc(66.66% - 16px); }

/* Connector arrows v2 - flex siblings, no absolute positioning */
.process-grid {
    gap: 0;
}

.process-card {
    margin: 0;
}

.process-arrow {
    flex: 0 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    margin-bottom: 40px; /* approx offset to align with icon row */
}

.process-arrow::before {
    content: '';
    display: block;
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, #6366f1, #ec4899);
    opacity: 0.4;
    position: relative;
}

.process-arrow::after {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    border-top: 1.5px solid #ec4899;
    border-right: 1.5px solid #ec4899;
    transform: rotate(45deg);
    opacity: 0.4;
    margin-left: -6px;
    flex-shrink: 0;
}

/* Hide old absolute connectors */
.process-connector { display: none !important; }

@media (max-width: 968px) {
    .process-arrow { display: none; }
}
