:root {
    --bg-color: #F6F5F4; /* Off-white/Cream - Classic Swiss */
    --text-color: #393E41; /* Deep Charcoal */
    --accent-color: #E94F37; /* International Orange */
    --brand-teal: #44BBA4; /* Brand Teal */
    --grid-line: #D1D1C7;
    --surface-color: #FFFFFF;

    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Manrope', sans-serif;

    --spacing-unit: 8px;
    --container-width: 1400px;
    --grid-gap: 1px; /* Visible grid lines via gap */

    --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

body {
    background-color: var(--grid-line); /* Grid lines color */
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 0;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
}

p {
    max-width: 60ch;
    margin-bottom: 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Utility */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    background-color: var(--bg-color);
    min-height: 100vh;
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--text-color);
    color: var(--bg-color);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid var(--text-color);
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
    border-color: var(--brand-teal);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background-color: rgba(68, 187, 164, 0.15);
    color: var(--text-color);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Layout & Grid */
.grid-section {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background-color: var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
}

.grid-cell {
    background-color: var(--bg-color);
    padding: clamp(1rem, 3vw, 3rem);
    position: relative;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid var(--grid-line);
    background-color: rgba(242, 242, 235, 0.95);
    backdrop-filter: blur(5px);
}

.header-container {
    display: grid;
    grid-template-columns: 2fr 3fr;
    max-width: var(--container-width);
    margin: 0 auto;
    border-left: 1px solid var(--grid-line);
    border-right: 1px solid var(--grid-line);
}

.nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    border-right: 1px solid var(--grid-line);
}

.logo {
    display: inline-block;
    position: relative;
}

.logo svg {
    display: block;
    height: 2rem;
}


.logo-header svg {
    height: 2rem;
}

.logo-footer svg {
    height: 1.5rem;
}

.logo svg text {
    font-family: 'Space Grotesk', var(--font-display), sans-serif;
    font-weight: 700;
    fill: currentColor;
}

.logo svg tspan {
    fill: var(--accent-color);
}

.logo svg rect {
    fill: var(--brand-teal);
}

.nav-link {
    padding: 1.5rem;
    text-align: center;
    border-left: 1px solid var(--grid-line);
    font-family: var(--font-display);
    text-transform: uppercase;
    font-weight: 500;
    transition: background 0.3s;
}

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

.nav-link-login {
    background-color: var(--brand-teal);
    color: white;
    font-weight: 600;
}

.nav-link-login:hover {
    background-color: var(--text-color);
    color: var(--bg-color);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 2rem;
    height: 3px;
    background: var(--text-color);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
}

/* Hero */
.hero {
    padding-top: 80px; /* Header height */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 2fr 1fr;
}

.hero-title {
    grid-column: 1 / -1;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--grid-line);
}

.hero-title h1 span {
    display: block;
    transform: translateY(100%);
    opacity: 0;
    animation: slideUp 0.8s var(--transition-smooth) forwards;
}

.hero-title h1 span:nth-child(1) { animation-delay: 0.1s; }
.hero-title h1 span:nth-child(2) { animation-delay: 0.3s; color: var(--accent-color); }
.hero-title h1 span:nth-child(3) { animation-delay: 0.5s; }

.hero-stat {
    grid-column: span 3;
    border-right: 1px solid var(--grid-line);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.hero-stat:last-child { border-right: none; }

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.hero-cta {
    grid-column: span 6;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-color);
    color: var(--bg-color);
    cursor: pointer;
    transition: all 0.4s;
}

.hero-cta:hover {
    background-color: var(--accent-color);
}

.hero-cta h3 {
    font-size: 2rem;
}

/* Problem / Solution */
.narrative-section {
    grid-template-rows: auto;
}

.narrative-left {
    grid-column: span 5;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.narrative-right {
    grid-column: span 7;
}

.story-block {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    border-bottom: 1px solid var(--grid-line);
    opacity: 0.2;
    transition: opacity 0.5s;
}

.story-block.active {
    opacity: 1;
}

.story-block h3 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Product Showcase */
.product-interface {
    grid-column: 1 / -1;
    aspect-ratio: 16/9;
    background: var(--bg-color);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--grid-line);
}

.interface-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    height: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth);
}

.interface-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.sidebar {
    background: #EAEAE4;
    border-right: 1px solid #D1D1C7;
    padding: 20px;
}

.sidebar-item {
    height: 12px;
    background: #D1D1C7;
    margin-bottom: 15px;
    border-radius: 2px;
    width: 80%;
}

.main-content {
    padding: 40px;
    background: #fff;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.dash-title { height: 24px; width: 200px; background: #1A1A1A; }
.dash-btn { height: 32px; width: 100px; background: #FF3B30; }

.chart-area {
    height: 300px;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding-top: 40px;
    border-bottom: 2px solid #1A1A1A;
}

.bar {
    flex: 1;
    background: #1A1A1A;
    transition: height 1s ease-out;
    height: 0;
}

.visible .bar {
    height: var(--h);
}

/* Technical Comparison */
.comparison-table {
    grid-column: 1 / -1;
}

.comparison-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid var(--grid-line);
}

.comparison-row.header {
    background-color: #EAEAE4;
    position: sticky;
    top: 79px; /* Just below header */
    z-index: 90;
}

.cell {
    padding: 1.5rem;
    border-right: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
}

.cell:last-child { border-right: none; }

.check { color: var(--accent-color); font-weight: bold; }
.cross { color: #ccc; }

/* Conversion */
.conversion-section {
    background-color: var(--accent-color);
    color: white;
    text-align: center;
}

.conversion-content {
    grid-column: 2 / 12;
    padding: 6rem 0;
}

.conversion-content h2 {
    color: white;
    margin-bottom: 2rem;
}

.form-group {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

input {
    padding: 1rem;
    border: none;
    background: rgba(255,255,255,0.9);
    font-family: var(--font-body);
}

/* Footer */
footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--grid-line);
    background-color: var(--bg-color);
}

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

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

.footer-col li {
    margin-bottom: 0.75rem;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s var(--transition-smooth);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Tech Section Styles */
.tech-visual {
    height: 400px;
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--grid-line);
}

.map-grid {
    width: 100%;
    height: 100%;
    position: relative;
    background-image: radial-gradient(#666 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.7;
}

.map-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: var(--brand-teal);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 rgba(68, 187, 164, 0.4);
    animation: pulse-teal 2s infinite;
}

.map-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--brand-teal), transparent);
    transform-origin: left center;
    opacity: 0;
    animation: transmit 3s infinite;
}

@keyframes pulse-teal {
    0% { box-shadow: 0 0 0 0 rgba(68, 187, 164, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(68, 187, 164, 0); }
    100% { box-shadow: 0 0 0 0 rgba(68, 187, 164, 0); }
}

@keyframes transmit {
    0% { width: 0; opacity: 0; }
    20% { opacity: 1; }
    100% { width: 200px; opacity: 0; }
}

.code-window {
    background: #1a1a1a;
    padding: 2rem;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-line { display: block; margin-bottom: 0.15rem; white-space: pre; margin-left: 0; padding-left: 0; }
.c-teal { color: var(--brand-teal); }
.c-gray { color: #888; }
.c-orange { color: var(--accent-color); }

/* Legacy variable mappings for compatibility */
:root {
    --color-bg-primary: var(--bg-color);
    --color-bg-secondary: #EAEAE4;
    --color-text-primary: var(--text-color);
    --color-text-secondary: var(--text-color);
    --color-text-tertiary: #999;
    --color-accent: var(--accent-color);
    --color-primary: var(--brand-teal);
    --color-secondary: var(--bg-color);
    --color-border-light: var(--grid-line);
    --color-success: var(--brand-teal);
    --color-info: var(--brand-teal);
    --color-warning: var(--accent-color);
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
}

/* Form controls */
input[type="text"],
input[type="number"],
input[type="email"],
input[type="range"] {
    padding: 0.75rem;
    border: 1px solid var(--grid-line);
    background: var(--bg-color);
    font-family: var(--font-body);
    color: var(--text-color);
    width: 100%;
}

input[type="range"] {
    padding: 0;
    height: 8px;
    background: var(--grid-line);
    border-radius: 4px;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--grid-line);
}

table thead th {
    background-color: var(--brand-teal);
    color: white;
    font-weight: 700;
    text-transform: uppercase;
}

table tbody tr:hover {
    background-color: rgba(68, 187, 164, 0.05);
}

/* Responsive */
@media (max-width: 768px) {
    /* Header and Navigation */
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
    }

    .header-container {
        display: flex;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .nav-grid {
        display: flex;
        flex-direction: column;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        border-left: none;
        border-right: none;
        background-color: rgba(242, 242, 235, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-grid.active {
        max-height: 500px;
        border-bottom: 1px solid var(--grid-line);
    }

    .logo-header {
        padding: 1rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 60px;
        border-bottom: 1px solid var(--grid-line);
        border-right: none;
    }

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

    .nav-link {
        display: block;
        padding: 1.25rem 1rem;
        border-left: none;
        border-bottom: 1px solid var(--grid-line);
        text-align: left;
        width: 100%;
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    /* Hero Section */
    .hero {
        padding-top: 60px;
        min-height: auto;
    }

    .hero-grid {
        display: flex;
        flex-direction: column;
    }

    .hero-title {
        padding: 2rem 1.5rem;
    }

    .hero-title h1 {
        font-size: clamp(2rem, 10vw, 4rem);
    }

    .hero-stat {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
        padding: 1.5rem;
    }

    .hero-stat:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 2rem;
    }

    .hero-cta {
        grid-column: 1 / -1;
        padding: 2rem 1.5rem;
    }

    .hero-cta h3 {
        font-size: 1.5rem;
    }

    /* Grid Sections */
    .grid-section {
        grid-template-columns: 1fr;
    }

    .grid-cell {
        grid-column: 1 / -1 !important;
        border-right: none !important;
        border-bottom: 1px solid var(--grid-line);
        padding: clamp(1.5rem, 4vw, 2rem);
    }

    .grid-cell:last-child {
        border-bottom: none;
    }

    /* Narrative Section */
    .narrative-left {
        position: static;
        margin-bottom: 2rem;
        grid-column: 1 / -1;
    }

    .narrative-right {
        grid-column: 1 / -1;
    }

    .story-block {
        min-height: auto;
        padding: 2rem 1.5rem;
    }

    .story-block h3 {
        font-size: 1.75rem;
    }

    /* Comparison Table */
    .comparison-row {
        grid-template-columns: 1fr 1fr;
    }

    .cell:nth-child(3),
    .cell:nth-child(4) {
        display: none; /* Hide competitors on mobile */
    }

    /* Calculator */
    .homepage-calculator {
        grid-column: 1 / -1;
        padding: 1.5rem 1rem;
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .homepage-calculator-title {
        font-size: 1.5rem;
    }

    .homepage-calculator-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .homepage-calculator-service-group {
        flex-direction: column;
        gap: 1rem;
    }

    .calculator-slider-container {
        padding: 0;
    }

    .homepage-calculator-value {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    .homepage-calculator-value-large {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    /* Code Window */
    .code-window {
        padding: 1.5rem 1rem 1.5rem 0.75rem;
    }

    .code-window-content {
        font-size: 0.85rem;
        overflow-x: auto;
    }

    .code-line {
        white-space: pre-wrap;
        word-break: break-word;
    }

    .code-window-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .code-window-title {
        font-size: 1.25rem;
    }

    .code-window-subtitle {
        font-size: 0.85rem;
    }

    /* Product Interface */
    .product-interface {
        aspect-ratio: 16/10;
    }

    .interface-grid {
        grid-template-columns: 150px 1fr;
    }

    /* Pricing Cards */
    .pricing-card {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }

    .pricing-card:last-child {
        border-bottom: none;
    }

    .pricing-card-price {
        font-size: 2rem;
    }

    /* Conversion Section */
    .conversion-content {
        grid-column: 1 / -1;
        padding: 3rem 1.5rem;
    }

    .form-group {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    input[type="text"],
    input[type="email"] {
        width: 100%;
        padding: 1rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    /* Help Section */
    .help-content {
        padding: 2rem 1.5rem;
    }

    .help-title {
        font-size: 1.25rem;
    }

    .help-contact {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }

    /* Typography adjustments */
    h1 {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    h3 {
        font-size: clamp(1.25rem, 4vw, 2rem);
    }

    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Buttons */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        min-height: 44px; /* Better touch target */
    }

    /* Container */
    .container {
        border-left: none;
        border-right: none;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

/* Spacing Utilities */
.mt-1 { margin-top: var(--spacing-1); }
.mt-2 { margin-top: var(--spacing-2); }
.mt-3 { margin-top: var(--spacing-3); }
.mt-4 { margin-top: var(--spacing-4); }
.mb-1 { margin-bottom: var(--spacing-1); }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-3 { margin-bottom: var(--spacing-3); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.pt-4 { padding-top: var(--spacing-4); }
.pb-4 { padding-bottom: var(--spacing-4); }
.m-0 { margin: 0; }

/* Text Alignment */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* Display */
.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-1 { gap: var(--spacing-1); }
.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }

/* Colors */
.text-white { color: white; }
.text-primary { color: var(--brand-teal); }
.text-secondary { color: var(--color-text-secondary); }
.text-tertiary { color: var(--color-text-tertiary); }
.text-warning { color: var(--color-warning); }
.bg-dark { background-color: #1a1a1a; }
.bg-white { background-color: white; }
.bg-surface { background-color: var(--surface-color); }
.bg-teal { background-color: var(--brand-teal); }

/* Font Sizes */
.fs-xs { font-size: var(--font-size-xs); }
.fs-sm { font-size: var(--font-size-sm); }
.fs-base { font-size: var(--font-size-base); }
.fs-lg { font-size: var(--font-size-lg); }
.fs-xl { font-size: var(--font-size-xl); }
.fs-2xl { font-size: var(--font-size-2xl); }
.fs-3xl { font-size: var(--font-size-3xl); }
.fs-5xl { font-size: var(--font-size-5xl); }

/* Font Weights */
.fw-semibold { font-weight: var(--font-weight-semibold); }
.fw-bold { font-weight: var(--font-weight-bold); }

/* Width */
.w-100 { width: 100%; }
.w-60 { width: 60%; }

/* Padding */
.p-0 { padding: 0; }
.p-3 { padding: var(--spacing-3); }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.px-3 { padding-left: var(--spacing-3); padding-right: var(--spacing-3); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }

/* Border */
.border-right { border-right: 1px solid var(--grid-line); }
.border-bottom { border-bottom: 1px solid var(--grid-line); }
.border-top { border-top: 1px solid var(--grid-line); }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* List */
.list-none { list-style: none; }

/* ============================================
   Calculator Component Styles
   ============================================ */

.calculator-section {
    padding: 3rem;
    background: #1a1a1a;
    color: white;
}

.calculator-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.calculator-subtitle {
    margin-bottom: 2rem;
    color: #ccc;
}

.calculator-label {
    font-weight: 600;
    margin-bottom: 1rem;
    display: block;
    color: white;
}

.calculator-input-group {
    margin-bottom: 2rem;
}

.calculator-slider-container {
    text-align: center;
}

.calculator-slider {
    width: 100%;
    margin-bottom: 2rem;
    cursor: pointer;
}

.calculator-value {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.calculator-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    color: white;
}

.calculator-value-teal {
    color: var(--brand-teal);
    font-weight: 700;
}

.calculator-service-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ccc;
}

.calculator-service-radio {
    cursor: pointer;
}

.calculator-service-group {
    display: flex;
    gap: 2rem;
}

.calculator-btn-teal {
    background: var(--brand-teal);
    color: white;
    border-color: var(--brand-teal);
}

/* Deal Type Selector */
.deal-type-selector {
    margin-bottom: var(--spacing-6);
}

.deal-type-selector .form-check {
    padding: var(--spacing-3);
    border: 2px solid var(--color-border-light);
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: var(--spacing-3);
    transition: background-color 0.2s, border-color 0.2s;
}

.deal-type-selector .form-check:hover {
    background-color: var(--color-bg-hover, rgba(68, 187, 164, 0.05));
    border-color: var(--color-primary) !important;
}

.deal-type-selector .form-check:has(input:checked) {
    border-color: var(--color-primary) !important;
    background-color: rgba(68, 187, 164, 0.1);
}

.deal-type-selector input[type="radio"]:checked + label {
    color: var(--color-primary);
}

.deal-type-selector .form-check-label {
    cursor: pointer;
    width: 100%;
}

/* Calculator Results */
.calculator-results {
    background-color: var(--color-primary);
    color: #FFFFFF;
    padding: var(--spacing-6);
    border-radius: 8px;
    margin-bottom: var(--spacing-6);
    text-align: center;
}

.calculator-breakdown {
    background-color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-5);
    border-radius: 8px;
    margin-bottom: var(--spacing-4);
}

.calculator-breakdown-item {
    margin-bottom: var(--spacing-4);
    padding-bottom: var(--spacing-4);
    border-bottom: 1px solid var(--color-border-light);
}

.calculator-breakdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-2);
}

.calculator-progress-bar {
    background-color: var(--color-bg-secondary);
    height: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.calculator-progress-fill {
    height: 100%;
    transition: width 0.3s ease;
}

.calculator-progress-mechanical {
    background-color: var(--color-success);
}

.calculator-progress-performance {
    background-color: var(--color-info);
}

/* ============================================
   Radio Player Component Styles
   ============================================ */

.radio-player-section {
    padding-top: 80px;
}

.radio-player-container {
    grid-column: span 10;
    margin: 0 auto;
}

.radio-now-playing {
    text-align: center;
    margin-bottom: var(--spacing-4);
}

.radio-song-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-2);
}

.radio-song-artist {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin: 0;
}

.radio-progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--color-border-light);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.radio-progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--color-primary);
    transition: width 0.1s;
}

.radio-controls {
    text-align: center;
    margin-bottom: var(--spacing-4);
}

.radio-control-btn {
    margin: 0 var(--spacing-2);
    min-width: 120px;
}

.radio-volume-control {
    text-align: center;
}

.radio-volume-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-tertiary);
    margin-right: var(--spacing-2);
}

.radio-volume-slider {
    width: 200px;
    vertical-align: middle;
}

.radio-playlist {
    max-height: 500px;
    overflow-y: auto;
}

.radio-playlist-item {
    padding: 1rem;
    border-bottom: 1px solid var(--grid-line);
    cursor: pointer;
    transition: background-color 0.2s;
}

.radio-playlist-item:hover {
    background-color: #EAEAE4;
}

.radio-playlist-item.active {
    background-color: #EAEAE4 !important;
}

.radio-playlist-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.radio-playlist-item-title {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-1);
}

.radio-playlist-item-meta {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.radio-playlist-item-duration {
    color: var(--color-text-tertiary);
    font-size: var(--font-size-sm);
}

/* ============================================
   Homepage Calculator Styles
   ============================================ */

.homepage-calculator {
    grid-column: span 6;
    padding: 3rem;
    background: #1a1a1a;
    color: white;
    border-right: 1px solid var(--grid-line);
}

.homepage-calculator-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.homepage-calculator-subtitle {
    margin-bottom: 2rem;
    color: #ccc;
}

.homepage-calculator-service-group {
    display: flex;
    gap: 2rem;
}

.homepage-calculator-service-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: #ccc;
}

.homepage-calculator-slider {
    width: 100%;
    margin-bottom: 2rem;
    cursor: pointer;
}

.homepage-calculator-value {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: white;
}

.homepage-calculator-value-large {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: var(--font-display);
    color: white;
}

.homepage-calculator-value-teal {
    color: var(--brand-teal);
    font-weight: 700;
}

/* ============================================
   Grid Cell Variations
   ============================================ */

.grid-cell-span-4 {
    grid-column: span 4;
}

.grid-cell-span-6 {
    grid-column: span 6;
}

.grid-cell-span-10 {
    grid-column: span 10;
}

.grid-cell-span-12 {
    grid-column: span 12;
}

.grid-cell-center {
    margin: 0 auto;
}

.grid-cell-flex-column {
    display: flex;
    flex-direction: column;
}

.grid-cell-highlight {
    background-color: #EAEAE4;
}

/* ============================================
   Pricing Card Styles
   ============================================ */

.pricing-card {
    display: flex;
    flex-direction: column;
}

.pricing-card-title {
    color: var(--accent-color);
}

.pricing-card-description {
    font-size: 0.875rem;
    min-height: 3em;
    margin-bottom: 1rem;
}

.pricing-card-price {
    font-size: 2.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin: 1rem 0;
}

.pricing-card-price-small {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

.pricing-card-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
    font-size: 0.9rem;
}

.pricing-card-feature-item {
    margin-bottom: 0.5rem;
}

.pricing-card-cta {
    width: 100%;
    text-align: center;
}

/* ============================================
   Other Component Styles
   ============================================ */

.quote {
    font-style: italic;
    margin-bottom: 1rem;
}

.code-window {
    background: #1a1a1a;
    padding: 2rem 2rem 2rem 1rem;
    font-family: 'Courier New', Courier, monospace;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-window-content {
    margin-bottom: 1rem;
    padding-left: 0;
    margin-left: 0;
}

.code-window-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.code-window-title {
    color: white;
    margin-bottom: 0.5rem;
}

.code-window-subtitle {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0;
}

.help-section {
    background-color: var(--surface-color);
}

.help-content {
    grid-column: span 12;
    text-align: center;
    padding: 4rem 2rem;
}

.help-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.help-contact {
    font-size: clamp(1.5rem, 5vw, 3rem);
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-color);
}

.help-contact-link {
    color: var(--accent-color);
    border-bottom: 3px solid var(--accent-color);
}

.empty-state {
    grid-column: span 10;
    margin: 0 auto;
    text-align: center;
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}
