:root {
    --primary: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --cta: #ff6f61;
    --cta-hover: #f05343;
    --cta-shadow: rgba(255, 111, 97, 0.3);
    --surface: #ffffff;
    --text-main: #0f172a;
    --text-dark: #1e293b;
    --text-body: #334155;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-subtle: #f1f5f9;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --success: #16a34a;
    --success-text: #15803d;
    --success-bg: #dcfce7;
    --warning-bg: #fef3c7;
    --warning-text: #b45309;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --focus-ring: #0284c7;
    --focus-ring-light: #38bdf8;
    --radius: 8px;
    --max-w: 1140px;
}

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

html {
    scroll-behavior: smooth;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
[role="region"]:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
    border-radius: 4px;
}

.sandbox-tab-btn:focus-visible,
.final-cta-section a:focus-visible {
    outline-color: var(--focus-ring-light);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--surface);
    line-height: 1.5;
    overflow-x: hidden;
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
    padding-inline: clamp(14px, 4vw, 24px);
}

/* Navbar */
header.container {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    max-width: 100%;
    padding: 0;
}

header.container > .navbar {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px 24px;
    padding-inline: clamp(14px, 4vw, 24px);
}

section[id] {
    scroll-margin-top: 80px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    min-width: 44px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
}

.nav-logo {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 10px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    color: var(--primary);
}

.nav-links a[aria-current="page"] {
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    touch-action: manipulation;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-cta {
    background-color: var(--cta);
    color: #ffffff !important;
    min-height: 48px;
    min-width: 44px;
    padding: 16px 36px;
    font-size: 17px;
    font-weight: 700 !important;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px var(--cta-shadow);
    transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    border: none;
    cursor: pointer;
    text-align: center;
    touch-action: manipulation;
}

.btn-cta:hover {
    background-color: var(--cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px var(--cta-shadow);
}

.btn-cta:active {
    transform: translateY(0);
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 10px 24px rgba(255, 111, 97, 0.3); }
    50% { box-shadow: 0 10px 32px rgba(255, 111, 97, 0.5); }
}

.hero-cta .btn-cta {
    animation: subtle-pulse 3s ease-in-out infinite;
}

.btn-cta-nav {
    background-color: var(--cta);
    color: #ffffff !important;
    min-height: 44px;
    min-width: 44px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 700 !important;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    touch-action: manipulation;
}

.btn-cta-nav:hover {
    background-color: var(--cta-hover);
}

.btn-lg {
    min-height: 48px;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    padding: 56px 0 40px;
    text-align: center;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background-color: var(--bg-light);
    border: 1px solid var(--border);
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    border-radius: 999px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(1.85rem, 1.15rem + 3vw, 3.25rem);
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.accent-gradient {
    color: var(--primary);
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-question {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
    max-width: 65ch;
    margin: 0 auto 28px;
    line-height: 1.4;
}

/* Punchy Benefit Bullets (<= 8 words each) */
.benefit-bullets {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin: 0 auto 36px;
    max-width: 860px;
}

.bullet-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-subtle);
    padding: 6px 14px;
    border-radius: 999px;
}

.bullet-icon {
    color: var(--success);
    font-weight: 800;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.cta-micro {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Interactive Sandbox / "See it in 30 seconds" */
.sandbox-card {
    max-width: 960px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    text-align: left;
}

.sandbox-header {
    background: var(--text-main);
    color: var(--surface);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.sandbox-title {
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.02em;
}

.sandbox-pill {
    background: #22c55e;
    color: var(--text-main);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
}

.sandbox-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sandbox-tab-btn {
    background: var(--text-dark);
    color: var(--border-strong);
    border: 1px solid var(--text-body);
    min-height: 44px;
    min-width: 44px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.sandbox-tab-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--surface);
}

.sandbox-body {
    display: flex;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
}

.mockup-inbox {
    flex: 1.15;
    background: var(--surface);
    padding: 24px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.inbox-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg-subtle);
}

.inbox-from {
    font-size: 13px;
    color: var(--text-muted);
}

.inbox-from strong {
    color: var(--text-main);
}

.inbox-subject {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin-top: 4px;
}

.inbox-content {
    font-size: 14px;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 20px;
}

.inbox-compose-box {
    background: var(--bg-light);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    padding: 14px;
    margin-top: auto;
    position: relative;
    transition: all 0.25s ease;
}

.inbox-compose-box.draft-inserted {
    background: #f0fdf4;
    border-color: #86efac;
}

.compose-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.compose-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.5;
    min-height: 52px;
    overflow-wrap: anywhere;
}

.mockup-sidebar {
    flex: 0.85;
    background: var(--surface);
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.copilot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.copilot-title {
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.status-badge {
    background: var(--success-bg);
    color: var(--success-text);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
}

.customer-info {
    margin-bottom: 12px;
}

.customer-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.customer-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.order-box {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.order-box.mutated {
    background: #fef2f2;
    border-color: #fca5a5;
}

.order-num-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.order-num {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.order-status {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.status-fulfilled {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-unfulfilled {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-cancelled {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.order-items {
    font-size: 12px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.order-carrier {
    font-size: 11px;
    color: var(--success-text);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.sandbox-actions {
    margin-top: auto;
}

.actions-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.action-btn-group,
.interactive-actions {
    display: flex;
    flex-direction: column;
}

.interactive-action-btn,
.copilot-actions button,
.interactive-actions button {
    width: 100%;
    min-height: 48px;
    min-width: 48px;
    padding: 12px 16px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    border-radius: var(--radius);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    touch-action: manipulation;
}

.interactive-action-btn:last-child,
.copilot-actions button:last-child,
.interactive-actions button:last-child {
    margin-bottom: 0;
}

.interactive-action-btn:active,
.copilot-actions button:active,
.interactive-actions button:active {
    transform: scale(0.98);
}

.interactive-action-btn:focus-visible,
.copilot-actions button:focus-visible,
.interactive-actions button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.btn-draft-action,
.copilot-actions button.btn-draft-action,
.interactive-actions button.btn-draft-action {
    background: var(--primary);
    color: var(--surface);
    border-color: var(--primary);
}

.btn-draft-action:hover,
.copilot-actions button.btn-draft-action:hover,
.interactive-actions button.btn-draft-action:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-cancel-action,
.copilot-actions button.btn-cancel-action,
.interactive-actions button.btn-cancel-action {
    border: 1.5px solid #fca5a5;
    color: #b91c1c;
    background: var(--surface);
}

.btn-cancel-action:hover,
.copilot-actions button.btn-cancel-action:hover,
.interactive-actions button.btn-cancel-action:hover {
    background: #fef2f2;
    border-color: #f87171;
}

.btn-refund-action,
.copilot-actions button.btn-refund-action,
.interactive-actions button.btn-refund-action {
    border: 1.5px solid #94a3b8;
    color: var(--text-dark);
    background: var(--surface);
}

.btn-refund-action:hover,
.copilot-actions button.btn-refund-action:hover,
.interactive-actions button.btn-refund-action:hover {
    background: var(--bg-light);
    border-color: var(--text-muted);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .hero-cta .btn-cta {
        animation: none;
    }
    .interactive-action-btn:active,
    .copilot-actions button:active,
    .interactive-actions button:active,
    .btn-cta:hover,
    .feature-card:hover,
    .pricing-card:hover {
        transform: none;
    }
}

.sandbox-feedback-toast {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    display: none;
    text-align: center;
}

.sandbox-feedback-toast.show {
    display: block;
    animation: fadeIn 0.2s ease-in;
}

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

/* 3 Steps to Zero-Inbox */
.steps-section {
    padding: 72px 0 60px;
    background-color: var(--surface);
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 40px auto 0;
    position: relative;
}

.step-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 28px 20px;
    border-radius: 10px;
    text-align: left;
    position: relative;
}

.step-badge {
    width: 32px;
    height: 32px;
    background: var(--text-main);
    color: var(--surface);
    font-weight: 800;
    font-size: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 17px;
    font-weight: 750;
    margin-bottom: 6px;
    color: var(--text-main);
}

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

.step-time {
    display: inline-block;
    margin-top: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
}

/* Mystery Benefit Badge */
.mystery-container {
    max-width: 820px;
    margin: 20px auto 0;
    padding: 0 24px;
}

.mystery-card {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 18px 24px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mystery-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.mystery-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.mystery-arrow {
    font-size: 18px;
    transition: transform 0.2s ease;
}

.mystery-content {
    display: none;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #dbeafe;
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.5;
}

.mystery-card.open .mystery-content {
    display: block;
    animation: fadeIn 0.25s ease-in;
}

.mystery-card.open .mystery-arrow {
    transform: rotate(90deg);
}

/* Minimal Social Proof Carousel */
.testimonials-section {
    padding: 64px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.testimonial-carousel {
    max-width: 760px;
    margin: 32px auto 0;
    position: relative;
    min-height: 160px;
}

.testimonial-slide {
    display: none;
    padding: 32px 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    text-align: center;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.testimonial-quote {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.45;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-body);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-strong);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 999px;
}

/* Trimmed Features */
.features {
    padding: 72px 0;
    background-color: var(--surface);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 60ch;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 860px;
    margin: 0 auto;
}

.features-grid.three-up {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 3px solid transparent;
    padding: 24px;
    border-radius: 10px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-top-color 0.15s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    border-top-color: var(--primary);
}

.feature-icon {
    font-size: 24px;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 750;
    margin-bottom: 6px;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.45;
}

/* Comparison Table */
.comparison {
    padding: 72px 0;
    background-color: var(--bg-light);
}

.table-wrapper {
    container-type: inline-size;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    padding-bottom: 8px;
    margin-top: 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

.table-wrapper:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* Keep natural line lengths on narrow / large-text viewports and scroll
   horizontally instead; the feature column stays pinned while swiping. */
table,
.comparison-table {
    width: 100%;
    min-width: 480px;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

table.table-wide {
    min-width: 640px;
}

th:first-child,
td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    box-shadow: 2px 0 6px -2px rgba(0, 0, 0, 0.08);
    min-width: 195px;
    max-width: 220px;
}

th:first-child {
    background-color: var(--bg-subtle);
}

.comparison-table th:not(:first-child),
.comparison-table td:not(:first-child) {
    white-space: nowrap;
}

th, td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

th {
    background-color: var(--bg-subtle);
    font-weight: 750;
    color: var(--text-main);
}

.highlight-col {
    background-color: #ecfdf5;
    font-weight: 600;
    border-left: 2px solid var(--success);
    border-right: 2px solid var(--success);
}

/* Pricing */
.pricing {
    padding: 72px 0;
    background-color: var(--surface);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 760px;
    }
}

.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -5px rgba(2, 132, 199, 0.18);
}

.pricing-card .btn-primary,
.pricing-card .btn-cta {
    width: 100%;
}

.pricing-card .btn-cta {
    padding: 12px 20px;
}

.pricing-plan-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    letter-spacing: 0.05em;
}

.price {
    font-size: 38px;
    font-weight: 850;
    color: var(--text-main);
    margin: 14px 0 6px;
}

.price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 20px;
    min-height: 38px;
}

.pricing-features {
    list-style: none;
    margin: 0 0 28px;
    text-align: left;
    font-size: 13px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 7px 0;
    color: var(--text-body);
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-features li span {
    color: var(--success);
    font-weight: 800;
}

.pricing-features li.pricing-includes {
    color: var(--text-main);
    font-weight: 700;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--border);
}

/* Bottom Call to Action */
.final-cta-section {
    padding: 64px 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--surface);
    text-align: center;
}

.final-cta-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.final-cta-section h2 {
    font-size: 36px;
    font-weight: 850;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.final-cta-section p {
    color: #94a3b8;
    font-size: 17px;
    max-width: 55ch;
    margin: 0 auto 32px;
}

/* Headline -> primary action -> secondary reassurance */
.final-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
    max-width: 340px;
    min-height: 48px;
}

/* Keep secondary CTA links in a balanced flex row with gap spacing instead of
   an inline separator character that can orphan when links wrap at large font sizes. */
.final-cta-section p.final-cta-secondary {
    margin: 0.75rem auto 0;
    font-size: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    flex-wrap: balance;
    justify-content: center;
    align-items: center;
    gap: 4px 16px;
}

.final-cta-link {
    color: #94a3b8;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 12px;
    white-space: nowrap;
    touch-action: manipulation;
}

.final-cta-link:hover,
.final-cta-link:focus-visible {
    color: var(--border);
}

.card-link,
.feature-card a,
main a:not([class]) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
    padding: 4px 2px;
    touch-action: manipulation;
}

/* Footer */
footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

footer a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 6px;
    padding: 8px 10px;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

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

/* Pricing card hover */
.pricing-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Final CTA micro text */
.final-cta-micro {
    margin-top: 14px;
    font-size: 13px;
    color: #94a3b8;
}

/* Footer link row */
.footer-links {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px 8px;
}

/* Mobile Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 10px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    touch-action: manipulation;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive: Tablets, iPads, Unfolded Foldables, and Folded Cover Screens */
@media (min-width: 861px) and (max-width: 1040px) {
    /* iPad Pro portrait / iPad Air landscape: compact nav spacing so all links fit beside logo */
    .nav-links {
        gap: 8px;
    }
    .nav-links a {
        font-size: 13.5px;
        padding: 8px 8px;
    }
    .btn-cta-nav {
        padding: 10px 14px;
        font-size: 13.5px;
    }
    .sandbox-body .mockup-inbox {
        padding: 20px;
    }
    .sandbox-body .mockup-sidebar {
        padding: 18px;
    }
}

@media (max-width: 860px) {
    a,
    button,
    input[type="button"],
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
    }
    button,
    input[type="button"],
    input[type="submit"],
    .btn-cta,
    .btn-primary,
    .btn-cta-nav,
    .sandbox-tab-btn,
    .interactive-action-btn,
    .final-cta-link,
    footer a {
        justify-content: center;
    }
    .hero h1 {
        font-size: clamp(1.8rem, 1.2rem + 2.8vw, 2.375rem);
    }
    .hamburger {
        display: flex;
        min-width: 44px;
        min-height: 44px;
        padding: 10px;
        align-items: center;
        justify-content: center;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        font-size: 16px;
        padding: 10px 0;
        justify-content: flex-start;
    }
    .nav-links a.btn-cta-nav {
        padding: 10px 18px;
        justify-content: center;
    }
    .navbar {
        position: relative;
    }
    .sandbox-tab-btn,
    .btn-primary {
        min-height: 44px;
    }
    .sandbox-tab-btn {
        padding: 10px 14px;
    }
    .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-links a,
    footer a,
    .final-cta-link,
    .card-link {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        min-width: 44px;
    }
    footer a {
        justify-content: center;
    }
}

/* Unfolded Foldable Phones (600px–739px, e.g. Galaxy Z Fold inner screen 673x841)
   and Portrait Tablets / iPads (740px–860px, e.g. Pixel Fold 768x884, iPad Mini 768x1024,
   iPad Air 820x1180, iPad Pro 11" 834x1194): keep 2-column card grids instead of 1-column stacks */
@media (min-width: 600px) and (max-width: 860px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }
    .features-grid,
    .features-grid.three-up {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .features-grid.three-up > .feature-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 480px;
        justify-self: center;
        width: 100%;
    }
}

/* On iPad Mini / iPad Air / unfolded Pixel Fold (740px–860px), keep the interactive inbox +
   sidebar demo side-by-side and keep the 3 onboarding steps in a 3-column row */
@media (min-width: 740px) and (max-width: 860px) {
    .sandbox-body {
        flex-direction: row;
    }
    .mockup-inbox {
        border-right: 1px solid var(--border);
        border-bottom: none;
        padding: 20px;
    }
    .mockup-sidebar {
        padding: 18px;
    }
    .steps-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Stack sandbox and steps below 740px; stack features and pricing into 1 column below 600px */
@media (max-width: 739px) {
    .sandbox-body {
        flex-direction: column;
    }
    .mockup-inbox {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 599px) {
    .features-grid,
    .features-grid.three-up {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Dual-screen / hinged foldable spanning support */
@media (horizontal-viewport-segments: 2) {
    .sandbox-body {
        flex-direction: row;
        gap: calc(env(viewport-segment-left 1 0, 0px) - env(viewport-segment-right 0 0, 0px));
    }
    .mockup-inbox,
    .mockup-sidebar {
        flex: 1 1 50%;
    }
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 32px;
    }
    .hero h1 {
        font-size: clamp(1.65rem, 1rem + 3.5vw, 2rem);
    }
    .hero-question {
        font-size: 17px;
    }
    .btn-cta {
        width: 100%;
        padding: 14px 20px;
    }
    .final-cta-btn {
        max-width: 340px;
    }
    .benefit-bullets {
        flex-direction: column;
        align-items: stretch;
    }
    .bullet-item {
        justify-content: center;
    }
}

/* Folded Cover Displays on Foldable Phones (280px–359px, e.g. Galaxy Z Fold outer screen) */
@media (max-width: 359px) {
    .hero {
        padding: 36px 0 24px;
    }
    .hero-trust-badge {
        font-size: 11.5px;
        padding: 5px 12px;
    }
    .nav-logo {
        height: 36px;
    }
    .sandbox-header,
    .mockup-inbox,
    .mockup-sidebar,
    .feature-card,
    .pricing-card,
    .step-card {
        padding: 16px 14px;
    }
    .sandbox-tab-btn {
        width: 100%;
        font-size: 11.5px;
        padding: 10px 10px;
    }
    .price {
        font-size: 32px;
    }
    .section-title h2,
    .final-cta-section h2 {
        font-size: 24px;
    }
}

/* The 3-column home-page comparison fits phone widths outright, so drop the
   scroll fallback there: no clipped third column, cells wrap instead.
   Wider tables (.table-wide) keep horizontal scrolling. */
@media (max-width: 600px) {
    .table-wrapper:has(.comparison-table:not(.table-wide)) {
        padding-bottom: 0;
        overflow-x: hidden;
    }
    .comparison-table:not(.table-wide) {
        min-width: 0;
        table-layout: fixed;
    }
    .comparison-table:not(.table-wide) th,
    .comparison-table:not(.table-wide) td {
        padding: 12px 8px;
        font-size: 13px;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .comparison-table:not(.table-wide) tbody tr:last-child td {
        border-bottom: none;
    }
    .comparison-table:not(.table-wide) th:first-child,
    .comparison-table:not(.table-wide) td:first-child {
        position: static;
        box-shadow: none;
        min-width: 0;
        max-width: none;
        width: 38%;
        padding-left: 12px;
    }
}

@container (max-width: 560px) {
    .comparison-table:not(.table-wide) {
        min-width: 0;
        table-layout: fixed;
    }
    .comparison-table:not(.table-wide) th,
    .comparison-table:not(.table-wide) td {
        padding: 12px 8px;
        font-size: 13px;
        white-space: normal;
        overflow-wrap: break-word;
    }
    .comparison-table:not(.table-wide) tbody tr:last-child td {
        border-bottom: none;
    }
    .comparison-table:not(.table-wide) th:first-child,
    .comparison-table:not(.table-wide) td:first-child {
        position: static;
        box-shadow: none;
        min-width: 0;
        max-width: none;
        width: 38%;
        padding-left: 12px;
    }
}

/* Interactive ROI & Per-Resolution Savings Calculator */
.roi-section {
    padding: 72px 0;
    background-color: var(--surface);
    border-top: 1px solid var(--border);
}

.roi-card {
    max-width: 940px;
    margin: 0 auto;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.06);
}

.roi-controls {
    container-type: inline-size;
    margin-bottom: 28px;
}

.roi-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-bottom: 12px;
}

.roi-slider-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.roi-ticket-readout {
    font-size: 24px;
    font-weight: 850;
    color: var(--primary);
    font-variant-numeric: tabular-nums;
}

.roi-ticket-readout span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

/* Brand-consistent native range slider (modern-web-guidance: slider) */
input[type="range"].roi-slider {
    --slider-track-size: 0.55rem;
    --slider-thumb-size: 1.5rem;
    --slider-track-radius: 999px;
    --slider-thumb-radius: 50%;
    --slider-track-color: #cbd5e1;
    --slider-fill-color: var(--primary);
    --slider-thumb-color: var(--primary);
    --slider-direction: to right;
    --slider-progress: 7.07%;

    appearance: none;
    -webkit-appearance: none;
    inline-size: 100%;
    block-size: 2.75rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    accent-color: var(--primary);
}

input[type="range"].roi-slider:dir(rtl) {
    --slider-direction: to left;
}

input[type="range"].roi-slider::-webkit-slider-runnable-track {
    block-size: var(--slider-track-size);
    border: 0;
    border-radius: var(--slider-track-radius);
    background: linear-gradient(
        var(--slider-direction),
        var(--slider-fill-color) var(--slider-progress),
        var(--slider-track-color) var(--slider-progress)
    );
}

input[type="range"].roi-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    inline-size: var(--slider-thumb-size);
    block-size: var(--slider-thumb-size);
    margin-block-start: calc((var(--slider-track-size) - var(--slider-thumb-size)) / 2);
    border: 2px solid var(--surface);
    border-radius: var(--slider-thumb-radius);
    background: var(--slider-thumb-color);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

input[type="range"].roi-slider::-moz-range-track {
    block-size: var(--slider-track-size);
    border: 0;
    border-radius: var(--slider-track-radius);
    background: var(--slider-track-color);
}

input[type="range"].roi-slider::-moz-range-progress {
    block-size: var(--slider-track-size);
    border-radius: var(--slider-track-radius);
    background: var(--slider-fill-color);
}

input[type="range"].roi-slider::-moz-range-thumb {
    inline-size: var(--slider-thumb-size);
    block-size: var(--slider-thumb-size);
    border: 2px solid var(--surface);
    border-radius: var(--slider-thumb-radius);
    background: var(--slider-thumb-color);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

input[type="range"].roi-slider:focus-visible {
    outline: 2px solid var(--slider-fill-color);
    outline-offset: 4px;
    border-radius: 6px;
}

.roi-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.roi-presets-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    margin-right: 4px;
}

.roi-preset-btn {
    background: var(--surface);
    color: var(--text-body);
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
}

.roi-preset-btn:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

.roi-preset-btn.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.roi-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.roi-stat-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    text-align: left;
}

.roi-stat-box.roi-highlight {
    background: #ecfdf5;
    border-color: #86efac;
}

.roi-stat-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.roi-stat-box.roi-highlight .roi-stat-label {
    color: var(--success-text);
}

.roi-stat-value {
    font-size: 28px;
    font-weight: 850;
    color: var(--text-main);
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}

.roi-stat-box.roi-highlight .roi-stat-value {
    color: var(--success-text);
}

.roi-stat-sub {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.roi-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.roi-time-saved {
    font-size: 14px;
    color: var(--text-body);
}

.roi-time-saved strong {
    color: var(--text-main);
}

/* Interactive Card Stretched Link Pattern (modern-web-guidance: card) */
.feature-card.playbook-card {
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.feature-card.playbook-card h3 {
    margin-bottom: 10px;
}

.feature-card.playbook-card p {
    margin-bottom: 16px;
    flex-grow: 1;
}

.playbook-meta {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.playbook-read-more {
    font-size: 14px;
    font-weight: 700;
    color: var(--cta-hover);
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 860px) {
    .roi-card {
        padding: 20px 16px;
    }
    /* Stack "Store size:" above a symmetric 2x2 preset pill grid on narrow viewports
       so the label never indents only the first button into a stair-step layout. */
    .roi-presets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }
    .roi-presets-label {
        grid-column: 1 / -1;
        margin-right: 0;
    }
    .roi-preset-btn {
        width: 100%;
        padding: 8px 6px;
        font-size: 11.5px;
        text-align: center;
    }
}

@media (min-width: 600px) and (max-width: 860px) {
    .roi-card {
        padding: 24px 20px;
    }
    .roi-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .roi-stat-box.roi-highlight {
        grid-column: 1 / -1;
    }
}

@media (max-width: 599px) {
    .roi-results-grid {
        grid-template-columns: 1fr;
    }
    .roi-footer-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

@container (max-width: 720px) {
    .roi-presets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        align-items: stretch;
    }
    .roi-presets-label {
        grid-column: 1 / -1;
        margin-right: 0;
    }
    .roi-preset-btn {
        width: 100%;
        padding: 8px 6px;
        font-size: 11.5px;
        text-align: center;
    }
}

