/* ============================================================
   DASH Echo Homepage — Dual-Theme Design System
   Light is the default; html.dark switches to dark mode.
   Theme resolution: localStorage > prefers-color-scheme > light
   ============================================================ */

:root {
    /* Brand Accents (theme independent) */
    --primary: #3b82f6;
    --primary-glow: rgba(59, 130, 246, 0.15);
    --secondary: #10b981;
    --secondary-glow: rgba(16, 185, 129, 0.15);
    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);

    /* Light Theme Surfaces (default) */
    --bg: #f6f8fc;
    --bg-alt: #eef2f9;
    --card-bg: #ffffff;
    --border-color: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(59, 130, 246, 0.35);
    --input-bg: #f1f5f9;
    --surface-hover: rgba(15, 23, 42, 0.04);

    --text-primary: #0f172a;
    --text-muted: #475569;
    --text-dimmed: #64748b;

    --nav-bg: rgba(255, 255, 255, 0.78);
    --nav-bg-scrolled: rgba(255, 255, 255, 0.94);
    --footer-bg: #eef2f9;
    --footer-divider: rgba(15, 23, 42, 0.05);

    --card-shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.1);
    --card-shadow-hover: 0 20px 40px -15px rgba(59, 130, 246, 0.18);
    --glow-opacity: 0.55;

    --hero-title-from: #0f172a;
    --hero-title-to: #1d4ed8;

    /* Real widget tokens — light theme (mirrors production widget .aiwg-light) */
    --ws-bg: #ffffff;
    --ws-header-bg: #ffffff;
    --ws-text: #292929;
    --ws-text-secondary: #898989;
    --ws-border: rgba(41, 41, 41, 0.08);
    --ws-msg-bot-bg: #f4f4f4;
    --ws-msg-bot-text: #292929;
    --ws-input-bg: #f4f4f4;
    --ws-input-border: rgba(41, 41, 41, 0.06);
    --ws-user-msg: #292929;
    --ws-primary: #292929;
    --ws-shadow: 0 15px 35px rgba(41, 41, 41, 0.12);

    /* Font Families */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

html.dark {
    /* Dark Theme Surfaces */
    --bg: #070b13;
    --bg-alt: #04060a;
    --card-bg: rgba(15, 22, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(59, 130, 246, 0.3);
    --input-bg: rgba(11, 17, 30, 0.6);
    --surface-hover: rgba(255, 255, 255, 0.06);

    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --text-dimmed: #64748b;

    --nav-bg: rgba(4, 6, 10, 0.7);
    --nav-bg-scrolled: rgba(4, 6, 10, 0.9);
    --footer-bg: #04060a;
    --footer-divider: rgba(255, 255, 255, 0.03);

    --card-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
    --card-shadow-hover: 0 20px 40px -15px rgba(59, 130, 246, 0.1);
    --glow-opacity: 1;

    --hero-title-from: #ffffff;
    --hero-title-to: #93c5fd;

    /* Real widget tokens — dark theme (mirrors production widget .aiwg-dark) */
    --ws-bg: rgba(15, 23, 42, 0.96);
    --ws-header-bg: rgba(30, 41, 59, 0.4);
    --ws-text: #f8fafc;
    --ws-text-secondary: #94a3b8;
    --ws-border: rgba(255, 255, 255, 0.08);
    --ws-msg-bot-bg: rgba(30, 41, 59, 0.7);
    --ws-msg-bot-text: #ffffff;
    --ws-input-bg: rgba(255, 255, 255, 0.04);
    --ws-input-border: rgba(255, 255, 255, 0.08);
    --ws-user-msg: #0066fe;
    --ws-primary: linear-gradient(135deg, #0066fe 0%, #1d4ed8 100%);
    --ws-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background-color: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.625;
    overflow-x: clip;
    max-width: 100vw;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background mesh glows */
.glow-mesh-1,
.glow-mesh-2,
.glow-mesh-3 {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    opacity: var(--glow-opacity);
}

.glow-mesh-1 {
    top: 5%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(139,92,246,0.05) 50%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
}

.glow-mesh-2 {
    top: 45%;
    left: -15%;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, rgba(59,130,246,0.03) 50%, rgba(0,0,0,0) 70%);
    filter: blur(100px);
}

.glow-mesh-3 {
    bottom: 5%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(16,185,129,0.02) 50%, rgba(0,0,0,0) 70%);
    filter: blur(80px);
}

/* Premium Typography */
h1, h2, h3, h4, h5, .font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

p {
    color: var(--text-muted);
    font-weight: 500;
}

/* Glassmorphism Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-color) 1px solid;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    height: 70px;
    background: var(--nav-bg-scrolled);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
}

/* Theme-aware logo swap (logo.png has dark strokes, logo-dark.png has light strokes) */
.logo-for-dark { display: none; }
html.dark .logo-for-light { display: none; }
html.dark .logo-for-dark { display: block; }

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
}

html.dark .logo-text {
    background: linear-gradient(135deg, #ffffff 40%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.nav-signin {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 30px;
    background: var(--primary);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html.dark .theme-toggle .icon-sun { display: block; }
html.dark .theme-toggle .icon-moon { display: none; }

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 80px 80px 80px;
    position: relative;
    z-index: 10;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
    width: 100%;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge-promo {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.25);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

html.dark .badge-promo {
    color: #93c5fd;
    border-color: rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: 56px;
    line-height: 1.15;
    background: linear-gradient(135deg, var(--hero-title-from) 40%, var(--hero-title-to) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 18px;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dimmed);
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hero-trust svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}

.btn-secondary-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 100px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-secondary-outline:hover {
    border-color: var(--text-primary);
    background: var(--surface-hover);
}

/* ============================================================
   Hero Visual — faithful replica of the production chat widget
   (same tokens, header, bubbles, chips, pills & booking card)
   ============================================================ */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ws-panel {
    width: 100%;
    max-width: 400px;
    background: var(--ws-bg);
    border: 1px solid var(--ws-border);
    border-radius: 24px;
    box-shadow: var(--ws-shadow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 560px;
}

.ws-header {
    padding: 16px 20px;
    background: var(--ws-header-bg);
    border-bottom: 1px solid var(--ws-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.ws-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ws-avatar {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ws-avatar img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ws-title-container {
    display: flex;
    flex-direction: column;
}

.ws-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ws-text);
    font-family: var(--font-heading);
}

.ws-subtitle {
    font-size: 0.78rem;
    color: #4ade80;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.ws-subtitle::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.ws-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ws-text-secondary);
}

.ws-messages {
    flex: 1;
    padding: 18px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
    /* scrollable but no visible scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ws-messages::-webkit-scrollbar {
    display: none;
}

.ws-msg-wrapper {
    display: flex;
    flex-direction: column;
    max-width: 84%;
    animation: ws-msgFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.ws-msg-wrapper.ws-user {
    align-self: flex-end;
    align-items: flex-end;
}

.ws-msg-wrapper.ws-bot {
    align-self: flex-start;
    align-items: flex-start;
}

.ws-msg {
    padding: 11px 16px;
    font-size: 0.85rem;
    line-height: 1.55;
    font-weight: 450;
    border-radius: 18px;
    word-wrap: break-word;
}

.ws-user .ws-msg {
    background: var(--ws-user-msg);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.ws-bot .ws-msg {
    background: var(--ws-msg-bot-bg);
    color: var(--ws-msg-bot-text);
    border-bottom-left-radius: 4px;
}

@keyframes ws-msgFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typing indicator (3 dots) */
.ws-typing {
    display: inline-flex;
    gap: 4px;
    padding: 14px 16px;
    background: var(--ws-msg-bot-bg);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.ws-typing i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ws-text-secondary);
    animation: ws-typingBlink 1.2s infinite both;
}

.ws-typing i:nth-child(2) { animation-delay: 0.2s; }
.ws-typing i:nth-child(3) { animation-delay: 0.4s; }

@keyframes ws-typingBlink {
    0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
    40% { opacity: 1; transform: translateY(-3px); }
}

/* Suggested-question chips & quick-reply service pills (identical styling in the real widget) */
.ws-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 4px;
    animation: ws-msgFadeIn 0.35s ease both;
}

.ws-chip {
    border: 1px solid rgba(99, 102, 241, 0.45);
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: inherit;
    cursor: default;
    transition: background 0.15s;
}

.ws-chip.ws-chip-active {
    background: rgba(99, 102, 241, 0.25);
}

/* Booking card (replica of the in-chat Quick Booking card) */
.ws-booking-card {
    background: var(--ws-input-bg);
    border: 1px solid var(--ws-border);
    border-radius: 18px;
    padding: 14px;
    margin-top: 4px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: ws-msgFadeIn 0.35s ease-out both;
}

.ws-booking-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--ws-text);
    font-family: var(--font-heading);
}

.ws-booking-desc {
    font-size: 0.74rem;
    color: var(--ws-text-secondary);
    line-height: 1.4;
}

.ws-booking-field {
    background: var(--ws-bg);
    border: 1px solid var(--ws-input-border);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.78rem;
    color: var(--ws-text);
    font-weight: 500;
}

.ws-booking-field.ws-placeholder {
    color: var(--ws-text-secondary);
}

.ws-booking-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--ws-text-secondary);
    margin-top: 2px;
}

.ws-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.ws-slot-btn {
    background: var(--ws-bg);
    border: 1px solid var(--ws-input-border);
    color: var(--ws-text);
    font-size: 0.74rem;
    padding: 6px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
    transition: all 0.2s ease;
}

.ws-slot-btn.ws-slot-selected {
    background: rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
    color: #6366f1;
}

.ws-booking-submit {
    margin-top: 4px;
    padding: 10px;
    border-radius: 10px;
    border: none;
    background: var(--ws-primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    transition: opacity 0.2s ease;
}

.ws-booking-submit.ws-disabled {
    opacity: 0.5;
}

/* Footer input (pill form + round send button, like the real widget) */
.ws-footer {
    padding: 14px 16px;
    flex-shrink: 0;
    border-top: 1px solid var(--ws-border);
}

.ws-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ws-input-bg);
    border: 1px solid var(--ws-input-border);
    border-radius: 100px;
    padding: 6px 6px 6px 16px;
}

.ws-input {
    flex: 1;
    font-size: 0.85rem;
    color: var(--ws-text-secondary);
}

.ws-send-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--ws-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ws-send-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateX(1px);
}

/* Feature/Stats Section */
.features-section {
    padding: 100px 80px;
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    font-size: 42px;
    line-height: 1.2;
}

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

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border: 1px solid rgba(59, 130, 246, 0.15);
}

.feature-card:nth-child(3n+2) .feature-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary);
    border-color: rgba(16, 185, 129, 0.15);
}

.feature-card:nth-child(3n) .feature-icon {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
    border-color: rgba(139, 92, 246, 0.15);
}

.feature-title {
    font-size: 21px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 80px;
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.pricing-card.premium {
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.12);
}

html.dark .pricing-card.premium {
    background: linear-gradient(180deg, rgba(15, 22, 36, 0.9) 0%, rgba(7, 11, 19, 0.95) 100%);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.1);
}

.pricing-card.premium::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
}

.pricing-card.trial::before {
    content: '14-DAY FREE TRIAL';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary) 0%, #059669 100%);
    padding: 6px 18px;
    border-radius: 100px;
    font-size: 10px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.price-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.plan-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
}

.price-amount span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dimmed);
    margin-left: 6px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.pricing-feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-card.trial .pricing-feature svg {
    color: var(--secondary);
}

.pricing-feature.disabled {
    color: var(--text-dimmed);
    text-decoration: line-through;
}

.pricing-feature.disabled svg {
    color: var(--text-dimmed);
}

.btn-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-radius: 100px;
    background: var(--surface-hover);
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

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

.pricing-card.premium .btn-pricing {
    background: var(--primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.pricing-card.premium .btn-pricing:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.pricing-card.trial .btn-pricing {
    background: var(--secondary);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.pricing-card.trial .btn-pricing:hover {
    background: #059669;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.pricing-footnote {
    text-align: center;
    margin-top: 36px;
    font-size: 13px;
    color: var(--text-dimmed);
    font-weight: 600;
}

/* Final CTA band */
.cta-section {
    padding: 60px 80px 120px 80px;
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
}

.cta-card {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 32px;
    padding: 70px 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.cta-title {
    font-size: 38px;
    line-height: 1.2;
    max-width: 640px;
}

.cta-desc {
    font-size: 16px;
    max-width: 540px;
}

/* Contact Us Section */
.contact-section {
    padding: 100px 80px;
    position: relative;
    z-index: 10;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: 60px;
    backdrop-filter: blur(15px);
    box-shadow: var(--card-shadow);
}

.contact-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
}

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

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.form-control {
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.1);
}

.form-group textarea.form-control {
    resize: none;
    min-height: 140px;
}

.btn-submit {
    grid-column: span 2;
    padding: 16px;
    border-radius: 100px;
    background: var(--primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(59,130,246,0.3);
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #2563eb;
    box-shadow: 0 6px 20px rgba(59,130,246,0.45);
    transform: translateY(-1px);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: var(--border-color) 1px solid;
    padding: 80px 80px 40px 80px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 40px;
    max-width: 1280px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-dimmed);
    max-width: 320px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-primary);
}

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

.footer-link {
    text-decoration: none;
    color: var(--text-dimmed);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1280px;
    margin: 60px auto 0 auto;
    padding-top: 30px;
    border-top: var(--footer-divider) 1px solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-dimmed);
    font-weight: 500;
}

/* Legal/Document Pages styling */
.doc-section {
    padding: 140px 80px 80px 80px;
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    min-height: 80vh;
}

.doc-content {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 50px;
    box-shadow: var(--card-shadow);
}

.doc-title {
    font-size: 36px;
    margin-bottom: 12px;
}

.doc-meta {
    font-size: 13px;
    color: var(--text-dimmed);
    margin-bottom: 40px;
}

.doc-body {
    display: flex;
    flex-direction: column;
    gap: 28px;
    font-size: 14px;
    color: var(--text-muted);
}

.doc-body h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin-top: 10px;
}

/* Response message block */
.response-msg {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #059669;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

html.dark .response-msg {
    border-color: rgba(16, 185, 129, 0.2);
    color: #a7f3d0;
}

/* Navbar CTA: full text on desktop, short on small screens */
.cta-text-short { display: none; }

/* ============================================================
   Responsive Styles
   ============================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .navbar { padding: 0 40px; }
    .hero-section, .features-section, .pricing-section, .contact-section, .footer, .doc-section, .cta-section { padding: 80px 40px; }
    .hero-section { padding-top: 120px; min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hero-content { align-items: center; text-align: center; }
    .badge-promo { align-self: center; }
    .hero-buttons, .hero-trust { justify-content: center; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .pricing-grid { grid-template-columns: 1fr; gap: 36px; max-width: 480px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Mobile */
@media (max-width: 640px) {
    /* Compact navbar that still fits logo + theme toggle + Sign In + CTA */
    .navbar { padding: 0 12px; height: 64px; gap: 8px; }
    .navbar.scrolled { height: 58px; }
    .logo-container { gap: 8px; min-width: 0; }
    .logo-img { height: 28px; }
    .logo-text { font-size: 14px; white-space: nowrap; }
    .nav-actions { gap: 8px; }
    .theme-toggle { width: 34px; height: 34px; flex-shrink: 0; }
    .nav-signin { font-size: 12px; }
    .nav-cta { padding: 9px 14px; font-size: 12px; }
    .cta-text-full { display: none !important; }
    .cta-text-short { display: inline !important; }

    .hero-section, .features-section, .pricing-section, .contact-section, .footer, .doc-section, .cta-section { padding: 70px 18px; }
    .hero-section { padding-top: 96px; }
    .hero-title { font-size: 34px; }
    .hero-description { font-size: 16px; }

    /* Full-width tap targets */
    .hero-buttons { flex-direction: column; align-items: stretch; width: 100%; gap: 12px; }
    .btn-premium, .btn-secondary-outline { width: 100%; padding: 16px 24px; }
    .hero-trust { gap: 10px 18px; font-size: 12px; }

    /* Widget simulation: full width, comfortable height, never overflows */
    .ws-panel { max-width: 100%; height: min(520px, 72vh); }

    .section-header { margin-bottom: 44px; }
    .section-title { font-size: 28px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .feature-card { padding: 26px; gap: 14px; }
    .feature-title { font-size: 19px; }

    .pricing-card { padding: 32px 24px; gap: 24px; }
    .price-amount { font-size: 40px; }
    .btn-pricing { padding: 15px; }

    .cta-title { font-size: 27px; }
    .cta-desc { font-size: 15px; }
    .cta-card { padding: 44px 22px; }
    .cta-card .btn-premium { width: 100%; }

    .contact-form { grid-template-columns: 1fr; }
    .form-group.full-width, .btn-submit { grid-column: span 1; }
    .contact-card { padding: 30px 20px; }

    .footer { padding: 60px 18px 30px 18px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .footer-bottom { flex-direction: column; gap: 14px; text-align: center; margin-top: 44px; }

    .doc-content { padding: 30px 20px; }
}

/* Very small phones */
@media (max-width: 380px) {
    .logo-text { display: none; }
    .hero-title { font-size: 30px; }
    .ws-slots-grid { grid-template-columns: repeat(2, 1fr); }
}
