/* LiveCourier Website - style.css */

/* ── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy: #1a2b4a;
    --navy-light: #243656;
    --accent: #ff6b35;
    --accent-hover: #e55a28;
    --white: #ffffff;
    --gray-bg: #f5f7fa;
    --text: #2d3436;
    --text-muted: #636e72;
    --text-light: #b2bec3;
    --success: #00b894;
    --border: #dfe6e9;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 12px;
    --max-width: 1140px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; color: var(--navy); }
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
p { margin-bottom: 1rem; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}
.btn-outline:hover {
    background: var(--white);
    color: var(--navy);
}

.btn-outline-dark {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
}
.btn-outline-dark:hover {
    background: var(--navy);
    color: var(--white);
}

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }

/* ── Navigation ────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--navy);
    padding: 0 24px;
    transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.15); }

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
}
.nav-logo:hover { color: var(--white); }
.nav-logo span { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links .btn { padding: 8px 22px; }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover { color: #000; }

.nav-lang select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.9);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    padding: 6px 28px 6px 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path fill='%23ffffff' opacity='0.7' d='M0 0l5 6 5-6z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}
.nav-lang select:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.35);
}
.nav-lang select:focus {
    outline: none;
    border-color: var(--primary);
}
.nav-lang select option {
    color: #111;
    background: #fff;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all var(--transition);
}

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    padding: 140px 24px 80px;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-screenshot {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}
.hero-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Hero Carousel ─────────────────────────────────────────────────── */
.hero-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    background: #0b1220;
}
.carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    pointer-events: none;
}
.carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}
.carousel-caption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 20px 52px;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--navy);
    text-align: center;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    z-index: 2;
}
.carousel-arrow:hover,
.carousel-arrow:focus-visible {
    background: rgba(0,0,0,0.75);
    outline: none;
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-dots {
    position: absolute;
    left: 0; right: 0; bottom: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}
.carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-dot:hover { background: rgba(255,255,255,0.75); }
.carousel-dot.is-active {
    background: #fff;
    transform: scale(1.2);
}
@media (max-width: 640px) {
    .carousel-arrow { width: 36px; height: 36px; }
    .carousel-caption { font-size: 0.85rem; padding: 10px 14px 44px; }
}
@media (prefers-reduced-motion: reduce) {
    .carousel-slide { transition: none; }
}

/* ── Steps (How It Works) ─────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}
.step {
    text-align: center;
}
.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--navy);
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.step h3 {
    margin-bottom: 8px;
}
.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ── Trust Bar ─────────────────────────────────────────────────────────── */
.trust-bar {
    background: var(--gray-bg);
    padding: 40px 24px;
    border-bottom: 1px solid var(--border);
}

.trust-items {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.trust-item {
    text-align: center;
}
.trust-item .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    display: block;
}
.trust-item .label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── Sections ──────────────────────────────────────────────────────────── */
.section {
    padding: 80px 24px;
}
.section-gray { background: var(--gray-bg); }
.section-navy {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
}
.section-navy h2 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ── Product Cards ─────────────────────────────────────────────────────── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.product-card.featured {
    border-color: var(--accent);
    position: relative;
}
.product-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.product-card .product-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--gray-bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.product-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }

.product-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin: 16px 0 4px;
}
.product-card .price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
}

.product-card .tagline {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.product-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}
.product-card ul li {
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.95rem;
}
.product-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
    /* Checkmark via CSS */
}
.product-card ul li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 14px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

/* ── Feature Blocks ────────────────────────────────────────────────────── */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-block {
    text-align: center;
    padding: 24px;
}

.feature-block .icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: rgba(255,107,53,0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-block .icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-block h3 { font-size: 1.1rem; }
.feature-block p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Feature Row (alternating image + text) ────────────────────────────── */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }

.feature-row img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.feature-screenshot {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid var(--border);
}
.feature-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    border: none;
    box-shadow: none;
    border-radius: 0;
}
.feature-screenshot.privacy-diagram {
    background: #ffffff;
    padding: 24px;
}
.feature-screenshot.privacy-diagram svg {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Phone frame (driver app screenshot) ───────────────────────────── */
.phone-frame-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}
.phone-frame {
    position: relative;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 475 / 1106;
    background: #0e0e14;
    border-radius: 44px;
    padding: 14px;
    box-shadow:
        0 20px 50px rgba(0,0,0,0.25),
        0 0 0 2px #2a2a33 inset,
        0 0 0 4px #0e0e14 inset;
}
.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 26px;
    background: #0e0e14;
    border-radius: 14px;
    z-index: 2;
}
.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: #000;
}
.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 640px) {
    .phone-frame { width: 260px; border-radius: 38px; padding: 12px; }
    .phone-screen { border-radius: 28px; }
    .phone-notch { width: 84px; height: 22px; top: 18px; }
}

.feature-row h3 { font-size: 1.4rem; }
.feature-row p { color: var(--text-muted); }
.feature-row ul {
    list-style: none;
    margin-top: 16px;
}
.feature-row ul li {
    padding: 4px 0 4px 24px;
    position: relative;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.feature-row ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
}
.feature-row ul li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 12px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

/* ── Routing Comparison ────────────────────────────────────────────────── */
.routing-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}
.comparison-card {
    border-radius: 8px;
    padding: 16px;
    font-size: 0.85rem;
}
.comparison-card h4 {
    font-size: 0.9rem;
    margin-bottom: 8px;
}
.comparison-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comparison-card ul li {
    padding: 3px 0;
    padding-left: 0;
}
.comparison-card ul li::before,
.comparison-card ul li::after {
    display: none;
}
.comparison-them {
    background: #fef2f2;
    border: 1px solid #fecaca;
}
.comparison-them h4 { color: #dc2626; }
.comparison-them ul li { color: #7f1d1d; }
.comparison-us {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.comparison-us h4 { color: #16a34a; }
.comparison-us ul li { color: #14532d; }

/* ── Self-Hosted Section ───────────────────────────────────────────────── */
.self-hosted {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
}

.self-hosted h2 { margin-bottom: 1.5rem; }

.self-hosted-points {
    list-style: none;
    margin-top: 16px;
}
.self-hosted-points li {
    padding: 8px 0 8px 32px;
    position: relative;
    color: rgba(255,255,255,0.85);
}
.self-hosted-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 14px;
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}
.self-hosted-points li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 18px;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

.self-hosted-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.self-hosted-stat {
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-lg);
    padding: 24px 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}
.self-hosted-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 4px;
}
.self-hosted-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
}

/* ── Pricing Table ─────────────────────────────────────────────────────── */
.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}
.pricing-toggle span { font-weight: 500; }
.pricing-toggle .active { color: var(--navy); }
.pricing-toggle .inactive { color: var(--text-muted); }

.toggle-switch {
    width: 48px;
    height: 26px;
    background: var(--border);
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background var(--transition);
}
.toggle-switch.active { background: var(--accent); }
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: var(--white);
    border-radius: 50%;
    transition: transform var(--transition);
}
.toggle-switch.active::after { transform: translateX(22px); }

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
}
.pricing-card.featured {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
    position: relative;
}
.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-card .plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.pricing-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy);
    margin: 16px 0 4px;
}
.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-card .plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}
.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 28px;
}
.pricing-card ul li {
    padding: 6px 0 6px 24px;
    position: relative;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-bg);
}
.pricing-card ul li:last-child { border-bottom: none; }
.pricing-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 14px;
    height: 14px;
    background: var(--success);
    border-radius: 50%;
}
.pricing-card ul li::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 14px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}
.pricing-card ul li.unavailable {
    color: var(--text-light);
}
.pricing-card ul li.unavailable::before {
    background: var(--border);
}
.pricing-card ul li.unavailable::after {
    /* X mark instead of check */
    border: none;
    width: 10px;
    height: 2px;
    background: var(--text-light);
    transform: rotate(-45deg);
    top: 18px;
    left: 2px;
}

/* ── Comparison Table ──────────────────────────────────────────────────── */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px auto 0;
    max-width: 800px;
}
.comparison-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--navy);
    color: var(--navy);
}
.comparison-table th:not(:first-child) { text-align: center; }
.comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}
.comparison-table td:not(:first-child) { text-align: center; }
.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .dash { color: var(--text-light); }

/* ── Flat Pricing / Cost Slider ────────────────────────────────────────── */
.comparison-table.model-table { max-width: 900px; margin-bottom: 60px; }
.comparison-table.model-table td:not(:first-child) { text-align: left; }

.cost-slider {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.cost-slider h3 {
    margin: 0 0 8px;
    font-size: 1.5rem;
    text-align: center;
}
.cost-slider-intro {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0 0 16px;
}
.cost-slider-intro output {
    color: var(--navy);
    font-weight: 700;
    font-size: 1.2rem;
}
.cost-slider input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--gray-bg);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin: 8px 0 0;
}
.cost-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cost-slider input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--navy);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.cost-slider-range {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 6px;
    margin-bottom: 32px;
}

.cost-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}
.cost-card {
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid var(--border);
}
.cost-card-industry { background: var(--gray-bg); }
.cost-card-lc {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--white);
    border-color: var(--navy);
}
.cost-card-lc h4 { color: var(--white); }
.cost-card h4 {
    margin: 0 0 16px;
    font-size: 1rem;
}
.cost-line {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
}
.cost-line.cost-total {
    border-top: 2px solid currentColor;
    margin-top: 8px;
    padding-top: 12px;
    font-weight: 700;
    font-size: 1.05rem;
}
.cost-card-lc .cost-line { color: rgba(255,255,255,0.9); }
.cost-card-lc .cost-line.cost-total { color: var(--white); }
.cost-note {
    margin: 16px 0 0;
    font-size: 0.85rem;
    font-style: italic;
    opacity: 0.85;
}
.cost-card-industry .cost-note { color: var(--text-muted); }

.cost-savings {
    background: var(--gray-bg);
    border-left: 4px solid var(--success);
    padding: 20px 24px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.cost-savings strong {
    color: var(--success);
    font-weight: 700;
    font-size: 1.15rem;
}
.cost-footnote {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .cost-slider { padding: 24px; }
    .cost-compare { grid-template-columns: 1fr; }
    .comparison-table.model-table { font-size: 0.9rem; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.faq-list { max-width: 700px; margin: 0 auto; }

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--text-muted);
    transition: transform var(--transition);
}
.faq-item.open .faq-question::after {
    content: '-';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}
.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ── CTA Section ───────────────────────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: 80px 24px;
}
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    padding: 60px 24px 30px;
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin-top: 12px;
}

.footer h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 8px; }
.footer-links a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.4);
}

/* ── Contact Form ──────────────────────────────────────────────────────── */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── Page Header (inner pages) ─────────────────────────────────────────── */
.page-header {
    background: var(--navy);
    padding: 120px 24px 50px;
    text-align: center;
    color: var(--white);
}
.page-header h1 { color: var(--white); margin-bottom: 0.5rem; }
.page-header p { color: rgba(255,255,255,0.7); font-size: 1.1rem; }

/* ── Signup Page ───────────────────────────────────────────────────────── */
.signup-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 60px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.signup-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.subdomain-input {
    display: flex;
    align-items: center;
}
.subdomain-input input {
    border-radius: var(--radius) 0 0 var(--radius);
    border-right: none;
}
.subdomain-input input:focus + .subdomain-suffix {
    border-color: var(--accent);
}
.subdomain-suffix {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    white-space: nowrap;
    line-height: 1.6;
}

.field-hint {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.signup-alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    margin-bottom: 16px;
}
.signup-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}
.signup-alert ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.signup-alert ul li {
    padding: 2px 0;
}
.signup-alert ul li::before,
.signup-alert ul li::after { display: none; }

.signup-terms {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
    margin-bottom: 0;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-body);
    cursor: pointer;
}
.consent-checkbox input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
    cursor: pointer;
}
.consent-checkbox a { color: var(--primary); text-decoration: underline; }
.consent-checkbox.consent-error span { color: #ef4444; }
.consent-checkbox.consent-error input { outline: 2px solid #ef4444; outline-offset: 1px; }

.form-group input.field-error,
.form-group select.field-error {
    border-color: #ef4444;
}

.signup-success {
    text-align: center;
    padding: 40px 20px;
}
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--success);
    color: var(--white);
    font-size: 36px;
    line-height: 72px;
    margin: 0 auto 24px;
}

.sidebar-card {
    background: var(--gray-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}
.sidebar-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
}
.sidebar-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0;
}
.sidebar-card ul {
    list-style: none;
    margin: 0;
}
.sidebar-card ul li {
    padding: 5px 0 5px 22px;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.sidebar-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 12px;
    height: 12px;
    background: var(--success);
    border-radius: 50%;
}
.sidebar-card ul li::after {
    content: '';
    position: absolute;
    left: 2.5px;
    top: 13px;
    width: 7px;
    height: 3.5px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    transform: rotate(-45deg);
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    .product-grid { grid-template-columns: 1fr; max-width: 420px; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .nav-links { display: none; }
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--navy);
        padding: 20px 24px;
        gap: 16px;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .nav-toggle { display: block; }

    .hero { padding: 120px 24px 60px; }
    .hero-buttons { flex-direction: column; align-items: center; }

    .steps { grid-template-columns: 1fr; max-width: 400px; gap: 30px; }

    .trust-items { gap: 30px; }

    .product-grid { grid-template-columns: 1fr; max-width: 400px; }

    .feature-grid { grid-template-columns: 1fr; }

    .feature-row { grid-template-columns: 1fr; gap: 30px; }
    .feature-row.reverse { direction: ltr; }

    .routing-comparison { grid-template-columns: 1fr; }

    .self-hosted { grid-template-columns: 1fr; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
    .pricing-card.featured { transform: none; }

    .signup-layout { grid-template-columns: 1fr; }
    .signup-form-wrapper { padding: 28px; }
    .form-row-2 { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Legal pages ─────────────────────────────────────── */
.legal-content h2 { margin-top: 2.5rem; margin-bottom: 0.75rem; font-size: 1.25rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.legal-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.legal-content ul { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; padding-left: 24px; }
.legal-content li { margin-bottom: 4px; }
.legal-content a { color: var(--accent); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }

/* ── Contact form states ─────────────────────────────── */
.contact-success { text-align: center; padding: 40px 24px; }
.contact-success svg { margin-bottom: 16px; }
.contact-success h3 { color: var(--text); margin-bottom: 8px; }
.contact-success p { color: var(--text-muted); }
.contact-alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: 0.9rem; display: none; }
.contact-alert-error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.contact-alert-success { background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0; }

@media (max-width: 480px) {
    h1 { font-size: 1.7rem; }
    .section { padding: 50px 16px; }
    .hero { padding: 100px 16px 40px; }
    .trust-items { flex-direction: column; gap: 16px; }
    .footer-grid { grid-template-columns: 1fr; }
}
