:root {
  --ink: #0c2f44;
  --body: #22394a;
  --muted: #5a6b78;
  --line: #e3e0d8;
  --bg: #faf8f4;
  --white: #ffffff;
  --soft: #f1eee7;
  --teal: #0a7f99;
  --teal-dark: #075a6d;
  --sky: #8fd3e3;
  --band: #0b5f8a;
  --focus: #ffdd00;
  --ok: #047857;
  --bad: #b91c1c;
  --head: Poppins, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--body); font: 1.0625rem/1.7 var(--head); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 64px); }
.narrow { max-width: 860px; }
a { color: var(--teal-dark); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 0; box-shadow: 0 0 0 6px var(--ink); }
[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--focus); color: #000; padding: 8px 12px; z-index: 20; }
.skip-link:focus { left: 8px; }

h1, h2, h3, h4 { color: var(--ink); font-family: var(--head); letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.12; font-weight: 600; margin: 0 0 24px; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); line-height: 1.2; font-weight: 600; margin: 0 0 18px; }
h3 { font-size: 1.2rem; line-height: 1.35; font-weight: 600; margin: 0 0 8px; }
p, li { max-width: 44rem; }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.6; color: var(--ink); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.eyebrow { display: block; font-size: .85rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-dark); margin: 0 0 12px; }

/* Header */
.site-header { background: var(--bg); position: relative; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 88px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; white-space: nowrap; }
.brand b { color: var(--teal); }
.brand em { font-style: normal; font-weight: 400; color: var(--muted); }
.brand img { border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.nav { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.nav li { max-width: none; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 2px solid var(--ink); color: var(--ink); font: 600 1rem var(--head); padding: 8px 14px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.menu-open .bars { background: transparent; }
.menu-open .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-open .bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Buttons */
.button { display: inline-block; background: var(--ink); color: #fff; border: 2px solid var(--ink); padding: 12px 24px; font: 600 1rem var(--head); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.button:visited { color: #fff; }
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.button.outline, .button.outline:visited, .button.secondary, .button.secondary:visited { background: transparent; color: var(--ink); }
.button.secondary { border-color: var(--teal); }
.button.outline:hover, .button.secondary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button.light, .button.light:visited { background: #fff; color: var(--ink); border-color: #fff; }
.button.light:hover { background: var(--sky); border-color: var(--sky); color: var(--ink); }
.button.small { padding: 8px 16px; font-size: .95rem; }
.button:focus-visible { background: var(--focus); color: #000; border-color: var(--focus); }
.actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.white { background: var(--white); }
.section.soft { background: var(--soft); }
.section.tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center p { margin-left: auto; margin-right: auto; }

/* Home hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.hero-copy { padding-bottom: clamp(40px, 6vw, 96px); }
.hero h1 { max-width: 15ch; }
.hero-art { position: relative; aspect-ratio: 1 / .82; }
.hero-art .shape-a { position: absolute; width: 34%; aspect-ratio: 1; background: var(--sky); border-radius: 0 0 0 100%; left: 0; top: 4%; }
.hero-art .shape-b { position: absolute; width: 38%; aspect-ratio: 2 / 1; background: var(--teal); transform: rotate(-38deg); left: 2%; bottom: 14%; }
.hero-art .browser.one { position: absolute; right: 0; top: 0; width: 82%; }
.hero-art .browser.two { position: absolute; left: 12%; bottom: 0; width: 64%; }

.browser { background: #fff; border-radius: 10px; box-shadow: 0 30px 70px -30px rgba(12,47,68,.55); overflow: hidden; border: 1px solid #d9d4c9; }
.browser::before { content: ""; display: block; height: 24px; border-bottom: 1px solid #ddd8cd; background: #ece8e0 radial-gradient(circle at 14px 12px, #e06c5f 4px, transparent 5px), #ece8e0; }
.browser img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }

.intro .lead { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; max-width: 42rem; }

/* Sectors band */
.band { background: var(--band); color: #e6f4f8; text-align: center; }
.band h2 { color: #fff; }
.sector-list { list-style: none; padding: 0; margin: 40px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; max-width: 980px; }
.sector-list li { font-size: 1.3rem; font-weight: 500; color: #ffffff; max-width: none; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split + .split { margin-top: clamp(64px, 9vw, 120px); }
.split.reverse > :first-child { order: 2; }
.callout { display: block; background: var(--soft); padding: 20px 24px; margin-top: 28px; text-decoration: none; color: var(--ink); max-width: 34rem; border-left: 4px solid var(--teal); }
.callout:visited { color: var(--ink); }
.section.soft .callout { background: var(--white); }
.callout strong { display: block; font-weight: 600; line-height: 1.4; }
.callout span { display: inline-block; margin-top: 8px; color: var(--teal-dark); font-weight: 500; }
.callout:hover strong { text-decoration: underline; }

/* Cards */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); padding: 32px; border-top: 4px solid var(--teal); }
.section.white .card { background: var(--bg); }
.card p { margin: 8px 0 0; }

.work-card { display: flex; flex-direction: column; background: var(--white); text-decoration: none; color: inherit; transition: transform .2s, box-shadow .2s; }
.work-card:visited { color: inherit; }
.section.white .work-card { background: var(--bg); }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(12,47,68,.5); }
.work-card .shot { background: #dceff4; padding: 24px 24px 0; overflow: hidden; }
.work-card:nth-child(3n+2) .shot { background: #e9e3f3; }
.work-card:nth-child(3n+3) .shot { background: #f4e9d7; }
.work-card .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 6px 6px 0 0; box-shadow: 0 10px 30px -12px rgba(12,47,68,.45); }
.work-card .shot.live { background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: var(--sky); font-weight: 500; aspect-ratio: 16 / 11.5; padding: 24px; text-align: center; }
.work-card .shot.live img { width: 72px; aspect-ratio: auto; box-shadow: none; border-radius: 16px; }
.work-card .body { padding: 24px 28px 30px; }
.work-card h3 { font-size: 1.25rem; }
.work-card .cap { color: var(--teal-dark); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 8px; }
.work-card .body p:last-child { margin-bottom: 0; }

/* Inner page hero */
.page-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { max-width: 42rem; }

.checklist { list-style: none; padding: 0; margin: 24px 0 0; }
.checklist li { position: relative; padding-left: 34px; margin: 12px 0; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath d='M8 13.6 4.4 10l-1.4 1.4L8 16.4l9-9L15.6 6z'/%3E%3C/svg%3E") center/13px no-repeat; }

.steps { counter-reset: step; display: grid; gap: 28px; grid-template-columns: repeat(3, 1fr); padding: 0; list-style: none; margin: 0; }
.steps li { counter-increment: step; background: var(--white); padding: 32px; max-width: none; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 600; font-size: 2rem; color: var(--teal); margin-bottom: 8px; }

.cta { background: var(--ink); color: #d9ecf2; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { color: #fff; margin: 0 0 8px; }
.cta p { margin: 0; }

table { border-collapse: collapse; width: 100%; font-size: 1rem; }
th, td { text-align: left; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.prose h2 { margin-top: 48px; font-size: 1.6rem; }
.prose ul { padding-left: 1.2em; }
.case-shot { border: 1px solid var(--line); box-shadow: 0 24px 60px -30px rgba(12,47,68,.5); margin: 16px 0 32px; }

/* Kept for the demos */
.demo-banner { background: #e6f4f8; border-left: 4px solid var(--teal); color: var(--ink); padding: 12px 16px; margin: 0 0 24px; font-size: .95rem; }
.panel { background: var(--soft); padding: 20px 24px; margin: 24px 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; text-transform: uppercase; letter-spacing: .03em; background: #ede9fe; color: #4c1d95; }
.tag.ok { background: #dcfce7; color: #14532d; }
.tag.warn { background: #fef3c7; color: #78350f; }
.tag.bad { background: #fee2e2; color: #7f1d1d; }
.tag.info { background: #dbeafe; color: #1e3a8a; }
form .field { margin: 0 0 20px; }
label, legend { display: block; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.hint { display: block; color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], input[type=password], select, textarea { font: inherit; padding: 8px 10px; border: 2px solid var(--ink); width: 100%; max-width: 32em; background: #fff; }
textarea { min-height: 6em; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.radios label, .checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; margin: 6px 0; }
.error-message { color: var(--bad); font-weight: 700; display: block; }
.field.has-error { border-left: 5px solid var(--bad); padding-left: 12px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.error-summary { border: 4px solid var(--bad); padding: 16px 20px; margin-bottom: 24px; }
.error-summary h2 { margin-top: 0; font-size: 1.3rem; }
.success { border: 4px solid var(--ok); padding: 16px 20px; margin: 24px 0; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 16px 0; }
.stat { background: var(--soft); padding: 16px; }
.stat .num { font-size: 2rem; font-weight: 700; display: block; color: var(--ink); }

/* Footer */
.site-footer { background: var(--ink); color: #b7cfd9; padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr 1fr; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 8px 0; }
.footer-brand { color: #fff; font-weight: 600; font-size: 1.4rem; margin: 0 0 10px; }
.footer-brand b { color: var(--sky); }
.footer-head { color: #fff; font-weight: 600; margin: 0 0 10px; }
.legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding-top: 24px; font-size: .85rem; }
.legal p { max-width: none; }

/* Responsive */
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(12,47,68,.3); flex-direction: column; align-items: stretch; gap: 0; padding: 8px clamp(16px, 4vw, 64px) 24px; }
  .menu-open .site-nav { display: flex; }
  .nav { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); text-decoration: underline; text-decoration-thickness: 2px; }
  .header-cta { margin-top: 20px; text-align: center; }
}
@media (max-width: 900px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-copy { padding-bottom: 0; }
  .grid, .grid.two, .steps { grid-template-columns: 1fr 1fr; }
  .sector-list { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .header-inner { min-height: 72px; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 30px; height: 30px; }
  .menu-toggle { padding: 6px 10px; }
  .grid, .grid.two, .steps, .sector-list { grid-template-columns: 1fr; }
  .card, .steps li { padding: 24px; }
  .work-card .body { padding: 20px 22px 24px; }
  .actions .button { flex: 1 1 100%; text-align: center; }
  th, td { padding-right: 12px; }
  .cta .button { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.header-cta { white-space: nowrap; }

/* Solution landing pages */
.sol-hero { padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px); }
.sol-hero .hero-grid { align-items: center; }
.sol-hero h1 { max-width: 18ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.facts li { background: var(--white); border: 1px solid var(--line); padding: 6px 14px; font-size: .9rem; font-weight: 500; color: var(--ink); max-width: none; }
.problem-grid .card { border-top-color: var(--sky); }
.problem-grid h3::before { content: "—"; color: var(--teal); margin-right: 8px; }
.deliver-list { columns: 2; column-gap: 40px; }
.deliver-list li { break-inside: avoid; }
.faq details { background: var(--white); border-left: 4px solid var(--teal); margin: 0 0 12px; max-width: 52rem; }
.section.white .faq details { background: var(--bg); }
.faq summary { cursor: pointer; padding: 18px 24px; font-weight: 600; color: var(--ink); list-style: none; position: relative; padding-right: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 24px; top: 14px; font-size: 1.5rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 24px 20px; }
.faq details p { margin: 0 0 10px; }
.sol-card { display: flex; flex-direction: column; background: var(--white); padding: 28px; text-decoration: none; color: inherit; border-top: 4px solid var(--teal); transition: transform .2s, box-shadow .2s; }
.sol-card:visited { color: inherit; }
.sol-card:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -28px rgba(12,47,68,.5); }
.sol-card p { margin: 8px 0 0; }
.sol-card .more { margin-top: auto; padding-top: 16px; font-weight: 600; color: var(--teal-dark); }
@media (max-width: 620px) { .deliver-list { columns: 1; } }
