/* SuperCPQ — site styles */
:root {
  --indigo: #283593;
  --indigo-deep: #1e2870;
  --cyan: #35B8E8;
  --orange: #FF8A3D;
  --ink: #172033;
  --cloud: #F5F7FC;
  --white: #FFFFFF;
  --line: #DDE2F0;
  --muted: #545D73;
  --max: 1180px;
  --radius: 10px;
  --font-head: "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); }
p { margin: 0 0 1rem; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: .5rem; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* Section label: quiet, sentence case, with a short rule (not shouty all-caps) */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .6; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: #3B4459; max-width: 40em; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 15px 24px;
  border-radius: 8px;
  background: var(--orange);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--orange);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(255, 138, 61, .35); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-ghost { background: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo); color: var(--white); box-shadow: none; }
.btn-small { padding: 9px 16px; font-size: .92rem; }

.text-link { font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--cyan); padding-bottom: 2px; }
.text-link::after { content: " →"; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-owl { width: 30px; height: auto; }
.brand-word { width: 140px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: .95rem; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--indigo); }
.menu-btn {
  display: none;
  font: inherit; font-weight: 600; color: var(--indigo);
  background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0 clamp(64px, 8vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(53, 184, 232, .10), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #1B2350 55%, var(--indigo) 130%);
  color: var(--white);
}
/* faint blueprint grid: structure, not decoration */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { color: var(--white); }
.hero h1 span { color: #A9C2FF; }
.hero .eyebrow { color: var(--cyan); }
.hero .lede { margin-top: 8px; color: #CDD3EA; }
.hero .btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.hero .btn-ghost:hover { background: var(--white); color: var(--indigo); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Owl morph: marble owl of Minerva -> SuperCPQ owl */
.morph { margin: 0; }
.morph-stage {
  position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden;
  background: #0E1326;
  box-shadow: 0 30px 80px rgba(5, 8, 25, .55), 0 0 0 1px rgba(255,255,255,.08);
}
.morph-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: grayscale(.35) contrast(1.05) brightness(.92);
  transform: scale(1.06);
  transition: filter 1.4s cubic-bezier(.6,0,.2,1), transform 1.8s cubic-bezier(.6,0,.2,1), opacity 1.2s ease .5s;
}
.morph-logo {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, var(--cloud) 70%);
  clip-path: circle(0% at 46% 34%);
  transition: clip-path 1.5s cubic-bezier(.7,0,.2,1) .25s;
}
.morph-logo img { width: 52%; transform: scale(.82) translateY(10px); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.8,.2,1) .9s, opacity .8s ease .9s; }
.morph-label {
  position: absolute; left: 20px; bottom: 18px; font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 999px; transition: opacity .6s ease;
}
.morph-label-photo { background: rgba(14,19,38,.6); color: #E7E9F2; }
.morph-label-logo { background: var(--indigo); color: var(--white); opacity: 0; }
.morph.is-morphed .morph-photo { filter: grayscale(1) blur(6px) brightness(.7); transform: scale(1.18); opacity: 0; }
.morph.is-morphed .morph-logo { clip-path: circle(120% at 46% 34%); }
.morph.is-morphed .morph-logo img { transform: none; opacity: 1; }
.morph.is-morphed .morph-label-photo { opacity: 0; }
.morph.is-morphed .morph-label-logo { opacity: 1; transition-delay: 1.4s; }
.morph figcaption { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 16px; font-size: .9rem; color: #AEB6D3; }
.morph-replay {
  flex: none; font: inherit; font-weight: 600; font-size: .85rem; color: var(--white); cursor: pointer;
  background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 14px;
}
.morph-replay:hover { border-color: var(--cyan); color: var(--cyan); }

/* Hero product illustration: one commercial record, three stages */
.deal-wrap { margin: 0; perspective: 1600px; }
.deal {
  position: relative; background: var(--white); color: var(--ink);
  border-radius: 14px; padding: 22px 22px 18px;
  box-shadow: 0 40px 90px rgba(4, 7, 24, .55), 0 0 0 1px rgba(255,255,255,.06);
  transform: rotateY(-7deg) rotateX(3deg);
  transform-origin: 60% 50%;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
  animation: deal-in 1s cubic-bezier(.2,.7,.2,1) both .2s;
  font-size: .92rem;
}
.deal-wrap:hover .deal { transform: none; }
@keyframes deal-in { from { opacity: 0; transform: rotateY(-14deg) rotateX(6deg) translateY(30px); } }
.deal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.deal-cust { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 0; }
.deal-id { margin: 2px 0 0; color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
.deal-status {
  font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: #E6E8F6; color: var(--indigo); white-space: nowrap; transition: background .4s, color .4s;
}
.deal[data-stage="1"] .deal-status { background: #E1F5FC; color: #0F5E7C; }
.deal[data-stage="2"] .deal-status { background: #FFE9DA; color: #8A3D0A; }

.deal-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 18px 0 14px; padding: 0; counter-reset: s; }
.deal-steps li { position: relative; font-size: .75rem; font-weight: 600; color: #8C93A8; padding-top: 10px; }
.deal-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); }
.deal-steps li::after { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; border-radius: 3px; background: var(--indigo); }
.deal-steps li.is-done { color: var(--ink); }
.deal-steps li.is-done::after { width: 100%; }
.deal-steps li.is-active { color: var(--indigo); }
.deal-steps li.is-active::after { animation: step-fill var(--stage-ms, 5200ms) linear forwards; }
@keyframes step-fill { from { width: 0; } to { width: 100%; } }

.deal-lines { width: 100%; border-collapse: collapse; }
.deal-lines th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8C93A8; padding: 6px 0; border-bottom: 1px solid var(--line); }
.deal-lines th:nth-child(n+2), .deal-lines td:nth-child(n+2) { text-align: right; }
.deal-lines td { padding: 10px 0; border-bottom: 1px solid #EEF1F8; transition: background .5s, color .5s, opacity .5s; }
.deal-lines td:nth-child(n+2) { font-family: var(--font-mono); font-size: .85rem; white-space: nowrap; padding-left: 12px; }
.deal-lines tr.is-changed td { background: #FFF4EC; }
.deal-lines tr.is-changed td:first-child { box-shadow: inset 3px 0 0 var(--orange); padding-left: 8px; }
.deal-lines tr.is-muted td { color: #B3B9CB; text-decoration: line-through; text-decoration-color: rgba(0,0,0,.15); }

.deal-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.deal-total span { color: var(--muted); font-size: .85rem; }
.deal-total strong { font-family: var(--font-mono); font-size: 1.45rem; color: var(--indigo); font-weight: 600; letter-spacing: -.02em; }
.deal-note { font-size: .8rem; color: var(--muted); margin: 6px 0 14px; min-height: 1.3em; transition: opacity .35s; }

.deal-trail { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 7px; }
.deal-trail li { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: #8C93A8; transition: color .4s; }
.deal-trail .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: border-color .3s, background .3s; }
.deal-trail li.is-on { color: var(--ink); }
.deal-trail li.is-on .dot { border-color: transparent; background: var(--cyan) 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='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.deal-trail li[data-check="people"].is-on .dot { background-color: var(--orange); }
.deal-trail li[data-check="rules"].is-on .dot { background-color: var(--indigo); }
.deal-caption { margin-top: 18px; font-size: .82rem; color: #8F98BA; text-align: center; }
.is-fading { opacity: 0; }

/* Proof strip */
.proof { background: var(--indigo); color: #DDE2F7; }
.proof-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.proof p { margin: 0; }
.proof strong { color: var(--white); }
.proof .text-link { color: var(--white); flex: none; }

/* Ticker */
.ticker { background: var(--cloud); border-block: 1px solid var(--line); }
.ticker-head { padding: 18px 0 0; font-size: .95rem; color: var(--muted); }
.ticker-head strong { color: var(--ink); }
.ticker-window { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track {
  display: flex; width: max-content; gap: 48px; padding: 14px 0 20px;
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; color: var(--indigo);
  animation: tick 36s linear infinite;
}
.ticker-track span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 48px; vertical-align: middle; }
@keyframes tick { to { transform: translateX(-50%); } }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 96px); align-items: start; }
.split-head { position: sticky; top: 120px; }

.problems { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.problems li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.problems p { color: var(--muted); margin: 0; }
.num { font-family: var(--font-head); font-weight: 800; color: var(--indigo); font-size: 1.1rem; padding-top: 2px; }

/* Dark lifecycle */
.dark { background: var(--indigo); color: var(--white); }
.dark h2, .dark h3 { color: var(--white); }
.dark .eyebrow { color: #9FE0F7; }
.dark .lede, .dark p { color: #D6DBF2; }
.lifecycle { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-top: 48px; }
.lifecycle-line { position: absolute; top: 0; left: 0; width: 100%; height: 24px; overflow: visible; }
.lifecycle-line line { stroke: var(--cyan); stroke-width: 2; vector-effect: non-scaling-stroke; }
.lifecycle-line circle { fill: var(--indigo); stroke: var(--cyan); stroke-width: 3; vector-effect: non-scaling-stroke; }
/* Draw the lifecycle line when it scrolls into view */
.js .lifecycle-line line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s cubic-bezier(.6,0,.2,1); }
.js .lifecycle-line circle { transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .5s cubic-bezier(.2,1.6,.4,1); }
.js .lifecycle.is-drawn .lifecycle-line line { stroke-dashoffset: 0; }
.js .lifecycle.is-drawn .lifecycle-line circle { transform: scale(1); }
.js .lifecycle.is-drawn .lifecycle-line circle:nth-of-type(2) { transition-delay: .75s; }
.js .lifecycle.is-drawn .lifecycle-line circle:nth-of-type(3) { transition-delay: 1.5s; }
.js .lifecycle article.reveal:nth-of-type(2) { transition-delay: .7s; }
.js .lifecycle article.reveal:nth-of-type(3) { transition-delay: 1.4s; }
.lifecycle article { border-top: 1px solid rgba(255,255,255,.18); padding-top: 24px; }
.lifecycle article:nth-child(3) { text-align: center; }
.lifecycle article:nth-child(4) { text-align: right; }
.step { font-weight: 600; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan) !important; margin-bottom: .75rem; }
.lifecycle h3 { font-size: 1.6rem; }

/* AI flow */
.flow { display: flex; flex-direction: column; background: var(--cloud); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.flow-step { display: grid; grid-template-columns: 84px 1fr; column-gap: 16px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.flow-step strong { font-family: var(--font-head); font-size: 1.2rem; }
.flow-step span:last-child { grid-column: 2; color: var(--muted); font-size: .95rem; }
.flow-tag { grid-row: span 2; justify-self: start; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.tag-ai { background: #E1F5FC; color: #0F5E7C; }
.tag-rules { background: #E6E8F6; color: var(--indigo); }
.tag-people { background: #FFE9DA; color: #8A3D0A; }
.flow-arrow { height: 28px; width: 2px; margin-left: 62px; background: var(--line); position: relative; }
.flow-arrow::after { content: ""; position: absolute; bottom: 0; left: -4px; border: 5px solid transparent; border-top-color: #AAB2C8; border-bottom: 0; }
.split .text-link { display: inline-block; margin-top: 8px; }

/* CTA band */
.cta { background: var(--cloud); border-top: 1px solid var(--line); padding: clamp(64px, 8vw, 104px) 0; }
.cta-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.cta h2 { max-width: 18em; }
.cta .lede { margin: 0; }

/* Contact page */
.contact-hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: clamp(56px, 8vw, 104px) 0;
  background: linear-gradient(160deg, var(--ink) 0%, #1B2350 60%, var(--indigo) 140%);
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-copy h1 { color: var(--white); font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.contact-copy .eyebrow { color: var(--cyan); }
.contact-copy .lede, .contact-copy p { color: #CDD3EA; }
.contact-facts { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.contact-facts li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); color: var(--white); }
.contact-facts span { color: #9AA3C4; font-size: .9rem; }
.contact-facts a { color: var(--white); }

.form-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 30px 80px rgba(5, 8, 25, .45); border-top: 5px solid var(--orange); }
.form-title { font-size: 1.6rem; margin-bottom: 8px; }
.field { margin-top: 18px; }
.field label { display: block; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--cloud); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--white); border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(40, 53, 147, .15); }
.was-validated .field :invalid { border-color: #C2410C; background: #FFF6F1; }
.form-consent { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.btn-block { width: 100%; margin-top: 20px; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; box-shadow: none; }
.form-error { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: #FFF1EA; color: #8A3D0A; font-size: .92rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 48px 8px; outline: none; }
.form-success img { width: 64px; margin: 0 auto 20px; animation: hoot .7s cubic-bezier(.2,.8,.2,1) both; }
.form-success h2 { font-size: 2.2rem; color: var(--indigo); margin-bottom: 8px; }
.form-success p { font-size: 1.1rem; margin-bottom: 4px; }
.muted { color: var(--muted); }
@keyframes hoot { 0% { transform: translateY(16px) scale(.8); opacity: 0; } 60% { transform: translateY(-4px) scale(1.05); opacity: 1; } 100% { transform: none; } }

/* Design partner */
.partner { background: var(--cloud); }
.partner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.partner-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.partner-card-cta { background: var(--indigo); border-color: var(--indigo); color: var(--white); display: flex; flex-direction: column; }
.partner-card-cta h3 { color: var(--white); }
.partner-card-cta p { color: #D6DBF2; }
.partner-card-cta .btn { margin-top: auto; align-self: flex-start; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 8px 0 8px 30px; color: #3B4459; }
.checks li::before { content: ""; position: absolute; left: 0; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: #E1F5FC 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='%230F5E7C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Legal / prose pages */
.page-head { background: var(--cloud); border-bottom: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.prose { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); }
.prose h2 { font-size: 1.5rem; margin: 2.4rem 0 .8rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1rem 0 1.5rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cloud); font-weight: 600; }
.todo { background: #FFF4D6; border-radius: 4px; padding: 0 4px; }

/* Footer */
.footer { background: var(--ink); color: #C5CBDD; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.footer-logo { width: 180px; margin-bottom: 20px; }
.footer p { max-width: 30em; font-size: .95rem; }
.footer nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 48px; align-content: start; justify-content: end; }
.footer nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.footer nav a:hover { color: var(--cyan); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid #2E3850; margin-top: 48px; padding-top: 20px; font-size: .85rem; }
.footer-bottom a { color: #C5CBDD; }

/* Scroll reveal (only when JS has run) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 20px;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 16px; }
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .morph { max-width: 440px; }
  .contact-grid, .partner-grid { grid-template-columns: 1fr; }
  .deal { transform: none; }
  @keyframes deal-in { from { opacity: 0; transform: translateY(24px); } }
  .proof-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .split-head { position: static; }
  .lifecycle { grid-template-columns: 1fr; padding-top: 0; }
  .lifecycle-line { display: none; }
  .lifecycle article:nth-child(n) { text-align: left; }
  .cta-row { flex-direction: column; align-items: flex-start; }
  .footer nav { justify-content: start; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 32px); }
  .flow { padding: 16px; }
  .flow-step { grid-template-columns: 1fr; row-gap: 6px; }
  .flow-tag { grid-row: auto; }
  .flow-step span:last-child { grid-column: 1; }
  .flow-arrow { margin-left: 24px; }
  .actions .btn { width: 100%; }
}

/* =========================================================
   Inner pages
   ========================================================= */
.nav-links a[aria-current="page"]:not(.btn) { color: var(--indigo); box-shadow: inset 0 -2px 0 var(--indigo); padding-bottom: 4px; }

.page-hero {
  position: relative; overflow: hidden; color: var(--white);
  padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  background:
    radial-gradient(900px 500px at 90% 0%, rgba(53, 184, 232, .10), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, #1B2350 60%, var(--indigo) 140%);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; 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: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 90%);
}
.page-hero .wrap { position: relative; }
.page-hero h1 { color: var(--white); max-width: 15em; font-size: clamp(2.4rem, 5vw, 4.2rem); }
.page-hero .eyebrow { color: var(--cyan); }
.page-hero .lede { color: #CDD3EA; }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.page-hero-grid h1 { max-width: none; }

/* Pipeline: Configure -> Price -> Govern */
.pipeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); }
.pipe { position: relative; padding: 32px 28px 30px; border-right: 1px solid var(--line); }
.pipe:last-child { border-right: 0; }
.pipe .mono-label { font-family: var(--font-mono); font-size: .8rem; color: var(--indigo); margin-bottom: 18px; display: block; }
.pipe h3 { font-size: 1.45rem; }
.pipe p { color: var(--muted); margin: 0; }
.pipe-bar { position: absolute; top: 0; left: 0; height: 3px; width: 100%; background: var(--line); }
.pipe-bar::after { content: ""; position: absolute; inset: 0; background: var(--indigo); transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.6,0,.2,1); }
.pipeline.is-visible .pipe-bar::after { transform: scaleX(1); }
.pipeline.is-visible .pipe:nth-child(2) .pipe-bar::after { transition-delay: .6s; }
.pipeline.is-visible .pipe:nth-child(3) .pipe-bar::after { transition-delay: 1.2s; }
.pipe-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--cloud); color: var(--indigo); margin-bottom: 20px; }
.pipe-icon svg { width: 24px; height: 24px; }

/* Capabilities: editorial two-column list, not a card grid */
.cap-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 80px); border-top: 1px solid var(--line); }
.cap { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.cap svg { width: 28px; height: 28px; color: var(--indigo); margin-top: 2px; }
.cap h3 { font-size: 1.2rem; margin-bottom: 6px; }
.cap p { color: var(--muted); margin: 0; }

/* Commercial record (product page): charge timeline + event list.
   The markup is the final state. JS adds .is-armed (start state) and .is-playing
   when the card is in view; each part waits for its own --d delay. */
.record { margin: 0; background: var(--ink); color: #D6DBF2; border-radius: 16px; padding: clamp(24px, 4vw, 40px); position: relative; overflow: hidden; }
.record h3 { color: var(--white); }
.record-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.record-head h3 { margin: 0; }
.record .record-arr { margin: 0; font-size: .8rem; color: #8F98BA; white-space: nowrap; }
.record-arr strong { font-family: var(--font-mono); font-size: 1.05rem; font-weight: 500; color: var(--white); margin-left: 6px; }

.charges { position: relative; display: grid; grid-template-columns: minmax(112px, 36%) 1fr; column-gap: 14px; row-gap: 4px; margin-top: 24px; }
.charge-label { font-size: .78rem; line-height: 22px; color: #AEB6D3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.charge-track { position: relative; height: 22px; }
.charges .bar { position: absolute; top: 5px; left: var(--s); width: calc(var(--e) - var(--s)); height: 12px; border-radius: 6px; background: rgba(53, 184, 232, .28); border: 1.5px solid var(--cyan); transform-origin: left center; }
.charges .bar.next { background: rgba(255, 138, 61, .36); border-color: var(--orange); }
.charges .pt { position: absolute; top: 5px; left: var(--s); width: 11px; height: 11px; margin-left: -5px; background: var(--cyan); transform: rotate(45deg); }
.charges-events { position: absolute; grid-column: 2; grid-row: 1 / 7; top: -4px; bottom: -4px; left: 0; right: 0; pointer-events: none; }
.charges-events i { position: absolute; top: 0; bottom: 0; left: var(--at); border-left: 1px dashed rgba(255, 255, 255, .3); }
.charges-events i.is-renew { border-left: 2px dashed var(--orange); }
.charges-axis { grid-column: 2; position: relative; height: 22px; margin-top: 4px; border-top: 1px solid rgba(255, 255, 255, .18); }
.charges-axis b { position: absolute; top: 5px; left: var(--at); transform: translateX(-50%); font-family: var(--font-mono); font-size: .68rem; font-weight: 400; color: #8F98BA; white-space: nowrap; }
.charges-axis b:first-child { transform: none; }
.charges-axis b:last-child { transform: translateX(-100%); }
.charges-axis i { position: absolute; top: -1px; left: var(--at); height: 5px; border-left: 1px solid rgba(255, 255, 255, .3); }

.record-track { position: relative; margin-top: 28px; padding-left: 28px; }
.record-track::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: rgba(255,255,255,.12); }
.record-track::after { content: ""; position: absolute; left: 7px; top: 6px; width: 2px; height: calc(100% - 12px); background: var(--cyan); }
.record-item { position: relative; padding: 0 0 22px; }
.record-item:last-child { padding-bottom: 0; }
.record-item::before { content: ""; position: absolute; left: -27px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); border: 2px solid var(--cyan); }
.record-date { font-family: var(--font-mono); font-size: .78rem; color: var(--cyan); }
.record-item strong { display: block; color: var(--white); font-weight: 600; margin: 2px 0; }
.record-item span { font-size: .92rem; }
.record-caption { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }
.record .record-caption p { margin: 0; font-size: .88rem; color: #AEB6D3; }
.record .record-caption .pv-foot { justify-content: flex-start; }

.record.is-armed .bar, .record.is-armed .pt { transform: scaleX(0); }
.record.is-armed .pt { transform: rotate(45deg) scale(0); }
.record.is-armed .bar.next { background-color: transparent; }
.record.is-armed .charge-label { opacity: .35; }
.record.is-armed .charges-events i { opacity: 0; }
.record.is-armed .record-item { opacity: .35; }
.record.is-armed .record-item::before { background: var(--ink); border-color: rgba(255,255,255,.35); }
.record.is-armed .record-track::after { height: 0; }
.record.is-playing .bar { transform: none; transition: transform 1s cubic-bezier(.6,0,.2,1) var(--d, 0s); }
.record.is-playing .bar.next { background-color: rgba(255, 138, 61, .36); transition: transform 1s cubic-bezier(.6,0,.2,1) var(--d, 0s), background-color .6s ease var(--d2, 0s); }
.record.is-playing .pt { transform: rotate(45deg); transition: transform .5s cubic-bezier(.2,1.6,.4,1) var(--d, 0s); }
.record.is-playing .charges-events i { opacity: 1; transition: opacity .5s ease var(--d, 0s); }
.record.is-playing .charge-label { opacity: 1; transition: opacity .5s ease var(--d, 0s); }
.record.is-playing .record-item { opacity: 1; transition: opacity .6s ease var(--d, 0s); }
.record.is-playing .record-item::before { background: var(--cyan); border-color: var(--cyan); transition: background .4s ease var(--d, 0s), border-color .4s ease var(--d, 0s); }
.record.is-playing .record-track::after { height: calc(100% - 12px); transition: height 5.2s cubic-bezier(.4,0,.2,1) .3s; }

/* Solutions: role explorer */
.roles { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.role-tabs { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.role-tab {
  font: inherit; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 14px 20px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 1.15rem; font-weight: 600; color: #8C93A8; transition: color .2s, border-color .2s;
}
.role-tab:hover { color: var(--ink); }
.role-tab[aria-selected="true"] { color: var(--indigo); border-left-color: var(--indigo); }
.role-panel { background: var(--cloud); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 44px); min-height: 360px; }
.role-panel[hidden] { display: none; }
.role-panel.is-entering { animation: panel-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes panel-in { from { opacity: 0; transform: translateY(10px); } }
.role-panel h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); max-width: 18em; }
.role-panel .role-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding: 0; list-style: none; }
.role-panel .role-kpis li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: .9rem; color: var(--ink); }

.statement { font-family: var(--font-head); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--ink); max-width: 24em; }
.statement em { font-style: normal; color: var(--indigo); }

/* AI page: agent sequence */
.agent-demo { background: var(--white); color: var(--ink); border-radius: 16px; padding: 22px; box-shadow: 0 40px 90px rgba(4,7,24,.5); font-size: .92rem; }
.agent-msg { display: flex; gap: 12px; align-items: flex-start; opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s; }
.agent-msg + .agent-msg { margin-top: 14px; }
.agent-msg.is-on { opacity: 1; transform: none; }
.agent-avatar { flex: none; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: .7rem; font-weight: 700; }
.av-user { background: #FFE9DA; color: #8A3D0A; }
.av-ai { background: #E1F5FC; color: #0F5E7C; }
.av-rules { background: #E6E8F6; color: var(--indigo); }
.av-person { background: var(--orange); color: var(--ink); }
.agent-bubble { background: var(--cloud); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; flex: 1; }
.agent-bubble b { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.agent-bubble code { font-family: var(--font-mono); font-size: .82rem; }
.agent-checks { list-style: none; margin: 6px 0 0; padding: 0; font-family: var(--font-mono); font-size: .8rem; }
.agent-checks li::before { content: "✓ "; color: #1F8A5B; font-weight: 700; }
.agent-checks li.warn::before { content: "! "; color: #C2410C; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: st; }
.steps3 article { padding: 0 clamp(16px, 3vw, 36px) 0 0; }
.steps3 article + article { padding-left: clamp(16px, 3vw, 36px); border-left: 1px solid var(--line); }
.steps3 .big-num { font-family: var(--font-mono); font-size: 2.6rem; font-weight: 500; color: var(--indigo); line-height: 1; display: block; margin-bottom: 18px; }
.steps3 p { color: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { border-top: 3px solid var(--cyan); padding-top: 22px; }
.pillar:nth-child(2) { border-color: var(--indigo); }
.pillar:nth-child(3) { border-color: var(--orange); }
.dark .pillar p { color: #D6DBF2; }

/* Integrations hub */
.hub { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1; margin-inline: auto; }
.hub svg.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines line { stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.hub-lines .pulse { fill: var(--cyan); }
.hub-core { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); background: var(--white); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(255,255,255,.06), 0 0 0 22px rgba(255,255,255,.03), 0 20px 60px rgba(0,0,0,.4); }
.hub-core img { width: 46%; }
.hub-node { position: absolute; transform: translate(-50%, -50%); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: var(--white); border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 600; white-space: nowrap; backdrop-filter: blur(4px); }

.int-table { width: 100%; border-collapse: collapse; }
.int-table th, .int-table td { text-align: left; padding: 22px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.int-table th { width: 220px; font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.int-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.int-chips span { border: 1px solid var(--line); background: var(--cloud); border-radius: 8px; padding: 8px 14px; font-weight: 500; }
.fineprint { font-size: .88rem; color: var(--muted); margin-top: 20px; max-width: 46em; }

.code-card { background: #0E1326; color: #C9D1F2; border-radius: 14px; padding: 22px 24px; font-family: var(--font-mono); font-size: .84rem; line-height: 1.7; overflow-x: auto; box-shadow: 0 30px 70px rgba(4,7,24,.35); }
.code-card .c-k { color: #9FE0F7; }
.code-card .c-s { color: #FFC59E; }
.code-card .c-c { color: #6F7AA3; }
.code-head { display: flex; gap: 6px; margin-bottom: 14px; }
.code-head i { width: 10px; height: 10px; border-radius: 50%; background: #2A3358; }

/* About */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }
.story p { font-size: 1.12rem; color: #3B4459; }
.pull { border-left: 4px solid var(--orange); padding: 6px 0 6px 28px; font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.3; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.founders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.founder { display: flex; flex-direction: column; }
.founder-photo { aspect-ratio: 4 / 5; border-radius: 14px; background: linear-gradient(160deg, #E6E8F6, var(--cloud)); display: grid; place-items: center; margin-bottom: 22px; overflow: hidden; position: relative; }
.founder-photo span { font-family: var(--font-head); font-weight: 700; font-size: 3rem; color: rgba(40,53,147,.35); letter-spacing: -.02em; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder h3 { font-size: 1.45rem; margin-bottom: 2px; }
.founder .role { color: var(--indigo); font-weight: 600; margin-bottom: 14px; }
.founder p { color: var(--muted); font-size: .97rem; }
.founder .li { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.founder .li svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .page-hero-grid, .story { grid-template-columns: 1fr; }
  .pipeline, .cap-list, .pillars, .founders, .steps3 { grid-template-columns: 1fr; }
  .pipe { border-right: 0; border-bottom: 1px solid var(--line); }
  .steps3 article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
  .roles { grid-template-columns: 1fr; }
  .role-tabs { flex-direction: row; overflow-x: auto; border-left: 0; border-bottom: 2px solid var(--line); scrollbar-width: none; }
  .role-tab { margin: 0 0 -2px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; padding: 12px 14px; font-size: 1rem; }
  .role-tab[aria-selected="true"] { border-bottom-color: var(--indigo); }
  .int-table th { display: block; width: auto; padding-bottom: 8px; }
  .int-table td { display: block; padding-top: 0; }
  .int-table tr { display: block; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .int-table th, .int-table td { border: 0; }
  .hub-node { font-size: .75rem; padding: 6px 10px; }
}

/* Let grid children shrink so wide content (code, tables) scrolls instead of widening the page */
.split > *, .page-hero-grid > *, .hero-grid > *, .story > * { min-width: 0; }
@media (max-width: 700px) {
  .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* Press page */
.press-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-card { background: var(--white); color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 30px 80px rgba(4,7,24,.45); }
.contact-card h3 { margin-bottom: 2px; }
.contact-card .role { color: var(--indigo); font-weight: 600; margin-bottom: 18px; }
.contact-card dl { margin: 0; display: grid; grid-template-columns: 70px 1fr; gap: 10px 12px; }
.contact-card dt { color: var(--muted); font-size: .9rem; }
.contact-card dd { margin: 0; font-weight: 500; }
.boiler { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; position: relative; }
.boiler + .boiler { margin-top: 20px; }
.boiler-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.boiler-head h3 { margin: 0; font-size: 1.1rem; }
.copy-btn { font: inherit; font-size: .85rem; font-weight: 600; color: var(--indigo); background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; }
.copy-btn:hover { border-color: var(--indigo); }
.copy-btn.is-done { background: #E7F6EE; border-color: #9BD3B4; color: #1F6B45; }
.boiler p { margin: 0; color: #3B4459; }
.facts { margin: 0; display: grid; grid-template-columns: 170px 1fr; border-top: 1px solid var(--line); }
.facts dt, .facts dd { margin: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.assets-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.asset { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--white); display: flex; flex-direction: column; }
.asset-preview { height: 190px; display: flex; align-items: center; justify-content: center; padding: 32px; }
.asset-preview img { height: 100%; width: auto; max-width: 85%; object-fit: contain; }
.asset-preview.on-light { background: var(--cloud); }
.asset-preview.on-indigo { background: var(--indigo); }
.asset-preview.on-ink { background: var(--ink); }
.asset-body { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); }
.asset-body strong { font-size: .95rem; }
.asset-links { display: flex; gap: 8px; }
.asset-links a { font-size: .82rem; font-weight: 600; text-decoration: none; border: 1px solid var(--line); border-radius: 6px; padding: 4px 9px; }
.asset-links a:hover { border-color: var(--indigo); }
.photo-slot { aspect-ratio: 4 / 5; border-radius: 14px; background: repeating-linear-gradient(135deg, var(--cloud) 0 14px, #EDF0F8 14px 28px); border: 1px dashed #C9CFE2; display: grid; place-items: center; text-align: center; color: var(--muted); font-size: .9rem; padding: 16px; }
.photo-slot.wide { aspect-ratio: 16 / 9; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-grid figure { margin: 0; }
.photo-grid img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--cloud); }
.photo-grid figcaption { margin-top: 10px; font-weight: 600; }
.photo-grid figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: .9rem; }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.swatch { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.swatch i { display: block; height: 72px; }
.swatch div { padding: 10px 12px; font-size: .85rem; }
.swatch code { font-family: var(--font-mono); color: var(--muted); }
.lang-link { font-weight: 600; font-size: .85rem; border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; }
@media (max-width: 900px) {
  .press-grid, .assets-grid, .photo-grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 900px) {
  .nav-links a.lang-link { align-self: flex-start; margin-top: 14px; padding: 4px 10px; border: 1px solid var(--line); }
}
html[lang="fi"] .hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); }

/* Footer legal links */
.footer .footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; min-width: 0; justify-content: flex-start; }
.footer .footer-legal a { color: #C5CBDD; font-weight: 400; text-decoration: underline; }

/* Where we are (home) */
.status { padding-top: 0; }
.steps-status .big-num { font-size: 1.6rem; }
.status-link { margin: 40px 0 0; }

/* Security & data on dark */
.cap-list-dark { border-top-color: rgba(255,255,255,.15); }
.cap-list-dark .cap { border-bottom-color: rgba(255,255,255,.15); }
.cap-list-dark .cap svg { color: #9FE0F7; }
.cap-list-dark .cap p { color: #D6DBF2; }
.cap-list-dark a { color: var(--white); }
.dark .todo { color: var(--ink); }

/* Contact: book a call */
.contact-actions { margin: 28px 0 0; }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost-light:hover { background: var(--white); color: var(--indigo); box-shadow: none; }

/* Founder group photos (About, Press) */
.group-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.group-photo { margin: 0; }
.group-photo img { display: block; width: 100%; height: auto; border-radius: 14px; }
.group-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.group-photo figcaption a { white-space: nowrap; }
.group-photo-lead { margin-bottom: 40px; }
@media (max-width: 760px) { .group-photos { grid-template-columns: 1fr; } }

/* Product preview: renewal quote (home lifecycle section, EN + FI).
   The markup is the final state. JS adds .is-armed (start state) and .is-playing
   when the window is in view; each row waits for its own --d delay. */
.pv { margin: clamp(56px, 7vw, 88px) auto 0; max-width: 920px; }
.pv-window { background: var(--white); color: var(--ink); border-radius: 14px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 40px 90px rgba(4, 7, 24, .45), 0 0 0 1px rgba(255,255,255,.06); font-size: .92rem; text-align: left; }
.pv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pv .pv-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.pv .pv-meta { margin: 4px 0 0; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.pv-status { flex: none; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: #FFE9DA; color: #8A3D0A; transition: background .4s, color .4s; }
.pv-status[data-state="draft"] { background: #E6E8F6; color: var(--indigo); }
.pv-status[data-state="waiting"] { background: #E1F5FC; color: #0F5E7C; }

.pv-params { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 18px 0 6px; padding: 12px 16px; background: var(--cloud); border: 1px solid var(--line); border-radius: 8px; }
.pv-params div { border-radius: 6px; }
.pv-params dt { font-size: .72rem; color: var(--muted); }
.pv-params dd { margin: 0; font-family: var(--font-mono); font-size: .82rem; font-weight: 500; }

.pv-lines { width: 100%; border-collapse: collapse; margin-top: 6px; }
.pv-lines th { text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #8C93A8; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pv-lines td { padding: 12px 0; border-bottom: 1px solid #EEF1F8; vertical-align: baseline; }
.pv-lines th:nth-child(n+3), .pv-lines td:nth-child(n+3) { text-align: right; }
.pv-lines th:nth-child(n+2), .pv-lines td:nth-child(n+2) { padding-left: 16px; }
.pv-lines td:nth-child(n+2) { font-family: var(--font-mono); font-size: .84rem; white-space: nowrap; }
.pv-old { color: #8C93A8; }
.pv-arrow { display: inline-block; margin: 0 .4em; color: #AAB2C8; }
.pv-new { display: inline-block; font-weight: 600; color: var(--ink); background: #FFF4EC; border-radius: 4px; padding: 1px 5px; }
.pv-ended td { color: #B3B9CB; }
.pv-tag { display: inline-block; font-family: var(--font-body); font-size: .72rem; font-weight: 600; color: var(--muted); background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }

.pv-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 16px; }
.pv-total > span { font-weight: 600; }
.pv-total strong { font-family: var(--font-mono); font-size: 1.2rem; font-weight: 500; white-space: nowrap; }
.pv-total .pv-new { color: var(--indigo); }
.pv .pv-delta { margin: 6px 0 0; font-size: .82rem; color: var(--muted); text-align: right; }
.pv-delta b { font-family: var(--font-mono); font-weight: 600; color: var(--ink); }

.pv-path { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 22px 0 0; padding: 0; }
.pv-path li { position: relative; padding-top: 12px; font-size: .78rem; font-weight: 600; line-height: 1.3; color: #8C93A8; transition: color .4s; }
.pv-path li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); transition: background .4s; }
.pv-path li.is-done { color: var(--ink); }
.pv-path li.is-done::before { background: var(--indigo); }
.pv-path li.is-current { color: #8A3D0A; }
.pv-path li.is-current::before { background: var(--orange); }

.pv-caption { margin-top: 20px; text-align: center; }
.pv .pv-caption p { margin: 0 auto; max-width: 44em; font-size: .92rem; color: #C9D0EC; text-wrap: balance; }
.pv-foot { display: flex; justify-content: center; align-items: center; gap: 14px; }
.pv .pv-foot, .record .pv-foot { margin-top: 10px; font-size: .8rem; color: #9FA9CF; }
.pv-replay { font: inherit; font-weight: 600; font-size: .8rem; color: var(--white); cursor: pointer; background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 4px 12px; }
.pv-replay:hover { border-color: var(--cyan); color: var(--cyan); }
.pv-replay[hidden] { display: none; }

.pv.is-armed .pv-arrow, .pv.is-armed .pv-new, .pv.is-armed .pv-tag, .pv.is-armed .pv-delta { opacity: 0; }
.pv.is-armed .pv-arrow, .pv.is-armed .pv-new { transform: translateX(-6px); }
.pv.is-armed .pv-old, .pv.is-armed .pv-ended td { color: var(--ink); }
.pv.is-playing .pv-arrow, .pv.is-playing .pv-new, .pv.is-playing .pv-tag, .pv.is-playing .pv-delta { opacity: 1; transform: none; transition: opacity .5s ease var(--d, 0s), transform .5s ease var(--d, 0s); }
.pv.is-playing .pv-old { color: #8C93A8; transition: color .5s ease var(--d, 0s); }
.pv.is-playing .pv-ended td { color: #B3B9CB; transition: color .5s ease var(--d, 0s); }
.pv.is-playing .pv-key { animation: pv-key 1.8s ease .4s both; }
@keyframes pv-key { 0%, 100% { background: transparent; } 25%, 70% { background: #FFF4EC; box-shadow: -8px 0 0 #FFF4EC, 8px 0 0 #FFF4EC; } }

@media (max-width: 680px) {
  .pv-head { flex-direction: column-reverse; gap: 10px; }
  .pv-params { flex-direction: column; gap: 8px; }
  .pv-lines thead { display: none; }
  .pv-lines, .pv-lines tbody, .pv-lines tr, .pv-lines td { display: block; }
  .pv-lines tr { padding: 10px 0; border-bottom: 1px solid #EEF1F8; }
  .pv-lines td, .pv-lines td:nth-child(n+2) { padding: 3px 0; border: 0; text-align: right; }
  .pv-lines td::before { content: attr(data-label); float: left; font-family: var(--font-body); font-size: .74rem; line-height: 1.9; color: #8C93A8; }
  .pv-lines td:first-child { text-align: left; font-weight: 600; }
  .pv-lines td:first-child::before { content: none; }
  .pv-total { flex-direction: column; gap: 2px; }
  .pv .pv-delta { text-align: left; }
  .pv-path { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .charges { grid-template-columns: 76px 1fr; column-gap: 10px; }
  .charge-label { font-size: 0; }
  .charge-label::before { content: attr(data-short); font-size: .72rem; }
}

/* Product preview gallery (product page): screens with demo data.
   Without JS every screen shows in a column; with JS they become tabs. */
.shot-tabs { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.js .shot-tabs { display: flex; }
.shot-tabs button { font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.shot-tabs button:hover { color: var(--indigo); border-color: var(--indigo); }
.shot-tabs button[aria-selected="true"] { color: var(--white); background: var(--indigo); border-color: var(--indigo); }
.shot-panel { margin: 0; }
.shot-panel + .shot-panel { margin-top: 48px; }
.js .shot-panel + .shot-panel { margin-top: 0; }
.shot-panel[hidden] { display: none; }
.shot-panel.shot-single { margin-top: clamp(48px, 6vw, 72px); }
.shot-panel.is-entering { animation: panel-in .45s cubic-bezier(.2,.8,.2,1); }
.shot-frame { background: var(--cloud); border: 1px solid var(--line); border-radius: 16px; padding: clamp(8px, 1.6vw, 18px); }
.shot-frame a { display: block; border-radius: 10px; }
.shot-frame a:hover img { box-shadow: 0 1px 2px rgba(23, 32, 51, .08), 0 16px 40px rgba(23, 32, 51, .16); }
.shot-frame img { width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 2px rgba(23, 32, 51, .08), 0 12px 32px rgba(23, 32, 51, .10); }
.shot-panel figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 16px; }
.shot-panel figcaption p { margin: 0; color: #3B4459; max-width: 46em; }
.shot-panel .shot-label { flex: none; font-size: .85rem; color: var(--muted); }
@media (max-width: 680px) {
  .shot-panel figcaption { flex-direction: column; gap: 6px; }
}

/* AI & Agents: five ways to set a rule (#rule-sources).
   Without JS every source pane is listed; with JS they share one slot and play in turn. */
.rs-window { background: var(--white); border-radius: 10px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 1px 2px rgba(23, 32, 51, .08), 0 12px 32px rgba(23, 32, 51, .10); font-size: .92rem; }
.rs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.rs .rs-title { margin: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.rs .rs-meta { margin: 4px 0 0; font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.rs-status { flex: none; font-size: .75rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; white-space: nowrap; background: #E2F6EA; color: #17643A; transition: background .4s, color .4s; }
.rs-status[data-state="draft"] { background: #E6E8F6; color: var(--indigo); }
.rs-status[data-state="testing"] { background: #E1F5FC; color: #0F5E7C; }

.rs-body { display: grid; grid-template-columns: minmax(200px, 250px) 1fr; gap: clamp(16px, 3vw, 32px); padding: 20px 0; }
.rs-methods { display: flex; flex-direction: column; gap: 4px; }
.rs-method { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: .88rem; font-weight: 600; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 8px; padding: 9px 10px; cursor: pointer; transition: background .3s, color .3s, border-color .3s; }
.rs-method:hover { color: var(--ink); background: var(--cloud); }
.rs-method[aria-selected="true"] { color: var(--ink); background: #FFF4EC; border-color: #FFD6BA; }
.rs-n { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-family: var(--font-mono); font-size: .75rem; color: var(--indigo); background: #E6E8F6; transition: background .3s, color .3s; }
.rs-method[aria-selected="true"] .rs-n { background: var(--orange); color: var(--ink); }

.rs-panes { min-width: 0; }
.rs-pane { min-width: 0; }
.rs-pane + .rs-pane { margin-top: 20px; }
.js .rs-panes { display: grid; }
.js .rs-pane { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s; }
.js .rs-pane.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .35s ease .1s, transform .35s ease .1s, visibility 0s; }
.rs .rs-label { margin: 0 0 8px; font-size: .72rem; font-weight: 600; letter-spacing: .04em; color: #8C93A8; display: flex; justify-content: space-between; gap: 12px; }
.rs .rs-input { margin: 0; min-height: 4.6em; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--cloud); color: var(--ink); }
.rs-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: text-bottom; background: var(--indigo); opacity: 0; }
.rs.is-typing .rs-caret { opacity: 1; animation: rs-blink 1s steps(1) infinite; }
@keyframes rs-blink { 50% { opacity: 0; } }
.rs .rs-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.rs-file { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); font-size: .84rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.rs-ext { flex: none; font-family: var(--font-mono); font-size: .66rem; font-weight: 600; padding: 2px 5px; border-radius: 4px; color: var(--white); }
.rs-pdf { background: #C2412D; }
.rs-xls { background: #1D7044; }
.rs-url { font-family: var(--font-mono); font-weight: 500; color: var(--indigo); }
.rs-url::before { content: ""; width: 10px; height: 10px; border: 2px solid currentColor; border-radius: 50%; }
.rs-quote { margin: 0; padding: 10px 14px; border-left: 3px solid var(--cyan); background: var(--cloud); border-radius: 0 8px 8px 0; color: #3B4459; }
.rs-ref { display: block; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); margin-bottom: 2px; }
.rs-quote mark { background: #FFF0E3; color: var(--ink); border-radius: 3px; padding: 0 2px; }
.rs .rs-chat { margin: 0 0 8px; max-width: 34em; padding: 9px 13px; border-radius: 12px; line-height: 1.5; }
.rs-chat b { display: block; font-size: .72rem; color: var(--muted); }
.rs .rs-you { margin-left: auto; background: #E6E8F6; color: var(--ink); border-bottom-right-radius: 4px; }
.rs .rs-ai { background: var(--cloud); border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.rs-code { margin: 0; padding: 12px 14px; border-radius: 8px; background: var(--ink); color: #DDE3F7; font-family: var(--font-mono); font-size: .8rem; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.rs-code .k { color: #9FE0F7; }
.rs-code .s { color: #FFC49C; }

.rs-rule { padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--cloud); }
.rs-src { font-weight: 400; letter-spacing: 0; color: var(--muted); }
.rs-src b { font-weight: 600; color: var(--ink); }
.rs .rs-logic { margin: 0; font-size: .98rem; color: var(--ink); line-height: 1.7; }
.rs-kw { font-family: var(--font-mono); font-size: .8rem; font-weight: 600; color: var(--indigo); text-transform: uppercase; }
.rs-logic em { white-space: nowrap; font-style: normal; font-weight: 600; background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.rs-logic strong { color: #8A3D0A; }
.rs .rs-test { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-size: .84rem; color: #17643A; transition: opacity .4s ease; }
.rs-check { flex: none; width: 16px; height: 16px; border-radius: 50%; background: #2E9E5B; position: relative; }
.rs-check::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rs.is-armed .rs-test { opacity: 0; }
.rs-rule.is-updated { animation: rs-flash 1.1s ease; }
@keyframes rs-flash { 0% { box-shadow: 0 0 0 0 rgba(53, 184, 232, .55); } 100% { box-shadow: 0 0 0 10px rgba(53, 184, 232, 0); } }
.rs-replay { margin-left: 10px; font: inherit; font-size: .8rem; font-weight: 600; color: var(--indigo); cursor: pointer; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; }
.rs-replay:hover { border-color: var(--indigo); }
.rs-replay[hidden] { display: none; }

@media (max-width: 760px) {
  .rs-head { flex-direction: column-reverse; gap: 10px; }
  .rs-body { grid-template-columns: 1fr; }
  .rs-methods { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .rs-method { width: auto; padding: 6px 10px 6px 6px; font-size: .8rem; gap: 7px; border-color: var(--line); }
  .rs-n { width: 20px; height: 20px; font-size: .7rem; }
}

/* AI & Agents: insight agent answers with a chart (#insight).
   The markup is the final state; .is-armed hides the steps, .is-asked / .is-answering / .is-done reveal them. */
.ai-insight { margin-bottom: clamp(40px, 5vw, 64px); }
.ai-window { background: var(--white); border-radius: 10px; padding: clamp(16px, 3vw, 32px); box-shadow: 0 1px 2px rgba(23, 32, 51, .08), 0 12px 32px rgba(23, 32, 51, .10); font-size: .92rem; }
.ai-ask { display: flex; justify-content: flex-end; }
.ai-insight .ai-bubble { margin: 0; max-width: 30em; padding: 10px 14px; border-radius: 12px 12px 4px 12px; background: #E6E8F6; color: var(--ink); }
.ai-bubble b, .ai-insight .ai-who { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); }
.ai-caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--indigo); opacity: 0; }
.ai-insight.is-typing .ai-caret { opacity: 1; animation: rs-blink 1s steps(1) infinite; }
.ai-answer { display: grid; grid-template-columns: 34px 1fr; gap: 12px; margin-top: 16px; }
.ai-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--indigo); color: var(--white); font-size: .72rem; font-weight: 700; }
.ai-card { min-width: 0; padding: 14px 18px 16px; border: 1px solid var(--line); border-radius: 4px 12px 12px 12px; background: var(--white); }
.ai-insight .ai-who { margin: 0 0 6px; display: flex; align-items: center; gap: 8px; }
.ai-dots { display: none; gap: 3px; }
.ai-dots i { width: 5px; height: 5px; border-radius: 50%; background: #AAB2C8; animation: ai-dot 1s ease-in-out infinite; }
.ai-dots i:nth-child(2) { animation-delay: .15s; }
.ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ai-dot { 0%, 100% { opacity: .3; transform: none; } 50% { opacity: 1; transform: translateY(-2px); } }
.ai-insight.is-asked:not(.is-answering) .ai-dots { display: inline-flex; }

.ai-insight .ai-chart-title { margin: 0 0 14px; font-weight: 700; color: var(--ink); }
.ai-chart { display: grid; grid-template-columns: auto 1fr auto; column-gap: 14px; row-gap: 12px; align-items: center; position: relative; padding-top: 22px; }
.ai-row { display: contents; }
.ai-region, .ai-track, .ai-val { grid-row: var(--r); }
.ai-region { grid-column: 1; font-size: .86rem; color: #3B4459; white-space: nowrap; }
.ai-track { grid-column: 2; height: 22px; background: var(--cloud); border-radius: 4px; overflow: hidden; }
.ai-bar { display: block; height: 100%; width: calc(var(--v) * 10%); background: var(--indigo); border-radius: 4px; }
.ai-row.is-top .ai-bar { background: var(--orange); }
.ai-val { grid-column: 3; font-family: var(--font-mono); font-size: .86rem; font-weight: 500; color: var(--ink); text-align: right; min-width: 3.6em; }
.ai-target { grid-column: 2; grid-row: 1 / span 4; align-self: stretch; position: relative; pointer-events: none; margin-top: -22px; }
.ai-target::before { content: ""; position: absolute; left: 50%; top: 18px; bottom: -4px; border-left: 2px dashed var(--ink); opacity: .55; }
.ai-target span { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-family: var(--font-mono); font-size: .7rem; color: var(--muted); white-space: nowrap; }
.ai-insight .ai-text { margin: 18px 0 0; color: var(--ink); max-width: 46em; }
.ai-text b { font-family: var(--font-mono); font-weight: 600; color: #8A3D0A; }
.ai-insight .ai-source { margin: 8px 0 0; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.ai-insight .ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.ai-chips span { font-size: .8rem; font-weight: 600; color: var(--indigo); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }

.ai-insight.is-armed .ai-answer { opacity: 0; transform: translateY(8px); }
.ai-insight.is-armed .ai-reply > * { opacity: 0; }
.ai-insight.is-armed .ai-bar { width: 0; }
.ai-insight.is-armed.is-asked .ai-answer { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
.ai-insight.is-armed.is-answering .ai-chart-title, .ai-insight.is-armed.is-answering .ai-chart { opacity: 1; transition: opacity .4s ease; }
.ai-insight.is-armed.is-answering .ai-bar { width: calc(var(--v) * 10%); transition: width 1s cubic-bezier(.2,.8,.2,1) calc(.3s + var(--d, 0s)); }
.ai-insight.is-armed .ai-target { opacity: 0; }
.ai-insight.is-armed.is-answering .ai-target { opacity: 1; transition: opacity .5s ease 1.6s; }
.ai-insight.is-armed.is-done .ai-reply > * { opacity: 1; transition: opacity .5s ease; }
.ai-insight.is-armed.is-done .ai-source { transition-delay: .4s; }
.ai-insight.is-armed.is-done .ai-chips { transition-delay: .8s; }

@media (max-width: 560px) {
  .ai-answer { grid-template-columns: 1fr; }
  .ai-avatar { display: none; }
  .ai-card { padding: 12px 14px 14px; }
  .ai-chart { column-gap: 10px; }
  .ai-region { font-size: .8rem; }
}

/* Solutions: role panels with intro, benefits and an illustrative vignette.
   Rows tick in one by one when a panel opens (.is-entering); the markup is the final state. */
.role-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.role-panel[hidden] { display: none; }
.role-panel .role-intro { margin: 14px 0 0; color: #3B4459; max-width: 34em; }
.role-benefits { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--line); }
.role-benefits li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.role-benefits strong { display: block; color: var(--ink); font-weight: 600; }
.role-benefits span { display: block; font-size: .92rem; color: var(--muted); margin-top: 2px; }
.role-vignette { margin: 0; align-self: center; }
.rv-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 12px 28px rgba(23, 32, 51, .08); }
.role-vignette .rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; font-size: .82rem; font-weight: 600; color: var(--ink); }
.rv-pill { flex: none; font-size: .72rem; padding: 3px 9px; border-radius: 999px; background: #E2F6EA; color: #17643A; white-space: nowrap; }
.rv-rows { list-style: none; margin: 0; padding: 0; }
.rv-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-top: 1px solid #EEF1F8; font-size: .86rem; color: #3B4459; }
.rv-icon { flex: none; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; position: relative; }
.rv-ok .rv-icon { background: #2E9E5B; }
.rv-ok .rv-icon::after { content: ""; position: absolute; left: 5px; top: 2.5px; width: 4px; height: 8px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.rv-info .rv-icon { background: var(--indigo); }
.rv-info .rv-icon::after { content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--white); }
.role-vignette figcaption { margin-top: 8px; font-size: .75rem; color: var(--muted); text-align: right; }
.role-panel.is-entering .rv-row, .role-panel.is-entering .rv-pill { animation: rv-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(.35s + var(--i) * .32s); }
@keyframes rv-in { from { opacity: 0; transform: translateX(-8px); } }
@media (max-width: 1100px) { .role-panel { grid-template-columns: 1fr; } .role-vignette { max-width: 460px; } }

/* Solutions: NRR waterfall (#nrr). Markup is the final state ("every increase applied"). */
.nrr { margin: 0; }
.nrr-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 16px 40px rgba(23, 32, 51, .08); }
.nrr-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.nrr .nrr-title { margin: 0; font-weight: 700; color: var(--ink); }
.nrr-toggle { display: inline-flex; background: var(--cloud); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.nrr-toggle button { font: inherit; font-size: .8rem; font-weight: 600; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 6px 12px; cursor: pointer; transition: background .3s, color .3s; }
.nrr-toggle button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(23, 32, 51, .15); }
.nrr-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: clamp(20px, 4vw, 40px); align-items: center; }
.nrr-chart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(6px, 1.4vw, 16px); padding-top: 18px; }
.nrr-col { display: flex; flex-direction: column; min-width: 0; }
.nrr-plot { position: relative; height: 260px; border-bottom: 1px solid var(--line); }
.nrr-bar { position: absolute; left: 8%; right: 8%; border-radius: 4px; background: var(--indigo); transition: bottom .7s cubic-bezier(.2,.8,.2,1), height .7s cubic-bezier(.2,.8,.2,1), background .4s; transition-delay: var(--d, 0s); }
.nrr-price .nrr-bar { background: var(--orange); }
.nrr-exp .nrr-bar { background: var(--cyan); }
.nrr-con .nrr-bar, .nrr-churn .nrr-bar { background: #C9CEDD; }
.nrr-val { position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -4px); font-family: var(--font-mono); font-size: .74rem; font-weight: 500; color: var(--ink); white-space: nowrap; transition: opacity .4s; }
.nrr-con .nrr-val, .nrr-churn .nrr-val { bottom: auto; top: 100%; transform: translate(-50%, 4px); color: var(--muted); }
.nrr-cat { margin-top: 8px; font-size: .76rem; line-height: 1.3; color: var(--muted); text-align: center; }
.nrr-readout { border-left: 1px solid var(--line); padding-left: clamp(16px, 3vw, 28px); }
.nrr .nrr-label { margin: 0; font-size: .8rem; font-weight: 600; color: var(--muted); }
.nrr .nrr-num { margin: 4px 0 0; font-family: var(--font-mono); font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 500; line-height: 1.1; color: var(--indigo); }
.nrr .nrr-five { margin: 14px 0 0; font-size: .9rem; color: #3B4459; transition: opacity .5s; }
.nrr-five b { color: #8A3D0A; }
.nrr .nrr-axis { margin: 14px 0 0; font-size: .72rem; color: var(--muted); }
.nrr figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 16px; }
.nrr figcaption p { margin: 0; color: #3B4459; max-width: 46em; font-size: .92rem; }
.nrr.is-armed .nrr-val, .nrr.is-armed .nrr-five { opacity: 0; }
.nrr.is-armed .nrr-val.is-on, .nrr.is-armed .nrr-five.is-on { opacity: 1; }
.cap .lever-metrics { margin-top: 8px; font-family: var(--font-mono); font-size: .76rem; color: var(--indigo); }
.lever-note { margin: 24px 0 0; color: var(--muted); max-width: 46em; }
@media (max-width: 760px) {
  .nrr-body { grid-template-columns: 1fr; }
  .nrr-readout { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; }
  .nrr-plot { height: 200px; }
  .nrr-val { font-size: .6rem; }
  .nrr-cat { font-size: .64rem; }
  .nrr figcaption { flex-direction: column; gap: 6px; }
}

/* NRR readout: the SuperCPQ levers tick in one by one */
@media (min-width: 761px) { .nrr-body { grid-template-columns: minmax(0, 1fr) 270px; } }
.nrr-steps { list-style: none; margin: 14px 0 0; padding: 0; }
.nrr-steps li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0 7px 22px; border-top: 1px solid #EEF1F8; font-size: .82rem; line-height: 1.35; color: #AAB2C8; position: relative; transition: color .4s; }
.nrr-steps li::before { content: ""; position: absolute; left: 0; top: 9px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #D5DAE8; box-sizing: border-box; transition: background .4s, border-color .4s; }
.nrr-steps li b { flex: none; font-family: var(--font-mono); font-weight: 500; }
.nrr-steps li.is-on { color: var(--ink); }
.nrr-steps li.is-on b { color: #17643A; }
.nrr-steps li.is-on::before { background: #2E9E5B; border-color: #2E9E5B; }

/* NRR chart: seven bars; short labels on phones */
.nrr-chart { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nrr-leak .nrr-bar { background: #FFC49C; }
.nrr-short { display: none; }
@media (max-width: 760px) {
  .nrr-long { display: none; }
  .nrr-short { display: inline; }
  .nrr-chart { gap: 4px; }
  .nrr-bar { left: 4%; right: 4%; }
  .nrr-cat { font-size: .6rem; hyphens: manual; }
  /* Middle values are listed in the readout below, so phones show only start and end */
  .nrr-price .nrr-val, .nrr-leak .nrr-val, .nrr-exp .nrr-val, .nrr-con .nrr-val, .nrr-churn .nrr-val { display: none; }
}

/* Contact: design partner measures */
.partner-measure { margin-top: clamp(32px, 4vw, 48px); padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.partner-measure-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 40px; align-items: baseline; }
.partner-measure-head h3 { margin: 0; }
.partner-measure-head p { margin: 0; color: var(--muted); }
.measure-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.measure-list li { padding-top: 14px; border-top: 2px solid var(--indigo); }
.measure-n { display: block; font-family: var(--font-mono); font-size: .78rem; color: var(--indigo); }
.measure-list strong { display: block; margin-top: 6px; color: var(--ink); }
.measure-list li > span:last-child { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.measure-note { margin: 20px 0 0; font-size: .9rem; color: var(--muted); }
@media (max-width: 1000px) { .measure-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .partner-measure-head { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .measure-list { grid-template-columns: 1fr; } }

/* Solutions: metric board */
.metric-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.metric-group { background: var(--cloud); border: 1px solid var(--line); border-radius: 16px; padding: clamp(20px, 3vw, 32px); }
.metric-group-name { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 700; color: var(--indigo); }
.metric-group-name svg { width: 22px; height: 22px; flex: none; }
.metric-group ul { list-style: none; margin: 0; padding: 0; }
.metric-group li { padding: 12px 0; border-top: 1px solid var(--line); }
.metric-group strong { display: block; color: var(--ink); }
.metric-group li span { display: block; margin-top: 2px; font-size: .92rem; color: var(--muted); }
@media (max-width: 760px) { .metric-board { grid-template-columns: 1fr; } }

/* Home: growth line under the renewal preview */
.growth-line { margin: clamp(40px, 5vw, 64px) auto 0; max-width: 40em; text-align: center; font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.4; font-weight: 600; color: var(--white); text-wrap: balance; }
.growth-line a { display: block; margin-top: 12px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: #9FE0F7; }
.growth-line a::after { content: " →"; }

/* Product: customer document generated from the vendor's Word template (#docfx).
   The paper is sized in em and scales with its column, like a printed page. */
.docfx { margin: 0 auto; max-width: 680px; }
.docs-split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.docs-split .docfx { max-width: none; width: 100%; }
.docs-split .checks { margin-top: 20px; }
.docfx-bar { display: flex; justify-content: center; align-items: center; gap: 8px; margin-bottom: 14px; min-height: 30px; }
.docfx-state { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; }
.docfx-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E5B; transition: background .3s; }
.docfx-state[data-step="template"]::before { background: #AAB2C8; }
.docfx-state[data-step="filling"]::before { background: var(--cyan); }
.docfx-stage { container-type: inline-size; background: linear-gradient(180deg, #E4E8F2, #D5DBE9); border-radius: 16px; padding: clamp(14px, 3.5vw, 36px) clamp(10px, 4vw, 48px); perspective: 1600px; }
.doc { --acc: #0E5E5A; --acc-soft: #E7F1EF; font-size: clamp(5px, 1.45cqw, 9px); line-height: 1.5; color: var(--ink); background: #fff; padding: 4.4em 5em 3.4em; border-radius: 3px; box-shadow: 0 2px 4px rgba(23, 32, 51, .08), 0 24px 60px rgba(23, 32, 51, .18); text-align: left; transform-origin: 50% 0; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.doc-num { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.doc-head { display: flex; justify-content: space-between; align-items: flex-start; }
.doc-brand { display: flex; align-items: center; gap: .6em; font-weight: 700; font-size: 1.5em; letter-spacing: -.01em; }
.doc-brand svg { width: 1.75em; height: 1.75em; }
.doc-ref { text-align: right; color: var(--muted); font-size: .92em; line-height: 1.65; }
.doc-ref b { color: var(--ink); font-weight: 600; }
.doc .doc-title { margin: 2.6em 0 .2em; font-size: 2.25em; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; color: var(--ink); }
.doc .doc-sub { margin: 0; color: var(--muted); font-size: 1.08em; }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; margin-top: 2.2em; padding: 1.4em 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc h4 { margin: 0 0 .4em; font-size: .82em; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.doc p { margin: 0; font-size: 1em; color: inherit; max-width: none; }
.doc-parties strong { font-size: 1.08em; }
.doc-figs { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: .7em; overflow: hidden; margin-top: 1.9em; }
.doc-figs > div { background: #fff; padding: 1em 1.2em; }
.doc-figs > div:first-child { background: var(--acc); color: #fff; }
.doc-figs span { display: block; font-size: .82em; color: var(--muted); }
.doc-figs > div:first-child span { color: rgba(255, 255, 255, .75); }
.doc-figs b { display: block; margin-top: .25em; font-size: 1.2em; font-weight: 600; }
.doc-figs > div:first-child b { font-size: 1.65em; }
.doc-figs small { display: block; margin-top: .2em; font-size: .82em; color: rgba(255, 255, 255, .82); }
.doc .doc-h { margin: 2.2em 0 .7em; font-size: 1.08em; letter-spacing: 0; text-transform: none; color: var(--ink); }
.doc-lines { width: 100%; border-collapse: collapse; font-size: 1em; }
.doc-lines th { text-align: left; font-size: .82em; font-weight: 600; color: var(--muted); padding: 0 .7em .6em; border-bottom: 1.5px solid var(--ink); font-family: inherit; }
.doc-lines td { padding: .85em .7em; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-lines th:first-child, .doc-lines td:first-child { padding-left: 0; }
.doc-lines th:last-child, .doc-lines td:last-child { padding-right: 0; }
.doc .r { text-align: right; white-space: nowrap; }
.doc-note { display: block; margin-top: .15em; color: var(--muted); font-size: .87em; font-family: inherit; }
.doc s { color: var(--muted); font-size: .87em; margin-right: .25em; }
.doc-chip { display: inline-block; margin-top: .2em; padding: .05em .5em; border-radius: .35em; background: var(--acc-soft); color: var(--acc); font-size: .82em; font-weight: 600; font-family: var(--font-body, inherit); }
.doc-ended td { color: var(--muted); }
.doc-tot td { border-bottom: 0; padding-top: 1em; font-weight: 600; }
.doc-tot td:last-child { font-size: 1.3em; }
.doc-sub-tot td { padding-top: .1em; border-bottom: 0; color: var(--muted); }
.doc-changes { margin-top: 1.5em; padding: 1em 1.4em; background: var(--cloud); border-radius: .7em; }
.doc .doc-changes-h { margin-bottom: .35em; font-weight: 600; font-size: .96em; }
.doc-changes dl { display: grid; grid-template-columns: auto 1fr; gap: .3em 1.6em; margin: 0; }
.doc-changes dt { color: var(--muted); font-weight: 400; }
.doc-changes dd { margin: 0; }
.doc .doc-legal { margin-top: 1.5em; color: var(--muted); font-size: .82em; line-height: 1.55; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 2.8em; margin-top: 2.2em; }
.doc-sign > div { border-top: 1px solid var(--ink); padding-top: .5em; font-size: .87em; color: var(--muted); }
.doc-sign b { display: block; color: var(--ink); font-size: 1.1em; font-weight: 600; }
.doc-stamp { display: inline-block; margin-top: .3em; font-family: var(--font-mono); font-size: .95em; color: var(--acc); transition: opacity .5s, transform .5s; }
.doc-foot { display: flex; justify-content: space-between; margin-top: 1.6em; padding-top: .9em; border-top: 1px solid var(--line); font-size: .78em; color: #8A92A6; }
.docfx figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 16px; }
.docfx figcaption p { margin: 0; color: #3B4459; max-width: 46em; font-size: .92rem; }
.docfx figcaption .shot-label { flex: none; font-size: .85rem; color: var(--muted); }

/* Animation: the template fields are shown first, then filled from the quote */
.docfx.is-armed .doc { transform: rotateX(14deg) translateY(24px) scale(.96); opacity: .4; }
.docfx.is-armed.is-in .doc { transform: none; opacity: 1; }
.doc .df { transition: background .5s, color .5s; border-radius: .25em; }
.doc .df.is-tpl { font-family: var(--font-mono); font-weight: 500; font-size: .86em; color: #6B5BD2; background: #F0EEFC; padding: 0 .3em; text-decoration: none; }
.doc .df.is-tpl s, .doc .df.is-tpl .doc-chip { display: none; }
.doc .df.is-new { background: #FFF1D6; }
.doc td.df.is-tpl { background: none; }
.doc .doc-note.df.is-tpl { display: table; }
.doc-figs .df.is-tpl { color: #fff; background: rgba(255, 255, 255, .16); }
.docfx.is-armed .doc-stamp { opacity: 0; transform: translateY(4px); }
.docfx.is-armed .doc-stamp.is-on { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .docs-split { grid-template-columns: 1fr; }
  .docs-split .docfx { max-width: 680px; }
}
@media (max-width: 760px) {
  .docfx figcaption { flex-direction: column; gap: 6px; }
}
