/* =====================
   Variables & Reset
   ===================== */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --success: #10b981;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.2s ease;
    --header-h: 72px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-h);
}

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

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

/* =====================
   Header
   ===================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: contain;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 110;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Language Switcher — floating pill */
.lang-switch {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    gap: 2px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 4px;
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    background: none;
    border: none;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.lang-btn.active {
    background: #4f46e5;
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.08);
}

/* =====================
   Hero Section
   ===================== */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    overflow: hidden;
}

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

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--text);
    letter-spacing: -0.02em;
}

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

.hero-description {
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-light);
    margin-bottom: 14px;
    max-width: 540px;
    padding-left: 20px;
    letter-spacing: -0.005em;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%) 1;
}

.hero-description .desc-line-1,
.hero-description .desc-line-2 {
    color: inherit;
    font-weight: 500;
}

.hero-subtitle {
    position: relative;
    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 540px;
    padding-left: 20px;
    letter-spacing: -0.005em;
    border-left: 3px solid transparent;
    border-image: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%) 1;
}



.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: white;
    color: var(--text);
    border: 2px solid var(--border);
}

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

.btn-full {
    width: 100%;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.app-stores {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-stores-center {
    align-items: center;
    margin-top: 24px;
}

.app-stores-label {
    font-size: 0.9rem;
    color: var(--text-lighter);
}

.store-badges {
    display: flex;
    gap: 12px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #000;
    text-decoration: none;
    color: white;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    transition: opacity var(--transition), transform var(--transition);
}

.store-badge:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

.store-badge svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.store-badge[href*="apps.apple"] svg {
    width: 28px;
    height: 28px;
    margin: -2px -2px -2px 0;
}

.app-stores-compact .store-badges {
    gap: 8px;
}

.app-stores-compact .store-badge {
    padding: 8px 16px;
    font-size: 13px;
    gap: 6px;
}

.app-stores-compact .store-badge svg {
    width: 18px;
    height: 18px;
}

.app-stores-compact .store-badge[href*="apps.apple"] svg {
    width: 21px;
    height: 21px;
    margin: -1px -1px -1px 0;
}

.app-stores-compact .app-stores-label {
    font-size: 13px;
}

/* =====================
   Shared Phone Frame
   ===================== */
.phone-frame {
    width: 270px;
    height: 540px;
    background: #1a1a2e;
    border-radius: 38px;
    padding: 9px;
    position: relative;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.2),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}


.phone-frame-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    font-family: 'Inter', sans-serif;
}

/* Hero visual */
.hero-visual {
    display: flex;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
}


/* --- Mock App Header --- */
.mock-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 10px;
    background: #fff;
}

.mock-screen-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.mock-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-bell {
    position: relative;
    font-size: 0.8rem;
    line-height: 1;
}

.mock-bell-icon {
    opacity: 0.5;
}

.mock-bell-badge {
    position: absolute;
    top: -5px;
    right: -7px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.45rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Mock Client Tabs --- */
.mock-tabs-client {
    display: flex;
    gap: 16px;
    padding: 0 14px 8px;
    background: #fff;
    border-bottom: 1px solid var(--border);
}

.mock-tab-client {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--text-light);
    padding-bottom: 6px;
    border-bottom: 2px solid transparent;
}

.mock-tab-client-active {
    color: var(--primary);
    font-weight: 600;
    border-bottom-color: var(--primary);
}

/* --- Mock Pass Cards --- */
.mock-passes {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.mock-pass-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    animation: slideIn 0.6s ease forwards;
    opacity: 0;
    transform: translateY(15px);
}

.mock-pass-card:nth-child(1) { animation-delay: 0.2s; }
.mock-pass-card:nth-child(2) { animation-delay: 0.4s; }
.mock-pass-card:nth-child(3) { animation-delay: 0.6s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mock-pass-visual {
    background: linear-gradient(135deg, #4a9bd9 0%, #2d7ab8 50%, #1a5a8a 100%);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mock-pass-visual-green {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
}

.mock-pass-logo {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.18);
    border-radius: 6px;
    padding: 3px;
}

.mock-pass-logo svg {
    width: 100%;
    height: 100%;
}

.mock-pass-visual-purple {
    background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #5b21b6 100%);
}

.mock-pass-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-pass-org {
    font-size: 0.45rem;
    color: rgba(255,255,255,0.75);
    font-weight: 500;
}

.mock-pass-status {
    font-size: 0.4rem;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.mock-pass-name {
    font-size: 0.8rem;
    color: #fff;
    font-weight: 700;
}

.mock-pass-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2px;
}

.mock-pass-detail {
    font-size: 0.45rem;
    color: rgba(255,255,255,0.7);
}

.mock-pass-qr {
    font-size: 0.6rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 1px;
}

/* =====================
   Sections Common
   ===================== */
section {
    padding: 64px 0;
}

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

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.section-header p {
    font-size: 1.2rem;
    color: #4b5563;
}

/* =====================
   For Who — Compact Pills
   ===================== */
.for-who {
    background: var(--bg-alt);
    padding: 64px 0;
}

/* =====================
   How It Works — Timeline Stepper
   ===================== */
.how-it-works-timeline {
    background: #e0e7ff;
}


/* Timeline Nav */
.timeline-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin-bottom: 48px;
}

.timeline-line {
    position: absolute;
    top: 30px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: rgba(99, 102, 241, 0.15);
    border-radius: 2px;
    z-index: 0;
}

.timeline-line-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    width: 0%;
    transition: width 0.4s ease;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    position: relative;
    z-index: 1;
    flex: 1;
    gap: 12px;
}

.timeline-step-circle {
    width: 60px;
    height: 60px;
    line-height: 60px;
    text-align: center;
    background: #ffffff;
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 800;
    border-radius: 50%;
    border: none;
    box-shadow: inset 0 0 0 3px rgba(99, 102, 241, 0.15);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.timeline-step.active .timeline-step-circle,
.timeline-step.visited .timeline-step-circle {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.timeline-step:hover .timeline-step-circle {
    box-shadow: inset 0 0 0 3px var(--primary);
    transform: scale(1.05);
}

.timeline-step-label {
    text-align: center;
}

.timeline-step-label h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

.timeline-step.active .timeline-step-label h3 {
    color: var(--text);
}

.timeline-step-label p {
    font-size: 0.8rem;
    color: var(--text-lighter);
}


/* Timeline Detail Panel */
.timeline-detail-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
}

.timeline-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.timeline-arrow:hover:not(:disabled) {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.timeline-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.timeline-detail {
    position: relative;
    min-height: 350px;
    flex: 1;
    min-width: 0;
}

.timeline-detail-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(99, 102, 241, 0.08);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s ease;
    transform: translateY(10px);
}

.timeline-detail-panel.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateY(0);
}

.feature-text h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature-text > p {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    max-width: 560px;
    line-height: 1.6;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullets li {
    font-size: 0.95rem;
    color: var(--text-light);
    padding-left: 28px;
    position: relative;
}

.feature-bullets li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Feature phone positioning */
.feature-phone {
    display: flex;
    justify-content: center;
    position: relative;
}

.feature-phone::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.feature-phone .phone-frame {
    position: relative;
    z-index: 1;
}

.feature-screenshot-wrap {
    position: relative;
    z-index: 1;
    max-width: 300px;
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 1px 2px hsl(220deg 60% 50% / 0.06),
        0 2px 4px hsl(220deg 60% 50% / 0.06),
        0 4px 8px hsl(220deg 60% 50% / 0.06),
        0 8px 16px hsl(220deg 60% 50% / 0.06),
        0 16px 32px hsl(220deg 60% 50% / 0.06);
}

.hero-screenshot-wrap {
    max-width: 350px;
}

.feature-screenshot-wrap::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.9));
    pointer-events: none;
    z-index: 2;
}

.feature-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* =====================
   Shared Demo UI Components (used in feature phones)
   ===================== */

/* App header */
.demo-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px 8px;
    background: #fff;
}

.demo-app-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.demo-ctx-icon {
    font-size: 0.7rem;
    color: #64748b;
}

.demo-org-name {
    font-size: 0.65rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.demo-app-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.demo-bell-wrap {
    position: relative;
    font-size: 0.7rem;
}

.demo-bell { color: #64748b; }

.demo-bell-dot {
    position: absolute;
    top: -2px;
    right: -3px;
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.demo-avatar-sm {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #6366f1;
    color: #fff;
    font-size: 0.45rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tabs */
.demo-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.demo-tab {
    flex: 1;
    text-align: center;
    padding: 8px 4px;
    font-size: 0.55rem;
    font-weight: 500;
    color: #94a3b8;
    border-bottom: 2px solid transparent;
}

.demo-tab-active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
    font-weight: 600;
}

/* Filter pills */
.demo-filter-row {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
}

.demo-pill {
    font-size: 0.48rem;
    padding: 4px 10px;
    border: 1px solid #3b82f6;
    border-radius: 20px;
    color: #3b82f6;
    background: #fff;
    white-space: nowrap;
}

.demo-pill-light {
    border-color: #cbd5e1;
    color: #64748b;
}

.demo-label-sm {
    font-size: 0.52rem;
    font-weight: 600;
    color: #1e293b;
    padding: 2px 12px 6px;
}

/* QR button */
.demo-qr-btn {
    margin: 8px 12px;
    padding: 10px;
    border: 1.5px dashed #3b82f6;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #3b82f6;
    font-size: 0.55rem;
    font-weight: 600;
    background: rgba(59, 130, 246, 0.03);
}

.demo-qr-icon {
    font-size: 0.5rem;
    line-height: 1;
    letter-spacing: 1px;
}

/* Carnet list items */
.demo-carnet-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 8px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.demo-carnet-vis {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    flex-shrink: 0;
}

.demo-grad-red-teal-sm {
    background: linear-gradient(135deg, #b91c1c, #0d9488);
}

.demo-grad-blue-purple-sm {
    background: linear-gradient(135deg, #1d4ed8, #8b5cf6);
}

.demo-carnet-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.demo-carnet-name {
    font-size: 0.52rem;
    font-weight: 600;
    color: #1e293b;
}

.demo-carnet-client {
    font-size: 0.46rem;
    color: #64748b;
}

.demo-carnet-detail {
    font-size: 0.42rem;
    color: #10b981;
    font-weight: 500;
}

/* FAB */
.demo-fab {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #3b82f6;
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59,130,246,0.4);
    font-weight: 300;
}

/* Search bar */
.demo-search-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 12px 0;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.demo-search-icon {
    font-size: 0.5rem;
    color: #94a3b8;
}

.demo-search-placeholder {
    flex: 1;
    font-size: 0.48rem;
    color: #94a3b8;
}

.demo-search-label-icon {
    font-size: 0.5rem;
    color: #3b82f6;
}

/* Customer list items */
.demo-customer-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px 6px;
    padding: 8px 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.demo-customer-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #fff;
    font-size: 0.4rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.demo-customer-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.demo-customer-name {
    font-size: 0.5rem;
    font-weight: 600;
    color: #1e293b;
}

.demo-customer-meta {
    font-size: 0.4rem;
    color: #64748b;
}

.demo-customer-labels {
    flex-shrink: 0;
}

.demo-label-tag {
    font-size: 0.36rem;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
}

.demo-label-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.demo-label-green {
    background: #ecfdf5;
    color: #10b981;
}

.demo-label-purple {
    background: #faf5ff;
    color: #8b5cf6;
}

/* Client tabs */
.demo-client-tabs {
    display: flex;
    gap: 0;
    padding: 8px 12px;
    background: #fff;
}

.demo-client-tab {
    font-size: 0.48rem;
    padding: 6px 12px;
    color: #94a3b8;
    font-weight: 500;
    white-space: nowrap;
}

.demo-client-tab-active {
    color: #3b82f6;
    font-weight: 600;
}

/* Client pass cards */
.demo-client-pass {
    margin: 0 12px 10px;
}

.demo-client-pass-visual {
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 90px;
    position: relative;
}

.demo-grad-red-teal {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 30%, #0d9488 80%, #14b8a6 100%);
}

.demo-grad-green {
    background: linear-gradient(135deg, #15803d 0%, #059669 50%, #0d9488 100%);
}

.demo-cp-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.demo-cp-org {
    font-size: 0.45rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
}

.demo-cp-status {
    font-size: 0.38rem;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 500;
}

.demo-cp-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.demo-cp-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.42rem;
    color: rgba(255,255,255,0.75);
    margin-top: auto;
}

.demo-cp-qr {
    font-size: 0.5rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* Demo form (org creation screen) */
.demo-form {
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.demo-form-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.demo-form-label {
    font-size: 0.42rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.demo-form-input {
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.48rem;
    color: #94a3b8;
    background: #fff;
}

.demo-form-input-filled {
    color: #1e293b;
    border-color: #cbd5e1;
}

.demo-form-upload {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    border: 1.5px dashed #cbd5e1;
    border-radius: 8px;
    font-size: 0.44rem;
    color: #94a3b8;
}

.demo-upload-icon {
    font-size: 0.6rem;
}

.demo-form-btn {
    margin-top: 4px;
    padding: 9px;
    background: #3b82f6;
    color: #fff;
    border-radius: 10px;
    font-size: 0.5rem;
    font-weight: 600;
    text-align: center;
}

/* Template item (reuses carnet item layout) */
.demo-template-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 8px;
    padding: 10px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.demo-grad-green-sm {
    background: linear-gradient(135deg, #15803d, #0d9488);
}

.industries-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.industry-pill:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

/* =====================
   Pricing Section
   ===================== */
.pricing {
    background: var(--bg-alt);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(var(--tier-count, 3), 1fr);
    gap: 16px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

/* Pricing error indicator (default state before API loads prices) */
.pricing-price-error-msg {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-lighter);
    padding: 8px 0;
}

.pricing-price-error-msg::before {
    content: '';
    display: block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E") no-repeat center / contain;
    flex-shrink: 0;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px 16px;
    border: 1px solid var(--border);
    text-align: center;
    position: relative;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card-popular {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-card-popular:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.pricing-badge-free,
.pricing-badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.pricing-badge-free {
    background: var(--success);
    color: white;
}

.pricing-badge-popular {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
    margin-top: 8px;
}

.pricing-price {
    margin-bottom: 24px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-light);
}

.pricing-features {
    list-style: none;
    margin-bottom: 28px;
    text-align: left;
    flex: 1;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.85rem;
    color: var(--text-light);
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 24px;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Pricing More (Enterprise teaser) */
.pricing-disclaimer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pricing-more {
    text-align: center;
    margin-top: 40px;
}

.pricing-more-toggle {
    background: none;
    border: none;
    color: #4f46e5;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color var(--transition);
    font-family: inherit;
}

.pricing-more-toggle:hover {
    color: var(--primary-dark);
}

.pricing-more-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.pricing-more-toggle.active .pricing-more-arrow {
    transform: rotate(180deg);
}

.pricing-more-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.pricing-more-content.open {
    max-height: 500px;
}

.pricing-extra-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 24px auto 0;
}

.pricing-extra-grid-single {
    grid-template-columns: 1fr;
    max-width: 400px;
}

.pricing-extra-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    text-align: center;
}

.pricing-extra-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.pricing-extra-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

/* =====================
   FAQ Section
   ===================== */
.faq {
    background: var(--bg);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    background: none;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: color var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--text-light);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 0 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* =====================
   Final CTA
   ===================== */
.final-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #e0e7ff 0%, #ede9fe 50%, #e0e7ff 100%);
    text-align: center;
}

.final-cta h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.final-cta > .container > p {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 28px;
}

/* =====================
   Contact Section
   ===================== */
.contact {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1e1b4b 100%);
    color: white;
}

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

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
}

.contact-feature .check {
    width: 24px;
    height: 24px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-lighter);
    margin-top: 16px;
}

.form-error {
    background: #fef2f2;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 16px;
    border: 1px solid #fecaca;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-success {
    display: none;
    text-align: center;
    background: white;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.form-success.show {
    display: block;
}

.form-success .success-icon {
    width: 80px;
    height: 80px;
    background: var(--success);
    color: white;
    font-size: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.form-success h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 12px;
}

.form-success p {
    color: var(--text-light);
}

/* =====================
   Confirmation Page
   ===================== */
.confirm-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.confirm-body .header {
    flex-shrink: 0;
}

.confirm-page {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0 60px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.confirm-card {
    background: white;
    padding: 48px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 480px;
}

.confirm-hidden {
    display: none !important;
}

.confirm-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.confirm-icon svg {
    width: 40px;
    height: 40px;
}

.confirm-icon.success {
    background: var(--success);
    color: white;
}

.confirm-icon.error {
    background: #ef4444;
    color: white;
}

.confirm-card h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.confirm-description {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.6;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.confirm-actions .btn {
    width: 100%;
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Loading Spinner */
.confirm-loading {
    margin-bottom: 24px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Confirmation Footer */
.confirm-footer {
    flex-shrink: 0;
    padding: 30px 0;
}

.confirm-footer .footer-bottom {
    border-top: none;
    padding-top: 0;
}

/* =====================
   Footer
   ===================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 28px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    color: white;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.95rem;
}

.footer-social {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    gap: 12px;
}

.footer-social li {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    line-height: 0;
}

.footer-social li::before,
.footer-social li::marker {
    content: none;
    display: none;
}

.footer-social .social-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    overflow: hidden;
    isolation: isolate;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform var(--transition),
                border-color var(--transition),
                color var(--transition),
                box-shadow var(--transition);
}

.footer-social .social-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 0;
    transition: opacity var(--transition);
    z-index: -1;
}

.footer-social .social-link:hover {
    transform: translateY(-2px) translateZ(0);
    color: #ffffff;
    border-color: transparent;
}

.footer-social .social-link:hover::before {
    opacity: 1;
}

.footer-social .social-link--instagram::before {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* Will be needed when FB profile is set up — keep alongside the .social-link--facebook hover rule below.
.footer-social .social-link--facebook::before {
    background: #1877f2;
}
*/

.footer-social .social-link--instagram:hover {
    box-shadow: 0 8px 20px -8px rgba(214, 41, 118, 0.6);
}

/* Will be needed when FB profile is set up.
.footer-social .social-link--facebook:hover {
    box-shadow: 0 8px 20px -8px rgba(24, 119, 242, 0.6);
}
*/

.footer-social .social-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: white;
}

.company-info p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-made-by {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: #94a3b8;
}

.blackshipcode-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition);
}

.blackshipcode-link:hover {
    color: white;
}

.blackshipcode-logo {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* =====================
   Feedback Form
   ===================== */
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: border-color var(--transition);
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group .file-hint {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-top: 4px;
}

.form-optional {
    font-weight: 400;
    color: var(--text-lighter);
    font-size: 0.8rem;
}

/* =====================
   Feedback Hero Layout
   ===================== */
.feedback-hero {
    padding-bottom: 100px;
}

.feedback-hero .container {
    display: block;
}

/* Sticky footer for short pages (feedback + kontakt) */
body:has(.feedback-hero),
body:has(.contact-section) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

body:has(.feedback-hero) .feedback-hero,
body:has(.contact-section) main {
    flex: 1 0 auto;
}

body:has(.feedback-hero) .footer,
body:has(.contact-section) .footer {
    flex-shrink: 0;
}

.feedback-layout {
    grid-template-columns: 1fr;
}

.feedback-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.feedback-section-header {
    margin-bottom: 40px;
}

.feedback-section-header h2 {
    color: var(--text);
}

/* =====================
   Custom File Upload
   ===================== */
.file-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
}

.file-upload:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.04);
}

.file-upload svg {
    color: var(--text-lighter);
    width: 24px;
    height: 24px;
}

.file-upload-text {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

.file-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* Class-level `display:` above would otherwise beat the UA rule for [hidden]. */
.file-upload[hidden],
.file-selected[hidden] {
    display: none;
}

.file-selected-name {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    background: var(--border);
    color: var(--text-light);
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1;
    flex-shrink: 0;
}

.file-remove:hover {
    background: #fecaca;
    color: #dc2626;
}

/* =====================
   Testing Page
   ===================== */
.testing-hero {
    padding-bottom: 60px;
    text-align: center;
}

.testing-hero .container {
    display: flex;
    justify-content: center;
}

.testing-content {
    max-width: 700px;
}

.testing-content .hero-description {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.platform-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.platform-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 2px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.platform-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.platform-tab.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
}

.testing-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-icon {
    margin-right: 8px;
}

.testing-info-section {
    padding: 0 0 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.testing-info-content {
    max-width: 700px;
    margin: 0 auto;
}

.testing-warning {
    background: #fffbeb;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 40px;
}

.testing-warning-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    color: #92400e;
    margin-bottom: 16px;
}

.testing-warning-title svg {
    color: #f59e0b;
    flex-shrink: 0;
}

.testing-warning ul {
    list-style: disc;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.testing-warning li {
    font-size: 0.95rem;
    color: #78350f;
    line-height: 1.5;
}

.testing-feedback-cta {
    text-align: center;
}

.testing-feedback-cta h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 12px;
}

.testing-feedback-cta p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 1;
    }

    .hero-visual {
        order: 2;
        margin-top: 40px;
    }

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

    .hero-subtitle {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        border-left: none;
        padding-left: 0;
        padding-top: 14px;
        text-align: center;
    }

    .hero-subtitle::before {
        content: '';
        display: block;
        width: 48px;
        height: 3px;
        margin: 0 auto 14px;
        border-radius: 2px;
        background: linear-gradient(90deg, var(--primary), var(--secondary));
    }

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


    .app-stores {
        align-items: center;
    }

    .hero-visual .phone-frame {
        transform: none;
    }

    .timeline-step-circle {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.25rem;
    }

    .timeline-line {
        top: 25px;
    }

    .timeline-step-label p {
        display: none;
    }

    .timeline-detail-panel {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 24px;
    }

    .timeline-detail-panel .feature-text {
        text-align: center;
    }

    .timeline-detail-panel .feature-text > p {
        max-width: 100%;
    }

    .timeline-detail-panel .feature-bullets {
        display: inline-flex;
        text-align: left;
    }

    .timeline-detail {
        min-height: 280px;
    }

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

    .pricing-card-popular {
        transform: none;
    }

    .pricing-card-popular:hover {
        transform: translateY(-4px);
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav {
        display: none;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 16px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--border);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 0 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.45;
    }

    .hero-subtitle::before {
        width: 40px;
    }

    section {
        padding: 48px 0;
    }

    .testing-links {
        flex-direction: column;
    }

    .testing-warning {
        padding: 20px 24px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .timeline-nav {
        display: none;
    }

    .timeline-arrow {
        display: none;
    }

    .timeline-detail {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: 16px;
        counter-reset: step;
    }

    .timeline-detail-panel {
        position: relative;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 24px;
    }

    .timeline-detail-panel .feature-text::before {
        counter-increment: step;
        content: counter(step);
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--primary), var(--secondary));
        color: white;
        font-size: 1rem;
        font-weight: 800;
        margin: 0 auto 12px;
    }

    .timeline-detail-panel .feature-text {
        text-align: center;
    }

    .timeline-detail-panel .feature-text > p {
        max-width: 100%;
    }

    .timeline-detail-panel .feature-bullets {
        display: inline-flex;
        text-align: left;
    }

    .feature-phone::before {
        display: none;
    }

    .feature-text h3 {
        font-size: 1.25rem;
    }

    .feature-screenshot-wrap {
        max-width: 260px;
    }

    .hero-screenshot-wrap {
        max-width: 300px;
    }

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

    .store-badges {
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        gap: 24px;
        flex-wrap: wrap;
    }

    .phone-frame {
        width: 240px;
        height: 480px;
    }

    .final-cta h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    section {
        padding: 40px 0;
    }

    .hero {
        padding: 88px 0 32px;
    }

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

    .hero-subtitle {
        font-size: 1.02rem;
    }

    .hero-subtitle::before {
        width: 36px;
        height: 2px;
    }

    .industry-pill {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    .feature-screenshot-wrap {
        max-width: 220px;
    }

    .hero-screenshot-wrap {
        max-width: 260px;
    }

    .timeline-detail-panel {
        padding: 20px;
    }

    .timeline-arrow {
        width: 40px;
        height: 40px;
    }

    .timeline-arrow svg {
        width: 20px;
        height: 20px;
    }

    .timeline-detail-wrapper {
        gap: 8px;
    }

    .timeline-detail-panel {
        padding: 20px;
    }

    .feature-text h3 {
        font-size: 1.15rem;
    }

    .feature-bullets li {
        font-size: 0.85rem;
    }

    .phone-frame {
        width: 230px;
        height: 460px;
    }

    .footer-column a {
        overflow-wrap: break-word;
    }

    .footer-links {
        flex-direction: column;
        gap: 32px;
    }

    .lang-switch {
        bottom: 16px;
        right: 16px;
    }

    .contact-form {
        padding: 24px;
    }

    .confirm-card {
        padding: 32px 24px;
        margin: 0 16px;
    }

    .confirm-card h2 {
        font-size: 1.5rem;
    }

    .confirm-icon {
        width: 64px;
        height: 64px;
    }

    .confirm-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* =====================
   Features
   Section background alternation: How It Works (#e0e7ff) -> Features (white) -> Pricing (--bg-alt).
   Note: uses .feature-card* prefix to avoid collision with .feature-text / .feature-phone
   which belong to the How It Works timeline.
   ===================== */
.features {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.feature-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #ffffff;
    margin-bottom: 18px;
    box-shadow: 0 6px 14px -6px rgba(99, 102, 241, 0.55);
}

.feature-card-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.005em;
}

.feature-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-light);
}

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

@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =====================
   Pilot Program — Letter/Note style
   Visually distinct from the feature-card grid above: a single centered
   "letter" panel on a soft indigo->cyan section background, no card grid.
   ===================== */
.pilot {
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
    position: relative;
}

.pilot-letter .pilot-label {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--text);
    margin: 0 0 24px;
}

.pilot-letter {
    max-width: 680px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 56px 64px;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pilot-letter:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.pilot-letter-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text);
    margin: 0 0 28px;
}

.pilot-letter-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pilot-letter-list li {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--text);
    padding-left: 36px;
    position: relative;
    font-weight: 500;
}

.pilot-letter-list li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
}

.pilot-letter-cta {
    text-align: center;
    margin: 0;
}

.pilot-letter-cta .btn {
    min-width: 260px;
}

@media (max-width: 768px) {
    .pilot-letter {
        padding: 40px 28px;
    }

    .pilot-letter .pilot-label {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .pilot-letter-intro {
        font-size: 1rem;
    }

    .pilot-letter-list li {
        font-size: 0.98rem;
        padding-left: 30px;
    }

    .pilot-letter-list li::before {
        font-size: 1.2rem;
    }

    .pilot-letter-cta .btn {
        min-width: 0;
        width: 100%;
    }
}

/* Generic scroll-reveal: script.js opacity/transform the element at mount, then
   adds .animate-in via IntersectionObserver. .pilot-letter is excluded because
   its children handle the reveal below and its parent needs a free :hover transform. */
.animate-in:not(.pilot-letter) {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Scroll-triggered staggered reveal for the pilot letter's inner elements.
   Triggered when script.js adds .animate-in via IntersectionObserver. */
@media (prefers-reduced-motion: no-preference) {
    .pilot-letter > * {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.55s ease, transform 0.55s ease;
    }

    .pilot-letter.animate-in > * {
        opacity: 1;
        transform: translateY(0);
    }

    .pilot-letter.animate-in > *:nth-child(1) { transition-delay: 0.08s; }
    .pilot-letter.animate-in > *:nth-child(2) { transition-delay: 0.18s; }
    .pilot-letter.animate-in > *:nth-child(3) { transition-delay: 0.28s; }
    .pilot-letter.animate-in > *:nth-child(4) { transition-delay: 0.38s; }
}
