:root {
  color-scheme: light dark;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --border: #e2e5ea;
  --field-border: #868f9d;
  --text: #1a1d23;
  --muted: #5f6b7d;
  --primary: #1868d8;
  --primary-ink: #ffffff;
  --ok: #0f7d43;
  --ok-bg: #e7f6ee;
  --warn: #a15c00;
  --warn-bg: #fff4e0;
  --bad: #c62828;
  --bad-bg: #fdecec;
  --info: #1a5fb4;
  --info-bg: #e8f0fd;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --surface: #1a1d23;
    --surface-2: #22262e;
    --border: #2e333d;
    --field-border: #606a79;
    --text: #e8eaee;
    --muted: #98a2b3;
    --primary: #5b9cf5;
    --primary-ink: #0b1220;
    --ok: #4cc38a;
    --ok-bg: #12291e;
    --warn: #f0b04a;
    --warn-bg: #2d2311;
    --bad: #f07070;
    --bad-bg: #321717;
    --info: #8ab4f8;
    --info-bg: #172338;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* The page is a column as tall as the window, so the footer sits at the very bottom even on short pages */
body {
  margin: 0;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--primary) 28%, transparent); }
:where(a, button, summary, [tabindex]):focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { border-radius: 8px; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 14px; }
h3 { font-size: 1rem; margin: 18px 0 8px; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }
/* Read by screen readers, not shown (live status line, extra link context) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Layout */
/* "Skip to content": out of sight until a keyboard user tabs onto it, then a Signal Blue chip at the top left */
.skip-link {
  position: absolute; left: 16px; top: 8px; z-index: 30; padding: 10px 16px; border-radius: 8px;
  background: var(--primary); color: var(--primary-ink); font-weight: 600; translate: 0 calc(-100% - 16px);
}
.skip-link:focus { translate: 0; text-decoration: none; }
/* The bar stays on top while scrolling on laptops, so keyboard focus and #anchors stop below it */
@media (min-width: 641px) { html:has(.topbar) { scroll-padding-top: 84px; } }
.topbar { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--primary); display: inline-block; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; }
.nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--surface-2); color: var(--text); font-weight: 600; }
.demo-banner { background: var(--warn-bg); color: var(--warn); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; border-bottom: 1px solid var(--border); }
.container { flex: 1 0 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 20px 16px 40px; }
/* Footer: "Developed by Jindal Dynamics" credit, always a small terminal: a one-line monospace pill with a near-black
   fill, slow green "digital rain" falling behind the text (canvas, app.js) and the name in matrix green.
   Hover / keyboard focus: "DEVELOPED BY" decodes into "VISIT WEBSITE", the edge brightens, the arrow nudges.
   Reduced-motion users get the same look without rain or decoding. */
.footer { position: relative; flex-shrink: 0; display: flex; justify-content: center; padding: 16px 16px max(18px, env(safe-area-inset-bottom)); }
.footer::before {
  content: ''; position: absolute; top: 0; left: 50%; width: min(520px, 76%); height: 1px; translate: -50% 0;
  background: linear-gradient(90deg, transparent, var(--border) 18% 82%, transparent);
}
.dev-pill {
  --matrix: #3dff7a;
  --matrix-night: #040b06;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px;
  padding: 5px 12px 5px 15px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--matrix) 35%, transparent);
  box-shadow: 0 3px 12px -6px color-mix(in srgb, var(--matrix) 40%, transparent);
  color: var(--matrix); text-decoration: none; line-height: 1;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  transition: border-color .25s ease-out, box-shadow .25s ease-out;
}
.dev-pill:hover { text-decoration: none; }
.dev-pill-fill { position: absolute; inset: 0; z-index: -1; background: var(--matrix-night); }
.dev-pill-rain { position: absolute; inset: 0; width: 100%; height: 100%; }
.dev-pill-text { display: inline-flex; align-items: baseline; gap: 9px; }
.dev-pill-label {
  min-width: calc(13ch + 13 * .08em); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--matrix) 62%, #ffffff);
}
.dev-pill-text strong { font-size: .78rem; font-weight: 700; color: var(--matrix); text-shadow: 0 0 6px color-mix(in srgb, var(--matrix) 45%, transparent); transition: text-shadow .25s ease-out; }
.dev-pill-arrow { width: 12px; height: 12px; flex: none; color: var(--matrix); transition: translate .3s cubic-bezier(.2, .8, .2, 1); }
.dev-pill:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
@media (hover: hover) {
  .dev-pill:hover, .dev-pill:focus-visible {
    border-color: color-mix(in srgb, var(--matrix) 65%, transparent);
    box-shadow: 0 3px 16px -4px color-mix(in srgb, var(--matrix) 55%, transparent);
  }
  .dev-pill:hover strong, .dev-pill:focus-visible strong { text-shadow: 0 0 9px color-mix(in srgb, var(--matrix) 65%, transparent); }
  .dev-pill:hover .dev-pill-arrow, .dev-pill:focus-visible .dev-pill-arrow { translate: 2px -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .dev-pill, .dev-pill * { transition: none !important; }
  .dev-pill-rain { display: none; }
}
.page-head { margin-bottom: 16px; }
.page-head p { margin: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.narrow { max-width: 460px; margin: 40px auto; }
.card.narrow-left { max-width: 520px; }
.auth h1 { margin-bottom: 14px; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stats.compact { margin: 14px 0; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; }
.stats.compact .stat { background: var(--surface-2); border-color: transparent; }
.stat-label { color: var(--muted); font-size: .8rem; }
.stat-value { font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-link { font-size: .8rem; }

/* Usage bars */
.bar { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar-lg { height: 10px; margin-top: 10px; }
.bar-fill { height: 100%; border-radius: 99px; transition: width .3s ease; }
.bar-ok { background: var(--ok); }
.bar-warn { background: var(--warn); }
.bar-bad { background: var(--bad); }

/* Forms */
.form { display: grid; gap: 14px; }
.form.compact { gap: 8px; margin-top: 8px; }
.form > .btn { justify-self: start; }
label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); font-weight: 500; }
label.inline { display: inline-flex; align-items: center; gap: 6px; }
label.check { display: flex; align-items: flex-start; gap: 8px; color: var(--text); font-weight: 400; font-size: .9rem; }
input, select, textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--field-border); border-radius: 8px; padding: 8px 10px; min-width: 0; width: 100%; caret-color: var(--primary);
}
input[type="radio"], input[type="checkbox"] { width: auto; margin-top: 3px; accent-color: var(--primary); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.w-sm { width: 90px; }
label.inline input { width: 80px; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.row > label { flex: 0 1 220px; }
.row > .grow, .filters > .grow { flex: 1 1 260px; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .85rem; color: var(--muted); font-weight: 500; margin-bottom: 6px; }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.option {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer; color: var(--text); font-weight: 400;
}
.option:has(input:checked) { border-color: var(--primary); background: var(--info-bg); }
.option span { display: grid; gap: 2px; }
.option small { font-size: .8rem; }
.option input { flex: none; }   /* a long description must not squeeze the radio */
.estimate { margin: 0; font-size: .85rem; color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 6px; }
.checklist .ok { color: var(--ok); }
.checklist .bad { color: var(--bad); }

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters > label { flex: 0 1 auto; }
.filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); white-space: nowrap;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary); filter: brightness(1.08); }
.btn-danger { color: var(--bad); }
.btn-sm { padding: 4px 10px; font-size: .8rem; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 12px 0 8px; }
.job-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.inline-actions input { width: 160px; }

/* Alerts & badges */
.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .9rem; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-err { background: var(--bad-bg); color: var(--bad); }
.alert-info { background: var(--info-bg); color: var(--info); }
.badge { display: inline-block; font-size: .75rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge-running, .lead-contacted { background: var(--info-bg); color: var(--info); }
.badge-done, .lead-converted { background: var(--ok-bg); color: var(--ok); }
.badge-stopped, .badge-warn, .lead-interested { background: var(--warn-bg); color: var(--warn); }
.badge-failed, .lead-not_interested { background: var(--bad-bg); color: var(--bad); }
.tag { font-size: .7rem; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 0 4px; margin-left: 4px; }
.wa { color: var(--ok); font-weight: 600; font-size: .85rem; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; font-size: .8rem; margin-top: 2px; }

/* Tables */
.table-card { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; }
.leads td { min-width: 120px; }
.leads td.biz { min-width: 240px; max-width: 360px; }
.biz-name { font-weight: 600; }
details summary { cursor: pointer; color: var(--primary); font-size: .8rem; }
details.edit { margin-top: 6px; min-width: 200px; }
.note-preview { margin-top: 4px; }
.pager { display: flex; gap: 12px; justify-content: center; align-items: center; margin: 16px 0; }

/* Download buttons */
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.download-group { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.btn-download::before { content: '↓'; font-weight: 700; color: var(--primary); }

/* Cards with a header action, two-column sections */
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.two-col .card { margin-bottom: 0; }
.hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.mono { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.resume-box { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.resume-box select { width: auto; max-width: 320px; }

/* Usage tables */
.usage-table th .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.usage-table td { min-width: 130px; }
.usage-num { font-variant-numeric: tabular-nums; margin-bottom: 4px; }

/* Free-trial credit */
.credit-panel { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin-top: 12px; display: grid; gap: 8px; }
.credit-panel.credit-off { opacity: .8; }
.credit-panel .alert { margin: 0; }
.credit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.credit-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.credits td { min-width: 120px; }
.credit-form input[type="number"] { width: 110px; }
.credit-form input[type="date"] { width: 150px; }

/* API keys */
.keys td { min-width: 110px; }
.keys code { white-space: nowrap; }
.row-muted td { opacity: .6; }
.key-error { color: var(--bad); margin-top: 4px; max-width: 320px; }
.mini-usage { display: grid; grid-template-columns: 80px 70px auto; gap: 8px; align-items: center; margin-bottom: 4px; white-space: nowrap; }
.mini-bar { display: block; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.mini-bar .bar-fill { display: block; }
details.guide > summary { list-style: none; }
details.guide > summary::-webkit-details-marker { display: none; }
details.guide > summary h2 { display: inline; color: var(--text); }
details.guide > summary::after { content: ' ▾'; color: var(--muted); }

.log-head { font-size: 1rem; margin: 18px 0 8px; }
.log { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; font-size: .85rem; border: 1px solid var(--border); border-radius: 8px; }
.log li { padding: 6px 10px; border-bottom: 1px solid var(--border); word-break: break-word; }
.log li:last-child { border-bottom: 0; }
.log li.ok { color: var(--ok); }

@media (max-width: 640px) {
  .topbar { position: static; }
  .nav a { padding: 6px 8px; }
  .container { padding: 14px 16px 30px; }
  .nav { margin-left: 0; width: 100%; }
  .row > label, .filters > label { flex: 1 1 100%; }
  .w-sm { width: 100%; }
  .stat-value { font-size: 1.1rem; }
}

/* Customer accounts, access codes, terms */
.stat-value-sm { font-size: 1.1rem; }
.code-input { letter-spacing: .08em; text-transform: uppercase; }
.code-input::placeholder { letter-spacing: .04em; }
.code-list { width: 100%; resize: vertical; letter-spacing: .06em; line-height: 1.7; }
.code-result { border-color: var(--ok); }
code.mono { letter-spacing: .04em; }
.auth-alt { margin: 14px 0 0; text-align: center; }
.auth-links { display: grid; gap: 2px; margin-top: 14px; font-size: .85rem; color: var(--muted); text-align: center; }
.auth-links p { margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 16px; }
label.check input { width: 16px; height: 16px; flex: none; }
.card .form + h2 { margin-top: 26px; }
.terms { max-width: 820px; margin: 24px auto; line-height: 1.6; }
.terms h2 { margin-top: 22px; font-size: 1.1rem; }
.terms ol, .terms ul { padding-left: 20px; }
.terms li { margin-bottom: 6px; }
.card-head .filters { gap: 8px; }

/* Acknowledgements, sign-up tabs, demo marking */
.ack-box { display: grid; gap: 10px; border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: var(--surface-2); }
.ack-box legend { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 6px; }
.ack-box p { margin: 0; }
label.ack { font-size: .85rem; line-height: 1.45; }
.tabs { display: flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--surface-2); border-radius: 10px; }
.tabs a { flex: 1; text-align: center; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: .85rem; font-weight: 600; }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs a.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tag-demo { color: var(--warn); border-color: currentColor; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.demo-note { border: 1px solid var(--border); }
.option-off { opacity: .55; cursor: not-allowed; }
.demo-switch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; font-size: .9rem; }
.demo-switch form { margin: 0; }
h2 .badge { margin-left: 6px; vertical-align: middle; }

/* How to get a code */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; font-size: .9rem; }
.steps li { counter-increment: step; position: relative; padding: 10px 12px 10px 46px; background: var(--surface-2); border-radius: 10px; }
.steps li::before { content: counter(step); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: .8rem; display: grid; place-items: center; }
.steps-flow li > strong:first-child { display: block; }
.terms ol.steps li { margin-bottom: 0; }
.contact-email { font-size: 1.1rem; font-weight: 700; word-break: break-all; }
.reply-text { width: 100%; resize: vertical; font-size: .85rem; line-height: 1.5; }
textarea.plans { width: 100%; resize: vertical; }

/* ---------- Phone and laptop ---------- */
/* Filter panel: a folding card on phones; on wider screens it is always open and the summary is hidden */
.filter-panel > summary { list-style: none; display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .9rem; font-weight: 600; }
.filter-panel > summary::-webkit-details-marker { display: none; }
.filter-panel > summary::after {
  content: ''; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  rotate: 45deg; translate: 0 -2px; transition: rotate .2s ease-out;
}
.filter-panel[open] > summary { margin-bottom: 12px; }
.filter-panel[open] > summary::after { rotate: 225deg; translate: 0 2px; }
.filter-count { color: var(--muted); font-weight: 400; }
@media (min-width: 641px) { .filter-panel > summary { display: none; } }

.row-actions { display: flex; flex-wrap: wrap; gap: 4px 14px; }
@media (max-width: 640px) {
  .nav-who { display: none; }
  .form > .btn { justify-self: stretch; }
  .job-actions, .download-group { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .job-actions > .resume-box, .download-group > :not(.btn) { grid-column: 1 / -1; }
  .job-actions > .btn:last-of-type:nth-child(odd of .btn:not([hidden])), .download-group > .btn:last-child:nth-child(odd of .btn) { grid-column: 1 / -1; }
}

/* Tables that turn into lists when their card is narrow: each row becomes an entry separated by a hairline,
   cells carry their own small label, the main cell leads and the aside cell (rating, status) sits top-right */
.table-wrap { container-type: inline-size; }
@container (max-width: 999px) {
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-stack tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .card:not(.table-card) .table-stack tr { padding-left: 0; padding-right: 0; }
  .table-stack td { grid-column: 1 / -1; padding: 3px 0; border: 0; overflow-wrap: anywhere; }
  .table-stack td.num { text-align: left; }
  .table-stack.leads td, .table-stack.leads td.biz { min-width: 0; max-width: none; }
  .table-stack td.cell-main { grid-column: 1; }
  .table-stack td.cell-aside { grid-column: 2; grid-row: 1; text-align: right; }
  .table-stack td[data-label]::before {
    content: attr(data-label); display: block;
    font-size: .7rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted);
  }
  .table-stack .row-actions { gap: 8px; }
  .table-stack .row-actions a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px;
    border: 1px solid var(--border); border-radius: 8px; font-size: .85rem; font-weight: 600;
  }
  .table-stack .row-actions a:hover { background: var(--surface-2); text-decoration: none; }
}
/* Medium widths (tablet, phone in landscape, small laptop window): contact details side by side */
@container (min-width: 600px) and (max-width: 999px) {
  .table-stack tr { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
  .table-stack td { grid-column: auto; }
  .table-stack td.cell-main { grid-column: 1 / 4; }
  .table-stack td.cell-aside { grid-column: 4; grid-row: 1; }
  .table-stack td.cell-full { grid-column: 1 / -1; }
}
/* Phone width: leave out fields the business does not have */
@container (max-width: 599px) {
  .table-stack td.is-empty { display: none; }
  .table-stack .wa-line { display: inline-flex; margin-left: 10px; }
}

/* Touch screens: targets at least 44px, and 16px text in fields so phones do not zoom in when one is tapped */
@media (pointer: coarse) {
  .btn, .btn-sm { min-height: 44px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; }
  .tabs a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; }
  input:not([type="checkbox"]):not([type="radio"]), select { min-height: 44px; }
  .filter-panel > summary { min-height: 44px; }
  .stat-link { display: inline-flex; align-items: center; min-height: 44px; }
  details.small > summary { padding: 13px 0; }
  .brand { min-height: 44px; }
  .table-stack td a, .table-stack .row-actions a { display: inline-flex; align-items: center; min-height: 44px; }
  .auth-alt a { display: inline-block; padding: 12px 2px; }
  .dev-pill { min-height: 44px; }
}

/* ---------------- Public home page (app/landing.php) ----------------
   Same Clean Ledger world, a little more voice: a larger headline, then ruled rows for facts, fields and questions. */
.btn-lg { padding: 12px 20px; font-size: 1rem; }
.nav a.nav-cta { color: var(--primary-ink); background: var(--primary); margin-left: 4px; }
.nav a.nav-cta:hover { color: var(--primary-ink); background: var(--primary); filter: brightness(1.08); }
.landing { --lp-gap: clamp(40px, 7vw, 88px); }
.landing h2 { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); line-height: 1.25; margin: 0 0 10px; text-wrap: balance; }
.lp-muted { color: var(--muted); }
.lp-num { font-variant-numeric: tabular-nums; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

.lp-hero { padding: clamp(24px, 7vw, 96px) 0 var(--lp-gap); text-align: center; }
.lp-hero .lp-actions { justify-content: center; }
.lp-hero h1 { font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; margin: 0 auto 16px; text-wrap: balance; max-width: 18ch; }
.lp-lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 52ch; margin: 0 auto; }


/* Facts: one ruled row */
.lp-facts { list-style: none; margin: 0 0 var(--lp-gap); padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lp-facts li { padding: 16px 16px 16px 0; display: grid; gap: 2px; }
.lp-facts li + li { padding-left: 16px; border-left: 1px solid var(--border); }
.lp-facts strong { font-size: .95rem; }
.lp-facts span { font-size: .82rem; color: var(--muted); }

.lp-section { margin: 0 0 var(--lp-gap); }
.lp-steps { max-width: 760px; font-size: .95rem; }
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 16px clamp(24px, 5vw, 64px); align-items: start; }
.lp-split > div > p { margin: 0; max-width: 42ch; }

/* Fields, audiences and questions: ruled rows */
.lp-fields { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--border); }
.lp-fields > div { padding: 12px 0; border-bottom: 1px solid var(--border); }
.lp-fields dt { font-weight: 600; }
.lp-fields dd { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.lp-who { grid-template-columns: minmax(0, 1fr); }
.lp-price { display: grid; gap: 4px; }
.lp-price .lp-actions { margin-top: 12px; }
.lp-plans { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.lp-plans li { padding: 10px 0; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; font-weight: 600; }
.lp-faq { border-top: 1px solid var(--border); }
.lp-faq details { border-bottom: 1px solid var(--border); }
.lp-faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; color: var(--text); font-size: 1rem; font-weight: 600; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); rotate: 45deg; translate: 0 -2px; transition: rotate .2s ease-out; }
.lp-faq details[open] summary::after { rotate: 225deg; translate: 0 2px; }
.lp-faq p { margin: 0 0 16px; color: var(--muted); max-width: 65ch; }

.lp-close { text-align: center; padding: clamp(28px, 5vw, 56px) 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.lp-close h2 { margin: 0; }
.lp-close .lp-actions { justify-content: center; }
.lp-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 20px; margin: 18px 0 0; font-size: .85rem; }

@media (max-width: 900px) {
  .lp-split { grid-template-columns: minmax(0, 1fr); }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .lp-facts li:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .nav a.nav-wide { display: none; }
  .public-nav { width: auto; margin-left: auto; }
  .lp-actions .btn { flex: 1 1 100%; }
  .lp-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .lp-facts { grid-template-columns: minmax(0, 1fr); }
  .lp-facts li, .lp-facts li + li { padding-left: 0; border-left: 0; }
  .lp-facts li + li { border-top: 1px solid var(--border); }
}
@media (prefers-reduced-motion: reduce) { .lp-faq summary::after { transition: none; } }
@media (pointer: coarse) {
  .lp-faq summary { min-height: 48px; }
  .lp-links a { display: inline-flex; align-items: center; min-height: 44px; }
}
