/* mfileads — one stylesheet for the marketing site, the app and the admin. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-sunk: #eef0f4;
  --card: #ffffff;
  --text: #0e1116;
  --text-2: #3b4250;
  --muted: #677084;
  --line: #e4e7ed;
  --line-strong: #d3d8e0;
  --brand: #0f9f6e;
  --brand-strong: #0b7f58;
  --brand-soft: #e5f6ef;
  --brand-ink: #064e36;
  --accent: #4f46e5;
  --accent-soft: #eceafd;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --danger: #c2343b;
  --danger-soft: #fdecec;
  --hero-1: #ecfdf5;
  --hero-2: #eef2ff;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -8px rgba(16, 24, 40, .12);
  --shadow-lg: 0 24px 60px -20px rgba(16, 24, 40, .28);
  --radius: 12px;
  --radius-lg: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12; --bg-soft: #11141b; --bg-sunk: #161a23; --card: #12161e; --text: #eef1f6; --text-2: #c3c9d4; --muted: #8b93a4;
    --line: #232937; --line-strong: #2f3646; --brand: #2fd39a; --brand-strong: #5ee3b4; --brand-soft: #0f2a21; --brand-ink: #a7f3d0;
    --accent: #8b85ff; --accent-soft: #1d1b3a; --warn: #f5b04c; --warn-soft: #2e2311; --danger: #ff7a80; --danger-soft: #331618;
    --hero-1: #0d1f19; --hero-2: #141533; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0d12; --bg-soft: #11141b; --bg-sunk: #161a23; --card: #12161e; --text: #eef1f6; --text-2: #c3c9d4; --muted: #8b93a4;
  --line: #232937; --line-strong: #2f3646; --brand: #2fd39a; --brand-strong: #5ee3b4; --brand-soft: #0f2a21; --brand-ink: #a7f3d0;
  --accent: #8b85ff; --accent-soft: #1d1b3a; --warn: #f5b04c; --warn-soft: #2e2311; --danger: #ff7a80; --danger-soft: #331618;
  --hero-1: #0d1f19; --hero-2: #141533; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -8px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--text); }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: .9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-sunk); padding: .1em .35em; border-radius: 5px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.center { text-align: center; }
.m0 { margin: 0; }
.mt { margin-top: 1.5rem; }
.mt-sm { margin-top: .75rem; }
.mt-lg { margin-top: 3rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ------------------------------------------------------------------ buttons, pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .65em 1.15em; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--card); color: var(--text); font: 600 .95rem/1.2 var(--font); cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px -8px var(--brand); }
:root[data-theme="dark"] .btn-primary { color: #04130d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #04130d; } }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-danger { color: var(--danger); border-color: var(--danger); background: transparent; }
.btn-sm { padding: .45em .85em; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: .85em 1.5em; font-size: 1.02rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; }
.iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); cursor: pointer; }
.iconbtn.ghost { border-color: transparent; background: transparent; }
.iconbtn:hover { background: var(--bg-sunk); }
.pill { display: inline-flex; align-items: center; gap: .3em; font: 600 .72rem/1 var(--font); padding: .35em .6em; border-radius: 999px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.pill-live { background: var(--brand-soft); color: var(--brand-strong); }
.pill-beta { background: var(--accent-soft); color: var(--accent); }
.pill-planned { background: var(--warn-soft); color: var(--warn); }
.pill-muted { background: var(--bg-sunk); color: var(--muted); }
.pill-danger { background: var(--danger-soft); color: var(--danger); }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 700 .78rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }

/* ------------------------------------------------------------------ top bar + mega menu */
.announce { background: var(--text); color: var(--bg); text-align: center; font-size: .88rem; padding: .5rem 1rem; }
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; gap: 1.25rem; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; font-size: 1.15rem; letter-spacing: -.03em; }
.logo:hover { text-decoration: none; }
.logo-accent { color: var(--brand); }
.mainnav { display: flex; align-items: center; gap: .15rem; flex: 1; }
.mainnav > a, .menu-trigger { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .75rem; border-radius: 8px; color: var(--text-2); font: 500 .94rem/1 var(--font); background: none; border: 0; cursor: pointer; }
.mainnav > a:hover, .menu-trigger:hover, .has-menu.open .menu-trigger { background: var(--bg-sunk); color: var(--text); text-decoration: none; }
.mainnav > a.active, .has-menu.is-current .menu-trigger { color: var(--text); font-weight: 600; }
.menu-trigger svg { transition: transform .15s; }
.has-menu.open .menu-trigger svg { transform: rotate(180deg); }
.has-menu { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: -12px; min-width: 620px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 1rem; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .15s, transform .15s, visibility .15s; }
.has-menu.open .mega { opacity: 1; visibility: visible; transform: none; }
.mega-wide { display: grid; grid-template-columns: 1fr 260px; gap: 1rem; min-width: 860px; }
.mega-cols > div { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.mega-cols .mega-label { grid-column: 1 / -1; }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .15rem; }
.mega-label { font: 700 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: .25rem .6rem .6rem; }
.mega-item { display: flex; gap: .8rem; padding: .7rem .6rem; border-radius: 10px; color: var(--text); }
.mega-item:hover, .mega-item.current { background: var(--bg-soft); text-decoration: none; }
.mega-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-strong); }
.mega-text { display: flex; flex-direction: column; gap: .15rem; }
.mega-text strong { font-size: .93rem; font-weight: 600; }
.mega-text span { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.mega-side { background: var(--bg-soft); border-radius: 12px; padding: .9rem; display: flex; flex-direction: column; gap: .35rem; }
.mega-side .mega-label { margin: 0 0 .4rem; }
.mega-feature { display: block; padding: .8rem; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--text); margin-bottom: .4rem; }
.mega-feature:hover { text-decoration: none; border-color: var(--brand); }
.mega-feature strong { display: block; font-size: .92rem; }
.mega-feature > span:last-child { font-size: .8rem; color: var(--muted); }
.mega-feature-art { display: flex; gap: 4px; height: 44px; align-items: flex-end; margin-bottom: .6rem; }
.mega-feature-art span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--brand), var(--accent)); opacity: .85; }
.mega-feature-art span:nth-child(1) { height: 100%; } .mega-feature-art span:nth-child(2) { height: 72%; } .mega-feature-art span:nth-child(3) { height: 48%; } .mega-feature-art span:nth-child(4) { height: 26%; }
.mega-link { display: flex; align-items: center; gap: .5rem; padding: .45rem .5rem; border-radius: 8px; color: var(--text-2); font-size: .88rem; }
.mega-link:hover { background: var(--card); text-decoration: none; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: .6rem; }
.navlink { color: var(--text-2); font-weight: 500; font-size: .94rem; }
.show-sm, .mobile-only { display: none; }
@media (max-width: 1080px) {
  .mainnav { position: fixed; inset: 64px 0 0; flex-direction: column; align-items: stretch; background: var(--bg); padding: 1rem 20px 2rem; overflow-y: auto; gap: .25rem; display: none; }
  .mainnav.open { display: flex; }
  .mainnav > a, .menu-trigger { width: 100%; justify-content: space-between; padding: .85rem .5rem; font-size: 1rem; }
  .mega, .mega-wide { position: static; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .5rem; display: none; }
  .has-menu.open .mega { display: block; }
  .mega-wide { grid-template-columns: 1fr; }
  .mega-cols > div, .mega-grid { grid-template-columns: 1fr; }
  .show-sm { display: inline-grid; }
  .hide-sm { display: none; }
  .mobile-only { display: flex; }
  .mobile-actions { flex-direction: column; gap: .5rem; margin-top: 1rem; }
}

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-sm { padding: 3rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-head.left { margin-left: 0; text-align: left; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 680px; }

.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.5rem); background: radial-gradient(1200px 500px at 15% -10%, var(--hero-1), transparent 60%), radial-gradient(900px 500px at 100% 0%, var(--hero-2), transparent 60%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.hero h1 .grad { background: linear-gradient(90deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.hero-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; color: var(--text-2); }
.hero-tag svg { color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.hero-note { font-size: .88rem; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-top: 2.5rem; }
.stats > div { background: var(--card); padding: 1.1rem 1.25rem; }
.stats dt { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.stats dd { margin: 0; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* product preview window */
.preview { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); font: 700 .72rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.preview-bar .dots { display: flex; gap: 5px; margin-right: .4rem; }
.preview-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.preview-bar .sample { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; }
.preview-body { padding: 1rem; }
.funnel { display: grid; gap: .55rem; }
.funnel-row { display: grid; grid-template-columns: 34px 1fr auto; gap: .75rem; align-items: center; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 12px; }
.funnel-row .fi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-strong); }
.funnel-row strong { display: block; font-size: .92rem; }
.funnel-row span { font-size: .78rem; color: var(--muted); }
.funnel-row .num { text-align: right; font-weight: 800; font-size: 1.15rem; }
.funnel-bar { grid-column: 2 / -1; height: 6px; border-radius: 6px; background: var(--bg-sunk); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.feed { margin-top: .9rem; border-top: 1px solid var(--line); padding-top: .8rem; display: grid; gap: .5rem; max-height: 168px; overflow: hidden; mask-image: linear-gradient(#000 70%, transparent); }
.feed-item { display: grid; grid-template-columns: 30px 1fr auto; gap: .6rem; align-items: center; font-size: .84rem; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 .72rem/1 var(--font); }
.feed-item .tag { font: 700 .66rem/1 var(--font); padding: .3em .5em; border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong); }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .9rem; }
.mini-kpis div { background: var(--bg-soft); border-radius: 10px; padding: .6rem .7rem; }
.mini-kpis strong { display: block; font-size: 1.1rem; }
.mini-kpis span { font-size: .74rem; color: var(--muted); }

/* ------------------------------------------------------------------ cards, grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; }
a.card { color: var(--text); display: block; transition: border-color .15s, transform .15s, box-shadow .15s; }
a.card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin-top: .9rem; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; }
.card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); }
.card-more { display: inline-flex; align-items: center; gap: .3rem; margin-top: 1rem; font-weight: 600; font-size: .9rem; color: var(--brand-strong); }
.ticks { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--text-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f9f6e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ticks-inline { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ticks li.planned { color: var(--muted); }
.ticks li.planned::before { background: var(--warn-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b45309' stroke-width='3' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3C/svg%3E") center / 70% no-repeat; }
.ticks .pill { margin-left: .35rem; vertical-align: 1px; }
.crosses li::before { background: var(--danger-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2343b' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7 7 17'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* feature rows (alternating) */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; padding: 3rem 0; border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; }
.frow:nth-of-type(even) .frow-art { order: -1; }
.frow h3 { font-size: 1.6rem; font-weight: 800; }
.frow p { color: var(--text-2); }
.frow-art { background: linear-gradient(135deg, var(--hero-1), var(--hero-2)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; min-height: 260px; display: grid; align-content: center; }
@media (max-width: 860px) { .frow { grid-template-columns: 1fr; gap: 1.5rem; } .frow:nth-of-type(even) .frow-art { order: 0; } }
.art-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; box-shadow: var(--shadow); }
.art-card + .art-card { margin-top: .6rem; }
.score-ring { --v: 80; width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--brand) calc(var(--v) * 1%), var(--bg-sunk) 0); }
.score-ring b { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--card); font-size: 1.3rem; }
.factor { display: grid; grid-template-columns: 1fr 120px 40px; gap: .6rem; align-items: center; font-size: .84rem; padding: .3rem 0; }
.factor .bar { height: 6px; background: var(--bg-sunk); border-radius: 6px; overflow: hidden; }
.factor .bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.factor b { text-align: right; }
.kanban-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.kanban-art > div { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .5rem; }
.kanban-art p { font: 700 .68rem/1 var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .2rem .2rem .5rem; }
.kanban-art span { display: block; height: 30px; border-radius: 7px; background: var(--bg-soft); border: 1px solid var(--line); margin-top: .35rem; }
.kanban-art span.hot { border-left: 3px solid var(--brand); }
.chat { display: grid; gap: .5rem; }
.bubble { max-width: 85%; padding: .6rem .8rem; border-radius: 14px; font-size: .85rem; background: var(--card); border: 1px solid var(--line); }
.bubble.out { justify-self: end; background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }

/* audience tabs */
.tabs { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-sunk); gap: 4px; margin-bottom: 1.5rem; }
.tabs button { border: 0; background: none; padding: .55rem 1rem; border-radius: 9px; font: 600 .9rem/1 var(--font); color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* comparison */
.compare { width: 100%; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.compare td.yes { color: var(--brand-strong); font-weight: 600; }
.compare td.no { color: var(--muted); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.plan.popular { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -12px; left: 1.75rem; background: var(--brand); color: #fff; font: 700 .72rem/1 var(--font); padding: .45em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.plan h3 { margin: 0; font-size: 1.25rem; }
.plan .tagline { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; margin: .5rem 0 0; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .ticks { flex: 1; margin-bottom: 1.5rem; }
.billing-toggle { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.1rem; }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq-a { padding: 0 0 1.1rem; color: var(--text-2); }

/* CTA band */
.cta-band { display: grid; grid-template-columns: 1.4fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 24px; color: #fff;
  background: radial-gradient(600px 300px at 0% 0%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, #0b7f58, #312e81); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 600px; }
.cta-band .ticks li { color: #fff; }
.cta-band .ticks li::before { background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7f58' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 75% no-repeat; }
.cta-actions { display: flex; flex-direction: column; gap: .6rem; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* page header + breadcrumbs */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 2rem; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }

/* prose (guides, legal) */
.prose { font-size: 1.05rem; color: var(--text-2); }
.prose h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .35rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 3px solid var(--brand); background: var(--bg-soft); border-radius: 0 10px 10px 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.toc { position: sticky; top: 84px; font-size: .9rem; }
.toc a { display: block; padding: .3rem 0; color: var(--muted); }
.article-grid { display: grid; grid-template-columns: 1fr 240px; gap: 3rem; }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } .toc { display: none; } }

/* forms */
.form { display: grid; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
label.field, .field { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--text-2); }
.field small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--card); color: var(--text); font: 400 .95rem/1.4 var(--font); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; font-weight: 400; color: var(--text-2); }
.check input { margin-top: .25rem; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.alert { padding: .85rem 1rem; border-radius: 10px; font-size: .92rem; border: 1px solid; }
.alert-ok { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.alert-err { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.alert-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.25rem, 4vw, 2rem); box-shadow: var(--shadow); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 3.5rem 0 1.5rem; margin-top: 2rem; }
.footer-top { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.footer h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.footer ul a { color: var(--text-2); font-size: .9rem; }
.newsletter { margin-top: 1.25rem; display: grid; gap: .4rem; }
.newsletter-row { display: flex; gap: .4rem; }
.newsletter-row input { padding: .55rem .7rem; }
.eco { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.eco-label { font-size: .8rem; font-weight: 700; color: var(--muted); }
.eco-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text-2); font-size: .82rem; }
.chip:hover { border-color: var(--brand); text-decoration: none; }
.footer-social { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .75rem; margin-top: 1rem; }
.footer-social-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.footer-social-links a { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; color: var(--text-2); }
.footer-social-links a:hover { color: var(--brand-strong); border-color: var(--brand); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.footer-bottom-links { display: flex; gap: 1rem; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* integration logos */
.int-card { display: flex; gap: 1rem; align-items: flex-start; }
.int-card .card-icon { flex: none; }
.int-card h3 { margin: 0 0 .25rem; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

/* trust strip */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 2rem; color: var(--muted); font-size: .9rem; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: .45rem; }
.trust svg { color: var(--brand); }

/* reveal on scroll (only when JS has marked the page ready) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ------------------------------------------------------------------ app + admin shell */
.app-body { background: var(--bg-soft); }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 1rem .75rem; display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: .3rem .5rem 1rem; }
.side-org { margin: 0 .5rem 1rem; padding: .6rem .7rem; border-radius: 10px; background: var(--bg-soft); font-size: .82rem; }
.side-org strong { display: block; font-size: .9rem; }
.side a.nav { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 9px; color: var(--text-2); font-size: .92rem; font-weight: 500; }
.side a.nav:hover { background: var(--bg-soft); text-decoration: none; }
.side a.nav.active { background: var(--brand-soft); color: var(--brand-strong); font-weight: 600; }
.side .nav-sep { margin: .8rem .7rem .3rem; font: 700 .68rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.side-foot { margin-top: auto; font-size: .82rem; }
.main { padding: 1.5rem clamp(1rem, 3vw, 2rem) 3rem; min-width: 0; }
.main-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.main-head h1 { font-size: 1.6rem; margin: 0; letter-spacing: -.02em; }
.app-top { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .app-top { display: flex; align-items: center; justify-content: space-between; padding: .6rem 1rem; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
}
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.25rem; }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.kpi span { font-size: .8rem; color: var(--muted); font-weight: 600; }
.kpi strong { display: block; font-size: 1.7rem; letter-spacing: -.03em; margin-top: .2rem; }
.kpi em { font-style: normal; font-size: .8rem; color: var(--muted); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .9rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 1rem; margin: 0; letter-spacing: 0; }
.panel-body { padding: 1.1rem; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: .65rem .9rem; border-bottom: 1px solid var(--line); background: var(--bg-soft); white-space: nowrap; }
.tbl td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--bg-soft); }
.tbl a { font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.score { display: inline-grid; place-items: center; min-width: 38px; padding: .25em .45em; border-radius: 8px; font-weight: 800; font-size: .85rem; }
.score.hot { background: var(--brand-soft); color: var(--brand-strong); }
.score.warm { background: var(--accent-soft); color: var(--accent); }
.score.cold { background: var(--bg-sunk); color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.filters input, .filters select { width: auto; padding: .5rem .7rem; font-size: .88rem; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: .8rem; overflow-x: auto; padding-bottom: 1rem; }
.col { background: var(--bg-sunk); border-radius: 14px; padding: .6rem; min-height: 300px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: .3rem .4rem .7rem; font-size: .82rem; font-weight: 700; }
.col-head span { color: var(--muted); font-weight: 600; }
.col.drop { outline: 2px dashed var(--brand); outline-offset: -4px; }
.lcard { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: .65rem .7rem; margin-bottom: .5rem; cursor: grab; color: var(--text); font-size: .86rem; }
.lcard:hover { text-decoration: none; border-color: var(--brand); }
.lcard.dragging { opacity: .5; }
.lcard-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.lcard small { display: block; color: var(--muted); margin-top: .2rem; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 1rem 1.4rem; border-left: 2px solid var(--line); margin-left: .4rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.timeline li.t-stage::before { background: var(--accent); }
.timeline li.t-system::before, .timeline li.t-consent::before { background: var(--muted); }
.timeline time { display: block; font-size: .78rem; color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .5rem 1rem; font-size: .9rem; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(900px 400px at 10% -10%, var(--hero-1), transparent 60%), radial-gradient(700px 400px at 100% 0%, var(--hero-2), transparent 60%), var(--bg); }
.auth-box { width: 100%; max-width: 440px; }
.auth-box .logo { justify-content: center; display: flex; margin-bottom: 1.5rem; }
.bars { display: grid; gap: .55rem; }
.bars div { display: grid; grid-template-columns: 140px 1fr 50px; gap: .7rem; align-items: center; font-size: .86rem; }
.bars .track { height: 8px; background: var(--bg-sunk); border-radius: 8px; overflow: hidden; }
.bars .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 8px; }
.bars b { text-align: right; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; border: 1px solid var(--line); }
.copyline { display: flex; gap: .5rem; }
.copyline input { font-family: ui-monospace, monospace; font-size: .85rem; }
@media print { .side, .app-top, .no-print, .topbar, .footer { display: none !important; } .shell { display: block; } }

/* Grid and flex children may shrink below their content width (prevents phone-width overflow). */
.hero-grid > *, .split > *, .two-col > *, .frow > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .footer-top > *, .main { min-width: 0; }
@media (max-width: 600px) {
  .hero-actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats dt { font-size: 1.3rem; }
  .mini-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .mini-kpis span { font-size: .68rem; }
  .factor { grid-template-columns: 1fr 70px 40px; }
  .kanban-art { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .newsletter-row { flex-direction: column; }
  .dl { grid-template-columns: 1fr; }
}

/* client video stories */
.stories-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.story-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.story-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.story-frame { position: relative; aspect-ratio: 16 / 9; background: #0b0b0e; overflow: hidden; }
.story-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.story-card:hover .story-frame img { transform: scale(1.03); }
.story-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.story-play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.35)); cursor: pointer; }
.story-play span { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--accent)); box-shadow: 0 10px 30px rgba(15,159,110,.45); transition: transform .2s; }
.story-play svg { width: 24px; height: 24px; fill: #fff; margin-left: 3px; }
.story-play:hover span, .story-play:focus-visible span { transform: scale(1.08); }
.story-time, .story-badge { position: absolute; top: .7rem; font: 600 .72rem var(--font); padding: .2rem .5rem; border-radius: 7px; background: rgba(0,0,0,.62); color: #fff; pointer-events: none; }
.story-time { right: .7rem; }
.story-badge { left: .7rem; text-transform: uppercase; letter-spacing: .06em; font-size: .62rem; }
.story-body { display: grid; gap: .35rem; padding: 1.25rem 1.3rem 1.4rem; align-content: start; flex: 1; }
.story-body h3 { margin: 0 0 .15rem; font-size: 1.1rem; }
.story-body h3 a { color: inherit; }
.story-person, .story-place { margin: 0; font-size: .9rem; color: var(--muted); }
.story-person strong { color: var(--text); }
.story-note { margin: .4rem 0 0; font-size: .93rem; color: var(--text-2); }
.story-quote { margin: .5rem 0 0; padding-left: .8rem; border-left: 2px solid var(--brand); font-style: italic; }
.story-tags { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.story-tags li { font-size: .72rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; color: var(--brand-strong); background: var(--brand-soft); }
.story-large { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.story-large:hover { transform: none; }
.story-large .story-body { padding: 1.75rem; align-content: center; }
.story-title { font-size: 1.7rem; margin: 0; }
@media (max-width: 860px) { .story-large { grid-template-columns: 1fr; } }

/* footer: CTAs, worldwide flag strip */
.footer-ctas { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.footer-world { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.flag-strip { display: flex; flex-wrap: wrap; gap: .35rem; }
.flag-strip a { display: inline-flex; padding: 3px; border-radius: 5px; border: 1px solid var(--line); background: var(--card); line-height: 0; transition: transform .15s, border-color .15s; }
.flag-strip a:hover { transform: translateY(-1px); border-color: var(--brand); }
.flag-img { width: 20px; height: 15px; object-fit: cover; border-radius: 2px; display: inline-block; vertical-align: -2px; }
.footer-bottom-links { align-items: center; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-2); }
.footer .eco { margin-top: 1.25rem; padding-top: 1.25rem; }
@media (max-width: 1100px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* "On approval": available, but switched on per institution by the mfileads team */
.pill-request { background: var(--accent-soft); color: var(--accent); }
.ticks li.request::before { background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v4l2 2'/%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E") center / 70% no-repeat; }
.int-countries { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.int-countries span { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; padding: .2rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .88rem; color: var(--muted); margin-top: 1rem; }

/* ------------------------------------------------------------------ sign-in / sign-up (split layout) */
.auth-body { background: var(--bg); }
.auth-split { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(2rem, 4vw, 3.5rem); color: #fff; overflow: hidden;
  background: radial-gradient(700px 420px at 0% 0%, rgba(255,255,255,.16), transparent 60%), radial-gradient(600px 500px at 100% 100%, rgba(79,70,229,.55), transparent 60%), linear-gradient(150deg, #0b7f58 0%, #0f5e57 45%, #2c2a7a 100%); }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 80%); pointer-events: none; }
.auth-aside > * { position: relative; z-index: 1; }
@media (min-width: 961px) { .auth-aside { position: sticky; top: 0; height: 100vh; } }
.auth-aside .logo, .auth-aside .logo-word { color: #fff; }
.auth-aside .logo-accent { color: #a7f3d0; }
.auth-pitch h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1.15; letter-spacing: -.03em; margin: .5rem 0 1.5rem; max-width: 520px; }
.auth-kicker { display: inline-block; margin: 0; padding: .35rem .75rem; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: .8rem; font-weight: 600; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; max-width: 520px; }
.auth-points li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; color: rgba(255,255,255,.88); }
.auth-points svg { flex: none; padding: 7px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.14); color: #fff; }
.auth-points strong { color: #fff; }
.auth-foot-note { font-size: .85rem; color: rgba(255,255,255,.75); }
.auth-foot-note p { margin: 0 0 .35rem; }
.auth-legal a { color: rgba(255,255,255,.85); }
.auth-main { display: flex; flex-direction: column; padding: 1.25rem clamp(1rem, 4vw, 3rem) 2rem; background: radial-gradient(700px 400px at 100% 0%, var(--hero-2), transparent 60%), var(--bg); }
.auth-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.auth-top-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.auth-top-actions a { color: var(--muted); }
.auth-mobile-logo { display: none; }
.auth-main .auth-box { width: 100%; max-width: 480px; margin: auto; padding: 2rem 0; }
.auth-title { font-size: clamp(1.6rem, 3vw, 2rem); letter-spacing: -.03em; margin-bottom: .35rem; }
.auth-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-strong); margin-bottom: 1rem; }
.auth-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 1.5rem; }
.auth-section { border: 0; margin: 0; padding: 0; display: grid; gap: .8rem; min-width: 0; }
.auth-section + .auth-section { padding-top: 1rem; border-top: 1px solid var(--line); }
.auth-section legend { font: 700 .72rem/1 var(--font); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 0; margin-bottom: .8rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field-row label { font-size: .88rem; font-weight: 600; color: var(--text-2); }
/* password field with show/hide and strength meter */
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); border: 0; background: var(--bg-sunk); color: var(--text-2); font: 600 .78rem/1 var(--font); padding: .45rem .6rem; border-radius: 7px; cursor: pointer; }
.pw-toggle:hover { color: var(--text); }
.pw-meter { display: flex; align-items: center; gap: .6rem; margin-top: .1rem; }
.pw-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--bg-sunk); overflow: hidden; }
.pw-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--danger); transition: width .25s, background .25s; }
.pw-meter[data-level="2"] .pw-bar i { background: var(--warn); }
.pw-meter[data-level="3"] .pw-bar i { background: var(--brand); }
.pw-meter[data-level="4"] .pw-bar i { background: var(--brand-strong); }
.pw-label { min-width: 120px; text-align: right; }
.caps-warn { color: var(--warn); font-weight: 600; }
/* plan picker */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.plan-opt { cursor: pointer; position: relative; }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt-box { display: grid; gap: .2rem; height: 100%; padding: .85rem .9rem; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.plan-opt-box strong { display: flex; align-items: center; gap: .4rem; font-size: .95rem; }
.plan-opt-box .pill { font-style: normal; }
.plan-opt-price { font-weight: 800; font-size: 1.15rem; }
.plan-opt-price small { font-weight: 500; font-size: .75rem; color: var(--muted); margin-left: .2rem; }
.plan-opt-meta { font-size: .78rem; color: var(--muted); }
.plan-opt input:checked + .plan-opt-box { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.plan-opt input:focus-visible + .plan-opt-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.cf-turnstile { min-height: 65px; }
@media (max-width: 960px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-logo { display: inline-flex; }
}
@media (max-width: 420px) { .plan-pick { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ app shell: sidebar + top bar */
.work { min-width: 0; display: flex; flex-direction: column; }
.workbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: .75rem; height: 60px; padding: 0 clamp(1rem, 3vw, 2rem); background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.workbar-search { position: relative; flex: 1; max-width: 460px; display: flex; align-items: center; }
.workbar-search svg { position: absolute; left: .7rem; color: var(--muted); pointer-events: none; }
.workbar-search input { padding: .5rem .8rem .5rem 2.2rem; font-size: .88rem; background: var(--bg-soft); border-color: var(--line); }
.workbar-actions { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.workbar-user { display: flex; align-items: center; gap: .55rem; color: var(--text); padding: .25rem .4rem; border-radius: 10px; }
.workbar-user:hover { background: var(--bg-soft); text-decoration: none; }
.workbar-who { display: grid; line-height: 1.2; }
.workbar-who strong { font-size: .84rem; font-weight: 600; white-space: nowrap; }
.show-nav { display: none; }
.side-nav { display: grid; gap: .1rem; overflow-y: auto; min-height: 0; flex: 1; align-content: start; }
.side a.nav > span { flex: 1; }
.nav-badge { font: 700 .7rem/1 var(--font); min-width: 20px; text-align: center; padding: .25em .4em; border-radius: 999px; background: var(--danger-soft); color: var(--danger); }
.side-org strong { margin-bottom: .1rem; }
.side-foot { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); display: grid; gap: .35rem; }
.side-plan { display: grid; gap: .35rem; padding: .65rem .7rem; border-radius: 10px; background: var(--bg-soft); color: var(--text); font-size: .82rem; }
.side-plan:hover { text-decoration: none; background: var(--bg-sunk); }
.side-plan-top { display: flex; justify-content: space-between; gap: .5rem; }
.meter { display: block; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 5px; background: var(--brand); }
.side-btn { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .5rem .7rem; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 500 .88rem var(--font); cursor: pointer; }
.side-btn:hover { background: var(--bg-soft); color: var(--text); }
@media (max-width: 900px) {
  .show-nav { display: inline-grid; }
  .workbar-who { display: none; }
}
@media (max-width: 560px) { .hide-xs { display: none; } .workbar { gap: .4rem; } }

/* ------------------------------------------------------------------ dashboard */
.dash-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 9px; background: var(--bg-sunk); }
.seg a { padding: .35rem .7rem; border-radius: 7px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.seg a:hover { color: var(--text); text-decoration: none; }
.seg a.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
.setup .meter-flat { border-radius: 0; height: 3px; }
.setup .meter-flat i { border-radius: 0; }
.setup-steps { list-style: none; margin: 0; padding: .9rem 1.1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .55rem 1.25rem; font-size: .9rem; }
.setup-steps li { display: flex; align-items: center; gap: .55rem; }
.setup-steps li.done { color: var(--muted); }
.setup-mark { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.done .setup-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.attn { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.attn-item { display: flex; align-items: center; gap: .6rem; padding: .7rem .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text-2); font-size: .84rem; transition: border-color .15s; }
.attn-item:hover { text-decoration: none; border-color: var(--brand); }
.attn-item strong { font-size: 1.15rem; color: var(--text); letter-spacing: -.02em; }
.attn-ic { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--bg-sunk); color: var(--muted); }
.attn-danger { border-color: var(--danger); }
.attn-danger .attn-ic { background: var(--danger-soft); color: var(--danger); }
.kpis { margin-bottom: 1rem; }
.kpis-sub { margin-bottom: 1.25rem; }
.kpis-sub .kpi strong { font-size: 1.3rem; }
.kpi em { display: block; margin-top: .25rem; line-height: 1.35; }
.kpi-unit { font-size: .55em; font-weight: 600; color: var(--muted); letter-spacing: 0; display: inline; }
.kpi span.kpi-unit { font-size: .55em; }
.delta { display: inline-flex; align-items: center; gap: .15rem; font-size: .8rem; font-weight: 700; }
.kpi span.delta { font-size: .8rem; font-weight: 700; }
.kpi span.delta-note { font-weight: 400; }
.kpi span.delta-up { color: var(--brand-strong); }
.kpi span.delta-down { color: var(--danger); }
.kpi span.delta-flat { color: var(--muted); font-weight: 500; }
.panel-head p { margin-top: .15rem; }
.panel-figure { font-size: 1.35rem; letter-spacing: -.03em; }
.tbl-num th:not(:first-child), .tbl-num td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.list { display: grid; gap: .1rem; }
.list-row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .4rem 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.upsell h2 { font-size: 1rem; letter-spacing: 0; margin-bottom: .3rem; }

/* one-series charts: thin marks in the brand colour, values in text colours, recessive axis */
.rbs { display: grid; gap: .2rem; }
.rb { display: grid; grid-template-columns: minmax(0, 118px) 1fr 44px; gap: .7rem; align-items: center; padding: .28rem .25rem; border-radius: 6px; font-size: .85rem; }
.rb:hover, .rb:focus-visible { background: var(--bg-soft); }
.rb-label { overflow-wrap: anywhere; color: var(--text-2); }
.rb-label a { color: inherit; font-weight: 500; }
.rb-track { height: 8px; }
.rb-track i { display: block; height: 100%; background: var(--brand); border-radius: 0 4px 4px 0; }
.rb b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cc { display: grid; grid-template-columns: 26px 1fr; grid-template-rows: 190px auto; column-gap: .5rem; }
.cc-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: .72rem; color: var(--muted); text-align: right; margin: -.45em 0; }
.cc-plot { position: relative; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-strong);
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat; }
.cc-col { flex: 1; min-width: 0; height: 100%; display: flex; align-items: flex-end; justify-content: center; border-radius: 4px 4px 0 0; }
.cc-col:hover, .cc-col:focus-visible { background: var(--bg-soft); }
.cc-col i { position: relative; display: block; width: 100%; max-width: 24px; background: var(--brand); border-radius: 4px 4px 0 0; font-style: normal; }
.cc-col:hover i, .cc-col:focus-visible i { background: var(--brand-strong); }
.cc-col b { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); font-size: .75rem; padding-bottom: 2px; }
.cc-x { grid-column: 2; display: flex; justify-content: space-between; margin-top: .4rem; font-size: .72rem; color: var(--muted); }
.chart-table { margin-top: .75rem; font-size: .85rem; }
.chart-table summary { cursor: pointer; color: var(--muted); font-size: .8rem; }
.chart-table[open] summary { margin-bottom: .5rem; }
.chart-tip { position: fixed; z-index: 90; max-width: 240px; padding: .5rem .65rem; border-radius: 8px; background: var(--text); color: var(--bg); font-size: .78rem; line-height: 1.35; pointer-events: none; box-shadow: var(--shadow-lg); }
.chart-tip strong { display: block; font-size: .92rem; }
.chart-tip span { display: block; opacity: .8; }

.tbl-hot td:nth-child(2) { min-width: 190px; }
.tbl-hot td:nth-child(3) { min-width: 120px; }
.tbl-hot td:nth-child(5) { white-space: nowrap; }

/* ------------------------------------------------------------------ account centre + 2FA */
.acct-check strong { font-size: 1.25rem; display: flex; align-items: center; gap: .35rem; }
.acct-check strong.is-good { color: var(--brand-strong); }
.acct-check strong.is-warn { color: var(--warn); }
.tabs-bar { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs-bar a { display: inline-flex; align-items: center; gap: .4rem; padding: .6rem .9rem; font-size: .9rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-bar a:hover { color: var(--text); text-decoration: none; }
.tabs-bar a.on { color: var(--text); border-bottom-color: var(--brand); }
.acct-id { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; flex: none; }
.acct-filter { padding-bottom: .4rem; }
.inline-form { grid-template-columns: 1fr auto; align-items: end; }
.code-input { font: 700 1.4rem/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .25em; text-align: center; }
.code-sm { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.tfa-steps { margin: 0 0 1rem; padding-left: 1.2rem; display: grid; gap: .9rem; font-size: .92rem; }
.tfa-qr { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: .7rem; }
.tfa-qr .qr img, .tfa-qr .qr canvas { display: block; width: 180px; height: 180px; }
.tfa-key { display: grid; gap: .4rem; justify-items: start; }
.tfa-key code { padding: .5rem .6rem; font-size: .9rem; line-height: 1.5; word-break: break-word; max-width: 230px; }
.recovery-box { border-color: var(--brand); }
.recovery-codes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .4rem; font: 600 .95rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.recovery-codes li { padding: .45rem .6rem; border-radius: 7px; background: var(--bg-soft); text-align: center; }
.danger-zone { margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .9rem; }
.danger-zone summary { cursor: pointer; color: var(--danger); font-weight: 600; }
.text-warn { color: var(--warn); }
@media (max-width: 560px) { .inline-form { grid-template-columns: 1fr; } }

/* idle sign-out warning */
.idle-back { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: rgba(8, 11, 18, .55); backdrop-filter: blur(3px); }
.idle-box { width: 100%; max-width: 400px; padding: 1.5rem; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.idle-box h2 { font-size: 1.2rem; letter-spacing: -.01em; }
.idle-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
