/*
 * Reward.AI — Visual Refresh v1.1 (2026-10)
 * Presentation layer loaded AFTER /css/styles.css. It changes appearance only:
 * no page content, URLs, CMS, forms or backend behaviour depend on this file.
 * Rollback = stop loading this file (see includes/header.php).
 *
 *  0 Fonts            6 Sections & cards      12 Resources & About
 *  1 Tokens & base    7 Dark surfaces         13 Contact & forms
 *  2 Header & nav     8 SKLTON showcase       14 CTA panels
 *  3 Buttons          9 Toolkits (tags)       15 Footer
 *  4 Heroes          10 Consulting services   16 Cookie banner
 *  5 Pillar band     11 Products              17 Motion · 18 Responsive
 *
 * Inline styles stored in CMS content are respected; the few overridden with
 * !important are marked "inline-style override" and were reviewed individually.
 *
 * v1.2.1 (2026-10-09): CSS-only hotfix for newer CMS content patterns - see section 19
 * and the .sk-ui aliases in section 8 / responsive rules.
 */

/* ===== 0. Fonts — Inter (SIL OFL 1.1, see /fonts/inter/OFL-LICENSE.txt), self-hosted ===== */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/inter/inter-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/inter/inter-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Metric-matched fallback so text does not jump when Inter swaps in. */
@font-face {
  font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans");
  size-adjust: 107%; ascent-override: 90.5%; descent-override: 22.5%; line-gap-override: 0%;
}

/* ===== 1. Tokens & base ===== */
:root {
  --font: "Inter", "Inter Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #f6f8fc;
  --surface: #fff;
  --ink: #0b1630;
  --ink-2: #1d2b45;
  --muted: #4e5c74;
  --subtle: #5e6b83;
  --line: #e2e8f1;
  --line-strong: #cbd6e5;
  --blue: #155eef;
  --blue-600: #1453d6;
  --blue-700: #0f44b3;
  --blue-50: #eef4ff;
  --blue-100: #dbe7ff;
  --cyan: #38bdf8;
  --navy: #0b1d3f;
  --dark: #07122a;
  --navy-900: #07122a;
  --navy-800: #0b1d3f;
  --on-dark: #fff;
  --on-dark-muted: #b9c6da;
  --on-dark-subtle: #93a5c2;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 48, .04), 0 4px 14px rgba(11, 22, 48, .04);
  --shadow: 0 2px 6px rgba(11, 22, 48, .04), 0 18px 44px rgba(11, 22, 48, .08);
  --max: 1200px;
  --header-h: 76px;
}
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font-family: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
/* Short card titles wrap naturally ("End-of-Service / Gratuity", not "End-of- / Service Gratuity"). */
.card h3, .service h3, .resource h3, .tag strong, .about-box h3 { text-wrap: pretty; }
p { text-wrap: pretty; }
::selection { background: #cfe0ff; color: #08173a; }
a, button { -webkit-tap-highlight-color: transparent; }
main:focus { outline: none; }
.container { width: min(var(--max), calc(100% - 64px)); }

/* Focus: one clearly visible ring everywhere (replaces the faint original ring). */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible,
.nav-links a:focus-visible, .btn:focus-visible, .menu:focus-visible, .sk-tab:focus-visible,
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 2px solid #2f6bff; outline-offset: 3px;
}
.hero :focus-visible, .page-hero :focus-visible, .dark-section :focus-visible, .footer :focus-visible,
.card[style*="#06112d"] :focus-visible { outline-color: #8fd0ff; }

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 1000;
  padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600;
  box-shadow: var(--shadow); transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

/* ===== 2. Header & navigation ===== */
/* Solid white keeps the logo's white canvas seamless when scrolling over dark sections. */
.site-header { background: #fff; border-bottom: 1px solid rgba(15, 35, 75, .08); box-shadow: 0 1px 0 rgba(15, 35, 75, .02), 0 8px 24px rgba(15, 35, 75, .04); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav { height: var(--header-h); gap: 24px; }
.brand { flex: 0 0 auto; }
.brand picture { display: block; line-height: 0; }
.brand-logo { width: auto; height: 58px; max-width: none; max-height: none; object-fit: contain; background: transparent; }
.nav-links { gap: 2px; font-size: 14.5px; font-weight: 500; color: #34425c; }
.nav-links a:not(.nav-cta) {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 9px; color: #34425c; white-space: nowrap; transition: color .15s, background-color .15s;
}
.nav-links a:not(.nav-cta):hover { color: var(--ink); background: #f1f5fb; }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-links a:not(.nav-cta)[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--blue);
}
.nav-links .nav-cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; margin-left: 12px; padding: 0 18px;
  border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 6px 16px rgba(21, 94, 239, .24);
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.nav-links .nav-cta:hover { background: var(--blue-600); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 10px 22px rgba(21, 94, 239, .3); }

/* Hamburger drawn in CSS; animates to a close icon. */
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.menu-icon { position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }
.nav.open .menu-icon { background: transparent; }
.nav.open .menu-icon::before { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-icon::after { transform: translateY(-6px) rotate(-45deg); }

/* ===== 3. Buttons ===== */
.btn {
  min-height: 48px; padding: 12px 22px; gap: 8px; border-radius: 12px;
  font-size: 15px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em;
  transition: transform .18s ease, background-color .18s, border-color .18s, box-shadow .18s, color .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #fff; color: var(--navy-900); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 10px 28px rgba(0, 0, 0, .18); }
.btn-primary:hover { background: var(--blue-50); color: var(--navy-900); }
.btn-secondary { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .24); color: #fff; }
.btn-secondary:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .4); box-shadow: none; }
.btn-dark { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px rgba(11, 29, 63, .18); }
.btn-dark:hover { background: var(--blue); box-shadow: 0 10px 24px rgba(21, 94, 239, .28); }
.btn-outline { background: #fff; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: #8fb0f4; color: var(--blue-700); background: var(--blue-50); box-shadow: none; }

/* ===== 4. Heroes (home + sub-pages) ===== */
.hero, .page-hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; }
.hero {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(900px 520px at 88% -8%, rgba(47, 107, 255, .32), transparent 62%),
    radial-gradient(700px 480px at -8% 108%, rgba(56, 189, 248, .12), transparent 60%),
    linear-gradient(180deg, #07122a 0%, #0a1937 100%);
}
.page-hero {
  background-color: var(--navy-900);
  background-image:
    radial-gradient(820px 420px at 92% -12%, rgba(47, 107, 255, .30), transparent 62%),
    linear-gradient(180deg, #07122a 0%, #0a1937 100%);
  padding: clamp(64px, 8vw, 104px) 0 clamp(60px, 7vw, 96px);
}
/* Subtle engineering grid, faded toward the copy. */
.hero::before, .page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
}
.hero-inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); min-height: 0;
  gap: clamp(40px, 5vw, 80px); padding: clamp(72px, 9vw, 112px) 0 clamp(72px, 8vw, 104px);
}
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow, .page-hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 10px;
  border: 1px solid rgba(143, 208, 255, .24); border-radius: 999px; background: rgba(143, 208, 255, .07);
  color: #9cd6ff; font-size: 11.5px; line-height: 1.4;
}
.hero .eyebrow::before, .page-hero .eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5cc3ff; box-shadow: 0 0 0 3px rgba(92, 195, 255, .18);
}
.hero h1 {
  font-size: clamp(40px, 5.4vw, 68px); line-height: 1.05; letter-spacing: -.035em; font-weight: 700;
  margin: 22px 0 22px; max-width: 640px;
}
.hero p { max-width: 570px; color: var(--on-dark-muted); font-size: clamp(16px, 1.35vw, 18px); line-height: 1.7; }
.actions { gap: 12px; margin-top: 34px; }
.page-hero h1 {
  font-size: clamp(36px, 5vw, 60px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700;
  max-width: 900px; margin: 20px 0 18px;
}
.page-hero p { color: var(--on-dark-muted); font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.7; max-width: 720px; }
.page-hero .actions { margin-top: 30px; }
.page-hero .container > .btn { margin-top: 14px; }

/* Illustrative dashboard (sample interface only). */
.hero-visual { width: 100%; min-width: 0; }
.product-frame {
  border-radius: 18px; background: #0d1c3a; border: 1px solid rgba(148, 180, 255, .2);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .03), 0 40px 90px rgba(1, 7, 22, .55), 0 0 80px rgba(47, 107, 255, .12);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
}
.frame-top { height: 44px; background: rgba(255, 255, 255, .03); border-bottom-color: rgba(255, 255, 255, .07); }
.frame-top::after { content: "WORKFORCE OVERVIEW"; margin-left: 12px; color: #9fb2d4; font-weight: 600; font-size: 10.5px; letter-spacing: .14em; }
.dot { width: 9px; height: 9px; }
.dot:nth-child(1) { background: #ff7b6e; } .dot:nth-child(2) { background: #f5c862; } .dot:nth-child(3) { background: #5fd3a8; }
.frame-body { padding: 16px; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; }
.side { border-radius: 10px; background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .07); }
.side div { height: 8px; background: #233759; }
.side .active { background: linear-gradient(90deg, #2f6bff, #38bdf8); }
.mini-grid { gap: 10px; }
.metric, .panel { border: 1px solid rgba(158, 195, 246, .12); background: #13254a; border-radius: 12px; padding: 13px; }
.metric small { color: #a9badb; font-size: 11px; font-weight: 500; }
.metric strong { font-size: clamp(16px, 1.65vw, 22px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; }
.panel { padding: 16px 16px 14px; }
.product-frame .panel small { color: #a9badb !important; font-size: 12px; } /* inline-style override: #7e8ba5 was 4.3:1 */
.chart { height: 140px; gap: 8px; }
.bar { background: linear-gradient(180deg, #5ad8f5, #2f6bff); border-radius: 6px 6px 2px 2px; transform-origin: bottom; animation: ra-bar .9s cubic-bezier(.2, .7, .2, 1) both; }
.bar:nth-child(2) { animation-delay: .05s; } .bar:nth-child(3) { animation-delay: .1s; } .bar:nth-child(4) { animation-delay: .15s; }
.bar:nth-child(5) { animation-delay: .2s; } .bar:nth-child(6) { animation-delay: .25s; } .bar:nth-child(7) { animation-delay: .3s; }
@keyframes ra-bar { from { transform: scaleY(.15); opacity: .4; } }
.visual-note { color: var(--on-dark-subtle) !important; text-align: center; font-size: 12px !important; line-height: 1.6 !important; margin: 22px auto 0; max-width: 440px !important; }

/* ===== 5. Pillar band (four service pillars — not performance metrics) ===== */
.band { background: #fff; border-top: 0; border-bottom: 1px solid var(--line); }
.band-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 28px 0; }
.stat { display: flex; align-items: center; gap: 14px; padding: 4px 24px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat strong { min-width: 2ch; font-size: 28px; line-height: 1; font-weight: 700; letter-spacing: -.03em; color: var(--blue); font-variant-numeric: tabular-nums; }
.stat span { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--ink-2); }

/* ===== 6. Sections & cards ===== */
.section { padding: clamp(64px, 8vw, 104px) 0; background: #fff; }
.section:not(.dark-section) + .section:not(.dark-section) { background: var(--bg); }
.section-head { gap: 48px; margin-bottom: 44px; align-items: end; }
.section-head h2 { max-width: 660px; margin: 14px 0 0; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.1; letter-spacing: -.032em; font-weight: 700; }
.section-head p { max-width: 500px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.eyebrow.blue { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.eyebrow.blue::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

.cards { gap: 20px; }
.card {
  padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
}
.card:hover { transform: none; box-shadow: var(--shadow-sm); }
.cards > .card { display: flex; flex-direction: column; }
.card > h2:first-child, .card > h3:first-child { margin-top: 0; }
.card-num {
  align-self: flex-start; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; padding: 0 10px;
  border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.card h3 { margin: 22px 0 10px; color: var(--ink); font-size: 21px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.card p { margin: 0 0 4px; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.card p strong { color: var(--ink-2); font-weight: 600; }
.arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14.5px; font-weight: 600; transition: color .15s, gap .15s; }
.arrow:hover { color: var(--blue-700); gap: 9px; }
.cards > .card .arrow { margin-top: auto; padding-top: 18px; }
@media (hover: hover) {
  .cards > .card:hover, .resource:hover, .service:hover, .tag:hover, .about-box:hover {
    transform: translateY(-3px); border-color: #c5d6f6; box-shadow: var(--shadow);
  }
}

/* ===== 7. Dark surfaces ===== */
.dark-section {
  position: relative; overflow: hidden; /* keeps the SKLTON window's shadow from hazing the next section */
  color: #fff; background-color: var(--navy-900);
  background-image:
    radial-gradient(800px 480px at 100% 0%, rgba(47, 107, 255, .22), transparent 60%),
    radial-gradient(600px 420px at 0% 100%, rgba(56, 189, 248, .08), transparent 60%),
    linear-gradient(160deg, #07122a, #0b1d3f);
}
.dark-section .eyebrow, .dark-section .eyebrow.blue { color: #8fd0ff; }
.dark-section .section-head h2 { color: #fff; }
.dark-section .section-head p, .dark-section .feature-copy p { color: var(--on-dark-muted); }
/* Cards placed on dark surfaces get a "glass" treatment. This also fixes headings
   that rendered white-on-white in the original (About "Ecosystem", Toolkits "Choose Your Level"). */
.dark-section .card, .card[style*="#06112d"] .card {
  background: rgba(255, 255, 255, .045); border-color: rgba(160, 190, 255, .16); box-shadow: none; color: #fff;
}
.dark-section .card h3, .card[style*="#06112d"] .card h3 { color: #fff; }
.dark-section .card p, .card[style*="#06112d"] .card p { color: var(--on-dark-muted); }
.dark-section .card-num { background: rgba(143, 208, 255, .12); color: #a8dcff; }
@media (hover: hover) {
  .dark-section .cards > .card:hover, .card[style*="#06112d"] .cards > .card:hover {
    background: rgba(255, 255, 255, .07); border-color: rgba(160, 190, 255, .32); box-shadow: 0 18px 44px rgba(0, 0, 0, .25);
  }
}
/* CMS cards with an inline navy background (home "Ecosystem", Toolkits "Choose Your Level"). */
.card[style*="#06112d"] { position: relative; overflow: hidden; isolation: isolate; border-radius: 24px; }
.card[style*="#06112d"]::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(640px 320px at 100% 0%, rgba(47, 107, 255, .34), transparent 65%), radial-gradient(520px 300px at 0% 100%, rgba(56, 189, 248, .12), transparent 60%);
}
.card[style*="#06112d"] > .eyebrow { color: #8fd0ff; }
.card[style*="#06112d"] > h2 { color: #fff; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; letter-spacing: -.03em; margin: 12px 0 0; }
.card[style*="#06112d"] > p { margin: 14px 0 0; font-size: 16.5px; line-height: 1.7; }
.card[style*="#06112d"] > .btn { margin-top: 28px; }
.card[style*="#06112d"] .cards .card { padding: 26px; }

/* ===== 8. SKLTON showcase (illustrative sample interface) ===== */
.product-show { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.product-show > * { min-width: 0; }
.feature-copy { padding: 0; }
.feature-copy h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 12px; }
.feature-copy h3 { margin: 0 0 14px; color: #cfe3ff; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.feature-copy p { font-size: 16.5px; line-height: 1.75; }
.pill-row { gap: 8px; margin: 26px 0 30px; }
.pill { padding: 7px 12px; border: 1px solid rgba(160, 190, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .05); color: #dbe6f7; font-size: 12.5px; font-weight: 500; }

/* .sk-ui = legacy class name for the same preview window, still used in CMS content (v1.2.1). */
.skelton-ui, .sk-ui {
  width: 100%; min-width: 0; max-width: 100%; overflow: hidden; border-radius: 18px;
  background: #f7f9fc; border: 1px solid #dde5f0; color: var(--ink);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .04), 0 40px 90px rgba(2, 8, 24, .45);
}
.sk-top { height: 56px; padding: 0 18px; background: #fff; border-bottom: 1px solid #e6ebf3; color: var(--ink); }
.sk-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.sk-brand::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #155eef, #38bdf8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.skelton-ui .status, .sk-ui .status { color: #3d4a60; font-size: 12px; font-weight: 600; }
.skelton-ui .status::before, .sk-ui .status::before { background: #10a36b; box-shadow: 0 0 0 4px rgba(16, 163, 107, .14); }
.sk-tabs { gap: 6px; padding: 10px 12px; background: #fbfcfe; border-bottom: 1px solid #e9eef5; scrollbar-width: none; }
.sk-tabs::-webkit-scrollbar { display: none; }
.sk-tab {
  flex: 0 0 auto; min-height: 40px; padding: 0 14px; border-radius: 10px;
  color: #4a5872; font-size: 13px; font-weight: 500; transition: background-color .15s, color .15s, box-shadow .15s;
}
.sk-tab:hover { background: #eef3fb; color: var(--ink); }
.sk-tab.active, .sk-tab[aria-selected="true"] { background: var(--blue-50); color: var(--blue-700); font-weight: 600; box-shadow: inset 0 0 0 1px #cddfff; }
/* Inactive panels must stay hidden even when they are display:grid (.sk-grid).
   The original fix targeted a non-existent .sk-ui class, so the live home page showed two panels at once. */
[data-sk-panel][hidden] { display: none !important; }
.sk-content { padding: 18px; }
.sk-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 14px; }
.sk-panel { min-width: 0; padding: 18px; border: 1px solid #e3e9f2; border-radius: 14px; background: #fff; color: var(--ink); }
.sk-panel[tabindex]:focus-visible, .sk-grid[tabindex]:focus-visible { outline: 2px solid #2f6bff; outline-offset: 2px; }
.sk-title { color: #56637a; font-size: 12.5px; font-weight: 600; }
.sk-value { margin: 4px 0 14px; color: #0f2147; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.skelton-ui .data-row, .sk-ui .data-row { padding: 11px 0; border-top-color: #edf1f6; font-size: 13px; }
.skelton-ui .data-row span, .sk-ui .data-row span { color: #4a5872; }
.skelton-ui .data-row strong, .sk-ui .data-row strong { color: #0f2147; font-weight: 600; }
.skelton-ui .data-row strong.blue, .sk-ui .data-row strong.blue { padding: 1px 8px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; }
.skelton-ui .org, .sk-ui .org { gap: 8px; }
.skelton-ui .node, .sk-ui .node { position: relative; border-color: #e1e8f2; border-radius: 10px; color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
.skelton-ui .node.main, .sk-ui .node.main { border-color: #b9cff8; background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
.skelton-ui .node.child::before, .skelton-ui .node.grand::before, .sk-ui .node.child::before, .sk-ui .node.grand::before { content: ""; position: absolute; left: -12px; top: 50%; width: 10px; height: 1px; background: #c9d5e6; }
/* Analytics tab: the original dark metric tiles made the inline dark text unreadable. */
.skelton-ui .metric, .sk-ui .metric { background: #fff; border-color: #dfe7f2; }
.skelton-ui .metric small, .sk-ui .metric small { color: #56637a; }
.skelton-ui .metric strong, .sk-ui .metric strong { color: #0f2147; font-size: 22px; }

/* ===== 9. Toolkits — category tags ===== */
.grid-5 { gap: 14px; counter-reset: ra-tag; }
.grid-5:has(> :nth-child(6)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tag {
  position: relative; min-width: 0; padding: 22px 20px 20px; overflow: hidden;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.tag::before {
  counter-increment: ra-tag; content: counter(ra-tag, decimal-leading-zero); display: block; margin-bottom: 14px;
  color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums;
}
.tag::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--blue), var(--cyan)); opacity: 0; transition: opacity .2s; }
.tag:hover::after { opacity: 1; }
.tag strong { margin-bottom: 6px; color: var(--ink); font-size: 15.5px; line-height: 1.35; font-weight: 650; }
.tag span { color: var(--muted); font-size: 13.5px; line-height: 1.55; }

/* ===== 10. Consulting — services ===== */
.services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: ra-svc; }
/* When the count leaves a single orphan (e.g. 7 services), feature the first one full-width. */
.services:has(> :last-child:nth-child(3n+1)) > :first-child { grid-column: 1 / -1; }
.service {
  position: relative; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.service::before {
  counter-increment: ra-svc; content: counter(ra-svc, decimal-leading-zero);
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 28px; margin-bottom: 20px; padding: 0 10px;
  border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 700; letter-spacing: .06em;
}
.service h3 { margin: 0 0 8px; color: var(--ink); font-size: 20px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.service p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.services:has(> :last-child:nth-child(3n+1)) > :first-child {
  background: linear-gradient(120deg, var(--blue-50), #fff 70%); border-color: #d3e1fb;
}
.services > :first-child::before { background: #fff; box-shadow: inset 0 0 0 1px #cddfff; }

/* ===== 11. Products ===== */
.product-card {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  padding: clamp(24px, 4vw, 48px); border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fbfcff); box-shadow: var(--shadow);
}
.product-card > * { min-width: 0; }
.product-card h2 { color: var(--ink); }
.product-card h3 { margin: 0 0 12px; color: var(--blue-700); font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.product-card p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.product-card .pill-row { margin: 18px 0 26px; }
.product-card .skelton-ui { box-shadow: 0 0 0 1px rgba(15, 35, 75, .04), 0 24px 60px rgba(15, 35, 75, .14); }
.status-label { align-items: center; gap: 7px; padding: 5px 11px; border: 1px solid #c5ebd9; background: #e9f8f1; color: #05724a; font-size: 12px; font-weight: 600; }
.status-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #10a36b; }

/* ===== 12. Resources & About ===== */
.resource-grid { gap: 20px; }
.resource {
  display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.resource .type { align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: var(--blue-50); color: var(--blue-700); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.resource h3 { margin: 16px 0 8px; color: var(--ink); font-size: 19px; line-height: 1.3; letter-spacing: -.02em; font-weight: 650; }
.resource p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.resource .arrow { margin-top: auto; padding-top: 16px; }
.resource-topic > h2 { max-width: 880px; margin: 14px 0 14px; color: var(--ink); font-size: clamp(24px, 2.8vw, 34px); line-height: 1.25; letter-spacing: -.025em; }
.resource-topic > p { max-width: 760px; margin: 0 0 36px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }

.about-grid { gap: 20px; }
.about-box {
  position: relative; overflow: hidden; padding: 32px 32px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.about-box::before { content: ""; position: absolute; left: 0; top: 28px; bottom: 28px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, var(--blue), var(--cyan)); }
.about-box h3 { margin: 14px 0 8px; color: var(--ink); font-size: 22px; line-height: 1.3; letter-spacing: -.02em; }
.about-box p { margin: 0; color: var(--muted); line-height: 1.7; }

/* ===== 13. Contact & forms ===== */
.contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-grid h2 { margin: 14px 0 14px; color: var(--ink); }
.contact-grid > div > .card { padding: 26px; border-radius: 18px; }
.contact-grid > div > .card h3 { margin: 0 0 6px; font-size: 18px; }
.contact-grid > div > .card .btn { margin-top: 14px; }
.form { padding: clamp(24px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.fields { gap: 20px; }
.field { gap: 8px; }
.field label { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.field input, .field select, .field textarea {
  min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: 12px;
  background-color: #fff; color: var(--ink); font-size: 16px; line-height: 1.4; /* 16px avoids iOS zoom on focus */
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aebfd6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 94, 239, .14); }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%234e5c74' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px;
}
.field textarea { min-height: 150px; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #d92d20; box-shadow: 0 0 0 4px rgba(217, 45, 32, .1); }
.form .btn { margin-top: 26px; min-width: 200px; }
.form-note { margin-top: 14px; color: var(--subtle); font-size: 13px; }

/* ===== 14. CTA panels — standalone CMS cards directly inside a section container ===== */
.section .container > .card:not([style*="#06112d"]) {
  padding: clamp(28px, 4vw, 44px); border-color: #d9e5fb; border-radius: 24px;
  background: linear-gradient(135deg, #f2f7ff 0%, #fff 62%); box-shadow: var(--shadow-sm);
}
.section .container > .card:not([style*="#06112d"]) > h2,
.section .container > .card:not([style*="#06112d"]) > h3 { margin: 0 0 10px; color: var(--ink); font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.section .container > .card:not([style*="#06112d"]) > p { max-width: 660px; margin: 0; }
.section .container > .card:not([style*="#06112d"]) > .btn { margin-top: 22px; }
@media (min-width: 901px) {
  /* Heading + text on the left, action on the right. */
  .section .container > .card:not([style*="#06112d"]):has(> .btn:last-child) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: center; }
  .section .container > .card:not([style*="#06112d"]):has(> .btn:last-child) > :not(.btn) { grid-column: 1; }
  .section .container > .card:not([style*="#06112d"]):has(> .btn:last-child) > .btn { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
}

/* ===== 15. Footer ===== */
.footer {
  padding: 72px 0 28px; border-top: 0; color: #a9b8d0; background-color: #061027;
  background-image: radial-gradient(700px 300px at 85% 0%, rgba(47, 107, 255, .14), transparent 60%);
}
.footer-grid { grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 48px; }
.footer .footer-brand { display: inline-block; margin: 0 0 10px; color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.03em; }
.footer .footer-brand span { color: #6cb6ff; }
.footer h4 { margin: 0 0 16px; color: #fff; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.footer-grid a:not(.footer-brand) { width: fit-content; margin: 10px 0; color: #b4c2d8; font-size: 14.5px; transition: color .15s; }
.footer-grid a:not(.footer-brand):hover { color: #fff; }
.logo-note { max-width: 300px; color: #93a5c2; font-size: 14px; line-height: 1.7; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
  margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); color: #93a5c2; font-size: 13px;
}
.footer .footer-bottom a { display: inline; margin: 0; color: #b4c2d8; font-size: 13px; text-decoration: underline; text-decoration-color: rgba(180, 194, 216, .35); text-underline-offset: 3px; }
.footer .footer-bottom a:hover { color: #fff; text-decoration-color: #fff; }

/* ===== 16. Cookie banner (existing consent logic unchanged) ===== */
.reward-cookie-box { max-height: min(80vh, 520px); overflow: auto; border-color: var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(7, 18, 42, .2); }
.reward-cookie-title { color: var(--ink); font-weight: 650; }
.reward-cookie-text { color: var(--muted); }
.reward-cookie-btn { min-height: 42px; border-radius: 10px; font-weight: 600; transition: background-color .15s, border-color .15s; }
.reward-cookie-btn:hover { border-color: #aebfd6; background: #f5f8fd; }
.reward-cookie-btn-primary:hover { background: var(--blue-600); border-color: var(--blue-600); }
.reward-cookie-modal { border-radius: 18px; }
#reward-cookie-analytics { accent-color: var(--blue); width: 18px; height: 18px; vertical-align: -3px; }

/* ===== 17. Motion ===== */
/* Content is visible by default; app.js only hides below-the-fold items it will animate. */
.reveal { opacity: 1; transform: none; }
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.reveal-pending.visible { opacity: 1; transform: none; }
@media print {
  .reveal.reveal-pending { opacity: 1; transform: none; }
  .site-header { position: static; }
  #reward-cookie-banner, #reward-cookie-settings, .skip-link, .menu { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .product-frame { transform: none; }
}

/* ===== 18. Responsive ===== */
@media (min-width: 1101px) {
  /* Featured (full-width) first service laid out as a row: number · title · description. */
  .services:has(> :last-child:nth-child(3n+1)) > :first-child { display: grid; grid-template-columns: auto minmax(0, .75fr) minmax(0, 1.25fr); column-gap: 28px; align-items: center; padding: 28px 32px; }
  .services:has(> :last-child:nth-child(3n+1)) > :first-child::before { margin: 0; }
  .services:has(> :last-child:nth-child(3n+1)) > :first-child h3 { margin: 0; font-size: 22px; }
  .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards:has(> :nth-child(4):last-child) > .card { padding: 28px; }
  .resource-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .cards:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .cards:has(> :nth-child(5):last-child) > .card { padding: 26px 24px; }
  .cards:has(> :nth-child(5):last-child) > .card h3 { font-size: 19px; }
}

@media (max-width: 1100px) {
  .nav-links { font-size: 14px; }
  .nav-links a:not(.nav-cta) { padding: 0 9px; }
  .nav-links a:not(.nav-cta)[aria-current="page"]::after { left: 9px; right: 9px; }
  .nav-links .nav-cta { margin-left: 8px; padding: 0 16px; }
  .hero-inner { gap: 40px; }
  .frame-body { grid-template-columns: 90px minmax(0, 1fr); }
  .metric { padding: 10px; }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5:has(> :nth-child(6)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cards:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .resource-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services:has(> :last-child:nth-child(3n+1)) > :first-child { grid-column: auto; background: #fff; border-color: var(--line); }
  .services:has(> :last-child:nth-child(odd)) > :first-child { grid-column: 1 / -1; background: linear-gradient(120deg, var(--blue-50), #fff 70%); border-color: #d3e1fb; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .container { width: min(var(--max), calc(100% - 48px)); }
  .brand-logo { height: 52px; }
  .menu {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 0;
    border: 1px solid #d6e0ee; border-radius: 12px; background: #fff; color: #10264b; font-size: 0;
  }
  .menu:hover { background: #f3f7fd; }
  .nav.open .nav-links {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px 24px 24px; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px rgba(7, 18, 42, .18);
  }
  .nav.open .nav-links a:not(.nav-cta) {
    display: flex; width: 100%; min-height: 48px; padding: 0 14px; border-bottom: 0; border-radius: 10px;
    color: var(--ink); font-size: 16px; font-weight: 500;
  }
  .nav.open .nav-links a:not(.nav-cta):hover { background: #f1f5fb; }
  .nav-links a[aria-current="page"]::after { display: none; }
  .nav.open .nav-links a[aria-current="page"] { background: var(--blue-50); color: var(--blue-700); font-weight: 600; }
  .nav.open .nav-links .nav-cta { display: flex; min-height: 50px; margin: 12px 0 0; border: 0; font-size: 16px; text-align: center; }
  body.nav-is-open { overflow: hidden; }
  body.nav-is-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(7, 18, 42, .45); }

  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 72px 0 80px; }
  .hero h1 { max-width: 720px; }
  .hero-visual { max-width: 640px; margin: 0 auto; }
  .product-frame { transform: none; }
  .frame-body { grid-template-columns: 100px minmax(0, 1fr); }
  .band-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  .stat { padding: 18px 0 18px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .section-head { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
  .section-head p { max-width: 640px; margin: 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .grid-5, .grid-5:has(> :nth-child(6)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .product-show, .contact-grid, .product-card { grid-template-columns: minmax(0, 1fr); }
  .skelton-ui, .sk-ui { max-width: 760px; }
  .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  :root { --header-h: 64px; }
  html, body { overflow-x: clip; } /* replaces the original overflow-x:hidden, which disabled the sticky header */
  .container { width: calc(100% - 40px); }
  .brand-logo { height: 46px; }
  .nav.open .nav-links { padding: 10px 20px 22px; }
  .hero-inner { gap: 40px; padding: 56px 0 64px; }
  .hero h1 { font-size: clamp(34px, 9.6vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 18px 0 18px; }
  .hero p { font-size: 16px; }
  .actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 28px; }
  .actions .btn { width: 100%; }
  .frame-body { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .frame-body .side { display: none; }
  .mini-grid { gap: 6px; }
  .metric, .panel { padding: 10px; }
  .metric small { font-size: 10px; }
  .metric strong { font-size: clamp(14px, 4vw, 18px); overflow-wrap: anywhere; }
  .chart { height: 112px; gap: 6px; }
  .page-hero { padding: 52px 0 56px; }
  .page-hero h1 { font-size: clamp(32px, 8.8vw, 42px); line-height: 1.1; letter-spacing: -.03em; }
  .page-hero p { font-size: 16px; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: clamp(28px, 7.6vw, 36px); }
  .section-head p { font-size: 15.5px; }
  .section-head[style*="margin-top:80px"] { margin-top: 56px !important; } /* inline-style override */
  .cards, .resource-grid, .services, .about-grid, .fields,
  .cards:has(> :nth-child(4):last-child), .cards:has(> :nth-child(5):last-child) { grid-template-columns: minmax(0, 1fr); }
  .services > :first-child, .services:has(> :last-child:nth-child(odd)) > :first-child, .services:has(> :last-child:nth-child(3n+1)) > :first-child { background: #fff; border-color: var(--line); }
  .services > :first-child::before { background: var(--blue-50); box-shadow: none; }
  .service::before { margin-bottom: 16px; }
  /* Horizontally scrollable SKLTON tabs: fade the right edge as a scroll cue. */
  .skelton-ui .sk-tabs, .sk-ui .sk-tabs { padding-right: 32px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
  .cards > .card:last-child:nth-child(odd) { grid-column: auto; }
  .services > :first-child, .services:has(> :last-child:nth-child(odd)) > :first-child, .services:has(> :last-child:nth-child(3n+1)) > :first-child { grid-column: auto; }
  .card, .resource, .service, .about-box { padding: 24px; }
  .card h3 { font-size: 20px; }
  .card[style*="#06112d"] { padding: 28px 22px !important; } /* inline-style override: 42px padding is too wide on phones */
  .card[style*="#06112d"] .cards .card { padding: 22px; }
  .field.full { grid-column: auto; }
  .form { padding: 22px; border-radius: 20px; }
  .form .btn { width: 100%; }
  .contact-grid h2[style*="font-size:44px"] { font-size: 34px !important; } /* inline-style override */
  .feature-copy h2 { font-size: clamp(34px, 9vw, 44px); }
  .pill-row { flex-wrap: wrap; overflow: visible; }
  .pill { white-space: normal; }
  .skelton-ui, .skelton-ui .sk-content, .skelton-ui .sk-grid, .skelton-ui .sk-panel,
  .sk-ui, .sk-ui .sk-content, .sk-ui .sk-grid, .sk-ui .sk-panel { min-width: 0; max-width: 100%; }
  .skelton-ui, .sk-ui { box-shadow: 0 0 0 6px rgba(255, 255, 255, .04), 0 24px 60px rgba(2, 8, 24, .45); }
  .skelton-ui .sk-grid, .sk-ui .sk-grid { grid-template-columns: minmax(0, 1fr); }
  .skelton-ui .sk-tabs, .sk-ui .sk-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .sk-content { padding: 12px; }
  .skelton-ui .data-row, .skelton-ui .node, .sk-ui .data-row, .sk-ui .node { min-width: 0; overflow-wrap: anywhere; }
  .product-card { padding: 24px 20px; border-radius: 20px; }
  .product-card h2[style] { font-size: 36px !important; } /* inline-style override: 42px heading on phones */
  .footer { padding: 56px 0 28px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 40px; }
  #reward-cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .reward-cookie-box { padding: 18px; }
  .reward-cookie-modal { padding: 22px; max-height: 90vh; overflow-y: auto; }
}

@media (max-width: 480px) {
  .band-inner { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .stat, .stat:nth-child(odd) { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(2) { border-top: 1px solid var(--line); }
  .stat:first-child { border-top: 0; }
  .stat strong { font-size: 24px; }
  .grid-5, .grid-5:has(> :nth-child(6)) { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .grid-5 > :last-child:nth-child(odd) { grid-column: auto; }
  /* Compact rows on phones: number on the left, title + detail on the right. */
  .tag { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; padding: 16px 18px; }
  .tag::before { grid-row: 1 / span 2; align-self: start; margin: 3px 0 0; }
  .tag strong { margin-bottom: 2px; }
}

@media (max-width: 380px) {
  .container { width: calc(100% - 32px); }
  .brand-logo { height: 42px; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 30px; }
  .metric strong { font-size: 13px; }
  .metric small { font-size: 9px; }
}

/* ===== 19. v1.2.1 hotfix (2026-10-09): newer CMS content patterns found in production QA =====
   Each rule is scoped to one content pattern. (The legacy .sk-ui preview window, issue 4, is handled
   by adding .sk-ui next to .skelton-ui in section 8 and the responsive rules.) */

/* 19.1 Issues 1-2: card titles that CMS content colours navy inline (style="color:#101a2d") were written
   for the original white cards and became invisible on v1.2's dark glass cards (Toolkits "Choose Your
   Level", Consulting "Reward.AI Ecosystem"). Only that inline value, only inside dark cards. */
.dark-section .card h3[style*="#101a2d" i],
.card[style*="#06112d"] .card h3[style*="#101a2d" i] { color: #fff !important; }

/* 19.2 Issue 3: section headers whose eyebrow is a direct child (no wrapper div) put the eyebrow beside
   the heading on wide screens. Eyebrow on its own row; heading + intro below, like every other header.
   (<= 900px these headers already stack correctly.) */
@media (min-width: 901px) {
  .section-head:has(> .eyebrow:first-child) { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: 48px; row-gap: 0; align-items: end; }
  .section-head:has(> .eyebrow:first-child) > .eyebrow { grid-column: 1 / -1; justify-self: start; }
}

/* 19.3 Issue 5: a 7-card grid showed 3 + 3 + 1 lone card; show 4 + 3 instead. */
@media (min-width: 901px) {
  .cards:has(> :nth-child(7):last-child) { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .cards:has(> :nth-child(7):last-child) > * { grid-column: span 3; }
  .cards:has(> :nth-child(7):last-child) > :nth-child(n+5) { grid-column: span 4; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .cards:has(> :nth-child(7):last-child) > .card { padding: 24px 22px; }
}

/* 19.4 Issue 6: a 2-card grid filled 2 of 3 columns, leaving an empty slot; use two equal columns. */
@media (min-width: 621px) {
  .cards:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
