/* Telic ERP app shell — same palette and type as the public site */
:root {
    --bg: #F7F8F6; --surface: #FFFFFF; --sunk: #EEF1EE; --line: #D9DFDA;
    --ink: #0F2422; --muted: #56635F; --accent: #0B6E5F; --accent-soft: #DCEFEA;
    --mark: #E4A23A; --good: #1F8A4C; --warn: #A15C00; --bad: #B3261E;
    --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
    --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0C1514; --surface: #13201E; --sunk: #0F1A19; --line: #24342F;
        --ink: #E7EFEC; --muted: #9AABA5; --accent: #3FC1A6; --accent-soft: #12342D;
        --mark: #F0B455; --good: #4CC57F; --warn: #F0B455; --bad: #FF8A80; color-scheme: dark;
    }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
a { color: var(--accent); }
h1, h2 { font-family: var(--display); line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.eyebrow { font: 600 .74rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.topbar { display: flex; align-items: center; height: 60px; padding: 0 max(16px, 4vw); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font: 800 1.15rem var(--display); color: var(--ink); text-decoration: none; }
/* grid-template-columns: minmax(0, 1fr), not the implicit "auto" default, so a wide descendant
   (e.g. the plans-comparison table, which carries its own min-width and horizontal scroll) can
   never force this single-column track past the viewport — a classic CSS Grid "blowout" that was
   pre-existing on the Pricing page and would recur anywhere else a wide table or image landed. */
.page { max-width: 1040px; margin: 0 auto; padding: 32px max(16px, 4vw) 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid transparent; font: 600 .95rem var(--body); cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn.small { padding: 6px 12px; font-size: .82rem; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; }
.card.success { border-color: var(--accent); background: var(--accent-soft); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.landing { padding-block: 48px; display: grid; gap: 16px; }

/* wizard */
.wizard { max-width: 640px; display: grid; gap: 20px; }
.stepper { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li { padding-top: 10px; border-top: 3px solid var(--line); font-size: .85rem; color: var(--muted); font-weight: 600; }
.stepper li.now { border-color: var(--accent); color: var(--ink); }
.stepper li.done { border-color: var(--good); }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
input, select { font: 400 1rem var(--body); padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; }
input.mono { font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.option { padding: 12px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: 500 .92rem var(--body); cursor: pointer; text-align: left; }
.option.on { border-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.hint { font-weight: 400; color: var(--muted); font-size: .84rem; }
.ok { color: var(--good); font-weight: 600; }
.err, .errors { color: var(--bad); font-weight: 500; }
.errors { margin: 0; padding-left: 20px; }
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.check input { width: auto; accent-color: var(--accent); }

/* tenant home */
.dash-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-end; }
.plan-box { display: grid; gap: 4px; justify-items: end; text-align: right; }
.pill { font: 600 .75rem var(--mono); padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.banner { padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.banner.warn { background: color-mix(in srgb, var(--mark) 20%, var(--surface)); border: 1px solid var(--mark); }
.bar { height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; }
.checklist li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.checklist li div { display: grid; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.checklist li.done .tick { background: var(--good); border-color: var(--good); box-shadow: inset 0 0 0 4px var(--surface); }
.checklist li.done b { text-decoration: line-through; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 500 .85rem var(--body); padding: 6px 12px; border-radius: 8px; background: var(--sunk); border: 1px solid var(--line); }

/* admin */
.table-wrap { overflow-x: auto; padding: 0; }
table { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sunk); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status { font: 600 .75rem var(--mono); padding: 3px 8px; border-radius: 6px; background: var(--sunk); }
.s-trial, .s-active { color: var(--good); }
.s-graceperiod, .s-readonly { color: var(--warn); }
.s-suspended, .s-cancelled { color: var(--bad); }

#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; padding: 12px 16px; background: #FDECEA; color: #5F1A14; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 16px; }

/* ---------- workspace shell ---------- */
.small { font-size: .84rem; }
.big { font-size: 1.05rem; line-height: 1.7; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
input.num { text-align: right; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { font-size: 1rem; line-height: 1.2; }
.side nav { display: grid; gap: 2px; }
.side nav a { color: var(--ink); text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: .93rem; }
.side nav a:hover { background: var(--sunk); }
.side nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-group { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 12px 10px 4px; }
.me { margin-top: auto; display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.linkish { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.work { padding: 28px max(16px, 3vw) 64px; display: grid; gap: 18px; align-content: start; min-width: 0; }
@media (max-width: 860px) {
    .shell { grid-template-columns: 1fr; }
    .side { position: static; height: auto; flex-direction: column; }
    .side nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .nav-group { display: none; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.crumb { font-size: .85rem; margin-bottom: 4px; }
.crumb a { color: var(--muted); }
.grid2, .grid3 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: span 2; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
textarea { font: 400 1rem var(--body); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); width: 100%; resize: vertical; }
label.inline { display: inline-flex; align-items: center; gap: 8px; }
label.inline input { width: auto; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
label.check input { width: auto; accent-color: var(--accent); }

.card.flush { padding: 0; gap: 0; overflow: hidden; }
.toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.card.flush .toolbar:last-child { border-bottom: 0; border-top: 1px solid var(--line); }
.toolbar input[type=search] { max-width: 340px; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg); }
.segmented.wrap { flex-wrap: wrap; border-radius: 14px; }
.segmented button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font: 600 .84rem var(--body); color: var(--muted); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.card.flush table { min-width: 680px; }
td.empty, p.empty { color: var(--muted); text-align: center; padding: 28px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--sunk); }
.overdue { color: var(--bad); font-weight: 600; font-style: normal; }
.tag { display: inline-block; font: 600 .68rem var(--mono); padding: 2px 6px; border-radius: 5px; background: var(--sunk); color: var(--muted); margin-left: 6px; text-transform: uppercase; letter-spacing: .04em; }
.tag.warn { background: color-mix(in srgb, var(--mark) 22%, var(--surface)); color: var(--warn); }
.s-draft { color: var(--muted); }
.s-paid { color: var(--good); }
.s-unpaid, .s-part-paid { color: var(--accent); }
.s-overdue { color: var(--bad); }
tr.group-row td { font-weight: 700; background: var(--sunk); }
tr.sub td { font-weight: 600; }
tfoot td { font-weight: 700; border-top: 2px solid var(--ink); background: var(--surface); }
table.lines-edit td { padding: 6px 8px; }
table.lines-edit input, table.lines-edit select { padding: 8px; font-size: .92rem; min-width: 80px; }
.totals-card { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); align-items: start; }
@media (max-width: 760px) { .totals-card { grid-template-columns: 1fr; } }
dl.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; margin: 0; font-variant-numeric: tabular-nums; }
dl.totals dt { color: var(--muted); }
dl.totals dd { margin: 0; text-align: right; }
dl.totals .grand { font: 800 1.15rem var(--display); color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.warn-card { border-color: var(--bad); }
.btn.danger-fill { background: var(--bad); color: #fff; }
.btn.danger { color: var(--bad); }

/* invoice */
.invoice-sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 20px; }
.inv-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-bottom: 16px; }
.inv-title { display: grid; gap: 2px; text-align: right; justify-items: end; }
.inv-title b { font: 800 1.3rem var(--display); }
.inv-party { display: grid; gap: 2px; }
.inv-lines { min-width: 640px; }
.inv-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); gap: 20px; }
@media (max-width: 760px) { .inv-foot { grid-template-columns: 1fr; } .inv-title { text-align: left; justify-items: start; } }
ul.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.split-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.kpi { display: grid; gap: 4px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.kpi:hover { border-color: var(--accent); }
.kpi span { color: var(--muted); font-size: .86rem; }
.kpi b { font: 800 1.35rem var(--display); font-variant-numeric: tabular-nums; }
.kpi em { font-size: .82rem; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 960px) { .two-col { grid-template-columns: 1fr; } }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
@media (max-width: 1180px) { .three-col { grid-template-columns: 1fr; } }

/* Dependency-free dashboard charts (BarChart.razor, HBarList.razor) */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.bar-track { flex: 1; width: 100%; display: flex; align-items: flex-end; }
.bar-fill { width: 100%; min-height: 3px; background: var(--accent); border-radius: 5px 5px 0 0; transition: height .6s cubic-bezier(.4,0,.2,1); }
.bar-value { font: 700 .74rem var(--mono); color: var(--ink); white-space: nowrap; }
.bar-label { font-size: .74rem; color: var(--muted); white-space: nowrap; }

.hbar-list { display: grid; gap: 12px; }
.hbar-row { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 10px; }
.hbar-label { font-size: .84rem; color: var(--muted); }
.hbar-track { height: 10px; background: var(--sunk); border-radius: 999px; overflow: hidden; }
.hbar-fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .6s cubic-bezier(.4,0,.2,1); }
.hbar-value { font: 700 .82rem var(--mono); white-space: nowrap; }

/* journals and reports */
.je { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.je-head { display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; margin-bottom: 6px; }
table.je-lines { min-width: 0 !important; font-size: .88rem; }
table.je-lines td { padding: 4px 8px; border: 0; }
.report-picker { display: grid; gap: 12px; }
.report table { min-width: 560px; }
.report-body { padding: 16px; display: grid; gap: 12px; overflow-x: auto; }
.report-body h3 { font: 700 1rem var(--display); margin: 12px 0 0; }
.report-body table { border: 1px solid var(--line); }
.auth { max-width: 440px; margin: 40px auto; }
.form { display: grid; gap: 14px; }

/* sprint 2 */
.irn-block { display: flex; gap: 16px; align-items: center; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
.irn-block img { background: #fff; padding: 4px; border-radius: 6px; flex: none; }
.irn-block.struck { opacity: .7; }
.wrap-any { word-break: break-all; }
.sub-h { font: 700 1rem var(--display); margin: 8px 0 0; }
details.cancel-irn { border-top: 1px solid var(--line); padding-top: 12px; display: grid; gap: 12px; }
details.cancel-irn summary { cursor: pointer; color: var(--bad); font-weight: 600; }
.file-btn { position: relative; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.file-btn:focus-within { outline: 3px solid var(--mark); outline-offset: 2px; }
button.kpi { text-align: left; cursor: pointer; font: inherit; }
button.kpi.on { border-color: var(--accent); background: var(--accent-soft); }
.s-matched { color: var(--good); }
.s-amountmismatch, .s-missingin2b { color: var(--bad); }
.s-missinginbooks { color: var(--warn); }
.steps-inline { margin: 0; padding-left: 20px; display: grid; gap: 4px; }

/* sprint 3 */
.pre { white-space: pre-line; }
.s-sent, .s-open, .s-open-credit, .s-active { color: var(--accent); }
.s-accepted, .s-invoiced, .s-received, .s-billed, .s-applied { color: var(--good); }
.s-expired, .s-paused, .s-ended { color: var(--muted); }
.s-part-invoiced, .s-part-received { color: var(--warn); }
.s-cancelled { color: var(--muted); text-decoration: line-through; }

/* A POS receipt: narrow, monospace, screen preview matches the 80mm thermal roll it prints to. */
.receipt-sheet { width: 300px; margin: 0 auto; padding: 12px; font-family: "Courier New", monospace; font-size: 12px; background: var(--card-bg, #fff); border: 1px solid var(--border, #ddd); }
.receipt-center { text-align: center; }
.receipt-row { display: flex; justify-content: space-between; gap: 8px; }

/* Print or "Save as PDF": just the document */
@media print {
    @page { size: A4; margin: 14mm; }
    html, body { background: #fff !important; color: #000 !important; }
    .side, .topbar, .no-print, .card, #blazor-error-ui, .btn { display: none !important; }
    .shell { display: block; }
    .work { padding: 0; }
    .invoice-sheet { border: 0; padding: 0; box-shadow: none; }
    .invoice-sheet * { color: #000 !important; }
    .irn-block { border-color: #999; }
    table { min-width: 0 !important; }
    th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

    /* Choose "80mm" or "Receipt" paper in the print dialog: this just keeps the content narrow and legible on it. */
    .receipt-sheet { width: 80mm; margin: 0; padding: 2mm; border: 0; color: #000 !important; }
    .receipt-sheet * { color: #000 !important; }
}

/* Cards hold their content at the top instead of stretching rows to a neighbour's height. */
.card { align-content: start; }
/* Focus moves to the page heading on navigation for screen readers; no visible box needed there. */
h1:focus { outline: none; }

/* Banking */
.suggestions { display: grid; gap: 8px; margin-bottom: 16px; }
.suggestion { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.suggestion > div { min-width: 0; }
tr.on td { background: var(--accent-soft); }
.notice { padding: 10px 14px; border-radius: 10px; background: var(--accent-soft); margin-bottom: 12px; }
.pay-block { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.pay-block img { width: 120px; height: 120px; image-rendering: pixelated; }
.match-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 8px; }
.match-grid > div { min-width: 0; display: grid; gap: 12px; align-content: start; }
.match-grid h3 { margin: 0; }
input.alloc { width: 7.5rem; padding: 6px 8px; text-align: right; }
.match-grid table td, .match-grid table th { padding-left: 8px; padding-right: 8px; }
.match-grid table { min-width: 0; }

/* Blog */
.blog-page { max-width: 1160px; }
.blog-hero { padding-block: 40px 8px; display: grid; gap: 10px; }
.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 28px; }
.blog-cats a { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); font: 600 .84rem var(--body); text-decoration: none; background: var(--surface); }
.blog-cats a.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.blog-featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 32px; background: var(--surface); }
.blog-featured .thumb { min-height: 220px; }
.blog-featured .meat { padding: 28px; display: grid; gap: 12px; align-content: center; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-card { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink); }
.blog-card .thumb { height: 128px; }
.blog-card .meat { padding: 18px; display: grid; gap: 8px; align-content: start; }
.blog-card h3 { font: 700 1.02rem var(--display); line-height: 1.3; margin: 0; color: var(--ink); }
.blog-card p { color: var(--muted); font-size: .9rem; }
.blog-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .8rem; flex-wrap: wrap; }
.blog-meta .dot::before { content: "·"; margin-right: 10px; }
.thumb { background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 55%, var(--mark)) 100%); display: flex; align-items: flex-end; padding: 14px; }
.thumb span.tag { background: rgba(255,255,255,.22); color: #fff; backdrop-filter: blur(2px); }
.blog-pager { display: flex; justify-content: center; gap: 6px; margin: 28px 0 8px; }
.blog-pager button { width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 600 .9rem var(--body); cursor: pointer; }
.blog-pager button.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.blog-pager button:disabled { opacity: .4; cursor: default; }
.blog-newsletter { margin: 40px 0; padding: 32px; border-radius: 16px; background: var(--accent-soft); display: grid; gap: 14px; text-align: center; justify-items: center; }
.blog-newsletter form { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.blog-newsletter input { width: 280px; }
.blog-post { max-width: 720px; margin: 0 auto; display: grid; gap: 22px; }
.blog-post .thumb { height: 220px; border-radius: 14px; margin-bottom: 6px; }
.blog-post .byline { display: flex; gap: 10px; align-items: center; }
.blog-post .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font: 700 .9rem var(--display); flex-shrink: 0; }
.blog-post .body { display: grid; gap: 16px; font-size: 1.04rem; line-height: 1.7; }
.blog-post .body p { color: var(--ink); }
.blog-related { display: grid; gap: 18px; margin-top: 12px; }
@media (max-width: 760px) {
    .blog-featured { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
}

/* Suite bar — the dark "A Telic product" row across the top of every public page, same structure
   as TelicMail's and Telic Sentry's: current product underlined in the amber mark colour, the
   other products' descriptive sub-labels and the "One Telic ID" line drop out on a phone. */
.suite-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; background: var(--ink); color: #B8C9C4; padding: 7px max(16px, 4vw); font: 600 .78rem var(--body); }
.suite-bar .suite-by { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.suite-bar .suite-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mark); }
.suite-bar a { color: #B8C9C4; text-decoration: none; padding: 2px 0; transition: color .2s ease; }
.suite-bar a span { color: #7E938E; font-weight: 500; margin-left: 5px; }
.suite-bar a:hover { color: #fff; }
.suite-bar a[aria-current="page"] { color: #fff; border-bottom: 2px solid var(--mark); }
.suite-bar .suite-id { margin-left: auto; color: #7E938E; font-weight: 500; }
@media (max-width: 820px) { .suite-bar a span, .suite-bar .suite-id { display: none; } }

/* Public site header */
.public-topbar {
    justify-content: space-between; position: sticky; top: 0; z-index: 50;
    background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.public-nav { display: flex; align-items: center; gap: 4px; }
.public-nav > a:not(.btn) {
    display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
    padding: 8px 12px; border-radius: 999px; position: relative;
    transition: color .25s cubic-bezier(.4,0,.2,1), background-color .25s cubic-bezier(.4,0,.2,1);
}
.public-nav > a:not(.btn):hover { color: var(--accent); background: var(--accent-soft); }
.nav-ico { width: 16px; height: 16px; flex-shrink: 0; opacity: .68; transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .25s ease; }
.public-nav > a:not(.btn):hover .nav-ico { opacity: 1; transform: scale(1.14) rotate(-6deg); }
.public-nav .btn .nav-ico { width: 15px; height: 15px; opacity: .85; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.public-nav .btn:hover .nav-ico { transform: scale(1.1); }
.public-nav .btn-trial .nav-ico { transition: transform .3s cubic-bezier(.4,0,.2,1); }
.public-nav .btn-trial:hover .nav-ico { transform: translateX(3px); }
.btn { transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease, background-color .22s ease, border-color .22s ease; }
.btn.primary:hover, .btn.ghost:hover { transform: translateY(-1px); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--ink) 35%, transparent); }

/* Icon-tile nav links: a soft gradient tile appears under the glyph on hover, with a lift and a tilt, plus an
   underline that draws in beneath the label — matches the premium treatment used across the Telic suite. */
.public-nav > a:not(.btn) { flex-direction: column; gap: 2px; padding: 7px 11px 8px; font-size: .74rem; font-weight: 600; }
.public-nav > a:not(.btn) .nav-ico { width: 19px; height: 19px; padding: 6px; box-sizing: content-box; border-radius: 10px; opacity: .8; background: var(--sunk); transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .25s ease, opacity .25s ease, color .25s ease; }
.public-nav > a:not(.btn):hover { background: none; color: var(--ink); }
.public-nav > a:not(.btn):hover .nav-ico { opacity: 1; color: #fff; background: linear-gradient(135deg, var(--accent), var(--mark)); transform: translateY(-3px) scale(1.08) rotate(-4deg); box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--accent) 60%, transparent); }
.public-nav > a:not(.btn) span { position: relative; }
.public-nav > a:not(.btn) span::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 2px; background: var(--accent); border-radius: 2px; transition: right .3s cubic-bezier(.4,0,.2,1); }
.public-nav > a:not(.btn):hover span::after { right: 0; }
@media (max-width: 1080px) { .public-nav > a:not(.btn) span { display: none; } .public-nav > a:not(.btn) { padding: 9px; } }
@media (max-width: 860px) { .public-nav > a:not(.btn) { display: none; } }

/* Mobile burger menu: below 860px the full nav collapses behind a toggle button, sliding down as a panel
   rather than simply vanishing (the gap this replaces: links had no mobile fallback at all). */
.pub-burger { display: none; appearance: none; border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center; }
.pub-burger span, .pub-burger span::before, .pub-burger span::after { content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s ease, opacity .2s ease; }
.pub-burger span::before { position: absolute; top: -6px; }
.pub-burger span::after { position: absolute; top: 6px; }
.public-topbar.nav-open .pub-burger span { background: transparent; }
.public-topbar.nav-open .pub-burger span::before { transform: translateY(6px) rotate(45deg); }
.public-topbar.nav-open .pub-burger span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 860px) {
    .pub-burger { display: inline-flex; }
    /* Anchored to the sticky header itself (not the viewport), so it lines up whether or not
       the suite bar above the header has scrolled away yet. */
    .public-nav { position: absolute; top: 100%; left: 0; right: 0; max-height: 0; overflow: hidden; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 32px -20px rgba(0,0,0,.25); transition: max-height .32s cubic-bezier(.4,0,.2,1); z-index: 49; }
    .public-topbar.nav-open .public-nav { max-height: 90vh; overflow-y: auto; }
    .public-nav > a:not(.btn) { display: flex !important; flex-direction: row; justify-self: stretch; padding: 14px max(16px, 4vw); border-radius: 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
    .public-nav > a:not(.btn) span { display: inline !important; }
    .public-nav > a:not(.btn) span::after { display: none; }
    .public-nav > a:not(.btn) .nav-ico { background: none; padding: 0; width: 18px; height: 18px; }
    .public-nav > a:not(.btn):hover .nav-ico { background: none; box-shadow: none; color: var(--accent); transform: none; }
    .public-nav .btn { margin: 10px max(16px, 4vw); justify-content: center; }
}

/* ---------- Marketing site ---------- */
.pub-page { max-width: 1160px; margin: 0 auto; padding: 0 max(16px, 4vw) 80px; display: grid; gap: 0; }
.pub-section { padding-block: 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.pub-section.tight { padding-block: 32px; }
.pub-section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.pub-kicker { font: 700 .76rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); }
.pub-hero { padding-block: 64px 40px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
.pub-hero-text { display: grid; gap: 18px; max-width: 620px; }
.pub-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
.pub-hero .em { color: var(--accent); font-style: normal; }
.pub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pub-chip { font: 600 .78rem var(--mono); padding: 5px 11px; border-radius: 999px; background: var(--sunk); border: 1px solid var(--line); color: var(--muted); }
@media (min-width: 980px) { .pub-hero { grid-template-columns: 1.15fr 1fr; } }

/* Hero "Telic AI" chat-demo mockup */
.pub-hero-demo { justify-self: center; width: 100%; max-width: 420px; }
.demo-window { background: var(--ink); color: #EAF3F0; border-radius: 18px; padding: 18px 22px 24px; box-shadow: 0 24px 56px -20px rgba(0, 0, 0, .45); position: relative; overflow: hidden; }
.demo-window::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 8% -10%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 60%); pointer-events: none; }
.demo-dots { display: flex; gap: 6px; margin-bottom: 16px; position: relative; }
.demo-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.demo-body { position: relative; display: grid; gap: 4px; font: .95rem/1.55 var(--body); min-height: 108px; }
.demo-label { font: 600 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .5); margin: 10px 0 0; }
.demo-label:first-child { margin-top: 0; }
.demo-q, .demo-a { margin: 0; }
.demo-q { font-weight: 700; }
.demo-a { font-weight: 400; color: rgba(255, 255, 255, .88); }
.typing::after { content: "\2590"; display: inline-block; margin-left: 2px; color: var(--mark); animation: demo-caret 1s steps(1) infinite; }
@keyframes demo-caret { 50% { opacity: 0; } }

.pub-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pub-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 4px; }
.pub-stat b { font: 800 1.7rem var(--display); }
.pub-stat span { color: var(--muted); font-size: .85rem; }
@media (max-width: 760px) { .pub-stats { grid-template-columns: repeat(2, 1fr); } }

.pub-module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
/* Module cards with an icon tile, hover lift, and a "n features →" footer line */
.mod-card { position: relative; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease; }
.mod-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(0,0,0,.25); }
.mod-ico { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); transition: background .3s ease, color .3s ease, transform .4s cubic-bezier(.34,1.56,.64,1); }
.mod-ico svg { width: 22px; height: 22px; }
.mod-card:hover .mod-ico { background: linear-gradient(135deg, var(--accent), var(--mark)); color: #fff; transform: scale(1.08) rotate(-4deg); }
.mod-card .pub-chip { position: absolute; top: 18px; right: 18px; }
.mod-more { font: 600 .8rem var(--body); color: var(--accent); opacity: 0; transform: translateX(-4px); transition: opacity .25s ease, transform .25s ease; }
.mod-card:hover .mod-more { opacity: 1; transform: none; }
.pub-module-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: grid; gap: 8px; text-decoration: none; color: var(--ink); align-content: start; }
.pub-module-card:hover { border-color: var(--accent); }
.pub-module-card h3 { font: 700 1.05rem var(--display); margin: 0; }
.pub-module-card p { color: var(--muted); font-size: .88rem; }
.pub-module-card .pub-chip { justify-self: start; }

.pub-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.pub-steps.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .pub-steps.three { grid-template-columns: 1fr; } }
.pub-steps li { border-top: 3px solid var(--accent); padding-top: 14px; display: grid; gap: 6px; }
.pub-steps li::before { counter-increment: step; content: counter(step); font: 800 1.2rem var(--display); color: var(--accent); }
@media (max-width: 760px) { .pub-steps { grid-template-columns: 1fr 1fr; } }

.pub-split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .pub-split { grid-template-columns: 1fr; } }
.pub-cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .pub-cards3 { grid-template-columns: 1fr; } }
.pub-cta-band { background: var(--ink); color: var(--bg); border-radius: 18px; padding: 40px max(24px, 4vw); display: grid; gap: 14px; text-align: center; justify-items: center; }
.pub-cta-band .btn.primary { background: var(--mark); color: #1a1205; }
.pub-cta-band a:not(.btn) { color: #fff; }

.pub-region-switch, .pub-period-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); gap: 2px; }
.pub-region-switch button, .pub-period-switch button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: 600 .85rem var(--body); color: var(--muted); cursor: pointer; }
.pub-region-switch button.on, .pub-period-switch button.on { background: var(--ink); color: var(--bg); }
.pub-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 960px) { .pub-plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .pub-plans { grid-template-columns: 1fr; } }
.pub-plan { background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 14px; align-content: start; }
.pub-plan.hot { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pub-plan .price { font: 800 2rem var(--display); }
.pub-plan .price span { font: 500 .9rem var(--body); color: var(--muted); }
.pub-plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: .88rem; }
.pub-plan ul li { padding-left: 20px; position: relative; }
.pub-plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

.pub-matrix-wrap { overflow-x: auto; }
.pub-matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .88rem; }
.pub-matrix th, .pub-matrix td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.pub-matrix th { font: 600 .7rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--sunk); }
.pub-matrix td.yes { color: var(--good); font-weight: 700; }
.pub-matrix td.no { color: var(--muted); }
.pub-matrix tr.group-head td { font-weight: 700; background: var(--sunk); padding-top: 14px; }

.pub-addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pub-addon { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: grid; gap: 4px; background: var(--surface); }
.pub-addon b { font: 700 1.05rem var(--display); }

.pub-compare-wrap { overflow-x: auto; }
.pub-compare { border-collapse: collapse; width: 100%; min-width: 640px; }
.pub-compare th, .pub-compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.pub-compare th { font: 700 .85rem var(--display); text-align: left; }
.pub-compare td:first-child, .pub-compare th:first-child { text-align: left; }
.pub-compare .yes { color: var(--good); font-weight: 800; }
.pub-compare .no { color: var(--line); }
.pub-compare th.telic { background: var(--accent-soft); }
.pub-compare td.telic { background: var(--accent-soft); }

.pub-footer { border-top: 1px solid var(--line); background: var(--surface); margin-top: 48px; }
.pub-footer-inner { max-width: 1280px; margin: 0 auto; padding: 48px max(16px, 4vw) 28px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 960px) { .pub-footer-inner { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .pub-footer-inner { grid-template-columns: 1fr 1fr; } }
.pub-suite-list { display: grid; gap: 10px; }
.pub-suite-list a { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; width: fit-content; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.pub-suite-list a:hover { transform: translateX(3px); }
.pub-suite-mark { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font: 800 .74rem var(--display); color: #fff; }
.pub-suite-list a span.name { font-size: .9rem; font-weight: 600; }
.pub-suite-list a span.tag { display: block; font-size: .72rem; color: var(--muted); font-weight: 400; }
.pub-footer-inner h4 { font: 700 .74rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.pub-footer-inner nav { display: grid; gap: 8px; }
.pub-footer-inner nav a {
    display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: .9rem;
    width: fit-content; transition: color .22s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.pub-footer-inner nav a .nav-ico { width: 15px; height: 15px; opacity: .55; transition: transform .35s cubic-bezier(.34,1.56,.64,1), opacity .22s ease; }
.pub-footer-inner nav a:hover { color: var(--accent); transform: translateX(3px); }
.pub-footer-inner nav a:hover .nav-ico { opacity: 1; transform: scale(1.1); }
.pub-fine { text-align: center; color: var(--muted); font-size: .8rem; padding: 0 16px 28px; }

/* Footer base strip — parent-company lockup ("A telic product", the house indigo/cyan tile),
   centred copyright line and a back-to-top arrow, matching TelicMail's footer. */
.footer-base { max-width: 1280px; margin: 0 auto; padding: 18px max(16px, 4vw) 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; }
.telic-lockup { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); text-decoration: none; font-size: .85rem; transition: color .2s ease; }
.telic-lockup svg { flex-shrink: 0; }
.telic-lockup strong { color: var(--ink); font-weight: 800; }
.telic-lockup:hover { color: var(--ink); }
.footer-base > span { color: var(--muted); font-size: .8rem; text-align: center; flex: 1 1 auto; }
.to-top { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); transition: color .2s ease, border-color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.to-top:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
@media (max-width: 760px) { .footer-base { justify-content: center; text-align: center; } }

/* WhatsApp — a footer chat button plus the floating bubble both reference sites carry */
.wa-btn { display: inline-flex; align-items: center; gap: 9px; background: #25D366; color: #fff; font: 600 .88rem var(--body); padding: 10px 16px; border-radius: 999px; text-decoration: none; margin-top: 12px; transition: transform .22s cubic-bezier(.34,1.56,.64,1), box-shadow .22s ease; }
.wa-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(37, 211, 102, .6); }
.wa-btn svg { flex-shrink: 0; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 59; width: 52px; height: 52px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .55); transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.wa-float:hover { transform: scale(1.08); }
@media (max-width: 760px) { .wa-float { right: 14px; bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }
@media print { .wa-float { display: none; } }

/* Scroll-reveal for marketing sections. Hidden ONLY under html.js-reveal, a class public-site.js adds
   in the same tick it starts observing — so if the script is blocked, fails or never runs, every
   section is simply visible. A marketing page must never depend on JavaScript to show its content. */
html.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
html.js-reveal .reveal.in { opacity: 1; transform: none; }
.reveal-stagger.in > * { animation: reveal-rise .6s cubic-bezier(.4,0,.2,1) backwards; }
.reveal-stagger.in > *:nth-child(1) { animation-delay: .02s; }
.reveal-stagger.in > *:nth-child(2) { animation-delay: .09s; }
.reveal-stagger.in > *:nth-child(3) { animation-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { animation-delay: .23s; }
.reveal-stagger.in > *:nth-child(5) { animation-delay: .30s; }
.reveal-stagger.in > *:nth-child(n+6) { animation-delay: .36s; }
@keyframes reveal-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hero aurora: a slow-drifting soft gradient wash behind the hero, purely decorative and GPU-cheap.
   Clipped to the hero itself (overflow-x hidden, never -y so the sticky nothing below is affected)
   so the oversized blur radius can never push the page into horizontal scroll on a narrow phone. */
.pub-hero { position: relative; isolation: isolate; overflow: hidden; }
.pub-hero::before {
    content: ""; position: absolute; z-index: -1; inset: -40px 0 -10px; pointer-events: none;
    background:
        radial-gradient(42% 60% at 14% 8%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
        radial-gradient(38% 55% at 86% 2%, color-mix(in srgb, var(--mark) 24%, transparent), transparent 70%);
    filter: blur(30px); animation: aurora-drift 16s ease-in-out infinite alternate;
}
@keyframes aurora-drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(2%, 1.5%, 0) scale(1.05); } }
@media (prefers-reduced-motion: reduce) { .pub-hero::before { animation: none; } }

/* Real-product screenshots: a faux browser chrome frame for desktop shots, a phone frame for mobile shots */
.shot-browser { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 30px 70px -30px rgba(0,0,0,.35); }
.shot-browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--sunk); border-bottom: 1px solid var(--line); }
.shot-browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.shot-browser-bar .url { margin-left: 10px; font: 600 .72rem var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }
.shot-browser img { display: block; width: 100%; height: auto; }

.shot-phone { width: 100%; max-width: 230px; margin: 0 auto; border-radius: 34px; padding: 10px; background: var(--ink); box-shadow: 0 30px 60px -26px rgba(0,0,0,.4); position: relative; }
.shot-phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 46%; height: 18px; background: var(--ink); border-radius: 0 0 12px 12px; z-index: 2; }
.shot-phone img { display: block; width: 100%; height: auto; border-radius: 24px; }

.pub-showcase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; align-items: start; max-width: 760px; margin: 0 auto; }
.pub-showcase-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 900px; }
.pub-showcase-grid.four { grid-template-columns: repeat(4, 1fr); max-width: 1040px; }
@media (max-width: 860px) { .pub-showcase-grid.four { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
@media (max-width: 760px) { .pub-showcase-grid.three { grid-template-columns: repeat(2, 1fr); max-width: 560px; } }
@media (max-width: 560px) { .pub-showcase-grid, .pub-showcase-grid.three, .pub-showcase-grid.four { grid-template-columns: 1fr; max-width: 280px; } }
.pub-shots-stack { display: grid; gap: 22px; }
@media (min-width: 760px) { .pub-shots-stack.two-up { grid-template-columns: 1fr 1fr; } }
.pub-shot-cap { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Analytics consent bar — bottom-left so it never fights the WhatsApp bubble or the nudge toast */
.consent-bar { position: fixed; left: 20px; bottom: 20px; z-index: 62; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.35); display: grid; gap: 10px; }
.consent-bar p { margin: 0; font-size: .86rem; color: var(--muted); }
.consent-bar p b { color: var(--ink); }
@media (max-width: 560px) { .consent-bar { left: 12px; right: 12px; max-width: none; bottom: calc(66px + env(safe-area-inset-bottom, 0px)); } }

/* Industry chips teaser on the home page */
.ind-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ind-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 16px; font: 600 .88rem var(--body); color: var(--ink); text-decoration: none; transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .25s ease, box-shadow .25s ease; }
.ind-chip:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 20px -12px rgba(0,0,0,.3); }
.ind-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mark); }

/* Industry cards: an illustration banner above each industry's copy */
.ind-card { padding: 0; gap: 0; overflow: hidden; align-content: start; }
.ind-card .ind-art { line-height: 0; border-bottom: 1px solid var(--line); }
.ind-card .ind-art svg { width: 100%; height: 150px; display: block; }
.ind-card h3 { margin: 18px 22px 0; font: 700 1.05rem var(--display); }
.ind-card p { margin: 8px 22px 22px; }
.ind-card { transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .3s ease, border-color .3s ease; }
.ind-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 36px -18px rgba(0,0,0,.25); }
.ind-card:hover .ind-art svg { transform: scale(1.03); }
.ind-card .ind-art svg { transition: transform .5s cubic-bezier(.4,0,.2,1); }

/* "Why Telic wins" at-a-glance teaser on the home page */
.pub-win-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pub-win-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 8px; position: relative; overflow: hidden; }
.pub-win-card.telic { border-color: var(--accent); background: linear-gradient(165deg, var(--accent-soft), var(--surface) 60%); box-shadow: 0 0 0 1px var(--accent-soft); }
.pub-win-card b.n { font: 800 2rem var(--display); color: var(--ink); }
.pub-win-card.telic b.n { color: var(--accent); }
.pub-win-card span.l { color: var(--muted); font-size: .85rem; }
.pub-win-card .badge { position: absolute; top: 14px; right: 14px; font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .06em; background: var(--accent); color: #fff; padding: 3px 9px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* FAQ accordion */
.pub-faq { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; transition: border-color .2s ease; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 30px 16px 0; font-weight: 700; font-family: var(--display); position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font: 800 1.3rem var(--display); color: var(--accent); transition: transform .25s ease; }
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: .92rem; max-width: 65ch; }

/* Sticky mobile "start trial" bar — mobile only, slides up once past the hero */
.mobile-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px max(16px, 4vw); padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -14px rgba(0, 0, 0, .3);
    transform: translateY(110%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-cta span { font-size: .85rem; font-weight: 600; }
.mobile-cta.show { transform: translateY(0); }
@media (max-width: 760px) { .mobile-cta { display: flex; } }

/* Scroll-depth nudge toast — desktop/tablet only, shown once per browser session */
.nudge-toast {
    position: fixed; right: 24px; bottom: 92px; z-index: 61; max-width: 320px; display: none; /* bottom clears the WhatsApp bubble */
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px;
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .35); gap: 10px;
    transform: translateY(16px) scale(.96); opacity: 0; pointer-events: none;
    transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .3s ease;
}
.nudge-close { position: absolute; top: 8px; right: 10px; background: none; border: 0; font-size: 1rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 6px; }
.nudge-toast p { margin: 0; padding-right: 18px; font-size: .9rem; }
@media (min-width: 761px) { .nudge-toast { display: grid; position: fixed; } }
.nudge-toast.show { opacity: 1; pointer-events: auto; transform: none; }

.pub-form { display: grid; gap: 14px; max-width: 480px; }
.pub-security-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pub-partners-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .pub-partners-grid { grid-template-columns: 1fr; } }
.pub-ticklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pub-ticklist li { padding-left: 26px; position: relative; }
.pub-ticklist li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
