/* TheFlow Web Foundation — static stylesheet (no build step required for VPS deploy) */

:root {
    --tf-primary: #1a56db;
    --tf-secondary: #6b7280;
    --tf-accent: #10b981;
    --tf-bg: #f8fafc;
    --tf-surface: #ffffff;
    --tf-text: #0f172a;
    --tf-text-muted: #64748b;
    --tf-border: #e2e8f0;
    --tf-danger: #dc2626;
    --tf-warning: #d97706;
    --tf-radius: 0.5rem;
    --tf-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
    --tf-sidebar-width: 16rem;
    --tf-topnav-height: 3.5rem;
    --tf-font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    --tf-display: 'Outfit', 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--tf-font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--tf-text);
    background: var(--tf-bg);
}

a {
    color: var(--tf-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Layout */
.tf-container {
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.tf-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tf-main {
    flex: 1;
}

/* Top navigation */
.tf-topnav {
    height: var(--tf-topnav-height);
    background: var(--tf-surface);
    border-bottom: 1px solid var(--tf-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.tf-topnav__brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--tf-text);
    text-decoration: none;
}

.tf-topnav__brand:hover {
    text-decoration: none;
}

.tf-topnav__links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-topnav__links a {
    color: var(--tf-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.tf-topnav__links a:hover,
.tf-topnav__links a.is-active {
    color: var(--tf-primary);
    text-decoration: none;
}

.tf-topnav__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Portal shell */
.tf-portal {
    display: flex;
    min-height: calc(100vh - var(--tf-topnav-height));
}

.tf-sidebar {
    width: var(--tf-sidebar-width);
    background: var(--tf-surface);
    border-right: 1px solid var(--tf-border);
    padding: 1.25rem 0;
    flex-shrink: 0;
}

.tf-sidebar__section {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.tf-sidebar__label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--tf-text-muted);
    padding: 0 0.75rem;
    margin-bottom: 0.5rem;
}

.tf-sidebar__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-sidebar__nav a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--tf-radius);
    color: var(--tf-text-muted);
    font-size: 0.9375rem;
    font-weight: 500;
}

.tf-sidebar__nav a:hover,
.tf-sidebar__nav a.is-active {
    background: color-mix(in srgb, var(--tf-primary) 8%, transparent);
    color: var(--tf-primary);
    text-decoration: none;
}

.tf-portal__content {
    flex: 1;
    padding: 1.5rem;
    overflow-x: auto;
}

/* Buttons */
.tf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--tf-radius);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.tf-btn:hover {
    text-decoration: none;
}

.tf-btn--primary {
    background: var(--tf-primary);
    color: #fff;
}

.tf-btn--primary:hover {
    background: color-mix(in srgb, var(--tf-primary) 88%, #000);
    color: #fff;
}

.tf-btn--secondary {
    background: var(--tf-surface);
    color: var(--tf-text);
    border-color: var(--tf-border);
}

.tf-btn--secondary:hover {
    background: var(--tf-bg);
}

.tf-btn--ghost {
    background: transparent;
    color: var(--tf-text-muted);
}

.tf-btn--ghost:hover {
    background: var(--tf-bg);
    color: var(--tf-text);
}

.tf-btn--sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.tf-btn--lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Cards */
.tf-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: calc(var(--tf-radius) + 2px);
    box-shadow: var(--tf-shadow);
}

.tf-card__body {
    padding: 1.25rem;
}

.tf-card__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tf-border);
    font-weight: 600;
}

/* Badges */
.tf-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    background: color-mix(in srgb, var(--tf-primary) 12%, transparent);
    color: var(--tf-primary);
}

.tf-badge--success {
    background: color-mix(in srgb, var(--tf-accent) 12%, transparent);
    color: var(--tf-accent);
}

.tf-badge--warning {
    background: color-mix(in srgb, var(--tf-warning) 12%, transparent);
    color: var(--tf-warning);
}

.tf-badge--danger {
    background: color-mix(in srgb, var(--tf-danger) 12%, transparent);
    color: var(--tf-danger);
}

/* Alerts */
.tf-alert {
    padding: 0.875rem 1rem;
    border-radius: var(--tf-radius);
    border: 1px solid var(--tf-border);
    font-size: 0.9375rem;
}

.tf-alert--info {
    background: color-mix(in srgb, var(--tf-primary) 6%, var(--tf-surface));
    border-color: color-mix(in srgb, var(--tf-primary) 20%, var(--tf-border));
}

.tf-alert--warning {
    background: color-mix(in srgb, var(--tf-warning) 8%, var(--tf-surface));
    border-color: color-mix(in srgb, var(--tf-warning) 25%, var(--tf-border));
}

/* Page header */
.tf-page-header {
    margin-bottom: 1.5rem;
}

.tf-page-header__title {
    margin: 0 0 0.25rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.tf-page-header__subtitle {
    margin: 0;
    color: var(--tf-text-muted);
    font-size: 0.9375rem;
}

/* Stat cards */
.tf-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tf-stat-card {
    background: var(--tf-surface);
    border: 1px solid var(--tf-border);
    border-radius: calc(var(--tf-radius) + 2px);
    padding: 1rem 1.25rem;
}

.tf-stat-card__label {
    font-size: 0.8125rem;
    color: var(--tf-text-muted);
    margin-bottom: 0.25rem;
}

.tf-stat-card__value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Tables */
.tf-table-wrap {
    overflow-x: auto;
}

.tf-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

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

.tf-table th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--tf-text-muted);
    background: var(--tf-bg);
}

/* Empty state */
.tf-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--tf-text-muted);
}

.tf-empty__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--tf-text);
    margin: 0 0 0.5rem;
}

/* Loading */
.tf-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 2rem;
    color: var(--tf-text-muted);
}

.tf-spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--tf-border);
    border-top-color: var(--tf-primary);
    border-radius: 50%;
    animation: tf-spin 0.7s linear infinite;
}

@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

/* Breadcrumbs */
.tf-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.875rem;
    color: var(--tf-text-muted);
}

.tf-breadcrumbs a {
    color: var(--tf-text-muted);
}

.tf-breadcrumbs__sep {
    color: var(--tf-border);
}

/* Footer */
.tf-footer {
    background: var(--tf-surface);
    border-top: 1px solid var(--tf-border);
    padding: 2rem 0;
    margin-top: auto;
}

.tf-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
    gap: 2rem;
}

.tf-footer__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.75rem;
}

.tf-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tf-footer__links li {
    margin-bottom: 0.375rem;
}

.tf-footer__links a {
    color: var(--tf-text-muted);
    font-size: 0.9375rem;
}

.tf-footer__bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tf-border);
    font-size: 0.875rem;
    color: var(--tf-text-muted);
    text-align: center;
}

/* Auth layout */
.tf-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.tf-auth__card {
    width: 100%;
    max-width: 24rem;
}

/* Hero / landing */
.tf-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

.tf-hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

.tf-hero__subtitle {
    font-size: 1.125rem;
    color: var(--tf-text-muted);
    max-width: 40rem;
    margin: 0 auto 2rem;
}

.tf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.tf-section {
    padding: 3rem 0;
}

.tf-section--alt {
    background: var(--tf-surface);
    border-block: 1px solid var(--tf-border);
}

.tf-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1.25rem;
}

.tf-feature-card {
    padding: 1.5rem;
}

.tf-feature-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.0625rem;
}

.tf-feature-card p {
    margin: 0;
    color: var(--tf-text-muted);
    font-size: 0.9375rem;
}

/* Error pages */
.tf-error {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.tf-error__code {
    font-size: 4rem;
    font-weight: 800;
    color: var(--tf-primary);
    line-height: 1;
    margin: 0 0 0.5rem;
}

.tf-error__title {
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.tf-error__message {
    color: var(--tf-text-muted);
    max-width: 28rem;
    margin: 0 auto 1.5rem;
}

/* Utilities */
.tf-text-muted { color: var(--tf-text-muted); }
.tf-text-center { text-align: center; }
.tf-mb-0 { margin-bottom: 0; }
.tf-mb-4 { margin-bottom: 1rem; }
.tf-mt-4 { margin-top: 1rem; }
.tf-hidden { display: none; }

/* Search & filter placeholders */
.tf-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-surface);
}

.tf-search input {
    border: none;
    outline: none;
    flex: 1;
    font: inherit;
    background: transparent;
}

.tf-filter-panel {
    padding: 1rem;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-bg);
    margin-bottom: 1rem;
}

/* Modal shell */
.tf-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 100;
}

.tf-modal {
    background: var(--tf-surface);
    border-radius: calc(var(--tf-radius) + 4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    width: 100%;
    max-width: 28rem;
}

.tf-modal__header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tf-border);
    font-weight: 600;
}

.tf-modal__body {
    padding: 1.25rem;
}

/* Pagination */
.tf-pagination {
    display: flex;
    gap: 0.25rem;
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
}

.tf-pagination a,
.tf-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    border-radius: var(--tf-radius);
    font-size: 0.875rem;
    border: 1px solid var(--tf-border);
    color: var(--tf-text-muted);
}

.tf-pagination a:hover {
    background: var(--tf-bg);
    text-decoration: none;
}

.tf-pagination .is-active {
    background: var(--tf-primary);
    border-color: var(--tf-primary);
    color: #fff;
}

/* Profile menu placeholder */
.tf-profile-menu {
    position: relative;
}

.tf-profile-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-surface);
    font-size: 0.875rem;
    cursor: pointer;
}

.tf-avatar {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: color-mix(in srgb, var(--tf-primary) 15%, transparent);
    color: var(--tf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Workspace switcher placeholder */
.tf-workspace-switcher {
    font-size: 0.875rem;
    padding: 0.375rem 0.625rem;
    border: 1px solid var(--tf-border);
    border-radius: var(--tf-radius);
    background: var(--tf-bg);
    color: var(--tf-text-muted);
}

/* Logo mark */
.tf-logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: var(--tf-radius);
    background: var(--tf-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.875rem;
}

.tf-topnav--marketing .tf-logo-mark {
    background: var(--mk-mint, #12c4a0);
    color: #042219;
}

@media (max-width: 768px) {
    .tf-portal {
        flex-direction: column;
    }

    .tf-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--tf-border);
    }

    .tf-topnav__links {
        display: none;
    }

    .tf-mobile-menu-btn {
        display: inline-flex;
    }
}

/* Sprint 2 — Marketing website */
.tf-container--narrow { max-width: 48rem; }
.tf-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; }
.tf-hero--large { padding: 5rem 0 4rem; }
.tf-page-hero { padding: 3rem 0 2rem; background: var(--tf-surface); border-bottom: 1px solid var(--tf-border); }
.tf-page-hero--accent { background: color-mix(in srgb, var(--tf-primary) 6%, var(--tf-surface)); }
.tf-page-hero__title { margin: 0 0 0.5rem; font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.02em; }
.tf-page-hero__subtitle { margin: 0; color: var(--tf-text-muted); font-size: 1.0625rem; max-width: 40rem; }
.tf-cta-banner { background: linear-gradient(135deg, color-mix(in srgb, var(--tf-primary) 12%, var(--tf-surface)), var(--tf-surface)); border-block: 1px solid var(--tf-border); }
.tf-check-list { list-style: none; padding: 0; margin: 0; }
.tf-check-list li { padding: 0.5rem 0 0.5rem 1.75rem; position: relative; }
.tf-check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--tf-accent); font-weight: 700; }
.tf-steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.tf-steps li { counter-increment: step; padding: 1rem 1rem 1rem 3rem; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); position: relative; }
.tf-steps li::before { content: counter(step); position: absolute; left: 1rem; top: 1rem; width: 1.5rem; height: 1.5rem; background: var(--tf-primary); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; }
.tf-faq-list { display: grid; gap: 0.75rem; }
.tf-faq-item { background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 0 1rem; }
.tf-faq-item summary { cursor: pointer; font-weight: 600; padding: 1rem 0; list-style: none; }
.tf-faq-item summary::-webkit-details-marker { display: none; }
.tf-faq-item p { margin: 0 0 1rem; color: var(--tf-text-muted); }
.tf-prose { line-height: 1.75; }
.tf-prose h2 { margin: 2rem 0 0.75rem; font-size: 1.25rem; }
.tf-prose h3 { margin: 1.5rem 0 0.5rem; font-size: 1.0625rem; }
.tf-prose p, .tf-prose ul { margin: 0 0 1rem; }
.tf-prose ul { padding-left: 1.25rem; }
.tf-prose a { color: var(--tf-primary); }
.tf-prose--legal { font-size: 0.9375rem; }
.tf-form { display: grid; gap: 1rem; }
.tf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tf-form__group { display: grid; gap: 0.375rem; }
.tf-form__group label { font-size: 0.875rem; font-weight: 600; }
.tf-form__group input, .tf-form__group select, .tf-form__group textarea { padding: 0.625rem 0.75rem; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); font: inherit; background: var(--tf-surface); }
.tf-form__group input:focus, .tf-form__group select:focus, .tf-form__group textarea:focus { outline: 2px solid color-mix(in srgb, var(--tf-primary) 40%, transparent); border-color: var(--tf-primary); }
.tf-form__error { color: var(--tf-danger); font-size: 0.8125rem; }
.tf-blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.25rem; }
.tf-blog-card__title { margin: 0.5rem 0; font-size: 1.125rem; }
.tf-blog-card__title a { color: var(--tf-text); text-decoration: none; }
.tf-blog-card__title a:hover { color: var(--tf-primary); }
.tf-blog-card__meta { font-size: 0.8125rem; color: var(--tf-text-muted); margin: 0; }
.tf-contact-list { list-style: none; padding: 0; margin: 0; }
.tf-contact-list li { padding: 0.375rem 0; }
.tf-newsletter-form { display: flex; gap: 0.5rem; flex-wrap: wrap; max-width: 24rem; }
.tf-newsletter-form input { flex: 1; min-width: 12rem; padding: 0.5rem 0.75rem; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); font: inherit; }
.tf-footer__newsletter { padding-top: 1.5rem; border-top: 1px solid var(--tf-border); }
.tf-footer__social { display: flex; gap: 1rem; flex-wrap: wrap; }
.tf-footer__social a { color: var(--tf-text-muted); font-size: 0.875rem; }
.tf-mobile-menu-btn { display: none; background: none; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 0.375rem 0.625rem; font-size: 1.25rem; cursor: pointer; }
@media (max-width: 768px) {
    .tf-form__row { grid-template-columns: 1fr; }
}

/* Sprint 4 — Organization Portal */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.tf-org-portal { --tf-org-header-height: 3.75rem; }
.tf-org-header { height: var(--tf-org-header-height); background: var(--tf-surface); border-bottom: 1px solid var(--tf-border); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0 1rem; position: sticky; top: 0; z-index: 60; }
.tf-org-header__start { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.tf-org-header__brand { display: flex; align-items: center; gap: 0.625rem; text-decoration: none; color: var(--tf-text); font-weight: 700; min-width: 0; }
.tf-org-header__logo { height: 2rem; width: auto; }
.tf-org-header__org-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 12rem; }
.tf-org-header__workspace-title { color: var(--tf-text-muted); font-size: 0.875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: none; }
.tf-org-header__center { flex: 1; max-width: 28rem; }
.tf-org-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.tf-global-search { display: flex; align-items: center; gap: 0.5rem; background: color-mix(in srgb, var(--tf-border) 35%, var(--tf-surface)); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 0.375rem 0.75rem; }
.tf-global-search input { border: none; background: transparent; flex: 1; font: inherit; min-width: 0; }
.tf-global-search input:focus { outline: none; }
.tf-sidebar-toggle { display: none; background: none; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); padding: 0.375rem 0.625rem; cursor: pointer; }
.tf-portal__main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tf-org-footer { margin-top: auto; padding: 0.75rem 1.5rem; border-top: 1px solid var(--tf-border); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.8125rem; color: var(--tf-text-muted); }
.tf-org-footer__env { color: var(--tf-warning); font-weight: 600; }
.tf-dropdown { position: absolute; right: 0; top: calc(100% + 0.375rem); min-width: 14rem; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: var(--tf-radius); box-shadow: var(--tf-shadow, 0 8px 24px rgba(0,0,0,0.08)); z-index: 70; }
.tf-notifications, .tf-profile-menu, .tf-workspace-switcher { position: relative; }
.tf-dropdown__header, .tf-dropdown__footer { padding: 0.75rem 1rem; border-bottom: 1px solid var(--tf-border); }
.tf-dropdown__footer { border-bottom: none; border-top: 1px solid var(--tf-border); }
.tf-dropdown__list { list-style: none; margin: 0; padding: 0.375rem 0; }
.tf-dropdown__list a, .tf-dropdown__list button { display: block; width: 100%; text-align: left; padding: 0.5rem 1rem; color: var(--tf-text); text-decoration: none; background: none; border: none; font: inherit; cursor: pointer; }
.tf-dropdown__list a:hover { background: color-mix(in srgb, var(--tf-primary) 6%, transparent); }
.tf-profile-menu__trigger, .tf-workspace-switcher__trigger, .tf-notifications__trigger { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid transparent; border-radius: var(--tf-radius); padding: 0.25rem 0.5rem; cursor: pointer; font: inherit; }
.tf-profile-menu__trigger:hover, .tf-workspace-switcher__trigger:hover { border-color: var(--tf-border); }
.tf-notifications__badge { background: var(--tf-danger); color: #fff; font-size: 0.6875rem; font-weight: 700; border-radius: 999px; padding: 0.125rem 0.375rem; margin-left: -0.5rem; }
.tf-notifications__list { list-style: none; margin: 0; padding: 0; max-height: 16rem; overflow: auto; }
.tf-notifications__list li a { display: block; padding: 0.75rem 1rem; text-decoration: none; color: var(--tf-text); border-bottom: 1px solid var(--tf-border); }
.tf-notifications__list li.is-unread a { background: color-mix(in srgb, var(--tf-primary) 5%, transparent); }
.tf-notifications__list li span { display: block; font-size: 0.8125rem; color: var(--tf-text-muted); margin-top: 0.125rem; }
.tf-notifications__empty { padding: 1rem; color: var(--tf-text-muted); font-size: 0.875rem; }
.tf-utility-panel { width: 18rem; border-left: 1px solid var(--tf-border); background: var(--tf-surface); flex-shrink: 0; }
.tf-utility-panel__header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border-bottom: 1px solid var(--tf-border); }
.tf-utility-panel__body { padding: 1rem; }
.tf-utility-toggle { position: fixed; right: 1rem; bottom: 1rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--tf-border); background: var(--tf-surface); box-shadow: 0 4px 12px rgba(0,0,0,0.1); cursor: pointer; z-index: 40; }
.tf-dashboard-grid, .tf-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1rem; }
.tf-quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.5rem; }
.tf-quick-links__item { display: block; padding: 0.75rem; border: 1px solid var(--tf-border); border-radius: var(--tf-radius); text-align: center; text-decoration: none; color: var(--tf-text); font-weight: 500; font-size: 0.875rem; }
.tf-quick-links__item:hover { border-color: var(--tf-primary); color: var(--tf-primary); }
.tf-stat-card__hint { font-size: 0.8125rem; margin-top: 0.375rem; }
.tf-dl { display: grid; grid-template-columns: 8rem 1fr; gap: 0.5rem 1rem; margin: 0; }
.tf-dl dt { color: var(--tf-text-muted); font-size: 0.875rem; }
.tf-dl dd { margin: 0; font-weight: 500; }
.tf-color-swatch { display: inline-block; width: 1.5rem; height: 1.5rem; border-radius: var(--tf-radius); border: 1px solid var(--tf-border); vertical-align: middle; }
.tf-search-results { list-style: none; margin: 0; padding: 0; }
.tf-search-results li { padding: 0.625rem 0; border-bottom: 1px solid var(--tf-border); }
.tf-search-results li span { display: block; font-size: 0.875rem; }
.tf-notification-list { display: grid; gap: 0.75rem; }
.tf-notification-item.is-unread { border-color: color-mix(in srgb, var(--tf-primary) 25%, var(--tf-border)); }
#org-portal.is-sidebar-collapsed .tf-sidebar { margin-left: calc(-1 * var(--tf-sidebar-width)); }
.tf-section-title { font-size: 1rem; margin: 1.5rem 0 0.75rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--tf-border); }
.tf-section-title:first-child { margin-top: 0; }
.tf-tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; border-bottom: 1px solid var(--tf-border); }
.tf-tabs__item { padding: 0.625rem 0.875rem; font-size: 0.875rem; font-weight: 500; color: var(--tf-text-muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tf-tabs__item:hover { color: var(--tf-primary); }
.tf-tabs__item.is-active { color: var(--tf-primary); border-bottom-color: var(--tf-primary); }
.tf-timeline { list-style: none; margin: 0; padding: 0; }
.tf-timeline__item { padding: 0.75rem 0; border-bottom: 1px solid var(--tf-border); }
.tf-customer-header { display: flex; justify-content: space-between; align-items: start; gap: 1rem; flex-wrap: wrap; }
.tf-customer-filters .tf-form__row { margin-bottom: 0; }
@media (min-width: 1024px) {
    .tf-org-header__workspace-title { display: inline; }
}
@media (max-width: 1023px) {
    .tf-sidebar-toggle { display: inline-flex; }
    .tf-org-header__center { display: none; }
    .tf-utility-panel { position: fixed; right: 0; top: var(--tf-org-header-height); bottom: 0; z-index: 55; box-shadow: -4px 0 24px rgba(0,0,0,0.08); }
    #org-portal.is-sidebar-collapsed .tf-sidebar { margin-left: 0; display: none; }
}

/* ============================================================
   Marketing website — enterprise SaaS presentation layer
   Scoped primarily under .tf-marketing to protect portal UI
   ============================================================ */

.tf-skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 1000;
    background: #fff;
    color: #0b1220;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
}
.tf-skip-link:focus { top: 1rem; }

.tf-marketing {
    --mk-ink: #070b14;
    --mk-ink-2: #101826;
    --mk-mist: #f3f5f8;
    --mk-paper: #ffffff;
    --mk-line: rgba(15, 23, 42, 0.08);
    --mk-muted: #5b6577;
    --mk-mint: #12c4a0;
    --mk-mint-soft: rgba(18, 196, 160, 0.16);
    --mk-glow: rgba(26, 86, 219, 0.28);
    background:
        radial-gradient(1200px 480px at 80% -10%, rgba(18, 196, 160, 0.07), transparent 60%),
        var(--mk-mist);
    color: var(--tf-text);
    font-family: var(--tf-font);
}

.tf-marketing h1,
.tf-marketing h2,
.tf-marketing h3,
.tf-marketing .mk-brand,
.tf-marketing .tf-page-hero__title {
    font-family: var(--tf-display);
    letter-spacing: -0.03em;
}

.tf-marketing .tf-container {
    max-width: 72rem;
}

/* Marketing topnav */
.tf-topnav--marketing {
    --tf-topnav-height: 4rem;
    background: rgba(7, 11, 20, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    color: #fff;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.tf-topnav--marketing.is-scrolled {
    background: rgba(7, 11, 20, 0.92);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.tf-topnav--marketing .tf-topnav__brand,
.tf-topnav--marketing .tf-topnav__links a {
    color: rgba(255, 255, 255, 0.78);
}
.tf-topnav--marketing .tf-topnav__brand {
    color: #fff;
    font-family: var(--tf-display);
    font-weight: 700;
}
.tf-topnav--marketing .tf-topnav__links a:hover,
.tf-topnav--marketing .tf-topnav__links a.is-active {
    color: #fff;
}
.tf-topnav--marketing .tf-btn--ghost {
    color: rgba(255, 255, 255, 0.82);
}
.tf-topnav--marketing .tf-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.tf-topnav--marketing .tf-btn--primary {
    background: var(--mk-mint);
    color: #042219;
}
.tf-topnav--marketing .tf-btn--primary:hover {
    background: color-mix(in srgb, var(--mk-mint) 88%, #fff);
    color: #042219;
}
.tf-topnav--marketing .tf-mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 2.5rem;
    height: 2.5rem;
    align-items: center;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}
.tf-topnav--marketing .tf-mobile-menu-btn span {
    display: block;
    width: 1rem;
    height: 1.5px;
    background: #fff;
}
.tf-topnav--marketing .tf-topnav__nav { display: flex; }

@media (max-width: 900px) {
    .tf-topnav--marketing .tf-topnav__nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--tf-topnav-height);
        background: rgba(7, 11, 20, 0.98);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 1rem 1.25rem 1.25rem;
    }
    .tf-topnav--marketing.is-open .tf-topnav__nav { display: block; }
    .tf-topnav--marketing .tf-topnav__links {
        display: grid;
        gap: 0.75rem;
    }
    .tf-topnav--marketing .tf-mobile-menu-btn { display: inline-flex; }
    .tf-topnav--marketing .tf-topnav__actions .tf-btn--ghost { display: none; }
}

/* Reveal animation */
[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* Hero */
.mk-hero {
    position: relative;
    overflow: hidden;
    color: #f7fafc;
    background: var(--mk-ink);
    min-height: min(100vh, 56rem);
    display: flex;
    align-items: flex-end;
    padding: 7rem 0 4rem;
}
.mk-hero__atmosphere {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 420px at 18% 10%, rgba(18, 196, 160, 0.22), transparent 55%),
        radial-gradient(800px 480px at 85% 20%, var(--mk-glow), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.025) 0,
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px,
            transparent 64px
        );
    animation: mk-aurora 16s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes mk-aurora {
    from { transform: scale(1) translateY(0); filter: hue-rotate(0deg); }
    to { transform: scale(1.05) translateY(-1.5%); filter: hue-rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
    .mk-hero__atmosphere { animation: none; }
    [data-reveal] { opacity: 1; transform: none; transition: none; }
}
.mk-hero__grid {
    position: relative;
    z-index: 1;
    width: min(72rem, calc(100% - 2.5rem));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 3rem;
    align-items: end;
}
.mk-brand {
    margin: 0 0 0.75rem;
    font-size: clamp(2.5rem, 6vw, 4.25rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.045em;
    color: #fff;
}
.mk-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3.4vw, 2.55rem);
    font-weight: 650;
    line-height: 1.15;
    max-width: 18ch;
    color: rgba(255, 255, 255, 0.96);
}
.mk-hero__lede {
    margin: 0 0 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: rgba(226, 232, 240, 0.78);
    max-width: 34rem;
}
.mk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.tf-marketing .mk-hero .tf-btn--primary {
    background: var(--mk-mint);
    color: #042219;
    border: none;
    box-shadow: 0 10px 30px rgba(18, 196, 160, 0.25);
}
.tf-marketing .mk-hero .tf-btn--primary:hover {
    background: #34d7b5;
    color: #042219;
}
.mk-btn-ghost {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}
.mk-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.mk-hero__stage {
    position: relative;
    min-height: 24rem;
}
.mk-device--desktop {
    background: linear-gradient(180deg, #171f2f, #0d1320);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
    animation: mk-float 7s ease-in-out infinite;
}
@keyframes mk-float {
    0%, 100% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
    .mk-device--desktop { animation: none; }
}
.mk-device__chrome {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
}
.mk-device__chrome span {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #334155;
}
.mk-device__chrome span:nth-child(1) { background: #f87171; }
.mk-device__chrome span:nth-child(2) { background: #fbbf24; }
.mk-device__chrome span:nth-child(3) { background: #34d399; }
.mk-device__chrome em {
    margin-left: auto;
    font-style: normal;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.45);
}
.mk-screen--ops {
    display: grid;
    grid-template-columns: 4.5rem 1fr;
    min-height: 18rem;
}
.mk-screen__rail {
    padding: 0.85rem 0.55rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.02);
}
.mk-screen__rail strong {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem;
}
.mk-screen__rail i {
    display: block;
    height: 0.45rem;
    margin-bottom: 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}
.mk-screen__main { padding: 0.9rem; }
.mk-screen__main header {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.9rem;
}
.mk-screen__main header small {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.45);
}
.mk-screen__main header b {
    font-size: 0.95rem;
    color: #fff;
}
.mk-screen__chart {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    height: 5.5rem;
    margin-bottom: 0.9rem;
    padding: 0.5rem;
    border-radius: 0.65rem;
    background: rgba(18, 196, 160, 0.06);
    border: 1px solid rgba(18, 196, 160, 0.12);
}
.mk-screen__chart div {
    flex: 1;
    height: var(--h);
    border-radius: 0.3rem 0.3rem 0 0;
    background: linear-gradient(180deg, #5eead4, #0d9488);
}
.mk-screen__rows {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
}
.mk-screen__rows li {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.45rem;
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.75);
}
.mk-screen__rows em {
    font-style: normal;
    color: var(--mk-mint);
}
.mk-device--phone {
    position: absolute;
    right: -0.5rem;
    bottom: -1.5rem;
    z-index: 2;
}
.mk-phone {
    width: 11.5rem;
    border-radius: 1.35rem;
    padding: 0.55rem;
    background: linear-gradient(160deg, #1b2435, #0a0f18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}
.mk-phone__notch {
    width: 3.2rem;
    height: 0.35rem;
    border-radius: 999px;
    margin: 0.15rem auto 0.55rem;
    background: rgba(255, 255, 255, 0.18);
}
.mk-screen--mobile {
    background: linear-gradient(180deg, #132033, #0c1422);
    border-radius: 0.95rem;
    padding: 0.85rem;
    min-height: 15rem;
}
.mk-screen--mobile > p {
    margin: 0;
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.5);
}
.mk-screen--mobile > strong {
    display: block;
    margin-top: 0.2rem;
    font-size: 1.35rem;
    color: #fff;
    font-family: var(--tf-display);
}
.mk-screen--mobile > small {
    display: block;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.65rem;
}
.mk-phone__stats {
    display: flex;
    gap: 0.35rem;
    margin: 0.85rem 0;
}
.mk-phone__stats span {
    flex: 1;
    font-size: 0.58rem;
    padding: 0.35rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
}
.mk-phone__stop {
    padding: 0.55rem;
    border-radius: 0.55rem;
    background: rgba(18, 196, 160, 0.1);
    border: 1px solid rgba(18, 196, 160, 0.18);
    margin-bottom: 0.65rem;
}
.mk-phone__stop b,
.mk-phone__stop em {
    display: block;
    font-style: normal;
}
.mk-phone__stop b { font-size: 0.7rem; color: #fff; }
.mk-phone__stop em { font-size: 0.62rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.15rem; }
.mk-phone__cta {
    text-align: center;
    padding: 0.55rem;
    border-radius: 0.55rem;
    background: var(--mk-mint);
    color: #042219;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 960px) {
    .mk-hero { align-items: flex-start; padding-top: 6rem; min-height: auto; }
    .mk-hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .mk-device--desktop { transform: none; animation: none; }
    .mk-device--phone { position: relative; right: auto; bottom: auto; margin-top: -4rem; margin-left: auto; width: fit-content; }
    .mk-hero__title { max-width: none; }
}

/* Trust strip */
.mk-strip {
    background: #fff;
    border-bottom: 1px solid var(--mk-line);
}
.mk-strip__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
}
.mk-strip p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--tf-text);
}
.mk-strip ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}
.mk-strip li {
    font-size: 0.8125rem;
    color: var(--mk-muted);
}

/* Sections */
.mk-section { padding: 5.5rem 0; }
.mk-section--soft { background: #fff; }
.mk-section--ink {
    background:
        radial-gradient(700px 280px at 90% 10%, rgba(18, 196, 160, 0.12), transparent 55%),
        var(--mk-ink);
    color: #f8fafc;
}
.mk-section__intro {
    max-width: 40rem;
    margin-bottom: 2.75rem;
}
.mk-section__intro--center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.mk-kicker {
    margin: 0 0 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0f766e;
}
.mk-kicker--light { color: #5eead4; }
.mk-section__intro h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    font-weight: 700;
}

/* Problems */
.mk-problem-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--mk-line);
}
.mk-problem {
    display: grid;
    grid-template-columns: 5rem 1fr;
    gap: 1.25rem;
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--mk-line);
}
.mk-problem__index {
    font-family: var(--tf-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #94a3b8;
}
.mk-problem h3 {
    margin: 0 0 0.4rem;
    font-size: 1.25rem;
}
.mk-problem p {
    margin: 0;
    color: var(--mk-muted);
    max-width: 42rem;
}

/* Split */
.mk-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
}
.mk-split__copy h2 {
    margin: 0 0 1.5rem;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.15;
}
.mk-checklist {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.mk-checklist li {
    position: relative;
    padding-left: 1.6rem;
    color: rgba(226, 232, 240, 0.86);
}
.mk-checklist li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: var(--mk-mint);
    box-shadow: 0 0 0 4px rgba(18, 196, 160, 0.18);
}
.mk-text-link {
    color: inherit;
    font-weight: 650;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}
.mk-text-link:hover { opacity: 0.8; text-decoration: none; }
.mk-section--ink .mk-text-link { color: #5eead4; }
.mk-panel {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.mk-panel__label {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5eead4;
    font-weight: 700;
}
.mk-panel h3 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
    line-height: 1.25;
}
.mk-panel > p {
    margin: 0 0 1.5rem;
    color: rgba(226, 232, 240, 0.7);
}
.mk-panel__map {
    position: relative;
    height: 10rem;
    border-radius: 0.9rem;
    background:
        radial-gradient(circle at 30% 60%, rgba(18, 196, 160, 0.25), transparent 28%),
        radial-gradient(circle at 50% 48%, rgba(26, 86, 219, 0.22), transparent 24%),
        radial-gradient(circle at 72% 42%, rgba(18, 196, 160, 0.2), transparent 22%),
        linear-gradient(135deg, #132033, #0b1220);
    overflow: hidden;
}
.mk-panel__map span {
    position: absolute;
    left: var(--x);
    top: var(--y);
    transform: translate(-50%, -50%);
    font-size: 0.7rem;
    font-weight: 650;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    background: rgba(7, 11, 20, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 900px) {
    .mk-split { grid-template-columns: 1fr; }
}

/* Modules */
.mk-feature-stage {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.mk-feature-stage__item {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1.5rem;
    border-radius: 1.1rem;
    background: #fff;
    border: 1px solid var(--mk-line);
    text-decoration: none;
    color: inherit;
    min-height: 14rem;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mk-feature-stage__item:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.28);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    text-decoration: none;
}
.mk-feature-stage__item.is-primary {
    background:
        linear-gradient(160deg, rgba(18, 196, 160, 0.1), transparent 45%),
        #0d1320;
    color: #fff;
    border-color: transparent;
}
.mk-feature-stage__item.is-primary p { color: rgba(226, 232, 240, 0.72); }
.mk-feature-stage__item.is-primary .mk-text-link { color: #5eead4; }
.mk-feature-stage__meta {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #0f766e;
}
.mk-feature-stage__item.is-primary .mk-feature-stage__meta { color: #5eead4; }
.mk-feature-stage__item h3 {
    margin: 0;
    font-size: 1.25rem;
}
.mk-feature-stage__item p {
    margin: 0;
    color: var(--mk-muted);
    flex: 1;
}
.mk-module-index {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--mk-line);
    margin-bottom: 2rem;
}
.mk-module-index a {
    display: grid;
    gap: 0.25rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--mk-line);
    text-decoration: none;
    color: inherit;
}
.mk-module-index a:nth-child(odd) { padding-right: 1.25rem; }
.mk-module-index a:nth-child(even) { padding-left: 1.25rem; border-left: 1px solid var(--mk-line); }
.mk-module-index a:hover { color: #0f766e; text-decoration: none; }
.mk-module-index span {
    font-size: 0.875rem;
    color: var(--mk-muted);
}
.mk-center-link {
    text-align: center;
    margin: 0;
}

@media (max-width: 900px) {
    .mk-feature-stage { grid-template-columns: 1fr; }
    .mk-module-index { grid-template-columns: 1fr; }
    .mk-module-index a:nth-child(odd),
    .mk-module-index a:nth-child(even) {
        padding-left: 0;
        padding-right: 0;
        border-left: none;
    }
}

/* Experience */
.mk-experience {
    display: grid;
    gap: 2.5rem;
}
.mk-experience__item {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: center;
}
.mk-experience__item--reverse { grid-template-columns: 1.1fr 0.9fr; }
.mk-experience__item--reverse .mk-experience__visual { order: 2; }
.mk-experience__item h3 {
    margin: 0 0 0.5rem;
    font-size: 1.4rem;
}
.mk-experience__item p {
    margin: 0;
    color: var(--mk-muted);
    max-width: 34rem;
}
.mk-experience__visual {
    border-radius: 1.1rem;
    min-height: 11rem;
    display: grid;
    place-items: center;
    border: 1px solid var(--mk-line);
    background:
        radial-gradient(circle at 30% 20%, rgba(18, 196, 160, 0.12), transparent 45%),
        #0d1320;
}
.mk-experience__visual--desk {
    background:
        radial-gradient(circle at 70% 20%, rgba(26, 86, 219, 0.18), transparent 40%),
        #0d1320;
}
.mk-experience__visual--api {
    background: #0b1220;
    justify-items: stretch;
    padding: 1.25rem;
}
.mk-experience__visual--api pre {
    margin: 0;
    color: #99f6e4;
    font-size: 0.8rem;
    line-height: 1.6;
    white-space: pre-wrap;
}
.mk-mini-phone {
    width: 7.5rem;
    min-height: 12rem;
    border-radius: 1.1rem;
    padding: 0.85rem 0.7rem;
    background: linear-gradient(180deg, #183049, #0a1220);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
    color: #fff;
}
.mk-mini-phone b {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
}
.mk-mini-phone i {
    display: block;
    height: 1.35rem;
    margin-bottom: 0.45rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.08);
}
.mk-mini-desk {
    width: min(18rem, 90%);
    aspect-ratio: 16 / 10;
    border-radius: 0.7rem;
    background: #152033;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.7rem;
    display: grid;
    grid-template-columns: 0.3fr 1fr;
    gap: 0.55rem;
}
.mk-mini-desk span,
.mk-mini-desk div {
    border-radius: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
}
.mk-mini-desk span:first-child { grid-row: 1 / 3; }
.mk-mini-desk div { grid-column: 2; min-height: 4rem; background: linear-gradient(180deg, rgba(18, 196, 160, 0.2), rgba(255, 255, 255, 0.04)); }

@media (max-width: 800px) {
    .mk-experience__item,
    .mk-experience__item--reverse {
        grid-template-columns: 1fr;
    }
    .mk-experience__item--reverse .mk-experience__visual { order: 0; }
}

/* Trust */
.mk-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--mk-line);
}
.mk-trust h3 {
    margin: 1.25rem 0 0.5rem;
    font-size: 1.1rem;
}
.mk-trust p {
    margin: 0;
    color: var(--mk-muted);
}
.mk-trust > div::before {
    content: '';
    display: block;
    width: 2rem;
    height: 2px;
    background: var(--mk-mint);
}
@media (max-width: 800px) {
    .mk-trust { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* Journey */
.mk-journey {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    counter-reset: journey;
}
.mk-journey li {
    counter-increment: journey;
    position: relative;
    padding: 1.5rem 0 0;
}
.mk-journey li::before {
    content: counter(journey, decimal-leading-zero);
    display: block;
    margin-bottom: 0.85rem;
    font-family: var(--tf-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f766e;
}
.mk-journey li::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--mk-mint), rgba(15, 23, 42, 0.08));
}
.mk-journey strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.05rem;
}
.mk-journey span {
    color: var(--mk-muted);
    font-size: 0.9375rem;
}
@media (max-width: 900px) {
    .mk-journey { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .mk-journey { grid-template-columns: 1fr; }
}

/* Industries */
.mk-industries {
    display: grid;
    border-top: 1px solid var(--mk-line);
}
.mk-industries a {
    display: grid;
    grid-template-columns: minmax(12rem, 0.9fr) 1.4fr;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--mk-line);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.25s ease, color 0.2s ease;
}
.mk-industries a:hover {
    padding-left: 0.5rem;
    color: #0f766e;
    text-decoration: none;
}
.mk-industries span {
    font-family: var(--tf-display);
    font-size: 1.2rem;
    font-weight: 650;
}
.mk-industries em {
    font-style: normal;
    color: var(--mk-muted);
}
@media (max-width: 700px) {
    .mk-industries a { grid-template-columns: 1fr; gap: 0.35rem; }
}

/* FAQ */
.mk-faq {
    display: grid;
    gap: 0.65rem;
}
.mk-faq__item {
    border-bottom: 1px solid var(--mk-line);
    padding: 0 0.15rem;
}
.mk-faq__item summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 0;
    font-weight: 650;
    font-size: 1.02rem;
}
.mk-faq__item summary::-webkit-details-marker { display: none; }
.mk-faq__item p {
    margin: 0 0 1.1rem;
    color: var(--mk-muted);
}

/* CTA */
.mk-cta {
    position: relative;
    overflow: hidden;
    background: var(--mk-ink);
    color: #fff;
    padding: 5.5rem 0;
}
.mk-cta::before {
    content: '';
    position: absolute;
    inset: -20% auto auto 50%;
    width: 40rem;
    height: 40rem;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(18, 196, 160, 0.2), transparent 60%);
    pointer-events: none;
}
.mk-cta__inner {
    position: relative;
    text-align: center;
    max-width: 42rem;
    margin: 0 auto;
}
.mk-cta h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(1.9rem, 3.5vw, 2.8rem);
}
.mk-cta p {
    margin: 0 0 1.75rem;
    color: rgba(226, 232, 240, 0.75);
}
.mk-cta .tf-btn--primary {
    background: var(--mk-mint);
    color: #042219;
}
.mk-cta .tf-btn--primary:hover {
    background: #34d7b5;
    color: #042219;
}

/* Marketing secondary pages */
.tf-marketing .tf-page-hero {
    background:
        radial-gradient(700px 240px at 10% 0%, rgba(18, 196, 160, 0.12), transparent 55%),
        var(--mk-ink);
    border-bottom: none;
    color: #fff;
    padding: 5.5rem 0 3rem;
}
.tf-marketing .tf-page-hero__title { color: #fff; }
.tf-marketing .tf-page-hero__subtitle { color: rgba(226, 232, 240, 0.72); max-width: 38rem; }
.tf-marketing .tf-page-hero--accent {
    background:
        radial-gradient(700px 240px at 80% 0%, rgba(26, 86, 219, 0.22), transparent 50%),
        var(--mk-ink);
}
.tf-marketing .tf-breadcrumbs,
.tf-marketing .tf-breadcrumbs a,
.tf-marketing .tf-breadcrumbs__sep { color: rgba(226, 232, 240, 0.55); }
.tf-marketing .tf-section { padding: 3.5rem 0; }
.tf-marketing .tf-footer {
    background: #05080f;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(226, 232, 240, 0.7);
    padding: 3.5rem 0 2rem;
}
.tf-marketing .tf-footer__title { color: #fff; }
.tf-marketing .tf-footer__links a,
.tf-marketing .tf-footer__social a,
.tf-marketing .tf-footer__bottom,
.tf-marketing .tf-footer .tf-text-muted { color: rgba(226, 232, 240, 0.62); }
.tf-marketing .tf-footer__newsletter,
.tf-marketing .tf-footer__bottom { border-color: rgba(255, 255, 255, 0.08); }
.tf-marketing .tf-newsletter-form input {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.tf-marketing .tf-footer .tf-btn--primary {
    background: var(--mk-mint);
    color: #042219;
}
.tf-marketing .tf-card {
    border-radius: 1rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}
.tf-marketing .tf-prose h2 {
    font-family: var(--tf-display);
    letter-spacing: -0.02em;
}

.tf-marketing .mk-contact-title {
    margin: 0 0 1.25rem;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.15;
}

.tf-marketing .tf-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1.25rem;
}
.tf-marketing .tf-blog-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tf-marketing .tf-blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
