/* ServiZy hub — page-level additions on top of theme.css (tokens + marketing layer).
 * Only tokens from theme.css; no new colours. */

/* ---------- Utilities ---------- */
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: .5rem 1rem; border-radius: var(--radius-md); }
.skip-link:focus { top: 12px; color: var(--on-primary); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; color: var(--primary); margin-bottom: .75rem; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: .5rem; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.small { font-size: .9rem; }
.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; flex: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.check-list { list-style: none; padding: 0; margin: 1rem 0; }
.check-list li { display: flex; gap: .6rem; padding: .3rem 0; }
.check-list svg { color: var(--success); margin-top: .35em; }

/* Header brand + right side */
.nav-end { display: flex; align-items: center; gap: .5rem; }
.btn-header { min-height: 42px; padding: .4em 1.1em; }
.wordmark:hover { color: var(--primary); }

/* Breadcrumb (pro/max/legal) */
.breadcrumb { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink-2); }

/* Hero extras */
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 38em; }
.hero-note { margin-top: .9rem; font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .35rem 1rem; }
.hero-note span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-note svg { color: var(--success); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }

/* ---------- Image slot (placeholder until the generated image arrives) ----------
 * Each slot is listed in IMAGE-BRIEF.md with its prompt, file path and the <img> to swap in. */
.img-slot { position: relative; margin: 0; aspect-ratio: var(--ratio, 4 / 3); width: 100%; border: 2px dashed color-mix(in srgb, var(--primary) 45%, var(--line)); border-radius: var(--radius-lg); background: repeating-linear-gradient(-45deg, var(--surface-2) 0 14px, var(--primary-soft) 14px 28px); display: grid; place-items: center; overflow: hidden; color: var(--ink-2); }
.img-slot figcaption { max-width: 34em; margin: 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-card); font-size: .9rem; line-height: 1.65; text-align: left; }
.img-slot figcaption b { display: flex; align-items: center; gap: .4rem; color: var(--primary); font-family: var(--font-display); font-size: .95rem; }
.img-slot figcaption .mono { font-size: .78rem; color: var(--muted); display: block; margin-top: .35rem; word-break: break-all; }
@media (max-width: 600px) { .img-slot figcaption { font-size: .82rem; padding: 10px 12px; margin: 10px; } }
/* Small slots (cards): title + file only; the full brief lives in IMAGE-BRIEF.md */
.img-slot--compact figcaption .desc { display: none; }
.img-slot--compact figcaption { padding: 10px 12px; margin: 10px; }
/* Media at the top of a card bleeds to the card edge */
.card > .img-slot:first-child, .card > .media:first-child { width: calc(100% + 48px); margin: -24px -24px 8px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-width: 0 0 1px; box-shadow: none; }
.product-card > .img-slot:first-child, .product-card > .media:first-child { width: calc(100% + 56px); margin: -28px -28px 8px; }
.media { display: block; width: 100%; height: auto; aspect-ratio: var(--ratio, auto); object-fit: cover; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow-card); background: var(--surface-2); }
.card > .media:first-child, .product-card > .media:first-child { max-width: none; }

/* ---------- Product mockups (HTML, real product vocabulary) ---------- */
.phone { width: min(320px, 100%); margin-inline: auto; background: var(--ink); border-radius: 40px; padding: 12px; box-shadow: var(--shadow-sheet); }
.phone-screen { background: var(--bg); border-radius: 30px; overflow: hidden; }
.phone-status { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: .75rem; font-weight: 600; }
.phone-title { padding: 6px 16px 10px; background: var(--surface); border-bottom: 1px solid var(--line); }
.phone-title strong { font-family: var(--font-display); font-size: 1.05rem; }
.phone-tabs { display: flex; gap: 6px; margin-top: 8px; }
.wo-list { list-style: none; margin: 0; padding: 10px; display: grid; gap: 8px; }
.wo-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; font-size: .82rem; line-height: 1.55; }
.wo-item .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.wo-item .mono { font-size: .75rem; color: var(--muted); }
.wo-item p { margin: 4px 0 0; font-weight: 600; color: var(--ink); }
.wo-item small { color: var(--muted); }

.browser { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sheet); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); }
.browser-body { padding: 16px; display: grid; gap: 12px; }
.branch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px; }
.kpi b { display: block; font-family: var(--font-display); font-size: 1.6rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .75rem; color: var(--muted); }
.wo-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.wo-table td { padding: 7px 4px; border-top: 1px solid var(--line); vertical-align: middle; }
.wo-table .mono { color: var(--muted); font-size: .74rem; white-space: nowrap; }
@media (max-width: 480px) { .kpi b { font-size: 1.25rem; } .wo-table td:nth-child(3) { display: none; } }

/* ---------- Hub: product chooser + quiz ---------- */
.product-card { padding: 28px; }
.product-card .wordmark { font-size: 1.5rem; }
.product-card .wordmark img { width: 44px; height: 44px; }
.product-card .for { color: var(--ink-2); }
.product-card .price-hint { display: flex; align-items: baseline; gap: .5rem; padding-top: 12px; border-top: 1px solid var(--line); }
.product-card .price-hint b { font-family: var(--font-display); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.product-card.is-match { border: 2px solid var(--primary); box-shadow: var(--shadow-raised); }
.match-flag { display: none; }
.product-card.is-match .match-flag { display: inline-flex; }

.quiz { max-width: 760px; margin-inline: auto; text-align: center; }
.quiz-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5rem 0 1rem; }
@media (max-width: 600px) { .quiz-options { grid-template-columns: 1fr; } }
.quiz-options button { font: inherit; font-weight: 600; min-height: 56px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.quiz-options button:hover { border-color: var(--primary); }
.quiz-options button[aria-pressed=true] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary-hover); }
.quiz-result { min-height: 1.75em; }

/* Comparison table: first column = row label */
.compare th[scope=row] { font-weight: 600; color: var(--ink-2); width: 22%; }
.compare thead th { white-space: nowrap; }
@media (max-width: 700px) { .compare { min-width: 640px; } }

/* Key facts box — short, quotable answers (readers and AI search both use it) */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 0; overflow: hidden; margin: 0; }
.facts div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-right: -1px; margin-bottom: -1px; }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.facts dt { font-size: .9rem; color: var(--muted); }
.facts dd { margin: .2rem 0 0; font-weight: 600; }

/* Customer logos */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.logo-grid li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); display: grid; place-items: center; padding: 12px; aspect-ratio: 3 / 2; }
.logo-grid img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logo-grid li:hover img { filter: none; opacity: 1; }
.logo-label { display: flex; justify-content: center; margin-bottom: 1.25rem; }

/* ---------- Feature blocks ---------- */
.feature h3 { margin-bottom: .35em; }
.feature .en { display: block; font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--muted); }
.feature ul { padding-left: 1.1rem; margin: .5rem 0 0; color: var(--ink-2); }
.feature ul li { padding: .1rem 0; }
.num { font-family: var(--font-mono); font-size: .85rem; color: var(--primary); }

/* Pain list */
.pain { display: flex; gap: 14px; align-items: flex-start; }
.pain .icon-tile { background: var(--chip-warning-bg); color: var(--chip-warning-fg); flex: none; margin: 0; }
.pain h3 { margin-bottom: .2em; }
.pain p { color: var(--ink-2); margin: 0; }

/* Steps / workflow */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 18px 18px 64px; position: relative; box-shadow: var(--shadow-card); }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.steps b { display: block; }
.steps span { color: var(--ink-2); font-size: .95rem; }

/* Org → branch → area diagram (Max) */
.org-tree { display: grid; gap: 14px; justify-items: center; }
.org-node { display: inline-flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: .6rem 1rem; font-weight: 600; box-shadow: var(--shadow-card); }
.org-node--root { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.org-level { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; position: relative; padding-top: 14px; }
.org-level::before { content: ""; position: absolute; top: 0; left: 50%; width: 2px; height: 14px; background: var(--line); }
.org-areas { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 560px; }
.org-caption { max-width: 640px; text-align: center; color: var(--ink-2); }

/* Pricing */
.plan h3 { margin-bottom: 0; }
.plan .for { color: var(--muted); margin-bottom: .5rem; }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; flex: 1; }
.plan li { display: flex; gap: .5rem; padding: .3rem 0; }
.plan li svg { color: var(--success); margin-top: .35em; }
.plan .badge { position: absolute; top: -13px; left: 24px; }
.plan .price-quote { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.5; padding: .45rem 0; }
.plan-note { text-align: center; margin-top: 1.5rem; }

/* Download cards (Pro) */
.download { display: flex; align-items: center; gap: 14px; }
.download .icon-tile { margin: 0; flex: none; }
.download b { display: block; }
.download span { color: var(--muted); font-size: .92rem; }

/* Contact band */
.band-navy h2 { color: #fff; }
.contact-lines { display: flex; flex-wrap: wrap; gap: .75rem 2rem; margin: 1.25rem 0 1.75rem; }
.contact-lines a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: 1.1rem; }
.band-navy .btn-secondary { background: transparent; color: #fff; border-color: rgb(255 255 255 / 35%); }
.band-navy .btn-secondary:hover { background: rgb(255 255 255 / 10%); color: #fff; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field .hint { display: block; font-size: .85rem; color: var(--muted); margin-top: .25rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; line-height: 1.6; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: .65rem .85rem; min-height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); border-color: var(--primary); }
.req { color: var(--danger); }
.consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: .3em; flex: none; accent-color: var(--primary); }
.form-status { min-height: 1.5em; font-weight: 500; }
.form-status.ok { color: var(--success); }
.form-status.err { color: var(--danger); }

/* ---------- Footer ---------- */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: .75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer a { color: #dbe3f0; }
.site-footer a:hover { color: #fff; }
.site-footer .wordmark { color: #8fb4ff; }
.site-footer .wordmark b { color: #fff; }
.site-footer .wordmark img { background: #fff; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 12%); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; font-size: .88rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: #dbe3f0; cursor: pointer; text-decoration: underline; }

/* Consent banner content */
.consent-banner p { margin: 0 0 .75rem; color: var(--ink-2); }
.consent-banner .btn { min-height: 42px; padding: .35em 1.1em; }

/* ---------- Legal / long-form pages ---------- */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { font-size: 1.45rem; margin-top: 2.2rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: .25rem 0; }
.prose .updated { color: var(--muted); }
.notice { border-left: 4px solid var(--accent-surface); background: var(--surface); padding: 14px 18px; border-radius: var(--radius-md); }
.notice--danger { border-left-color: var(--danger); }

/* ---------- Conversion helpers ---------- */
/* Inline CTA between sections */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 2.5rem; padding: 20px 24px; background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line)); border-radius: var(--radius-lg); }
.cta-inline p { margin: 0; font-weight: 600; color: var(--ink); }
.cta-inline small { display: block; font-weight: 400; color: var(--ink-2); }
@media (max-width: 600px) { .cta-inline .btn { width: 100%; } }
.cta-micro { margin-top: .6rem; font-size: .92rem; color: var(--muted); }

/* Logo strip under hero */
.logo-strip { padding: 22px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.logo-strip p { text-align: center; font-size: .9rem; color: var(--muted); margin: 0 0 12px; }
.logo-strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 28px; }
.logo-strip img { height: 44px; width: auto; object-fit: contain; }
@media (max-width: 600px) { .logo-strip ul { gap: 10px 18px; } .logo-strip img { height: 34px; } .logo-strip li:nth-child(n+7) { display: none; } }

/* Before / after table */
.before-after th[scope=col]:nth-child(2) { color: var(--muted); }
.before-after th[scope=col]:nth-child(3) { color: var(--primary); }
.before-after td:nth-child(2) { color: var(--ink-2); }
.before-after td:nth-child(3) { font-weight: 500; }

/* Sticky mobile CTA bar (pro.html) */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: var(--shadow-tabbar); transform: translateY(110%); transition: transform .25s ease; }
  .mobile-cta.show { transform: none; }
  .mobile-cta .btn { min-height: 46px; }
  .mobile-cta .btn-primary { flex: 1; }
  .mobile-cta .btn-secondary { flex: none; width: 52px; padding: 0; }
  body.has-mobile-cta .site-footer { padding-bottom: 96px; }
}

/* Callback form inside the navy band */
.band-navy .form.card { color: var(--ink); }
.band-navy .form.card p { color: var(--ink-2); }
.band-navy .form.card a:not(.btn) { color: var(--primary); }

/* Customer logos in colour (A4) */
.logo-grid img { filter: none; opacity: 1; }
.product-card .link-arrow { align-self: center; font-size: .95rem; }
.hero-note a svg { color: currentColor; }

/* ---------- Card grids: fixed column counts so every row is full ----------
 * grid-2: 2 items · grid-3: 3/6/12 items · grid-3--trio: exactly 3 items · grid-4: 4 items
 * grid-5: exactly 5 items (2 wide + 3 narrow on desktop) · steps--4: 8 steps (4 × 2) */
.grid-2, .grid-3, .grid-4, .grid-5 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-5 > * { grid-column: span 2; }
.grid-5 > :nth-child(-n+2) { grid-column: span 3; }
.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.logo-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .grid-4, .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3--trio, .steps { grid-template-columns: minmax(0, 1fr); }
  .steps--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 > *, .grid-5 > :nth-child(-n+2) { grid-column: auto; }
  .grid-5 > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-5, .steps--4 { grid-template-columns: minmax(0, 1fr); }
  .grid-5 > :last-child { grid-column: auto; }
  .logo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.logo-grid img { max-width: 100%; height: auto; max-height: 64px; }
/* grid-5: the two wide cards get a wider image so all five cards share one image height */
@media (min-width: 901px) { .grid-5 > :nth-child(-n+2) > .img-slot, .grid-5 > :nth-child(-n+2) > .media { aspect-ratio: 16 / 7; } }
/* Footer brand description */
.site-footer .footer-about { margin: 1rem 0 .75rem; max-width: 30em; line-height: 1.7; }
.site-footer .footer-products { display: grid; gap: .35rem; font-size: .9rem; max-width: 30em; }
.site-footer .footer-products li { padding: 0; }
.site-footer .footer-products b { color: #fff; font-weight: 600; }
/* Form honeypot: off-screen for people, still in the DOM for bots (not display:none) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
