/* =========================================================
   SmartMonkey Corporate (smartCorp) — main stylesheet
   Light, corporate. Navy #0A2540 + teal #0FB5A6.
   Ported from the "B2B engineering services" design.
   ========================================================= */

/* Self-hosted fonts (GDPR: no third-party font requests to Google) */
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-300-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/ibm-plex-sans-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

:root {
  --ink: #0A2540;          /* primary text / dark surfaces */
  --ink-2: #10315A;        /* navy hover */
  --muted: #5A6675;        /* body copy */
  --muted-2: #7E8A98;      /* secondary */
  --label: #94A0AE;        /* mono labels */
  --teal: #0FB5A6;         /* accent */
  --teal-d: #0E8C82;       /* accent text on light */
  --teal-l: #3FD0C4;       /* accent on dark */
  --line: #E7EAEF;
  --line-2: #EDEFF2;
  --line-3: #DCE3EA;       /* inputs */
  --surface: #ffffff;
  --surface-2: #F5F7FA;
  --dot: #E3E9F0;          /* dot-grid on light */
  --tint: #F4FBFA;         /* teal tint bg */
  --tint-line: #CBE9E5;
  --footer-bg: #081C33;
  --danger: #C0392B;
  --sans: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", monospace;
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 32px);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; }

[x-cloak] { display: none !important; }

@keyframes scRise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes scPulseHub { 0% { transform: scale(1); opacity: .4; } 70%,100% { transform: scale(3); opacity: 0; } }
@keyframes scPing { 0% { transform: scale(1); opacity: .45; } 70%,100% { transform: scale(3); opacity: 0; } }
@keyframes scPop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes scNavDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

.rise { animation: scRise .7s cubic-bezier(.16,.84,.44,1) both; }
.rise-1 { animation: scRise .7s cubic-bezier(.16,.84,.44,1) .1s both; }

/* ──── Layout ──── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(64px, 9vw, 120px) var(--gutter); }
.section-sm { padding: clamp(44px, 6vw, 80px) var(--gutter); }
main { display: block; }

/* dot-grid backdrop, top-right, fading left */
.dotfield {
  position: absolute; top: 0; right: 0; width: 44%; height: 100%;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6; pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000, transparent);
  mask-image: linear-gradient(to left, #000, transparent);
}

/* ──── Type ──── */
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--label);
}
.eyebrow .n { color: var(--teal); }
.eyebrow.teal { color: var(--teal-d); }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--teal-d);
}
.eyebrow-pill .dot { width: 7px; height: 7px; background: var(--teal); border-radius: 50%; }

h1, h2, h3 { letter-spacing: -.02em; text-wrap: balance; }

.h-hero {
  margin: 0; font-size: clamp(34px, 5.2vw, 60px); font-weight: 600;
  line-height: 1.07; letter-spacing: -.025em; color: var(--ink);
}
.h-page {
  margin: 0; font-size: clamp(32px, 4.8vw, 54px); font-weight: 600;
  line-height: 1.08; letter-spacing: -.025em; color: var(--ink);
}
.h-section {
  margin: 14px 0 0; font-size: clamp(28px, 4vw, 44px); font-weight: 600;
  color: var(--ink); line-height: 1.12;
}
.mark { box-shadow: inset 0 -.13em 0 #BCEAE5; }

.lede {
  margin: 26px 0 0; font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.65; color: var(--muted); max-width: 60ch;
}
.lede.sm { font-size: clamp(16px, 1.4vw, 18.5px); }

/* ──── Buttons ──── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 10px;
  font-size: 15.5px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-sm { height: 50px; padding: 0 22px; font-size: 15px; }
.btn .arr { color: var(--teal-l); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-3); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface-2); }
.btn-light { background: #fff; color: var(--ink); font-weight: 600; }
.btn-light:hover { transform: translateY(-1px); }
.btn-light .arr { color: var(--teal-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 500; color: var(--teal-d);
}
.link-arrow:hover { gap: 10px; }

/* ──── Header / nav ──── */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
  height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-logo { height: 52px; width: auto; display: block; }

.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 38px); }
.nav-link {
  position: relative; font-size: 15px; font-weight: 500; color: #42505F;
  padding: 24px 0; transition: color .2s;
}
.nav-link:hover { color: var(--ink); }
.nav-link.is-current { color: var(--ink); }
.nav-link.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 22px;
  height: 2px; background: var(--teal); border-radius: 2px;
}
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--ink-2); transform: translateY(-1px); }
.nav-cta .arr { color: var(--teal-l); }

/* language switch */
.lang-switch { position: relative; }
.lang-switch .current {
  font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #42505F;
  background: none; border: 1px solid var(--line-3); border-radius: 8px; padding: 8px 11px; cursor: pointer;
}
.lang-switch .current:hover { border-color: var(--ink); color: var(--ink); }
.lang-switch .options {
  position: absolute; top: calc(100% + 6px); right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 9px; padding: 5px;
  box-shadow: 0 14px 30px -16px rgba(10,37,64,.3); display: flex; flex-direction: column; min-width: 64px;
}
.lang-switch .options button {
  font-family: var(--mono); font-size: 12px; color: #42505F; background: none; border: 0;
  padding: 8px 12px; text-align: left; border-radius: 6px; cursor: pointer;
}
.lang-switch .options button:hover { background: var(--surface-2); color: var(--ink); }

/* mobile nav */
.nav-toggle {
  display: none; flex: none; width: 42px; height: 42px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 1px solid #E0E5EC; border-radius: 9px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-mobile { display: none; }

@media (max-width: 919px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-mobile {
    display: block; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 22px; animation: scNavDrop .28s cubic-bezier(.16,.84,.44,1) both;
  }
  .nav-mobile a {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 2px; font-size: 17px; font-weight: 500; color: #1B2733; border-bottom: 1px solid #F0F2F5;
  }
  .nav-mobile .nav-cta {
    margin-top: 18px; justify-content: center; height: 50px; border-bottom: 0; color: #fff;
  }
  .nav-mobile .lang-row { display: flex; gap: 8px; margin-top: 18px; }
  .nav-mobile .lang-row button {
    font-family: var(--mono); font-size: 13px; border: 1px solid var(--line-3);
    border-radius: 8px; padding: 8px 14px; background: #fff; cursor: pointer; color: #42505F;
  }
}

/* ──── Hero (home) ──── */
.hero { position: relative; padding: clamp(56px,8vw,104px) var(--gutter) clamp(56px,7vw,92px); }
.hero-grid {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: clamp(36px, 5vw, 72px); align-items: center;
}
.hero-trust {
  display: flex; align-items: center; gap: 18px; margin-top: 34px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2);
}
.hero-trust .place { display: inline-flex; align-items: center; gap: 7px; color: #42505F; }
.hero-trust .place::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.hero-visual {
  position: relative; border: 1px solid var(--line); border-radius: 18px; background: #FBFCFD;
  background-image: radial-gradient(#E4EAF1 1px, transparent 1px); background-size: 22px 22px;
  padding: 18px; box-shadow: 0 30px 60px -34px rgba(10,37,64,.28);
}
.hero-visual svg { width: 100%; height: auto; display: block; }

/* ──── Capability strip ──── */
.capstrip { background: var(--surface-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.capstrip-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 30px var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px;
}
.capstrip .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.capstrip .items { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(14px, 2.4vw, 32px); }
.capstrip .items span.v { font-size: 15px; font-weight: 500; color: #33414F; }
.capstrip .items .sep { color: #C7CFD8; }

/* ──── Generic section head ──── */
.head { max-width: 680px; }
.head.center { margin: 0 auto; text-align: center; }
.head .lede { max-width: 62ch; }

/* ──── Service cards grid (home) ──── */
.card-grid {
  margin-top: clamp(36px, 5vw, 56px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 20px;
}
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; background: #fff;
  display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s;
}
a.card:hover { border-color: var(--tint-line); box-shadow: 0 24px 44px -30px rgba(10,37,64,.34); transform: translateY(-4px); }
.card h3 { margin: 20px 0 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.card p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.card .more { margin-top: 18px; font-size: 13.5px; font-weight: 500; color: var(--teal-d); display: inline-flex; align-items: center; gap: 6px; }

/* ──── Dark panel (industries teaser, how-we-work) ──── */
.panel-dark {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.panel-dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px;
}
.panel-dark .inner { position: relative; max-width: var(--maxw); margin: 0 auto; }
.panel-dark .eyebrow { color: #7E93A8; }
.panel-dark .eyebrow .n { color: var(--teal-l); }
.panel-dark .h-section { color: #fff; }

/* industry mini-grid inside dark panel */
.ind-grid {
  margin-top: clamp(34px,5vw,52px); display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden;
}
.ind-grid .cell { background: var(--ink); padding: 26px 24px; }
.ind-grid .cell .n { font-family: var(--mono); font-size: 11px; color: var(--teal-l); }
.ind-grid .cell .t { margin-top: 12px; font-size: 16.5px; font-weight: 600; }
.ind-grid .cell .d { margin-top: 6px; font-size: 13.5px; color: #92A4B7; line-height: 1.5; }
.ind-grid a.cell {
  background: #0C2A4C; display: flex; align-items: center; justify-content: space-between; transition: background .2s;
}
.ind-grid a.cell:hover { background: #103254; }
.ind-grid a.cell .t { margin: 0; }
.ind-grid a.cell .arr { color: var(--teal-l); font-size: 18px; }

/* ──── Why grid ──── */
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(36px, 5vw, 64px); align-items: center;
}
.split.start { align-items: start; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px;
}
.feature .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.feature .ic i { width: 11px; height: 11px; background: var(--teal); transform: rotate(45deg); border-radius: 2px; }
.feature h3 { margin: 16px 0 7px; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.feature p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* ──── Services page (numbered blocks) ──── */
.svc-tabs { margin-top: clamp(28px,4vw,44px); display: flex; flex-wrap: wrap; gap: 10px; }
.svc-tab {
  font-family: var(--mono); font-size: 12.5px; color: #33414F;
  border: 1px solid #E0E5EC; border-radius: 999px; padding: 9px 16px; transition: border-color .2s, color .2s;
}
.svc-tab:hover { border-color: var(--teal); color: var(--ink); }

.svc-block { padding: clamp(44px,6vw,80px) var(--gutter); border-top: 1px solid var(--line-2); }
.svc-block.alt { background: var(--surface-2); }
.svc-block .inner { max-width: var(--maxw); margin: 0 auto; }
.svc-block .title-row { display: flex; align-items: baseline; gap: 18px; }
.svc-block .bignum { font-family: var(--mono); font-size: clamp(28px,4vw,46px); font-weight: 500; color: #D7DEE7; line-height: 1; }
.svc-block .title-row h2 { margin: 0; font-size: clamp(24px,3.2vw,36px); font-weight: 600; color: var(--ink); }
.svc-body {
  margin-top: clamp(24px,3vw,40px); display: grid; grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
  gap: clamp(28px,4vw,56px); align-items: center;
}
.svc-body p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.65; color: var(--muted); }
.feat-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap: 12px 22px; }
.feat-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.feat-list li::before { content: ""; width: 8px; height: 8px; background: var(--teal); transform: rotate(45deg); border-radius: 1px; flex: none; }
.svc-art {
  border: 1px solid var(--line); border-radius: 18px; background: #FBFCFD;
  background-image: radial-gradient(#E4EAF1 1px, transparent 1px); background-size: 22px 22px;
  min-height: 230px; display: flex; align-items: center; justify-content: center; padding: 28px;
}
.svc-block.alt .svc-art { background-color: #fff; }
.order-2 { order: 2; } .order-1 { order: 1; }
@media (max-width: 720px) { .order-2, .order-1 { order: 0; } }

/* ──── CTA banner (rounded navy) ──── */
.cta-banner { padding: clamp(56px,7vw,96px) var(--gutter); }
.cta-banner .box {
  max-width: var(--maxw); margin: 0 auto; background: var(--ink); border-radius: 22px;
  padding: clamp(40px,6vw,72px); position: relative; overflow: hidden;
}
.cta-banner .box::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px;
}
.cta-banner .row { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-banner h2 { margin: 0; font-size: clamp(26px,3.4vw,38px); font-weight: 600; color: #fff; max-width: 20ch; }
.cta-banner p { margin: 14px 0 0; font-size: 16px; color: #A9B8C8; max-width: 46ch; }

/* ──── Industries page cards ──── */
.industry-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 20px; }
.industry {
  border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px; background: #fff;
  display: flex; flex-direction: column; transition: border-color .25s, box-shadow .25s, transform .25s;
}
.industry:hover { border-color: var(--tint-line); box-shadow: 0 24px 44px -30px rgba(10,37,64,.32); transform: translateY(-4px); }
.industry .n { font-family: var(--mono); font-size: 12px; color: var(--teal); }
.industry h2 { margin: 14px 0 10px; font-size: 21px; font-weight: 600; color: var(--ink); }
.industry p { margin: 0 0 20px; font-size: 14.8px; line-height: 1.6; color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--surface-2);
  border: 1px solid #EAEDF1; border-radius: 999px; padding: 5px 11px;
}
.industry.invite { border-style: dashed; border-color: var(--tint-line); background: var(--tint); justify-content: center; }
.industry.invite h2 { margin: 0 0 10px; font-size: 19px; }
.industry.invite p { flex: none; }

/* ──── About: facts table, regions, partnership ──── */
.facts { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.facts .row { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.facts .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.facts .v { font-size: 15px; font-weight: 500; color: var(--ink); }

.region-list { display: flex; flex-direction: column; gap: 14px; }
.region {
  display: flex; align-items: center; gap: 16px; border: 1px solid var(--line);
  border-radius: 14px; padding: 20px 22px; background: #fff;
}
.region .code { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--teal-d); width: 42px; }
.region .t { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.region .d { font-size: 13.5px; color: var(--muted-2); }
.region .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

.howwork-grid { margin-top: clamp(34px,4vw,52px); display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: clamp(28px,3vw,44px); }
.howwork .k { font-family: var(--mono); font-size: 12px; color: var(--teal-l); margin-bottom: 12px; }
.howwork p { margin: 0; font-size: 15.5px; line-height: 1.65; color: #B7C5D4; }

/* ──── Presence map ──── */
.presence { display: flex; flex-wrap: wrap; gap: clamp(20px,4vw,48px); align-items: center; }
.presence-map {
  flex: 2 1 380px; min-width: 0; position: relative; border: 1px solid var(--line);
  border-radius: var(--radius); background: #FBFCFD;
  background-image: radial-gradient(#E1E7EE 1px, transparent 1px); background-size: 24px 24px; overflow: hidden; padding: 8px;
}
.presence-map svg { width: 100%; height: auto; display: block; }
.presence-map .coords {
  position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: #9AA7B5;
}
.presence-regions { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.region-btn {
  text-align: left; cursor: pointer; border: 1px solid var(--line); border-left: 3px solid transparent;
  border-radius: 12px; background: #fff; padding: 18px 20px; transition: border-color .2s, background .2s;
}
.region-btn.is-active { border-color: var(--tint-line); border-left-color: var(--teal); background: var(--tint); }
.region-btn .head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.region-btn .t { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.region-btn .tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--label); }
.region-btn.is-active .tag { color: var(--teal-d); }
.region-btn p { margin: 11px 0 0; font-size: 13.8px; line-height: 1.65; color: var(--muted); }

/* ──── Partnership / pull-quote band ──── */
.band-tint {
  max-width: var(--maxw); margin: 0 auto; border: 1px solid var(--tint-line); background: var(--tint);
  border-radius: 22px; padding: clamp(32px,5vw,56px);
}

/* ──── Contact ──── */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: clamp(32px,5vw,56px); align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.contact-card .ic { margin-top: 2px; width: 34px; height: 34px; border-radius: 9px; background: var(--tint); display: flex; align-items: center; justify-content: center; flex: none; }
.contact-card .ic i { width: 11px; height: 11px; background: var(--teal); transform: rotate(45deg); border-radius: 2px; }
.contact-card .k { font-size: 11px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.contact-card .v { font-size: 16px; color: var(--ink); font-weight: 600; margin-top: 3px; }
.contact-card .s { font-size: 13.5px; color: var(--muted-2); margin-top: 2px; }
.contact-card .v a:hover { color: var(--teal-d); }

.form-panel {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(24px,4vw,38px); box-shadow: 0 30px 60px -40px rgba(10,37,64,.3);
}
.form { display: flex; flex-direction: column; gap: 18px; }
.form .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 500; color: #33414F; }
.field input, .field select, .field textarea {
  padding: 0 14px; height: 48px; border: 1.5px solid var(--line-3); border-radius: 10px;
  font-size: 15px; color: var(--ink); font-family: inherit; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; padding: 13px 14px; resize: vertical; line-height: 1.6; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #A9B3BF; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,181,166,.12); outline: none;
}
.field select { cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form .fine { font-size: 12.5px; color: var(--muted-2); max-width: 280px; line-height: 1.5; margin: 0; }
.form .fine a { color: var(--teal-d); }
.htmx-indicator { opacity: 1; }
.htmx-request .submit { opacity: .6; pointer-events: none; }

.form-done {
  border: 1px solid #BFE7E3; background: var(--tint); border-radius: var(--radius);
  padding: clamp(32px,5vw,48px); text-align: center; animation: scPop .4s cubic-bezier(.16,.84,.44,1) both;
}
.form-done .check {
  width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px;
}
.form-done h3 { margin: 0 0 10px; font-size: 22px; font-weight: 600; color: var(--ink); }
.form-done p { margin: 0 auto 22px; max-width: 420px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.form-done p a { color: var(--teal-d); }

/* map placeholder (contact) */
.mapbox {
  position: relative; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  height: clamp(280px,42vw,440px); background: #EEF1F5;
  background-image: repeating-linear-gradient(0deg, transparent 0 42px, #E2E6EC 42px 43px),
                    repeating-linear-gradient(90deg, transparent 0 42px, #E2E6EC 42px 43px);
}
.mapbox .pin { position: absolute; left: 42%; top: 46%; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; }
.mapbox .pin .ping { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); transform-origin: center; animation: scPing 2.6s ease-out infinite; }
.mapbox .pin .dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--teal); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(10,37,64,.3); }
.mapbox .pin .label { margin-top: 10px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(10,37,64,.5); }
.mapbox .coords { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted-2); background: rgba(255,255,255,.7); padding: 5px 9px; border-radius: 6px; }
.mapbox .gmaps { position: absolute; right: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #E0E5EC; color: var(--ink); font-size: 13.5px; font-weight: 500; padding: 10px 16px; border-radius: 9px; box-shadow: 0 6px 16px -8px rgba(10,37,64,.3); transition: transform .2s, border-color .2s; }
.mapbox .gmaps:hover { transform: translateY(-1px); border-color: var(--teal); }
.mapbox .gmaps span { color: var(--teal-d); }

/* ──── SapiensCore page ──── */
.sc-hero-card {
  border: 1px solid var(--tint-line); background: var(--tint); border-radius: 18px; padding: clamp(28px,4vw,40px);
}
.sc-chip {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; color: var(--teal-d); background: #fff; border: 1px solid var(--tint-line);
  border-radius: 999px; padding: 7px 14px;
}
.caps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 20px; margin-top: clamp(32px,4vw,48px); }
.cap {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; background: #fff;
}
.cap .n { font-family: var(--mono); font-size: 11px; color: var(--teal); }
.cap h3 { margin: 14px 0 8px; font-size: 17.5px; font-weight: 600; color: var(--ink); }
.cap p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* SapiensCore — "what sets it apart" band (single-device loyalty + EMV) */
.sc-edge {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px,4vw,52px); align-items: center;
  border: 1px solid var(--tint-line); background: var(--tint); border-radius: 18px;
  padding: clamp(28px,4vw,44px); position: relative; overflow: hidden;
}
.sc-edge::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--teal);
}
.sc-edge-text .lede { margin-top: 14px; }
.sc-edge-text strong { color: var(--ink); font-weight: 600; }
.sc-edge-stats { display: grid; gap: 14px; }
.sc-edge-stat {
  background: #fff; border: 1px solid var(--tint-line); border-radius: 12px; padding: 16px 18px;
}
.sc-edge-stat .v { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.sc-edge-stat .k { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) { .sc-edge { grid-template-columns: 1fr; } }

/* ──── Legal pages ──── */
.legal { max-width: 820px; margin: 0 auto; }
.legal .updated { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 18px; }
.legal h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 600; color: var(--ink); }
.legal h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; color: var(--ink); }
.legal p, .legal li { font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--teal-d); }

/* ──── Footer ──── */
.footer { background: var(--footer-bg); color: #C5D0DD; position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 26px 26px;
}
.footer-inner { position: relative; max-width: var(--maxw); margin: 0 auto; padding: clamp(56px,7vw,84px) var(--gutter) 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: 44px 32px; }
.footer-brandcol { grid-column: 1 / -1; max-width: 360px; }
.footer .brand-logo { height: 52px; }
.footer-brandcol p { margin: 18px 0 22px; font-size: 14.5px; line-height: 1.7; color: #8FA0B4; }
.footer-hq { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; color: #6E8095; text-transform: uppercase; line-height: 1.9; }
.footer-hq .v { color: #AEBDCE; }
.footer-col .h { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5E7187; margin-bottom: 18px; }
.footer-col nav { display: flex; flex-direction: column; gap: 13px; }
.footer-col nav a { color: #B9C6D5; font-size: 14.5px; transition: color .2s; }
.footer-col nav a:hover { color: #fff; }
.footer-bottom {
  margin-top: clamp(40px,5vw,60px); padding: 26px 0; border-top: 1px solid rgba(255,255,255,.09);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.footer-bottom .copy { font-size: 13px; color: #7E90A4; }
.footer-bottom .langs { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: #8FA0B4; }
.footer-bottom .langs .sep { color: #50627A; }
