@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    color-scheme: light;
    /* LIGHT THEME (Default) */
    --bg-main: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #fafafa;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;

    --primary: #10b981;
    /* Emerald Green */
    --primary-glow: rgba(16, 185, 129, 0.06);
    --primary-light: #059669;
    /* Darker green for contrast in light mode */

    --secondary: #0891b2;
    /* Muted Cyan */
    --secondary-glow: rgba(8, 145, 178, 0.06);

    --accent: #7c3aed;
    /* Violet */
    --accent-glow: rgba(124, 58, 237, 0.06);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --success: #10b981;
    --warning: #d97706;
    --danger: #dc2626;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px 0 rgba(0, 0, 0, 0.03);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
    --shadow-glow: 0 4px 20px 0 rgba(16, 185, 129, 0.06);
}

html[data-theme="dark"] {
    color-scheme: dark;
    /* DARK THEME */
    --bg-main: #090d16;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-card-hover: rgba(23, 32, 53, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    --primary: #10b981;
    --primary-glow: rgba(16, 185, 129, 0.15);
    --primary-light: #34d399;

    --secondary: #06b6d4;
    --secondary-glow: rgba(6, 182, 212, 0.15);

    --accent: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.15);

    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px 0 rgba(16, 185, 129, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.02) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.02) 0%, transparent 40%);
    background-attachment: fixed;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

html[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 10% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Page Layout */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Sticky Top Navigation Header */
.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .top-nav {
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(16px);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    cursor: pointer;
}

.brand-logo-img {
    height: 50px;
    width: auto;
    display: block;
    transition: transform 0.2s ease;
}

.nav-brand:hover .brand-logo-img {
    transform: scale(1.03);
}

.nav-brand .dark-logo {
    display: none;
}

.nav-brand .light-logo {
    display: block;
}

html[data-theme="dark"] .nav-brand .light-logo {
    display: none;
}

html[data-theme="dark"] .nav-brand .dark-logo {
    display: block;
}



.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
}

.nav-item a {
    display: block;
    padding: 0.5rem 0.85rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-item a:hover {
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
}

html[data-theme="dark"] .nav-item a:hover {
    background: rgba(255, 255, 255, 0.04);
}

.nav-item.active a {
    background: var(--primary-glow);
    color: var(--primary-light);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

html[data-theme="dark"] .theme-toggle-btn {
    background: rgba(255, 255, 255, 0.03);
}

.theme-toggle-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    background: var(--primary-glow);
}

/* Sun/Moon control */
html[data-theme="light"] .moon-icon {
    display: block;
}

html[data-theme="light"] .sun-icon {
    display: none;
}

html[data-theme="dark"] .moon-icon {
    display: none;
}

html[data-theme="dark"] .sun-icon {
    display: block;
}

/* Mobile Toggle Hamburger Icon */
.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

html[data-theme="dark"] .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.03);
}

.mobile-menu-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

/* Main Content Area */
.main-content {
    flex-grow: 1;
    padding: 2.5rem 2rem;
    min-height: 100vh;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* App Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.header-title h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.75px;
    margin-bottom: 0.25rem;
}

.header-title p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Dashboard Home */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 255px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: inherit;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--card-color-glow, rgba(99, 102, 241, 0.08)) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-color-border, var(--primary));
    background: var(--bg-card);
    box-shadow: var(--shadow-lg), var(--card-color-shadow, var(--shadow-glow));
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card-content {
    position: relative;
    z-index: 1;
}

.tool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--card-color-icon-bg, rgba(99, 102, 241, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--card-color, var(--primary));
    transition: all 0.3s ease;
}

html[data-theme="dark"] .tool-card-icon {
    background: var(--card-color-icon-bg, rgba(255, 255, 255, 0.08));
}

.tool-card:hover .tool-card-icon {
    background: var(--card-color, var(--primary));
    color: #fff;
    box-shadow: 0 4px 14px var(--card-color, var(--primary));
    transform: scale(1.05);
}

.tool-card-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.tool-badge {
    background: var(--primary-glow);
    color: var(--primary-light);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.tool-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.25px;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.tool-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--card-color, var(--primary));
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 1.5rem;
}

.tool-card-footer svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-fast);
}

.tool-card:hover .tool-card-footer svg {
    transform: translateX(4px);
}

/* Calculator View Layout */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

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

.back-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.calc-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Input Panel */
.input-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.panel-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Inputs & Form Controls */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 10;
}

.input-suffix {
    position: absolute;
    right: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 10;
}

.form-input {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-fast);
    position: relative;
}

html[data-theme="dark"] .form-input {
    background: rgba(255, 255, 255, 0.03);
}

select option {
    background-color: #ffffff;
    color: #0f172a;
}

html[data-theme="dark"] select option {
    background-color: #0f172a;
    color: #f3f4f6;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

html[data-theme="dark"] .form-input:focus {
    background: rgba(255, 255, 255, 0.05);
}

.form-input.has-prefix {
    padding-left: 2rem;
}

/* FIX INPUT OVERLAP: Apply generous right padding to inputs having suffix */
.form-input.has-suffix {
    padding-right: 5rem;
    /* Larger right padding to ensure typing doesn't overlap text like "/ month" or "Days / yr" */
}

.form-input.has-prefix.has-suffix {
    padding-left: 2rem;
    padding-right: 5rem;
}

/* Segmented Control / Toggle Group */
.toggle-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-color);
    padding: 3px;
    border-radius: 10px;
    gap: 2px;
}

html[data-theme="dark"] .toggle-group {
    background: rgba(255, 255, 255, 0.03);
}

.toggle-group button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-group button:hover {
    color: var(--text-primary);
}

.toggle-group button.active {
    background: #ffffff;
    color: var(--primary-light);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .toggle-group button.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary-light);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Slider Controls */
.slider-control {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.slider-val {
    font-weight: 700;
    color: var(--primary-light);
    font-size: 0.95rem;
}

.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border-color);
    outline: none;
    margin: 10px 0;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    transition: transform var(--transition-fast);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.form-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Results Panel */
.results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

.hero-metric {
    text-align: center;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.03), rgba(6, 182, 212, 0.03));
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    padding: 1.75rem;
}

html[data-theme="dark"] .hero-metric {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(6, 182, 212, 0.05));
    border-color: rgba(16, 185, 129, 0.15);
}

.hero-metric label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-metric .value {
    font-size: 2.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 0.25rem;
    letter-spacing: -1px;
}

html[data-theme="dark"] .hero-metric .value {
    background: linear-gradient(135deg, #ffffff, var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-metric .sub-value {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Output Data Table */
.data-table-container {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th {
    background: rgba(0, 0, 0, 0.01);
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] .data-table th {
    background: rgba(255, 255, 255, 0.02);
}

.data-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

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

.data-table td.label-col {
    color: var(--text-secondary);
    font-weight: 500;
}

.data-table td.val-col {
    font-weight: 700;
    text-align: right;
}

.data-table td.negative-val {
    color: var(--danger);
}

.data-table tr.total-row {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="dark"] .data-table tr.total-row {
    background: rgba(255, 255, 255, 0.03);
}

.data-table tr.total-row td {
    font-weight: 800;
    color: var(--primary-light);
    border-top: 1px solid var(--border-color);
}

/* Vendor Chain Diagram */
.chain-visualization {
    margin-top: 1rem;
}

.chain-flow {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.chain-flow::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.chain-node {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 10px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

html[data-theme="dark"] .chain-node {
    background: rgba(255, 255, 255, 0.02);
}

.chain-node::before {
    content: '';
    position: absolute;
    left: -13px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary);
}

.chain-node.secondary-node::before {
    background: var(--secondary);
    box-shadow: 0 0 6px var(--secondary);
}

.chain-node.candidate-node {
    background: var(--primary-glow);
    border-color: rgba(16, 185, 129, 0.2);
}

.chain-node.candidate-node::before {
    background: var(--primary-light);
    box-shadow: 0 0 8px var(--primary-light);
}

.node-title {
    font-size: 0.85rem;
    font-weight: 600;
}

.node-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.node-val {
    font-weight: 700;
    font-size: 0.95rem;
}

.node-cut {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.03);
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

html[data-theme="dark"] .node-cut {
    background: rgba(255, 255, 255, 0.05);
}

.compare-inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* W2 vs 1099 Side-by-Side Comparison Panels */
.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.comp-column {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

html[data-theme="dark"] .comp-column {
    background: rgba(255, 255, 255, 0.015);
}

.comp-column.better-offer {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.01) 0%, rgba(0, 0, 0, 0) 100%);
    position: relative;
}

html[data-theme="dark"] .comp-column.better-offer {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.02) 0%, rgba(0, 0, 0, 0) 100%);
}

.comp-column.better-offer::after {
    content: 'RECOMMENDED';
    position: absolute;
    top: -10px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.comp-header {
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.comp-rate {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.comp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.comp-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comp-list span.label {
    color: var(--text-secondary);
}

.comp-list span.val {
    font-weight: 600;
}

.comp-verdict {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
}

.comp-verdict strong {
    color: var(--primary-light);
}

/* Custom Dynamic Add Sub-vendor Button */
.add-node-btn {
    width: 100%;
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

html[data-theme="dark"] .add-node-btn {
    background: rgba(255, 255, 255, 0.03);
}

.add-node-btn:hover {
    background: rgba(16, 185, 129, 0.02);
    border-color: var(--primary);
    color: var(--primary-light);
}

.add-node-btn svg {
    width: 16px;
    height: 16px;
}

/* Alert Boxes within results */
.info-alert {
    background: rgba(8, 145, 178, 0.04);
    border: 1px solid rgba(8, 145, 178, 0.15);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 0.75rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

html[data-theme="dark"] .info-alert {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.2);
}

.info-alert svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--secondary);
}

.info-alert strong {
    color: var(--text-primary);
}

.tool-c2c {
    --card-color: #10b981;
    --card-color-glow: rgba(16, 185, 129, 0.08);
    --card-color-border: rgba(16, 185, 129, 0.35);
    --card-color-shadow: 0 12px 30px -10px rgba(16, 185, 129, 0.18);
    --card-color-icon-bg: rgba(16, 185, 129, 0.08);
}

.tool-tax {
    --card-color: #0891b2;
    --card-color-glow: rgba(8, 145, 178, 0.08);
    --card-color-border: rgba(8, 145, 178, 0.35);
    --card-color-shadow: 0 12px 30px -10px rgba(8, 145, 178, 0.18);
    --card-color-icon-bg: rgba(8, 145, 178, 0.08);
}

html[data-theme="dark"] .tool-tax {
    --card-color: #06b6d4;
    --card-color-glow: rgba(6, 182, 212, 0.12);
    --card-color-border: rgba(6, 182, 212, 0.4);
    --card-color-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.25);
    --card-color-icon-bg: rgba(6, 182, 212, 0.12);
}

.tool-recruiter {
    --card-color: #7c3aed;
    --card-color-glow: rgba(124, 58, 237, 0.08);
    --card-color-border: rgba(124, 58, 237, 0.35);
    --card-color-shadow: 0 12px 30px -10px rgba(124, 58, 237, 0.18);
    --card-color-icon-bg: rgba(124, 58, 237, 0.08);
}

html[data-theme="dark"] .tool-recruiter {
    --card-color: #8b5cf6;
    --card-color-glow: rgba(139, 92, 246, 0.12);
    --card-color-border: rgba(139, 92, 246, 0.4);
    --card-color-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.25);
    --card-color-icon-bg: rgba(139, 92, 246, 0.12);
}

.tool-compare {
    --card-color: #ec4899;
    --card-color-glow: rgba(236, 72, 153, 0.08);
    --card-color-border: rgba(236, 72, 153, 0.35);
    --card-color-shadow: 0 12px 30px -10px rgba(236, 72, 153, 0.18);
    --card-color-icon-bg: rgba(236, 72, 153, 0.08);
}

.tool-refund {
    --card-color: #d97706;
    --card-color-glow: rgba(217, 119, 6, 0.08);
    --card-color-border: rgba(217, 119, 6, 0.35);
    --card-color-shadow: 0 12px 30px -10px rgba(217, 119, 6, 0.18);
    --card-color-icon-bg: rgba(217, 119, 6, 0.08);
}

html[data-theme="dark"] .tool-refund {
    --card-color: #f59e0b;
    --card-color-glow: rgba(245, 158, 11, 0.12);
    --card-color-border: rgba(245, 158, 11, 0.4);
    --card-color-shadow: 0 12px 30px -10px rgba(245, 158, 11, 0.25);
    --card-color-icon-bg: rgba(245, 158, 11, 0.12);
}

.dynamic-vendor-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    animation: fadeIn var(--transition-fast) forwards;
}

.delete-vendor-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.delete-vendor-btn:hover {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
}

.delete-vendor-btn svg {
    width: 18px;
    height: 18px;
}

/* Calculator Instructions Page styling */
.guide-container {
    margin-top: 3rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.guide-container h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.guide-section {
    margin-bottom: 1.5rem;
}

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

.guide-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--primary-light);
}

.guide-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.guide-section ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.guide-section li {
    margin-bottom: 0.5rem;
}

.policy-page {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin: 0 auto;
}

.guide-page {
    line-height: 1.8;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.guide-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    flex-wrap: wrap;
}

.policy-page h1, .policy-page h2.policy-main-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.75px;
}

.policy-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}

.policy-page h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.policy-page p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

/* Simple Contact Form */
.contact-form {
    display: grid;
    gap: 1.25rem;
}

.contact-submit-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.85rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.2);
}

.contact-submit-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
}

/* Responsive styles */
@media (max-width: 960px) {
    .nav-container {
        padding: 0.85rem 1.5rem;
    }

    .mobile-menu-btn {
        display: flex;
        /* Display hamburger toggle on mobile */
    }

    .brand-logo-img {
        height: 40px;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 0 1.5rem;
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        pointer-events: none;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    }

    html[data-theme="dark"] .nav-menu {
        background: #0f172a;
    }

    .nav-menu.active {
        max-height: 350px;
        opacity: 1;
        padding: 1rem 1.5rem;
        pointer-events: auto;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item a {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .main-content {
        padding: 2rem 1.25rem;
    }

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

    .comparison-grid {
        grid-template-columns: 1fr !important;
    }

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

    .calc-grid>div,
    .comparison-grid>div {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-title h1 {
        font-size: 1.5rem;
    }

    .hero-metric .value {
        font-size: 2.25rem;
    }

    .policy-page {
        padding: 1.5rem;
    }

    .guide-container {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 1.85rem;
    }
}

/* === Landing Page Redesign & Footer CSS overrides === */

/* Ambient Background Glow Blobs */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.12;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.glow-1 {
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.glow-2 {
    top: 35%;
    left: 5%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.glow-3 {
    top: 65%;
    right: 5%;
    background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
}

html[data-theme="dark"] .glow-bg {
    opacity: 0.22;
}

/* Hero Section */
.hero-section {
    padding: 3.5rem 0 5rem 0;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    max-width: 780px;
    margin: 0 auto 3.5rem auto;
}

.hero-content h1 {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.25px;
    margin-top: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

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

.hero-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.25rem;
}

.hero-tagline {
    display: inline-block;
    background: var(--primary-glow);
    color: var(--primary-light);
    font-size: 0.6rem;
    font-weight: 700;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    border: 1px solid rgba(16, 185, 129, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.hero-badges-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.25rem;
    padding: 0 1rem;
}

.hero-badge-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.hero-badge-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-md), 0 0 12px var(--primary-glow);
    color: var(--text-primary);
}

.hero-badge-item svg {
    flex-shrink: 0;
}

/* Primary/Secondary Pill Buttons */
.btn-primary {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 9999px;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

.btn-primary svg {
    transition: transform var(--transition-fast);
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.85rem 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    transform: translateY(-2px);
}

/* Dark mode buttons override */
html[data-theme="dark"] .btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.2);
}

html[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-light);
}

html[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    border-color: var(--border-color);
}

html[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* macOS Address Mockup */
.mockup-window {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
    max-width: 780px;
    margin: 0 auto;
    overflow: hidden;
    transition: var(--transition-normal);
}

html[data-theme="dark"] .mockup-window {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.mockup-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1.25rem;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
}

html[data-theme="dark"] .mockup-header {
    background: #0a0f1d;
    border-color: rgba(255, 255, 255, 0.08);
}

.mockup-dots {
    display: flex;
    gap: 0.4rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #f59e0b;
}

.dot.green {
    background: #10b981;
}

.mockup-address {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-theme="dark"] .mockup-address {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.05);
}

.mockup-body {
    padding: 2.5rem;
    background: #ffffff;
}

html[data-theme="dark"] .mockup-body {
    background: #090d16;
}

/* C2C Flow Diagram in Mockup */
.mockup-c2c-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.mockup-flow-step {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    min-width: 180px;
    box-shadow: var(--shadow-sm);
}

.mock-flow-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.mock-flow-rate {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.mock-flow-badge {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.04);
    color: var(--text-secondary);
}

html[data-theme="dark"] .mock-flow-badge {
    background: rgba(255, 255, 255, 0.05);
}

.mock-flow-badge.cut-badge {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.mock-flow-badge.success-badge {
    background: var(--primary-glow);
    color: var(--primary-light);
}

.mockup-flow-arrow {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Interactive Staffing Lifecycle Section */
.lifecycle-section {
    padding: 3rem 0 5rem 0;
}

.lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.lifecycle-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.25rem 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lifecycle-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: transparent;
    transition: background 0.3s ease;
}

.lifecycle-card.card-step-1:hover::after {
    background: var(--primary-light);
}

.lifecycle-card.card-step-2:hover::after {
    background: var(--secondary);
}

.lifecycle-card.card-step-3:hover::after {
    background: #ec4899;
}

.lifecycle-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-lg), 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.lifecycle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.lifecycle-step-num {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.18;
    font-family: var(--font-sans);
    line-height: 1;
}

.lifecycle-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

html[data-theme="dark"] .lifecycle-icon {
    background: rgba(255, 255, 255, 0.04);
}

.lifecycle-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
}

.lifecycle-card.card-step-1:hover .lifecycle-icon {
    color: var(--primary-light);
    background: var(--primary-glow);
}

.lifecycle-card.card-step-2:hover .lifecycle-icon {
    color: var(--secondary);
    background: rgba(16, 185, 129, 0.08);
}

.lifecycle-card.card-step-3:hover .lifecycle-icon {
    color: #ec4899;
    background: rgba(236, 72, 153, 0.08);
}

.lifecycle-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

.lifecycle-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.lifecycle-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border-color);
}

.keyword-tag {
    background: var(--bg-main);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.lifecycle-card:hover .keyword-tag {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

@media (max-width: 992px) {
    .lifecycle-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Bento Grid Section */
.bento-section {
    margin-bottom: 5rem;
}

/* CORRECT VERTICAL SPACING ON HEADINGS */
.section-divider {
    text-align: center;
    margin: 5.5rem 0 3.5rem 0;
    /* Expanded top and bottom spacing */
    border-top: none;
    padding-top: 0;
}

.section-divider h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-top: 0.75rem;
    /* Space below tagline */
    margin-bottom: 0.75rem;
    /* Space above paragraph */

    color: var(--text-primary);
}

.section-divider p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    /* Remove bottom margin since container margin covers spacing to cards */
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.02), 0 1px 3px rgba(0, 0, 0, 0.01);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-normal);
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 20px 45px -12px rgba(99, 102, 241, 0.12);
}

.card-large {
    grid-column: span 2;
    flex-direction: row;
    align-items: center;
    gap: 2.5rem;
}

.bento-card-content {
    flex: 1.2;
}

.bento-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    letter-spacing: -0.25px;
    color: var(--text-primary);
}

.bento-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.bento-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.bento-list li {
    position: relative;
    padding-left: 1.25rem;
}

.bento-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 700;
}

.bento-graphic {
    flex: 0.8;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 150px;
}

/* Mini Bar Chart inside Bento Card */
.mini-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    height: 130px;
    border-bottom: 2px solid var(--border-color);
    padding: 0 10px 5px 10px;
    width: 100%;
    max-width: 220px;
}

.bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
}

.bar {
    width: 100%;
    border-radius: 6px 6px 0 0;
    transition: height var(--transition-normal);
}

.bar-client {
    background: #cbd5e1;
    height: 100%;
}

.bar-vendor {
    background: var(--secondary);
    height: 90%;
}

.bar-you {
    background: var(--primary);
    height: 72%;
}

html[data-theme="dark"] .bar-client {
    background: rgba(255, 255, 255, 0.15);
}

.bar-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    white-space: nowrap;
}

/* Savings Badge box inside Bento Card */
.bento-savings-box {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(8, 145, 178, 0.02));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.savings-percentage-wrapper {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.savings-percentage {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-light);
    line-height: 1.1;
    letter-spacing: -1px;
}

.savings-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: var(--primary-glow);
    color: var(--primary-light);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    margin-top: 0.25rem;
}

.savings-desc {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

/* Check items inside Bento Card */
.bento-checks {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.check-item {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 0.75rem;
    font-weight: 800;
}

/* Mini Recruiter split bar chart inside Bento Card */
.mini-rec-split-wrapper {
    width: 100%;
    max-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.mini-rec-split {
    display: flex;
    height: 28px;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.split-segment {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: white;
}

.split-segment.house {
    background: var(--border-hover);
    color: var(--text-primary);
}

.split-segment.recruiter {
    background: var(--accent);
}

.split-segment.sourcer {
    background: var(--secondary);
}

html[data-theme="dark"] .split-segment.house {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.split-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0 5px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
}

.house-dot {
    background: var(--border-hover);
}

.rec-dot {
    background: var(--accent);
}

.source-dot {
    background: var(--secondary);
}

html[data-theme="dark"] .house-dot {
    background: rgba(255, 255, 255, 0.2);
}

/* FAQ Accordion Section */
.faq-accordion-section {
    margin-bottom: 5.5rem;
}

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

/* native details/summary accordions styled premium */
details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 0.85rem;
    overflow: hidden;
    transition: var(--transition-normal);
}

details:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.015);
}

details[open] {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

summary {
    padding: 1.25rem 1.75rem;
    font-weight: 700;
    font-size: 1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

details[open] summary::after {
    content: '−';
    color: var(--primary-light);
}

.details-content {
    padding: 0 1.75rem 1.5rem 1.75rem;
    border-top: 1px dashed transparent;
    animation: slideDown var(--transition-normal) forwards;
}

details[open] .details-content {
    border-top-color: var(--border-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

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

.details-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* Footer Section */
.app-footer {
    margin-top: 5rem;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 4.5rem 2rem 2.5rem 2rem;
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

html[data-theme="dark"] .app-footer {
    background: rgba(10, 15, 30, 0.9);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    padding-bottom: 3.5rem;
}

.footer-info {
    max-width: 360px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-links-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.75px;
    margin-bottom: 1.25rem;
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--primary-light);
    padding-left: 3px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Bento & Footer Media Queries */
@media (max-width: 960px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-info {
        max-width: 100%;
    }

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

    .card-large {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .mini-bar-chart {
        max-width: 220px;
        margin: 1rem auto 0 auto;
    }

    .mini-rec-split-wrapper {
        max-width: 240px;
        margin: 1rem auto 0 auto;
    }

    .glow-2 {
        left: 0;
    }

    .glow-bg {
        width: 100%;
    }

    .compare-inputs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .compare-inputs-grid>div {
        min-width: 0;
        width: 100%;
    }

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

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .mockup-body {
        padding: 1.5rem;
    }

    .mockup-c2c-diagram {
        flex-direction: column;
        gap: 1rem;
    }

    .mockup-flow-step {
        width: 100%;
    }

    .mockup-flow-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }

    .policy-page {
        padding: 1.75rem;
        border-radius: 16px;
    }
}

@media (max-width: 600px) {
    .data-table {
        min-width: 580px;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem 0.75rem;
        font-size: 0.82rem;
    }
}

@media (max-width: 480px) {
    .bento-section .section-divider {
        margin: 0 0 3.5rem 0;
    }

    .lifecycle-section .section-divider {
        margin: 0 0 3.5rem 0;
    }

    .faq-accordion-section {
        margin-bottom: 0;
    }

    .results-panel {
        padding: 1rem
    }

    .guide-container h2 {
        font-size: 1.2rem;
    }

    .app-footer {
        margin-top: 3rem;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }



    .hero-actions a {
        justify-content: center;
    }

    .nav-container {
        padding: 0.75rem 1rem;
    }

    .brand-logo-img {
        height: 35px;
    }

    .nav-actions {
        gap: 0.5rem;
    }

    .theme-toggle-btn,
    .mobile-menu-btn {
        width: 34px;
        height: 34px;
    }

    .policy-page {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .dynamic-vendor-item {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
        border: 1px solid var(--border-color);
        padding: 0.75rem;
        border-radius: 8px;
        background: rgba(0, 0, 0, 0.015);
    }

    html[data-theme="dark"] .dynamic-vendor-item {
        background: rgba(255, 255, 255, 0.015);
    }

    .dynamic-vendor-item>input,
    .dynamic-vendor-item>select,
    .dynamic-vendor-item>.input-wrapper {
        width: 100% !important;
        flex: none !important;
    }

    .dynamic-vendor-item>.delete-vendor-btn {
        align-self: stretch;
        padding: 0.5rem;
        background: rgba(220, 38, 38, 0.05);
        border: 1px solid rgba(220, 38, 38, 0.15);
        color: var(--danger);
        border-radius: 6px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .guide-meta {
        gap: 0.5rem 1rem;
    }
}

/* Breadcrumbs styling */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.breadcrumb-separator {
    color: var(--text-muted);
    user-select: none;
}

.breadcrumb-current {
    color: var(--text-muted);
    pointer-events: none;
}