﻿/*
Theme Name: Timeshare Agent
Theme URI: https://timeshareagent.app
Author: Timeshare Agent
Author URI: https://timeshareagent.app
Description: A secure workspace for individual timeshare sales agents to track sales, commissions, owner consent, and rescission-window follow-up.
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: followup-ai
*/

/* ============================================
   CSS VARIABLES & RESET
   ============================================
   Define the color scheme and base variables
   used throughout the theme. These match the
   brand guidelines for FollowUp AI.
   ============================================ */

:root {
    /* Primary brand colors */
    --color-primary: #6B46C1;
    --color-primary-dark: #553C9A;
    --color-primary-light: #9F7AEA;
    --color-primary-bg: rgba(107, 70, 193, 0.08);

    /* Secondary / dark colors */
    --color-secondary: #1E293B;
    --color-secondary-light: #334155;

    /* Accent / success colors */
    --color-accent: #10B981;
    --color-accent-dark: #059669;
    --color-accent-bg: rgba(16, 185, 129, 0.08);

    /* Background colors */
    --color-bg: #F8FAFC;
    --color-bg-white: #FFFFFF;
    --color-bg-card: #FFFFFF;
    --color-border: #E2E8F0;
    --color-border-light: #F1F5F9;

    /* Text colors */
    --color-text: #1E293B;
    --color-text-light: #64748B;
    --color-text-muted: #94A3B8;

    /* Utility colors */
    --color-warning: #F59E0B;
    --color-danger: #EF4444;
    --color-danger-bg: rgba(239, 68, 68, 0.08);

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, Inconsolata, 'Fira Code', monospace;

    /* Font sizes */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.02);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Container */
    --container-max: 1200px;
    --container-narrow: 800px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-secondary);
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    margin-bottom: var(--space-md);
    color: var(--color-text-light);
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.site-header {
    background: var(--color-bg-white);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-secondary);
}

.site-logo span {
    color: var(--color-primary);
}

.site-logo:hover {
    color: var(--color-secondary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.main-nav a {
    color: var(--color-text-light);
    font-weight: 500;
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: var(--space-sm) 0;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-secondary);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 0.75rem 1.75rem;
    font-size: var(--text-sm);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    font-family: inherit;
    line-height: 1.4;
    white-space: nowrap;
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--color-secondary);
    color: #fff;
    border-color: var(--color-secondary);
}

.btn-secondary:hover {
    background: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-accent {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-accent:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-light);
    border-color: var(--color-border);
}

.btn-ghost:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: var(--text-xs);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: var(--text-base);
}

.btn-full {
    width: 100%;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-light);
}

.card-header {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ============================================
   FORMS & INPUTS
   ============================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.form-label .required {
    color: var(--color-danger);
    margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--color-text);
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-muted);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.form-error {
    font-size: var(--text-xs);
    color: var(--color-danger);
    margin-top: var(--space-xs);
}

/* File upload styled area */
.file-upload-area {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    background: var(--color-bg);
}

.file-upload-area:hover {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

.file-upload-area.has-file {
    border-color: var(--color-accent);
    background: var(--color-accent-bg);
}

.file-upload-icon {
    font-size: var(--text-4xl);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.file-upload-text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.file-upload-text strong {
    color: var(--color-primary);
}

input[type="file"] {
    display: none;
}

/* ============================================
   ALERTS & BADGES
   ============================================ */
.alert {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
}

.alert-success {
    background: var(--color-accent-bg);
    color: var(--color-accent-dark);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background: var(--color-primary-bg);
    color: var(--color-primary-dark);
    border: 1px solid rgba(107, 70, 193, 0.2);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--color-primary);
    color: #fff;
}

.badge-accent {
    background: var(--color-accent);
    color: #fff;
}

.badge-outline {
    background: transparent;
    border: 1px solid currentColor;
}

/* ============================================
   GRID SYSTEM
   ============================================ */
.grid {
    display: grid;
    gap: var(--space-xl);
}

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

/* ============================================
   FLEX UTILITIES
   ============================================ */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ============================================
   SPACING UTILITIES
   ============================================ */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0F172A 100%);
    color: #fff;
    padding: var(--space-4xl) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(107, 70, 193, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

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

.hero h1 {
    color: #fff;
    font-size: var(--text-6xl);
    line-height: 1.05;
    margin-bottom: var(--space-lg);
}

.hero h1 span {
    color: var(--color-primary-light);
}

.hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-note {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.5);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-light);
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--color-primary-bg);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    font-size: var(--text-2xl);
    color: var(--color-primary);
}

.feature-card h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* ============================================
   HOW IT WORKS STEPS
   ============================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-accent) 100%);
    z-index: 0;
}

.step-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--color-bg-white);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--color-primary);
    margin: 0 auto var(--space-lg);
}

.step-card h4 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.step-card p {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ============================================
   PRICING PAGE
   ============================================ */
.pricing-hero {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0F172A 100%);
    color: #fff;
    padding: var(--space-3xl) 0 var(--space-4xl);
    text-align: center;
}

.pricing-hero h1 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.pricing-hero p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-lg);
    max-width: 560px;
    margin: 0 auto;
}

.setup-fee-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.9);
    margin-top: var(--space-lg);
}

/* Pricing grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
    margin-top: calc(var(--space-4xl) * -1);
    position: relative;
    z-index: 2;
    padding-bottom: var(--space-4xl);
}

.pricing-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

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

.pricing-card.featured {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-xl);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-card .badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xs);
    color: var(--color-secondary);
}

.pricing-card .price {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    margin: var(--space-md) 0;
}

.pricing-card .price .currency {
    font-size: var(--text-xl);
    vertical-align: super;
    font-weight: 600;
}

.pricing-card .price .period {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-muted);
}

.pricing-card .setup-fee {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border-light);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: var(--space-sm) 0;
    font-size: var(--text-sm);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.pricing-features li::before {
    content: '\2713';
    color: var(--color-accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* Savings tag */
.savings-tag {
    display: inline-block;
    background: var(--color-accent-bg);
    color: var(--color-accent-dark);
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-top: var(--space-xs);
}

/* Pricing FAQ */
.pricing-faq {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-lg) 0;
}

.faq-question {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-secondary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding-top: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   SIGNUP / ONBOARDING
   ============================================ */
.signup-page {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0F172A 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl);
}

.signup-container {
    width: 100%;
    max-width: 720px;
}

.signup-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.signup-header .site-logo {
    color: #fff;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.signup-header h1 {
    color: #fff;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-sm);
}

.signup-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* Progress steps */
.signup-progress {
    display: flex;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xl);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    flex: 1;
    max-width: 100px;
    position: relative;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 16px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 0;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.completed::after {
    background: var(--color-accent);
}

.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    z-index: 1;
    position: relative;
    transition: all var(--transition-fast);
}

.progress-step.active .step-dot {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.progress-step.completed .step-dot {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
}

.step-label {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #fff;
}

/* Signup form card */
.signup-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-xl);
}

.signup-step-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-xs);
    color: var(--color-secondary);
}

.signup-step-subtitle {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    font-size: var(--text-sm);
}

/* Plan selection inside signup */
.plan-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.plan-option {
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.plan-option:hover {
    border-color: var(--color-primary-light);
}

.plan-option.selected {
    border-color: var(--color-primary);
    background: var(--color-primary-bg);
}

.plan-option input {
    position: absolute;
    opacity: 0;
}

.plan-option-name {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-xs);
}

.plan-option-price {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--color-primary);
}

.plan-option-desc {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Signup form actions */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-page {
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
}

.dashboard-sidebar {
    width: 260px;
    background: var(--color-bg-white);
    border-right: 1px solid var(--color-border);
    padding: var(--space-xl);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 50;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--text-lg);
    font-weight: 800;
    color: var(--color-secondary);
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.sidebar-logo span {
    color: var(--color-primary);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: var(--space-xs);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--color-primary-bg);
    color: var(--color-primary);
}

.sidebar-section-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: var(--space-xl) 0 var(--space-sm);
    padding-left: var(--space-md);
}

.dashboard-main {
    flex: 1;
    margin-left: 260px;
    padding: var(--space-xl) var(--space-2xl);
}

.dashboard-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.dashboard-topbar h1 {
    font-size: var(--text-2xl);
    margin-bottom: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

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

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.stat-value {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
}

.stat-change {
    font-size: var(--text-xs);
    margin-top: var(--space-sm);
    font-weight: 600;
}

.stat-change.positive {
    color: var(--color-accent);
}

.stat-change.negative {
    color: var(--color-danger);
}

/* Dashboard sections */
.dashboard-section {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    overflow: hidden;
}

.section-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg) var(--space-xl);
    border-bottom: 1px solid var(--color-border-light);
}

.section-toolbar h3 {
    font-size: var(--text-lg);
    margin-bottom: 0;
}

.section-content {
    padding: var(--space-xl);
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    font-size: var(--text-sm);
}

.data-table th {
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: var(--text-xs);
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    border-bottom: 1px solid var(--color-border-light);
    color: var(--color-text-light);
    vertical-align: middle;
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background: var(--color-bg);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: var(--space-sm);
}

.status-active { background: var(--color-accent); }
.status-pending { background: var(--color-warning); }
.status-inactive { background: var(--color-text-muted); }

/* Empty state */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
}

.empty-state-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-md);
    opacity: 0.3;
}

.empty-state h4 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.empty-state p {
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

/* ============================================
   MODAL / OVERLAY
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    border-bottom: 1px solid var(--color-border);
}

.modal-header h3 {
    margin-bottom: 0;
    font-size: var(--text-xl);
}

.modal-close {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--color-text-muted);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-bg);
    color: var(--color-text);
}

.modal-body {
    padding: var(--space-xl);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.testimonial-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.testimonial-stars {
    color: var(--color-warning);
    font-size: var(--text-sm);
    margin-bottom: var(--space-md);
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    font-size: var(--text-sm);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--color-primary);
    font-size: var(--text-sm);
}

.testimonial-author-info strong {
    display: block;
    font-size: var(--text-sm);
    color: var(--color-secondary);
}

.testimonial-author-info span {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: var(--space-4xl) 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-lg);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-secondary);
    color: rgba(255, 255, 255, 0.6);
    padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand .site-logo {
    color: #fff;
    margin-bottom: var(--space-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    margin-bottom: var(--space-lg);
}

.footer-column h4 {
    color: #fff;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--space-sm);
}

.footer-column a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.35);
}

/* ============================================
   CONTENT PAGES (About, Contact, Terms, etc.)
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #0F172A 100%);
    color: #fff;
    padding: var(--space-3xl) 0;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    margin-bottom: var(--space-sm);
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
}

.content-page {
    padding: var(--space-4xl) 0;
}

.content-page .container-narrow h2 {
    margin-top: var(--space-2xl);
}

.content-page .container-narrow h2:first-child {
    margin-top: 0;
}

.content-page .container-narrow ul,
.content-page .container-narrow ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.content-page .container-narrow li {
    margin-bottom: var(--space-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Contact page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.contact-info h3 {
    margin-bottom: var(--space-md);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: var(--text-lg);
    flex-shrink: 0;
}

.contact-info-item strong {
    display: block;
    color: var(--color-secondary);
    margin-bottom: 2px;
}

.contact-info-item span {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */
.toast-container {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    animation: toastSlideIn 300ms ease;
    max-width: 400px;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast-success {
    background: var(--color-accent);
    color: #fff;
}

.toast-error {
    background: var(--color-danger);
    color: #fff;
}

.toast-info {
    background: var(--color-primary);
    color: #fff;
}

/* ============================================
   SPINNER / LOADING
   ============================================ */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 600ms linear infinite;
}

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

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hidden {
    display: none !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================
   Mobile-first breakpoints at 768px and 1024px
   ============================================ */

/* Tablet & below */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

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

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

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

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

/* Mobile */
@media (max-width: 768px) {
    :root {
        --text-5xl: 2rem;
        --text-4xl: 1.75rem;
        --text-6xl: 2.5rem;
        --space-4xl: 3rem;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg-white);
        flex-direction: column;
        padding: var(--space-lg);
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: var(--space-md);
        border-bottom: 1px solid var(--color-border-light);
    }

    .mobile-menu-toggle {
        display: block;
    }

    .header-actions {
        display: none;
    }

    .hero {
        padding: var(--space-3xl) 0;
    }

    .hero h1 {
        font-size: var(--text-4xl);
    }

    .hero-actions {
        flex-direction: column;
    }

    .features-grid,
    .steps-grid,
    .testimonials-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .steps-grid::before {
        display: none;
    }

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

    .plan-options {
        grid-template-columns: 1fr;
    }

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

    .dashboard-sidebar {
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-main {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-sm);
        text-align: center;
    }

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

    .signup-page {
        padding: var(--space-md);
    }

    .signup-card {
        padding: var(--space-lg);
    }

    .form-actions {
        flex-direction: column;
        gap: var(--space-md);
    }

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

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

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-actions,
    .dashboard-sidebar,
    .btn {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .card {
        border: 1px solid #ccc;
        box-shadow: none;
    }
}

/* Timeshare Agent application surfaces */
.dashboard-nav { display:flex; flex-wrap:wrap; gap:.5rem; margin:1.25rem 0 2rem; border-bottom:1px solid var(--color-border-light); }
.dashboard-nav button { appearance:none; border:0; background:transparent; color:var(--color-secondary); padding:.8rem 1rem; font:inherit; font-weight:600; cursor:pointer; border-bottom:3px solid transparent; }
.dashboard-nav button.active { color:var(--color-primary); border-bottom-color:var(--color-primary); }
.dashboard-section { background:#fff; border:1px solid var(--color-border-light); border-radius:12px; padding:1.5rem; margin-bottom:1.5rem; }
.dashboard-section.hidden { display:none; }
.dashboard-section__header { display:flex; justify-content:space-between; gap:1rem; margin-bottom:1.25rem; }
.dashboard-section__header h2 { margin:0 0 .25rem; font-size:1.25rem; }
.dashboard-section__header p, .form-hint { color:var(--color-secondary-light); margin:0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1.5rem; }
.form-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; align-items:end; }
.form-grid label { display:flex; flex-direction:column; gap:.4rem; color:var(--color-secondary); font-weight:600; }
.form-grid input, .form-grid select { min-height:42px; border:1px solid var(--color-border-light); border-radius:6px; padding:.65rem; font:inherit; }
.form-grid .check-label { grid-column:1/-1; flex-direction:row; align-items:center; font-weight:400; }
.form-grid .check-label input { min-height:0; }
.form-grid .form-hint { grid-column:1/-1; font-size:.9rem; }
.form-actions { display:flex; align-items:center; gap:.75rem; }
.table-wrap { overflow-x:auto; }
.task-list .data-table, .table-wrap .data-table { width:100%; border-collapse:collapse; }
.data-table th, .data-table td { padding:.8rem; text-align:left; vertical-align:top; border-bottom:1px solid var(--color-border-light); }
.data-table th { color:var(--color-secondary-light); font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
.status-pill { display:inline-block; border-radius:999px; background:var(--color-primary-bg); color:var(--color-primary-dark); padding:.25rem .55rem; font-size:.8rem; text-transform:capitalize; }
.btn-small { padding:.4rem .65rem; font-size:.85rem; }
.agent-toast { position:fixed; right:1rem; bottom:1rem; z-index:1000; max-width:380px; padding:1rem; background:#065f46; color:#fff; border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.18); }
.agent-toast.error, .form-notice.error { background:#b91c1c; color:#fff; }
.form-notice { margin:1rem 0; padding:.8rem 1rem; border-radius:6px; background:var(--color-accent-bg); color:var(--color-secondary); }
.signup-shell { max-width:760px; margin:4rem auto; padding:2rem; background:#fff; border:1px solid var(--color-border-light); border-radius:14px; }
.signup-shell .form-grid { margin-top:1.5rem; }
@media (max-width: 800px) { .stats-grid, .form-grid { grid-template-columns:1fr; } .dashboard-section { padding:1rem; } }

/* Public product demo. Demo data is intentionally static and never uses account records. */
.demo-hero { padding:4.5rem 0 2rem; background:linear-gradient(135deg,#f7f4ff 0%,#fff 62%,#effbf7 100%); }
.demo-hero__grid { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr); gap:2rem; align-items:center; }
.demo-kicker { display:inline-flex; align-items:center; gap:.45rem; padding:.4rem .7rem; border-radius:999px; background:var(--color-primary-bg); color:var(--color-primary-dark); font-weight:700; font-size:.85rem; margin-bottom:1rem; }
.demo-kicker::before { content:''; width:.55rem; height:.55rem; background:var(--color-accent); border-radius:50%; }
.demo-hero h1 { font-size:clamp(2.25rem,5vw,4rem); margin-bottom:.9rem; }
.demo-hero p { font-size:1.12rem; max-width:42rem; }
.demo-hero__actions { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.5rem; }
.demo-note { font-size:.88rem; margin-top:1rem; }
.demo-preview-card { background:#1e293b; color:#fff; border-radius:18px; padding:1.35rem; box-shadow:var(--shadow-xl); }
.demo-preview-card p, .demo-preview-card h2 { color:#fff; }
.demo-preview-card h2 { font-size:1.05rem; margin:0; }
.demo-preview-row { display:flex; justify-content:space-between; gap:.5rem; padding:.8rem 0; border-bottom:1px solid rgba(255,255,255,.14); }
.demo-preview-row:last-child { border-bottom:0; }
.demo-preview-row span { color:#cbd5e1; font-size:.9rem; }
.demo-preview-row strong { color:#fff; }
.demo-preview-pill { color:#bbf7d0; background:rgba(16,185,129,.17); border-radius:999px; padding:.2rem .5rem; font-size:.78rem; font-weight:700; white-space:nowrap; }
.demo-workflow { padding:4rem 0; }
.demo-workflow__heading { max-width:46rem; margin-bottom:2rem; }
.demo-steps { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; counter-reset:demo; }
.demo-step { position:relative; background:#fff; border:1px solid var(--color-border); border-radius:14px; padding:1.5rem; }
.demo-step::before { counter-increment:demo; content:counter(demo); display:grid; place-items:center; width:2rem; height:2rem; margin-bottom:1rem; border-radius:50%; background:var(--color-primary); color:#fff; font-weight:800; }
.demo-step h3 { font-size:1.1rem; margin-bottom:.5rem; }
.demo-step p { margin:0; font-size:.95rem; }
.demo-board-wrap { padding:0 0 4.5rem; }
.demo-board { background:#fff; border:1px solid var(--color-border); border-radius:18px; box-shadow:var(--shadow-lg); overflow:hidden; }
.demo-board__top { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:1.3rem 1.5rem; border-bottom:1px solid var(--color-border); }
.demo-board__top h2 { margin:0; font-size:1.25rem; }
.demo-badge { display:inline-block; padding:.28rem .6rem; border-radius:999px; background:#fff7ed; color:#9a3412; font-size:.8rem; font-weight:700; }
.demo-tabs { display:flex; gap:.3rem; padding:1rem 1.5rem 0; overflow-x:auto; border-bottom:1px solid var(--color-border-light); }
.demo-tabs button { appearance:none; background:none; border:0; border-bottom:3px solid transparent; padding:.7rem .8rem; color:var(--color-secondary-light); font:inherit; font-weight:700; cursor:pointer; white-space:nowrap; }
.demo-tabs button[aria-selected="true"] { border-bottom-color:var(--color-primary); color:var(--color-primary); }
.demo-panel { padding:1.5rem; }
.demo-panel[hidden] { display:none; }
.demo-stat-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; margin-bottom:1.5rem; }
.demo-stat { padding:1rem; border:1px solid var(--color-border-light); border-radius:10px; background:#fbfdff; }
.demo-stat span { display:block; color:var(--color-text-light); font-size:.82rem; font-weight:600; }
.demo-stat strong { display:block; margin-top:.3rem; color:var(--color-secondary); font-size:1.5rem; }
.demo-panel h3 { font-size:1.06rem; margin-bottom:.6rem; }
.demo-list { list-style:none; display:grid; gap:.7rem; }
.demo-list li { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; padding:.85rem 1rem; border:1px solid var(--color-border-light); border-radius:8px; }
.demo-list p { margin:.15rem 0 0; font-size:.9rem; }
.demo-status { flex:0 0 auto; display:inline-block; padding:.26rem .55rem; border-radius:999px; font-size:.76rem; font-weight:800; background:var(--color-primary-bg); color:var(--color-primary-dark); }
.demo-status--ready { background:var(--color-accent-bg); color:var(--color-accent-dark); }
.demo-status--warning { background:#fff7ed; color:#9a3412; }
.demo-table { width:100%; border-collapse:collapse; }
.demo-table th, .demo-table td { padding:.75rem; text-align:left; border-bottom:1px solid var(--color-border-light); }
.demo-table th { color:var(--color-text-light); font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; }
.demo-callout { padding:1rem; border-left:4px solid var(--color-primary); border-radius:0 8px 8px 0; background:#f7f4ff; color:var(--color-secondary); }
.demo-cta { margin:0 auto 4.5rem; max-width:860px; padding:2.3rem; border-radius:18px; text-align:center; color:#fff; background:linear-gradient(135deg,#553c9a,#6b46c1); }
.demo-cta h2, .demo-cta p { color:#fff; }
.demo-cta p { opacity:.9; }
.demo-cta .btn { margin-top:.5rem; color:var(--color-primary-dark); background:#fff; }
@media (max-width:800px) { .demo-hero { padding-top:3rem; } .demo-hero__grid, .demo-steps { grid-template-columns:1fr; } .demo-stat-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .demo-board__top { align-items:flex-start; flex-direction:column; } .demo-table { min-width:560px; } .demo-panel { overflow-x:auto; } }

/* Stand-alone interactive workspace demo. Data remains only in the visitor's browser session. */
.demo-app { min-height:calc(100vh - 72px); background:#f8fafc; }
.demo-app__banner { padding:.65rem 1.25rem; text-align:center; font-size:.9rem; font-weight:700; color:#4c1d95; background:#ede9fe; }
.demo-app__layout { display:grid; grid-template-columns:230px minmax(0,1fr); max-width:1440px; margin:0 auto; }
.demo-app__sidebar { min-height:calc(100vh - 112px); padding:1.25rem; background:#172033; color:#cbd5e1; }
.demo-app__sidebar h2 { color:#fff; font-size:1rem; margin:0 0 .25rem; }
.demo-app__sidebar p { color:#94a3b8; font-size:.85rem; }
.demo-app__nav { display:grid; gap:.35rem; margin-top:1.5rem; }
.demo-app__nav button { display:flex; align-items:center; width:100%; border:0; border-radius:7px; padding:.75rem .8rem; background:transparent; color:#cbd5e1; font:inherit; text-align:left; cursor:pointer; }
.demo-app__nav button:hover, .demo-app__nav button[aria-selected="true"] { color:#fff; background:#334155; }
.demo-app__main { padding:2rem; max-width:1120px; width:100%; }
.demo-app__top { display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1.75rem; }
.demo-app__top h1 { margin-bottom:.25rem; font-size:1.8rem; }
.demo-app__top p { margin:0; }
.demo-app__panel { background:#fff; border:1px solid var(--color-border); border-radius:12px; padding:1.4rem; margin-bottom:1.25rem; box-shadow:var(--shadow-sm); }
.demo-app__panel[hidden] { display:none; }
.demo-app__panel h2 { font-size:1.2rem; margin-bottom:.35rem; }
.demo-app__panel > p { margin-bottom:1.25rem; }
.demo-app__split { display:grid; grid-template-columns:minmax(0,1fr) minmax(280px,.8fr); gap:1.25rem; }
.demo-app__form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.demo-app__form label { display:flex; flex-direction:column; gap:.35rem; color:var(--color-secondary); font-size:.9rem; font-weight:700; }
.demo-app__form input, .demo-app__form select { min-height:42px; padding:.6rem; border:1px solid var(--color-border); border-radius:6px; font:inherit; }
.demo-app__form .demo-app__check { grid-column:1/-1; flex-direction:row; align-items:center; font-weight:500; }
.demo-app__form .demo-app__check input { min-height:auto; }
.demo-app__form button { width:max-content; }
.demo-app__tips { padding:1.2rem; background:#f7f4ff; border-radius:10px; }
.demo-app__tips h3 { font-size:1rem; }
.demo-app__tips ul { padding-left:1.1rem; color:var(--color-text-light); font-size:.9rem; }
.demo-app__tips li + li { margin-top:.55rem; }
.demo-app__activity { display:grid; gap:.75rem; }
.demo-app__activity li { display:flex; justify-content:space-between; gap:1rem; list-style:none; padding:.85rem 0; border-bottom:1px solid var(--color-border-light); }
.demo-app__activity li:last-child { border-bottom:0; }
.demo-app__activity p { margin:.15rem 0 0; font-size:.86rem; }
.demo-app__flash { margin:0 0 1rem; padding:.75rem 1rem; border-radius:8px; background:#d1fae5; color:#065f46; font-weight:600; }
.demo-app__empty { padding:1.4rem; text-align:center; border:1px dashed var(--color-border); border-radius:8px; color:var(--color-text-light); }
.demo-app .table-wrap { margin-top:1rem; }
.demo-app .data-table button { margin:0; }
@media (max-width:800px) { .demo-app__layout { grid-template-columns:1fr; } .demo-app__sidebar { min-height:auto; padding:.9rem 1rem; } .demo-app__nav { display:flex; overflow:auto; margin-top:.75rem; } .demo-app__nav button { width:auto; white-space:nowrap; } .demo-app__main { padding:1.2rem; } .demo-app__top { flex-direction:column; } .demo-app__split, .demo-app__form { grid-template-columns:1fr; } }

