:root {
    --bg-light: #f8fafc;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.8);
    --primary-red: #f43f5e;
    --primary-red-glow: rgba(244, 63, 94, 0.25);
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --card-bg: rgba(255, 255, 255, 0.95);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 50px -10px rgba(244, 63, 94, 0.15);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, .font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background-color: #f8fafc;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: drift 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes drift {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-50px) scale(1.1); }
}

.glow-1 {
    top: -10%; right: -5%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
}

.glow-2 {
    bottom: -10%; left: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
}

.glow-3 {
    top: 40%; left: 30%; width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
}

/* Container */
.proposal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem 8rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

/* Glass Panel Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

/* Typography & Badges */
.badge {
    display: inline-block;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    background: rgba(234, 59, 59, 0.1);
    color: var(--primary-red);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(234, 59, 59, 0.2);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    color: #0f172a;
}

.eyebrow {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Hero Section */
.hero-section {
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.executive-summary h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.feature-list {
    list-style: none;
    margin: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    transition: var(--transition);
    font-weight: 500;
}

.feature-list li:hover {
    transform: translateY(-4px);
    border-color: rgba(234, 59, 59, 0.3);
    box-shadow: 0 8px 20px rgba(234, 59, 59, 0.08);
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin-top: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid var(--primary-red);
    line-height: 1.5;
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Vision Section */
.vision-section {
    padding: 4rem;
}

.vision-section h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.card:hover {
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
}

.card h3 {
    margin-bottom: 1.25rem;
    color: var(--primary-red);
    font-size: 1.35rem;
    font-weight: 700;
}

.card ul {
    list-style-position: inside;
    color: var(--text-muted);
}
.card ul li { margin-bottom: 0.75rem; font-weight: 500; }

/* Competitor Section */
.competitor-section {
    padding: 4rem;
}
.competitor-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.table-container {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.competitor-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.competitor-table th, .competitor-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.competitor-table th {
    background-color: #f8fafc;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e293b;
}

.competitor-table td {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.competitor-table td strong {
    color: #0f172a;
}

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

.competitor-table th.our-platform, .competitor-table td.our-platform {
    background-color: rgba(234, 59, 59, 0.03);
    color: var(--primary-red);
    font-weight: 600;
    border-left: 2px solid rgba(234, 59, 59, 0.1);
    border-right: 2px solid rgba(234, 59, 59, 0.1);
}
.competitor-table th.our-platform {
    background-color: rgba(234, 59, 59, 0.08);
}


/* Feature Selection Section */
.feature-selection-section {
    padding: 1rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #0f172a;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.phase-block {
    margin-bottom: 4.5rem;
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
}

.phase-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
}

.phase-indicator {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    border: 2px solid #fff;
}

.phase-header h3 {
    font-size: 2rem;
    font-weight: 700;
}

.phase-goal {
    color: var(--text-muted);
    font-style: italic;
    margin-left: auto;
    font-weight: 500;
    background: #f1f5f9;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* Interactive Feature Card */
.feature-card {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    padding: 1.75rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    user-select: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(12px);
}

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

.feature-card.selected {
    border-color: var(--primary-red);
    background: rgba(234, 59, 59, 0.02);
    box-shadow: 0 0 0 1px var(--primary-red), 0 8px 20px rgba(234, 59, 59, 0.08);
}

.feature-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.feature-title {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f172a;
    margin-right: 1rem;
}

.checkbox {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid #cbd5e1;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.feature-card.selected .checkbox {
    background-color: var(--primary-red);
    border-color: var(--primary-red);
}

.checkbox svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: var(--transition);
}

.feature-card.selected .checkbox svg {
    opacity: 1;
    transform: scale(1);
}

.feature-details {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: auto;
}
.feature-details ul {
    list-style-position: outside;
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}
.feature-details ul li {
    margin-bottom: 0.4rem;
}

/* Stepper UI Navigation */
.stepper-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border-top: none;
}

.stepper-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 2rem;
    margin: 0 auto;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.5;
    transition: var(--transition);
}

.step-indicator.active {
    opacity: 1;
}

.step-indicator.active .step-circle {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-purple) 100%);
    color: #fff;
    border-color: transparent;
}

.step-indicator.completed .step-circle {
    background: #10b981;
    color: #fff;
    border-color: transparent;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.step-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #e2e8f0;
    max-width: 60px;
}

/* Step Content Sections */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.step-content.active {
    display: block;
}

/* Nested Phase UI */
.phase-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.phase-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 0.5rem;
    border-radius: 999px;
    gap: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.phase-tab {
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.phase-tab:hover {
    color: var(--text-main);
}

.phase-tab.active {
    background: #ffffff;
    color: var(--primary-red);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.phase-view {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.phase-view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Step Navigation Actions */
.step-actions {
    display: flex;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px dashed #cbd5e1;
}

.step-actions.right {
    justify-content: flex-end;
}

.step-actions.split {
    justify-content: space-between;
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid #cbd5e1;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
}

.secondary-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
}

/* Floating Summary */
.floating-summary {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(120px) scale(0.95);
    padding: 1.25rem 2.5rem;
    border-radius: 999px;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    border: 1px solid rgba(234, 59, 59, 0.2);
    background: #ffffff;
}

.floating-summary.visible {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.summary-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.summary-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.stat-divider {
    width: 2px;
    height: 35px;
    background: #e2e8f0;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 700;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-purple) 100%);
    color: #fff;
    border: none;
    padding: 0.85rem 2.2rem;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(244, 63, 94, 0.4);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal {
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    padding: 3rem;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

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

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    color: #0f172a;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}

.close-modal:hover {
    background: #e2e8f0;
    transform: scale(1.1);
}

.modal h2 {
    margin-bottom: 2rem;
    color: #0f172a;
    font-size: 2.2rem;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 1.5rem;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}
.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}
.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.modal-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
}

.selected-phase-group {
    margin-bottom: 2rem;
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid #e2e8f0;
}
.selected-phase-group h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}
.selected-item-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.selected-item-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.selected-item-list li::before {
    content: '→';
    color: var(--primary-red);
    font-weight: bold;
}
.selected-item-metrics {
    margin-left: auto;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
}
.selected-item-metrics .time { color: var(--accent-blue); }
.selected-item-metrics .cost { color: var(--primary-red); }

.modal-grand-totals {
    background: rgba(234, 59, 59, 0.05);
    border: 1px solid rgba(234, 59, 59, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
}

.modal-grand-totals h3 {
    color: #0f172a;
    font-size: 1.25rem;
}
.modal-totals-numbers {
    display: flex;
    gap: 2rem;
    font-size: 1.5rem;
    font-weight: 800;
}
.modal-totals-numbers .total-time { color: var(--accent-blue); }
.modal-totals-numbers .total-cost { color: var(--primary-red); }

/* Download Proposal Section */
.client-details-form {
    background: #f8fafc;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.proposal-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    outline: none;
    transition: all 0.3s ease;
}

.proposal-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(234, 59, 59, 0.1);
}

.generate-btn {
    width: 100%;
    justify-content: center;
    font-size: 1.1rem;
    padding: 1rem;
}

/* Card Metrics */
.card-metrics {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #e2e8f0;
}
.metric {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-red);
    background: rgba(234, 59, 59, 0.08);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}
.metric.time { color: var(--accent-blue); background: rgba(37, 99, 235, 0.08); }

/* Demo Modal Metrics */
.demo-metrics {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}
.demo-metric {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
}
.demo-metric.cost { color: var(--primary-red); background: rgba(234, 59, 59, 0.08); }
.demo-metric.time { color: var(--accent-blue); background: rgba(37, 99, 235, 0.08); }

/* Demo Modal Overlay & Split */
.demo-modal-content {
    max-width: 1000px;
    padding: 0;
    overflow: hidden;
    background: #ffffff;
}

.demo-split {
    display: flex;
    width: 100%;
}

.demo-image-container {
    width: 50%;
    background: #f1f5f9;
    border-right: 1px solid #e2e8f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-image-container img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
}

.demo-text-container {
    width: 50%;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-height: 80vh;
    overflow-y: auto;
}

.demo-text-container::-webkit-scrollbar {
    width: 6px;
}
.demo-text-container::-webkit-scrollbar-track {
    background: #f1f5f9;
}
.demo-text-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.text-content p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.text-content strong {
    color: var(--text-main);
}
.text-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.text-content li {
    margin-bottom: 0.5rem;
}

.preview-btn {
    margin-top: 1.25rem;
    width: 100%;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: var(--transition);
}

.preview-btn:hover {
    background: #e2e8f0;
    color: var(--primary-red);
}

.feature-card.selected .preview-btn {
    background: rgba(234, 59, 59, 0.1);
    color: var(--primary-red);
    border-color: rgba(234, 59, 59, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .proposal-container {
        padding: 1.5rem 1rem 8rem;
    }
    .hero-section, .vision-section, .competitor-section, .phase-block {
        padding: 2rem 1.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .floating-summary {
        width: 95%;
        padding: 1.2rem;
        flex-direction: column;
        gap: 1.5rem;
    }
    .summary-content {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .primary-btn {
        width: 100%;
        text-align: center;
    }
    .phase-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .phase-goal {
        margin-left: 0;
    }
    .table-container {
        overflow-x: auto;
    }

    .demo-split {
        flex-direction: column;
    }
    .demo-image-container, .demo-text-container {
        width: 100%;
    }
    .demo-image-container {
        height: 250px;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    .demo-text-container {
        padding: 2rem 1.5rem;
        max-height: none;
        overflow-y: visible;
    }
    
    /* New Mobile Optimizations for Stepper */
    .stepper-progress {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    .step-indicator {
        flex-direction: column;
        gap: 0.25rem;
    }
    .step-label {
        font-size: 0.75rem;
        text-align: center;
    }
    .step-line {
        max-width: 30px;
    }
    
    /* Phase Tabs (Scrollable Mobile) */
    .phase-tabs-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }
    .phase-tabs {
        white-space: nowrap;
        flex-shrink: 0;
    }
    .phase-tab {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Action Buttons Stacking */
    .step-actions.split {
        flex-direction: column-reverse; /* Prev button goes below Next */
        gap: 1rem;
    }
    .step-actions .secondary-btn, .step-actions .primary-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Feature Cards Adjustments */
    .feature-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 0.75rem;
    }
    .checkbox {
        align-self: flex-end;
    }
    .card-metrics {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Modal / Final Review Mobile */
    .modal-totals-numbers {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    .selected-item-metrics {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
    }
}
