/* 
   NARRA DIGILABS  -  Unified Design System v3.0 ("Narra Fresh")
   Light-first, clean SaaS. One brand system for:
     www.narra-cloud.com (marketing) · hub.narra-cloud.com (client portal)
     accounts · ops · status · docs
   Dark mode: [data-theme="dark"] or OS preference.
    */

/*  Design Tokens (LIGHT  -  default)  */
:root {
    color-scheme: light;

    /* Brand */
    --brand: #0f9d63;
    --brand-strong: #0b7d4e;
    --brand-weak: #34b57f;
    --brand-050: #e9f8f1;
    --brand-100: #d2f1e2;
    --brand-glow: rgba(15, 157, 99, 0.18);

    /* Surfaces */
    --bg: #f5f8fb;
    --bg-subtle: #eaf0f6;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #eef3f8;
    --surface-inset: #f2f6fa;

    /* Lines */
    --border: #e2e9f1;
    --border-strong: #cdd8e4;
    --border-subtle: #edf2f7;

    /* Text */
    --text: #0f1c2e;
    --text-muted: #55637a;
    --text-dim: #5d6b80;

    /* Status */
    --success: #0f9d63;
    --warning: #c2790a;
    --warning-strong: #b45309;
    --danger: #e11d48;
    --info: #2563eb;
    --purple: #7c3aed;

    /* Solid action surface (keeps AA contrast with --btn-fg in both themes) */
    --btn-bg: #0b7d4e;
    --btn-bg-hover: #0a6b43;
    --btn-fg: #ffffff;

    /* Effects */
    --shadow-xs: 0 1px 2px rgba(16, 32, 56, 0.05);
    --shadow-sm: 0 1px 3px rgba(16, 32, 56, 0.07), 0 1px 2px rgba(16, 32, 56, 0.04);
    --shadow-md: 0 8px 20px -8px rgba(16, 32, 56, 0.16), 0 2px 6px rgba(16, 32, 56, 0.05);
    --shadow-lg: 0 24px 48px -16px rgba(16, 32, 56, 0.22), 0 6px 16px rgba(16, 32, 56, 0.06);
    --ring: 0 0 0 3px rgba(15, 157, 99, 0.18);

    /* Shape & motion */
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
    --radius-pill: 999px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Type */
    --ff-font-ui: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ff-font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
    --ff-font-mono: 'JetBrains Mono', ui-monospace, 'Fira Code', SFMono-Regular, monospace;

    /* Legacy aliases  -  main/hub/docs vocabulary (--ff-*) */
    --ff-bg: var(--bg);
    --ff-bg-subtle: var(--bg-subtle);
    --ff-card: var(--surface);
    --ff-card-hover: var(--surface-2);
    --ff-border: var(--border);
    --ff-border-hover: var(--border-strong);
    --ff-border-subtle: var(--border-subtle);
    --ff-text: var(--text);
    --ff-text-muted: var(--text-muted);
    --ff-accent: var(--brand-strong);
    --ff-accent-dim: var(--brand-050);
    --ff-accent-glow: var(--brand-glow);
    --ff-danger: var(--danger);
    --ff-warning: var(--warning);
    --ff-shadow: var(--shadow-lg);
    --ff-radius: var(--radius);
    --ff-radius-sm: var(--radius-sm);

    /* Legacy aliases  -  ops/status vocabulary (--card, --accent, --muted…) */
    --card: var(--surface);
    --card-hover: var(--surface-2);
    --border-s: var(--border-subtle);
    --muted: var(--text-muted);
    --dim: var(--text-dim);
    --accent: var(--brand);
    --accent-dim: var(--brand-050);
    --green: var(--success);
    --yellow: var(--warning);
    --red: var(--danger);
    --blue: var(--info);
    --purple-dim: rgba(124, 58, 237, 0.12);
    --mono: var(--ff-font-mono);
    --electric-leaf: var(--brand-strong);
    --forest-floor: var(--bg);
    --leaf-muted: rgba(15, 157, 99, 0.18);
    --text-primary: var(--text);
    --surface-elevated: var(--surface-2);
    --glass-bg: var(--surface);
    --glass-border: var(--border);
    /* ops/status extras */
    --bg-card: var(--surface);
    --bg-hover: var(--surface-2);
    --bg-overlay: rgba(0, 0, 0, 0.55);
    --font-serif: var(--ff-font-heading);
    --font-ui: var(--ff-font-ui);
    --font-mono: var(--ff-font-mono);
    --font-pixel: var(--ff-font-mono);
    --shadow: var(--shadow-lg);
}

/*  Design Tokens (DARK)  */
[data-theme="dark"] {
    color-scheme: dark;

    --brand: #34d399;
    --brand-strong: #10b981;
    --brand-weak: #6ee7b7;
    --brand-050: rgba(52, 211, 153, 0.12);
    --brand-100: rgba(52, 211, 153, 0.2);
    --brand-glow: rgba(52, 211, 153, 0.28);

    --bg: #000000;
    --bg-subtle: #0a0a0a;
    --surface: #0f0f0f;
    --surface-2: #161616;
    --surface-3: #1c1c1c;
    --surface-inset: #050505;

    --border: #262626;
    --border-strong: #3a3a3a;
    --border-subtle: #1a1a1a;

    --text: #f2f2f2;
    --text-muted: #a3a3a3;
    --text-dim: #8f8f8f;

    --success: #34d399;
    --warning: #fbbf24;
    --warning-strong: #fbbf24;
    --danger: #fb7185;
    --info: #60a5fa;
    --purple: #a78bfa;

    --btn-bg: #34d399;
    --btn-bg-hover: #6ee7b7;
    --btn-fg: #04231a;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 28px 56px -20px rgba(0, 0, 0, 0.7);
    --ring: 0 0 0 3px rgba(52, 211, 153, 0.25);

    --purple-dim: rgba(167, 139, 250, 0.16);
    --leaf-muted: rgba(52, 211, 153, 0.2);
    --bg-overlay: rgba(0, 0, 0, 0.62);
}

/* Light is the default regardless of OS preference or JS availability.
   Dark mode is applied only via [data-theme="dark"] (set by theme.js). */

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

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

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--ff-font-ui);
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

p a, li p a, .legal-content a { text-decoration: underline; text-underline-offset: 2px; }
a { color: inherit; text-decoration: none; cursor: pointer; transition: var(--transition); }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; box-shadow: var(--ring); border-radius: var(--radius-sm); }

::selection { background: var(--brand-100); color: var(--text); }

.hidden { display: none !important; }
.text-center { text-align: center; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/*  Typography  */
h1, h2, h3, h4, h5 {
    font-family: var(--ff-font-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: var(--text);
}
h1 { font-size: clamp(2.3rem, 5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.02rem; }
p { color: inherit; }

h1 span, h2 span { color: var(--brand-strong); }

.mono, code, kbd, pre { font-family: var(--ff-font-mono); font-variant-numeric: tabular-nums; }

/*  Layout  */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; position: relative; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.page-main { padding-top: 9rem !important; }
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.layout-grid { display: grid; gap: 2rem; }

/*  Buttons  */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.72rem 1.4rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1;
    border: 1px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    text-align: center;
}
.btn:disabled, .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-primary, .btn-accent, .btn-ok {
    background: var(--btn-bg);
    color: var(--btn-fg);
}
.btn-primary:hover, .btn-accent:hover, .btn-ok:hover {
    background: var(--btn-bg-hover);
    color: var(--btn-fg);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-secondary:hover { background: var(--surface-3); border-color: var(--text-dim); color: var(--text); }

.btn-ghost {
    background: var(--surface);
    color: var(--text-muted);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); background: var(--surface-2); }

.btn-danger { background: #be123c; color: #ffffff; border-color: transparent; }
.btn-danger:hover { background: #9f1239; color: #ffffff; }

.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { filter: brightness(0.94); }

.btn-sm { padding: 0.42rem 0.85rem; font-size: 0.78rem; }
.btn-icon { padding: 0.55rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.btn-icon:hover { color: var(--brand); border-color: var(--brand); }

/*  Forms  */
.form-group, .form-field, .checkout-form-group { margin-bottom: 1.1rem; }
.form-label, .form-field label, .settings-label, .checkout-form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.45rem;
}
.form-input, .form-control, .settings-input,
.form-field input, .form-field textarea, .form-field select,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="search"], input[type="tel"], input[type="url"],
select, textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    transition: var(--transition);
}
.form-input:focus, .form-control:focus, .settings-input:focus,
.form-field input:focus, .form-field textarea:focus, .form-field select:focus,
input:focus, select:focus, textarea:focus {
    outline: 2px solid transparent;
    border-color: var(--brand);
    box-shadow: var(--ring);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    border-color: var(--brand-strong);
    outline: 2px solid var(--brand-strong);
    outline-offset: 1px;
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }
.form-hint, .form-note, .cp-email-hint { font-size: 0.76rem; color: var(--text-dim); margin-top: 0.35rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-group { position: relative; }
.error-msg, .form-status.error { color: var(--danger); font-size: 0.78rem; }
.form-status.success { color: var(--success); font-size: 0.78rem; }
select option { background: var(--surface); color: var(--text); }

/*  Surfaces: cards, panels, tables, badges, alerts  */
.card, .glass-card, .glass, .exp-card, .p-card, .portal-card,
.hosting-feature-card, .hosting-plan-card, .table-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.glass-card, .card { box-shadow: none; }
.glass-card:hover, .glass:hover, .hosting-plan-card:hover, .portal-card:hover {
    border-color: var(--border-strong);
}
.apple-widget {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.apple-widget:hover, .apple-widget.widget-glow {
    border-color: var(--border-strong);
}
.card-hdr, .card-header, .widget-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.card-hdr h3, .widget-header h2, .widget-header h3, .widget-title {
    font-size: 1.02rem;
    font-weight: 700;
    font-family: var(--ff-font-heading);
}
.card-ico {
    width: 34px; height: 34px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ico-green { background: var(--brand-050); color: var(--brand-strong); }
.ico-blue { background: rgba(37, 99, 235, 0.1); color: var(--info); }
.ico-purple { background: rgba(124, 58, 237, 0.1); color: var(--purple); }
.ico-yellow { background: rgba(194, 121, 10, 0.12); color: var(--warning); }

.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.22rem 0.6rem; border-radius: var(--radius-pill);
    font-size: 0.7rem; font-weight: 600; letter-spacing: 0.01em;
    background: var(--surface-3); color: var(--text-muted);
    border: 1px solid var(--border);
}
.badge-paid, .badge-green, .badge-resolved, .badge-ongoing { background: var(--brand-050); color: var(--brand-strong); border-color: var(--brand-100); }
.badge-unpaid, .badge-red { background: rgba(225, 29, 72, 0.1); color: var(--danger); border-color: rgba(225, 29, 72, 0.2); }
.badge-pending, .badge-yellow { background: rgba(194, 121, 10, 0.12); color: var(--warning); border-color: rgba(194, 121, 10, 0.22); }
.badge-academic { background: rgba(124, 58, 237, 0.1); color: var(--purple); border-color: rgba(124, 58, 237, 0.2); }
.badge-popular { background: var(--btn-bg); color: var(--btn-fg); border-color: transparent; }
.app-badge-tag {
    display: inline-flex; align-items: center; gap: 0.45rem;
    padding: 0.35rem 0.85rem; border-radius: var(--radius-pill);
    background: var(--brand-050); color: var(--brand-strong);
    border: 1px solid var(--brand-100); font-size: 0.76rem; font-weight: 600;
}
.role-badge, .header-badge {
    padding: 0.22rem 0.6rem; border-radius: var(--radius-pill);
    background: var(--surface-3); border: 1px solid var(--border);
    font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
}

.alert {
    padding: 0.8rem 1rem; border-radius: var(--radius-sm);
    font-size: 0.84rem; border: 1px solid var(--border); margin-bottom: 1rem;
    display: none;
}
.alert.show, .alert.active { display: block; }
.alert-ok { background: var(--brand-050); border-color: var(--brand-100); color: var(--brand-strong); }
.alert-err, .error { background: rgba(225, 29, 72, 0.08); border-color: rgba(225, 29, 72, 0.2); color: var(--danger); }
.info { color: var(--info); }

/* Tables */
table { width: 100%; border-collapse: collapse; }
.tbl-wrap, .tbl-container { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tbl-wrap table { min-width: 640px; }
.tbl-wrap th, .tbl-container th {
    text-align: left; font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.06em; color: var(--text-dim); font-weight: 700;
    padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--border);
    background: var(--surface-2); position: sticky; top: 0;
}
.tbl-wrap td, .tbl-container td {
    padding: 0.85rem 1.1rem; font-size: 0.86rem;
    border-bottom: 1px solid var(--border-subtle);
}
.tbl-wrap tr:last-child td { border-bottom: none; }
.tbl-wrap tbody tr:hover { background: var(--surface-2); }

/*  Header & Navigation (marketing)  */
header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
    transition: var(--transition);
}
@supports not (background: color-mix(in srgb, red, blue)) {
    header { background: rgba(255, 255, 255, 0.9); }
    [data-theme="dark"] header { background: rgba(15, 15, 15, 0.94); }
}
header.scrolled { padding: 0.55rem 0; box-shadow: var(--shadow-sm); }
header nav { display: flex; justify-content: space-between; align-items: center; }

.logo { display: flex; align-items: center; gap: 0.7rem; font-size: 1.3rem; font-weight: 800; font-family: var(--ff-font-heading); color: var(--text); }
.logo img { height: 34px; width: 34px; transition: var(--transition); }
.logo:hover img { transform: scale(1.06); }

.nav-container { display: flex; align-items: center; }
.nav-links { display: flex; list-style: none; gap: 1.9rem; align-items: center; margin: 0 auto; }
.nav-links a { font-size: 0.92rem; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--brand-strong); }

.dropdown { position: relative; }
.dropdown-content {
    position: absolute; top: 100%; left: -1rem;
    background: var(--surface); min-width: 230px;
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg); z-index: 1050; padding: 0.4rem; list-style: none;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.dropdown:hover .dropdown-content, .dropdown:focus-within .dropdown-content { opacity: 1; pointer-events: auto; transform: translateY(0); }
.dropdown-content a { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.6rem 0.8rem; font-size: 0.86rem; color: var(--text-muted); border-radius: 7px; }
.dropdown-content a:hover { background: var(--brand-050); color: var(--brand-strong); }
.sub-badge { font-size: 0.66rem; font-weight: 700; padding: 0.15rem 0.45rem; border-radius: var(--radius-pill); background: var(--surface-3); color: var(--text-muted); }

.social-links { display: flex; gap: 1.1rem; margin-left: 1.5rem; padding-left: 1.5rem; border-left: 1px solid var(--border); }
.social-links a { display: inline-flex; color: var(--text-dim); }
.social-links a:hover { color: var(--brand-strong); }

.nav-portal-btn {
    display: inline-flex; align-items: center; margin-left: 1.5rem;
    min-height: 44px; padding: 0.55rem 1.1rem; background: var(--btn-bg); color: var(--btn-fg);
    border-radius: var(--radius-sm); font-size: 0.83rem; font-weight: 600;
}
.nav-portal-btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); }

.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: 1rem; border-radius: var(--radius-sm);
    background: var(--surface); border: 1px solid var(--border); color: var(--text-muted);
    transition: var(--transition);
}
.theme-toggle:hover { color: var(--brand-strong); border-color: var(--brand); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun-icon { display: none; }
[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
[data-theme="dark"] .theme-toggle .moon-icon { display: none; }

.menu-toggle { display: none; flex-direction: column; justify-content: space-between; width: 26px; height: 18px; cursor: pointer; z-index: 1100; }
.menu-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s ease, opacity 0.2s ease; transform-origin: center; }
.menu-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); z-index: 999; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.nav-overlay.active { display: block; opacity: 1; pointer-events: auto; }

/* Profile menu (shared) */
.profile-menu { position: relative; }
.profile-toggle { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; border-radius: var(--radius-sm); cursor: pointer; transition: var(--transition); }
.profile-toggle:hover { background: var(--surface-2); }
.profile-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-050); color: var(--brand-strong); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0; }
.profile-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.profile-menu svg { width: 18px; height: 18px; }
.profile-dropdown {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 0.4rem; opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease; z-index: 1200;
}
.profile-menu.active .profile-dropdown, .profile-dropdown.active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.profile-dropdown a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.8rem; font-size: 0.85rem; color: var(--text-muted); border-radius: 7px; }
.profile-dropdown a:hover { background: var(--brand-050); color: var(--brand-strong); }

/*  Footer (marketing)  */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 4rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-brand-logo { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.footer-brand-logo img { width: 32px; height: 32px; }
.footer-brand-text { font-family: var(--ff-font-heading); font-weight: 800; font-size: 1.25rem; color: var(--text); }
.footer-tagline { font-size: 0.86rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: 1rem; }
.footer-social a { display: inline-flex; color: var(--text-dim); }
.footer-social a:hover { color: var(--brand-strong); }
.footer-heading { font-size: 0.76rem; text-transform: uppercase; letter-spacing: normal; color: var(--text-dim); font-weight: 700; margin-bottom: 1rem; font-family: var(--ff-font-ui); }
.footer-nav { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-nav a { font-size: 0.86rem; color: var(--text-muted); }
.footer-nav a:hover { color: var(--brand-strong); }
.footer-seals-wrap { display: flex; flex-direction: column; gap: 0.75rem; }
.bir-seal-box img { max-width: 220px; height: auto; opacity: 0.95; border-radius: 8px; }
.npc-seal-slot:empty { display: none; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.78rem; color: var(--text-dim); }
.footer-subtext { color: var(--text-dim); }

/*  Marketing: hero  */
.hero { position: relative; padding: 10.5rem 0 6rem; overflow: hidden; }
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 4rem; align-items: center; }
.hero-content h1 { margin-bottom: 1.25rem; }
.hero-content p { color: var(--text-muted); font-size: 1.05rem; max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-divider { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.hero-divider span { font-size: 0.78rem; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.hero-divider::before, .hero-divider::after { content: ''; height: 1px; background: var(--border); flex: 1; }

.services-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.service-chip {
    display: block; padding: 1rem; border-radius: var(--radius);
    background: var(--surface); border: 1px solid var(--border);
    transition: var(--transition);
}
.service-chip:hover { border-color: var(--brand); }
.service-chip .chip-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--brand-050); color: var(--brand-strong); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.6rem; }
.service-chip strong { display: block; font-size: 0.86rem; font-family: var(--ff-font-heading); }
.service-chip p { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.15rem; }
.narra-bg-tree { display: none; }

/* Node visualizer */
.node-visualizer { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.75rem; }
.node-visualizer-header h2, .node-visualizer-header h3 { font-size: 1rem; margin-bottom: 0.25rem; }
.node-visualizer-header p { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.node-map-stage { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 2.5rem 0.5rem; }
.node-svg-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stream-path { fill: none; stroke: var(--brand); stroke-width: 2; }
.stream-path.exposed { stroke: var(--danger); }

.node-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.node-bubble { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--surface-3); border: 2px solid var(--border-strong); color: var(--text-muted); transition: var(--transition); }
.node-item.active .node-bubble { background: var(--brand-050); border-color: var(--brand); color: var(--brand-strong); }
.node-bubble.atomic { box-shadow: 0 0 0 6px var(--brand-050); }
.node-bubble.shared { background: rgba(225, 29, 72, 0.08); border-color: var(--danger); color: var(--danger); }
.node-label { font-size: 0.74rem; font-weight: 600; color: var(--text-muted); }
.node-map-switches { display: flex; flex-direction: column; gap: 0.75rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.cyber-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.cyber-switch-label { display: flex; flex-direction: column; }
.cyber-switch-title { font-size: 0.82rem; font-weight: 700; }
.cyber-switch-desc { font-size: 0.74rem; color: var(--text-muted); max-width: 22rem; }
.cyber-switch-btn { min-height: 44px; padding: 0.4rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 0.76rem; font-weight: 700; color: var(--text-muted); }
.cyber-switch-btn.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }

/*  Marketing: Cloud PaaS sections  */
.paas-track-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.paas-track-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}
.paas-track-card:hover { border-color: var(--brand); }
.paas-track-header { margin-bottom: 1.25rem; }
.paas-track-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-pill);
    background: var(--brand-050);
    color: var(--brand-strong);
    border: 1px solid var(--brand-100);
    margin-bottom: 0.85rem;
}
.paas-track-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }
.paas-track-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; color: var(--text-muted); }
.paas-track-list li strong { color: var(--text); font-weight: 600; }
.paas-check { color: var(--brand-strong); font-weight: 700; flex-shrink: 0; line-height: 1.5; }

.template-catalog-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.template-tab-btn {
    min-height: 44px;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: var(--transition);
}
.template-tab-btn:hover { border-color: var(--border-strong); color: var(--text); }
.template-tab-btn.active { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.template-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.template-item strong { font-family: var(--ff-font-heading); font-size: 0.96rem; color: var(--text); }
.template-item span { font-size: 0.82rem; color: var(--text-muted); }
.template-item code { font-size: 0.74rem; color: var(--text-dim); margin-top: 0.25rem; }

.benefit-translation-list { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.benefit-row { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; padding: 1.75rem 2rem; border-bottom: 1px solid var(--border); align-items: start; }
.benefit-row:last-child { border-bottom: none; }
.benefit-plain h3 { font-size: 1.1rem; margin-bottom: 0.35rem; color: var(--text); }
.benefit-plain p { font-size: 0.9rem; color: var(--text-muted); }
.benefit-tech { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-size: 0.82rem; color: var(--text-muted); }
.benefit-tech strong { display: block; font-family: var(--ff-font-mono); font-size: 0.76rem; color: var(--brand-strong); margin-bottom: 0.25rem; }

.sizer-tier-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.5rem; margin-bottom: 1.25rem; }
.sizer-tier-btn {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    transition: var(--transition);
}
.sizer-tier-btn:hover { border-color: var(--border-strong); color: var(--text); }
.sizer-tier-btn.active { background: var(--brand-050); border-color: var(--brand); color: var(--brand-strong); }
.sizer-tier-btn span { display: block; font-size: 0.72rem; font-family: var(--ff-font-mono); color: var(--text-dim); font-weight: 500; }
.sizer-tier-btn.active span { color: var(--brand-strong); }

/*  Marketing: sizer  */
.sizer-card { max-width: 960px; margin: 0 auto; text-align: left; }
.sizer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.sizer-label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.sizer-label-title { font-family: var(--ff-font-mono); font-size: 0.76rem; color: var(--text-dim); }
.sizer-label-val { font-weight: 700; color: var(--brand-strong); font-size: 0.85rem; }
.sizer-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px; background: var(--surface-3); }
.sizer-slider:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 4px; }
.sizer-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); cursor: pointer; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.sizer-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); cursor: pointer; border: 3px solid #fff; }
.sizer-plan-title { font-size: 0.86rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.sizer-price-box { display: flex; align-items: baseline; color: var(--text); margin-bottom: 1rem; }
.sizer-price-box #plan-price { font-size: 2.6rem; font-weight: 800; font-family: var(--ff-font-heading); }
.sizer-price-period { font-size: 0.9rem; color: var(--text-dim); margin-left: 0.35rem; }
.sizer-code-output { background: var(--surface-inset); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; font-family: var(--ff-font-mono); font-size: 0.76rem; color: var(--text-muted); white-space: pre-wrap; line-height: 1.7; }

/*  Marketing: browser frame preview  */
.browser-frame { margin-top: 3.5rem; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.browser-header { display: flex; align-items: center; gap: 0.5rem; padding: 0.7rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.browser-dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-dot.red { background: #ff5f57; }
.browser-dot.yellow { background: #febc2e; }
.browser-dot.green { background: #28c840; }
.browser-address-bar { display: flex; align-items: center; gap: 0.5rem; margin-left: 0.75rem; flex: 1; padding: 0.35rem 0.8rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-family: var(--ff-font-mono); font-size: 0.74rem; color: var(--text-dim); }
.browser-content img { width: 100%; display: block; }

/*  Marketing: FAQ  */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; max-width: 1000px; margin: 0 auto; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: var(--transition); }
.faq-item:hover { border-color: var(--border-strong); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; text-align: left; font-size: 0.92rem; font-weight: 600; color: var(--text); }
.faq-icon { font-size: 1.3rem; color: var(--brand-strong); transition: transform 0.25s ease; line-height: 1; }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 1.25rem; font-size: 0.85rem; color: var(--text-muted); line-height: 1.75; transition: max-height 0.3s ease, padding 0.3s ease; }
.faq-item.active { border-color: var(--brand); }
.faq-item.active .faq-answer { max-height: 400px; padding: 0 1.25rem 1.25rem; }
.faq-item.active .faq-icon { transform: rotate(135deg); }

/*  Marketing: changelog timeline  */
.changelog-timeline { position: relative; max-width: 820px; margin: 0 auto; padding-left: 2rem; }
.changelog-timeline::before { content: ''; position: absolute; left: 6px; top: 0.5rem; bottom: 0.5rem; width: 2px; background: var(--border); }
.changelog-entry { position: relative; margin-bottom: 2.25rem; }
.changelog-entry::before { content: ''; position: absolute; left: -2rem; top: 0.45rem; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--border); }
.changelog-date { font-family: var(--ff-font-mono); font-size: 0.74rem; color: var(--brand-strong); font-weight: 600; }
.changelog-title { font-size: 1.05rem; margin: 0.25rem 0 0.5rem; }
.changelog-desc { font-size: 0.88rem; color: var(--text-muted); }
.changelog-tag { display: inline-block; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--brand-050); color: var(--brand-strong); margin-right: 0.4rem; }

/*  Marketing: CTA  */
.cta-section { text-align: center; padding: 3.5rem 2rem; background: var(--surface-2); border: 1px solid var(--border); }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-muted); max-width: 34rem; margin: 0 auto 2rem; }

/*  Marketing: hosting plans / plan cards  */
.hosting-hero, .plans-hero, .portal-hero, .student-hero { text-align: center; padding: 2rem 0 1rem; }
.hosting-hero h1, .plans-hero h1, .portal-hero h1, .student-hero h1 { margin-bottom: 1rem; }
.hosting-hero p, .plans-hero p, .portal-hero p, .student-hero p { color: var(--text-muted); max-width: 42rem; margin: 0 auto; }
.hosting-plans-grid, .plans-grid, .plans-subgrid, .student-plans-grid, .plans-subgrid-standard, .plans-subgrid-student { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.5rem; }
.hosting-features-grid, .app-features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.hosting-feature-icon, .app-feature-icon { width: 44px; height: 44px; border-radius: 11px; background: var(--brand-050); color: var(--brand-strong); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.plan-card, .p-card, .hosting-plan-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: var(--transition); display: flex; flex-direction: column;
}
.plan-card:hover, .hosting-plan-card:hover { border-color: var(--brand); }
.plan-card.selected, .plan-card.featured, .hosting-plan-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan-badge { position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%); background: var(--btn-bg); color: var(--btn-fg); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.3rem 0.8rem; border-radius: 999px; }
.plan-name, .p-card h3 { font-family: var(--ff-font-heading); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.35rem; }
.plan-tagline, .p-card p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.plan-price-wrapper, .p-card-price-wrapper { display: flex; align-items: baseline; gap: 0.15rem; margin-bottom: 1.25rem; }
.plan-currency, .plan-price-wrapper .plan-currency { font-size: 1.3rem; font-weight: 600; color: var(--text-muted); }
.plan-price { font-size: 2.7rem; font-weight: 800; font-family: var(--ff-font-heading); color: var(--text); line-height: 1; }
.plan-period { font-size: 0.85rem; color: var(--text-dim); }
.plan-features, .p-card-features { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.5rem; flex: 1; }
.plan-feature, .feature-item { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.85rem; color: var(--text-muted); }
.feature-check { color: var(--brand-strong); flex-shrink: 0; margin-top: 0.15rem; }
.plan-feature.excluded { color: var(--text-dim); }
.plan-feature.excluded .feature-check { color: var(--text-dim); }
.plan-cta, .p-card-btn { width: 100%; margin-top: auto; }
.pricing-notice, .p-footer-note, .student-notice { background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 1rem 1.25rem; font-size: 0.82rem; color: var(--text-muted); }

/*  Shared: modals  */
.modal-overlay, .modal-backdrop, .drawer-backdrop {
    display: none; position: fixed; inset: 0; z-index: 1500;
    background: var(--bg-overlay);
    align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.active, .modal-backdrop.open, .drawer-backdrop.open { display: flex; }
.modal-content, .modal-card, .modal {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto;
    padding: 1.75rem;
}
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.modal-header h2, .modal-title { font-size: 1.2rem; font-weight: 700; }
.modal-close { width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 1.3rem; line-height: 1; transition: var(--transition); }
.modal-close:hover { background: var(--surface-2); color: var(--text); }

/*  Utilities  */
.pulse-dot, .live-dot, .status-dot, .service-dot, .s-dot, .dot {
    width: 9px; height: 9px; border-radius: 50%; background: var(--success);
    display: inline-block; flex-shrink: 0;
}
.pulse-dot, .live-dot { box-shadow: none; animation: none; }
.live-dot.stopped, .s-dot.r, .dot-red, .status-dot.down { background: var(--danger); }
.live-dot.provisioning, .s-dot.y, .dot-yellow, .status-dot.degraded { background: var(--warning); }
.s-dot.g, .dot-green { background: var(--success); }


.spinner, .spinner-svg, .status-spinner, .step-spinner { width: 18px; height: 18px; border: 2px solid var(--border-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin 0.7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton, .skel, .skel-line, .skel-tag, .skel-dot { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-state-icon { font-size: 2.4rem; margin-bottom: 0.75rem; opacity: 0.6; }

.animate-in { animation: fadeUp 0.5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Geo banner */
.geo-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 2000; background: var(--surface); border-bottom: 1px solid var(--brand-100); box-shadow: var(--shadow-md); }
.geo-banner-inner { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 2rem; }
.geo-banner-content { display: flex; align-items: center; gap: 0.75rem; flex: 1; font-size: 0.82rem; color: var(--text-muted); }
.geo-banner-text strong { color: var(--text); }
.geo-banner-close { font-size: 1.3rem; color: var(--text-dim); line-height: 1; }
.geo-banner-close:hover { color: var(--danger); }

/*  Responsive  */
@media (max-width: 968px) {
    .split-grid, .hero-grid, .sizer-grid, .form-grid, .paas-track-grid, .benefit-row { grid-template-columns: 1fr; gap: 2rem; }
    .benefit-row { padding: 1.5rem; gap: 1.25rem; }
    .faq-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .section { padding: 4.5rem 0; }
    .hero { padding: 7.5rem 0 3.5rem; }
    .services-preview { grid-template-columns: repeat(2, 1fr); }

    .menu-toggle { display: flex; min-width: 44px; min-height: 44px; padding: 12px 9px; align-items: center; }
    .nav-container {
        position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 84vw);
        background: var(--surface); border-left: 1px solid var(--border);
        flex-direction: column; align-items: flex-start; gap: 0.5rem;
        padding: 5rem 1.5rem 2rem; transform: translateX(100%);
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: var(--shadow-lg); overflow-y: auto; z-index: 1000;
    }
    .nav-container.active { transform: translateX(0); }
    .nav-links { flex-direction: column; align-items: flex-start; gap: 0.25rem; margin: 0; width: 100%; }
    .nav-links li { width: 100%; }
    .nav-links a { display: flex; align-items: center; min-height: 44px; padding: 0.5rem; font-size: 1rem; width: 100%; }
    .dropdown-content { position: static; opacity: 1; pointer-events: auto; transform: none; box-shadow: none; border: none; background: transparent; padding: 0 0 0 0.75rem; min-width: 0; }
    .social-links { margin: 1rem 0 0; padding: 1rem 0 0; border-left: none; border-top: 1px solid var(--border); }
    .social-links a { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
    .nav-portal-btn { margin: 1rem 0 0; width: 100%; justify-content: center; }
    .theme-toggle { margin: 1rem 0 0; }
}
@media (max-width: 600px) {
    .container { padding: 0 1.25rem; }
    .section { padding: 3.5rem 0; }
    .hero { padding: 6.5rem 0 3rem; }
    .services-preview { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .hero-inner { padding: 0 1.25rem; }
    .paas-track-card, .node-visualizer, .plan-card, .hosting-plan-card { padding: 1.5rem; }
}
/* (hub dashboard components are defined in hub.css) */

/* --- interaction targets --- */
@media (pointer: coarse) {
    .btn, .btn-sm, .nav-portal-btn, .theme-toggle, .filter-tab,
    .hub-nav-item, .mobile-tab-item, .settings-tab-btn,
    input, select, textarea, .auth-submit { min-height: 44px; }
}
.btn:focus-visible, .nav-portal-btn:focus-visible, .theme-toggle:focus-visible,
.filter-tab:focus-visible, .hub-nav-item:focus-visible, .settings-tab-btn:focus-visible {
    outline: 2px solid var(--brand-strong);
    outline-offset: 2px;
    box-shadow: none;
}
a:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 1rem 0;
    animation: slideUpCookie 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-theme="dark"] .cookie-consent-banner {
    box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.5);
}
@keyframes slideUpCookie {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-consent-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    min-width: 280px;
}
.cookie-consent-text strong {
    color: var(--text);
}
.cookie-consent-link {
    color: var(--brand-strong);
    text-decoration: underline;
    font-weight: 500;
}
.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}
.cookie-consent-actions .btn {
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.85rem;
}

[data-theme="dark"] .form-inline-error {
    color: #fda4af !important;
}
@media (max-width: 600px) {
    .cookie-consent-actions {
        width: 100%;
        justify-content: stretch;
    }
    .cookie-consent-actions .btn {
        flex: 1;
        justify-content: center;
    }
}