/* ==========================================================================
   Tech Box — base.css
   Layout, components and utilities. Colours/typography come from the
   theme files (theme-dark.css, theme-light.css, theme-editorial.css) via
   CSS custom properties, selected by <html data-theme="...">.
   ========================================================================== */

:root {
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; letter-spacing: var(--tracking-display); margin: 0 0 .6em; font-weight: var(--weight-display); color: var(--heading); }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.25rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.2rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm); z-index: 1000; }
.skip-link:focus { top: 1rem; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); position: relative; }
.section-tight { padding-block: calc(var(--section) * .55); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: var(--accent); }
.center .eyebrow::before { display: none; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }
.center .lead { margin-inline: auto; }
.muted { color: var(--muted); }
.grad-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: .85rem 1.5rem; border-radius: var(--radius-btn); font-weight: 700; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s; white-space: nowrap; font-family: var(--font-body); }
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: var(--btn-shadow); }
.btn-primary:hover { box-shadow: var(--btn-shadow-hover); }
.btn-ghost { background: transparent; color: var(--heading); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.08rem; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn svg { width: 1.1em; height: 1.1em; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--header-bg); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgb(0 0 0 / .35); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--heading); font-weight: 800; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand svg, .brand img { height: 42px; width: 170px; max-width: none; }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: .5rem .6rem; border-radius: var(--radius-sm); color: var(--text); font-weight: 600; font-size: .9rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--surface-2); color: var(--heading); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: .6rem; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); width: 44px; height: 44px; color: var(--heading); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; margin: auto; }
.theme-switch { display: inline-flex; gap: .2rem; padding: .2rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.theme-switch button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .7rem; font-weight: 700; padding: .3rem .5rem; border-radius: 999px; cursor: pointer; letter-spacing: .04em; }
.theme-switch button[aria-pressed="true"] { background: var(--accent); color: #fff; }
@media (max-width: 1320px) { .theme-switch { display: none; } }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--bg); border-bottom: 1px solid var(--border); padding: .75rem var(--gutter) 1rem; display: none; box-shadow: 0 30px 40px -20px rgb(0 0 0 / .4); }
  .nav-links.open { display: flex; }
  .nav-cta .btn { display: none; }
}

/* Dropdown (Industries) */
.has-sub { position: relative; }
.has-sub > a { display: inline-flex; align-items: center; gap: .3rem; }
.has-sub > a svg { width: 14px; height: 14px; transition: transform .2s; }
.sub-menu { position: absolute; top: calc(100% + .4rem); left: 0; min-width: 260px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: .5rem; list-style: none; margin: 0; box-shadow: 0 24px 50px -20px rgb(0 0 0 / .5); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; z-index: 50; }
.has-sub:hover > .sub-menu, .has-sub:focus-within > .sub-menu, .has-sub.open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover > a svg, .has-sub.open > a svg { transform: rotate(180deg); }
.sub-menu a { font-weight: 600; font-size: .92rem; padding: .55rem .8rem; }
.sub-menu .sub-all a { color: var(--accent); border-top: 1px solid var(--border); margin-top: .3rem; border-radius: 0; }
@media (max-width: 960px) {
  .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 .4rem .8rem; display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .has-sub > a svg { margin-left: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 10vw, 8rem) clamp(3rem, 8vw, 6rem); background: var(--hero-bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { margin-bottom: 1.2rem; }
.hero .lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0 1.4rem; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; color: var(--muted); font-size: .92rem; }
.hero-proof strong { color: var(--heading); }
.hero-art { color: var(--accent); filter: drop-shadow(0 30px 60px rgb(0 0 0 / .35)); }
.pill { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .8rem .35rem .45rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--muted); margin-bottom: 1.2rem; }
.pill svg { width: 16px; height: 16px; color: var(--accent); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 25%, transparent); margin-left: .35rem; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero-art { max-width: 420px; margin-inline: auto; } }

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 5vw, 3.5rem); background: var(--hero-bg); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); pointer-events: none; }
.page-hero .container { position: relative; }
.breadcrumb { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.2rem; font-size: .85rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }

/* ---------- Logo bar ---------- */
.logo-bar { border-block: 1px solid var(--border); background: var(--surface-0); }
.logo-bar .container { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); flex-wrap: wrap; justify-content: center; padding-block: 1.6rem; }
.logo-bar p { width: 100%; text-align: center; margin: 0 0 .4rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.logo-bar svg { height: 30px; width: auto; color: var(--muted); opacity: .8; transition: opacity .2s, color .2s; }
.logo-bar svg:hover { opacity: 1; color: var(--heading); }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.4rem, 2.5vw, 2rem); position: relative; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; box-shadow: var(--card-shadow); }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--card-shadow-hover); }
.card h3 { margin-top: 1rem; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 48px; height: 48px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--icon-bg); color: var(--accent); }
.card .icon svg { width: 24px; height: 24px; }
.card-link { position: absolute; inset: 0; border-radius: inherit; }
.card .more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--accent); margin-top: 1rem; }
.card .more svg, .info-row a svg { width: 1em; height: 1em; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.tag { font-size: .76rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.card.featured { background: var(--surface-accent); border-color: transparent; }
.card.featured, .card.featured h3, .card.featured p { color: #fff; }
.card.featured .icon { background: rgb(255 255 255 / .16); color: #fff; }
.card.featured .more { color: #fff; }
.card.featured .tag { background: rgb(255 255 255 / .14); color: #fff; border-color: transparent; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.stat .num { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--heading); line-height: 1; }
.stat .num span { color: var(--accent); }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: .4rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Process / steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.step { counter-increment: step; padding: 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step::before { content: "0" counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; color: var(--accent); letter-spacing: -.02em; margin-bottom: .6rem; }
.step h3 { font-size: 1.15rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split (text + visual) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--card-shadow-hover); }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; }
.check-list li::before { content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--icon-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233B82F6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 13l4 4L19 7'/></svg>") center/14px no-repeat; margin-top: .15rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- Case studies ---------- */
.case { display: grid; grid-template-rows: auto 1fr; overflow: hidden; padding: 0; }
.case img, .case svg { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.case .body { padding: 1.4rem; }
.case .meta { display: flex; gap: .6rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: .5rem; }
.case .result { display: flex; gap: 1.4rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.case .result b { display: block; font-size: 1.35rem; color: var(--heading); font-family: var(--font-display); }
.case .result small { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote { display: flex; flex-direction: column; gap: 1rem; }
.quote .stars { color: var(--star); letter-spacing: .1em; font-size: 1rem; }
.quote blockquote { margin: 0; font-size: 1.05rem; color: var(--text); }
.quote footer { display: flex; align-items: center; gap: .8rem; margin-top: auto; }
.quote footer img, .quote footer svg { width: 44px; height: 44px; border-radius: 50%; }
.quote footer b { display: block; color: var(--heading); }
.quote footer small { color: var(--muted); }
.rating-summary { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1.2rem 1.6rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: 2rem; }
.rating-summary .big { font-family: var(--font-display); font-size: 3rem; font-weight: 800; color: var(--heading); line-height: 1; }
.review-badges { display: flex; gap: .8rem; flex-wrap: wrap; margin-left: auto; }
.review-badges a { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); font-weight: 700; font-size: .88rem; color: var(--heading); background: var(--surface-2); }

/* ---------- Team ---------- */
.member { text-align: center; padding: 1.4rem; }
.member img, .member svg { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto .9rem; }
.member h3 { font-size: 1.1rem; margin: 0 0 .2rem; }
.member .role { color: var(--accent); font-weight: 700; font-size: .85rem; }
.member p { font-size: .92rem; color: var(--muted); margin-top: .6rem; }

/* ---------- Tech stack ---------- */
.stack { display: flex; flex-wrap: wrap; gap: .5rem; }
.stack span { padding: .5rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-bottom: .8rem; padding: 0 1.4rem; }
.faq summary { cursor: pointer; padding: 1.1rem 0; font-weight: 700; color: var(--heading); font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.1rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cta-bg); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.3fr .7fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: url("../assets/img/grid.svg"); opacity: .5; color: #fff; pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgb(255 255 255 / .82); }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.cta-band .btn-primary { background: #fff; color: #0B1220; box-shadow: none; }
.cta-band .btn-ghost { color: #fff; border-color: rgb(255 255 255 / .5); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.4rem); box-shadow: var(--card-shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .4rem; color: var(--heading); }
label .req { color: var(--danger); }
.input, select, textarea { width: 100%; padding: .8rem 1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 150px; resize: vertical; }
.help { font-size: .85rem; color: var(--muted); margin-top: .35rem; }
.error-msg { color: var(--danger); font-size: .85rem; margin-top: .35rem; display: none; }
.field.invalid .input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; font-size: .92rem; color: var(--text); }
.checkbox-row input { margin-top: .3rem; accent-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-status { display: none; padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-top: 1rem; font-weight: 600; }
.form-status.ok { display: block; background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); }
.form-status.err { display: block; background: color-mix(in srgb, var(--danger) 15%, transparent); color: var(--danger); }
.g-recaptcha { margin: .5rem 0 1rem; }

/* Option cards (questionnaire) */
.option-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.option-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option .box { display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.1rem; border: 1.5px solid var(--border-strong); border-radius: var(--radius); background: var(--input-bg); height: 100%; transition: border-color .2s, box-shadow .2s, background .2s; font-weight: 500; }
.option .box b { color: var(--heading); display: flex; align-items: center; gap: .5rem; }
.option .box svg { width: 22px; height: 22px; color: var(--accent); }
.option .box small { color: var(--muted); font-size: .84rem; line-height: 1.4; }
.option input:checked + .box { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--input-bg)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.option input:focus-visible + .box { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 720px) { .option-grid, .option-grid.cols-2 { grid-template-columns: 1fr; } }

/* Wizard */
.wizard-progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 2rem; }
.wizard-progress div { height: 6px; border-radius: 999px; background: var(--surface-2); position: relative; }
.wizard-progress div.done, .wizard-progress div.active { background: var(--accent); }
.wizard-progress div.active { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.wizard-progress span { display: block; font-size: .74rem; font-weight: 700; color: var(--muted); margin-top: .5rem; text-transform: uppercase; letter-spacing: .08em; }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fade .35s var(--ease); }
.wizard-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--border); }
.summary-box { background: var(--surface-2); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: .95rem; }
.summary-box dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.summary-box dt { color: var(--muted); font-weight: 600; }
.summary-box dd { margin: 0; color: var(--heading); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Contact info */
.contact-side { display: grid; gap: 1rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; }
.info-row .icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--icon-bg); color: var(--accent); }
.info-row .icon svg { width: 22px; height: 22px; }
.info-row b { display: block; color: var(--heading); }
.map-embed { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Prose (privacy etc.) ---------- */
.prose { max-width: 50rem; }
.prose h2 { font-size: 1.6rem; margin-top: 2.4rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0; }
.prose th, .prose td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { color: var(--heading); }
.toc { position: sticky; top: 100px; align-self: start; font-size: .92rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--heading); }
.prose-layout { display: grid; grid-template-columns: 240px 1fr; gap: 3rem; }
@media (max-width: 860px) { .prose-layout { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid var(--border); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .9fr 1fr .9fr 1.1fr; gap: 1.6rem; }
.site-footer h4 { color: var(--footer-heading); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--footer-heading); }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--btn-text); }
.footer-brand svg { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--border); font-size: .85rem; }
.socials { display: flex; gap: .6rem; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.socials svg { width: 18px; height: 18px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; max-width: 560px; margin-inline: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 1.1rem 1.3rem; box-shadow: 0 20px 60px -20px rgb(0 0 0 / .5); z-index: 200; display: none; gap: 1rem; align-items: center; flex-wrap: wrap; font-size: .92rem; }
.cookie-banner.show { display: flex; }
.cookie-banner p { margin: 0; flex: 1 1 260px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Misc ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.5rem; }
.badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem .9rem; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-size: .85rem; font-weight: 700; color: var(--heading); }
.badge svg { width: 18px; height: 18px; color: var(--accent); }
.notfound { text-align: center; padding-block: clamp(5rem, 15vw, 10rem); }
.notfound .code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 800; line-height: 1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.marquee { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: inline-flex; gap: 3rem; padding-block: 1rem; animation: marquee 30s linear infinite; }
.marquee-track span { font-weight: 700; color: var(--muted); font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Industry pages ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .industry-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industry-grid { grid-template-columns: 1fr; } }
.pain-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.pain-list li { padding: 1.1rem 1.3rem; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.pain-list b { display: block; color: var(--heading); margin-bottom: .2rem; }
@media (max-width: 640px) { .pain-list { grid-template-columns: 1fr; } }
.compliance { display: flex; flex-wrap: wrap; gap: .6rem; }
