/* Nextcloud hosting pages: /nextcloud/ and the regional, comparison, alternative,
   Enterprise and migration pages generated by generate_nextcloud_pages.js.
   Page-specific nc-* (Hub plans, features, fit tables, CTA) and nce-* (dedicated
   Enterprise instances table and calculator) styles, moved out of the inline
   <style> block of nextcloud/index.html so the pages share one sheet. Loaded
   async (media="print" onload) after styles.css, with a <noscript> fallback. */

/* Nextcloud Hero */
.nc-hero {
    position: relative; min-height: 80vh; display: flex; flex-direction: column;
    justify-content: center; padding: 10rem 3rem 5rem; z-index: 1; text-align: center;
}
.nc-hero-content { max-width: 950px; margin: 0 auto; }
.nc-hero .section-label { margin-bottom: 1.5rem; }
.nc-hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem); font-weight: 800; line-height: 1.08;
    margin-bottom: 1.5rem; letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease forwards;
}
.nc-hero h1 .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nc-hero p {
    font-size: 1.2rem; color: var(--text-secondary); max-width: 750px;
    margin: 0 auto 3rem; line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.15s both;
}
.nc-hero-stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    padding-top: 2.5rem; border-top: 1px solid var(--border-subtle);
    animation: fadeInUp 0.8s ease 0.3s both;
}
.nc-hero-stat { text-align: center; }
.nc-hero-stat-value {
    font-family: 'Space Mono', monospace; font-size: 2.25rem; font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.nc-hero-stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.25rem; }
.nc-hero-cta {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Sections */
.nc-section {
    position: relative; z-index: 1; padding: 6rem 3rem;
}
.nc-section:nth-child(even) { background: var(--bg-secondary); }
.nc-section-inner { max-width: 1400px; margin: 0 auto; }
.nc-section-header {
    display: flex; align-items: flex-start; gap: 1.25rem; margin-bottom: 1.5rem;
}
.nc-section-icon {
    width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; background: var(--accent-gold-dim);
    border: 1px solid rgba(245, 166, 35, 0.2);
}
.nc-section-icon.blue { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.2); }
.nc-section-icon.purple { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.2); }
.nc-section-icon.green { background: rgba(34, 197, 94, 0.1); border-color: rgba(34, 197, 94, 0.2); }
.nc-section-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.25rem; }
.nc-section-subtitle { font-size: 1rem; color: var(--text-muted); }
.nc-section-desc {
    font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8;
    max-width: 800px; margin-bottom: 3rem;
}

/* Feature cards grid */
.nc-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.nc-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 16px; padding: 2rem; position: relative; overflow: hidden;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
}
.nc-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s ease;
}
.nc-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.nc-card:hover::before { opacity: 1; }
.nc-card-icon {
    width: 44px; height: 44px; border-radius: 11px; display: flex;
    align-items: center; justify-content: center; font-size: 1.25rem;
    margin-bottom: 1.25rem;
}
.nc-card-icon.gold { background: var(--accent-gold-dim); border: 1px solid rgba(245, 166, 35, 0.2); }
.nc-card-icon.blue { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.2); }
.nc-card-icon.purple { background: rgba(168, 85, 247, 0.1); border: 1px solid rgba(168, 85, 247, 0.2); }
.nc-card-icon.green { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); }
.nc-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.nc-card p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1rem; }
.nc-card-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.nc-card-tag {
    font-size: 0.7rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 100px;
    background: rgba(245, 166, 35, 0.08); color: var(--accent-gold);
    border: 1px solid rgba(245, 166, 35, 0.15);
}
.nc-card-tag.blue { background: rgba(59, 130, 246, 0.08); color: var(--accent-blue); border-color: rgba(59, 130, 246, 0.15); }
.nc-card-tag.green { background: rgba(34, 197, 94, 0.08); color: var(--accent-green); border-color: rgba(34, 197, 94, 0.15); }
.nc-card-tag.purple { background: rgba(168, 85, 247, 0.08); color: var(--accent-purple); border-color: rgba(168, 85, 247, 0.15); }
a.nc-card { display: block; color: inherit; text-decoration: none; }
a.nc-card h3 { color: var(--text-primary); transition: color 0.3s ease; }
a.nc-card:hover h3 { color: var(--accent-gold); }
.nc-compare-sub { font-size: 0.95rem; font-weight: 700; color: var(--text-primary); margin: 2.5rem 0 1.25rem; }

/* Pricing */
.nc-pricing {
    position: relative; z-index: 1; padding: 6rem 3rem;
    background: var(--bg-secondary);
}
.nc-pricing-inner { max-width: 1400px; margin: 0 auto; text-align: center; }
.nc-pricing-inner h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.nc-pricing-inner > p { color: var(--text-secondary); font-size: 1.1rem; max-width: 700px; margin: 0 auto 3rem; line-height: 1.7; }
.nc-pricing-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 1.5rem; margin: 0 auto; max-width: 1200px; align-items: stretch;
}
.nc-config {
    display: flex; flex-direction: column; gap: 0.9rem; max-width: 980px; margin: 0 auto 1rem;
    padding: 1rem 1.25rem; border: 1px solid var(--border-subtle); border-radius: 16px;
    background: rgba(255, 255, 255, 0.02); text-align: left;
}
.nc-config-group { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.nc-config-cycle { justify-content: center; }
.nc-config-cycle .billing-cycle-options { background: transparent; border: none; padding: 0; gap: 0.25rem; }
.nc-config-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.9rem 2.5rem; padding-top: 0.9rem; border-top: 1px solid var(--border-subtle); }
.nc-config-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.nc-users-control { display: flex; align-items: center; gap: 0.5rem; }
.nc-users-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.6); color: var(--text-primary);
    font-family: 'Space Mono', monospace; font-size: 1.1rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; line-height: 1; padding: 0;
}
.nc-users-btn:hover { border-color: rgba(245, 166, 35, 0.4); background: rgba(245, 166, 35, 0.1); color: var(--accent-gold); }
.nc-users-btn:active { transform: scale(0.92); }
.nc-users-input {
    width: 6rem; height: 44px; text-align: center; -moz-appearance: textfield; appearance: textfield;
    font-family: 'Space Mono', monospace; font-size: 1.1rem; font-weight: 700; color: var(--accent-gold);
    background: rgba(15, 23, 42, 0.6); border: 1px solid var(--border-subtle); border-radius: 10px;
}
.nc-users-input::-webkit-outer-spin-button, .nc-users-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nc-users-input:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.nc-region-options.location-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.35rem; }
.nc-region-options .location-option { min-height: 44px; padding: 0.5rem 0.85rem; font-size: 0.8rem; border-radius: 8px; border-color: var(--border-subtle); }
.nc-region-options .location-option.selected { border-color: var(--accent-gold); color: var(--text-primary); font-weight: 600; }
.nc-plan {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 2.5rem 2rem; position: relative; overflow: hidden;
    transition: all 0.3s ease; backdrop-filter: blur(10px); text-align: left;
    display: flex; flex-direction: column;
}
.nc-plan::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s ease;
}
.nc-plan:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.nc-plan:hover::before { opacity: 1; }
.nc-plan.popular {
    border-color: var(--accent-gold);
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.08) 0%, var(--bg-card) 100%);
}
.nc-plan.popular::before { opacity: 1; }
.nc-plan-badge {
    position: absolute; top: 1.25rem; right: 1.25rem; background: var(--gradient-primary);
    color: var(--bg-primary); font-size: 0.7rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; padding: 0.3rem 0.7rem; border-radius: 100px;
}
.nc-plan-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.5rem; }
.nc-plan-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.nc-plan-price {
    margin-bottom: 1.5rem; padding: 1.25rem;
    background: rgba(245, 166, 35, 0.05); border-radius: 12px;
    border: 1px solid rgba(245, 166, 35, 0.1); text-align: center;
}
.nc-plan-price-value {
    font-family: 'Space Mono', monospace; font-size: 2.5rem; font-weight: 700;
    color: var(--text-primary);
}
.nc-plan-price-currency { font-size: 1.25rem; vertical-align: top; color: var(--accent-gold); }
.nc-plan-price-period { font-size: 0.9rem; color: var(--text-muted); }
.nc-plan-total { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.75rem; line-height: 1.5; overflow-wrap: break-word; }
.nc-plan-total strong { color: var(--text-primary); font-weight: 600; }
.nc-plan-list {
    list-style: none; padding: 0; margin: 0 0 1.75rem;
    display: flex; flex-direction: column; gap: 0.6rem; flex: 1;
}
.nc-plan-list li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.nc-plan-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--accent-green); }
.nc-plan .btn-card { margin-top: auto; }
.nc-pricing-note { color: var(--text-muted); font-size: 0.85rem; max-width: 760px; margin: 2.5rem auto 0; line-height: 1.7; }
.nc-pricing-note a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.nc-pricing-note a:visited { color: var(--accent-gold); }
.nc-pricing-note a:hover { color: var(--accent-gold-light); }

/* Why Nextcloud strip */
.nc-why {
    position: relative; z-index: 1; padding: 4rem 3rem;
    background: var(--bg-secondary); border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}
.nc-why-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.nc-why h2 { font-size: 1rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 2rem; }
.nc-why-items {
    display: flex; justify-content: center; gap: 2rem; align-items: stretch; flex-wrap: wrap;
}
.nc-why-item {
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    padding: 1.25rem 1.75rem; background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 14px; min-width: 150px;
}
.nc-why-icon {
    width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
    justify-content: center; font-size: 1.2rem;
    background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.2);
}
.nc-why-name { font-size: 0.85rem; font-weight: 700; color: var(--text-primary); }
.nc-why-desc { font-size: 0.7rem; color: var(--text-muted); }

/* CTA */
.nc-cta {
    position: relative; z-index: 1; padding: 7rem 3rem; text-align: center;
}
.nc-cta-box {
    max-width: 750px; margin: 0 auto; background: var(--bg-card);
    border: 1px solid var(--border-subtle); border-radius: 24px;
    padding: 4rem 3rem; backdrop-filter: blur(10px);
    position: relative; overflow: hidden;
}
.nc-cta-box::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary);
}
.nc-cta-box h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.nc-cta-box p { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 2rem; line-height: 1.7; }
.nc-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

@media (max-width: 768px) {
    .nc-hero { padding: 8rem 1.5rem 4rem; min-height: auto; }
    .nc-why, .nc-section, .nc-pricing { padding: 3rem 1.5rem; }
    .nc-grid { grid-template-columns: 1fr; }
    .nc-config { padding: 0.9rem 1rem; }
    .nc-config-row { gap: 0.9rem 1.5rem; }
    .nc-hero-stats { gap: 2rem; }
    .nc-why-items { gap: 1rem; }
    .nc-cta { padding: 4rem 1.5rem; }
    .nc-cta-box { padding: 3rem 1.5rem; }
}
@media (max-width: 480px) {
    .nc-hero { padding: 7rem 1rem 3rem; }
    .nc-why, .nc-section, .nc-pricing { padding: 2.5rem 1rem; }
    .nc-hero-stats { flex-direction: column; gap: 1.5rem; }
    .nc-why-items { gap: 0.75rem; }
    .nc-why-item { min-width: 100px; padding: 1rem; }
    .nc-cta { padding: 3rem 1rem; }
    .nc-plan { padding: 2rem 1.25rem; }
    .nc-region-options .location-option { padding: 0.5rem 0.7rem; }
}

/* Nextcloud Enterprise Section */
.nce-section {
    position: relative; z-index: 1; padding: 6rem 3rem;
}
.nce-inner { max-width: 1400px; margin: 0 auto; }
.nce-header { text-align: center; margin-bottom: 3rem; }
.nce-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.nce-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 800px; margin: 0 auto; line-height: 1.7; }

/* Plan comparison table */
.nce-table-wrap {
    overflow-x: auto; margin-bottom: 4rem; border-radius: 16px;
    border: 1px solid var(--border-subtle); background: var(--bg-card);
    backdrop-filter: blur(10px);
}
.nce-table {
    width: 100%; min-width: 700px; border-collapse: collapse;
}
.nce-table thead th {
    padding: 1.25rem 1rem; font-size: 0.95rem; font-weight: 700;
    text-align: center; border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary); background: rgba(15, 23, 42, 0.5);
}
.nce-table thead th:first-child { text-align: left; padding-left: 1.5rem; }
.nce-table thead th.nce-th-highlight {
    background: rgba(245, 166, 35, 0.08);
    border-bottom-color: rgba(245, 166, 35, 0.3);
}
.nce-table tbody td {
    padding: 0.85rem 1rem; font-size: 0.85rem; text-align: center;
    border-bottom: 1px solid var(--border-subtle); color: var(--text-secondary);
}
.nce-table tbody td:first-child {
    text-align: left; padding-left: 1.5rem; font-weight: 500; color: var(--text-primary);
}
.nce-table tbody tr:last-child td { border-bottom: none; }
.nce-table tbody tr:hover { background: rgba(245, 166, 35, 0.03); }
.nce-check { color: var(--accent-green); font-weight: 700; }
.nce-addon { color: var(--accent-gold); font-size: 0.75rem; font-weight: 600; }
.nce-na { color: var(--text-muted); }
.nce-plan-label {
    font-size: 0.7rem; display: block; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.05em; margin-top: 0.2rem;
}

/* Pricing Configurator */
.nce-configurator {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 3rem; backdrop-filter: blur(10px);
    max-width: 900px; margin: 0 auto;
}
.nce-config-title {
    font-size: 1.3rem; font-weight: 700; margin-bottom: 0.5rem; text-align: center;
}
.nce-config-subtitle {
    font-size: 0.9rem; color: var(--text-muted); text-align: center; margin-bottom: 2rem;
}

/* Plan tabs */
.nce-tabs {
    display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem;
}
.nce-tab {
    padding: 0.65rem 1.5rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600;
    cursor: pointer; border: 1px solid var(--border-subtle); background: transparent;
    color: var(--text-secondary); transition: all 0.2s ease;
}
.nce-tab:hover { border-color: rgba(245, 166, 35, 0.3); color: var(--text-primary); }
.nce-tab.active {
    background: var(--gradient-primary); color: var(--bg-primary);
    border-color: transparent;
}

/* User slider */
.nce-slider-group { margin-bottom: 2rem; }
.nce-slider-label {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 0.75rem;
}
.nce-slider-label span { font-size: 0.85rem; color: var(--text-secondary); }
.nce-slider-label strong {
    font-family: 'Space Mono', monospace; font-size: 1.1rem;
    color: var(--accent-gold);
}
.nce-user-control {
    display: flex; align-items: center; gap: 0.5rem;
}
.nce-user-btn {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-subtle);
    background: rgba(15, 23, 42, 0.6); color: var(--text-primary);
    font-family: 'Space Mono', monospace; font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: all 0.2s ease; line-height: 1; padding: 0;
}
.nce-user-btn:hover {
    border-color: rgba(245, 166, 35, 0.4); background: rgba(245, 166, 35, 0.1);
    color: var(--accent-gold);
}
.nce-user-btn:active {
    transform: scale(0.92);
}
.nce-range {
    -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
    border-radius: 3px; outline: none;
    background: linear-gradient(to right, var(--accent-gold) 0%, var(--accent-gold) var(--val, 0%), rgba(148, 163, 184, 0.2) var(--val, 0%), rgba(148, 163, 184, 0.2) 100%);
}
.nce-range::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px;
    border-radius: 50%; background: var(--accent-gold); cursor: pointer;
    box-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
}
.nce-range::-moz-range-thumb {
    width: 22px; height: 22px; border-radius: 50%; background: var(--accent-gold);
    cursor: pointer; border: none; box-shadow: 0 0 10px rgba(245, 166, 35, 0.4);
}
.nce-slider-ticks {
    position: relative; height: 1.2rem; margin-top: 0.4rem;
}
.nce-slider-ticks span {
    font-size: 0.65rem; color: var(--text-muted);
    font-family: 'Space Mono', monospace;
    transform: translateX(-50%); white-space: nowrap;
}
.nce-slider-ticks span:first-child { transform: none; }
.nce-slider-ticks span:last-child { transform: translateX(-100%); }

/* Price result */
.nce-result {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
    margin-bottom: 2rem;
}
.nce-result-card {
    padding: 1.5rem; border-radius: 14px; text-align: center;
    background: rgba(245, 166, 35, 0.05);
    border: 1px solid rgba(245, 166, 35, 0.1);
}
.nce-result-label {
    font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.nce-result-value {
    font-family: 'Space Mono', monospace; font-size: 2rem; font-weight: 700;
    color: var(--text-primary);
}
.nce-result-value .nce-currency { font-size: 1rem; color: var(--accent-gold); vertical-align: top; }
.nce-result-value .nce-period { font-size: 0.8rem; color: var(--text-muted); font-weight: 400; }
.nce-result-note {
    text-align: center; font-size: 0.8rem; color: var(--text-muted);
    margin-bottom: 2rem; line-height: 1.6;
}
.nce-config-cta { text-align: center; }

/* Add-on toggles */
.nce-addons {
    display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem;
    padding: 1.25rem; border-radius: 14px;
    background: rgba(15, 23, 42, 0.4); border: 1px solid var(--border-subtle);
}
.nce-addons-label {
    width: 100%; font-size: 0.75rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem;
}
.nce-addon-toggle {
    display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
    flex: 1 1 auto; min-width: 200px; padding: 0.75rem 1rem; border-radius: 10px;
    border: 1px solid var(--border-subtle); transition: all 0.2s ease;
    background: transparent;
}
.nce-addon-toggle:hover { border-color: rgba(245, 166, 35, 0.25); }
.nce-addon-toggle.active {
    border-color: rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.05);
}
.nce-addon-toggle.disabled {
    opacity: 0.35; pointer-events: none; cursor: not-allowed;
}
.nce-addon-toggle input { display: none; }
.nce-toggle-switch {
    width: 34px; height: 18px; border-radius: 9px; flex-shrink: 0;
    background: rgba(148, 163, 184, 0.25); position: relative; transition: background 0.2s ease;
}
.nce-toggle-switch::after {
    content: ''; position: absolute; top: 2px; left: 2px;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--text-muted); transition: all 0.2s ease;
}
.nce-addon-toggle.active .nce-toggle-switch {
    background: var(--accent-gold);
}
.nce-addon-toggle.active .nce-toggle-switch::after {
    left: 18px; background: var(--bg-primary);
}
.nce-addon-info { flex: 1; }
.nce-addon-name {
    font-size: 0.8rem; font-weight: 600; color: var(--text-primary); display: block;
}
.nce-addon-price {
    font-size: 0.7rem; color: var(--text-muted);
    font-family: 'Space Mono', monospace;
}

/* Version Comparison */
.nc-versions {
    position: relative; z-index: 1; padding: 6rem 3rem;
}
.nc-versions-inner { max-width: 1100px; margin: 0 auto; }
.nc-versions-header { text-align: center; margin-bottom: 3rem; }
.nc-versions-header h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
.nc-versions-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 700px; margin: 0 auto; line-height: 1.7; }
.nc-versions-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
}
.nc-version-card {
    background: var(--bg-card); border: 1px solid var(--border-subtle);
    border-radius: 20px; padding: 2.5rem 2rem; position: relative; overflow: hidden;
    transition: all 0.3s ease; backdrop-filter: blur(10px);
    display: flex; flex-direction: column;
}
.nc-version-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-primary); opacity: 0; transition: opacity 0.3s ease;
}
.nc-version-card:hover { border-color: rgba(245, 166, 35, 0.3); transform: translateY(-3px); }
.nc-version-card:hover::before { opacity: 1; }
.nc-version-card.enterprise {
    border-color: rgba(245, 166, 35, 0.25);
    background: linear-gradient(180deg, rgba(245, 166, 35, 0.06) 0%, var(--bg-card) 100%);
}
.nc-version-card.enterprise::before { opacity: 1; }
.nc-version-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; padding: 0.3rem 0.8rem; border-radius: 100px; margin-bottom: 1.25rem;
    width: fit-content;
}
.nc-version-badge.home {
    background: rgba(59, 130, 246, 0.1); color: var(--accent-blue);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.nc-version-badge.ent {
    background: rgba(245, 166, 35, 0.1); color: var(--accent-gold);
    border: 1px solid rgba(245, 166, 35, 0.2);
}
.nc-version-card h3 {
    font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem;
}
.nc-version-card .nc-version-tagline {
    font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6;
}
.nc-version-card .nc-version-price {
    font-family: 'Space Mono', monospace; font-size: 1.5rem; font-weight: 700;
    color: var(--text-primary); margin-bottom: 1.5rem;
}
.nc-version-card .nc-version-price span {
    font-size: 0.85rem; color: var(--text-muted); font-weight: 400;
}
.nc-version-features {
    list-style: none; padding: 0; margin: 0 0 2rem;
    display: flex; flex-direction: column; gap: 0.6rem; flex: 1;
}
.nc-version-features li {
    display: flex; align-items: flex-start; gap: 0.6rem;
    font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5;
}
.nc-version-features li svg {
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
}
.nc-version-features .feat-check { color: var(--accent-green); }
.nc-version-features .feat-star { color: var(--accent-gold); }
.nc-version-card .nc-version-ideal {
    font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.08em; margin-bottom: 0.5rem;
}
.nc-version-card .nc-version-audience {
    font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6;
}

@media (max-width: 768px) {
    .nc-versions { padding: 3rem 1.5rem; }
    .nc-versions-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .nc-versions { padding: 2.5rem 1rem; }
}

.nc-trial { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; margin: 0 auto 2.5rem; }
.nc-trial strong { color: var(--text-primary); }
.nc-trial-code { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--accent-gold); background: rgba(245, 166, 35, 0.1); border: 1px solid rgba(245, 166, 35, 0.3); border-radius: 6px; padding: 0.05rem 0.45rem; }
.nc-plan-compare { font-size: 0.75rem; color: var(--text-muted); margin: -0.75rem 0 1.5rem; line-height: 1.5; }
.nc-plan-list li a, .nc-plan-list li a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.nc-plan-list li a:hover { color: var(--accent-gold-light); }
.nce-result-note a, .nce-result-note a:visited, .nce-result-value a, .nce-result-value a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.nce-result-note a:hover, .nce-result-value a:hover { color: var(--accent-gold-light); }

.nce-support-label { margin-top: 0.75rem; }
.nce-radio-dot {
    width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; position: relative;
    border: 2px solid rgba(148, 163, 184, 0.35); transition: border-color 0.2s ease;
}
.nce-radio-dot::after {
    content: ''; position: absolute; inset: 3px; border-radius: 50%;
    background: var(--accent-gold); opacity: 0; transition: opacity 0.2s ease;
}
.nce-support-option.active .nce-radio-dot { border-color: var(--accent-gold); }
.nce-support-option.active .nce-radio-dot::after { opacity: 1; }
.nce-breakdown { text-align: center; font-size: 0.8rem; color: var(--text-secondary); margin: -1rem 0 1.5rem; line-height: 1.6; }

/* Which one fits */
.nc-fit { position: relative; z-index: 1; padding: 5rem 3rem 1rem; }
.nc-fit-inner { max-width: 1100px; margin: 0 auto; }
.nc-fit h2 { font-size: 2rem; font-weight: 700; text-align: center; margin-bottom: 1rem; }
.nc-fit-intro { color: var(--text-secondary); font-size: 1.1rem; text-align: center; max-width: 720px; margin: 0 auto 2.5rem; line-height: 1.7; }
.nc-fit-sub { font-size: 1.25rem; font-weight: 700; text-align: center; margin: 3rem 0 1.5rem; }
.nc-fit .nce-table-wrap { margin-bottom: 0; }
.nc-fit-table { min-width: 640px; }
.nc-fit-table tbody td { text-align: left; font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }
.nc-fit-table tbody td:first-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.nc-fit-table tbody td a, .nc-fit-table tbody td a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.nc-fit-table tbody td a:hover { color: var(--accent-gold-light); }
.nc-fit-note { color: var(--text-muted); font-size: 0.85rem; text-align: center; max-width: 760px; margin: 1.5rem auto 0; line-height: 1.7; }
.nc-fit-note a, .nc-fit-note a:visited { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.nc-fit-note a:hover { color: var(--accent-gold-light); }
.nc-faq { background: var(--bg-secondary); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
@media (max-width: 768px) { .nc-fit { padding: 3rem 1.5rem 0.5rem; } }
@media (max-width: 480px) { .nc-fit { padding: 2.5rem 1rem 0.5rem; } .nc-fit-table tbody td:first-child { white-space: normal; } }

/* Enterprise section responsive */
@media (max-width: 768px) {
    .nce-section { padding: 3rem 1.5rem; }
    .nce-configurator { padding: 2rem 1.5rem; }
    .nce-result { grid-template-columns: 1fr; }
    .nce-tabs { gap: 0.35rem; }
    .nce-tab { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .nce-addons { gap: 0.75rem; }
    .nce-addon-toggle { min-width: 160px; }
}
@media (max-width: 480px) {
    .nce-section { padding: 2.5rem 1rem; }
    .nce-configurator { padding: 1.5rem 1rem; }
    .nce-tab { padding: 0.45rem 0.75rem; font-size: 0.75rem; }
    .nce-addon-toggle { min-width: 100%; }
}

/* Prose blocks on the generated Nextcloud pages (regional, comparison, alternative, Enterprise, migration) */
.nc-prose { max-width: 820px; margin: 0 auto 2.5rem; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.75; }
.nc-prose p { margin-bottom: 1.1rem; }
.nc-prose ul, .nc-prose ol { margin: 0 0 1.25rem 1.4rem; }
.nc-prose li { margin-bottom: 0.5rem; }
.nc-prose strong { color: var(--text-primary); }
.nc-prose a, .nc-section-desc a, .nc-fit-note a, .nc-fit-table a, .faq-answer-inner a { color: var(--accent-gold); text-decoration: underline; text-underline-offset: 2px; }
.nc-prose a:visited, .nc-section-desc a:visited, .nc-fit-note a:visited, .nc-fit-table a:visited, .faq-answer-inner a:visited { color: var(--accent-gold); }
.nc-prose a:hover, .nc-section-desc a:hover, .nc-fit-note a:hover, .nc-fit-table a:hover, .faq-answer-inner a:hover { color: var(--accent-gold-light); }
.nc-prose h3 { color: var(--text-primary); font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.nc-verdict { max-width: 820px; margin: 0 auto 2.5rem; padding: 1.5rem 1.75rem; background: var(--accent-gold-dim); border: 1px solid rgba(245, 166, 35, 0.3); border-radius: 12px; color: var(--text-primary); font-size: 1.05rem; line-height: 1.7; }
.nc-verdict strong { color: var(--accent-gold); }
.nc-step-num { font-family: 'Space Mono', monospace; font-weight: 700; color: var(--accent-gold); font-size: 0.9rem; margin-bottom: 0.5rem; }

/* Mobile/tablet performance: defense-in-depth for the universal kill in critical.css */
@media (max-width: 1024px) {
    .nc-card, .nc-plan, .nc-why-item, .nc-version-card, .nc-cta-box, .nce-tab, .nce-addon-toggle { transition: none !important; animation: none !important; }
    .nc-card:hover, .nc-plan:hover, .nc-version-card:hover { transform: none !important; box-shadow: none !important; }
    .nc-card::before, .nc-plan::before, .nc-version-card::before, .nc-cta-box::before { backdrop-filter: none !important; }
}
