/* ==========================================================================
   Spendezy — Clean Modern Light Design System
   ========================================================================== */

:root {
    /* Brand Colors */
    --brand-primary: #5c4ce1;
    --brand-primary-hover: #4839cf;
    --brand-secondary: #4338ca;
    --brand-light: #eef2ff;
    --brand-border: #c7d2fe;
    --brand-gradient: linear-gradient(135deg, #6c5ce7 0%, #4338ca 100%);
    --brand-glow: rgba(92, 76, 225, 0.15);

    /* Neutral Colors (Clean Modern Light) */
    --bg-page: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;
    --bg-subtle: #f1f5f9;
    --border-color: #e2e8f0;
    --border-subtle: #edf2f7;
    --border-hover: #cbd5e1;

    /* Text Hierarchy */
    --text-heading: #0f172a;
    --text-body: #475569;
    --text-muted: #94a3b8;
    --text-light: #64748b;

    /* Status & Accent Colors */
    --accent-green: #10b981;
    --accent-green-bg: #ecfdf5;
    --accent-green-border: #a7f3d0;
    --accent-orange: #f59e0b;
    --accent-orange-bg: #fffbeb;
    --accent-orange-border: #fde68a;
    --accent-red: #ef4444;
    --accent-red-bg: #fef2f2;
    --accent-red-border: #fecaca;
    --accent-cyan: #0284c7;
    --accent-cyan-bg: #f0f9ff;
    --accent-cyan-border: #bae6fd;

    /* Navbar & Elevation */
    --navbar-bg: rgba(255, 255, 255, 0.90);
    --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 12px 30px -4px rgba(15, 23, 42, 0.10);
    --shadow-glow: 0 0 35px var(--brand-glow);

    /* Dimensions & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-pill: 9999px;
    --container-max: 1200px;
    --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    color: var(--brand-secondary);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.25;
}

code, .mono {
    font-family: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------------------------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text-heading);
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    box-shadow: 0 4px 10px rgba(92, 76, 225, 0.25);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--text-heading);
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-download:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-heading);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.08) 0%, transparent 60%);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    background: var(--brand-light);
    border: 1px solid var(--brand-border);
    color: var(--brand-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero-title span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-body);
    max-width: 720px;
    margin: 0 auto 36px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    color: var(--text-heading);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.btn-secondary:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Trust Indicator Pills */
.trust-pills {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-heading);
    box-shadow: var(--shadow-sm);
}

.trust-pill span {
    font-size: 1rem;
}

/* --------------------------------------------------------------------------
   App Tour / Interactive Showcase Stage (Modern Titanium Device & Navigator)
   -------------------------------------------------------------------------- */
.tour-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(92, 76, 225, 0.03) 50%, var(--bg-page) 100%);
    position: relative;
}

.tour-stage {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: start;
    margin-top: 36px;
    margin-bottom: 50px;
}

/* Left Navigator Column */
.tour-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tour-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    background: var(--bg-surface);
    border: 1.5px solid var(--border-color);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.tour-item:hover {
    border-color: var(--brand-border);
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.tour-item.active {
    border-color: var(--brand-primary);
    background: #ffffff;
    box-shadow: 0 10px 30px -5px rgba(92, 76, 225, 0.18);
    transform: translateX(6px);
}

.tour-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-gradient);
}

.tour-item-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid var(--brand-border);
}

.tour-item.active .tour-item-icon {
    background: var(--brand-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(92, 76, 225, 0.35);
}

.tour-item-body {
    flex: 1;
}

.tour-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.tour-item-header h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-heading);
    transition: var(--transition);
}

.tour-item.active .tour-item-header h4 {
    color: var(--brand-primary);
}

.tour-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.tour-item.active .tour-badge {
    background: var(--brand-light);
    color: var(--brand-secondary);
    border: 1px solid var(--brand-border);
}

.tour-item p {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.5;
    margin: 0;
}

/* Right Device Spotlight Column */
.tour-device-stage {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.device-aura {
    position: absolute;
    width: 440px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 76, 225, 0.22) 0%, rgba(92, 76, 225, 0) 70%);
    filter: blur(45px);
    z-index: 0;
    pointer-events: none;
}

/* Titanium iPhone 15 Pro Frame */
.iphone-pro-frame {
    position: relative;
    z-index: 2;
    width: 320px;
    height: 650px;
    border-radius: 52px;
    background: #090d16;
    padding: 12px;
    box-shadow: 0 0 0 2px #334155, 0 0 0 6px #1e293b, 0 30px 70px -15px rgba(15, 23, 42, 0.35);
    transition: transform 0.3s ease;
}

.iphone-pro-frame:hover {
    transform: translateY(-4px);
}

.iphone-dynamic-island {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 26px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    pointer-events: none;
}

.camera-lens {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, #1e1b4b 30%, #030712 70%);
    border: 1.5px solid #1f2937;
}

.iphone-screen-bezel {
    width: 100%;
    height: 100%;
    border-radius: 42px;
    overflow: hidden;
    background: #000;
    position: relative;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    position: relative;
    overflow-y: scroll;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;

    /* Modern Standard CSS Scrollbar (from modern-web-guidance) */
    --scrollbar-thumb: rgba(99, 102, 241, 0.6);
    --scrollbar-track: rgba(15, 23, 42, 0.08);
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    scrollbar-width: thin;
}

.iphone-screen.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto !important;
}

/* Custom WebKit Scrollbar Styling */
.iphone-screen::-webkit-scrollbar {
    width: 6px;
}

.iphone-screen::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    margin: 44px 2px 36px 0;
}

.iphone-screen::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.55);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: background 0.2s ease;
}

.iphone-screen::-webkit-scrollbar-thumb:hover {
    background: #6366f1;
}

/* Legacy fallback for WebKit/Blink browsers if scrollbar-color not supported */
@supports not (scrollbar-color: auto) {
    .iphone-screen::-webkit-scrollbar {
        width: 6px;
    }
    .iphone-screen::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 10px;
    }
    .iphone-screen::-webkit-scrollbar-track {
        background: var(--scrollbar-track);
        border-radius: 10px;
        margin: 44px 2px 36px 0;
    }
}

.tour-screen-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.tour-screen-img.fade-out {
    opacity: 0;
}

.screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.03) 40%, transparent 60%);
    pointer-events: none;
    z-index: 5;
}

/* Scroll Affordance Hint Pill */
.screen-scroll-hint {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 8;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: rgba(15, 23, 42, 0.84);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
    animation: bounceHint 2.4s infinite ease-in-out;
}

.screen-scroll-hint.hidden {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    pointer-events: none;
}

@keyframes bounceHint {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-5px); }
}

/* Floating Contextual Badges */
.floating-badge {
    position: absolute;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -3px rgba(15, 23, 42, 0.12);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-heading);
    transition: var(--transition);
    animation: floatBadge 4s ease-in-out infinite alternate;
}

.badge-top-left {
    top: 50px;
    left: -24px;
}

.badge-bottom-right {
    bottom: 60px;
    right: -20px;
    animation-delay: -2s;
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/* Navigation Arrows & Step Indicator */
.tour-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    z-index: 5;
}

.tour-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-heading);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tour-arrow:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: scale(1.08);
}

.tour-screen-indicator {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.tour-screen-indicator .current-step {
    color: var(--brand-primary);
    font-weight: 800;
    font-size: 1.1rem;
}


/* --------------------------------------------------------------------------
   Section Headers
   -------------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 50px;
}

.section-tag {
    display: inline-block;
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-body);
}

/* --------------------------------------------------------------------------
   Feature Bento Grid
   -------------------------------------------------------------------------- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 100px;
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-border);
    box-shadow: var(--shadow-md);
}

.bento-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.bento-pill-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bento-pill {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   Interactive Budget Health Calculator Widget
   -------------------------------------------------------------------------- */
.calculator-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-page) 0%, rgba(92, 76, 225, 0.04) 50%, var(--bg-page) 100%);
    margin-bottom: 80px;
}

.calculator-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.calculator-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.calc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calc-header label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-heading);
}

.calc-val {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--brand-primary);
    font-size: 1.1rem;
}

.calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--border-color);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(92, 76, 225, 0.4);
    border: 3px solid #ffffff;
    transition: var(--transition);
}

.calc-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.calculator-results {
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-score-box {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.score-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.score-badge.excellent {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid var(--accent-green-border);
}

.score-badge.good {
    background: var(--brand-light);
    color: var(--brand-primary);
    border: 1px solid var(--brand-border);
}

.score-badge.warning {
    background: var(--accent-orange-bg);
    color: var(--accent-orange);
    border: 1px solid var(--accent-orange-border);
}

.score-badge.danger {
    background: var(--accent-red-bg);
    color: var(--accent-red);
    border: 1px solid var(--accent-red-border);
}

.score-number {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-heading);
    line-height: 1;
    margin-bottom: 8px;
}

.score-number small {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.meter-bar {
    width: 100%;
    height: 10px;
    border-radius: var(--radius-pill);
    background: var(--border-color);
    overflow: hidden;
    margin: 16px 0;
}

.meter-fill {
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--brand-primary);
    transition: width 0.4s ease, background-color 0.4s ease;
}

.result-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 24px 0;
}

.metric-item {
    background: var(--bg-surface);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.metric-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
}

.metric-item strong {
    font-size: 1.2rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-heading);
}

.result-summary-msg {
    font-size: 0.9rem;
    color: var(--text-body);
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--brand-primary);
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Download CTA Section
   -------------------------------------------------------------------------- */
.download-section {
    margin-bottom: 100px;
}

.download-banner {
    background: var(--text-heading);
    border-radius: var(--radius-xl);
    padding: 60px 40px;
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.download-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(108, 92, 231, 0.25) 0%, transparent 60%);
    pointer-events: none;
}

.download-banner h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: 16px;
    font-weight: 800;
}

.download-banner p {
    color: #cbd5e1;
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto 36px;
}

.download-banner .btn-download {
    background: #ffffff;
    color: #0f172a !important;
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.download-banner .btn-download:hover {
    background: #f1f5f9;
}

.download-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    color: #94a3b8;
    font-size: 0.85rem;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Legal & Help Center Layouts (privacy.html, terms.html, help.html)
   -------------------------------------------------------------------------- */
.doc-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(circle at 50% 0%, rgba(108, 92, 231, 0.05) 0%, transparent 60%);
    margin-bottom: 40px;
}

.doc-header-inner {
    max-width: 850px;
    margin: 0 auto;
}

.doc-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.doc-meta-badge {
    background: var(--brand-light);
    color: var(--brand-secondary);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-weight: 700;
}

.doc-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.doc-summary-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-primary);
    border-radius: var(--radius-md);
    padding: 24px;
    font-size: 1.05rem;
    color: var(--text-heading);
    line-height: 1.6;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

/* Highlight Grid for Privacy */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.highlight-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.highlight-box span {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 8px;
}

.highlight-box h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-heading);
}

.highlight-box p {
    font-size: 0.85rem;
    color: var(--text-body);
}

/* Two-Column Doc Layout with Sticky Sidebar */
.doc-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 100px;
}

.doc-sidebar {
    position: sticky;
    top: 100px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.doc-sidebar h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.doc-toc {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-toc a {
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 500;
    display: block;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.doc-toc a:hover,
.doc-toc a.active {
    color: var(--brand-primary);
    background: var(--brand-light);
    font-weight: 600;
}

.doc-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.legal-section {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid var(--border-subtle);
}

.legal-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.legal-section h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-heading);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius-pill);
    background: var(--brand-light);
    color: var(--brand-primary);
    font-size: 0.8rem;
    font-weight: 700;
}

.legal-section p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 16px;
    white-space: pre-line;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Help Center & FAQ Styles (help.html)
   -------------------------------------------------------------------------- */
.faq-search-box {
    position: relative;
    max-width: 600px;
    margin: 24px auto 0;
}

.faq-search-input {
    width: 100%;
    padding: 16px 20px 16px 48px;
    font-size: 1rem;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    box-shadow: var(--shadow-md);
    outline: none;
    color: var(--text-heading);
    transition: var(--transition);
}

.faq-search-input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px var(--brand-glow);
}

.faq-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

.faq-filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 40px 0 32px;
}

.faq-filter-btn {
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.faq-filter-btn:hover {
    border-color: var(--brand-border);
    color: var(--brand-primary);
}

.faq-filter-btn.active {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #ffffff;
}

.faq-category-block {
    margin-bottom: 48px;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.faq-category-header h3 {
    font-size: 1.35rem;
    font-weight: 800;
}

.faq-category-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
    background: var(--bg-subtle);
    color: var(--text-muted);
}

.accordion-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.accordion-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.accordion-item:hover {
    border-color: var(--brand-border);
}

.accordion-trigger {
    width: 100%;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-heading);
    gap: 16px;
    transition: var(--transition);
}

.accordion-trigger:hover {
    color: var(--brand-primary);
}

.accordion-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.open .accordion-arrow {
    transform: rotate(180deg);
    color: var(--brand-primary);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
    background: var(--bg-page);
    border-top: 1px solid transparent;
}

.accordion-item.open .accordion-body {
    max-height: 600px;
    border-top-color: var(--border-subtle);
    transition: max-height 0.4s ease-in-out;
}

.accordion-content {
    padding: 20px 24px;
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.65;
    white-space: pre-line;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 36px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-body);
    font-size: 0.9rem;
    margin-top: 12px;
    max-width: 320px;
}

.footer-col h5 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-heading);
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: var(--text-body);
    font-size: 0.9rem;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 16px;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .calculator-card {
        grid-template-columns: 1fr;
    }
    .tour-stage {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tour-device-stage {
        position: relative;
        top: auto;
    }
    .badge-top-left {
        left: 0px;
    }
    .badge-bottom-right {
        right: 0px;
    }
    .doc-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .doc-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
    .doc-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
    .result-metrics {
        grid-template-columns: 1fr;
    }
}
