/*
Theme Name: OMAV Technology 2026
Theme URI: https://omavtech.com/
Description: Standalone WordPress theme for OMAV Technology Private Limited. Colour-coded service system, card-led layouts, fully responsive, server-rendered content with structured data emitted in the document head rather than on screen.
Author: OMAV Technology Private Limited
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omav
*/

/* =========================================================================
   1. TOKENS
   ========================================================================= */
:root {
  /* Neutrals */
  --ink:        #131A33;
  --ink-2:      #1D2647;
  --ink-3:      #2A3358;
  --title:      #131A33;
  --body:       #4C5674;
  --muted:      #7C86A4;
  --line:       #E4E8F4;
  --line-soft:  #EFF2F9;
  --mist:       #F6F8FD;
  --cloud:      #EDF1FB;
  --paper:      #FFFFFF;

  /* Brand */
  --brand:      #4F46E5;
  --brand-dark: #4338CA;
  --brand-mid:  #6366F1;
  --brand-soft: #EEF0FE;
  --brand-tint: #F5F6FF;

  /* Functional category colours. Each service area owns one. */
  --c-sap:      #0284C7;  --c-sap-soft:   #E0F2FE;
  --c-ai:       #7C3AED;  --c-ai-soft:    #F3EBFF;
  --c-soft:     #EA580C;  --c-soft-soft:  #FFEDE4;
  --c-web:      #DB2777;  --c-web-soft:   #FCE7F3;
  --c-cloud:    #0891B2;  --c-cloud-soft: #E0F7FB;
  --c-proc:     #059669;  --c-proc-soft:  #DCFCE9;

  /* Utility */
  --amber:      #F59E0B;
  --amber-soft: #FEF3C7;
  --success:    #10B981;
  --danger:     #DC2626;
  --danger-soft:#FEE2E2;

  /* Accent defaults, overridden per section/page by .has-accent-* */
  --accent:      var(--brand);
  --accent-soft: var(--brand-soft);

  /* Type */
  --font-display: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Catamaran", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Scale */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1:  clamp(1.18rem, 1.10rem + 0.36vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.26rem + 0.72vw, 1.85rem);
  --step-3:  clamp(1.70rem, 1.42rem + 1.26vw, 2.45rem);
  --step-4:  clamp(2.05rem, 1.55rem + 2.20vw, 3.25rem);
  --step-5:  clamp(2.45rem, 1.62rem + 3.60vw, 4.30rem);

  /* Space */
  --sp-1: 0.35rem;  --sp-2: 0.65rem;  --sp-3: 1rem;
  --sp-4: 1.5rem;   --sp-5: 2.25rem;  --sp-6: 3.25rem;
  --sp-7: 4.5rem;   --sp-8: 6rem;

  /* Shape */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Elevation. Soft and layered, never a single hard drop. */
  --sh-1: 0 1px 2px rgba(19,26,51,.05), 0 2px 6px rgba(19,26,51,.04);
  --sh-2: 0 2px 4px rgba(19,26,51,.05), 0 8px 20px rgba(19,26,51,.06);
  --sh-3: 0 4px 8px rgba(19,26,51,.05), 0 18px 40px rgba(19,26,51,.09);
  --sh-brand: 0 8px 24px rgba(79,70,229,.24);

  --wrap: 1200px;
  --wrap-narrow: 780px;
  --header-h: 76px;
}

/* Accent context classes. Applied to a section, card or body. */
.acc-sap   { --accent: var(--c-sap);   --accent-soft: var(--c-sap-soft); }
.acc-ai    { --accent: var(--c-ai);    --accent-soft: var(--c-ai-soft); }
.acc-soft  { --accent: var(--c-soft);  --accent-soft: var(--c-soft-soft); }
.acc-web   { --accent: var(--c-web);   --accent-soft: var(--c-web-soft); }
.acc-cloud { --accent: var(--c-cloud); --accent-soft: var(--c-cloud-soft); }
.acc-proc  { --accent: var(--c-proc);  --accent-soft: var(--c-proc-soft); }

/* =========================================================================
   2. FONTS
   ========================================================================= */
@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/display.woff2") format("woff2-variations");
  font-weight: 400 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Catamaran";
  src: url("assets/fonts/body.woff2") format("woff2-variations");
  font-weight: 300 700; font-style: normal; font-display: swap;
}

/* =========================================================================
   3. RESET AND BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.68;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--title);
  line-height: 1.14;
  letter-spacing: -0.021em;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: var(--step-5); font-weight: 700; letter-spacing: -0.032em; }
h2 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.028em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p  { text-wrap: pretty; }
a  { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong, b { font-weight: 700; color: var(--title); }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--brand); color: #fff; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: .8rem 1.3rem;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* =========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================= */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }

.section { padding-block: var(--sp-8); }
.section-sm { padding-block: var(--sp-7); }
.section-mist { background: var(--mist); }
.section-cloud { background: var(--cloud); }
.section-tint { background: var(--brand-tint); }

.section-ink {
  background: var(--ink);
  color: #C3CBE4;
  position: relative;
  overflow: hidden;
}
.section-ink h2, .section-ink h3, .section-ink h4 { color: #fff; }
.section-ink::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(720px 380px at 12% 0%,  rgba(99,102,241,.30), transparent 62%),
    radial-gradient(620px 420px at 92% 100%, rgba(124,58,237,.26), transparent 60%);
  pointer-events: none;
}
.section-ink > * { position: relative; z-index: 1; }

/* Section heading block */
.sec-head { max-width: 700px; margin-bottom: var(--sp-6); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p {
  margin-top: var(--sp-3);
  font-size: var(--step-1);
  color: var(--body);
  line-height: 1.6;
}
.section-ink .sec-head p { color: #A8B2D1; }

/* Eyebrow. A small coloured label, not a monospace tag. */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .085em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.section-ink .eyebrow { color: #A5B4FC; }

/* Grids */
.grid { display: grid; gap: var(--sp-4); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }

/* =========================================================================
   5. BUTTONS
   ========================================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display);
  font-weight: 600; font-size: .97rem; line-height: 1;
  padding: .95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--sh-brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 12px 30px rgba(79,70,229,.32); }

.btn-ghost { background: var(--paper); color: var(--title); border-color: var(--line); box-shadow: var(--sh-1); }
.btn-ghost:hover { color: var(--brand); border-color: var(--brand); }

.btn-on-ink { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-on-ink:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--brand-soft); color: var(--brand-dark); }

.btn-lg { padding: 1.1rem 2rem; font-size: 1.03rem; }
.btn-sm { padding: .7rem 1.2rem; font-size: .88rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with arrow */
.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-display); font-weight: 600; font-size: .93rem;
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .18s ease; }
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover svg { transform: translateX(4px); }

/* =========================================================================
   6. HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex; align-items: center; gap: var(--sp-4);
  height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: .65rem; flex: none; }
.brand img { height: 42px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.16rem; color: var(--ink); letter-spacing: -.02em;
}
.brand-sub { font-size: .66rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* Desktop nav */
.nav { margin-left: auto; }
.nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav > ul > li { margin: 0; position: relative; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: .3rem;
  font-family: var(--font-display); font-weight: 500; font-size: .95rem;
  color: var(--ink-2); padding: .6rem .8rem; border-radius: var(--r-sm);
  transition: color .15s ease, background-color .15s ease;
}
.nav > ul > li > a:hover,
.nav > ul > li.current-menu-item > a,
.nav > ul > li.current-menu-ancestor > a { color: var(--brand); background: var(--brand-soft); }
.nav .caret { width: 11px; height: 11px; opacity: .55; transition: transform .18s ease; }
.nav > ul > li:hover .caret { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0;
  width: min(92vw, 940px);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: var(--sp-5);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2) var(--sp-5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav li:hover > .mega,
.nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-col { min-width: 0; }
.mega-col > a.mega-head {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: .94rem;
  color: var(--title); margin-bottom: .55rem; padding-bottom: .55rem;
  border-bottom: 1px solid var(--line-soft);
}
.mega-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin: 0; }
.mega-col li a {
  display: block; padding: .38rem .5rem; margin-left: -.5rem;
  font-size: .89rem; color: var(--body); border-radius: 6px;
  transition: background-color .14s ease, color .14s ease;
}
.mega-col li a:hover { background: var(--accent-soft); color: var(--accent); }

.header-cta { display: flex; align-items: center; gap: .6rem; flex: none; }

/* Hamburger */
.burger {
  display: none; width: 44px; height: 44px; border-radius: var(--r-sm);
  align-items: center; justify-content: center; flex: none;
  border: 1px solid var(--line); background: var(--paper);
}
.burger span {
  display: block; width: 19px; height: 2px; border-radius: 2px;
  background: var(--ink); position: relative; transition: background-color .15s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px;
  border-radius: 2px; background: var(--ink); transition: transform .22s ease, top .22s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer-scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(19,26,51,.5); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.drawer-scrim.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 195;
  width: min(88vw, 400px); height: 100dvh;
  background: var(--paper);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  box-shadow: -12px 0 40px rgba(19,26,51,.16);
}
.drawer.open { transform: translateX(0); }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.25rem; height: var(--header-h);
  border-bottom: 1px solid var(--line-soft); flex: none;
}
.drawer-close {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  display: grid; place-items: center; border: 1px solid var(--line);
}
.drawer-close svg { width: 18px; height: 18px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.25rem 1.5rem; -webkit-overflow-scrolling: touch; }
.drawer-body ul { list-style: none; margin: 0; padding: 0; }
.drawer-body li { margin: 0; }

.drawer-link {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem;
  color: var(--title); padding: .85rem .25rem;
  border-bottom: 1px solid var(--line-soft);
}
.drawer-link svg { width: 16px; height: 16px; opacity: .5; transition: transform .2s ease; }
.drawer-link[aria-expanded="true"] svg { transform: rotate(180deg); }

.drawer-sub { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.drawer-sub.open { max-height: 1400px; }
.drawer-sub-inner { padding: .5rem 0 .8rem .35rem; }
.drawer-group { margin-bottom: .9rem; }
.drawer-group > a {
  display: flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 600; font-size: .87rem;
  color: var(--title); margin-bottom: .3rem;
}
.drawer-group ul li a {
  display: block; padding: .42rem .75rem;
  font-size: .89rem; color: var(--body);
  border-left: 2px solid var(--line); margin-left: .3rem;
}
.drawer-group ul li a:hover { color: var(--accent); border-left-color: var(--accent); }
.drawer-foot { padding: 1.25rem; border-top: 1px solid var(--line-soft); flex: none; display: grid; gap: .6rem; }

/* =========================================================================
   7. HERO
   ========================================================================= */
.hero {
  position: relative;
  padding-block: var(--sp-8) var(--sp-8);
  background:
    radial-gradient(900px 480px at 88% -8%, var(--brand-soft), transparent 58%),
    radial-gradient(700px 420px at 4% 6%, #F3EBFF, transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: var(--sp-7); align-items: center;
}
.hero h1 { margin-bottom: var(--sp-4); }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--brand) 0%, var(--c-ai) 55%, var(--c-web) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-lead { font-size: var(--step-1); line-height: 1.6; margin-bottom: var(--sp-5); max-width: 54ch; }

.hero-pill {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--paper); border: 1px solid var(--line);
  padding: .45rem .95rem .45rem .55rem; border-radius: var(--r-pill);
  font-size: .84rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-1); margin-bottom: var(--sp-4);
}
.hero-pill b {
  background: var(--c-proc); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: var(--r-pill); letter-spacing: .04em;
}

/* Trust strip under hero copy */
.hero-trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  margin-top: var(--sp-6); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.hero-trust div strong {
  display: block; font-family: var(--font-display);
  font-size: 1.55rem; font-weight: 700; color: var(--title); line-height: 1.1;
}
.hero-trust div span { font-size: .84rem; color: var(--muted); }

/* Hero card cluster: the signature element.
   Six colour-coded capability cards in a staggered grid. */
.hero-cluster { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.hero-cluster .cap:nth-child(odd)  { transform: translateY(-14px); }
.hero-cluster .cap:nth-child(even) { transform: translateY(14px); }

.cap {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.15rem;
  box-shadow: var(--sh-2);
  position: relative; overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.cap::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--accent);
}
.cap:hover { box-shadow: var(--sh-3); }
.hero-cluster .cap:hover { transform: translateY(-6px); }
.hero-cluster .cap:nth-child(odd):hover  { transform: translateY(-22px); }
.hero-cluster .cap:nth-child(even):hover { transform: translateY(6px); }

.cap-icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: .7rem;
  background: var(--accent-soft); color: var(--accent);
}
.cap-icon svg { width: 21px; height: 21px; }
.cap h3 { font-size: .99rem; margin-bottom: .25rem; letter-spacing: -.015em; }
.cap p { font-size: .83rem; line-height: 1.5; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .hero-cluster .cap, .cap, .btn, .link-arrow svg { transition: none !important; }
}

/* =========================================================================
   8. PAGE HERO (interior pages). Light, compact, colour-keyed.
   ========================================================================= */
.page-hero {
  position: relative;
  padding-block: var(--sp-7) var(--sp-6);
  background:
    radial-gradient(760px 320px at 82% -20%, var(--accent-soft), transparent 62%),
    var(--mist);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .page-lead {
  font-size: var(--step-1); line-height: 1.6;
  max-width: 62ch; margin-top: var(--sp-4); color: var(--body);
}
.page-hero .btn-row { margin-top: var(--sp-5); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .84rem; color: var(--muted); margin-bottom: var(--sp-4);
  list-style: none; padding: 0;
}
.crumbs li { margin: 0; display: flex; align-items: center; gap: .4rem; }
.crumbs li::after { content: "/"; color: var(--line); }
.crumbs li:last-child::after { display: none; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--ink-2); font-weight: 600; }

/* =========================================================================
   9. CARDS
   ========================================================================= */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5);
  box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: transparent; }

/* Service card with coloured rail and icon chip */
.card-service { position: relative; overflow: hidden; padding-top: calc(var(--sp-5) + 4px); }
.card-service::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent);
}
.card-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: var(--sp-3);
  background: var(--accent-soft); color: var(--accent);
  transition: transform .2s ease;
}
.card-icon svg { width: 25px; height: 25px; }
.card:hover .card-icon { transform: scale(1.06) rotate(-3deg); }
.card h3 { margin-bottom: .5rem; font-size: var(--step-1); }
.card p { font-size: .95rem; line-height: 1.62; }
.card .card-list {
  list-style: none; padding: 0; margin: var(--sp-3) 0 0;
  display: flex; flex-wrap: wrap; gap: .4rem;
}
.card .card-list li { margin: 0; }
.card .card-list li span {
  display: inline-block; font-size: .78rem; font-weight: 600;
  padding: .28rem .6rem; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent);
}
.card .link-arrow { margin-top: auto; padding-top: var(--sp-4); }

/* Stat card */
.stat {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: var(--sp-4); text-align: center;
}
.stat strong {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.7rem); color: var(--accent);
  line-height: 1.05; letter-spacing: -.03em;
}
.stat span { font-size: .89rem; color: var(--muted); display: block; margin-top: .3rem; }
.section-ink .stat {
  background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.13);
}
.section-ink .stat strong { color: #fff; }
.section-ink .stat span { color: #A8B2D1; }

/* Feature row: icon + text, no box */
.feature { display: flex; gap: var(--sp-3); align-items: flex-start; }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
}
.feature-icon svg { width: 21px; height: 21px; }
.feature h3 { font-size: 1.06rem; margin-bottom: .3rem; }
.feature p { font-size: .93rem; line-height: 1.6; }
.section-ink .feature p { color: #A8B2D1; }
.section-ink .feature-icon { background: rgba(255,255,255,.09); color: #A5B4FC; }

/* Numbered process. Numbers used because order genuinely matters here. */
.steps { counter-reset: s; display: grid; gap: var(--sp-4); }
.step {
  position: relative; counter-increment: s;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-5) var(--sp-4) var(--sp-4);
}
.step::before {
  content: counter(s, decimal-leading-zero);
  position: absolute; top: -14px; left: var(--sp-4);
  font-family: var(--font-display); font-weight: 700; font-size: .82rem;
  background: var(--accent); color: #fff;
  padding: .3rem .7rem; border-radius: var(--r-pill);
  letter-spacing: .04em;
}
.step h3 { font-size: 1.06rem; margin-bottom: .4rem; }
.step p { font-size: .92rem; line-height: 1.6; }

/* Split media block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-7); align-items: center; }
.split-media img { border-radius: var(--r-lg); box-shadow: var(--sh-3); width: 100%; }
.split.rev .split-media { order: -1; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; margin: 0; font-size: .96rem; }
.checks li svg { width: 21px; height: 21px; flex: none; color: var(--accent); margin-top: .16rem; }
.section-ink .checks li { color: #C3CBE4; }
.section-ink .checks li svg { color: var(--success); }

/* Logo / industry chips */
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--paper); border: 1px solid var(--line);
  padding: .55rem 1rem; border-radius: var(--r-pill);
  font-size: .89rem; font-weight: 600; color: var(--ink-2);
}
.chip svg { width: 16px; height: 16px; color: var(--accent); }

/* =========================================================================
   10. ARTICLE / PROSE
   ========================================================================= */
.prose { max-width: 74ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: var(--step-3); margin-top: 2.1em; margin-bottom: .55em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: var(--step-1); margin-top: 1.7em; margin-bottom: .45em; }
.prose p { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { line-height: 1.7; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose img { border-radius: var(--r-md); margin-block: 1.8em; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 1.15rem 1.4rem; border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.06rem; color: var(--ink-2);
}
.prose blockquote p { margin: 0; }

/* Intro paragraph. Replaces the old labelled answer box.
   Reads as a designed standfirst, not a metadata dump. */
.standfirst {
  font-size: var(--step-1);
  line-height: 1.62;
  color: var(--ink-2);
  padding-left: 1.3rem;
  border-left: 4px solid var(--accent);
  margin-bottom: var(--sp-5);
}

/* Fact panel. Presented as a designed spec list. */
.facts {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5);
  margin-block: var(--sp-5);
}
.facts h2, .facts h3 {
  font-size: .82rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); margin: 0 0 var(--sp-3);
}
.facts dl { display: grid; grid-template-columns: minmax(140px, .38fr) 1fr; gap: .55rem var(--sp-4); margin: 0; }
.facts dt { font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.facts dd { margin: 0; font-size: .94rem; }
.facts dt + dd { border-bottom: 0; }

/* Takeaways */
.takeaways {
  background: var(--brand-tint); border: 1px solid var(--brand-soft);
  border-radius: var(--r-lg); padding: var(--sp-5);
  margin-block: var(--sp-6);
}
.takeaways h2 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.takeaways ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.takeaways li { display: flex; gap: .7rem; margin: 0; font-size: .96rem; line-height: 1.6; }
.takeaways li svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: .18rem; }

/* Tables */
.table-wrap {
  overflow-x: auto; margin-block: var(--sp-5);
  border: 1px solid var(--line); border-radius: var(--r-md);
  -webkit-overflow-scrolling: touch;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 480px; }
.table-wrap caption {
  caption-side: top; text-align: left; padding: .9rem 1.1rem;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--title); background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.table-wrap th, .table-wrap td { padding: .8rem 1.1rem; text-align: left; vertical-align: top; }
.table-wrap thead th {
  background: var(--mist); font-family: var(--font-display); font-weight: 600;
  color: var(--ink-2); font-size: .87rem; border-bottom: 1px solid var(--line);
}
.table-wrap tbody tr + tr th, .table-wrap tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.table-wrap tbody th { font-weight: 600; color: var(--ink-2); }
.table-wrap tbody tr:hover { background: var(--mist); }

/* =========================================================================
   11. FAQ ACCORDION
   ========================================================================= */
.faq { display: grid; gap: .7rem; }
.faq details {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.faq details[open] { border-color: var(--accent); box-shadow: var(--sh-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: 1.05rem 1.3rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.01rem;
  color: var(--title);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
  content: ""; width: 11px; height: 11px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .22s ease, border-color .22s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px); border-color: var(--accent);
}
.faq .faq-body { padding: 0 1.3rem 1.25rem; }
.faq .faq-body p { font-size: .96rem; line-height: 1.7; margin: 0; }

/* =========================================================================
   12. FORMS
   ========================================================================= */
.form-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: var(--sp-6);
  box-shadow: var(--sh-3);
  container-type: inline-size;
}
.form-card h2 { font-size: var(--step-2); margin-bottom: .5rem; }
.form-card .form-intro { font-size: .96rem; margin-bottom: var(--sp-5); }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3) var(--sp-4); }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field.full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-display); font-weight: 600; font-size: .89rem; color: var(--ink-2);
}
.field label .req { color: var(--danger); margin-left: .15rem; }
.field .hint { font-size: .8rem; color: var(--muted); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="url"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom on focus */
  line-height: 1.45;
  color: var(--title);
  background: var(--mist);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: .82rem 1rem;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
  -webkit-appearance: none; appearance: none;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237C86A4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.6rem;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #CBD3E8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.field input::placeholder, .field textarea::placeholder { color: #A8B0C6; }

.field-error input, .field-error select, .field-error textarea {
  border-color: var(--danger); background: var(--danger-soft);
}
.field .err-msg { font-size: .82rem; color: var(--danger); font-weight: 600; display: none; }
.field-error .err-msg { display: block; }

.consent { display: flex; gap: .7rem; align-items: flex-start; }
.consent input[type="checkbox"] {
  width: 19px; height: 19px; flex: none; margin-top: .18rem;
  accent-color: var(--brand); cursor: pointer;
}
.consent label { font-weight: 400; font-size: .88rem; color: var(--body); line-height: 1.55; }

.form-actions { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); }
.form-note { font-size: .84rem; color: var(--muted); }

/* Honeypot */
.hp-field { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; }

/* Alerts */
.alert {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1rem 1.2rem; border-radius: var(--r-md);
  font-size: .94rem; margin-bottom: var(--sp-4);
}
.alert svg { width: 20px; height: 20px; flex: none; margin-top: .12rem; }
.alert-ok   { background: var(--c-proc-soft); color: #065F46; border: 1px solid #A7F3D0; }
.alert-err  { background: var(--danger-soft); color: #991B1B; border: 1px solid #FECACA; }

/* Container query: stack the form on narrow containers, not narrow viewports */
@container (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
  .form-card { padding: var(--sp-5) var(--sp-4); }
}

/* =========================================================================
   13. BLOG
   ========================================================================= */
.post-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); }
.post-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--cloud); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-thumb img { transform: scale(1.05); }
.post-body { padding: var(--sp-4); display: flex; flex-direction: column; flex: 1; }
.post-cat {
  display: inline-block; align-self: flex-start;
  font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: .28rem .65rem; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent); margin-bottom: .7rem;
}
.post-body h3 { font-size: 1.09rem; line-height: 1.32; margin-bottom: .5rem; }
.post-body h3 a { color: var(--title); }
.post-body h3 a:hover { color: var(--accent); }
.post-body p { font-size: .91rem; line-height: 1.6; color: var(--muted); }
.post-meta {
  margin-top: auto; padding-top: var(--sp-3);
  font-size: .82rem; color: var(--muted);
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.post-meta span { display: inline-flex; align-items: center; gap: .3rem; }
.post-meta svg { width: 14px; height: 14px; }

/* Single post header */
.post-head { max-width: var(--wrap-narrow); }
.post-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem var(--sp-3);
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
  font-size: .89rem; color: var(--muted);
}
.post-byline .author { font-weight: 600; color: var(--ink-2); }

/* Table of contents */
.toc {
  background: var(--mist); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin-bottom: var(--sp-6);
}
.toc h2 { font-size: .84rem; text-transform: uppercase; letter-spacing: .09em; color: var(--accent); margin-bottom: .8rem; }
.toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: .4rem; }
.toc li { margin: 0; font-size: .93rem; }
.toc a { color: var(--body); }
.toc a:hover { color: var(--accent); }

/* Pagination */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin-top: var(--sp-7); }
.pagination .page-numbers {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .7rem;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: 600; font-size: .93rem; color: var(--ink-2);
  background: var(--paper);
}
.pagination .page-numbers:hover { border-color: var(--brand); color: var(--brand); }
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =========================================================================
   14. CTA BAND
   ========================================================================= */
.cta-band {
  background: linear-gradient(122deg, var(--brand-dark) 0%, var(--brand) 42%, var(--c-ai) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-7) var(--sp-6);
  color: #fff; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 280px at 82% 110%, rgba(255,255,255,.16), transparent 62%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,.9); font-size: var(--step-1); max-width: 56ch; margin: var(--sp-3) auto var(--sp-5); }
.cta-band .btn-row { justify-content: center; }

/* =========================================================================
   15. FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: #98A3C2; padding-top: var(--sp-7); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--sp-6) var(--sp-5); padding-bottom: var(--sp-6);
}
.site-footer h3 {
  color: #fff; font-size: .85rem; text-transform: uppercase;
  letter-spacing: .09em; margin-bottom: var(--sp-3);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer li { margin: 0; }
.site-footer a { color: #98A3C2; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-about p { font-size: .93rem; line-height: 1.65; margin-bottom: var(--sp-4); max-width: 38ch; }
.footer-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: var(--sp-4); }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #7A85A6; }

.footer-contact { display: grid; gap: .8rem; }
.footer-contact a, .footer-contact div {
  display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; line-height: 1.55;
}
.footer-contact svg { width: 17px; height: 17px; flex: none; color: var(--brand-mid); margin-top: .18rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding-block: var(--sp-4);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--sp-3);
  font-size: .86rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* =========================================================================
   16. FLOATING ACTIONS
   ========================================================================= */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 22px rgba(37,211,102,.42);
  transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* =========================================================================
   17. RESPONSIVE
   ========================================================================= */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --header-h: 68px; }
  .nav, .header-cta .btn-quote { display: none; }
  .burger { display: flex; }
  .header-inner { gap: var(--sp-3); }
  .header-cta { margin-left: auto; }

  .hero { padding-block: var(--sp-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .hero-cluster .cap:nth-child(odd),
  .hero-cluster .cap:nth-child(even) { transform: none; }
  .hero-cluster .cap:hover { transform: translateY(-4px); }

  .split, .split.rev { grid-template-columns: 1fr; gap: var(--sp-5); }
  .split.rev .split-media { order: 0; }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .section { padding-block: var(--sp-7); }
}

@media (max-width: 700px) {
  .wrap, .wrap-narrow { width: min(100% - 2rem, var(--wrap)); }
  .g-2, .g-3, .g-4, .g-auto { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .facts dl { grid-template-columns: 1fr; gap: .2rem; }
  .facts dt { margin-top: .6rem; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .hero-trust { gap: var(--sp-4); }
  .hero-trust div { flex: 1 1 40%; }
  .cta-band { padding: var(--sp-6) var(--sp-4); }
  .form-card { padding: var(--sp-5) var(--sp-4); }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; }
  .cta-band .btn-row { align-items: stretch; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .brand-text { display: none; }
  .hero-cluster { grid-template-columns: 1fr; }
}

/* =========================================================================
   18. PRINT
   ========================================================================= */
@media print {
  .site-header, .site-footer, .wa-float, .cta-band, .drawer, .drawer-scrim { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .prose { max-width: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
