/* Risk Modelling Technologies — shared design system for the company site and the prudential software site.
   (Copied into each site's assets/ by tools/make-sites.py; the games site has its own design.)
   System fonts only: no third-party requests. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef4f6;
  --navy: #0b1424;
  --navy-2: #111d33;
  --navy-3: #1a2942;
  --ink: #0e1726;
  --ink-2: #3b4658;
  --ink-3: #5b6678;
  --line: #e3e8ef;
  --line-2: #cfd7e3;
  --accent: #0a7c86;
  --accent-2: #075e66;
  --accent-soft: #e4f3f4;
  --accent-bright: #3fd0d4;
  --amber: #c27b12;
  --red: #c2413a;
  --violet: #6c5ce7;
  --on-dark: #e8eef7;
  --on-dark-2: #a9b6cb;
  --focus: #1f6fe0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px -12px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, 0.06), 0 30px 60px -20px rgba(15, 23, 42, 0.28);
  --sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, "SF Pro Display", system-ui, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wide: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; background: var(--navy); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 1rem; color: #fff; }
.wrap { max-width: var(--wide); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem 1.5rem; flex-wrap: wrap; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand svg { width: 2.1rem; height: 2.1rem; flex: none; }
.brand-name { font-family: var(--display); font-weight: 650; font-size: 1.02rem; letter-spacing: -0.01em; line-height: 1.15; }
.brand-name span { display: block; font-family: var(--sans); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.02em; color: var(--ink-3); }
.mark-bg { fill: var(--navy); }
.mark-line { fill: none; stroke: var(--accent-bright); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark-base { fill: none; stroke: #fff; stroke-opacity: 0.45; stroke-width: 1.6; stroke-linecap: round; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem 0.35rem; }
.site-nav a { display: inline-block; padding: 0.45rem 0.75rem; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-nav a:hover { color: var(--ink); background: var(--bg-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); background: var(--bg-soft); }
.site-nav a.nav-cta { background: var(--navy); color: #fff; padding-left: 1rem; padding-right: 1rem; }
.site-nav a.nav-cta:hover { background: var(--navy-3); color: #fff; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.022em; line-height: 1.1; font-weight: 680; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4.1rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.012em; }
p { margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 40rem; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.55rem; margin: 0 0 1rem; font-size: 0.8rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 1.4rem; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.75rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(10, 124, 134, 0.8); }
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }
.dark .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.dark .btn-ghost:hover { border-color: #fff; color: #fff; }
.dark .btn-primary { background: var(--accent-bright); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(63, 208, 212, 0.8); }
.dark .btn-primary:hover { background: #7ae3e5; color: var(--navy); }
.arrow::after { content: "→"; transition: transform 0.15s ease; }
.btn:hover .arrow::after, a:hover .arrow::after { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: linear-gradient(180deg, var(--bg-tint), var(--bg)); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--ink-2); font-size: 1.1rem; margin: 0; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .eyebrow { justify-content: center; }

/* Dark hero */
.dark { background: var(--navy); color: var(--on-dark); }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark .lede, .dark p { color: var(--on-dark-2); }
.dark .eyebrow { color: var(--accent-bright); }
.hero { position: relative; overflow: hidden; isolation: isolate; padding: clamp(4rem, 9vw, 7.5rem) 0 clamp(4rem, 8vw, 6.5rem); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 30%, transparent 75%); }
.hero::after { content: ""; position: absolute; z-index: -1; width: 46rem; height: 46rem; right: -14rem; top: -18rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(63, 208, 212, 0.20), rgba(63, 208, 212, 0) 62%); }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }
.hero h1 { margin-bottom: 1.4rem; max-width: 16ch; }
.hero .lede { color: var(--on-dark-2); }
.hero-points { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; color: var(--on-dark-2); font-size: 0.95rem; }
.hero-points li::before { content: "✓"; color: var(--accent-bright); margin-right: 0.45rem; font-weight: 700; }
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); max-width: 20ch; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 3vw, 2rem); min-width: 0; }
.cards-2 { display: grid; gap: 1.5rem; }
@media (min-width: 52rem) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.cards-3 { display: grid; gap: 1.25rem; }
@media (min-width: 46rem) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.cards-4 { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 66rem) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.cards-2 > *, .cards-3 > *, .cards-4 > * { min-width: 0; }
.feature h3 { margin: 0.9rem 0 0.5rem; }
.feature p { color: var(--ink-2); margin: 0; font-size: 0.98rem; }
.icon { width: 2.6rem; height: 2.6rem; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pill { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; padding: 0.28rem 0.7rem; border-radius: 999px; background: #fff4e0; color: #7a4a00; border: 1px solid #f3d9a8; }
.pill::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--amber); }
.dark .pill { background: rgba(255, 196, 92, 0.12); color: #ffd58f; border-color: rgba(255, 196, 92, 0.3); }
.tag { display: inline-block; font-size: 0.72rem; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); border: 1px dashed var(--line-2); padding: 0.15rem 0.5rem; border-radius: 6px; background: #fff; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 650; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Split rows (alternating text / visual) */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: 1fr 1fr; } .split.flip > :first-child { order: 2; } }
.split > * { min-width: 0; }
.split + .split { margin-top: clamp(4rem, 9vw, 7rem); }
.split h2 { margin-bottom: 1rem; }
.split p { color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: 0.65rem; }
.ticks li { position: relative; padding-left: 1.9rem; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.3rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230a7c86' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.8rem no-repeat; }
.ticks strong { color: var(--ink); }

/* Device mockups (real screenshots inside a drawn phone frame) */
.devices { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 1rem 0; }
.phone { position: relative; width: clamp(9.5rem, 22vw, 13.5rem); aspect-ratio: 600 / 1240; border-radius: 2.2rem; padding: 0.55rem; background: linear-gradient(145deg, #2a3346, #0c1220); box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone::before { content: ""; position: absolute; top: 0.95rem; left: 50%; transform: translateX(-50%); width: 30%; height: 0.95rem; border-radius: 999px; background: #05070c; z-index: 2; }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 1.7rem; background: #06080f; }
.phone.back { transform: translateX(14%) rotate(-5deg) translateY(-4%); z-index: 1; opacity: 0.98; }
.phone.front { transform: translateX(-14%) rotate(4deg); z-index: 2; }
.devices .glow { position: absolute; inset: 10% 5%; z-index: 0; border-radius: 50%; background: radial-gradient(circle, rgba(108, 92, 231, 0.28), rgba(63, 208, 212, 0.12) 45%, transparent 70%); filter: blur(10px); }
.games-list { display: grid; gap: 0.75rem; margin: 1.25rem 0 1.75rem; }
.game-row { display: flex; gap: 0.9rem; align-items: center; padding: 0.8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.game-row img, .game-row .emblem { width: 3.1rem; height: 3.1rem; border-radius: 22%; flex: none; }
.game-row .emblem { background: #111827; display: grid; place-items: center; }
.game-row .emblem svg { width: 1.9rem; height: 1.9rem; }
.game-row b { display: block; color: var(--ink); font-size: 1rem; }
.game-row span { color: var(--ink-3); font-size: 0.92rem; line-height: 1.4; display: block; }

/* Product UI mock (FRS dashboard) — illustrative, built in HTML */
.mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--line); background: #fafbfc; }
.mock-bar i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #e2e6ec; display: inline-block; }
.mock-bar b { margin-left: 0.6rem; font-size: 0.8rem; color: var(--ink-3); font-weight: 600; }
.mock-bar .tag { margin-left: auto; }
.mock-body { padding: 1.1rem; display: grid; gap: 0.9rem; }
.mock-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 0.75rem; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 0.75rem 0.85rem; min-width: 0; }
.kpi small { display: block; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.kpi .val { font-family: var(--display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.kpi .val sub { font-size: 0.85rem; color: var(--ink-3); font-weight: 600; vertical-align: baseline; }
.kpi .note { font-size: 0.75rem; color: var(--ink-3); }
.scale { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin-top: 0.45rem; }
.scale span { height: 0.4rem; border-radius: 3px; background: var(--line); }
.scale span.on { background: var(--accent); }
.drivers { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 0.9rem; }
.drivers small { display: block; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.5rem; }
.drv { display: grid; grid-template-columns: 9.5rem 1fr 2.6rem; gap: 0.6rem; align-items: center; font-size: 0.8rem; color: var(--ink-2); margin-top: 0.35rem; }
.drv .bar { height: 0.45rem; border-radius: 4px; background: var(--bg-soft); overflow: hidden; }
.drv .bar i { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.drv .bar i.warn { background: var(--amber); }
.drv em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.w92 { width: 92%; } .w78 { width: 78%; } .w64 { width: 64%; } .w41 { width: 41%; } .w70 { width: 70%; } .w55 { width: 55%; }
.mock-chart { border: 1px solid var(--line); border-radius: 12px; padding: 0.7rem 0.8rem 0.4rem; }
.mock-chart small { display: block; font-size: 0.7rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mock-caption { font-size: 0.8rem; color: var(--ink-3); padding: 0 1.1rem 1rem; margin: 0; }
@media (max-width: 30rem) { .mock-row { grid-template-columns: 1fr 1fr; } .mock-row .kpi:first-child { grid-column: 1 / -1; } .drv { grid-template-columns: 7rem 1fr 2.4rem; } }

/* Figures (SVG charts) */
.figure { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.2rem 1rem; margin: 0; min-width: 0; }
.figure-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.figure-title { font-weight: 650; font-size: 0.98rem; color: var(--ink); }
figcaption { font-size: 0.86rem; color: var(--ink-3); margin-top: 0.7rem; line-height: 1.5; }
.chart text { font-family: var(--sans); }
.chart .ax { fill: var(--ink-3); font-size: 12px; }
.chart .axt { fill: var(--ink-3); font-size: 11.5px; letter-spacing: 0.02em; }
.chart .grid line { stroke: #edf0f4; stroke-width: 1; }
.chart .base { stroke: var(--line-2); stroke-width: 1; }
.chart .bar { fill: var(--accent); }
.chart .bar.soft { fill: var(--accent); opacity: 0.35; }
.chart .bar.tail { fill: var(--red); opacity: 0.85; }
.chart .bar.alt { fill: var(--violet); }
.chart .bar.amber { fill: var(--amber); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.alt { stroke: var(--violet); }
.chart .line.red { stroke: var(--red); }
.chart .area { fill: var(--accent); opacity: 0.12; }
.chart .area.red { fill: var(--red); opacity: 0.16; }
.chart .mk { stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 3 3; }
.chart .mk.red { stroke: var(--red); }
.chart .mkl { fill: var(--ink-2); font-size: 11.5px; font-weight: 650; }
.chart .mkl.red { fill: var(--red); }
.chart .lbl { fill: var(--ink); font-size: 12px; font-weight: 600; }
.chart .lbl.light { fill: #fff; }
.chart .dot { fill: var(--accent); opacity: 0.5; }
.chart .dot.hot { fill: var(--red); opacity: 0.95; }
.chart .box { fill: none; stroke: var(--red); stroke-width: 1.2; stroke-dasharray: 4 3; }
.chart .panel { fill: #fafbfc; stroke: var(--line); }
.chart .node { fill: #fff; stroke: var(--line-2); }
.chart .flow { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; font-size: 0.82rem; color: var(--ink-2); margin-top: 0.5rem; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.legend i { display: inline-block; width: 0.75rem; height: 0.75rem; border-radius: 3px; background: var(--accent); }
.legend i.red { background: var(--red); } .legend i.alt { background: var(--violet); } .legend i.soft { opacity: 0.35; } .legend i.amber { background: var(--amber); }

/* LDA steps */
.steps { counter-reset: s; display: grid; gap: 1rem; }
@media (min-width: 56rem) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--mono); font-size: 0.8rem; color: var(--accent); font-weight: 600; }
.step h3 { font-size: 1.08rem; margin: 0.4rem 0 0.4rem; }
.step p { margin: 0; font-size: 0.94rem; color: var(--ink-2); }

/* Long-form */
.prose { max-width: 44rem; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin: 2.75rem 0 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 1.75rem 0 0.6rem; font-size: 1.12rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.notice { border: 1px solid #f0dcb4; background: #fffaf0; border-radius: var(--radius); padding: 1.15rem 1.3rem; color: #5b4316; font-size: 0.97rem; }
.notice strong { color: #3f2d0b; }
.notice p { color: #5b4316; margin: 0 0 0.5rem; }
.notice p:last-child { margin: 0; }
.limits { border: 1px solid var(--line); border-left: 4px solid var(--amber); background: #fff; border-radius: 10px; padding: 1.2rem 1.3rem; }
.limits h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 0.7rem; }
.limits ul { margin: 0; padding-left: 1.1rem; }
.limits li { color: var(--ink-2); margin-bottom: 0.45rem; font-size: 0.97rem; }

.facts { display: grid; margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 0.2rem 2rem; padding: 0.95rem 0; border-bottom: 1px solid var(--line); }
@media (min-width: 40rem) { .facts div { grid-template-columns: 12rem 1fr; } }
.facts dt { color: var(--ink-3); font-size: 0.95rem; }
.facts dd { margin: 0; color: var(--ink); overflow-wrap: break-word; min-width: 0; }

.cta-panel { border-radius: 22px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; position: relative; overflow: hidden; isolation: isolate; }
@media (min-width: 52rem) { .cta-panel { grid-template-columns: 1fr auto; } }
.cta-panel::after { content: ""; position: absolute; z-index: -1; width: 30rem; height: 30rem; right: -10rem; bottom: -16rem; border-radius: 50%; background: radial-gradient(circle, rgba(63, 208, 212, 0.25), transparent 65%); }
.cta-panel h2 { margin-bottom: 0.6rem; }
.cta-panel p { margin: 0; }
.contact-card .email-big { font-family: var(--display); font-size: clamp(1.15rem, 3.4vw, 1.7rem); font-weight: 650; letter-spacing: -0.01em; overflow-wrap: anywhere; margin: 0.3rem 0 0; }
a[href^="mailto:"] { overflow-wrap: break-word; }
.label { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 3.5rem 0 3rem; font-size: 0.92rem; }
.footer-grid { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .f-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-family: var(--display); font-weight: 650; margin-bottom: 0.9rem; }
.site-footer .f-brand svg { width: 1.9rem; height: 1.9rem; }
.site-footer p { margin: 0 0 0.35rem; color: var(--on-dark-2); }
.site-footer h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.8rem; font-weight: 650; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .fine { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 2.5rem; padding-top: 1.4rem; font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media print { .site-header, .skip, .actions { display: none; } .dark { background: #fff; color: #000; } }

/* utilities (no inline styles: the Content-Security-Policy blocks them) */
.p-title { margin: 0.9rem 0 0.55rem; }
.mt-1 { margin-top: 1rem; } .mt-08 { margin-top: 0.8rem; } .mt-2 { margin-top: 2rem; } .mt-25 { margin-top: 2.5rem; }
.m0 { margin-bottom: 0; } .pt-0 { padding-top: 0; }
.split.mt-25 { margin-top: 2.5rem; }
.hero-grid > * { min-width: 0; }
@media (max-width: 26rem) { .phone { width: 8.6rem; } .devices { padding: 0.5rem 0; } }
/* light cards placed inside dark sections keep dark text */
.dark .mock p, .dark .mock-caption, .dark .card p, .dark .figure p { color: var(--ink-3); }
.dark .card h3, .dark .figure .figure-title { color: var(--ink); }

/* Company homepage: hero art panel (decorative simulation paths) */
.hero-art { position: relative; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08); padding: 0.9rem 1rem 1rem; }
.hero-art::before { content: ""; position: absolute; inset: 12% 8%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(108, 92, 231, 0.3), rgba(63, 208, 212, 0.14) 45%, transparent 70%); filter: blur(24px); }
.hero-art-bar { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; font-family: var(--mono); font-size: 0.78rem; color: var(--on-dark-2); }
.hero-art-bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.hero-art-bar span { margin-left: 0.6rem; }
.hero-paths { display: block; width: 100%; height: auto; }

/* Company homepage: product cards */
.products { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .products { grid-template-columns: 1fr 1fr; } }
.products > * { min-width: 0; }
.product { display: flex; flex-direction: column; }
.product-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.product-head h3 { margin: 0.1rem 0 0; }
.product-logo, .product-head .emblem { width: 3.25rem; height: 3.25rem; border-radius: 22%; flex: none; display: grid; place-items: center; }
.product-head .emblem { background: #111827; }
.product-head .emblem svg { width: 2rem; height: 2rem; }
.product-logo.fin { background: var(--accent-soft); color: var(--accent); }
.product-logo.fin svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.product-kind { display: block; font-size: 0.75rem; font-weight: 650; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-3); }
.product p { color: var(--ink-2); flex: 1; margin: 0; }
.product-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.site-links { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 52rem) { .site-links { grid-template-columns: 1fr 1fr; } }
.site-link { display: grid; gap: 0.2rem; padding: 1.1rem 1.3rem; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; min-width: 0; }
.site-link:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.site-link-k { font-weight: 700; color: var(--ink); }
.site-link-d { font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3); overflow-wrap: anywhere; }
.site-link .link-arrow { margin-top: 0.4rem; }
@media (min-width: 60rem) { .split.split-facts { grid-template-columns: 2fr 3fr; } }
/* product-card visuals (dark panel like the hero art) */
.card-visual { position: relative; overflow: hidden; margin: 0 0 1.3rem; padding: 0.75rem 0.9rem 0.6rem; border-radius: 12px; background: radial-gradient(120% 140% at 85% 0%, #1a2a4a 0%, var(--navy) 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.card-visual .hero-art-bar { margin-bottom: 0.35rem; font-size: 0.72rem; }
.card-art { display: block; width: 100%; height: auto; }
.hero-art-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.card-visual { background-color: var(--navy); }
