/* Squadivo — built from DESIGN-SYSTEM.md. Tokens first, then components, then pages. */
:root {
  --navy: #142046; --navy-deep: #0B1533; --navy-soft: #24356A; --navy-line: #2C3B6E;
  --green: #1CC54E; --green-bright: #3BD86A; --green-ink: #0A7A31; --green-wash: #E3F7EA;
  --canvas: #EEF2F7; --surface: #FFFFFF; --sunk: #F5F7FB;
  --ink: #0E1630; --muted: #56627D; --line: #D6DDE8; --line-strong: #B9C3D4;
  --amber: #B86E00; --amber-wash: #FFF3DC; --red: #C62828; --red-wash: #FDECEC;
  --brand: var(--green); --brand-ink: var(--navy-deep);
  --r-control: 8px; --r-panel: 12px; --r-card: 18px;
  --slant: 56deg;
  --display: 'Archivo', system-ui, sans-serif;
  --focus: 0 0 0 3px var(--surface), 0 0 0 5px var(--green);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body { font-family: 'Archivo', system-ui, -apple-system, sans-serif; font-size: 15px; font-stretch: 100%; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.55; }
a { color: var(--navy); text-underline-offset: 3px; }
img { max-width: 100%; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.icon { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
.container { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.pad { padding: 24px; } .pad-x { padding: 0 22px; } .pb { padding-bottom: 22px; }
.mt { margin-top: 16px; } .mt-sm { margin-top: 8px; } .mt-lg { margin-top: 24px; } .mb { margin-bottom: 16px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .strong { font-weight: 600; } .center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.row { display: flex; align-items: center; } .row.between { justify-content: space-between; } .row.wrap { flex-wrap: wrap; gap: 12px; }
.gap { gap: 12px; flex-wrap: wrap; } .gap-sm { gap: 8px; } .grow { flex: 1; min-width: 0; } .center-row { justify-content: center; }
.stack-lg > * + * { margin-top: 20px; }
.serif-h, .display { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; }
.serif-h { font-size: 20px; margin-bottom: 6px; }
.brand-text { color: var(--navy); font-weight: 600; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-stretch: 125%; font-weight: 700; font-size: 19px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.logo img { border-radius: 8px; }
.logo-text { display: flex; }
.logo-text span:first-child { color: var(--navy); } .logo-text span:last-child { color: var(--green); }
.logo.light .logo-text span:first-child { color: white; }

/* ---------- buttons ---------- */
.btn-primary { width: 100%; background: var(--navy); color: white; border: 1.5px solid var(--navy); padding: 14px 22px; border-radius: var(--r-control); font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; transition: background .15s, border-color .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn-primary:hover { background: var(--navy-soft); border-color: var(--navy-soft); }
.btn-primary:active { background: var(--navy-deep); }
.btn-primary.auto { width: auto; }
.btn-primary.green { background: var(--green); border-color: var(--green); color: var(--navy-deep); } .btn-primary.green:hover { background: var(--green-bright); border-color: var(--green-bright); }
.btn-primary.brand { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); } .btn-primary.brand:hover { filter: brightness(1.07); }
.btn-secondary { display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--navy); border: 1.5px solid var(--line-strong); padding: 14px 22px; border-radius: var(--r-control); font-weight: 600; font-size: 15px; line-height: 1.2; font-family: inherit; cursor: pointer; text-decoration: none; }
.btn-secondary:hover { border-color: var(--navy); } .btn-secondary.block { width: 100%; }
.btn-secondary.on-dark { background: transparent; color: white; border-color: rgba(255,255,255,.35); } .btn-secondary.on-dark:hover { border-color: white; }
.btn-action { background: var(--navy); color: white; border: 1px solid var(--navy); padding: 9px 15px; border-radius: var(--r-control); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; transition: background .15s; list-style: none; }
.btn-action:hover { background: var(--navy-soft); }
.btn-action.ghost { background: var(--surface); color: var(--navy); border-color: var(--line-strong); } .btn-action.ghost:hover { border-color: var(--navy); }
.btn-pill { background: var(--brand); color: var(--brand-ink) !important; padding: 9px 16px; border-radius: var(--r-control); font-weight: 600; text-decoration: none; }
.btn-pill.green { background: var(--green); color: var(--navy-deep) !important; }
.icon-btn { background: none; border: none; color: inherit; cursor: pointer; padding: 8px; border-radius: var(--r-control); display: grid; place-items: center; opacity: .75; }
.icon-btn:hover { opacity: 1; background: rgba(127,127,127,.14); }
.link-btn { background: none; border: none; color: var(--navy); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link-danger { background: none; border: none; color: var(--red); font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer; padding: 0; }
.copy-btn { background: var(--navy); color: white; border: none; padding: 7px 12px; border-radius: 6px; font-weight: 600; font-size: 12px; font-family: inherit; cursor: pointer; flex-shrink: 0; }
.type-card.featured .copy-btn { background: var(--green); color: var(--navy-deep); }

/* ---------- forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
input, select, textarea { font-family: inherit; }
.form-group input, .form-group select, .form-group textarea, .filters input, .filters select, [data-scan-form] input {
  width: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-control); padding: 11px 13px; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.form-group input:hover, .form-group select:hover, .form-group textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(28,197,78,.28); }
input:disabled { background: var(--sunk); color: var(--muted); }
.hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input-prefix { position: relative; }
.input-prefix .prefix { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.input-prefix input { padding-left: 30px; } .input-prefix.wide input { padding-left: 44px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 10px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); }
.divider { text-align: center; color: var(--muted); font-size: 13px; margin: 22px 0; position: relative; }
.divider::before, .divider::after { content: ''; position: absolute; top: 50%; width: calc(50% - 30px); height: 1px; background: var(--line); }
.divider::before { left: 0; } .divider::after { right: 0; }
.flash { padding: 12px 16px 12px 14px; border-radius: var(--r-control); margin: 0 0 20px; font-size: 15px; font-weight: 500; background: var(--green-wash); color: #075A24; border-left: 4px solid var(--green); }
.flash.err { background: var(--red-wash); color: #8E1B1B; border-left-color: var(--red); }
.site-main > .container > .flash { margin-top: 20px; }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.active { background: var(--green-wash); color: #075A24; }
.badge.pending { background: var(--amber-wash); color: #7A4A00; }
.badge.expired { background: #E7EBF2; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--green); } .dot.amber { background: #E19A0C; } .dot.grey { background: #8893AA; }

/* ---------- the slant (logo angle) ---------- */
.slant-band { position: relative; }
.slant-band::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(var(--slant), var(--green) 0 62%, transparent 62% 64%, var(--brand) 64%); }

/* ---------- auth screens ---------- */
.login-screen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.login-left { background: var(--navy); color: white; padding: 56px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.login-left::after { content: ''; position: absolute; right: -120px; bottom: -40px; width: 340px; height: 160px; background: var(--green); transform: skewX(-34deg); opacity: .9; }
.login-left-content, .login-stats { position: relative; z-index: 1; }
.login-headline { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(34px, 3.6vw, 50px); line-height: 1.04; letter-spacing: -0.025em; margin-top: 64px; max-width: 12ch; }
.login-headline em { font-style: normal; }
.login-sub { margin-top: 20px; font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.78); max-width: 44ch; }
.login-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 40px; max-width: 70%; }
.stat-num { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 26px; color: white; line-height: 1; }
.stat-label { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 6px; max-width: 16ch; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--surface); }
.login-card { width: 100%; max-width: 420px; }
.login-card h2 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 8px; }
.login-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 15px; }

/* ---------- marketing ---------- */
.marketing { background: var(--surface); }
.mk-header { background: var(--navy); }
.mk-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }
.mk-header nav { display: flex; align-items: center; gap: 22px; }
.mk-header nav a { color: white; text-decoration: none; font-weight: 600; font-size: 15px; }
.mk-hero { background: var(--navy); color: white; padding: 56px 0 96px; position: relative; overflow: hidden; }
.mk-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.mk-hero-copy { position: relative; max-width: 640px; }
.mk-hero h1 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(38px, 5.4vw, 70px); line-height: 1.0; letter-spacing: -0.03em; margin: 0 0 24px; }
.mk-hero h1 em { font-style: normal; }
.mk-hero p { font-size: 18px; color: rgba(255,255,255,.8); max-width: 50ch; margin-bottom: 32px; }
.mk-for { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.mk-hero-visual { position: relative; padding: 8px 0 76px; }
.mk-hero-visual .membership-card { transform: rotate(-4deg); max-width: 420px; margin-left: auto; box-shadow: 0 40px 70px -24px rgba(0,0,0,.6); }
.scan-chip { position: absolute; left: 0; bottom: 0; background: var(--surface); color: var(--ink); border-radius: var(--r-panel); padding: 12px 16px 12px 12px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px -16px rgba(0,0,0,.5); min-width: 250px; }
.scan-chip .tick { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--navy-deep); display: grid; place-items: center; flex-shrink: 0; }
.scan-chip strong { display: block; font-size: 15px; } .scan-chip span { font-size: 13px; color: var(--muted); }
.demo-pill { display: inline-block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 4px 12px; border-radius: 100px; font-size: 13px; font-weight: 500; }
.mk-features, .mk-steps, .mk-demo { padding: 88px 0; }
.mk-steps { background: var(--canvas); }
.section-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.025em; margin-bottom: 14px; line-height: 1.08; }
.section-lede { color: var(--muted); font-size: 17px; max-width: 56ch; }
.mk-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 56px; align-items: start; }
.mk-split > :first-child { position: sticky; top: 32px; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.mk-feature { padding: 22px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.mk-feature .feature-icon { grid-row: span 2; }
.mk-feature h3 { font-size: 17px; line-height: 1.3; } .mk-feature p { color: var(--muted); font-size: 15px; }
.feature-icon { width: 40px; height: 40px; border-radius: var(--r-control); background: var(--navy); color: var(--green); display: grid; place-items: center; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 36px 0 40px; counter-reset: s; }
.steps > div { padding: 0 28px 0 0; position: relative; }
.steps > div + div { padding-left: 28px; border-left: 1px solid var(--line-strong); }
.steps span { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 44px; line-height: 1; color: var(--navy); display: block; }
.steps h3 { margin: 14px 0 4px; font-size: 18px; } .steps p { color: var(--muted); font-size: 15px; max-width: 32ch; }
.mk-footer { padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--canvas); border-top: 1px solid var(--line); }
.mk-footer .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* demo views: a list of three doors, not a card row */
.demo-list { border-top: 2px solid var(--navy); margin-top: 28px; }
.demo-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 20px; align-items: center; padding: 22px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.demo-row:hover { background: var(--canvas); }
.demo-row:hover .demo-go { background: var(--navy); color: white; }
.demo-row .feature-icon { width: 48px; height: 48px; }
.demo-row h3 { font-size: 19px; font-family: var(--display); font-stretch: 112%; font-weight: 700; }
.demo-row p { color: var(--muted); font-size: 15px; }
.demo-go { font-weight: 600; color: var(--navy); font-size: 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-control); padding: 9px 14px; white-space: nowrap; transition: background .15s, color .15s; }

/* ---------- admin layout ---------- */
.app-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--navy); color: white; padding: 22px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.sidebar-top { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; }
.sidebar .logo { font-size: 16px; }
.sidebar-nav { display: flex; flex-direction: column; flex: 1; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: white; border-radius: var(--r-control); padding: 6px 11px; font-size: 18px; cursor: pointer; }
.menu-toggle.dark { color: var(--navy); border-color: var(--line-strong); }
.org-switch { display: flex; align-items: center; gap: 10px; margin: 22px 0 4px; padding: 10px; border-radius: var(--r-panel); background: var(--navy-soft); color: white; text-decoration: none; }
.org-switch:hover { background: var(--navy-line); }
.org-switch img { width: 36px; height: 36px; border-radius: 8px; object-fit: contain; background: white; }
.org-switch strong { display: block; font-size: 14px; line-height: 1.3; } .org-switch small { color: rgba(255,255,255,.65); font-size: 12px; }
.sidebar-section-label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.5); padding: 0 12px; margin: 22px 0 6px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: rgba(255,255,255,.78); text-decoration: none; border-radius: var(--r-control); font-size: 15px; font-weight: 500; margin-bottom: 2px; position: relative; }
.nav-item:hover { background: rgba(255,255,255,.07); color: white; }
.nav-item.active { background: rgba(255,255,255,.1); color: white; font-weight: 600; }
.nav-item.active::before { content: ''; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 6px; background: var(--green); clip-path: polygon(0 18%, 100% 0, 100% 82%, 0 100%); }
.nav-item.active .nav-icon { color: var(--green); }
.nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-footer { margin-top: auto; padding-top: 20px; }
.user-badge { display: flex; align-items: center; gap: 10px; font-size: 14px; border-top: 1px solid var(--navy-line); padding: 14px 6px 0; }
.user-name { color: white; font-weight: 600; } .user-email { color: rgba(255,255,255,.6); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--navy-deep); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.avatar.sm { width: 36px; height: 36px; border-radius: 8px; }
.avatar.brand { background: var(--brand); color: var(--brand-ink); border-radius: 10px; }
.main { padding: 36px 44px 64px; min-width: 0; max-width: 1280px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; margin: 4px 0 28px; gap: 20px; flex-wrap: wrap; }
.page-title { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(28px, 3vw, 38px); letter-spacing: -0.025em; line-height: 1.08; }
.page-subtitle { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 70ch; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.stat-card { padding: 22px 24px; position: relative; }
.stat-card + .stat-card { border-left: 1px solid var(--line); }
.stat-card.feature { background: var(--navy); color: white; }
.stat-card-label { font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.stat-card.feature .stat-card-label { color: rgba(255,255,255,.72); }
.stat-card-value { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 36px; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-card-value.small-val { font-size: 28px; }
.stat-card.feature .stat-card-value { color: white; }
.stat-card-trend { font-size: 13px; margin-top: 10px; color: var(--green-ink); font-weight: 600; }
.stat-card.feature .stat-card-trend { color: var(--green-bright); }
.stat-card-trend.down { color: var(--amber); }

.content-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.panel-header { padding: 18px 22px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.panel-action { color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; }
.panel-action:hover { text-decoration: underline; }
.onboarding { border-left: 4px solid var(--green); }
.onboarding .checklist { list-style: none; margin-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checklist li.done a { color: var(--muted); text-decoration: line-through; }
.tickbox { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex-shrink: 0; }
.checklist li.done .tickbox { background: var(--green); border-color: var(--green); color: var(--navy-deep); }
.tickbox .icon { width: 13px; height: 13px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
.table td { padding: 13px 22px; font-size: 15px; white-space: nowrap; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; } tr.clickable:hover td { background: var(--sunk); }
.member-row { display: flex; align-items: center; gap: 10px; }
.member-row .avatar { width: 32px; height: 32px; font-size: 11px; background: var(--canvas); color: var(--navy); border: 1px solid var(--line); }
.member-row .name { font-weight: 600; } .member-row .email { color: var(--muted); font-size: 13px; }
.filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filters input { flex: 1; min-width: 200px; } .filters select { width: auto; }
.tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 10px 14px; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--navy); border-bottom-color: var(--green); }
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kv span { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.hist { padding: 8px 0; border-bottom: 1px solid var(--line); } .hist:last-child { border: none; }
details summary { cursor: pointer; display: inline-flex; }
details summary::-webkit-details-marker { display: none; }
.qr-mini svg { width: 180px; height: 180px; }
.plan-bar { margin-bottom: 14px; }
.meter { height: 8px; border-radius: 2px; background: var(--canvas); margin-top: 6px; overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--navy); }
.mini-event { display: block; text-decoration: none; color: inherit; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mini-event:last-child { border: none; }

/* chart */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { font-size: 11px; fill: var(--muted); }
.chart .val { font-size: 10px; fill: var(--ink); font-weight: 600; }
.chart .baseline { stroke: var(--line); stroke-width: 1; }
.chart g.bar { cursor: default; outline: none; }
.chart g.bar.hover rect:not([fill=transparent]) { opacity: .85; }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.chart-tip { position: absolute; transform: translate(-50%, -100%); background: var(--navy-deep); color: white; font-size: 13px; padding: 6px 10px; border-radius: 6px; pointer-events: none; white-space: nowrap; }

/* plans */
.types-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 28px; }
.type-card, .plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.type-card::before, .plan-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--plan, var(--navy)); }
.type-card.featured, .plan-card.featured { background: var(--navy); color: white; border-color: var(--navy); }
.type-card.archived { opacity: .6; }
.type-name { font-family: var(--display); font-stretch: 112%; font-size: 19px; font-weight: 700; margin: 4px 0; }
.type-tagline { font-size: 14px; color: var(--muted); margin-bottom: 18px; min-height: 1.4em; }
.featured .type-tagline, .featured .type-period, .featured .type-features li { color: rgba(255,255,255,.78); }
.type-price { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -0.03em; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.type-period { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.type-features { list-style: none; margin: 0 0 20px; flex: 1; }
.type-features li { font-size: 14px; color: var(--ink); padding: 5px 0; display: flex; align-items: flex-start; gap: 8px; }
.icon.tick { width: 16px; height: 16px; color: var(--green-ink); margin-top: 2px; }
.featured .icon.tick { color: var(--green); }
.type-meta { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); margin-top: auto; }
.featured .type-meta { border-color: var(--navy-line); color: rgba(255,255,255,.7); }
.featured .type-meta a { color: white; }
.plan-flag { align-self: flex-start; margin-bottom: 8px; background: var(--green); color: var(--navy-deep); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.featured .btn-primary.brand { background: var(--green); border-color: var(--green); color: var(--navy-deep); }
.btn-primary.brand-plan { background: var(--plan); border-color: var(--plan); color: white; pointer-events: none; }
.qr-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 26px; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 28px; align-items: center; }
.qr-display { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 18px; display: grid; place-items: center; }
.qr-display svg { width: 200px; height: 200px; }
.share-link { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-control); padding: 8px 8px 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); margin-top: 10px; }
.share-link code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; }

.form-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 24px; margin-bottom: 16px; }
.form-section h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.form-section h3 + .form-group, .form-section h3 + .form-row { margin-top: 16px; }
.section-hint { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.narrow-form { max-width: 760px; }
.plan-editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 24px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 36px; height: 36px; border-radius: var(--r-control); cursor: pointer; position: relative; display: block !important; margin: 0 !important; }
.swatch input { position: absolute; opacity: 0; inset: 0; }
.swatch input:checked + span { position: absolute; inset: -4px; border: 2px solid var(--navy); border-radius: 11px; }
.swatch input:focus-visible + span { position: absolute; inset: -4px; border: 2px dashed var(--navy); border-radius: 11px; }
.color-input { width: 56px !important; height: 44px; padding: 4px !important; }
.logo-upload { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.logo-upload img { max-height: 90px; border-radius: var(--r-control); border: 1px solid var(--line); background: white; padding: 6px; }
.tt-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 0.9fr 36px; gap: 10px; align-items: end; padding-bottom: 6px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.tt-row .form-group { margin-bottom: 8px; }
.tt-row .remove { margin-bottom: 14px; }

/* scanner */
.scanner-screen { padding: 22px; }
.scanner-viewfinder { width: 100%; max-width: 420px; margin: 0 auto 14px; aspect-ratio: 1; background: var(--navy-deep); border-radius: var(--r-card); position: relative; overflow: hidden; }
.scanner-viewfinder video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 66%; aspect-ratio: 1; pointer-events: none; }
.scanner-corner { position: absolute; width: 30px; height: 30px; border: 4px solid var(--green); }
.scanner-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.scanner-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.scanner-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.scanner-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.scanner-line { position: absolute; left: 5%; right: 5%; height: 2px; background: var(--green); animation: scanline 2.5s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { top: 10%; } 50% { top: 90%; } }
.camera-btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); width: auto; }
.scan-result { border-radius: var(--r-panel); padding: 18px; margin-top: 16px; border: 2px solid var(--line); border-left-width: 8px; animation: fadeUp .25s ease; }
.scan-result.valid { border-color: var(--green); background: var(--green-wash); }
.scan-result.invalid { border-color: var(--red); background: var(--red-wash); }
.scan-result.warn { border-color: #E19A0C; background: var(--amber-wash); }
.scan-status { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 17px; }
.scan-status .check { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--green-ink); margin: 0; }
.invalid .scan-status .check { background: var(--red); } .warn .scan-status .check { background: var(--amber); }
.scan-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(14,22,48,.1); font-size: 14px; }
.scan-row:last-child { border: none; } .scan-row .key { color: var(--muted); } .scan-row .val { font-weight: 600; text-align: right; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- public club site ---------- */
.site { background: var(--canvas); display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.site-header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; position: relative; }
.site-brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); min-width: 0; }
.site-brand img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.site-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.site-nav a.active, .site-nav a:hover { color: var(--ink); }
.site-nav a.active:not(.btn-pill) { box-shadow: inset 0 -3px 0 var(--brand); padding: 22px 0 21px; }
.site-hero { background: var(--navy); color: white; padding: 64px 0 76px; position: relative; overflow: hidden; }
.site-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--brand); clip-path: polygon(0 0, 62% 0, 64% 100%, 0 100%); }
.site-hero .container { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 32px; align-items: center; }
.site-hero .container > :not(.hero-logo) { grid-column: 2; }
.hero-logo { grid-row: span 3; max-height: 128px; background: white; padding: 12px; border-radius: var(--r-panel); }
.site-hero h1 { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(32px, 5vw, 58px); line-height: 1.02; letter-spacing: -0.03em; }
.hero-tagline { font-size: 18px; color: rgba(255,255,255,.8); margin: 6px 0 24px; max-width: 56ch; }
.site-hero .center-row { justify-content: flex-start; }
.section { padding-top: 48px; padding-bottom: 24px; }
.section.narrow { max-width: 620px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head .section-title { margin: 0; }
.section-head > a { font-weight: 600; }
.about { font-size: 17px; color: #2B3554; max-width: 68ch; } .about p + p { margin-top: 14px; }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.event-list { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; }
.event-card { display: flex; align-items: center; gap: 18px; padding: 16px 20px; text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); }
.event-card:last-child { border-bottom: none; }
.event-card:hover { background: var(--sunk); }
.event-date { width: 58px; height: 62px; border-radius: var(--r-control); background: var(--navy); color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.event-date span { font-size: 12px; font-weight: 700; color: var(--brand); }
.event-date strong { font-family: var(--display); font-stretch: 125%; font-size: 24px; line-height: 1; }
.event-title { font-weight: 700; font-size: 17px; }
.event-price { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.event-price strong { color: var(--ink); font-size: 17px; }
.event-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.event-meta { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 24px; color: #2B3554; font-weight: 500; }
.event-meta div { display: flex; gap: 10px; align-items: center; }
.ticket-box { position: sticky; top: 90px; }
.ticket-box .flash { margin: 0 22px 14px; }
.ticket-types { border-top: 1px solid var(--line); margin-bottom: 16px; }
.ticket-type { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.ticket-type select { width: 72px; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--r-control); background: white; font-size: 15px; }
.ticket-total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 15px; }
.ticket-total strong { font-family: var(--display); font-stretch: 125%; font-size: 24px; }
.ticket-box .btn-primary { margin-bottom: 22px; }
.ticket-list { display: grid; gap: 14px; }
.ticket { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); overflow: hidden; position: relative; }
.ticket-main { flex: 1; padding: 18px 20px; border-right: 2px dashed var(--line-strong); min-width: 0; border-left: 6px solid var(--brand); }
.ticket-event { font-weight: 700; font-size: 17px; margin: 2px 0; }
.ticket-meta { display: flex; gap: 14px; font-size: 14px; font-weight: 600; margin: 10px 0 4px; flex-wrap: wrap; }
.ticket-qr { width: 140px; padding: 12px; display: grid; place-items: center; flex-shrink: 0; }
.ticket-qr svg { width: 116px; height: 116px; }
.success-check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); margin: 0 auto 20px; display: grid; place-items: center; color: var(--navy-deep); animation: pop .4s ease; }
.success-check.sm { width: 60px; height: 60px; } .success-check .icon { width: 30px; height: 30px; }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.06); } 100% { transform: scale(1); } }
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); margin-top: 64px; padding: 32px 0; font-size: 15px; }
.site-footer a { color: white; }
.site-footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.site-footer strong { color: white; }
.powered { font-size: 13px; }

/* join card */
.member-signup-screen { background: var(--navy); padding: 48px 20px 64px; display: flex; justify-content: center; position: relative; overflow: hidden; }
.signup-card { background: var(--surface); border-radius: var(--r-card); width: 100%; max-width: 480px; overflow: hidden; box-shadow: 0 40px 80px -24px rgba(0,0,0,.5); position: relative; }
.signup-header { background: var(--plan, var(--navy)); color: white; padding: 30px 32px 34px; position: relative; }
.signup-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--navy); clip-path: polygon(55% 0, 100% 0, 100% 100%, 53% 100%); }
.signup-org-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: rgba(255,255,255,.85); }
.signup-org-badge .dot { background: white; }
.signup-membership-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 30px; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 6px; }
.signup-price { font-size: 15px; color: rgba(255,255,255,.85); }
.signup-price strong { color: white; font-size: 24px; font-family: var(--display); font-stretch: 125%; font-weight: 800; }
.signup-body { padding: 28px 32px; }
.signup-perks { background: var(--sunk); border: 1px solid var(--line); border-radius: var(--r-control); padding: 14px 16px; margin-bottom: 22px; }
.signup-perks h4 { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.signup-perks ul { list-style: none; } .signup-perks li { font-size: 14px; padding: 3px 0; display: flex; gap: 8px; }
.stripe-trust { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* account + membership card (the signature object) */
.account-grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 28px; align-items: start; }
.membership-card { background: var(--navy); color: white; border-radius: var(--r-card); padding: 24px 26px; aspect-ratio: 1.586 / 1; position: relative; overflow: hidden; box-shadow: 0 28px 50px -24px rgba(20,32,70,.6); width: 100%; container-type: inline-size; }
.membership-card::before { content: ''; position: absolute; top: 0; bottom: 0; right: 23%; width: 26%; background: var(--plan, var(--green)); transform: skewX(-20deg); opacity: .95; }
.membership-card::after { content: ''; position: absolute; top: 0; bottom: 0; right: calc(23% + 26% + 2%); width: 4%; background: var(--green); transform: skewX(-20deg); }
.membership-card.inactive { filter: grayscale(.9); opacity: .75; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; position: relative; gap: 10px; z-index: 1; }
.card-org { font-size: 12px; color: rgba(255,255,255,.7); }
.card-org-name { font-size: 15px; font-weight: 700; margin-top: 1px; }
.card-tier { background: white; color: var(--navy); padding: 4px 9px; border-radius: 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
.card-name { font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: clamp(18px, 6.4cqi, 26px); letter-spacing: -0.02em; margin-top: 12px; position: relative; z-index: 1; max-width: 70%; line-height: 1.1; }
.card-bottom { position: absolute; bottom: 22px; left: 26px; right: 22px; display: flex; justify-content: space-between; align-items: flex-end; z-index: 1; }
.card-info-label { font-size: 11px; color: rgba(255,255,255,.7); }
.card-info-value { font-weight: 700; font-size: 14px; margin-top: 1px; font-variant-numeric: tabular-nums; }
.card-qr { width: 96px; height: 96px; background: white; border-radius: 8px; padding: 4px; }
.card-qr svg { width: 100%; height: 100%; display: block; }

/* checkout */
.checkout { background: var(--navy); }
.checkout-wrap { max-width: 480px; margin: 0 auto; padding: 40px 20px; }
.demo-banner { background: var(--amber-wash); color: #5C3A00; border-left: 4px solid #E19A0C; padding: 10px 14px; border-radius: var(--r-control); font-size: 14px; margin-bottom: 16px; }
.stripe-mock { background: white; border-radius: var(--r-panel); overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
.stripe-header { padding: 26px 30px 22px; border-bottom: 1px solid var(--line); }
.stripe-amount { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; margin-top: 10px; font-variant-numeric: tabular-nums; }
.line-items { list-style: none; margin-top: 12px; font-size: 14px; }
.line-items li { display: flex; justify-content: space-between; padding: 4px 0; }
.stripe-body { padding: 24px 30px; }
.stripe-pay-btn { width: 100%; background: #635bff; color: white; border: none; padding: 14px; border-radius: 8px; font-weight: 600; font-size: 15px; font-family: inherit; cursor: pointer; margin-top: 6px; }
.stripe-footer { text-align: center; padding: 16px; background: var(--sunk); font-size: 13px; color: var(--muted); }

/* ---------- demo switcher ---------- */
.demo-bar { background: var(--navy-deep); color: white; display: flex; align-items: center; gap: 12px; padding: 8px 16px; font-size: 14px; flex-wrap: wrap; border-bottom: 1px solid var(--navy-line); }
.demo-bar .demo-pill { background: var(--green); color: var(--navy-deep); border: none; font-weight: 700; font-size: 12px; padding: 2px 9px; border-radius: 4px; }
.demo-nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; min-width: 0; }
.demo-nav a { color: rgba(255,255,255,.78); text-decoration: none; padding: 5px 12px; border-radius: 6px; font-weight: 500; white-space: nowrap; }
.demo-nav a:hover { color: white; background: rgba(255,255,255,.08); }
.demo-nav a.active { background: rgba(255,255,255,.12); color: white; font-weight: 600; box-shadow: inset 0 -2px 0 var(--green); }
.demo-cta { color: var(--green); font-weight: 600; text-decoration: none; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-left { padding: 32px 24px 40px; gap: 28px; } .login-headline { margin-top: 32px; }
  .login-left::after { width: 200px; height: 90px; right: -80px; }
  .login-stats { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .mk-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .mk-split > :first-child { position: static; }
  .mk-hero-visual { max-width: 460px; }
  .app-layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; height: auto; z-index: 20; padding: 12px 16px; }
  .menu-toggle { display: block; }
  .sidebar-nav { display: none; } .sidebar.open .sidebar-nav { display: flex; }
  .nav-item.active::before { left: -16px; }
  .main { padding: 24px 16px 48px; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-card:nth-child(3) { border-left: none; } .stat-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .content-grid, .plan-editor, .event-layout, .account-grid, .share-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .steps > div + div { border-left: none; padding-left: 0; border-top: 1px solid var(--line-strong); padding-top: 22px; margin-top: 22px; }
  .demo-row { grid-template-columns: 48px minmax(0, 1fr); }
  .demo-row p { grid-column: 2; } .demo-row .demo-go { grid-column: 2; justify-self: start; }
  .preview-col .sticky, .ticket-box { position: static; }
  .tt-row { grid-template-columns: 1fr 1fr; } .tt-row .form-group:first-of-type { grid-column: 1 / -1; }
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: white; flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 14px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; } .site-nav .btn-pill { text-align: center; }
  .site-nav a.active:not(.btn-pill) { box-shadow: none; padding: 0; color: var(--ink); }
  .site-header .menu-toggle { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { padding-left: 16px; padding-right: 16px; }
  .form-row, .kv, .onboarding .checklist { grid-template-columns: 1fr; }
  .stat-card { padding: 18px; }
  .stat-card-value { font-size: 28px; }
  .login-stats { grid-template-columns: 1fr 1fr 1fr; } .stat-num { font-size: 20px; }
  .card-qr { width: 72px; height: 72px; }
  .card-bottom { bottom: 16px; left: 18px; right: 16px; } .membership-card { padding: 18px; }
  .ticket { flex-direction: column; } .ticket-main { border-right: none; border-bottom: 2px dashed var(--line-strong); }
  .ticket-qr { width: 100%; }
  .event-card { gap: 12px; padding: 14px; flex-wrap: wrap; }
  .event-price { width: 100%; text-align: left; padding-left: 70px; }
  .signup-body, .signup-header { padding: 24px 20px; }
  .mk-header nav a:not(.btn-pill) { display: none; }
  .mk-hero { padding: 40px 0 72px; }
  .mk-features, .mk-steps, .mk-demo { padding: 60px 0; }
  .scan-chip { min-width: 0; right: 24px; }
  .site-hero .container { grid-template-columns: 1fr; }
  .site-hero .container > :not(.hero-logo) { grid-column: 1; }
  .hero-logo { grid-row: auto; max-height: 80px; justify-self: start; margin-bottom: 8px; }
  .demo-cta { display: none; } .demo-nav a { padding: 4px 9px; font-size: 13px; }
}
@media (max-width: 1100px) { .mk-split { grid-template-columns: 1fr; gap: 28px; } .mk-split > :first-child { position: static; } }

/* In-page anchors land below the sticky top bar on phones. */
[id] { scroll-margin-top: 80px; }
