/* ==========================================================================
   NASLORD — Design System
   Gallium inc. | Enterprise storage governance & FinOps platform
   Palette inherited from the shipping NASLORD product UI (naslord_modern.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — deep navy for credibility, NASLORD blue as principal accent */
  --navy-900: #062f4d;
  --navy-800: #083f66;
  --navy-700: #0b5182;
  --navy-600: #0f6fa6;
  --blue-500: #178bcb;
  --blue-400: #3ea5df;
  --blue-100: #d8ecf9;
  --blue-50:  #eef7fc;

  /* Secondary accent — reserved for financial insight & alerting */
  --gold-700: #8a5200;
  --gold-600: #b26b00;
  --gold-100: #fdf1dc;

  /* Module identifiers — related, not identical */
  --m-cb: #0f6fa6;   /* Chargeback & Showback */
  --m-mt: #1a7f8e;   /* Multi-Tenant */
  --m-rl: #4a5bd4;   /* Retention Lock */

  /* Status */
  --green-600: #217a4a;
  --green-50:  #eef8f1;
  --amber-600: #9a6a00;
  --amber-50:  #fff7e6;
  --red-600:   #b42318;
  --red-50:    #fdeceb;

  /* Neutrals */
  --ink:        #0f172a;
  --text:       #1f2a37;
  --muted:      #5b6675;
  --muted-soft: #7b8595;
  --line:       #dbe3ec;
  --line-soft:  #eaeff5;
  --panel:      #ffffff;
  --bg:         #ffffff;
  --bg-soft:    #f5f8fb;
  --bg-tint:    #eef4f9;

  /* Type */
  --font: "Aptos Display", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-ui: "Aptos", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Shape */
  --r-lg: 8px;
  --r: 8px;
  --r-sm: 8px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 28px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(8, 63, 102, .16);
  --shadow-hero: 0 30px 70px rgba(6, 47, 77, .38);

  --maxw: 1220px;
  --gutter: 24px;

  --header-h: 62px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 60px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--navy-600); text-decoration: none; }
a:hover { color: var(--blue-500); text-decoration: underline; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--ink);
  margin: 0 0 .5em;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}
h1 { font-size: clamp(2.35rem, 1.45rem + 3vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.35rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1.05em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.05em; padding-left: 1.25em; }
li { margin-bottom: .4em; }
li:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; color: var(--ink); }
code, kbd, .mono { font-family: var(--mono); font-size: .9em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: 12px 20px;
  font-weight: 600; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; text-decoration: none; }

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

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 820px; }
.wrap-wide { max-width: 1320px; }

.section { padding: clamp(56px, 7vw, 96px) 0; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-navy {
  background: linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #dce9f3;
}
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: #fff; }
.section-navy a { color: #a8d8f5; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p.lede { font-size: 1.13rem; color: var(--muted); margin-bottom: 0; }
.section-navy .section-head p.lede { color: #b9d3e6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--navy-600); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .55;
}
.section-navy .eyebrow { color: var(--blue-400); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.split {
  display: grid; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr 1fr; align-items: center;
}
.split.text-first { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 900px) { .split, .split.text-first { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--muted); line-height: 1.6; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font);
  font-size: 1rem; font-weight: 700; letter-spacing: .015em;
  padding: 13px 26px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
  text-decoration: none; text-align: center; line-height: 1.25;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: var(--blue-500); color: #fff; box-shadow: 0 4px 14px rgba(23, 139, 203, .3); }
.btn-primary:hover { background: var(--navy-600); color: #fff; box-shadow: 0 8px 22px rgba(15, 111, 166, .36); }

.btn-secondary { background: transparent; color: var(--navy-800); border-color: var(--line-strong, #b6c4d3); }
.btn-secondary:hover { background: var(--blue-50); border-color: var(--blue-500); color: var(--navy-700); }

.btn-ghost-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost-light:hover { background: #fff; color: var(--navy-800); border-color: #fff; }

.btn-white { background: #fff; color: var(--navy-800); }
.btn-white:hover { background: var(--blue-50); color: var(--navy-900); }

.btn-lg { font-size: 1.06rem; padding: 15px 32px; }
.btn-sm { font-size: .9rem; padding: 9px 18px; }
.btn-block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn-row.center { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  color: var(--navy-600); text-decoration: none;
}
.link-arrow::after {
  content: "→"; transition: transform .18s ease; font-size: 1.05em;
}
.link-arrow:hover { text-decoration: none; color: var(--blue-500); }
.link-arrow:hover::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   5. Header — corporate bar + NASLORD product sub-navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900); color: #a9c6da;
  font-size: .82rem; line-height: 1;
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar a { color: #cfe3f1; text-decoration: none; }
.topbar a:hover { color: #fff; text-decoration: underline; }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.topbar-corp { display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) { .topbar-corp { display: none; } }

.lang-switch {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid rgba(255,255,255,.28); border-radius: var(--r-pill); overflow: hidden;
}
.lang-switch a {
  padding: 4px 11px; font-weight: 700; font-size: .74rem; letter-spacing: .06em;
  color: #a9c6da; text-decoration: none;
}
.lang-switch a[aria-current="true"] { background: var(--blue-500); color: #fff; }
.lang-switch a:hover { color: #fff; text-decoration: none; }

/* Lang switch inside the light masthead (top line removed) */
.masthead .lang-switch { margin-left: auto; border-color: var(--line-strong, #b6c4d3); }
.masthead .lang-switch a { color: var(--muted); }
.masthead .lang-switch a[aria-current="true"] { background: var(--navy-800); color: #fff; }
.masthead .lang-switch a:hover { color: var(--navy-800); }
.masthead .lang-switch a[aria-current="true"]:hover { color: #fff; }

.masthead {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.masthead.is-stuck { box-shadow: 0 6px 22px rgba(15, 23, 42, .09); }
.masthead .wrap {
  display: flex; align-items: center; gap: 22px;
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img { height: 27px; width: auto; }
.brand-sep { width: 1px; height: 24px; background: var(--line); }
.brand-corp {
  font-family: var(--font); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  line-height: 1.15;
}
.brand-corp span { display: block; color: var(--navy-700); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 10px; }
.nav a {
  font-family: var(--font); font-size: .95rem; font-weight: 600;
  color: var(--text); padding: 8px 12px; border-radius: var(--r-sm);
  text-decoration: none; white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--navy-700); background: var(--blue-50); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -2.5px 0 var(--blue-500); border-radius: 0; }

.nav-cta { display: flex; align-items: center; gap: 10px; margin-left: 14px; flex-shrink: 0; }

.nav-toggle {
  display: none; margin-left: 12px;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  width: 42px; height: 38px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--navy-800);
  border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: flex; }
  .nav, .nav-cta {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px var(--gutter); margin: 0;
    box-shadow: 0 14px 30px rgba(15,23,42,.1);
  }
  .masthead.is-open .nav { display: flex; }
  .masthead.is-open .nav-cta {
    display: flex; top: auto; position: static;
    box-shadow: none; border-bottom: 0; padding-top: 4px; padding-bottom: 16px;
  }
  .masthead.is-open .nav-cta .btn { width: 100%; }
  .nav a { padding: 11px 12px; font-size: 1rem; }
  .nav a[aria-current="page"] { border-radius: var(--r-sm); box-shadow: none; background: var(--blue-50); }
}

/* --------------------------------------------------------------------------
   5b. Product bar — NASLORD sub-navigation under the corporate masthead
   -------------------------------------------------------------------------- */
.masthead-static { position: sticky; top: 0; }  /* keep the Gallium masthead visible on product pages */

.product-bar {
  position: sticky; top: var(--header-h); z-index: 95;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-800) 70%, var(--navy-700) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow .2s ease;
}
.product-bar.is-stuck { box-shadow: 0 6px 22px rgba(6, 47, 77, .35); }
.product-bar .wrap {
  display: flex; align-items: center; gap: 18px; height: 54px;
}
.pb-brand { flex-shrink: 0; display: flex; align-items: center; }
.pb-brand img { height: 20px; width: auto; display: block; }
.pb-nav {
  display: flex; align-items: center; gap: 2px;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.pb-nav::-webkit-scrollbar { display: none; }
.pb-nav a {
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  color: #b9d3e6; padding: 8px 12px; border-radius: var(--r-sm);
  white-space: nowrap; text-decoration: none;
  transition: color .15s ease, background-color .15s ease;
}
.pb-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); text-decoration: none; }
.pb-nav a[aria-current="page"] {
  color: #fff; box-shadow: inset 0 -2.5px 0 var(--blue-500); border-radius: 0;
}
.pb-cta { display: flex; align-items: center; gap: 10px; margin-left: auto; flex-shrink: 0; }
@media (max-width: 960px) {
  .pb-cta { display: none; }        /* the mobile bottom bar carries the CTAs */
  .product-bar .wrap { gap: 12px; }
}

/* Mobile sticky conversion bar */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15,23,42,.1);
}
.mobile-cta .btn { flex: 1; padding: 12px 10px; font-size: .93rem; }
@media (max-width: 760px) {
  .mobile-cta { display: flex; }
  body { padding-bottom: 74px; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-800) 48%, var(--navy-700) 100%);
  color: #dceaf5;
  padding: clamp(52px, 6.5vw, 88px) 0 clamp(60px, 7vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 460px at 88% 6%, rgba(23,139,203,.34), transparent 62%),
    radial-gradient(620px 420px at 4% 96%, rgba(23,139,203,.16), transparent 66%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 1; }

.hero-grid {
  display: grid; grid-template-columns: 1.02fr 1.18fr;
  gap: clamp(34px, 4.5vw, 60px); align-items: center;
}
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } }

.hero h1 { color: #fff; margin-bottom: .42em; text-wrap: balance; }
.hero p.hero-sub {
  font-size: clamp(1.04rem, .98rem + .3vw, 1.2rem);
  color: #bdd8ea; max-width: 60ch; margin-bottom: 1.7em;
}
.hero .eyebrow { color: var(--blue-400); }

.hero-facts {
  list-style: none; padding: 0; margin: 26px 0 0;
  display: grid; gap: 9px;
}
.hero-facts li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .95rem; color: #b3cfe3; margin: 0;
}
.hero-facts svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 3px; color: var(--blue-400); }

/* --------------------------------------------------------------------------
   7. Product UI figure — real, readable interface at full width
   -------------------------------------------------------------------------- */
.ui-figure { margin: 0; }
.ui-shell {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero .ui-shell { box-shadow: var(--shadow-hero); border-color: rgba(255,255,255,.14); }

.ui-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; background: var(--navy-800);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.ui-dots { display: flex; gap: 5px; }
.ui-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.26); display: block; }
.ui-title {
  font-family: var(--font); font-size: .8rem; font-weight: 600;
  color: #cfe3f1; letter-spacing: .02em;
}
.ui-crumb { margin-left: auto; font-size: .72rem; color: #90b4cd; }

.ui-body { padding: 18px; background: var(--bg-soft); }
.ui-body.plain { background: #fff; }

.ui-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.ui-chip {
  font-family: var(--font-ui); font-size: .74rem; font-weight: 600;
  padding: 5px 11px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.ui-chip.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 14px; }
@media (max-width: 620px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 11px 12px;
}
.kpi .k-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted-soft); margin-bottom: 5px;
}
.kpi .k-value {
  font-family: var(--font); font-size: 1.42rem; font-weight: 700;
  color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums;
}
.kpi .k-value small { font-size: .58em; font-weight: 600; color: var(--muted); margin-left: 2px; }
.kpi .k-delta { font-size: .72rem; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.k-delta.up   { color: var(--red-600); }
.k-delta.down { color: var(--green-600); }
.k-delta.flat { color: var(--muted); }
.kpi.is-gold { border-color: #ecd9b4; background: linear-gradient(180deg, #fffaf1, #fff); }
.kpi.is-gold .k-value { color: var(--gold-700); }

/* Chart: CSS column chart, tabular + accessible */
.chart {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 14px 10px;
}
.chart-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 12px;
}
.chart-title { font-family: var(--font); font-size: .92rem; font-weight: 700; color: var(--ink); }
.chart-legend { display: flex; gap: 12px; flex-wrap: wrap; }
.chart-legend span { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; color: var(--muted); }
.chart-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }

.cols {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 7px; height: 132px; align-items: end;
  border-bottom: 1px solid var(--line); padding-bottom: 0;
}
.col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 2px; }
.col .seg { border-radius: 2px 2px 0 0; display: block; }
.col .seg.a { background: var(--blue-500); }
.col .seg.b { background: var(--navy-700); }
.col .seg.c { background: #9fc9e4; }
.col .seg.fc { background: repeating-linear-gradient(45deg, #cfe3f1, #cfe3f1 4px, #e8f2f9 4px, #e8f2f9 8px); border: 1px dashed #9cbdd4; border-bottom: 0; }
.col-labels {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 7px;
  margin-top: 6px;
}
.col-labels span { font-size: .66rem; color: var(--muted-soft); text-align: center; }

/* Budget meter */
.meter-list { display: grid; gap: 11px; }
.meter-row .m-top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: .78rem; margin-bottom: 5px;
}
.meter-row .m-name { font-weight: 600; color: var(--text); }
.meter-row .m-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.meter {
  height: 8px; border-radius: var(--r-pill); background: var(--line-soft);
  overflow: hidden; position: relative;
}
.meter i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--blue-500); }
.meter i.warn { background: var(--amber-600); }
.meter i.over { background: var(--red-600); }
.meter i.ok   { background: var(--green-600); }

/* Data table */
.ui-table { width: 100%; border-collapse: collapse; font-size: .8rem; background: #fff; }
.ui-table th {
  text-align: left; font-family: var(--font); font-size: .7rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  padding: 9px 10px; border-bottom: 1.5px solid var(--line); white-space: nowrap;
}
.ui-table td {
  padding: 9px 10px; border-bottom: 1px solid var(--line-soft);
  color: var(--text); font-variant-numeric: tabular-nums;
}
.ui-table tr:last-child td { border-bottom: 0; }
.ui-table .num { text-align: right; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }

.pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .68rem; font-weight: 700; padding: 2px 9px;
  border-radius: var(--r-pill); white-space: nowrap;
}
.pill.ok    { background: var(--green-50); color: var(--green-600); }
.pill.warn  { background: var(--amber-50); color: var(--amber-600); }
.pill.alert { background: var(--red-50);   color: var(--red-600); }
.pill.info  { background: var(--blue-50);  color: var(--navy-600); }
.pill.neutral { background: var(--line-soft); color: var(--muted); }

/* Alert strip inside UI */
.ui-alert {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--amber-50); border: 1px solid #f0dcae;
  border-left: 3px solid var(--amber-600);
  border-radius: var(--r-sm); padding: 10px 12px; font-size: .8rem;
  color: #6f4610; margin-bottom: 12px;
}
.ui-alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--amber-600); }
.ui-alert strong { color: #5a3a0d; }

/* Annotation callouts replacing device mockups */
.figure-notes {
  display: grid; gap: 10px; margin-top: 16px;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 820px) { .figure-notes { grid-template-columns: 1fr; } }
.figure-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .86rem; line-height: 1.45; color: var(--muted);
}
.figure-note b {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--blue-500); color: #fff;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
}
.hero .figure-note { color: #a8c6dc; }
.hero .figure-note b { background: var(--blue-400); color: var(--navy-900); }

figcaption {
  font-size: .82rem; color: var(--muted-soft); margin-top: 12px; line-height: 1.5;
}
.hero figcaption { color: #8fb2c9; }

/* --------------------------------------------------------------------------
   8. Proof bar
   -------------------------------------------------------------------------- */
.proof {
  background: var(--navy-900); color: #b8d3e6;
  padding: 18px 0; font-size: .92rem;
}
.proof .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 30px; text-align: center;
}
.proof-item { display: inline-flex; align-items: center; gap: 9px; }
.proof-item svg { width: 17px; height: 17px; color: var(--blue-400); flex-shrink: 0; }
.proof-item strong { color: #fff; font-weight: 700; }

/* --------------------------------------------------------------------------
   9. Cards
   -------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 26px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card-hover:hover { border-color: #bcd4e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .97rem; }

.icon-badge {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--blue-50); color: var(--navy-600);
  border: 1px solid var(--blue-100);
}
.icon-badge svg { width: 23px; height: 23px; }
.icon-badge.gold { background: var(--gold-100); color: var(--gold-700); border-color: #ecd9b4; }
.icon-badge.green { background: var(--green-50); color: var(--green-600); border-color: #c6e4d2; }

/* Module cards — shared system, distinct identity */
.module-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.module-card:hover { border-color: #bcd4e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.module-card::before { content: ""; display: block; height: 4px; background: var(--m, var(--blue-500)); }
.module-card[data-module="chargeback"] { --m: var(--m-cb); }
.module-card[data-module="tenant"]     { --m: var(--m-mt); }
.module-card[data-module="retention"]  { --m: var(--m-rl); }

.module-card .mc-inner { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.mc-icon {
  width: 44px; height: 44px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 15px;
  background: color-mix(in srgb, var(--m) 10%, #fff);
  color: var(--m);
  border: 1px solid color-mix(in srgb, var(--m) 26%, #fff);
}
.mc-icon svg { width: 22px; height: 22px; }
.mc-kicker {
  font-family: var(--font); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--m); margin-bottom: 7px;
}
.module-card h3 { font-size: 1.28rem; margin-bottom: .4em; }
.mc-outcome { color: var(--text); font-size: .98rem; margin-bottom: 16px; }
.mc-caps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.mc-caps li {
  display: flex; gap: 9px; align-items: flex-start;
  font-size: .91rem; color: var(--muted); margin: 0;
}
.mc-caps svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; color: var(--m); }
.mc-platforms {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding-top: 15px; margin-top: auto; border-top: 1px solid var(--line-soft);
  margin-bottom: 16px;
}
.mc-platforms .tag {
  font-size: .71rem; font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-pill); background: var(--bg-soft);
  border: 1px solid var(--line); color: var(--muted);
}
.module-card .btn { align-self: flex-start; }

/* Audience cards */
.audience {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; text-decoration: none; color: inherit;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.audience:hover { border-color: var(--blue-500); box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.audience h3 { font-size: 1.1rem; margin-bottom: .4em; }
.audience p { font-size: .92rem; color: var(--muted); margin-bottom: 14px; }
.audience .link-arrow { font-size: .9rem; }

/* Value / feature list block */
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.feature-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; color: var(--blue-500); }
.feature-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 1px; }
.feature-list span { color: var(--muted); font-size: .95rem; }
.section-navy .feature-list b { color: #fff; }
.section-navy .feature-list span { color: #b9d3e6; }
.section-navy .feature-list svg { color: var(--blue-400); }

/* Numbered steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 52px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-800); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font); font-weight: 700; font-size: 1.05rem;
}
.step h3 { font-size: 1.12rem; margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }
.section-navy .step::before { background: var(--blue-500); }
.section-navy .step p { color: #b9d3e6; }

/* --------------------------------------------------------------------------
   10. Comparison / support matrix tables
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.data {
  width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 620px;
}
table.data caption {
  text-align: left; padding: 16px 18px 0; font-size: .86rem; color: var(--muted-soft);
}
table.data th, table.data td {
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
table.data thead th {
  font-family: var(--font); font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--navy-800); background: var(--bg-soft);
  border-bottom: 2px solid var(--line); white-space: nowrap;
}
table.data tbody th { font-weight: 600; color: var(--ink); }
table.data tbody tr:last-child th, table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: #fbfdfe; }
table.data .yes { color: var(--green-600); font-weight: 600; }
table.data .no  { color: var(--muted-soft); }
table.data td.center, table.data th.center { text-align: center; }

/* --------------------------------------------------------------------------
   11. FAQ accordion
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: #bcd4e6; box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 52px 17px 20px;
  font-family: var(--font); font-weight: 700; font-size: 1.04rem;
  color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 10px; height: 10px; margin-top: -6px;
  border-right: 2px solid var(--navy-600); border-bottom: 2px solid var(--navy-600);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--navy-600); }
.faq .faq-body { padding: 0 20px 19px; color: var(--muted); font-size: .97rem; }
.faq .faq-body > :first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   12. Forms
   -------------------------------------------------------------------------- */
.form-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 17px; }
.field label {
  display: block; font-family: var(--font); font-weight: 700;
  font-size: .88rem; color: var(--ink); margin-bottom: 6px;
}
.field .req { color: var(--red-600); }
.field .hint { font-size: .8rem; color: var(--muted-soft); font-weight: 400; margin-top: 5px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(23, 139, 203, .16);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.radio-set { display: grid; gap: 9px; }
.radio-opt {
  display: flex; align-items: flex-start; gap: 10px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 14px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.radio-opt:hover { border-color: var(--blue-400); background: var(--blue-50); }
.radio-opt input { margin-top: 4px; accent-color: var(--blue-500); }
.radio-opt span { font-size: .95rem; }
.radio-opt span b { display: block; font-weight: 600; color: var(--ink); }
.radio-opt span small { color: var(--muted); font-size: .85rem; }
.radio-opt:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }

.form-note { font-size: .84rem; color: var(--muted-soft); margin-top: 14px; }

/* --------------------------------------------------------------------------
   13. Download centre
   -------------------------------------------------------------------------- */
.dl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 22px; display: flex; flex-direction: column;
}
.dl-card h3 { font-size: 1.1rem; margin-bottom: .3em; }
.dl-meta {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: .8rem; color: var(--muted); margin: 12px 0 14px;
}
.dl-meta span { display: inline-flex; align-items: center; gap: 5px; }
.dl-hash {
  font-family: var(--mono); font-size: .72rem; color: var(--muted-soft);
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-sm); padding: 8px 10px; margin-bottom: 15px;
  word-break: break-all; line-height: 1.5;
}
.dl-hash b { display: block; font-family: var(--font-ui); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.dl-card .btn { margin-top: auto; }

.gate-note {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .76rem; color: var(--muted-soft); margin-top: 10px;
}
.gate-note svg { width: 13px; height: 13px; }

/* --------------------------------------------------------------------------
   14. Callouts & CTA bands
   -------------------------------------------------------------------------- */
.callout {
  border-left: 3px solid var(--blue-500);
  background: var(--blue-50); border-radius: 0 var(--r) var(--r) 0;
  padding: 18px 22px; font-size: .97rem;
}
.callout.gold { border-left-color: var(--gold-600); background: var(--gold-100); }
.callout.green { border-left-color: var(--green-600); background: var(--green-50); }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--ink); }

.cta-band {
  background: linear-gradient(140deg, var(--navy-900) 0%, var(--navy-700) 62%, var(--navy-600) 100%);
  color: #cfe3f1; position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 340px at 82% 8%, rgba(23,139,203,.32), transparent 62%);
  pointer-events: none;
}
.cta-band .wrap { position: relative; z-index: 1; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: .35em; text-wrap: balance; }
.cta-band p { color: #b9d3e6; max-width: 62ch; margin-inline: auto; margin-bottom: 26px; font-size: 1.08rem; }

/* Trial highlight panel */
.trial-panel {
  background: #fff; border: 1px solid var(--line);
  border-top: 4px solid var(--gold-600);
  border-radius: var(--r-lg); padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
}
.trial-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--gold-100); color: var(--gold-700);
  border: 1px solid #ecd9b4; border-radius: var(--r-pill);
  padding: 5px 14px; font-family: var(--font); font-weight: 700;
  font-size: .8rem; letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 16px;
}
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 11px; align-items: flex-start; margin: 0; font-size: .97rem; }
.check-list svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 3px; color: var(--green-600); }
.section-navy .check-list svg { color: #6ee7a8; }

/* --------------------------------------------------------------------------
   15. Breadcrumbs & page header
   -------------------------------------------------------------------------- */
.crumbs { font-size: .84rem; color: var(--muted); padding: 14px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li { display: flex; align-items: center; gap: 8px; margin: 0; }
.crumbs li + li::before { content: "/"; color: var(--line-strong, #b6c4d3); }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

.page-head {
  padding: clamp(34px, 4vw, 56px) 0 clamp(30px, 3.5vw, 46px);
  border-bottom: 1px solid var(--line);
}
.page-head.module {
  background: linear-gradient(150deg, var(--navy-900), var(--navy-700));
  color: #cfe3f1; border-bottom: 0;
}
.page-head.module h1 { color: #fff; }
.page-head.module .lede { color: #b9d3e6; }
.page-head.module .eyebrow { color: var(--blue-400); }
.page-head.module .crumbs, .page-head.module .crumbs a { color: #90b4cd; }
.page-head.module .crumbs [aria-current] { color: #fff; }

/* Module accent applied per page */
[data-module-theme="chargeback"] { --m: var(--m-cb); }
[data-module-theme="tenant"]     { --m: var(--m-mt); }
[data-module-theme="retention"]  { --m: var(--m-rl); }
.module-rule { height: 4px; background: var(--m, var(--blue-500)); }

/* --------------------------------------------------------------------------
   16. Tabs (product tour)
   -------------------------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; justify-content: center; }
.tab {
  font-family: var(--font); font-size: .95rem; font-weight: 700;
  padding: 10px 20px; border-radius: var(--r-pill);
  background: #fff; border: 1.5px solid var(--line); color: var(--muted);
  cursor: pointer; transition: all .18s ease;
}
.tab:hover { border-color: var(--blue-400); color: var(--navy-700); }
.tab[aria-selected="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.tab-panel[hidden] { display: none; }

/* --------------------------------------------------------------------------
   17. Architecture diagram support
   -------------------------------------------------------------------------- */
.diagram {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(16px, 2.5vw, 28px); box-shadow: var(--shadow-sm);
  overflow-x: auto;
}
.diagram svg { min-width: 560px; margin-inline: auto; }

.spec-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.spec-list > div {
  display: grid; grid-template-columns: 240px 1fr; gap: 16px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: .94rem;
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt, .spec-list .t { font-weight: 600; color: var(--ink); }
.spec-list dd, .spec-list .d { margin: 0; color: var(--muted); }
@media (max-width: 640px) { .spec-list > div { grid-template-columns: 1fr; gap: 3px; } }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy-900); color: #9fbdd2;
  padding: clamp(44px, 5vw, 64px) 0 26px; font-size: .92rem;
}
.footer h4 {
  font-family: var(--font); font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 14px;
}
.footer a { color: #9fbdd2; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer li { margin: 0; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 34px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.13);
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.footer-brand img { height: 30px; margin-bottom: 14px; }
.footer-brand p { color: #8fb0c6; font-size: .89rem; max-width: 34ch; }
.footer-contact { display: grid; gap: 6px; margin-top: 14px; font-size: .89rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  align-items: center; padding-top: 22px; font-size: .84rem; color: #7fa2ba;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 36px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 24px; }
.mb-3 { margin-bottom: 36px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.nowrap { white-space: nowrap; }
.tm { font-size: .55em; vertical-align: super; letter-spacing: 0; font-weight: 600; }

.placeholder-note {
  border: 1.5px dashed #c9b283; background: #fffdf6;
  border-radius: var(--r); padding: 14px 18px;
  font-size: .87rem; color: #6f5a2e;
}
.placeholder-note b { color: #55451f; }

/* ==========================================================================
   20. Corporate (Gallium) components — shared tokens, corporate voice
   ========================================================================== */

/* Client / partner logo strip */
.logo-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 28px 44px;
}
.logo-strip img {
  height: 34px; width: auto; object-fit: contain;
  filter: grayscale(1) contrast(.82) opacity(.72);
  transition: filter .25s ease, transform .25s ease;
}
.logo-strip img:hover { filter: none; transform: translateY(-2px); }
.logo-strip.lg img { height: 44px; }
@media (max-width: 640px) { .logo-strip { gap: 20px 28px; } .logo-strip img { height: 26px; } }

/* Big-number stats */
.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  text-align: left;
}
@media (max-width: 800px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 4px clamp(18px, 3vw, 36px); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat .s-num {
  font-family: var(--font); font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  font-weight: 700; color: var(--navy-700); line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.section-navy .stat .s-num, .hero .stat .s-num { color: #fff; }
.stat .s-label { font-size: .92rem; color: var(--muted); margin-top: 6px; }
.section-navy .stat .s-label, .hero .stat .s-label { color: #b9d3e6; }

/* Product photo cards (Dell hardware on corporate pages) */
.photo-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.photo-card:hover { border-color: #bcd4e6; box-shadow: var(--shadow); transform: translateY(-2px); }
.photo-card .pc-media {
  background: radial-gradient(120% 120% at 50% 0%, #f3f7fb 0%, #e2ecf4 100%);
  padding: 22px; display: grid; place-items: center; min-height: 190px;
}
.photo-card .pc-media img { max-height: 160px; width: auto; object-fit: contain; }
.photo-card .pc-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.photo-card h3 { font-size: 1.22rem; margin-bottom: .35em; }
.photo-card .pc-kicker {
  font-family: var(--font); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--navy-600); margin-bottom: 7px;
}
.photo-card p { color: var(--muted); font-size: .94rem; }
.photo-card .link-arrow { margin-top: auto; padding-top: 14px; font-size: .93rem; }

/* Light hero (corporate landing) */
.hero-light {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 92% -10%, rgba(23,139,203,.14), transparent 60%),
    radial-gradient(700px 420px at -6% 110%, rgba(8,63,102,.1), transparent 60%),
    linear-gradient(180deg, #fbfdff 0%, #eef4f9 100%);
  padding: clamp(56px, 7vw, 100px) 0;
  border-bottom: 1px solid var(--line);
}
.hero-light h1 { max-width: 21ch; }
.hero-light .hero-sub { font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--muted); max-width: 58ch; margin-bottom: 1.6em; }
.hero-light .eyebrow { color: var(--navy-600); }

/* Service rows (alternating) */
.service-row { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: flex-start; }
.service-row + .service-row { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line-soft); }
.service-row .icon-badge { margin-bottom: 0; width: 52px; height: 52px; }
.service-row h3 { margin-bottom: .3em; }
.service-row p { color: var(--muted); margin-bottom: .5em; }
@media (max-width: 560px) { .service-row { grid-template-columns: 1fr; } }

/* Values / approach chips */
.value-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.value-chips span {
  font-family: var(--font); font-weight: 700; font-size: .9rem;
  background: var(--blue-50); color: var(--navy-700);
  border: 1px solid var(--blue-100); border-radius: var(--r-pill);
  padding: 8px 18px;
}

/* Contact / office cards */
.office-card { display: flex; gap: 16px; align-items: flex-start; }
.office-card .icon-badge { flex-shrink: 0; margin-bottom: 0; }
.office-card address { font-style: normal; color: var(--muted); line-height: 1.55; }
.office-card b { display: block; color: var(--ink); font-family: var(--font); margin-bottom: 3px; }

/* Photography */
.photo-figure { margin: 0; position: relative; }
.photo-figure img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.photo-figure.tall img { aspect-ratio: 4 / 5; }
.photo-figure.wide img { aspect-ratio: 16 / 10; }
.photo-figure.square img { aspect-ratio: 1 / 1; }
.photo-figure figcaption { margin-top: 10px; }

/* Floating card over a photo (stats, quotes) */
.photo-float {
  position: absolute; left: 18px; bottom: 18px; right: auto;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--r); padding: 14px 18px;
  box-shadow: var(--shadow);
  max-width: min(78%, 320px);
}
.photo-float .s-num {
  font-family: var(--font); font-size: 1.5rem; font-weight: 700;
  color: var(--navy-700); line-height: 1.1;
}
.photo-float .s-label { font-size: .84rem; color: var(--muted); }
@media (max-width: 560px) { .photo-float { left: 10px; bottom: 10px; padding: 10px 14px; } }

/* Service page hero (navy, with pictogram + watermark) */
.service-hero { position: relative; overflow: hidden; }
.service-hero .wrap { position: relative; z-index: 1; }
.service-hero .icon-badge {
  width: 58px; height: 58px; border-radius: 14px; margin: 14px 0 18px;
  background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18);
  color: var(--blue-400);
}
.service-hero .icon-badge.green { background: rgba(47, 133, 90, .22); border-color: rgba(120, 200, 160, .35); color: #7fd4a8; }
.service-hero .icon-badge.gold { background: rgba(197, 148, 62, .20); border-color: rgba(228, 190, 124, .35); color: #e8c789; }
.service-hero .icon-badge svg { width: 28px; height: 28px; }
.service-hero .btn-row { margin-top: 26px; }
.service-hero {
  background:
    radial-gradient(56% 130% at 88% -10%, rgba(23, 139, 203, .30), transparent 68%),
    radial-gradient(40% 90% at 8% 110%, rgba(23, 139, 203, .12), transparent 70%),
    linear-gradient(150deg, var(--navy-900), var(--navy-700));
}

/* 3-up feature cards in the service intro */
.feature-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.feature-grid li {
  flex-direction: column; gap: 10px;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 20px 20px 22px; box-shadow: var(--shadow-sm);
}
.feature-grid svg { margin-top: 0; width: 22px; height: 22px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid li { flex-direction: row; } }

/* Centered light statement panel (service pages) */
.statement {
  text-align: center;
  background: linear-gradient(160deg, var(--blue-50) 0%, #fff 80%);
  border: 1px solid var(--blue-100); border-radius: var(--r-lg);
  padding: clamp(30px, 4.5vw, 52px) clamp(20px, 4vw, 48px);
}
.statement h2 { color: var(--navy-800); margin-bottom: .4em; }
.statement p { color: var(--muted); max-width: 58ch; margin: 0 auto; }

/* Full-width image hero (home page) */
.hero-image {
  position: relative; overflow: hidden; color: #dceaf5;
  background-image: url('../img/photos/hero-digital.jpg');
  background-size: cover; background-position: 62% center;
  min-height: min(760px, calc(100svh - var(--header-h)));
  display: flex; align-items: center;
}
.hero-image::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(4, 31, 49, .96) 0%, rgba(6, 47, 77, .9) 42%, rgba(6, 47, 77, .42) 76%, rgba(6, 47, 77, .2) 100%);
}
.hero-image > .wrap { position: relative; z-index: 1; padding-top: clamp(68px, 8vw, 116px); padding-bottom: clamp(68px, 8vw, 116px); }
.hero-image h1 { color: #fff; max-width: 16ch; text-wrap: balance; }
.hero-image .hero-sub { color: #d8e7f2; max-width: 57ch; font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem); }
.hero-image .eyebrow { color: var(--blue-400); }
.hero-image .btn-row { margin-top: 28px; }

/* Inner-page hero variants */
.hero-image.hero-services,
.hero-image.hero-infrastructure {
  background-color: var(--navy-800);
  background-position: center;
  min-height: min(520px, calc(100svh - var(--header-h)));
}
.hero-image.hero-services { background-image: url('../img/photos/services-hero.jpg'); }
.hero-image.hero-infrastructure { background-image: url('../img/photos/infrastructure-hero.jpg'); }
.hero-image.hero-services h1,
.hero-image.hero-infrastructure h1 { max-width: 22ch; }
.hero-image .crumbs { padding-top: 0; }
.hero-image .crumbs, .hero-image .crumbs a { color: #9dbdd6; }
.hero-image .crumbs li + li::before { color: rgba(255,255,255,.35); }
.hero-image .crumbs [aria-current] { color: #fff; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  margin-top: 34px; padding-top: 22px; max-width: 700px;
  border-top: 1px solid rgba(255,255,255,.22);
  color: #c9dce9; font-size: .86rem; font-weight: 650;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #72c8a0; box-shadow: 0 0 0 4px rgba(114,200,160,.12); }

/* Full-width photo band with navy overlay */
.photo-band {
  position: relative; overflow: hidden; color: #dceaf5;
  background-color: var(--navy-800);
  background-size: cover; background-position: center;
}
.photo-band::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,47,77,.92) 0%, rgba(8,63,102,.82) 45%, rgba(8,63,102,.5) 100%);
}
.photo-band > .wrap { position: relative; z-index: 1; padding-top: clamp(52px, 6vw, 84px); padding-bottom: clamp(52px, 6vw, 84px); }
.photo-band h2 { color: #fff; }
.photo-band p { color: #c4dcec; max-width: 62ch; }
.photo-band .eyebrow { color: var(--blue-400); }

/* Split with photo column */
.split-photo { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 4.5vw, 60px); align-items: center; }
.split-photo.photo-left { grid-template-columns: .95fr 1.05fr; }
@media (max-width: 900px) { .split-photo, .split-photo.photo-left { grid-template-columns: 1fr; } }

/* Duo of stacked/staggered photos */
.photo-duo { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.photo-duo .photo-figure:nth-child(2) { margin-top: 40px; }
@media (max-width: 560px) { .photo-duo { gap: 10px; } .photo-duo .photo-figure:nth-child(2) { margin-top: 22px; } }

/* Sector chips with icons */
.sector-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 980px) { .sector-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
.sector {
  background: transparent; border: 0; border-top: 2px solid var(--line); border-radius: 0;
  padding: 20px 14px; text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.sector:hover { border-color: var(--blue-500); box-shadow: none; transform: translateY(-2px); }
.sector .icon-badge { margin: 0 auto 10px; }
.sector b { font-family: var(--font); font-size: .95rem; color: var(--ink); display: block; }
.sector span { font-size: .8rem; color: var(--muted-soft); }

/* Methodology timeline (horizontal on desktop) */
.method { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: mstep; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } }
.method-step { position: relative; padding: 0 18px 0 0; }
.method-step::before {
  counter-increment: mstep; content: counter(mstep, decimal-leading-zero);
  display: block; font-family: var(--font); font-weight: 700; font-size: .9rem;
  color: var(--blue-500); margin-bottom: 10px;
}
.method-step::after {
  content: ""; position: absolute; top: 8px; left: 34px; right: 8px; height: 2px;
  background: var(--line);
}
.method-step:last-child::after { display: none; }
@media (max-width: 900px) {
  .method-step { padding: 0 0 26px 0; }
  .method-step::after { top: 30px; left: 9px; right: auto; bottom: 0; width: 2px; height: auto; }
}
.method-step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.method-step p { font-size: .9rem; color: var(--muted); margin: 0; padding-right: 6px; }

/* Corporate homepage: editorial hierarchy and proof-led progression */
body[data-page$="corp-home"] .section-soft { background: #f7f9fb; }
body[data-page$="corp-home"] .card {
  border: 0; border-top: 3px solid var(--navy-700); border-radius: 0;
  box-shadow: none; padding-inline: 0; background: transparent;
}
body[data-page$="corp-home"] .card-hover:hover { box-shadow: none; transform: translateY(-3px); }
body[data-page$="corp-home"] .grid-3 .card:nth-child(2) { border-top-color: var(--green-600); }
body[data-page$="corp-home"] .grid-3 .card:nth-child(3) { border-top-color: var(--gold-600); }
.delivery-model { border-block: 1px solid var(--line); }
.delivery-model .method { margin-top: 40px; }
.delivery-model .method-step h3 { font-size: 1.12rem; }
.delivery-model .method-step p { font-size: .92rem; }

/* Subtle progressive reveal; content stays visible without JavaScript. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s ease; }

@media (max-width: 800px) {
  .hero-image { min-height: auto; background-position: 68% center; }
  .hero-image::before { background: rgba(5, 40, 63, .86); }
  .stat { padding: 18px; border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { border-left: 0; }
  .stat:first-child, .stat:nth-child(2) { border-top: 0; }
  .hero-proof { gap: 11px 20px; }
}
@media (max-width: 520px) {
  :root { --gutter: 19px; }
  .hero-image h1 { font-size: 2.55rem; }
  .hero-image .btn-row .btn { width: 100%; }
  .hero-proof { display: grid; }
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line) !important; padding-inline: 0; }
  .stat:first-child { border-top: 0 !important; }
  .sector-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}

/* Hero with photo column */
.hero-photo-col { position: relative; }
.hero-photo-col .photo-figure img { aspect-ratio: 5 / 4; }

/* Rotator: with JS active, keep the figure invisible (layout preserved by the
   aspect-ratio box) until the chosen slide is set and loaded — prevents the
   hard-coded fallback slide from flashing before the swap. */
.js .hero-photo-col .photo-figure { opacity: 0; }
.js .hero-photo-col .photo-figure.is-ready { opacity: 1; transition: opacity .35s ease; }

/* ==========================================================================
   20b. Documentation pages
   ========================================================================== */
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px;
}
.doc-meta span {
  font-family: var(--font); font-size: .8rem; font-weight: 700;
  background: var(--blue-50); color: var(--navy-700);
  border: 1px solid var(--blue-100); border-radius: var(--r-pill);
  padding: 5px 14px;
}

.doc-toc {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px 26px;
}
.doc-toc h2 { font-size: 1.05rem; margin-bottom: .7em; }
.doc-toc ol {
  margin: 0; padding-left: 1.3em;
  columns: 2; column-gap: 40px;
}
@media (max-width: 700px) { .doc-toc ol { columns: 1; } }
.doc-toc li { margin-bottom: .45em; break-inside: avoid; font-size: .95rem; }
.doc-toc a { text-decoration: none; font-weight: 600; }
.doc-toc a:hover { text-decoration: underline; }

pre.cli {
  background: var(--navy-900); color: #cfe3f1;
  border-radius: var(--r-sm); padding: 14px 18px;
  font-family: var(--mono); font-size: .82rem; line-height: 1.6;
  overflow-x: auto; margin: 0 0 1.05em;
}
pre.cli code { font-size: inherit; color: inherit; }

.doc article { border-top: 1px solid var(--line); padding-top: clamp(28px, 4vw, 44px); margin-top: clamp(28px, 4vw, 44px); }
.doc article:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.doc h2 .sec-no { color: var(--blue-500); margin-right: 8px; }
.doc h3 { margin-top: 1.6em; }
.doc-backtop { font-size: .82rem; }

/* ==========================================================================
   21. Cookie consent
   ========================================================================== */
.cookie-banner {
  position: fixed; z-index: 300;
  left: 16px; right: 16px; bottom: 16px;
  margin-inline: auto; max-width: 720px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 20px 22px;
}
@media (max-width: 760px) { .cookie-banner { bottom: 78px; } } /* clear the mobile CTA bar */
.cookie-banner h2 {
  font-size: 1.05rem; margin-bottom: .35em;
}
.cookie-banner p { font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.cookie-banner .btn-row { gap: 10px; }
.cookie-banner .btn { padding: 10px 18px; font-size: .92rem; }
.cookie-banner a.cb-manage {
  font-size: .88rem; font-weight: 600; align-self: center;
}

/* Preference toggle switch */
.consent-option {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  border: 1.5px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; background: #fff;
}
.consent-option + .consent-option { margin-top: 14px; }
.consent-option .co-text b { display: block; font-family: var(--font); color: var(--ink); margin-bottom: 4px; }
.consent-option .co-text span { font-size: .92rem; color: var(--muted); }
.consent-option .pill { margin-top: 4px; }

.switch { position: relative; display: inline-block; width: 52px; height: 30px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; position: absolute; z-index: 1; }
.switch .track {
  position: absolute; inset: 0; border-radius: var(--r-pill);
  background: #cfd8e3; transition: background-color .18s ease;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.3);
  transition: transform .18s ease;
}
.switch input:checked + .track { background: var(--green-600); }
.switch input:checked + .track::after { transform: translateX(22px); }
.switch input:disabled + .track { background: var(--navy-600); opacity: .55; cursor: not-allowed; }
.switch input:focus-visible + .track { outline: 3px solid var(--blue-500); outline-offset: 2px; }

.consent-status {
  display: none; margin-top: 16px;
  border-radius: var(--r-sm); padding: 12px 16px;
  background: var(--green-50); color: var(--green-600);
  font-weight: 600; font-size: .95rem;
}
.consent-status.is-visible { display: block; }

/* Dell Gold Partner badge */
.partner-gold { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.partner-gold img { height: 34px; width: auto; }
.partner-gold.center { justify-content: center; }
.partner-gold.lg img { height: 52px; }
.gold-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: #4a3800;
  background: linear-gradient(135deg, #f6e2a3 0%, #d9b64a 55%, #c39a2e 100%);
  border: 1px solid #b8912c; border-radius: var(--r-pill);
  padding: 7px 18px;
  box-shadow: 0 2px 10px rgba(184, 145, 44, .35);
}
.gold-badge::before { content: "★"; font-size: .95em; }
.partner-gold.lg .gold-badge { font-size: .92rem; padding: 9px 22px; }

/* NASLORD banner on corporate pages */
.naslord-band {
  background: linear-gradient(120deg, var(--navy-900) 0%, var(--navy-700) 70%, var(--navy-600) 100%);
  border-radius: var(--r-lg); overflow: hidden; position: relative;
  color: #cfe3f1; padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}
.naslord-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(560px 300px at 88% 0%, rgba(23,139,203,.4), transparent 62%);
  pointer-events: none;
}
.naslord-band > * { position: relative; }
.naslord-band h2, .naslord-band h3 { color: #fff; }
.naslord-band p { color: #b9d3e6; max-width: 64ch; }
.naslord-band img.nb-logo { height: 30px; width: auto; margin-bottom: 16px; }
