/* IncubaTrack — design system */
:root {
  --deep: #174C3A;
  --deep-2: #0f3a2b;
  --emerald: #26966C;
  --emerald-soft: #e3f3ec;
  --white: #FFFFFF;
  --grey: #F5F7F6;
  --grey-2: #eaeeec;
  --line: #dfe5e2;
  --text: #263238;
  --muted: #5f6b6d;
  --faint: #8a9597;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --warn: #b26b00;
  --warn-soft: #fff4e0;
  --info: #2a78d6;
  --info-soft: #e8f1fc;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 40, 32, .05), 0 1px 8px rgba(16, 40, 32, .04);
  --sidebar: 252px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--text); background: var(--grey); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5rem; line-height: 1.25; color: var(--text); }
h1 { font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; font-weight: 650; }
h3 { font-size: 1rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.icon-sm { width: 15px; height: 15px; flex: none; vertical-align: -2px; }
.icon-lg { width: 26px; height: 26px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.pre { white-space: pre-wrap; }
.mt { margin-top: 1rem; } .mt-2 { margin-top: 1.5rem; } .mb { margin-bottom: 1rem; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1rem; }

/* ---------- App shell ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar); background: var(--deep); color: #d6e7df; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; z-index: 40; transition: transform .2s ease; }
.sidebar .brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.2rem .9rem; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--emerald); display: grid; place-items: center; color: #fff; flex: none; }
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-weight: 750; font-size: 1.12rem; letter-spacing: -.01em; }
.brand-tag { font-size: .7rem; color: #9cc9b5; letter-spacing: .02em; }
.sidebar .org { margin: 0 .9rem .6rem; padding: .55rem .7rem; border-radius: var(--radius-sm); background: rgba(255,255,255,.06); font-size: .82rem; color: #e8f3ee; display: flex; align-items: center; gap: .5rem; overflow: hidden; }
.sidebar .org span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar nav { flex: 1; overflow-y: auto; padding: .3rem .6rem 1rem; }
.sidebar nav a { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: var(--radius-sm); color: #cfe2d9; font-weight: 500; font-size: .92rem; margin-bottom: 2px; }
.sidebar nav a:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sidebar nav a.active { background: var(--emerald); color: #fff; }
.sidebar nav a .lock { margin-left: auto; opacity: .7; }
.sidebar .side-foot { padding: .9rem 1.2rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .8rem; color: #9cc9b5; }
.sidebar .side-foot strong { color: #fff; }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: var(--white); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .8rem; padding: 0 1.5rem; position: sticky; top: 0; z-index: 30; }
.topbar .spacer { flex: 1; }
.menu-btn { display: none; background: none; border: 0; padding: .4rem; color: var(--text); cursor: pointer; border-radius: 8px; }
.menu-btn:hover { background: var(--grey); }
.user-chip { display: flex; align-items: center; gap: .55rem; padding: .3rem .5rem; border-radius: 999px; color: var(--text); }
.user-chip:hover { background: var(--grey); text-decoration: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--emerald-soft); color: var(--deep); display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex: none; }
.user-chip .who { line-height: 1.15; }
.user-chip .who small { display: block; color: var(--muted); font-size: .74rem; }
.content { padding: 1.6rem 1.6rem 3rem; max-width: 1320px; width: 100%; }
.scrim { display: none; }

/* language selector */
.lang-form { display: flex; align-items: center; gap: .3rem; }
.lang-form select { border: 1px solid var(--line); border-radius: 8px; padding: .3rem .5rem; font: inherit; font-size: .85rem; background: var(--white); color: var(--text); }
.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-switch button { border: 0; background: transparent; padding: .28rem .7rem; font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.lang-switch button.on { background: var(--deep); color: #fff; }

/* ---------- Page header ---------- */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin: .15rem 0 0; max-width: 70ch; }
.page-head .actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: .35rem; display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; color: var(--muted); font-weight: 550; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.active { color: var(--deep); border-color: var(--emerald); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem 1rem; border-radius: var(--radius-sm); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; text-decoration: none; line-height: 1.2; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: #1f8560; }
.btn-dark { background: var(--deep); color: #fff; }
.btn-dark:hover { background: var(--deep-2); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: var(--grey); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { background: var(--grey-2); color: var(--text); }
.btn-danger { background: var(--white); color: var(--danger); border-color: #f0c5bf; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { padding: .35rem .65rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.inline { display: inline; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.25rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-body { padding: 1.25rem; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }

/* stat tiles */
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); display: flex; gap: .85rem; align-items: flex-start; }
.stat .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--emerald-soft); color: var(--deep); display: grid; place-items: center; flex: none; }
.stat .val { font-size: 1.55rem; font-weight: 700; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat .lbl { color: var(--muted); font-size: .83rem; margin-top: .15rem; }
.stat .hint { color: var(--faint); font-size: .75rem; margin-top: .2rem; }
.stat a { color: inherit; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .16rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--grey-2); color: var(--muted); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-green { background: var(--emerald-soft); color: #18734f; }
.b-blue { background: var(--info-soft); color: #1f5fae; }
.b-amber { background: var(--warn-soft); color: var(--warn); }
.b-red { background: var(--danger-soft); color: var(--danger); }
.b-grey { background: var(--grey-2); color: var(--muted); }
.b-dark { background: var(--deep); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: .7rem 1rem; border-bottom: 1px solid var(--line); background: #fafbfb; white-space: nowrap; }
table.data th a { color: inherit; }
table.data td { padding: .72rem 1rem; border-bottom: 1px solid var(--grey-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fafcfb; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .row-link { font-weight: 600; color: var(--text); }
table.data .row-link:hover { color: var(--emerald); }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: .75rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; gap: .5rem; flex-wrap: wrap; }
.pager { display: flex; gap: .3rem; }

/* ---------- Toolbar / filters ---------- */
.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.toolbar .search { flex: 1 1 220px; position: relative; }
.toolbar .search .icon { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--faint); }
.toolbar .search input { padding-left: 2.2rem; }
.toolbar select, .toolbar input { min-width: 0; }
.toolbar .fld { display: flex; flex-direction: column; gap: .2rem; }
.toolbar .fld label { font-size: .75rem; color: var(--muted); font-weight: 600; }
.filterbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem 1rem; }
.filterbar .fld { display: flex; flex-direction: column; gap: .2rem; }
.filterbar label { font-size: .75rem; color: var(--muted); font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .35rem; }
.field .req { color: var(--danger); margin-left: .15rem; }
.field .help { color: var(--muted); font-size: .8rem; margin-top: .3rem; }
.field .err { color: var(--danger); font-size: .82rem; margin-top: .3rem; font-weight: 500; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); background: #fffafa; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=date], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: .55rem .75rem; border: 1px solid #cfd8d4; border-radius: var(--radius-sm); font: inherit; font-size: .92rem; color: var(--text); background: var(--white);
}
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid rgba(38,150,108,.25); outline-offset: 1px; border-color: var(--emerald); }
textarea { min-height: 96px; resize: vertical; }
.form-section { grid-column: 1 / -1; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--emerald); font-weight: 700; padding-top: .5rem; border-top: 1px solid var(--grey-2); margin-top: .25rem; }
.form-section:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.form-actions { display: flex; gap: .6rem; justify-content: flex-end; padding: 1rem 1.25rem; border-top: 1px solid var(--line); background: #fafbfb; border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.check input { margin-top: .25rem; accent-color: var(--emerald); }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; }
.radio-card span { display: block; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .65rem .75rem; cursor: pointer; background: var(--white); }
.radio-card span b { display: block; }
.radio-card span small { color: var(--muted); }
.radio-card input:checked + span { border-color: var(--emerald); background: var(--emerald-soft); }
.radio-card input:focus-visible + span { outline: 3px solid rgba(38,150,108,.25); }

/* definition list */
.dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.dl > div { padding: .8rem 1.25rem; border-bottom: 1px solid var(--grey-2); }
.dl > div.full { grid-column: 1 / -1; }
.dl dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; font-weight: 600; margin-bottom: .2rem; }
.dl dd { margin: 0; word-break: break-word; }

/* ---------- Alerts / flash ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .92rem; border: 1px solid transparent; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--emerald-soft); color: #145c40; border-color: #c4e6d6; }
.alert-error { background: var(--danger-soft); color: #8e2a1f; border-color: #f3c9c3; }
.alert-warn { background: var(--warn-soft); color: #7a4a00; border-color: #f4dcae; }
.alert-info { background: var(--info-soft); color: #1d4f8c; border-color: #cddff6; }
.banner { padding: .6rem 1.6rem; font-size: .88rem; display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.banner.warn { background: var(--warn-soft); color: #7a4a00; border-bottom: 1px solid #f4dcae; }
.banner.info { background: var(--emerald-soft); color: #145c40; border-bottom: 1px solid #c4e6d6; }
.banner a { font-weight: 600; }

/* empty states */
.empty { text-align: center; padding: 3rem 1.5rem; color: var(--muted); }
.empty .ic { width: 56px; height: 56px; border-radius: 16px; background: var(--emerald-soft); color: var(--deep); display: grid; place-items: center; margin: 0 auto 1rem; }
.empty h3 { color: var(--text); }
.empty p { max-width: 46ch; margin: 0 auto 1rem; }

/* progress */
.progress { height: 8px; border-radius: 999px; background: var(--grey-2); overflow: hidden; min-width: 80px; }
.progress > span { display: block; height: 100%; background: var(--emerald); border-radius: 999px; }
.progress.lg { height: 10px; }
.prog-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 52px; gap: .75rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--grey-2); font-size: .9rem; }
.prog-row:last-child { border-bottom: 0; }
.prog-row .pv { text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; }

/* charts */
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 220px; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--faint); font-size: .9rem; text-align: center; }

/* checklist (onboarding) */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: .7rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--grey-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist .dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; flex: none; color: #fff; }
.checklist .done .dot { background: var(--emerald); border-color: var(--emerald); }
.checklist .done .t { color: var(--muted); text-decoration: line-through; }

/* score */
.score-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: center; }
.score-scale { display: inline-flex; gap: .25rem; }
.score-scale label { position: relative; }
.score-scale input { position: absolute; opacity: 0; }
.score-scale span { display: grid; place-items: center; width: 34px; height: 34px; border: 1.5px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 600; background: #fff; }
.score-scale input:checked + span { background: var(--emerald); color: #fff; border-color: var(--emerald); }
.score-scale input:focus-visible + span { outline: 3px solid rgba(38,150,108,.3); }

/* timeline / list items */
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: .7rem 1.25rem; border-bottom: 1px solid var(--grey-2); display: flex; gap: .75rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.list li:last-child { border-bottom: 0; }
.kv { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--grey-2); gap: 1rem; }
.kv:last-child { border-bottom: 0; }
.kv span:last-child { font-weight: 600; text-align: right; }
.invite-box { background: var(--grey); border: 1px dashed var(--emerald); border-radius: var(--radius-sm); padding: .75rem; display: flex; gap: .5rem; align-items: center; }
.invite-box input { font-family: ui-monospace, monospace; font-size: .8rem; }
details.inline-edit summary { cursor: pointer; list-style: none; }
details.inline-edit summary::-webkit-details-marker { display: none; }
details.inline-edit[open] { background: var(--grey); border-radius: var(--radius-sm); padding: .6rem; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-side { background: var(--deep); color: #d6e7df; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side h2 { color: #fff; font-size: 1.9rem; max-width: 18ch; line-height: 1.2; }
.auth-side ul { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.auth-side li { display: flex; gap: .6rem; align-items: center; padding: .4rem 0; }
.auth-side li .icon { color: #7fd1ad; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1.25rem; background: var(--white); }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 620px; }
.auth-card h1 { margin-bottom: .3rem; }
.auth-top { position: absolute; top: 1rem; right: 1.25rem; }
.demo-box { margin-top: 1.5rem; background: var(--grey); border-radius: var(--radius-sm); padding: .8rem 1rem; font-size: .82rem; color: var(--muted); }
.demo-box code { color: var(--deep); font-size: .8rem; }

/* ---------- Public site ---------- */
.pub-head { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.pub-head .inner, .pub-section .inner, .pub-foot .inner { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }
.pub-head .inner { display: flex; align-items: center; gap: 1rem; height: 66px; }
.pub-head .brand { display: flex; align-items: center; gap: .55rem; color: var(--deep); font-weight: 750; font-size: 1.15rem; }
.pub-head .brand:hover { text-decoration: none; }
.pub-head nav { display: flex; gap: 1.2rem; margin-left: 1.5rem; }
.pub-head nav a { color: var(--text); font-weight: 500; }
.pub-head .spacer { flex: 1; }
.hero { background: linear-gradient(180deg, var(--white), var(--grey)); padding: 4.5rem 0 3.5rem; }
.hero .inner { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; gap: .4rem; align-items: center; background: var(--emerald-soft); color: var(--deep); padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 650; margin-bottom: 1rem; }
.hero h1 { font-size: 2.6rem; line-height: 1.12; letter-spacing: -.02em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: var(--emerald); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 52ch; }
.hero .cta { display: flex; gap: .7rem; margin-top: 1.6rem; flex-wrap: wrap; }
.hero .btn { padding: .75rem 1.3rem; font-size: 1rem; }
.mock { background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(23,76,58,.12); padding: 1.1rem; }
.mock .mrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: .7rem; }
.mock .mstat { background: var(--grey); border-radius: 10px; padding: .7rem; }
.mock .mstat b { display: block; font-size: 1.3rem; color: var(--deep); }
.mock .mstat small { color: var(--muted); font-size: .72rem; }
.mock .bars { display: flex; align-items: flex-end; gap: 8px; height: 120px; padding: .5rem; background: var(--grey); border-radius: 10px; }
.mock .bars i { flex: 1; background: var(--emerald); border-radius: 4px 4px 0 0; display: block; }
.mock .bars i:nth-child(even) { background: var(--deep); }
.pub-section { padding: 4rem 0; }
.pub-section.alt { background: var(--white); }
.pub-section h2 { font-size: 1.8rem; text-align: center; margin-bottom: .5rem; }
.pub-section .lead { text-align: center; color: var(--muted); max-width: 60ch; margin: 0 auto 2.5rem; }
.feature { padding: 1.4rem; }
.feature .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--emerald-soft); color: var(--deep); display: grid; place-items: center; margin-bottom: .8rem; }
.feature p { color: var(--muted); margin: 0; font-size: .92rem; }
.steps { counter-reset: step; }
.steps .step { padding: 1.3rem; }
.steps .step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--deep); color: #fff; font-weight: 700; margin-bottom: .7rem; }
.pub-foot { background: var(--deep); color: #b5d5c6; padding: 2.5rem 0; font-size: .88rem; }
.pub-foot .inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pub-foot a { color: #fff; }
.cta-band { background: var(--deep); color: #fff; border-radius: 18px; padding: 2.5rem; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; text-align: left; margin: 0; }
.cta-band p { color: #b5d5c6; margin: .3rem 0 0; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 1.5rem 1.3rem; display: flex; flex-direction: column; position: relative; box-shadow: var(--shadow); }
.plan.featured { border: 2px solid var(--emerald); box-shadow: 0 16px 40px rgba(38,150,108,.16); }
.plan.current { border-color: var(--deep); }
.plan .ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--emerald); color: #fff; font-size: .74rem; font-weight: 700; padding: .25rem .8rem; border-radius: 999px; white-space: nowrap; letter-spacing: .02em; }
.plan .ribbon.dark { background: var(--deep); }
.plan h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--deep); }
.plan .for { color: var(--muted); font-size: .86rem; min-height: 2.6em; }
.plan .price { margin: .8rem 0 1rem; }
.plan .price b { font-size: 1.75rem; font-weight: 750; letter-spacing: -.01em; }
.plan .price span { color: var(--muted); font-size: .85rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.3rem; flex: 1; }
.plan li { display: flex; gap: .5rem; padding: .32rem 0; font-size: .89rem; align-items: flex-start; }
.plan li .icon { color: var(--emerald); width: 16px; height: 16px; margin-top: 3px; }
.plan li.cap { font-weight: 600; }
.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .9rem 1.1rem; margin-bottom: .6rem; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: .6rem 0 0; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0,0,0,.25); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(15,30,25,.35); z-index: 35; }
  .main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .hero .inner { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .pub-head nav { display: none; }
  .user-chip .who { display: none; }
}
@media (max-width: 640px) {
  .content { padding: 1rem 1rem 2.5rem; }
  .topbar { padding: 0 1rem; }
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .grid-4.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid, .dl { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .stat .val { font-size: 1.3rem; }
  h1 { font-size: 1.3rem; }
  .prog-row { grid-template-columns: minmax(0, 1fr) 70px 46px; }
  .banner { padding: .6rem 1rem; }
  .pub-head .btn-secondary { display: none; }
}
@media print {
  .sidebar, .topbar, .page-head .actions, .filterbar, .banner { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; }
}

/* public form cards and small-screen header */
.pub-section .card h2 { text-align: left; font-size: 1.15rem; margin: 0; }
@media (max-width: 560px) {
  .pub-head .inner { gap: .5rem; }
  .pub-head .btn-primary { display: none; }
  .pub-head .brand { font-size: 1rem; }
}

/* SHIFAI publisher */
.shifai-badge { display: inline-flex; background: #FCFDFC; border-radius: 10px; padding: .35rem .6rem; }
.shifai-badge img { display: block; height: auto; }
.shifai-badge.light { border: 1px solid var(--line); }
.shifai-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem; align-items: center; }
@media (max-width: 900px) { .shifai-intro { grid-template-columns: 1fr; } .pub-foot .inner > div:last-child { text-align: left !important; } }
