/* Basix365 — site styles (v3, "electric" theme)
   VOICE: confident, modern, technical but plain-spoken.
   IDEA: the five-level coverage stack, lit up — every level of IT, covered.
   COLOUR: deep night navy + cobalt→cyan light. Not Microsoft blue (#0078D4), no four-colour motifs.
   TYPE: Schibsted Grotesk, one family, heavy display weights.
   LAYOUT: dark, glowing hero and page heads; calm white content bands; gradient CTA. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0a1130;
  --night-2: #121b45;
  --night-3: #1a2558;
  --cobalt: #3355f0;
  --cobalt-deep: #2a4ae0;
  --sky: #4c8dff;
  --cyan: #2bd9f5;
  --ink: #0e1530;
  --ink-soft: #4a5578;
  --on-dark: #c3cdef;
  --on-dark-soft: #9fb0e0;
  --paper: #f5f7fc;
  --mist: #eef2fb;
  --white: #ffffff;
  --line: #dce2f0;
  --line-dark: rgba(195, 205, 239, 0.14);
  --danger: #c0352b;

  --grad: linear-gradient(120deg, #3355f0 0%, #4c8dff 55%, #2bd9f5 100%);
  --grad-btn: linear-gradient(120deg, #3355f0 0%, #1f6fe5 100%);

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI Variable", sans-serif;

  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: 1.5625rem;
  --t-xl: clamp(1.9rem, 1.4rem + 2vw, 2.7rem);
  --t-2xl: clamp(2.6rem, 1.6rem + 4.4vw, 4.9rem);

  --wrap: 74rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow: 0 1px 2px rgba(14, 21, 48, 0.06), 0 8px 24px -12px rgba(14, 21, 48, 0.18);
  --glow: 0 10px 40px -10px rgba(51, 85, 240, 0.65);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; letter-spacing: -0.02em; font-weight: 750; text-wrap: balance; }
h1 { font-size: var(--t-2xl); font-weight: 830; letter-spacing: -0.04em; line-height: 1.02; }
h2 { font-size: var(--t-xl); letter-spacing: -0.03em; }
h3 { font-size: var(--t-md); letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: 68ch; text-wrap: pretty; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: 0.35em; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--cobalt-deep); text-decoration-thickness: 2px; }

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

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--ink); padding: 0.6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lede { font-size: var(--t-md); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Header (dark on every page) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--night);
  border-bottom: 1px solid var(--line-dark);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.4rem; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
.brand svg { width: 2rem; height: 2rem; }
.brand-word { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-word span { font-weight: 450; color: var(--cyan); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.nav a { color: var(--on-dark); text-decoration: none; font-weight: 550; font-size: 0.96rem; padding: 0.5rem 0.65rem; border-radius: var(--r-sm); transition: color .15s, background-color .15s; }
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.07); }
.nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.nav .btn { margin-left: 0.6rem; padding: 0.7rem 1.05rem; color: var(--white); }
.nav .btn[aria-current="page"] { box-shadow: var(--glow); border-radius: var(--r-sm); }

.nav-toggle { display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-dark); border-radius: var(--r-sm); padding: 0.55rem 0.85rem; font: inherit; font-weight: 600; color: var(--white); cursor: pointer; }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--night); border-bottom: 1px solid var(--line-dark); padding: 0.5rem var(--gutter) 1.25rem; }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.9rem 0.25rem; border-bottom: 1px solid var(--line-dark); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--cyan); padding-left: 0.75rem; }
  .nav .btn { margin: 1rem 0 0; justify-content: center; border: 0; border-radius: var(--r-sm); padding: 0.95rem 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1;
  padding: 0.95rem 1.35rem; border-radius: var(--r-sm);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--grad-btn); color: var(--white); box-shadow: 0 6px 20px -8px rgba(51, 85, 240, 0.7); }
.btn-primary:hover { color: var(--white); transform: translateY(-1px); box-shadow: var(--glow); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--cobalt); color: var(--cobalt); }
.btn-onDark, .on-dark .btn-ghost { border-color: rgba(195, 205, 239, 0.35); color: var(--white); background: rgba(255, 255, 255, 0.04); }
.btn-onDark:hover, .on-dark .btn-ghost:hover { border-color: var(--cyan); color: var(--white); background: rgba(43, 217, 245, 0.08); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { color: var(--cobalt-deep); transform: translateY(-1px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn-brass { background: var(--white); color: var(--ink); } /* legacy name, kept for templates */
.btn-brass:hover { color: var(--cobalt-deep); transform: translateY(-1px); }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Dark "lit" surfaces (hero, page heads) ---------- */
.on-dark { position: relative; isolation: isolate; background: var(--night); color: var(--on-dark); overflow: hidden; }
.on-dark::before { /* glow */
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; z-index: -1;
  background: radial-gradient(closest-side, rgba(51, 85, 240, 0.55), rgba(51, 85, 240, 0) 70%);
  filter: blur(10px);
}
.on-dark::after { /* faint grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(195, 205, 239, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(195, 205, 239, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 75%);
}
.on-dark h1, .on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark .lede { color: var(--on-dark); }
.on-dark a:not(.btn) { color: var(--cyan); }
.glow-2 { position: absolute; z-index: -1; left: -10%; bottom: -30%; width: 55vw; height: 55vw; max-width: 700px; max-height: 700px; background: radial-gradient(closest-side, rgba(43, 217, 245, 0.22), transparent 70%); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero .stats-wrap { display: block; }
.hero .wrap:not(.stats-wrap) { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 11ch; }
.hero .lede { margin-top: 1.25rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.hero-note { margin-top: 1.5rem; font-size: var(--t-sm); color: var(--on-dark-soft); }
.hero .btn-ghost { border-color: rgba(195, 205, 239, 0.35); color: var(--white); background: rgba(255, 255, 255, 0.04); }
.hero .btn-ghost:hover { border-color: var(--cyan); background: rgba(43, 217, 245, 0.08); }
.eyebrow-pill { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; color: var(--white); padding: .4rem .85rem .4rem .5rem; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); margin-bottom: 1.5rem; }
.eyebrow-pill .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(43,217,245,.18), 0 0 12px var(--cyan); }
@media (max-width: 900px) { .hero .wrap:not(.stats-wrap) { grid-template-columns: 1fr; } }

/* The coverage stack — signature element */
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.6rem; }
.stack li {
  position: relative; margin: 0;
  display: grid; grid-template-columns: 4.6rem 1fr; align-items: center;
  min-height: 4.7rem; padding: 0.9rem 1.15rem;
  color: var(--white); border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border: 1px solid rgba(195, 205, 239, 0.16);
  backdrop-filter: blur(6px);
}
.stack li:nth-child(1) { width: 62%; background: var(--grad); border-color: transparent; box-shadow: 0 18px 50px -12px rgba(43, 140, 245, 0.75); }
.stack li:nth-child(2) { width: 71%; }
.stack li:nth-child(3) { width: 80%; }
.stack li:nth-child(4) { width: 90%; }
.stack li:nth-child(5) { width: 100%; }
.stack .lvl { font-size: 0.78rem; font-weight: 600; color: var(--on-dark-soft); line-height: 1.2; }
.stack .lvl b { display: block; font-size: 1.7rem; font-weight: 850; letter-spacing: -0.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stack li:nth-child(1) .lvl { color: rgba(255,255,255,.85); }
.stack li:nth-child(1) .lvl b { background: none; color: var(--white); }
.stack .what { font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.stack .what small { display: block; font-weight: 450; font-size: 0.88rem; color: var(--on-dark); margin-top: 0.15rem; }
.stack li:nth-child(1) .what small { color: rgba(255,255,255,.92); }
@media (max-width: 560px) { .stack li { width: 100% !important; grid-template-columns: 3.4rem 1fr; } }

/* Light-background version of the stack (services / about pages) */
.section .stack li, .section-sage .stack li { color: var(--ink); background: var(--white); border-color: var(--line); box-shadow: var(--shadow); backdrop-filter: none; }
.section .stack .lvl, .section-sage .stack .lvl { color: var(--ink-soft); }
.section .stack .what small, .section-sage .stack .what small { color: var(--ink-soft); }
.section .stack li:nth-child(1), .section-sage .stack li:nth-child(1) { color: var(--white); background: var(--grad); border-color: transparent; }
.section .stack li:nth-child(1) .what small, .section-sage .stack li:nth-child(1) .what small { color: rgba(255,255,255,.92); }
.section .stack li:nth-child(1) .lvl, .section-sage .stack li:nth-child(1) .lvl { color: rgba(255,255,255,.85); }

@media (prefers-reduced-motion: no-preference) {
  .hero .stack li { animation: build .6s cubic-bezier(.2,.7,.2,1) both; }
  .hero .stack li:nth-child(5) { animation-delay: .05s; }
  .hero .stack li:nth-child(4) { animation-delay: .17s; }
  .hero .stack li:nth-child(3) { animation-delay: .29s; }
  .hero .stack li:nth-child(2) { animation-delay: .41s; }
  .hero .stack li:nth-child(1) { animation: build .6s cubic-bezier(.2,.7,.2,1) .55s both, pulse 4s ease-in-out 1.4s infinite; }
  .hero::before { animation: drift 14s ease-in-out infinite alternate; }
  @keyframes build { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
  @keyframes pulse { 0%, 100% { box-shadow: 0 18px 50px -12px rgba(43, 140, 245, 0.65); } 50% { box-shadow: 0 18px 60px -8px rgba(43, 217, 245, 0.85); } }
  @keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-6%, 6%); } }
}

/* Stat strip under hero */
.stats { border-top: 1px solid var(--line-dark); margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.stats div { display: flex; flex-direction: column; gap: .2rem; }
.stats b { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 830; letter-spacing: -0.03em; color: var(--white); line-height: 1.05; }
.stats span { font-size: .95rem; color: var(--on-dark-soft); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-sage { background: var(--mist); }
.section-dark { background: var(--night); color: var(--on-dark); position: relative; isolation: isolate; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; z-index: -1; right: -15%; top: -25%; width: 60vw; height: 60vw; max-width: 800px; max-height: 800px; background: radial-gradient(closest-side, rgba(51, 85, 240, 0.4), transparent 70%); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lede { color: var(--on-dark); }
.section-dark a { color: var(--cyan); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }

/* Statement band */
.band { padding: clamp(3rem, 6vw, 4.5rem) 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.band p { font-size: var(--t-lg); line-height: 1.35; letter-spacing: -0.015em; font-weight: 600; max-width: 34ch; margin: 0; }
.band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; }
.band dl { display: grid; grid-template-columns: auto 1fr; gap: 0.5rem 1.25rem; margin: 0; font-size: 0.98rem; }
.band dt { font-weight: 700; }
.band dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 760px) { .band .wrap { grid-template-columns: 1fr; } }

/* Service cards */
.service-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-row {
  position: relative; display: flex; flex-direction: column; gap: 0.75rem;
  padding: 1.75rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-row:hover { transform: translateY(-3px); border-color: rgba(51, 85, 240, 0.35); box-shadow: 0 20px 40px -20px rgba(51, 85, 240, 0.45); }
.service-row h3 { font-size: var(--t-lg); margin: 0; display: flex; align-items: center; gap: .85rem; }
.service-row h3 a { color: var(--ink); text-decoration: none; }
.service-row h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.service-row h3 a:hover { color: var(--cobalt); }
.service-row p { margin: 0 0 0.85rem; color: var(--ink-soft); }
.service-row ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.service-row li { margin: 0; font-size: 0.85rem; font-weight: 600; padding: 0.28rem 0.65rem; background: var(--mist); color: #2b3a6b; border-radius: 999px; }
.service-row .more { margin-top: auto; font-weight: 650; position: relative; z-index: 1; }
.svc-icon { flex: none; width: 2.9rem; height: 2.9rem; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: var(--white); box-shadow: 0 8px 20px -8px rgba(51, 85, 240, 0.7); }
.svc-icon svg { width: 1.5rem; height: 1.5rem; }
@media (max-width: 860px) { .service-rows { grid-template-columns: 1fr; } }

/* M365 workload index (dark glass tiles) */
.workloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.85rem; }
.workloads > div { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025)); border: 1px solid var(--line-dark); border-radius: var(--r-md); padding: 1.35rem 1.3rem 1.45rem; transition: border-color .2s, transform .2s, box-shadow .2s; }
.workloads > div:hover { border-color: rgba(43, 217, 245, 0.55); transform: translateY(-2px); box-shadow: 0 16px 40px -18px rgba(43, 217, 245, 0.5); }
.workloads h3 { font-size: 1.08rem; margin: 0 0 0.35rem; }
.workloads p { margin: 0; font-size: 0.94rem; color: var(--on-dark-soft); line-height: 1.5; }

/* Advisory roles */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.role { padding: 1.75rem; border-radius: var(--r-lg); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.role::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.role h2, .role h3 { font-size: var(--t-lg); margin-bottom: 0.25rem; }
.role .aka { font-size: 0.92rem; color: var(--cobalt); font-weight: 650; margin-bottom: 0.9rem; }
.role ul { padding-left: 1.1em; color: var(--ink-soft); }
.role p { color: var(--ink-soft); margin-bottom: 0; }
.role .note { margin-top: 1rem; }
@media (max-width: 760px) { .roles { grid-template-columns: 1fr; } }

/* Steps (a real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { margin: 0; counter-increment: step; padding-top: 3.4rem; position: relative; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: var(--white); font-weight: 800; box-shadow: 0 8px 20px -8px rgba(51, 85, 240, 0.7); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 1.25rem; left: 3.1rem; right: -0.75rem; height: 2px; background: linear-gradient(90deg, rgba(51,85,240,.5), rgba(43,217,245,.15)); }
.steps h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.steps p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Coverage table */
.coverage { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.98rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.coverage th, .coverage td { text-align: left; vertical-align: top; padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line); }
.coverage tr:last-child th, .coverage tr:last-child td { border-bottom: 0; }
.coverage thead th { font-size: 0.85rem; color: var(--ink-soft); font-weight: 650; background: var(--paper); }
.coverage tbody th { font-weight: 750; white-space: nowrap; }
.coverage tbody th span { display: block; font-size: 0.82rem; font-weight: 650; color: var(--cobalt); }
@media (max-width: 760px) {
  .coverage thead { display: none; }
  .coverage, .coverage tbody, .coverage tr, .coverage th, .coverage td { display: block; width: 100%; }
  .coverage tr { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
  .coverage th, .coverage td { border: 0; padding: 0.2rem 0; }
}

/* FAQ */
.faq { max-width: 52rem; display: grid; gap: 0.75rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: rgba(51, 85, 240, 0.35); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 3rem 1.15rem 1.35rem; position: relative; font-weight: 650; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 1.35rem; top: 50%; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--cobalt); border-bottom: 2px solid var(--cobalt); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 1.35rem 1.25rem; color: var(--ink-soft); }
.faq details > div p { margin: 0; }

/* CTA band */
.cta { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(120deg, #1d2f9e 0%, #3355f0 55%, #1fa5e0 100%); color: var(--white); padding: clamp(3.25rem, 6vw, 5rem) 0; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; }
.cta h2 { color: var(--white); margin: 0 0 0.5rem; max-width: 28ch; }
.cta p { margin: 0; color: rgba(255,255,255,.88); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Page header (subpages) */
.page-head { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-head h1 { font-size: clamp(2.3rem, 1.5rem + 3vw, 3.8rem); max-width: 18ch; }
.page-head .hero-note { color: var(--on-dark-soft); }
.crumbs { font-size: var(--t-sm); margin-bottom: 1.25rem; color: var(--on-dark-soft); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; color: rgba(195,205,239,.4); }
.on-dark .crumbs a { color: var(--on-dark); }

/* Content layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(2rem, 5vw, 4rem); }
.split > aside h2 { position: sticky; top: 6.5rem; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split > aside h2 { position: static; } }

.defs { display: grid; gap: 0.75rem; margin: 0; }
.defs > div { padding: 1.25rem 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 0.5rem 2rem; transition: border-color .2s; }
.defs > div:hover { border-color: rgba(51, 85, 240, 0.35); }
.defs dt { font-weight: 700; font-size: 1.05rem; }
.defs dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 640px) { .defs > div { grid-template-columns: 1fr; } }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--t-lg); }
.prose h2:first-child { margin-top: 0; }
.prose li::marker { color: var(--cobalt); }

.callout { background: var(--mist); border: 1px solid var(--line); border-left: 4px solid var(--cobalt); padding: 1.25rem 1.5rem; border-radius: var(--r-sm); }
.callout p:last-child { margin-bottom: 0; }

.related { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.related a { display: inline-block; padding: 0.75rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; background: var(--white); color: var(--ink); transition: border-color .15s, color .15s; }
.related a:hover { border-color: var(--cobalt); color: var(--cobalt); }

.note { font-size: 0.92rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 2rem; max-width: 68ch; }

/* Industries */
.industry-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.industry-list a { display: block; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; position: relative; overflow: hidden; }
.industry-list a::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); opacity: 0; transition: opacity .2s; }
.industry-list a:hover { transform: translateY(-3px); border-color: rgba(51, 85, 240, 0.35); box-shadow: 0 20px 40px -20px rgba(51, 85, 240, 0.45); }
.industry-list a:hover::before { opacity: 1; }
.industry-list h2, .industry-list h3 { font-size: var(--t-lg); margin-bottom: 0.4rem; }
.industry-list p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .industry-list { grid-template-columns: 1fr; } }

/* Insights */
.post-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; max-width: 56rem; }
.post-list li { margin: 0; padding: 1.5rem 1.75rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); transition: border-color .2s, box-shadow .2s; }
.post-list li:hover { border-color: rgba(51, 85, 240, 0.35); box-shadow: var(--shadow); }
.post-list h2, .post-list h3 { font-size: var(--t-md); margin-bottom: 0.4rem; }
.post-list h2 a, .post-list h3 a { color: var(--ink) !important; text-decoration: none !important; }
.post-list h2 a:hover, .post-list h3 a:hover { color: var(--cobalt) !important; }
.post-list p { color: var(--ink-soft); margin: 0 0 0.5rem; }
.meta { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }
.on-dark .meta { color: var(--on-dark-soft); }
.article { max-width: 42rem; }
.article h2 { font-size: var(--t-lg); margin-top: 2.5rem; }
.article h3 { margin-top: 1.75rem; }
.article p, .article li { font-size: 1.08rem; line-height: 1.7; }
.article li::marker { color: var(--cobalt); }
.article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.97rem; }
.article th, .article td { text-align: left; vertical-align: top; padding: 0.75rem 0.85rem 0.75rem 0; border-bottom: 1px solid var(--line); }
.article thead th { border-bottom: 2px solid var(--cobalt); font-size: 0.9rem; }
.article .scroll { overflow-x: auto; }
.article-head h1 { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); letter-spacing: -0.025em; line-height: 1.08; }
.article-head .meta { margin-top: 0.75rem; }
.article-head + .section { padding-top: clamp(2.5rem, 5vw, 3.5rem); }

/* Support */
.support-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.support-actions > div { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.support-actions > div::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--grad); }
.support-actions h2 { font-size: var(--t-md); }
.support-actions p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .support-actions { grid-template-columns: 1fr; } }
.alt-contact { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: 0 30px 60px -30px rgba(14, 21, 48, 0.25); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label, .field legend { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 0.4rem; }
.field .opt { font-weight: 450; color: var(--ink-soft); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 0.8rem 0.9rem; border: 1px solid #b9c3dd; border-radius: var(--r-sm); background: var(--paper); transition: border-color .15s, box-shadow .15s, background-color .15s; }
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); background: var(--white); box-shadow: 0 0 0 4px rgba(51, 85, 240, 0.18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .err { color: var(--danger); font-size: 0.88rem; margin-top: 0.35rem; }
fieldset.field { border: 0; padding: 0; margin: 0 0 1.15rem; }
.checks { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.checks label { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; font-weight: 550; font-size: 0.93rem; padding: 0.55rem 0.85rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; background: var(--white); transition: border-color .15s, background-color .15s; }
.checks input { accent-color: var(--cobalt); width: 1rem; height: 1rem; margin: 0; }
.checks label:has(input:checked) { border-color: var(--cobalt); background: #e8edff; }
.checks label:has(input:focus-visible) { outline: 3px solid var(--cyan); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form .fine { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--r-sm); font-weight: 550; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e6f7ef; color: #11633f; }
.form-status.bad { background: #fdecea; color: var(--danger); }
.cf-turnstile { margin: 0.25rem 0 1rem; min-height: 65px; }

.next-steps { list-style: none; padding: 0; margin: 0; counter-reset: n; }
.next-steps li { counter-increment: n; position: relative; padding: 0 0 1.25rem 2.7rem; margin: 0; }
.next-steps li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: var(--white); font-weight: 800; font-size: 0.9rem; }
.next-steps strong { display: block; }
.next-steps span { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-soft); padding: 4rem 0 2rem; font-size: 0.95rem; border-top: 1px solid var(--line-dark); }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h2 { font-size: 0.95rem; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.site-footer .brand { margin-bottom: 1rem; }
.footer-legal { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.82rem; color: #7f8db8; }
.footer-legal p { max-width: 90ch; margin-bottom: 0.5rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.notfound { padding: var(--section) 0; min-height: 50vh; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print { .site-header, .site-footer, .cta, .nav-toggle { display: none; } .on-dark { background: none; color: var(--ink); } }

/* ---------- v4: walkthrough, sample report, checklist ---------- */
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .journey-grid { grid-template-columns: 1fr; } .journey-visual { display: none; } }
.journey-ticket { display: inline-flex; align-items: center; gap: .65rem; font-weight: 650; color: var(--white); background: rgba(255,255,255,.06); border: 1px solid var(--line-dark); border-radius: 999px; padding: .45rem .9rem .45rem .5rem; margin: .5rem 0 1.5rem; }
.journey-ticket span { font-size: .78rem; font-weight: 700; background: var(--grad); color: var(--white); padding: .2rem .55rem; border-radius: 999px; }
.journey-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.journey-steps li { margin: 0; border: 1px solid var(--line-dark); border-radius: var(--r-md); background: rgba(255,255,255,.03); transition: border-color .3s, background-color .3s; }
.journey-step { all: unset; box-sizing: border-box; cursor: pointer; display: flex; gap: .85rem; align-items: baseline; width: 100%; padding: .85rem 1.1rem; }
.journey-step:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: var(--r-md); }
.j-lvl { font-size: .8rem; font-weight: 700; color: var(--cyan); min-width: 4.2rem; }
.j-name { font-weight: 700; color: var(--white); }
.journey-steps p { margin: 0; padding: 0 1.1rem 1rem 6.15rem; font-size: .96rem; color: var(--on-dark); }
.journey-on .journey-steps li:not(.is-active) p { display: none; }
.journey-steps li.is-active { border-color: rgba(43, 217, 245, .55); background: rgba(51, 85, 240, .16); box-shadow: 0 16px 40px -20px rgba(43, 217, 245, .55); }
.journey-steps li.is-done .j-name::after { content: " \2713"; color: var(--cyan); font-weight: 700; }
.journey-toggle { margin-top: 1rem; font: inherit; font-size: .9rem; font-weight: 600; color: var(--on-dark); background: transparent; border: 1px solid var(--line-dark); border-radius: 999px; padding: .45rem 1rem; cursor: pointer; }
.journey-toggle:hover { color: var(--white); border-color: var(--cyan); }
@media (max-width: 520px) { .journey-steps p { padding-left: 1.1rem; } }

.journey-visual { display: flex; justify-content: center; }
.j-rail { position: relative; display: grid; gap: 1rem; width: min(100%, 22rem); padding-left: 2.2rem; }
.j-rail::before { content: ""; position: absolute; left: .55rem; top: 1.6rem; bottom: 1.6rem; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--cobalt)); opacity: .5; }
.j-node { position: relative; display: flex; align-items: center; gap: .9rem; height: 3.2rem; padding: 0 1rem; border-radius: var(--r-md); border: 1px solid var(--line-dark); background: rgba(255,255,255,.04); color: var(--on-dark-soft); font-weight: 650; transition: all .4s ease; }
.j-node::before { content: ""; position: absolute; left: -1.95rem; width: .8rem; height: .8rem; border-radius: 50%; background: var(--night); border: 2px solid rgba(195,205,239,.35); transition: all .4s ease; }
.j-node b { font-size: 1.15rem; color: var(--on-dark); }
.j-node.is-done { color: var(--on-dark); }
.j-node.is-done::before { background: var(--cobalt); border-color: var(--cobalt); }
.j-node.is-active { color: var(--white); border-color: transparent; background: var(--grad); box-shadow: 0 16px 44px -12px rgba(43, 140, 245, .8); transform: translateX(6px); }
.j-node.is-active b { color: var(--white); }
.j-node.is-active::before { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 5px rgba(43,217,245,.2), 0 0 14px var(--cyan); }
.j-chip { position: absolute; right: -.6rem; top: 0; font-size: .75rem; font-weight: 700; color: var(--night); background: var(--white); padding: .25rem .6rem; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(0,0,0,.5);
  --i: 0; transform: translateY(calc((4 - var(--i)) * 4.2rem + .95rem)); transition: transform .7s cubic-bezier(.3,.8,.3,1); }

/* Sample report */
.report-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 900px) { .report-grid { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.ticks li { position: relative; padding-left: 1.9rem; margin: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--grad); }
.ticks li::after { content: ""; position: absolute; left: .42rem; top: .43em; width: .32rem; height: .58rem; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.report { margin: 0; background: var(--white); color: var(--ink); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.report-head b { display: block; font-size: 1.1rem; }
.report-head span { font-size: .88rem; color: var(--ink-soft); }
.report-badge { flex: none; font-size: .75rem !important; font-weight: 700; color: var(--cobalt) !important; background: #e8edff; padding: .25rem .6rem; border-radius: 999px; }
.report-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 1.1rem 0; }
.report-kpis div { background: var(--paper); border-radius: var(--r-sm); padding: .8rem .9rem; }
.report-kpis b { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.report-kpis span { font-size: .8rem; color: var(--ink-soft); }
.report-bars { display: grid; gap: .8rem; }
.report-bars .bar { display: grid; grid-template-columns: 1fr auto; gap: .3rem .75rem; font-size: .9rem; }
.report-bars .bar b { font-variant-numeric: tabular-nums; }
.report-bars i { grid-column: 1 / -1; height: .5rem; border-radius: 999px; background: var(--mist); position: relative; overflow: hidden; }
.report-bars i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--v); background: var(--grad); border-radius: inherit; }
.report-action { margin-top: 1.1rem; padding: .85rem 1rem; border-radius: var(--r-sm); background: #fff6e5; border: 1px solid #f5dca8; font-size: .9rem; }
.report-action b { display: block; color: #8a5a00; }
.report figcaption { margin-top: .9rem; font-size: .8rem; color: var(--ink-soft); }
.section-dark .ticks li { color: var(--on-dark); }
@media (max-width: 480px) { .report-kpis { grid-template-columns: 1fr; } }

/* Checklist */
.checklist-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .checklist-grid { grid-template-columns: 1fr; } .score-card { order: -1; position: static !important; } }
.checklist fieldset { border: 0; padding: 0; margin: 0 0 2rem; }
.checklist legend { font-size: var(--t-lg); font-weight: 750; letter-spacing: -0.02em; margin-bottom: .9rem; }
.ck { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.15rem; margin-bottom: .6rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); cursor: pointer; transition: border-color .15s, background-color .15s; }
.ck:hover { border-color: rgba(51,85,240,.4); }
.ck input { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--cobalt); }
.ck b { display: block; font-weight: 650; }
.ck small { display: block; color: var(--ink-soft); font-size: .92rem; margin-top: .15rem; }
.ck:has(input:checked) { border-color: var(--cobalt); background: #f0f3ff; }
.score-card { position: sticky; top: 6rem; padding: 1.75rem; border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); box-shadow: 0 30px 60px -30px rgba(14,21,48,.6); display: grid; gap: .85rem; }
.score-card .btn-ghost { background: transparent; color: var(--white); border-color: var(--line-dark); justify-content: center; }
.score-card .btn-primary { justify-content: center; }
.score-label { margin: 0; font-weight: 650; color: var(--on-dark-soft); }
.score { margin: 0; font-size: 1.1rem; color: var(--on-dark); }
.score b { font-size: 3.2rem; font-weight: 850; letter-spacing: -0.04em; color: var(--white); line-height: 1; margin-right: .25rem; }
.score-bar { height: .6rem; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.score-bar i { display: block; height: 100%; width: var(--v); background: var(--grad); border-radius: inherit; transition: width .4s ease; }
.score-card #score-msg { margin: 0; color: var(--on-dark); min-height: 3em; }
.score-card .fine { font-size: .85rem; color: var(--on-dark-soft); margin: 0; }

/* Featured resource card */
.feature-card { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; padding: 1.5rem 1.75rem; border-radius: var(--r-lg); background: var(--night); color: var(--on-dark); margin-bottom: 1rem; max-width: 56rem; position: relative; overflow: hidden; isolation: isolate; }
.feature-card::before { content: ""; position: absolute; z-index: -1; right: -10%; top: -80%; width: 60%; height: 260%; background: radial-gradient(closest-side, rgba(51,85,240,.55), transparent 70%); }
.feature-card h3 { color: var(--white); margin: 0 0 .25rem; font-size: var(--t-md); }
.feature-card p { margin: 0; color: var(--on-dark); }
@media (max-width: 900px) { .journey-visual { display: none; } }
