/* Monadem v2 — "dock & ledger"
   Type: Archivo (variable width: condensed for headings, like warehouse signage) + Source Serif 4 (editorial voice).
   Colour: navy ink, the three Monadem blues, a cool concrete grey, signal yellow kept for one button style only.
   Class names are shared with the visual editor pages (_app/content/builder): keep them. */
:root {
  --navy: #00112b;
  --navy-2: #0a2147;
  --blue: #0f60db;
  --blue-dark: #0b4cb0;
  --blue-mid: #367adf;
  --sky: #6ba5ed;
  --blue-soft: #e3edfb;
  --bg-soft: #eef2f8;
  --yellow: #ffc81e;
  --text: #16213a;
  --muted: #55627a;
  --line: #d3dce8;
  --line-soft: #e4eaf2;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 1px 0 rgba(0, 17, 43, .04), 0 10px 30px -12px rgba(0, 17, 43, .18);
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-stretch: 100%; color: var(--text); background: var(--white); font-size: 17px; line-height: 1.55; overflow-x: clip; }
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--blue-mid); outline-offset: 2px; }
h1, h2, h3 { color: var(--navy); margin: 0 0 .5em; font-stretch: 78%; font-weight: 750; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .98; letter-spacing: -.02em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.02; letter-spacing: -.012em; }
h3, .h3 { font-size: 1.25rem; line-height: 1.2; font-weight: 700; font-stretch: 88%; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* ------------------------------------------------------------------ buttons & links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .8em 1.35em; border-radius: var(--radius); font-family: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-accent { background: var(--yellow); color: var(--navy); }
.btn-accent:hover { background: #ffd54f; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: .95em 1.5em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1em; font-size: .92rem; }
.btn-block { width: 100%; }
.link { font-weight: 650; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .25em; }
.link:hover { color: var(--blue-dark); text-decoration-thickness: 2.5px; }

/* ------------------------------------------------------------------ header */
.topbar { background: var(--navy); color: #c6d3e8; font-size: .84rem; }
.topbar .wrap { display: flex; gap: 28px; justify-content: flex-end; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--white); }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.logo img { display: block; height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--navy); font-weight: 550; text-decoration: none; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-link:hover { border-bottom-color: var(--blue); }
.caret { display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; top: 100%; left: -16px; min-width: 340px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; margin-top: 14px; }
.dropdown-menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.dropdown:hover .dropdown-menu, .dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 4px; text-decoration: none; color: var(--text); }
.dropdown-menu a:hover { background: var(--bg-soft); }
.dropdown-menu strong { display: block; color: var(--navy); font-weight: 650; }
.dropdown-menu span { font-size: .86rem; color: var(--muted); line-height: 1.4; }
.langs { display: flex; gap: 0; }
.langs a { font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--muted); padding: 4px 6px; border-bottom: 2px solid transparent; }
.langs a:hover { color: var(--navy); }
.langs a.active { color: var(--navy); border-bottom-color: var(--navy); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span:not(.sr) { display: block; height: 2px; background: var(--navy); margin: 5px 0; }

/* ------------------------------------------------------------------ hero */
.hero { background: var(--white); padding: 72px 0 64px; border-bottom: 1px solid var(--line); }
.hero-sm { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.eyebrow { display: block; font-size: .95rem; font-weight: 600; color: var(--blue); margin: 0 0 18px; }
.eyebrow a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; }
.lead { font-family: var(--serif); font-size: clamp(1.12rem, 1.5vw, 1.3rem); line-height: 1.55; color: #33405a; max-width: 38em; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero h1 { max-width: 17ch; }
.hero-sm h1, .hero-post h1, .hub-hero h1 { max-width: 22ch; }
.hero .lead { margin-bottom: 30px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { position: relative; padding: 9px 0 9px 30px; font-weight: 550; color: var(--navy); border-top: 1px solid var(--line-soft); }
.checks li:last-child { border-bottom: 1px solid var(--line-soft); }
.checks li::before { content: ""; position: absolute; left: 3px; top: 15px; width: 12px; height: 7px; border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pricing-note { margin-top: 18px; color: var(--muted); font-size: .95rem; }

/* home: hero with the pallet label */
.hero-home { padding: 80px 0 0; }
.hero-home .hero-grid { padding-bottom: 72px; }
.hero-visual { position: relative; }
.hero-photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.hero-visual.has-photo .pallet-label { position: absolute; left: -48px; bottom: -36px; width: min(380px, 92%); }
.pallet-label { background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 3px; padding: 18px 18px 16px; box-shadow: 14px 14px 0 var(--blue-soft); transform: rotate(-1.2deg); max-width: 460px; margin-left: auto; font-stretch: 90%; }
.pl-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 3px solid var(--navy); }
.pl-top img { display: block; }
.pl-top strong { font-size: 1.15rem; font-weight: 750; font-stretch: 75%; }
.pl-top span { margin-left: auto; font-weight: 700; font-size: .85rem; background: var(--navy); color: var(--white); padding: 2px 8px; border-radius: 2px; }
.pl-row { display: grid; grid-template-columns: 2.2fr 1fr .9fr .8fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; align-items: baseline; }
.pl-row span:nth-child(n+2) { font-variant-numeric: tabular-nums; }
.pl-row span:last-child { text-align: right; }
.pl-head { font-size: .78rem; font-weight: 650; color: var(--muted); }
.pl-row.is-warn span:nth-child(3) { color: var(--navy); font-weight: 750; box-shadow: inset 0 -.45em 0 var(--yellow); justify-self: start; }
.pl-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 14px; }
.pl-bars { flex: 1; max-width: 190px; height: 44px; background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 4px, var(--navy) 4px 7px, transparent 7px 8px, var(--navy) 8px 9px, transparent 9px 12px, var(--navy) 12px 13px, transparent 13px 16px, var(--navy) 16px 19px, transparent 19px 21px); }
.pl-note { text-align: right; font-size: .8rem; color: var(--muted); line-height: 1.25; }
.pl-note b { display: block; font-size: 1.6rem; color: var(--navy); font-stretch: 70%; font-weight: 800; letter-spacing: .02em; }

.spec-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.spec-strip li { padding: 20px 24px 22px 0; font-weight: 600; color: var(--navy); line-height: 1.35; }
.spec-strip li + li { padding-left: 24px; border-left: 1px solid var(--line); }

/* ------------------------------------------------------------------ client logos */
.logos { padding: 34px 0; border-bottom: 1px solid var(--line); }
.logos-title { color: var(--muted); font-weight: 550; font-size: .95rem; margin-bottom: 20px; text-align: center; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px 44px; }
.logos-row img { height: 32px; width: auto; max-width: 128px; object-fit: contain; filter: grayscale(1) contrast(1.1); opacity: .62; transition: opacity .2s, filter .2s; }
.logos-row a:hover img, .logos-row img:hover { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; font-family: var(--serif); }
.section-head.row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; }
.section-head.row h2 { margin: 0; max-width: 20ch; }
.center .section-head, .section-head.center { margin-left: auto; margin-right: auto; }

/* split: heading on the left, content on the right */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 72px; align-items: start; }
.split-head { position: sticky; top: 110px; }
.split-head p { color: var(--muted); font-family: var(--serif); font-size: 1.1rem; }
.split-photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; margin-top: 24px; }

/* ledger: ruled list instead of icon cards */
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 40px; border-top: 2px solid var(--navy); }
.ledger-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ledger-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ledger li { padding: 22px 0 24px; border-bottom: 1px solid var(--line); }
.ledger h3 { margin-bottom: .3em; }
.ledger p { margin: 0; color: var(--muted); }
.ledger .badge { margin: 0 0 0 6px; vertical-align: 3px; }

/* generic grids and cards (also used by the visual editor pages) */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; color: var(--text); text-decoration: none; display: block; }
.section-alt .card { border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
a.card { transition: border-color .15s; }
a.card:hover { border-color: var(--navy); }
a.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .15em; }
.card-problem img { margin-bottom: 12px; }
.card-sector { padding: 32px; border-top: 3px solid var(--navy); }
.card-sector h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-top: 12px; font-stretch: 75%; }
.card-sector p { margin-bottom: 20px; }
.card-sector img { opacity: .9; }

/* numbered blocks: kept only where the content is a sequence */
.features .feature { border-top: 2px solid var(--navy); padding-top: 18px; }
.feature .num, .num { display: inline-block; font-weight: 800; font-stretch: 70%; color: var(--blue); font-size: 1.5rem; line-height: 1; margin-bottom: 12px; font-variant-numeric: tabular-nums; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 0; }
.flow li { position: relative; padding: 26px 24px 0 0; border-top: 2px solid var(--navy); }
.flow li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px var(--bg-soft); }
.flow .num { font-size: 2.2rem; color: var(--blue-mid); }
.flow p { margin: 0; color: var(--muted); font-size: .98rem; }

/* sector rows on the home page */
.sector-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 2px solid var(--navy); }
.sector-row { display: flex; flex-direction: column; padding: 28px 0 34px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.sector-row h3 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; font-stretch: 72%; font-weight: 750; margin-bottom: 14px; }
.sector-row p { color: var(--muted); margin: 0 0 18px; max-width: 34em; }
.sector-row .link { margin-top: auto; align-self: flex-start; }
.sector-row:hover h3 { color: var(--blue); }
.sector-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 3px; margin-bottom: 22px; }

/* stats */
.stats { background: var(--navy); color: var(--white); padding: 64px 0; }
.stats .grid { gap: 32px; }
.stat { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 24px; }
.stat b { display: block; font-size: clamp(3rem, 6vw, 4.8rem); color: var(--sky); font-weight: 750; font-stretch: 68%; line-height: 1; margin-bottom: 10px; letter-spacing: -.01em; }
.stat span { color: #c6d3e8; display: block; max-width: 24em; }

/* testimonials */
.quotes { columns: 3 300px; column-gap: 40px; margin-top: 56px; }
.quote-card { break-inside: avoid; margin: 0 0 36px; padding: 0 0 0 22px; border-left: 2px solid var(--blue); }
.quote-card blockquote { margin: 0 0 16px; color: var(--text); font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; }
.quote-card figcaption { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: var(--muted); }
.quote-card figcaption img { height: 28px; width: auto; max-width: 90px; object-fit: contain; }
.quote-card strong { display: block; color: var(--navy); }
.quote-feature { border: 0; padding: 0; margin: 0; max-width: 980px; }
.quote-feature blockquote { font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.32; color: var(--navy); font-weight: 400; text-indent: -.45em; }
.quote-feature figcaption { font-size: 1rem; }

/* banner and final call to action */
.banner { background: var(--blue); color: var(--white); padding: 64px 0; }
.banner h2 { color: var(--white); }
.banner p { color: #e2ecfc; margin: 0; max-width: 40em; font-family: var(--serif); font-size: 1.1rem; }
.banner-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.banner-inner h2 { max-width: 22ch; }
.final-cta { background: var(--navy); color: var(--white); padding: 96px 0; }
.final-cta .wrap { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; }
.final-cta h2 { color: var(--white); font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin: 0; grid-row: span 2; max-width: 16ch; }
.final-cta p { color: #c6d3e8; font-size: 1.1rem; margin: 0; font-family: var(--serif); }
.final-cta .btn { justify-self: start; }
.final-cta.center .wrap, .center .final-cta .wrap { display: block; }

/* ------------------------------------------------------------------ sector & content pages */
.two-col { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.pains { list-style: none; padding: 26px 28px; margin: 0; background: var(--bg-soft); border-top: 3px solid var(--navy); position: sticky; top: 110px; }
.pains li { padding: 12px 0 12px 30px; position: relative; font-weight: 550; color: var(--navy); }
.pains li + li { border-top: 1px solid var(--line); }
.pains li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 14px; height: 2px; background: #c2410c; box-shadow: 0 -6px 0 #c2410c00; }
.prose { font-family: var(--serif); font-size: 1.12rem; line-height: 1.7; }
.prose h2 { font-family: var(--font); font-size: 1.85rem; margin-top: 1.6em; }
.prose h3 { font-family: var(--font); margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose li { margin: 6px 0; }
.prose img { border-radius: 3px; margin: 12px 0; }
.prose blockquote { margin: 1.4em 0; padding-left: 22px; border-left: 2px solid var(--blue); font-size: 1.2rem; color: var(--navy); }
.prose table { border-collapse: collapse; width: 100%; font-family: var(--font); font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.prose > .quote-card { margin-top: 2em; }
.cover { display: block; width: 100%; border-radius: 3px; margin: 0; }
.post-cover { max-width: 1040px; margin-top: -1px; }
.hero-post { border-bottom: 0; }
.hero-post .eyebrow time { color: var(--muted); }
.case-logo { height: 48px; width: auto; margin-bottom: 16px; }

/* blog & lists */
.post-list, .post-mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 32px; }
.card-post { padding: 0; border: 0; background: none; display: flex; flex-direction: column; }
.section-alt .card-post { background: none; }
.card-post img { display: block; border-radius: 3px; margin-bottom: 16px; aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card-post img.logo-img { aspect-ratio: auto; height: 44px; width: auto; object-fit: contain; border-radius: 0; }
.card-post small { color: var(--muted); font-weight: 550; font-size: .9rem; }
.card-post h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.card-post p { margin-bottom: 12px; }
.card-post .link { margin-top: 4px; align-self: flex-start; }
.post-text { display: flex; flex-direction: column; }
.card-post.is-lead { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.card-post.is-lead img { margin: 0; }
.card-post.is-lead h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.05; font-stretch: 78%; }
.card-post.is-lead p { font-family: var(--serif); font-size: 1.12rem; }
.card-post.is-lead:not(:has(img)) { grid-template-columns: 1fr; }

/* ------------------------------------------------------------------ forms */
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.form-layout .quote-card { margin-top: 32px; }
.form-card { background: var(--white); border-radius: var(--radius); padding: 34px; border: 1.5px solid var(--navy); box-shadow: 12px 12px 0 var(--blue-soft); }
.form-card > .h3:first-child { margin-top: 0; }
.booking { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form label { display: block; font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 14px; }
.form input:not([type=checkbox]), .form select, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-size: 1rem; font-weight: 400; border: 1px solid #b9c6d8; border-radius: 4px; background: var(--white); color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; color: var(--muted); }
.form .check input { margin-top: 5px; }
.hp { position: absolute; left: -9999px; }
.contact-list { margin-top: 32px; border-top: 2px solid var(--navy); }
.contact-list p { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 2rem; font-weight: 800; display: grid; place-items: center; margin: 0 auto 20px; }

/* ------------------------------------------------------------------ footer */
.footer { background: var(--navy); color: #a9b8cf; padding: 72px 0 28px; font-size: .95rem; border-top: 1px solid #1b2d4c; }
.final-cta + .footer { padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; font-stretch: 90%; }
.footer a { color: #a9b8cf; text-decoration: none; display: block; margin-bottom: 8px; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer p a { display: inline; }
.footer-logo { filter: brightness(0) invert(1); margin-bottom: 14px; height: 25px; width: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; border-top: 1px solid #1b2d4c; margin-top: 44px; padding-top: 22px; font-size: .86rem; }
.footer-bottom a { display: inline; margin: 0; }
.socials { display: flex; gap: 16px; }

.cookie { position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; background: var(--white); border: 1.5px solid var(--navy); box-shadow: 8px 8px 0 var(--blue-soft); border-radius: var(--radius); padding: 16px; z-index: 60; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1 1 100%; font-size: .92rem; }

/* ------------------------------------------------------------------ features page */
.toc { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.toc a { font-size: .98rem; font-weight: 600; text-decoration: none; color: var(--navy); padding: 4px 0; border-bottom: 2px solid transparent; }
.toc a:hover { border-bottom-color: var(--blue); color: var(--blue); }
.section-cat { padding: 80px 0; }
.card-feature { position: relative; }
.card.card-feature.is-popular { border-color: var(--blue); }
.badge { display: inline-block; background: var(--blue-soft); color: var(--blue-dark); font-size: .78rem; font-weight: 650; font-stretch: 100%; border-radius: 3px; padding: 2px 8px; margin-bottom: 10px; letter-spacing: 0; }
.pills { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { border: 1px solid rgba(255, 255, 255, .45); border-radius: 3px; padding: 6px 12px; font-weight: 550; font-size: .94rem; }
.faq { border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 48px 20px 0; font-weight: 650; font-size: 1.08rem; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 26px; width: 9px; height: 9px; border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(4px) rotate(-135deg); }
.faq details p { padding: 0 0 22px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.06rem; max-width: 40em; }

/* module picker in the demo form */
.modules { border: 0; padding: 0; margin: 0 0 16px; }
.modules legend { font-weight: 600; font-size: .92rem; color: var(--navy); margin-bottom: 8px; }
.chip { display: inline-flex !important; margin: 0 6px 8px 0 !important; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; border: 1px solid #b9c6d8; border-radius: 3px; padding: 6px 11px; font-size: .86rem; font-weight: 550; color: var(--text); background: var(--white); transition: .15s; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--blue-mid); }

/* ------------------------------------------------------------------ landing page blocks (visual editor) */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.compare-col { border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); background: var(--white); }
.compare-col h3 { display: flex; align-items: center; gap: 10px; }
.compare-col ul { list-style: none; padding: 0; margin: 0; }
.compare-col li { position: relative; padding: 10px 0 10px 28px; border-top: 1px solid var(--line-soft); }
.compare-col li::before { position: absolute; left: 0; top: 12px; width: 18px; height: 18px; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }
.compare-col.bad { background: transparent; }
.compare-col.bad li { color: var(--muted); }
.compare-col.bad li::before { content: "✕"; color: #b42318; }
.compare-col.good { border: 1.5px solid var(--navy); box-shadow: 12px 12px 0 var(--blue-soft); }
.compare-col.good li::before { content: "✓"; color: var(--blue); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px 32px; }
.steps li { counter-increment: step; position: relative; padding: 64px 0 0; border-top: 2px solid var(--navy); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: 16px; left: 0; color: var(--blue-mid); font-weight: 800; font-stretch: 70%; font-size: 2.2rem; line-height: 1; }
.steps li p { color: var(--muted); margin: 0; font-size: .98rem; }
.steps li small { display: inline-block; margin-top: 10px; font-weight: 650; color: var(--blue); }

.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--muted); }
.trust li::before { content: "✓ "; color: var(--blue); font-weight: 800; }
.center .trust { justify-content: center; }
.final-cta .trust, .banner .trust { color: #c6d3e8; }
.final-cta .trust li::before, .banner .trust li::before { color: var(--sky); }

.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; align-items: stretch; }
.calc-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; align-self: start; align-content: start; }
.calc-inputs label { font-weight: 600; font-size: .9rem; color: var(--navy); display: flex; flex-direction: column; justify-content: space-between; gap: 6px; }
.calc-inputs input { width: 100%; padding: 11px 12px; font: inherit; font-size: 1rem; border: 1px solid #b9c6d8; border-radius: 4px; }
.calc-inputs input:focus { outline: 3px solid var(--blue-soft); border-color: var(--blue); }
.calc-inputs input::placeholder { color: #9aa6b8; }
.calc-out { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; gap: 4px; }
.calc-out p { margin: 0; color: #c6d3e8; font-size: .94rem; }
.calc-out b { display: block; font-size: clamp(2rem, 3.8vw, 2.8rem); color: var(--sky); font-weight: 750; font-stretch: 72%; line-height: 1.1; margin-bottom: 14px; }
.calc-out b[data-fmt="months"] { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.calc-out small { color: #8fa0bd; margin: auto 0 14px; font-size: .82rem; }
.calc-ba { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .92rem; }
.calc-ba th, .calc-ba td { padding: 8px 6px; text-align: right; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc-ba thead th { color: #8fa0bd; font-weight: 600; font-size: .82rem; }
.calc-ba tbody th { text-align: left; color: #c6d3e8; font-weight: 500; padding-left: 0; }
.calc-ba td { color: var(--white); font-weight: 700; white-space: nowrap; }
.calc-ba td + td { color: var(--sky); }
.tool-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 24px; }
.tool-nav a { font-weight: 650; color: var(--navy); text-decoration: none; padding: 6px 0; border-bottom: 2px solid var(--line); }
.tool-nav a:hover { border-color: var(--blue); color: var(--blue); }

.sticky-cta { display: none; }
.related .card { height: 100%; }
.related .card h3 { margin-bottom: 6px; }
.related .card .link { display: inline-block; margin-top: 12px; font-size: .94rem; }
.form-layout .lead + .checks { margin-top: 18px; }

/* ------------------------------------------------------------------ solutions mega menu */
.dropdown-menu.mega { display: none; grid-template-columns: repeat(2, minmax(260px, 1fr)); gap: 4px 16px; min-width: 660px; padding: 18px; left: -120px; }
.dropdown:hover .dropdown-menu.mega, .dropdown:focus-within .dropdown-menu.mega { display: grid; }
.mega-col { display: flex; flex-direction: column; }
.mega-h { font-size: .88rem; font-weight: 650; color: var(--muted); margin: 0 12px 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.dropdown-menu a.mega-item { display: flex; gap: 12px; align-items: flex-start; }
.mega-item img { flex: none; margin-top: 2px; width: 28px; height: 28px; }
.dropdown-menu .mega-item > span { font-size: inherit; color: inherit; }
.mega-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 6px; }
.dropdown-menu a.mega-all { font-weight: 650; color: var(--blue); text-decoration: underline; text-underline-offset: .2em; padding-top: 14px; }

/* solutions hub */
.hub-hero h1 { max-width: 20ch; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.hub-tabs a { font-weight: 650; color: var(--navy); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.hub-tabs a:hover { border-color: var(--blue); color: var(--blue); }
.hub-needs .card { display: flex; flex-direction: column; height: 100%; border-top: 3px solid var(--navy); }
.hub-needs .card .link { margin-top: auto; padding-top: 14px; font-size: .94rem; align-self: flex-start; }
.hub-needs .num { font-size: 1.4rem; }
.hub-more { margin-top: 32px; }
.hub-start { list-style: none; padding: 0; margin: 0; display: grid; border-top: 2px solid var(--navy); }
.hub-start a { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text); font-family: var(--serif); font-size: 1.1rem; }
.hub-start a:hover span { color: var(--navy); text-decoration: underline; text-underline-offset: .2em; }
.hub-start strong { color: var(--blue); white-space: nowrap; font-family: var(--font); font-size: 1rem; font-weight: 650; }
.hub-one { text-align: center; }
.hub-one .checks { display: inline-block; text-align: left; min-width: min(100%, 460px); }

/* ------------------------------------------------------------------ WhatsApp button */
.wa { position: fixed; bottom: 20px; right: 20px; z-index: 55; display: flex; align-items: center; gap: 10px; }
.wa-left { right: auto; left: 20px; flex-direction: row-reverse; }
.wa-btn { width: 58px; height: 58px; flex-shrink: 0; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 17, 43, .22); transition: transform .15s, box-shadow .15s; }
.wa-btn:hover { transform: scale(1.06); box-shadow: 0 8px 26px rgba(0, 17, 43, .28); color: #fff; }
.wa-btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wa-bubble { margin: 0; display: flex; align-items: center; gap: 4px; background: var(--white); border: 1.5px solid var(--navy); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--blue-soft); padding: 8px 6px 8px 14px; font-size: .9rem; font-weight: 600; max-width: 240px; animation: wa-in .25s ease-out; }
.wa-bubble[hidden] { display: none; }
.wa-bubble a { color: var(--navy); text-decoration: none; }
.wa-bubble a:hover { color: var(--blue); }
.wa-x { border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 2px 6px; cursor: pointer; border-radius: 4px; }
.wa-x:hover { background: var(--bg-soft); }
@keyframes wa-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ videos */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 48px 32px; align-items: start; }
.video-card { padding: 0; border: 0; background: none; }
.video-card small { display: block; color: var(--muted); font-weight: 550; margin-top: 16px; }
.video-card h2 { margin: 6px 0 6px; }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; background: var(--navy); }
.video-card.is-vertical .video-box { aspect-ratio: 9 / 16; max-height: 640px; margin: 0 auto; }
.video-box video, .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.video-box video { object-fit: contain; background: #000; }
.video-facade { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; color: var(--white); background: var(--navy-2) center / cover no-repeat; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.video-facade::after { content: ""; position: absolute; inset: 0; background: rgba(0, 17, 43, .28); transition: background .15s; }
.video-facade:hover::after, .video-facade:focus-visible::after { background: rgba(0, 17, 43, .1); }
.video-facade:focus-visible { outline: 3px solid var(--sky); outline-offset: -3px; }
.video-play { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 18px rgba(0, 0, 0, .25); }
.video-play::before { content: ""; position: absolute; left: 27px; top: 21px; border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent var(--blue); }
.video-platform { position: absolute; z-index: 1; left: 12px; bottom: 10px; font-size: .82rem; font-weight: 650; background: rgba(0, 17, 43, .75); padding: 3px 9px; border-radius: 3px; }
.video-consent { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .nav { gap: 16px; }
  .nav-link { font-size: .94rem; }
}
@media (max-width: 1020px) {
  .grid-4, .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid, .two-col, .form-layout, .split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .split-head, .pains { position: static; }
  .hero-visual.has-photo .pallet-label { position: relative; left: auto; bottom: auto; margin: -64px 0 0 auto; width: min(380px, 92%); }
  .pallet-label { margin-right: auto; margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 24px 24px; gap: 0; box-shadow: var(--shadow); max-height: calc(100vh - 74px); overflow: auto; }
  .nav.open { display: flex; }
  .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 1.02rem; }
  .caret { display: none; }
  .dropdown-menu, .dropdown-menu.mega, .dropdown:hover .dropdown-menu.mega, .dropdown:focus-within .dropdown-menu.mega { position: static; display: block; box-shadow: none; border: 0; padding: 0 0 8px; margin: 0; min-width: 0; }
  .dropdown-menu::before { display: none; }
  .mega-h { margin: 12px 12px 4px; }
  .mega-foot { border-top: 0; }
  .langs { align-self: flex-start; margin: 14px 0; }
  .nav .btn { align-self: stretch; }
  .banner-inner { flex-direction: column; align-items: flex-start; }
  .final-cta .wrap { grid-template-columns: minmax(0, 1fr); }
  .final-cta h2 { grid-row: auto; }
  .post-list, .post-mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  h1 { font-size: clamp(2.3rem, 11vw, 3rem); }
  .grid-2, .grid-3, .grid-4, .form-row, .ledger-2, .ledger-3, .flow, .sector-rows, .post-list, .post-mosaic { grid-template-columns: minmax(0, 1fr); }
  .flow { gap: 32px; }
  .section { padding: 64px 0; }
  .section-cat { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .hero, .hero-sm { padding: 44px 0 48px; }
  .hero-home { padding: 40px 0 0; }
  .hero-home .hero-grid { padding-bottom: 48px; }
  .pallet-label { transform: none; box-shadow: 8px 8px 0 var(--blue-soft); padding: 14px; width: calc(100% - 8px); }
  .pl-row { font-size: .84rem; gap: 6px; grid-template-columns: 2fr .95fr .8fr .7fr; }
  .spec-strip { grid-template-columns: minmax(0, 1fr); }
  .spec-strip li, .spec-strip li + li { padding: 14px 0; border-left: 0; }
  .spec-strip li + li { border-top: 1px solid var(--line-soft); }
  .stats { padding: 48px 0; }
  .stats .grid { gap: 28px; }
  .card-post.is-lead { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 32px; }
  .form-card { padding: 22px; box-shadow: 8px 8px 0 var(--blue-soft); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .topbar .wrap { justify-content: center; flex-wrap: wrap; gap: 4px 20px; }
  .actions .btn { width: 100%; }
  .final-cta { padding: 64px 0; }
  .quote-feature blockquote { text-indent: 0; }
  .compare, .calc, .calc-inputs { grid-template-columns: minmax(0, 1fr); }
  .compare-col.good { box-shadow: 8px 8px 0 var(--blue-soft); }
  .hub-start a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hub-start strong { white-space: normal; }
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); }
  body:has(.sticky-cta) .footer { padding-bottom: 90px; }
  .video-card.is-vertical .video-box { max-height: 80vh; }
}
@media (min-width: 681px) and (max-width: 1020px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .wa { bottom: 14px; right: 14px; }
  .wa-left { left: 14px; }
  .wa-btn { width: 52px; height: 52px; }
  .wa-desktop { display: none; }
  .wa-bubble { max-width: 200px; font-size: .85rem; }
  .cookie:not([hidden]) ~ .wa { display: none; }   /* the cookie banner takes the bottom of small screens */
}
@media print { .wa, .cookie, .sticky-cta { display: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* blog: tighter article opening, even card heights */
.hero-post { padding-bottom: 36px; }
article > .section { padding-top: 40px; }
.post-cover + .section { padding-top: 56px; }
.card-post:not(.is-lead) p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-post.is-lead p { max-width: 40em; }
.contact-list:not(:has(p)) { display: none; }

/* photos from customers' warehouses (home) — small vertical originals, shown as a strip */
.field-photos { padding-bottom: 32px; }
.field-photos + #testimonials { padding-top: 64px; }
.field-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.field-grid figure { margin: 0; }
.field-grid img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px; }
.field-grid figcaption { margin-top: 10px; font-weight: 650; color: var(--navy); padding-top: 8px; border-top: 2px solid var(--navy); }
@media (max-width: 680px) { .field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; } }

/* testimonial portraits */
.quote-card figcaption img.quote-photo { width: 48px; height: 48px; max-width: none; border-radius: 50%; object-fit: cover; flex: none; }
.quote-card figcaption img.quote-logo { height: 24px; max-width: 80px; margin-left: auto; opacity: .75; }
.quote-feature figcaption img.quote-photo { width: 64px; height: 64px; }
.quote-feature figcaption { gap: 16px; }
.quote-feature figcaption img.quote-logo { margin-left: 8px; }

/* home hero with a photo: the photo leads, the pallet label sits small on its lower-left corner */
.hero-visual.has-photo .hero-photo { aspect-ratio: 4 / 5; max-height: 560px; }
.hero-visual.has-photo .pallet-label { width: 300px; left: -56px; bottom: -40px; padding: 12px 14px 12px; font-size: .86rem; }
.hero-visual.has-photo .pl-row { font-size: .8rem; padding: 6px 0; }
.hero-visual.has-photo .pl-top strong { font-size: 1rem; }
.hero-visual.has-photo .pl-bars { height: 30px; }
.hero-visual.has-photo .pl-note b { font-size: 1.25rem; }
@media (max-width: 1020px) {
  .hero-visual.has-photo .hero-photo { aspect-ratio: 4 / 3; }
  .hero-visual.has-photo .pallet-label { left: auto; bottom: auto; width: min(300px, 88%); margin: -72px 0 0 16px; }
}
