/* Paragraf – public website. Tokens follow the Brand Book, Edition V
   (build/lib.py and 08-former-och-farger.md). Always light. */

@font-face { font-family: "PDisplay"; src: url("../fonts/ParagrafDisplay-Medium.woff2") format("woff2"), url("../fonts/ParagrafDisplay-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
/* Display Medium still draws the logo's f and p-with-dot: until the font is fixed, f and p in headlines come from Sans Medium (Brand Book 6). */
@font-face { font-family: "PDisplay"; src: url("../fonts/ParagrafSans-Medium.woff2") format("woff2"), url("../fonts/ParagrafSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; unicode-range: U+0066, U+0070; }
@font-face { font-family: "PSans"; src: url("../fonts/ParagrafSans-Light.woff2") format("woff2"), url("../fonts/ParagrafSans-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "PSans"; src: url("../fonts/ParagrafSans-Regular.woff2") format("woff2"), url("../fonts/ParagrafSans-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PSans"; src: url("../fonts/ParagrafSans-Medium.woff2") format("woff2"), url("../fonts/ParagrafSans-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PSans"; src: url("../fonts/ParagrafSans-SemiBold.woff2") format("woff2"), url("../fonts/ParagrafSans-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PMono"; src: url("../fonts/JetBrainsMono-Regular.woff2") format("woff2"), url("../fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0D0D0C; --graphite: #3A3936; --slate: #55534F; --muted: #716D66; /* darkened from #8E8A82 for 4.5:1 contrast (WCAG AA) */
  --hair: #E4E1DA; --mist: #F5F5F3; --paper: #FAF8F5; --white: #FFFFFF;
  /* the 700 step of each product tone – they always mean an object, never decoration */
  --obl: #6D28D9; --wf: #1D4ED8; --prc: #0A6673; --frm: #016A63;
  --pad: 16px;            /* one margin on all sides: 16 px on phones, 24 px from sm */
  --nav-h: 64px;
  --max: 1440px;
  --r-card: 24px; --r-photo: 14px; --r-field: 12px;
  --display: "PDisplay", "PSans", system-ui, sans-serif;
  --sans: "PSans", Inter, system-ui, -apple-system, sans-serif;
  --mono: "PMono", ui-monospace, monospace;
}
@media (min-width: 640px) { :root { --pad: 24px; --nav-h: 72px; } }
@media (min-width: 1024px) { :root { --pad: 48px; } }
@media (min-width: 1280px) { :root { --pad: 96px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.skip { position: absolute; left: var(--pad); top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 12px; }

/* --- shared pieces ---------------------------------------------------- */
.eyebrow { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; color: var(--slate); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); flex: none; margin-top: calc(0.7em - 4px); }
.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.04; margin-top: 20px; }
.lead { font-weight: 300; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--slate); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background .2s; }
.btn:hover { background: var(--graphite); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.link span { border-bottom: 1px solid var(--hair); padding-bottom: 2px; transition: border-color .2s; }
.link:hover span { border-color: var(--ink); }
.example { display: inline-block; font-size: 11.5px; line-height: 1; color: var(--slate); background: var(--white); border: 1px solid var(--hair); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.section { padding-block: clamp(80px, 10vw, 152px); }
.rule { border: 0; border-top: 1px solid var(--hair); margin: 0; }

/* --- navigation ------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--hair); }
.nav-in { height: var(--nav-h); display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; min-height: 44px; flex: none; }
.logo img { height: 26px; width: auto; }
.logo-svg { display: block; height: 26px; width: auto; aspect-ratio: 3.996; color: var(--ink); }
@media (min-width: 640px) { .logo-svg { height: 30px; } }
.nav-links { display: none; list-style: none; margin: 0 auto; padding: 0; gap: 4px; }
.nav-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 14.5px; color: var(--graphite); text-decoration: none; border-radius: 999px; transition: background .2s, color .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(13,13,12,.04); }
.nav-cta { display: none; }
.menu-btn { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: none; border-radius: 999px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 22px; height: 22px; }
.menu { display: none; border-top: 1px solid var(--hair); padding: 8px var(--pad) 24px; background: var(--white); }
.menu.open { display: block; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; overscroll-behavior: contain; }
.menu a:not(.btn) { display: flex; align-items: center; min-height: 52px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.menu .btn { margin-top: 20px; width: 100%; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-btn, .menu, .menu.open { display: none; }
}

/* --- hero: the person carries the surface (Brand Book 10.3) ------------- */
.hero { position: relative; overflow: hidden; }
.hero-in { position: relative; display: grid; }
.hero-copy { position: relative; z-index: 2; padding-top: 40px; }
.hero h1 { font-size: clamp(36px, 10vw, 72px); line-height: 1.02; margin-top: 22px; }
.hero-si { margin-top: 24px; max-width: 26em; font-family: var(--display); font-weight: 500; font-size: clamp(19px, 1.7vw, 24px); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.hero .lead { margin-top: 16px; max-width: 30em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
/* She stands on the page's own white: no frame. Her body is cut at the hero's bottom edge (06 Beskärning). */
.hero-figure { margin: 24px calc(var(--pad) * -1) 0; }
.hero-figure img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 60% 0; mix-blend-mode: multiply; } /* the studio white melts into the page */
/* Luis as a ball floating in front of her phone (aura.js drawGlobe). Positions are shares of the square photo. */
.hero-figure { position: relative; }
.hero-luis { position: absolute; left: 81.5%; top: 54.5%; width: 12%; aspect-ratio: 1; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
/* Mobile hero: tighter rhythm, one full-width action, the starting points as one swipeable row */
@media (max-width: 639px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { padding-top: 28px; min-width: 0; }
  .hero h1 { margin-top: 0; text-wrap: balance; }
  .hero .lead { margin-top: 16px; font-size: 17px; text-wrap: pretty; }
  .hero-cta { margin-top: 28px; flex-direction: column; align-items: stretch; gap: 4px; }
  .hero-cta .btn { width: 100%; min-height: 52px; }
  .hero-cta .link { align-self: center; }
  .hero-cta + .hero-start { margin-top: 16px; }
  .hero-start .starts-list { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad) 4px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .hero-start .starts-list::-webkit-scrollbar { display: none; }
  .hero-start .starts-list li { flex: none; scroll-snap-align: start; }
  .hero-start .starts-list a { font-size: 14px; padding: 0 14px; white-space: nowrap; }
  .hero-start .starts-list li.hs-more { padding-right: var(--pad); }
  .hero-figure { margin-top: 16px; }
}
@media (min-width: 640px) and (max-width: 1199px) {
  .hero-figure { margin-left: 18%; }
}
@media (min-width: 1200px) {
  .hero-in { min-height: clamp(640px, calc(100svh - var(--nav-h)), 960px); align-items: center; }
  .hero-copy { padding: 48px 0 96px; max-width: 54%; }
  .hero h1 { font-size: clamp(48px, 5vw, 72px); white-space: nowrap; }
  .hero .lead { max-width: 27em; }
  .hero-figure { position: absolute; z-index: 1; margin: 0; right: 0; bottom: 0; height: min(calc(100% - 16px), 56vw); width: auto; aspect-ratio: 1; }
  .hero-figure img { height: 100%; width: auto; }
}

/* customers: the Brand Book shows placeholder names, marked as an example until real cases exist */
.customers { border-top: 1px solid var(--hair); }
.customers .wrap { display: grid; gap: 16px; padding-block: 28px 32px; }
.customers-h { font-family: var(--sans); font-weight: 400; font-size: 13.5px; letter-spacing: 0; color: var(--slate); }
/* references set as one even row in the brand's own type – no mixed third-party marks (Brand Book 10.3) */
.customers-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 40px; }
.customers-list li { font-family: var(--display); font-weight: 500; font-size: clamp(17px, 1.5vw, 21px); letter-spacing: -0.01em; color: var(--graphite); white-space: nowrap; }
@media (min-width: 1200px) { .customers-list { justify-content: space-between; } }

/* --- why we exist ------------------------------------------------------ */
.why-grid { display: grid; gap: 32px; align-items: start; }
.why-big { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.1; margin-top: 20px; max-width: 18em; }
.why-body { display: grid; gap: 24px; margin-top: 40px; }
.why-quote { font-family: var(--display); font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-body { grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; align-items: end; }
}

/* --- the house: everything above inherits the foundation --------------- */
.house-sec { background: var(--paper); }
.house-grid { display: grid; gap: 48px; }
.house-copy .lead { margin-top: 24px; max-width: 28em; }
.inherit { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--hair); }
.inherit li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.inherit li::before { content: ""; width: 5px; height: 5px; background: var(--ink); flex: none; transform: translateY(-3px); }
.house-cap { font-size: 13.5px; color: var(--slate); margin-bottom: 14px; }
.house { position: relative; list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.house::before { content: ""; position: absolute; left: 33px; top: 34px; bottom: 60px; width: 1px; background: var(--ink); }
.house li { position: relative; padding: 24px 24px 24px 64px; border-top: 1px solid var(--hair); }
.house li:first-child { border-top: 0; }
.house li::before { content: ""; position: absolute; left: 27px; top: 31px; width: 13px; height: 13px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--ink); }
.house li.luis::before { background: #8B5CF6; border-color: #8B5CF6; }
.house h3 { font-size: 21px; line-height: 1.2; letter-spacing: -0.01em; }
.house p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--slate); }
.engines { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 14px 0 0; padding: 0; }
.engines li { padding: 0; border: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--graphite); }
.engines li::before { position: static; width: 7px; height: 7px; border: 0; border-radius: 50%; background: var(--dot, var(--ink)); }
.house li.ground { background: var(--ink); color: #fff; }
.house li.ground::before { background: #fff; border-color: #fff; }
.house li.ground p { color: rgba(255,255,255,.72); }
@media (min-width: 1024px) {
  .house-grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }
}

/* --- the chain of proof (Brand Book 10.4, coded not filmed) ------------- */
.proof-grid { display: grid; gap: 48px; }
.proof-copy .lead { margin-top: 24px; max-width: 28em; }
.laws { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.law-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); font: 500 14px var(--mono); color: var(--slate); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.law-btn:hover { border-color: var(--ink); color: var(--ink); }
.law-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
/* The departments are layers of glass on one foundation; one thread runs straight through them. Each layer is a
   square drawn isometric with a plain 2D matrix, so its thickness is just a box-shadow. A layer tints in its own
   tone when its link is made, and the card beside it says what the link is. */
.stage { position: relative; padding-bottom: 52px; }
.chain { position: relative; max-width: 560px; }
.chain-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--slate); }
.chain-head b { color: var(--ink); font-weight: 500; }
.chain-count .num { color: var(--ink); font-weight: 500; }
.iso { --s: 84px; --gap: 66px; --cx: 88px; --t0: 28px; position: relative; height: calc(var(--t0) + 4 * var(--gap) + var(--s) + 24px); }
.iso ol { list-style: none; margin: 0; padding: 0; }
.layer { position: absolute; left: var(--cx); top: calc(var(--t0) + var(--i) * var(--gap)); z-index: calc(10 - var(--i)); width: var(--s); height: var(--s); transform-origin: 0 0; transform: matrix(1, .5, -1, .5, 0, 0);
  border-radius: 12px; border: 1px solid rgba(13,13,12,.10); background: rgba(250,248,245,.66); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  box-shadow: 5px 5px 0 rgba(13,13,12,.07), 22px 22px 34px rgba(13,13,12,.07); transition: background .6s var(--ease-out), border-color .6s var(--ease-out); }
/* the name runs up the layer's back-left edge, so the thread never crosses it */
.layer span { position: absolute; left: 7px; bottom: 10px; transform-origin: 0 100%; transform: rotate(-90deg) translateY(100%); font-size: 9.5px; font-weight: 500; letter-spacing: .02em; white-space: nowrap; color: var(--muted); transition: color .6s var(--ease-out); }
.step.done .layer { background: color-mix(in srgb, var(--t) 78%, transparent); border-color: color-mix(in srgb, var(--c) 28%, transparent); }
.step.done .layer span { color: var(--c); }
.track, .thread { position: absolute; z-index: 15; left: calc(var(--cx) - .5px); top: 0; width: 1px; height: 0; background: rgba(13,13,12,.16); }
.thread { z-index: 16; width: 2px; left: calc(var(--cx) - 1px); background: var(--ink); transition: height .6s var(--ease-out); }
.ok { position: absolute; z-index: 20; left: calc(var(--cx) - 9px); top: calc(var(--t0) + var(--i) * var(--gap) + var(--s) / 2 - 9px); width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--hair); background: var(--white); display: grid; place-items: center; transition: background .3s var(--ease-out), border-color .3s var(--ease-out); }
.ok svg { width: 10px; height: 10px; opacity: 0; transition: opacity .3s; }
.step.done .ok { background: var(--ink); border-color: var(--ink); animation: ok-in .5s var(--spring-soft); }
.step.done .ok svg { opacity: 1; }
@keyframes ok-in { from { transform: scale(.6); } }
.tie { position: absolute; z-index: 19; left: calc(var(--cx) + 9px); top: calc(var(--t0) + var(--i) * var(--gap) + var(--s) / 2); width: calc(var(--s) + 6px); height: 1px; background: var(--ink); opacity: .22; transform-origin: 0 50%; transform: scaleX(0); transition: transform .5s var(--ease-out); }
.step.done .tie { transform: none; }
.sb { position: absolute; z-index: 20; left: calc(var(--cx) + var(--s) + 22px); right: 0; top: calc(var(--t0) + var(--i) * var(--gap) + var(--s) / 2); transform: translateY(-50%); }
.step .k { font-size: 12px; color: var(--slate); letter-spacing: .02em; }
.step .v { margin-top: 2px; font-size: 14px; line-height: 1.3; text-wrap: balance; font-weight: 500; color: var(--muted); transition: color .4s var(--ease-out); }
.step.done .v { color: var(--ink); }
.verified { display: grid; grid-template-columns: 18px 1fr; column-gap: 10px; padding: 14px 16px; border-radius: 16px; background: var(--mist); opacity: .5; transition: opacity .5s var(--ease-out), background .5s var(--ease-out); }
.verified.show { opacity: 1; background: #F1F8F7; }
.verified .t { display: contents; font-size: 14px; font-weight: 500; }
.verified .t i { width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; transition: background .4s var(--ease-out); }
.verified .t svg { width: 10px; height: 10px; }
.verified.show .t i { background: var(--frm); animation: ok-in .5s var(--spring-soft); }
.verified .m { grid-column: 2; margin-top: 4px; font: 12px/1.6 var(--mono); color: var(--slate); }
.stage .example { position: absolute; left: 0; bottom: 0; }
@media (min-width: 480px) {
  .iso { --s: 110px; --gap: 76px; --cx: 120px; --t0: 32px; }
  .layer span { font-size: 11px; left: 10px; bottom: 12px; }
  .step .v { font-size: 15.5px; }
}
@media (min-width: 1024px) {
  .proof-grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: center; }
  .stage { padding: 0 0 56px 40px; }
  .stage .example { left: 40px; }
  .iso { --s: 124px; --gap: 80px; --cx: 132px; }
  .step .v { font-size: 16px; }
}

/* --- solutions: the doors ---------------------------------------------- */
.doors { display: grid; gap: 0; margin-top: 64px; border-top: 1px solid var(--ink); }
.door { padding: 32px 0; border-bottom: 1px solid var(--hair); }
.door h3 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.1; }
.door p { margin-top: 12px; color: var(--slate); max-width: 34em; }
.door ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.door li { font-size: 13.5px; padding: 6px 12px; border-radius: 999px; background: var(--c50); color: var(--c700); }
@media (min-width: 1024px) {
  .doors { grid-template-columns: 1fr 1fr; }
  .door { padding: 40px 48px 40px 0; }
  .door + .door { padding-left: 48px; border-left: 1px solid var(--hair); }
}

/* --- build -------------------------------------------------------------- */
.build-sec { background: var(--paper); }
.build-head { display: grid; gap: 24px; }
.build-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; border-top: 1px solid var(--ink); }
.build-list li { padding: 22px 0; border-bottom: 1px solid var(--hair); display: grid; gap: 4px; }
.build-list b { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.build-list span { color: var(--slate); font-size: 15.5px; }
.ways { display: grid; gap: 24px; margin-top: 56px; }
.way { background: var(--white); border-radius: var(--r-card); border: 1px solid var(--hair); padding: 28px; }
.way h3 { font-size: 24px; }
.way p { margin-top: 10px; color: var(--slate); }
@media (min-width: 768px) { .build-list { grid-template-columns: repeat(5, 1fr); } .build-list li { padding-right: 20px; } .ways { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .build-head { grid-template-columns: 7fr 5fr; gap: 96px; align-items: end; } }

/* --- Luis: the ring itself carries the section (07-luis-design) -------- */
.luis-grid { display: grid; gap: 24px; align-items: center; }
.luis-copy .lead { margin-top: 24px; max-width: 26em; }
.luis-copy .hero-cta { margin-top: 24px; }
.luis-stage { display: grid; place-items: center; }
.luis-btn { display: block; width: 100%; max-width: 620px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.luis-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: -8px; }
.luis-big { display: block; width: 100%; aspect-ratio: 1; height: auto; }
@media (min-width: 1024px) {
  .luis-grid { grid-template-columns: 5fr 7fr; gap: 48px; }
}

/* --- Luis at work: three work moments, each with source and review point --- */
.luis-work { background: var(--paper); }
.lw-head { display: grid; gap: 24px; }
.lw { display: grid; gap: 32px; margin-top: 56px; }
.lw-tabs { display: grid; align-content: start; border-top: 1px solid var(--ink); }
.lw-tab { position: relative; display: grid; gap: 4px; width: 100%; min-height: 72px; padding: 18px 0 18px 20px; border: 0; border-bottom: 1px solid var(--hair); background: none; text-align: left; font: inherit; color: var(--slate); cursor: pointer; transition: color .2s; }
.lw-tab::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: transparent; transition: background .2s; }
.lw-tab:hover { color: var(--ink); }
.lw-tab[aria-selected="true"] { color: var(--ink); }
.lw-tab[aria-selected="true"]::before { background: var(--ink); }
.lw-k { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.lw-t { font-size: 17px; line-height: 1.4; font-weight: 500; }
.lw-stage { position: relative; padding-bottom: 40px; }
.lw-panel { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 24px; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.06); display: grid; gap: 20px; }
.lw-panel[hidden] { display: none; }
.lw-q { justify-self: end; max-width: 86%; background: var(--mist); border-radius: 20px; padding: 14px 18px; }
.lw-who { display: block; font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.lw-q p { font-size: 16px; }
.lw-a { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.lw-ring { width: 32px; height: 32px; }
.lw-name { font-size: 12px; color: var(--slate); margin-bottom: 2px; }
.lw-a p { font-size: 16px; line-height: 1.55; }
.lw-src-h { margin-top: 14px; font-size: 12px !important; color: var(--slate); }
.lw-src { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 6px 0 0; padding: 0; }
.lw-src li { font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); color: var(--graphite); }
/* violet means AI and conditions (08-former-och-farger): the proposal carries the Obligation tone */
.lw-prop { margin-left: 46px; border-radius: 16px; background: #F5F3FF; border: 1px solid #DDD6FE; padding: 16px 18px; }
.lw-prop-h { font-size: 12px; color: #6D28D9; font-weight: 500; }
.lw-prop p:not(.lw-prop-h) { margin-top: 4px; font-size: 15.5px; color: var(--ink); }
.lw-acts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 14px; font-size: 14px; font-weight: 500; }
.lw-apply { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; }
.lw-dismiss { color: var(--slate); }
.lw-stage .example { position: absolute; left: 0; bottom: 0; }
.lw-rules { list-style: none; padding: 0; margin: 72px 0 0; display: grid; gap: 0; }
.lw-rules li { padding: 22px 0; border-top: 1px solid var(--ink); display: grid; gap: 6px; }
.lw-rules b { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.lw-rules span { color: var(--slate); font-size: 15.5px; }
@media (max-width: 639px) { .lw-prop { margin-left: 0; } .lw-q { max-width: 100%; } }
@media (min-width: 768px) { .lw-rules { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1024px) {
  .lw-head { grid-template-columns: 7fr 5fr; gap: 96px; align-items: end; }
  .lw { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .lw-panel { padding: 28px; }
  .lw-rules { grid-template-columns: repeat(4, 1fr); }
}

/* --- the plan ----------------------------------------------------------- */
.plan { list-style: none; padding: 0; margin: 64px 0 0; display: grid; gap: 0; counter-reset: s; }
.plan li { counter-increment: s; padding: 28px 0; border-top: 1px solid var(--ink); }
.plan li::before { content: counter(s); display: block; font-family: var(--display); font-size: 64px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.plan h3 { margin-top: 24px; font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }
.plan p { margin-top: 8px; color: var(--slate); font-size: 16px; }
@media (min-width: 768px) { .plan { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* --- security ----------------------------------------------------------- */
.sec-sec { background: var(--paper); }
.sec-grid { display: grid; gap: 48px; }
.sec-copy .lead { margin-top: 24px; max-width: 28em; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.facts li { padding: 20px 24px; border-top: 1px solid var(--hair); display: grid; gap: 2px; }
.facts li:first-child { border-top: 0; }
.facts b { font-weight: 500; font-size: 16px; }
.facts span { font-size: 15px; color: var(--slate); }
.marks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.marks span { font: 13px var(--mono); padding: 8px 14px; border: 1px solid var(--hair); border-radius: 999px; background: var(--white); }
@media (min-width: 1024px) { .sec-grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; } }

/* --- closing ------------------------------------------------------------ */
.close { text-align: left; }
.close h2 { font-size: clamp(40px, 6vw, 88px); line-height: 1.0; }
.close .lead { margin-top: 24px; max-width: 30em; }
.close .hero-cta { margin-top: 40px; }

/* --- footer ------------------------------------------------------------- */
.foot { border-top: 1px solid var(--hair); padding-block: 48px 40px; font-size: 14px; color: var(--slate); }
.foot-in { display: grid; gap: 32px; }
.foot nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 8px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding-right: 16px; text-decoration: none; color: var(--graphite); }
.foot nav a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--hair); }
@media (min-width: 1024px) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   Subpages – shared pieces
   ===================================================================== */
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--hair); }
.btn-ghost:hover { background: var(--mist); }
.mono { font-family: var(--mono); font-size: .92em; }
.crumb { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--hair); }
.crumb:hover { color: var(--ink); border-color: var(--ink); }
.door-link { display: inline-flex; align-items: center; gap: .3em; min-height: 44px; text-decoration: none; }
.door-link span { display: inline-block; transition: transform .2s; }
.door-link:hover span { transform: translateX(4px); }
.page-hero { padding-block: clamp(48px, 7vw, 104px) clamp(72px, 9vw, 128px); }
.page-hero h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.03; margin-top: 20px; }
.page-hero .lead { margin-top: 24px; max-width: 32em; }
.ph-grid { display: grid; gap: 48px; }
.ph-wide { max-width: 980px; }
.split-head { display: grid; gap: 24px; }
.split-head .lead { max-width: 32em; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 18px 0 0; padding: 0; }
.tags li { font-size: 13px; padding: 5px 11px; border-radius: 999px; background: var(--white); border: 1px solid var(--hair); color: var(--graphite); }
@media (min-width: 1024px) {
  .ph-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: center; }
  .split-head { grid-template-columns: 7fr 5fr; gap: 96px; align-items: end; }
}

/* reveal on scroll: only when JS runs, never with reduced motion */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* --- The foundation: the living house --------------------------------- */
.lh-frame { position: relative; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 12px; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.07); }
.lh-rail { z-index: 2; position: absolute; left: 31px; top: 30px; bottom: 30px; width: 1px; background: var(--hair); }
.lh-rail-fill { position: absolute; left: 0; bottom: 0; width: 1.5px; margin-left: -.25px; height: 0; background: var(--ink); transition: height .6s cubic-bezier(.45,.05,.3,1); }
.lh-dot { position: absolute; left: -6px; bottom: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(13,13,12,.08); transition: bottom .6s cubic-bezier(.45,.05,.3,1); }
.lh-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lh-layer { position: relative; display: grid; gap: 10px; padding: 16px 16px 16px 44px; border-radius: 16px; background: var(--paper); border: 1px solid var(--hair); }
.lh-t b { display: block; font-family: var(--display); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; }
.lh-t span { display: block; margin-top: 2px; font-size: 14px; color: var(--slate); }
.lh-gets { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.lh-gets li { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--hair); color: var(--slate); transition: background .35s, color .35s, border-color .35s; }
.lh-layer.got .lh-gets li { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.lh-luis { background: #F5F3FF; border-color: #DDD6FE; }
.lh-ground { background: var(--ink); border-color: var(--ink); color: #fff; }
.lh-ground .lh-t span { color: rgba(255,255,255,.72); }
.lh-new { background: var(--white); border-style: dashed; }
.lh-layer[hidden] { display: none; }
.lh-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 16px; }
.lh-status { font-size: 14px; color: var(--slate); }
html.js .lh .lh-layer { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), background .3s; }
html.js .lh .lh-layer.up { opacity: 1; transform: none; }
@media (min-width: 640px) { .lh-layer { grid-template-columns: 1fr auto; align-items: center; } }

.layers { list-style: none; margin: 56px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.layers li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.layers-n { font-family: var(--display); font-size: 28px; line-height: 1; }
.layers h3 { font-size: 22px; letter-spacing: -0.01em; }
.layers p { margin-top: 6px; color: var(--slate); max-width: 46em; }
.layers li.layers-ground { background: var(--ink); color: #fff; border-radius: var(--r-card); padding: 24px; margin-top: 16px; border: 0; }
.layers li.layers-ground p { color: rgba(255,255,255,.72); }
@media (min-width: 1024px) { .layers li { grid-template-columns: 96px 1fr; } }

.inherit-grid { display: grid; gap: 24px; margin-top: 56px; }
.ig { padding-top: 22px; border-top: 1px solid var(--ink); }
.ig h3 { font-size: 22px; letter-spacing: -0.01em; }
.ig p { margin-top: 10px; color: var(--slate); font-size: 16px; }
@media (min-width: 768px) { .inherit-grid { grid-template-columns: 1fr 1fr; column-gap: 32px; row-gap: 40px; } }
@media (min-width: 1200px) { .inherit-grid { grid-template-columns: repeat(4, 1fr); } }

/* --- Solutions: the doorway ------------------------------------------- */
.doorway { margin-top: 64px; }
.dw-doors { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.dw-door { position: relative; display: grid; gap: 6px; height: 100%; padding: 24px 24px 56px; border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--white); text-decoration: none; transition: border-color .25s, box-shadow .25s, transform .25s; }
.dw-door::before { content: ""; position: absolute; left: 24px; top: 0; width: 40px; height: 3px; border-radius: 0 0 3px 3px; background: var(--c); }
.dw-door:hover, .dw-door:focus-visible { border-color: var(--ink); box-shadow: 0 18px 44px rgba(13,13,12,.08); transform: translateY(-2px); }
.dw-k { font-size: 13px; color: var(--slate); }
.dw-door b { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.dw-p { font-size: 15px; color: var(--slate); }
.dw-go { position: absolute; left: 24px; bottom: 20px; font-size: 18px; transition: transform .25s; }
.dw-door:hover .dw-go { transform: translateX(4px); }
.dw-threads { display: none; width: 100%; height: 48px; }
.dw-threads path { fill: none; stroke: var(--hair); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke .3s; }
.dw-threads path.on { stroke: var(--ink); animation: dw-draw .7s ease forwards; }
@keyframes dw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.dw-ground { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: center; margin-top: 12px; padding: 20px 24px; border-radius: var(--r-card); background: var(--ink); color: #fff; text-align: center; }
.dw-ground b { font-family: var(--display); font-weight: 500; font-size: 20px; }
.dw-ground span { color: rgba(255,255,255,.72); font-size: 15px; }
@media (min-width: 640px) { .dw-doors { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .dw-doors { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .dw-threads { display: block; }
  .dw-ground { margin-top: 0; }
}

.roles { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 0 32px; }
.roles li { display: grid; gap: 6px; padding: 22px 0; border-top: 1px solid var(--ink); }
.roles b { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: -0.01em; }
.roles span { color: var(--slate); font-size: 17px; }
@media (min-width: 768px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .roles { grid-template-columns: repeat(3, 1fr); } }

/* --- Compliance: steps and the Controls board ------------------------- */
.steps-text { list-style: none; margin: 32px 0 0; padding: 0; counter-reset: st; border-top: 1px solid var(--hair); }
.steps-text li { counter-increment: st; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.steps-text li::before { content: counter(st); grid-row: span 2; font-family: var(--display); font-size: 18px; font-variant-numeric: tabular-nums; }
.steps-text b { font-weight: 500; }
.steps-text span { color: var(--slate); font-size: 15.5px; }
.cb-wrap { position: relative; padding-bottom: 40px; }
.cb-wrap .example { position: absolute; left: 0; bottom: 0; }
.cb { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px 22px 8px; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.07); }
.cb-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 14px; color: var(--slate); }
.cb-head b { color: var(--ink); font-weight: 500; font-size: 15px; }
.cb-bar { height: 6px; border-radius: 999px; background: #EDE9FE; margin: 14px 0 6px; overflow: hidden; }
.cb-bar span { display: block; height: 100%; width: 50%; border-radius: 999px; background: #7C3AED; transition: width .8s cubic-bezier(.2,.7,.2,1); }
.cb-rows { list-style: none; margin: 0; padding: 0; }
.cb-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--mist); }
.cb-rows li:last-child { border-bottom: 0; }
.cb-rows b { display: block; font-weight: 500; font-size: 15.5px; }
.cb-rows span:not(.cb-pill) { display: block; font-size: 13px; color: var(--slate); }
.cb-pill { flex: none; font-size: 12.5px; font-weight: 500; padding: 5px 11px; border-radius: 999px; white-space: nowrap; transition: background .4s, color .4s; }
.cb-rows li[data-state="ok"] .cb-pill { background: #F1F8F7; color: #016A63; }
.cb-rows li[data-state="soon"] .cb-pill { background: #FFFBEB; color: #B45309; }
.cb-rows li[data-state="missing"] .cb-pill { background: #FEF2F2; color: #B91C1C; }
.cb-rows li[data-state="task"] .cb-pill { background: #F5F3FF; color: #6D28D9; }
.cb-rows li.flash { animation: cb-flash 1.2s ease; }
@keyframes cb-flash { 0% { background: transparent; } 30% { background: #FAFAF9; } 100% { background: transparent; } }

.house-strip-h { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; margin-bottom: 20px; }
.house-strip { position: relative; display: grid; gap: 6px; padding: 12px; border-radius: var(--r-card); border: 1px solid var(--hair); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.house-strip:hover { border-color: var(--ink); box-shadow: 0 18px 44px rgba(13,13,12,.07); }
.house-strip span { display: block; padding: 12px 16px; border-radius: 12px; background: var(--paper); font-size: 15px; }
.house-strip .hs-ground { background: var(--ink); color: #fff; font-weight: 500; }
.house-strip i { font-style: normal; font-weight: 500; font-size: 15px; padding: 8px 4px 2px; }

/* --- Contracts: the lifecycle ----------------------------------------- */
.lc { position: relative; margin-top: 56px; padding-bottom: 40px; }
.lc .example { position: absolute; left: 0; bottom: 0; }
.lc-track { position: relative; display: grid; grid-template-columns: repeat(var(--steps, 5), 1fr); }
.lc-line { position: absolute; left: calc(50% / var(--steps, 5)); right: calc(50% / var(--steps, 5)); top: 21px; height: 1px; background: var(--hair); }
.lc-fill { position: absolute; left: 0; top: 0; height: 1.5px; width: 0; background: var(--ink); transition: width .6s cubic-bezier(.2,.7,.2,1); }
.lc-step { position: relative; display: grid; justify-items: center; gap: 8px; min-height: 64px; padding: 14px 0 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--slate); cursor: pointer; }
.lc-step i { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--hair); transition: background .3s, border-color .3s, transform .3s; }
.lc-step.past i { background: var(--ink); border-color: var(--ink); }
.lc-step[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.lc-step[aria-selected="true"] i { background: var(--ink); border-color: var(--ink); transform: scale(1.25); box-shadow: 0 0 0 7px rgba(13,13,12,.07); }
.lc-step:hover { color: var(--ink); }
.lc-panels { margin-top: 24px; }
.lc-panel { display: grid; gap: 24px; align-items: center; padding: 24px; border-radius: var(--r-card); background: var(--paper); border: 1px solid var(--hair); }
.lc-panel[hidden] { display: none; }
.lc-panel.enter { animation: lc-in .45s cubic-bezier(.2,.7,.2,1); }
@keyframes lc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.lc-text h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.01em; }
.lc-text p { margin-top: 10px; color: var(--slate); max-width: 32em; }
.lc-card { background: var(--white); border: 1px solid var(--hair); border-radius: 20px; padding: 18px 20px 6px; box-shadow: 0 18px 44px rgba(13,13,12,.06); }
.lc-card-h { font-size: 13px; color: var(--slate); padding-bottom: 10px; border-bottom: 1px solid var(--hair); }
.lc-list { list-style: none; margin: 0; padding: 0; }
.lc-list li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--mist); font-size: 14.5px; }
.lc-list li:last-child { border-bottom: 0; }
.lc-list span { color: var(--slate); }
.lc-list b { font-weight: 500; text-align: right; }
.lc-warn { color: #B45309; }
.lc-ok { color: var(--frm); }
@media (max-width: 639px) { .lc-step span { font-size: 12px; } }
@media (min-width: 1024px) { .lc-panel { grid-template-columns: 5fr 6fr; padding: 40px; gap: 48px; } }

/* --- Build: the builder ----------------------------------------------- */
.bd-pick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.bd-pick .law-btn { font-family: var(--sans); font-size: 14.5px; }
.bd { position: relative; padding-bottom: 40px; }
.bd .example { position: absolute; left: 0; bottom: 0; }
.bd-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card) var(--r-card) 0 0; border-bottom: 0; padding: 20px 22px; box-shadow: 0 24px 60px rgba(13,13,12,.07); }
.bd-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.bd-head b { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.bd-mode { font-size: 13px; color: var(--slate); }
.bd-blocks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.bd-blocks li { display: grid; grid-template-columns: 10px 92px 1fr; gap: 12px; align-items: center; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--hair); background: var(--paper); transition: opacity .4s, transform .5s cubic-bezier(.2,.8,.2,1.1); }
.bd-blocks i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.bd-k { font-size: 13px; color: var(--slate); }
.bd-v { font-weight: 500; font-size: 15px; }
.bd-blocks li.out { opacity: 0; transform: translateY(-14px) scale(.98); }
.bd-inherit { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.bd-inherit p { font-size: 13px; color: var(--slate); }
.bd-inherit ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 10px 0 0; padding: 0; }
.bd-inherit li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 5px 11px; border-radius: 999px; border: 1px dashed var(--hair); color: var(--slate); transition: background .35s, color .35s, border-color .35s; }
.bd-inherit li.got { background: var(--ink); border: 1px solid var(--ink); color: #fff; }
.bd-ground { padding: 16px 22px; border-radius: 0 0 var(--r-card) var(--r-card); background: var(--ink); color: #fff; font-family: var(--display); font-weight: 500; font-size: 17px; }

/* --- Security: the permission view ------------------------------------ */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-top: 32px; padding: 4px; border-radius: 999px; background: var(--mist); }
.seg-b { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: none; font: 500 14.5px var(--sans); color: var(--slate); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s; }
.seg-b:hover { color: var(--ink); }
.seg-b[aria-checked="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 3px rgba(13,13,12,.12); }
.pv { position: relative; padding-bottom: 40px; }
.pv .example { position: absolute; left: 0; bottom: 0; }
.pv-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 20px 22px; box-shadow: 0 24px 60px rgba(13,13,12,.07); }
.pv-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--hair); font-size: 14px; color: var(--slate); }
.pv-head > b { color: var(--ink); font-weight: 500; }
.pv-head span b { color: var(--ink); font-weight: 500; }
.pv-rows { list-style: none; margin: 0; padding: 0; }
.pv-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; border-bottom: 1px solid var(--mist); transition: opacity .35s, filter .35s; }
.pv-rows li b { display: block; font-weight: 500; font-size: 15px; }
.pv-meta { display: block; font-size: 13px; color: var(--slate); }
.pv-val { color: var(--ink); }
.pv-tag { flex: none; font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.pv-rows li.masked .pv-tag { background: #FFFBEB; color: #B45309; }
.pv-rows li.hidden { opacity: .35; }
.pv-rows li.hidden b, .pv-rows li.hidden .pv-meta { filter: blur(4px); }
.pv-rows li.hidden .pv-tag { background: var(--mist); color: var(--slate); }
.pv-luis { display: flex; gap: 12px; align-items: center; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: #F5F3FF; border: 1px solid #DDD6FE; font-size: 14.5px; }
.pv-luis canvas { flex: none; }

/* --- About: the story and its thread ---------------------------------- */
.about-h1 { font-size: clamp(56px, 10vw, 152px) !important; line-height: .95 !important; letter-spacing: -0.03em; }
.about-lead { font-size: clamp(20px, 2vw, 26px) !important; max-width: 34em !important; margin-top: 40px !important; }
.story { position: relative; padding-top: 0; }
.story-thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.story-thread path { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.story .wrap { position: relative; display: grid; gap: clamp(64px, 9vw, 128px); }
.story-part { max-width: 820px; padding-left: 40px; position: relative; }
.story-part::before { content: ""; position: absolute; left: -5px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.story-k { font-size: 14px; color: var(--slate); }
.story-h { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; margin: 12px 0 20px; }
.principles { list-style: none; margin: 8px 0 0; padding: 0; counter-reset: pr; }
.principles li { counter-increment: pr; display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--hair); }
.principles li::before { content: counter(pr); grid-row: span 2; font-family: var(--display); font-size: 22px; font-variant-numeric: tabular-nums; }
.principles b { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.principles span { color: var(--slate); margin-top: 4px; }
.yn { display: grid; gap: 24px; margin-top: 56px; }
.yn-col { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 28px; }
.yn-col h3 { font-size: 22px; }
.yn-col ul { list-style: none; margin: 16px 0 0; padding: 0; }
.yn-col li { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.yn-col li::before { content: "+"; flex: none; width: 16px; font-weight: 600; color: var(--frm); }
.yn-no li::before { content: "–"; color: var(--slate); }
@media (min-width: 768px) { .yn { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .story-part { padding-left: 64px; } }
.pv-tag:empty { display: none; }

/* two-column heroes: a headline that fits its column */
@media (min-width: 1024px) { .page-hero .ph-grid h1, .page-hero .proof-grid h1 { font-size: clamp(40px, 4.2vw, 60px); } }
/* the breadcrumb is small text; its touch area still reaches 44 px */
.crumb { position: relative; }
.crumb::after { content: ""; position: absolute; inset: -14px -8px; }

/* =====================================================================
   Navigation: the Solutions mega-menu
   ===================================================================== */
.mega-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14.5px; color: var(--graphite); cursor: pointer; transition: background .2s, color .2s; }
.mega-btn:hover, .mega-btn[aria-expanded="true"] { color: var(--ink); background: rgba(13,13,12,.04); }
.mega-btn svg { transition: transform .2s; }
.mega-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-links a[aria-current="page"], .mega-btn[data-current="true"] { color: var(--ink); font-weight: 500; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--hair); box-shadow: 0 24px 60px rgba(13,13,12,.08); }
.mega[hidden] { display: none; }
.mega-in { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; padding-block: 28px 32px; }
.mega-h { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); margin-bottom: 10px; }
.mega-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-col a { display: grid; gap: 2px; padding: 10px 12px; margin: 0 -12px; border-radius: 12px; text-decoration: none; transition: background .15s; }
.mega-col a:hover, .mega-col a:focus-visible { background: var(--mist); }
.mega-col b { font-weight: 500; font-size: 15px; color: var(--ink); }
.mega-col span { font-size: 13.5px; color: var(--slate); }
.mega-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; border-radius: 16px; background: var(--ink); color: #fff; text-decoration: none; transition: background .2s; }
.mega-card:hover { background: var(--graphite); }
.mega-card .mega-h { color: rgba(255,255,255,.7); margin: 0; }
.mega-card b { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.mega-card i { font-style: normal; font-size: 14px; margin-top: auto; }
.menu-h { margin: 18px 0 4px; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.menu a.menu-sub { min-height: 44px; font-size: 16px; padding-left: 12px; color: var(--graphite); }
@media (max-width: 1023px) { .mega { display: none !important; } }

/* =====================================================================
   Solutions: the chooser, lists and the starting strip
   ===================================================================== */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chooser { scroll-margin-top: calc(var(--nav-h) + 16px); margin-top: 56px; display: grid; gap: 24px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--paper); }
.ch-label { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.01em; margin-bottom: 12px; }
.ch-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-opts button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); font: 500 15px var(--sans); color: var(--graphite); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.ch-opts button:hover { border-color: var(--ink); color: var(--ink); }
.ch-opts button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ch-result { display: grid; gap: 6px; padding: 22px 24px; border-radius: 20px; background: var(--white); border: 1px solid var(--hair); text-decoration: none; box-shadow: 0 18px 44px rgba(13,13,12,.06); transition: border-color .2s, transform .2s; }
.ch-result:hover { border-color: var(--ink); transform: translateY(-2px); }
.ch-result.swap { animation: lc-in .4s cubic-bezier(.2,.7,.2,1); }
.ch-k { font-size: 13px; color: var(--slate); }
.ch-result b { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -0.01em; }
.ch-say { color: var(--slate); }
.ch-result i { font-style: normal; font-weight: 500; margin-top: 6px; }
@media (min-width: 1024px) { .chooser { grid-template-columns: 1fr 1fr; padding: 32px; gap: 32px; } .ch-result { grid-column: 1 / -1; } }

.rel-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.rel { position: relative; display: grid; gap: 4px; height: 100%; padding: 22px 56px 22px 24px; border-radius: 20px; border: 1px solid var(--hair); background: var(--white); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.rel:hover, .rel:focus-visible { border-color: var(--ink); box-shadow: 0 18px 44px rgba(13,13,12,.07); transform: translateY(-2px); }
.rel b { font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.rel span { color: var(--slate); font-size: 15px; }
.rel i { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 18px; transition: transform .2s; }
.rel:hover i { transform: translate(4px, -50%); }
.rel-big .rel b { font-size: clamp(22px, 2.2vw, 28px); }
@media (min-width: 768px) { .rel-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .rel-list:not(.rel-big) { grid-template-columns: repeat(3, 1fr); } }
.rel-sec .house-strip { margin-top: 24px; }
.dw-three { grid-template-columns: 1fr; }
@media (min-width: 768px) { .dw-three { grid-template-columns: repeat(3, 1fr); } }

.starts { border-top: 1px solid var(--hair); background: var(--paper); }
.starts .wrap { display: grid; gap: 14px; padding-block: 28px; }
.starts-h { font-family: var(--sans); font-weight: 500; font-size: 15px; letter-spacing: 0; }
.starts-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.starts-list a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); text-decoration: none; font-size: 15px; transition: border-color .2s, background .2s; }
.starts-list a:hover { border-color: var(--ink); }
.starts-list i { font-style: normal; transition: transform .2s; }
.starts-list a:hover i { transform: translateX(3px); }

/* =====================================================================
   Situation and industry pages
   ===================================================================== */
.ph-marks { margin-top: 28px; }
.page-hero .ph-wide h1 { max-width: 18em; }
.push { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; }
.push li { padding: 28px 0; border-top: 1px solid var(--ink); }
.push p { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 36px); line-height: 1.18; letter-spacing: -0.015em; max-width: 26em; }
@media (min-width: 1024px) { .push { grid-template-columns: repeat(3, 1fr); column-gap: 40px; } .push p { font-size: clamp(22px, 2vw, 28px); } }
.why-src { margin-top: 16px; font-size: 13px; color: var(--slate); }
.alt-sec { padding-top: 0; }
.alt-grid { display: grid; gap: 24px; }
.alt-col { padding: 28px; border-radius: var(--r-card); border: 1px solid var(--hair); }
.alt-good { background: var(--ink); color: #fff; border-color: var(--ink); }
.alt-good .eyebrow { color: rgba(255,255,255,.72); }
.alt-good .eyebrow::before { background: #fff; }
.alt-list, .good-list { list-style: none; margin: 18px 0 0; padding: 0; }
.alt-list li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--hair); }
.alt-list b { font-weight: 500; }
.alt-list span { color: var(--slate); font-size: 15.5px; }
.good-list li { display: grid; grid-template-columns: 11px 1fr; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 17px; transition: color .35s; }
.js .wv-on.good-list li:not(.lit) { color: rgba(255,255,255,.55); }
@media (min-width: 1024px) { .alt-grid { grid-template-columns: 1fr 1fr; } .alt-col { padding: 36px; } }
.lc-n { font-size: 13px; color: var(--slate); margin-bottom: 8px; }
.themes { margin-top: 48px; }
@media (min-width: 1200px) { .inherit-grid.themes { grid-template-columns: repeat(3, 1fr); } }
.qa-list { display: grid; }
.qa { border-top: 1px solid var(--hair); }
.qa:last-child { border-bottom: 1px solid var(--hair); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font-family: var(--sans); font-weight: 300; font-size: 26px; line-height: 1; transition: transform .25s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 20px; color: var(--slate); max-width: 38em; }
.ax { align-items: start !important; }
.bg-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 0 32px; }
.bg-list li { display: grid; gap: 6px; padding: 20px 0; border-top: 1px solid var(--ink); }
.bg-list b { font-weight: 500; font-size: 15px; color: var(--slate); }
.bg-list span { font-family: var(--display); font-weight: 500; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
@media (min-width: 768px) { .bg-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .bg-list { grid-template-columns: repeat(3, 1fr); } }

/* Hero on situation and industry pages: where the flow ends, the thread running down its rows */
.oc { position: relative; padding-bottom: 40px; }
.oc .example { position: absolute; left: 0; bottom: 0; }
.oc-card { padding: 22px 24px 8px; }
.oc-list { list-style: none; margin: 0; padding: 0; }
.oc-list li { display: grid; grid-template-columns: 11px 1fr auto; align-items: center; gap: 16px; min-height: 52px; padding: 10px 0; font-size: 15px; }
.oc-list li + li { border-top: 1px solid var(--mist); }
.oc-list span { color: var(--slate); }
.oc-list b { font-weight: 500; text-align: right; transition: color .35s; }
.js .wv-on.oc-list li:not(.lit) b { color: var(--slate); }
.js .wv-on.oc-list li.lit .wv-n.attn ~ b { color: #8A5300; }
@media (max-width: 479px) { .oc-list li { grid-template-columns: 11px 1fr; row-gap: 2px; } .oc-list b { grid-column: 2; text-align: left; } }

/* =====================================================================
   Luis page: a build runs, and everything one promise touches
   ===================================================================== */
@media (min-width: 1024px) { .ways-3 { grid-template-columns: repeat(3, 1fr); } }
.way .hero-cta { margin-top: 16px; }
.lb { position: relative; padding-bottom: 40px; }
.lb .example { position: absolute; left: 0; bottom: 0; }
.lb-card { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 22px 24px; box-shadow: 0 24px 60px rgba(13,13,12,.08); }
.lb-ask { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--mist); }
.lb-ask .lw-ring { flex: none; width: 24px; height: 24px; }
.lb-ask p { font-size: 15px; }
.lb-req { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 6px; }
.lb-req div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--hair); }
.lb-req dt { font-size: 12.5px; color: var(--slate); }
.lb-req dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 26px; letter-spacing: -0.01em; }
.lb-parts { list-style: none; margin: 0; padding: 0; }
.lb-parts li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 0; border-bottom: 1px solid var(--mist); font-size: 14.5px; transition: opacity .35s; }
.lb-parts li:last-child { border-bottom: 0; }
.lb-parts i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lb-k { flex: 1; min-width: 0; }
.lb-s { flex: none; font-size: 12.5px; line-height: 1; padding: 6px 9px; border-radius: 999px; background: var(--mist); color: var(--graphite); white-space: nowrap; }
.lb-parts li[data-now="draft"] .lb-s { background: #E6F4F1; color: var(--frm); }
.lb-parts li[data-now="needs"] .lb-s { background: #FDF3E1; color: #8A5300; }
.lb-parts li[data-now="approve"] .lb-s { background: var(--ink); color: #fff; }
.lb-parts li[data-now="building"] .lb-s { background: #EEEBFE; color: #5B3FD6; }
.lb-parts li[data-now="waiting"] { opacity: .55; }
.lb-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 13.5px; color: var(--slate); }
@media (max-width: 479px) { .lb-card { padding: 18px 16px; } .lb-req dd { font-size: 22px; } .lb-parts li { flex-wrap: wrap; row-gap: 6px; } .lb-k { flex-basis: calc(100% - 20px); } .lb-s { margin-left: 20px; } }

.cx-wrap { position: relative; padding-bottom: 40px; }
.cx-wrap .example { position: absolute; left: 0; bottom: 0; }
.cx { list-style: none; margin: 0; padding: 0; position: relative; }
.cx li { position: relative; display: grid; gap: 2px; padding: 12px 0 12px 32px; transition: opacity .35s; }
.cx .wv-n { position: absolute; left: 2px; top: 18px; }
.js .wv-on.cx li:not(.lit) { opacity: .5; }
.cx-k { font-size: 13px; color: var(--slate); }
.cx b { font-weight: 500; font-size: 17px; }
.cx-gap { margin-top: 6px; padding: 16px 18px 16px 32px !important; border-radius: 16px; background: #FDF3E1; }
.cx-gap .wv-n { top: 22px; }
.cx-gap .wv-n.on { box-shadow: inset 0 0 0 1px #C77700, 0 0 0 4px #FDF3E1; }
.cx-gap .cx-k { color: #8A5300; }
.cx-choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cx-choices span { font-size: 13px; padding: 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid rgba(138,83,0,.25); color: var(--ink); }
.cx-also { list-style: none; margin: 20px 0 0; padding: 16px 20px; border-radius: 16px; border: 1px solid var(--hair); background: var(--white); }
.cx-also li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--mist); font-size: 14.5px; }
.cx-also li:last-child { border-bottom: 0; }
.cx-also span { color: var(--slate); }
.cx-also b { font-weight: 500; text-align: right; }

@media (min-width: 1024px) { .dw-doors.dw-five { grid-template-columns: repeat(5, 1fr); gap: 12px; } }

/* Training: try the test */
.tt-wrap { position: relative; padding-bottom: 40px; }
.tt-wrap .example { position: absolute; left: 0; bottom: 0; }
.tt { background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 22px 24px 24px; box-shadow: 0 24px 60px rgba(13,13,12,.08); }
.tt-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); font-size: 13.5px; }
.tt-head b { font-weight: 500; }
.tt-head span { color: var(--slate); }
.tt-q { border: 0; margin: 0; padding: 18px 0 0; min-width: 0; }
.tt-q[hidden] { display: none; }
.tt-q legend { display: grid; gap: 8px; padding: 0; margin-bottom: 14px; }
.tt-n { font-size: 13px; color: var(--slate); }
.tt-must { justify-self: start; font-size: 12px; line-height: 1; padding: 5px 8px; border-radius: 999px; background: #FDF3E1; color: #8A5300; }
.tt-q legend b { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; }
.tt-opts { display: grid; gap: 8px; }
.tt-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 14px; cursor: pointer; font-size: 15.5px; transition: border-color .2s, background .2s; }
.tt-opt:hover { border-color: var(--ink); }
.tt-opt input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.tt-opt:has(input:checked) { border-color: var(--ink); background: var(--mist); }
.tt-opt:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }
.tt-hint { min-height: 20px; margin-top: 10px; font-size: 13.5px; color: #8A5300; }
.tt-nav { display: flex; justify-content: flex-end; margin-top: 6px; }
.tt-result { padding-top: 18px; }
.tt-result:focus { outline: none; }
.tt-score { display: flex; align-items: baseline; gap: 12px; }
.tt-score b { font-family: var(--display); font-weight: 500; font-size: 44px; letter-spacing: -0.02em; }
.tt-score span { font-weight: 500; padding: 6px 10px; border-radius: 999px; background: #E6F4F1; color: var(--frm); font-size: 14px; }
.tt-score span.no { background: #FDF3E1; color: #8A5300; }
.tt-points { list-style: none; margin: 14px 0 0; padding: 0; }
.tt-points li { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--mist); }
.tt-pt { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.tt-pt b { font-weight: 500; }
.tt-pt span { flex: none; font-size: 13px; color: var(--frm); }
.tt-pt span.again { color: #8A5300; }
.tt-lesson { font-size: 14.5px; color: var(--graphite); }
.tt-quote { font-size: 13.5px; color: var(--slate); border-left: 2px solid var(--hair); padding-left: 10px; }
.tt-note { margin: 14px 0 16px; font-size: 13.5px; color: var(--slate); }

/* Luis page: real plans */
.lp { margin-top: 48px; }
.lp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); font: 500 15px var(--sans); color: var(--graphite); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lp-tab:hover { border-color: var(--ink); color: var(--ink); }
.lp-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.lp-panel { margin-top: 20px; padding: 24px; border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--white); box-shadow: 0 24px 60px rgba(13,13,12,.06); }
.lp-panel[hidden] { display: none; }
.lp-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; border-radius: 16px; background: var(--mist); }
.lp-ask p { flex: 1 1 280px; font-size: 15.5px; }
.lp-file { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-size: 13px; padding: 0 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--hair); }
.lp-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 4px; }
.lp-sum div { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--hair); }
.lp-sum dt { font-size: 12.5px; color: var(--slate); }
.lp-sum dd { margin: 0; font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
.lp-title { margin: 12px 0 4px; font-size: 15px; }
.lp-title b { font-weight: 500; }
.lp-parts { list-style: none; margin: 0; padding: 0; }
.lp-part { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--mist); }
.lp-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--slate); }
.lp-kind i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.lp-body { display: grid; gap: 4px; }
.lp-body b { font-weight: 500; font-size: 16.5px; }
.lp-why { font-size: 14.5px; color: var(--graphite); }
.lp-meets { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.lp-meets li { position: relative; padding-left: 22px; font-size: 14px; color: var(--slate); }
.lp-meets { border-left: 1px solid var(--ink); margin-left: 4px !important; }
.lp-meets li { padding-left: 18px !important; }
.lp-meets li::before { content: ""; position: absolute; left: -4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--white); }
.lp-unc { margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #FDF3E1; }
.lp-unc p { font-size: 13px; color: #8A5300; }
.lp-unc ul { margin: 6px 0 0; padding-left: 18px; font-size: 14.5px; }
.lp-unc-none { margin-top: 12px; font-size: 13.5px; color: var(--frm); }
.lp-note { margin-top: 14px; font-size: 13px; color: var(--slate); }
@media (min-width: 1024px) {
  .lp-panel { padding: 32px; }
  .lp-part { grid-template-columns: 180px 1fr; gap: 24px; align-items: start; }
  .lp-kind { padding-top: 3px; }
}
@media (max-width: 479px) { .lp-panel { padding: 18px 16px; } .lp-sum dd { font-size: 22px; } }

/* Home hero: start with your own word */
.hero-start { margin-top: 24px; }
.hero-start-h { font-size: 13px; color: var(--slate); margin-bottom: 8px; }
.hero-start .starts-list a { font-size: 14.5px; padding: 0 16px; }
.hero-start .starts-list a.hs-all { background: var(--ink); border-color: var(--ink); color: #fff; }
.hero .lead { margin-top: 24px; max-width: 29em; }
.hero-cta + .hero-start { margin-top: 32px; }
.hero-start .starts-list li.hs-more { display: flex; align-items: center; padding-left: 6px; }
.hero-start .starts-list li.hs-more a { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; }

/* =====================================================================
   The thread: the brand's motion, one line and one dot that follow the scroll
   ===================================================================== */
[data-weave] { position: relative; }
.wv-svg { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 1; }
.wv-svg.wv-top { z-index: 3; }
.wv-svg path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wv-hair { stroke: var(--hair); stroke-width: 1; }
.wv-ink { stroke: var(--ink); stroke-width: 1; }
.wv-dot { fill: var(--ink); }
.wv-halo { fill: none; stroke: var(--ink); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.wv-halo.on { animation: wv-halo 1.6s cubic-bezier(.2,.6,.3,1) 1; }
@keyframes wv-halo { 0% { opacity: .55; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.wv-n { position: relative; z-index: 2; display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); transition: background .35s, box-shadow .35s; }
.wv-n.on { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 4px var(--white); }
.wv-n.attn.on { background: #C77700; box-shadow: inset 0 0 0 1px #C77700, 0 0 0 4px var(--white); }
.wv-dark .wv-hair { stroke: #3A3936; }
.wv-dark .wv-ink { stroke: #FAF8F5; }
.wv-dark .wv-dot { fill: #FAF8F5; }
.wv-dark .wv-halo { stroke: #FAF8F5; }
.wv-dark .wv-n { background: var(--ink); box-shadow: inset 0 0 0 1px #55534F; }
.wv-dark .wv-n.on { background: #FAF8F5; box-shadow: inset 0 0 0 1px #FAF8F5, 0 0 0 4px var(--ink); }

/* Legal AI: Legal and Legal AI in one flow */
.sym { margin-top: 48px; padding-bottom: 40px; }
.sym .example { position: absolute; left: 0; bottom: 0; }
.sym-heads { display: none; }
.sym-steps { list-style: none; margin: 0; padding: 0 0 0 36px; display: grid; gap: 16px; }
.sym-step { position: relative; display: grid; gap: 6px; padding: 20px 22px; border-radius: 20px; border: 1px solid var(--hair); background: var(--white); transition: border-color .4s, box-shadow .4s, opacity .4s; }
.sym-step .wv-n { position: absolute; left: -36px; top: 26px; transform: translateX(6px); }
.sym-lane { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--slate); }
.sym-lane::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.sym-ai .sym-lane::before { background: linear-gradient(135deg, #8B5CF6, #6366F1 55%, #38BDF8); }
.sym-step b { font-family: var(--display); font-weight: 500; font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.sym-step p { color: var(--graphite); font-size: 15.5px; }
.sym-art { justify-self: start; margin-top: 4px; font-family: var(--mono); font-size: 12px; line-height: 1.5; padding: 6px 10px; border-radius: 10px; background: var(--mist); color: var(--graphite); }
.sym-done { background: var(--ink); border-color: var(--ink); color: #fff; }
.sym-done p { color: rgba(255,255,255,.78); }
.sym-done .sym-lane { color: rgba(255,255,255,.72); }
.sym-done .sym-lane::before { background: #fff; }
.sym-done .sym-art { background: rgba(255,255,255,.1); color: #fff; }
.js .wv-on .sym-step:not(.lit) { opacity: .45; }
.js .wv-on .sym-step.lit:not(.sym-done) { border-color: var(--ink); box-shadow: 0 18px 44px rgba(13,13,12,.07); }
@media (min-width: 1024px) {
  .sym-heads { display: grid; grid-template-columns: 1fr 96px 1fr; margin-bottom: 16px; font-size: 13px; color: var(--slate); }
  .sym-heads span { display: inline-flex; align-items: center; gap: 8px; }
  .sym-h-ai { grid-column: 3; }
  .sym-heads .lw-ring { width: 20px; height: 20px; }
  .sym-steps { padding: 0; grid-template-columns: 1fr 96px 1fr; gap: 0; row-gap: 0; }
  .sym-step:not(.sym-done) { margin-top: -28px; }
  .sym-step:first-child { margin-top: 0; }
  .sym-legal { grid-column: 1; }
  .sym-ai { grid-column: 3; }
  .sym-done { grid-column: 1 / -1; justify-self: center; width: min(560px, 100%); margin-top: 28px; text-align: center; }
  .sym-done .sym-lane, .sym-done .sym-art { justify-self: center; }
  .sym-legal .wv-n { left: auto; right: -6px; transform: none; }
  .sym-ai .wv-n { left: -6px; transform: none; }
  .sym-step:nth-child(1) { grid-row: 1; } .sym-step:nth-child(2) { grid-row: 2; } .sym-step:nth-child(3) { grid-row: 3; }
  .sym-step:nth-child(4) { grid-row: 4; } .sym-step:nth-child(5) { grid-row: 5; } .sym-step:nth-child(6) { grid-row: 6; }
  .sym-done .wv-n { left: 50%; top: -6px; transform: translateX(-50%); }
}

/* People on every page (Brand Book 06): an approved photo in the 14 px frame and one line in our voice */
.pb { padding-block: 72px; }
.pb-in { display: grid; gap: 32px; align-items: center; }
.pb-line { font-family: var(--display); font-weight: 500; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; letter-spacing: -0.02em; max-width: 14em; }
.pb-sub { margin-top: 16px; font-size: 18px; color: var(--slate); max-width: 30em; }
.pb-fig { margin: 0; }
.pb-fig img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: 14px; background: var(--mist); }
.pb-f03 img { object-position: center 18%; }
@media (min-width: 1024px) { .pb { padding-block: 112px; } .pb-in { grid-template-columns: 1fr 1fr; gap: 80px; } }

/* Coming next: planned, clearly not live yet */
.cm-list { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 16px; }
.cm-list li { display: grid; gap: 8px; padding: 26px 28px; border-radius: var(--r-card); border: 1px dashed #C9C5BC; background: var(--paper); }
.cm-tag { justify-self: start; font-family: var(--mono); font-size: 12px; line-height: 1; padding: 6px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--hair); color: var(--graphite); }
.cm-list b { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; }
.cm-list p { color: var(--slate); }
@media (min-width: 768px) { .cm-list { grid-template-columns: 1fr 1fr; } }

@media (min-width: 1024px) { .dw-doors.dw-six { grid-template-columns: repeat(3, 1fr); gap: 16px; } .dw-six ~ .dw-ground { margin-top: 16px; } }

/* Customer reference: the speaker frameless on white, running out at the section's bottom and right edges
   (Brand Book 06, Beskärning), looking left towards the words */
.tq { position: relative; overflow: hidden; background: var(--white); padding-top: 72px; }
.tq-in { position: relative; z-index: 2; }
.tq-quote { margin: 0; max-width: 34em; }
.tq-draft { display: inline-block; font-family: var(--mono); font-size: 12px; line-height: 1.4; padding: 6px 10px; border-radius: 10px; border: 1px dashed #C9C5BC; color: #8A5300; background: #FDF3E1; margin-bottom: 24px; }
.tq blockquote { margin: 0; }
.tq blockquote p { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); }
.tq figcaption { display: grid; gap: 2px; margin-top: 28px; padding-left: 16px; border-left: 1px solid var(--ink); }
.tq figcaption b { font-weight: 500; }
.tq figcaption span { color: var(--slate); }
.tq-img { display: block; width: 118%; max-width: none; height: auto; margin: 24px -18% 0 0; margin-left: auto; position: relative; right: -9%; }
@media (min-width: 1024px) {
  .tq { padding-top: 0; min-height: min(56vw, 860px); display: flex; align-items: center; }
  .tq-in { width: 100%; padding-block: 96px; }
  .tq-quote { max-width: 46%; }
  .tq-img { position: absolute; right: -4vw; bottom: 0; width: min(64vw, 1180px); margin: 0; z-index: 1; }
}

/* =====================================================================
   The Tone (Brand Book 08 § 4): three layers coloured by the part – a glow top left, one top right and a cool
   light-grey base. White cards with a 24 px radius sit on it. Grey text directly on the Tone is at least Slate.
   ===================================================================== */
:root { --glow-a: rgb(219 234 254 / .9); --glow-b: rgb(224 231 255 / .55); --base-top: #F1F6FE; }
.tone-doc, [data-tone="doc"] { --glow-a: rgb(219 234 254 / .9); --glow-b: rgb(224 231 255 / .55); --base-top: #F1F6FE; }
[data-tone="obl"] { --glow-a: rgb(237 233 254 / .9); --glow-b: rgb(250 232 255 / .55); --base-top: #F5F3FD; }
[data-tone="prc"] { --glow-a: rgb(211 241 244 / .85); --glow-b: rgb(226 245 247 / .5); --base-top: #F0F9FA; }
[data-tone="frm"] { --glow-a: rgb(194 224 220 / .85); --glow-b: rgb(224 239 237 / .5); --base-top: #F1F8F7; }
[data-tone="con"] { --glow-a: rgb(224 231 255 / .85); --glow-b: rgb(238 242 255 / .55); --base-top: #F3F4FE; }
.tone, .lc-panel {
  background: radial-gradient(60rem 26rem at 0% -8%, var(--glow-a), transparent 62%),
              radial-gradient(44rem 22rem at 100% 0%, var(--glow-b), transparent 66%),
              linear-gradient(180deg, var(--base-top) 0%, #F2F4F9 40%, #F0F2F7 100%); }
.tone { border-radius: 40px; padding: 16px; }
.lc-panel { border: 0 !important; border-radius: 32px !important; }
.lc-panel .lc-text p { color: var(--slate); }
.tone .lc-card, .tone .lb-card, .tone .tt, .lc-panel .lc-card { border: 0; border-radius: 24px; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 12px 32px rgba(15,23,42,.06); }
.tone-obl { --glow-a: rgb(237 233 254 / .9); --glow-b: rgb(250 232 255 / .55); --base-top: #F5F3FD; }
.tone-prc { --glow-a: rgb(211 241 244 / .85); --glow-b: rgb(226 245 247 / .5); --base-top: #F0F9FA; }
.tone-frm { --glow-a: rgb(194 224 220 / .85); --glow-b: rgb(224 239 237 / .5); --base-top: #F1F8F7; }
.tone-con { --glow-a: rgb(224 231 255 / .85); --glow-b: rgb(238 242 255 / .55); --base-top: #F3F4FE; }
@media (forced-colors: active) { .tone { background: Canvas; } }
@media (min-width: 768px) { .tone { padding: 24px; } }

/* Object tones as chips (08 § 3): the 50 step behind, the 700 step for the word */
.t-doc { background: #EFF6FF; color: #1D4ED8; }
.t-obl { background: #F5F3FF; color: #6D28D9; }
.t-prc { background: #ECF9FA; color: #0A6673; }
.t-frm { background: #F1F8F7; color: #016A63; }
.t-luis { background: linear-gradient(135deg, #F5F3FF, #EEF2FF 55%, #F0F9FF); color: #5B3FD6; }

/* The house on the Tone */
.hs-cap { font-size: 13.5px; color: var(--slate); padding: 8px 8px 14px; }
.hs-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hs-floor { position: relative; display: grid; gap: 14px; padding: 22px 22px 22px 56px; border-radius: 24px; background: var(--white); box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 12px 32px rgba(15,23,42,.05); transition: box-shadow .4s, transform .4s; }
.hs-floor .wv-n { position: absolute; left: 22px; top: 29px; }
.hs-n { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--slate); margin-bottom: 6px; }
.hs-t h3 { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.hs-t h3 .lw-ring { width: 20px; height: 20px; flex: none; }
.hs-t p { margin-top: 6px; color: var(--graphite); font-size: 15.5px; max-width: 34em; }
.hs-eng { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hs-eng li { font-size: 13px; font-weight: 500; line-height: 1; padding: 7px 11px; border-radius: 999px; }
.hs-inh { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hs-inh li { font-family: var(--mono); font-size: 11.5px; line-height: 1; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--hair); color: var(--slate); transition: background .4s, color .4s, border-color .4s; }
.js .wv-on .hs-floor.lit .hs-inh li { background: var(--ink); border-color: var(--ink); color: #fff; }
.js .wv-on .hs-floor.lit:not(.hs-ground) { box-shadow: 0 1px 2px rgba(13,13,12,.05), 0 18px 44px rgba(15,23,42,.09); }
.hs-ground { background: var(--ink); color: #fff; }
.hs-ground .hs-n { color: rgba(255,255,255,.6); }
.hs-ground .hs-t p { color: rgba(255,255,255,.78); }
.hs-ground .wv-n { background: var(--ink); box-shadow: inset 0 0 0 1px #8A8780; }
.hs-ground .wv-n.on { background: #FAF8F5; box-shadow: inset 0 0 0 1px #FAF8F5, 0 0 0 4px var(--ink); }
@media (min-width: 1200px) {
  .hs-floor { grid-template-columns: 1fr auto; align-items: start; column-gap: 24px; }
  .hs-inh { flex-direction: column; align-items: flex-end; padding-top: 2px; }
}

.tone-cx { padding: 20px 20px 16px; }
.tone-cx .cx .wv-n { box-shadow: inset 0 0 0 1px var(--hair), 0 0 0 4px transparent; }
.tone-cx .cx-also { border: 0; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 12px 32px rgba(15,23,42,.06); border-radius: 24px; }
.tone-cx .cx-gap { background: var(--white); }
.tone-cx .cx-gap .wv-n.on { box-shadow: inset 0 0 0 1px #C77700, 0 0 0 4px var(--white); }
.oc-tone .oc-card { padding: 22px 24px 8px; }

/* Luis at work: the living chat */
.lw-think { list-style: none; margin: 4px 0 0; padding: 0; display: none; gap: 4px; }
.lw-think li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--slate); transition: color .3s, opacity .3s; }
.lw-think li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); transition: background .3s, box-shadow .3s; }
.lw-think li.now { color: var(--ink); }
.lw-think li.now::before { background: linear-gradient(135deg, #8B5CF6, #6366F1 55%, #38BDF8); box-shadow: none; animation: lw-pulse 1s ease-in-out infinite; }
.lw-think li.done::before { background: var(--ink); box-shadow: none; }
@keyframes lw-pulse { 50% { transform: scale(1.35); opacity: .7; } }
.lw-live .lw-think { display: grid; }
.lw-live.lw-done .lw-think { display: none; }
.lw-live .lw-a { opacity: 0; transform: translateY(8px); transition: opacity .45s, transform .45s cubic-bezier(.2,.7,.2,1); }
.lw-live.lw-a-on .lw-a { opacity: 1; transform: none; }
.lw-live:not(.lw-ans-on) .lw-a > div > p:not(.lw-name):not(.lw-src-h) { display: none; }
.lw-live .lw-src-h, .lw-live .lw-src { opacity: 0; transition: opacity .35s; }
.lw-live.lw-src-on .lw-src-h, .lw-live.lw-src-on .lw-src { opacity: 1; }
.lw-live .lw-src li { opacity: 0; transform: translateY(6px) scale(.96); transition: opacity .35s, transform .35s cubic-bezier(.2,.7,.2,1); }
.lw-live .lw-src li.in { opacity: 1; transform: none; }
.lw-live .lw-prop { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s cubic-bezier(.2,.7,.2,1); }
.lw-live.lw-prop-on .lw-prop { opacity: 1; transform: none; }
.lw-q p.typing::after, .lw-a p.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: currentColor; animation: lw-caret .9s steps(1) infinite; }
@keyframes lw-caret { 50% { opacity: 0; } }
.lw-panel { min-height: 460px; align-content: start; }
.lw-prop-on.lw-done .lw-apply { animation: lw-invite 2.4s ease-in-out 1; }
@keyframes lw-invite { 0%, 100% { box-shadow: 0 0 0 0 rgba(109,40,217,0); } 40% { box-shadow: 0 0 0 6px rgba(109,40,217,.16); } }
@media (max-width: 767px) { .lw-panel { min-height: 0; } }

/* Reports & insights: a report Luis built. Bars rise once, one after another, when they come into view. */
.rp { display: grid; gap: 18px; padding: 22px 24px 18px; }
.rp-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); padding-bottom: 10px; }
.rp-head .lc-card-h { border: 0; padding: 0; }
.rp-new { font-size: 12px; color: #6D28D9; background: #F5F3FF; border-radius: 999px; padding: 3px 10px; }
.rp-kpi { display: grid; gap: 2px; }
.rp-kpi span { font-size: 13px; color: var(--slate); }
.rp-kpi b { font-size: 34px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.rp-kpi em { font-style: normal; font-size: 13.5px; color: #016A63; }
.rp-msg { font-size: 13.5px; color: var(--ink); margin: 0 0 10px; }
.rp-bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; height: 132px; align-items: end; border-bottom: 1px solid var(--hair); }
.rp-bars li { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.rp-bars i { display: block; width: 42%; height: calc(var(--h) * 100%); border-radius: 3px 3px 0 0; transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--i) * 60ms); }
.rp-now { background: var(--ink); }
.rp-last { background: #D6DAE1; }
.rp-bars span { position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--slate); }
.rp-legend { display: flex; gap: 16px; margin: 28px 0 0; font-size: 12px; color: var(--slate); }
.rp-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.rp-k-now::before { background: var(--ink); }
.rp-k-last::before { background: #D6DAE1; }
.rp-att-h { font-size: 13px; color: var(--slate); margin: 0 0 6px; }
.rp-att ul { list-style: none; margin: 0; padding: 0; }
.rp-att li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.rp-att b { font-weight: 500; }
.rp-st { font-size: 12.5px; color: #B45309; }
.rp-foot { font-size: 12.5px; color: var(--slate); margin: 0; }
.rp-wait .rp-bars i { transform: scaleY(0); }
@media (max-width: 420px) { .rp-att li { grid-template-columns: 1fr auto; } .rp-att .rp-st { grid-column: 1; grid-row: 2; } .rp-bars span { font-size: 10px; } }
/* in the Luis chat */
.lw-chart { margin: 4px 0 6px; padding: 14px 16px 12px; border: 1px solid var(--hair); border-radius: 16px; }
.lw-chart .rp-bars { height: 96px; }
.lw-chart .rp-legend { margin-top: 26px; }
.lw-live .lw-chart { display: none; }
.lw-live.lw-src-on .lw-chart, .lw-live.lw-done .lw-chart { display: block; }
.lw-live:not(.lw-done) .lw-chart .rp-bars i { animation: rp-rise .7s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes rp-rise { from { transform: scaleY(0); } }
/* Solutions: the reports door runs across the row – it reads across every area above it */
@media (min-width: 640px) { .dw-doors .dw-wide { grid-column: 1 / -1; } }
/* Luis page: four ways */
@media (min-width: 768px) and (max-width: 1199px) { .ways-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .ways-4 { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .rp-bars i { transition: none; animation: none !important; } }

/* Luis hero: only the ring, with one short message breathing in its centre (site.js, data-luis-orbit) */
.lo { position: relative; }
.lo-stage { position: relative; display: grid; place-items: center; max-width: 560px; margin: 0 auto; aspect-ratio: 1 / 1; }
.lo-luis { grid-area: 1 / 1; width: 100%; }
.lo-msg { grid-area: 1 / 1; z-index: 1; margin: 0; width: 46%; display: grid; gap: 6px; justify-items: center; text-align: center; pointer-events: none; }
.lo-m-src { font-size: 12px; letter-spacing: .01em; color: var(--slate); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-m-t { font-size: 17px; line-height: 1.35; font-weight: 500; color: var(--ink); text-wrap: balance; }
.js .lo-msg { transition: opacity .5s var(--ease-out), transform .6s var(--spring-soft), filter .5s var(--ease-out); }
.js .lo-msg:not(.on) { opacity: 0; transform: translateY(6px) scale(.98); filter: blur(4px); }
@media (max-width: 639px) { .lo-m-t { font-size: 15px; } .lo-msg { width: 52%; } }

/* Real plans as a board (site.js adds .lp-v): request on one line, coverage as a bar, parts in lanes by kind, one detail panel */
.lp-v .lp-ask { flex-wrap: nowrap; }
.lp-v .lp-ask p { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-v .lp-ask.full { flex-wrap: wrap; }
.lp-v .lp-ask.full p { white-space: normal; flex-basis: 100%; }
.lp-more { flex: none; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; font: 500 13px var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lp-v .lp-sum, .lp-v .lp-title { display: none; }
.lp-cov { margin: 20px 0 8px; }
.lp-bar { display: flex; gap: 3px; height: 10px; }
.lp-bar i { flex: 1; border-radius: 3px; background: var(--ink); transform-origin: left; }
.lp-bar i.gap { background: #F5C66B; }
.lp-capt { margin-top: 10px; font-size: 15px; }
.lp-capt b { font-weight: 500; }
.lp-capt span { color: var(--slate); }
.lp-board { display: grid; gap: 20px; margin-top: 24px; }
.lp-lane { display: grid; gap: 8px; align-content: start; }
.lp-lane-h { display: flex; align-items: center; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--slate); }
.lp-lane-h span { font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 999px; background: var(--mist); color: var(--graphite); }
.lp-tile { display: grid; gap: 10px; width: 100%; padding: 12px 14px; border: 1px solid var(--hair); border-left: 3px solid var(--c, var(--ink)); border-radius: 14px; background: var(--white); text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.lp-tile:hover { border-color: var(--ink); border-left-color: var(--c, var(--ink)); }
.lp-tile:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.lp-tile[aria-pressed="true"] { border-color: var(--ink); border-left-color: var(--c, var(--ink)); background: var(--mist); box-shadow: 0 10px 28px rgba(13,13,12,.06); }
.lp-t-name { font-weight: 500; font-size: 14.5px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lp-t-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lp-badge { font-size: 11.5px; line-height: 1; padding: 4px 8px; border-radius: 999px; background: #E6F4F1; color: var(--frm); }
.lp-badge.chg { background: #EEEBFE; color: #5B3FD6; }
.lp-t-meets { display: flex; gap: 3px; }
.lp-t-meets i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.lp-detail { display: grid; gap: 16px; margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--mist); }
.lp-d-head { display: grid; gap: 8px; align-content: start; }
.lp-d-head .lp-kind { justify-self: start; }
.lp-d-head h3 { font-family: var(--display); font-weight: 500; font-size: 20px; letter-spacing: -0.01em; }
.lp-d-h { font-size: 13px; color: var(--slate); margin-bottom: 6px; }
.lp-d-meets .lp-meets li::before { box-shadow: 0 0 0 3px var(--mist); }
.lp-d-sup { font-size: 14px; color: var(--slate); }
.lp-lane > .lp-detail { margin: 0 0 4px; padding: 16px; }
@media (min-width: 640px) { .lp-board { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .lp-board { grid-template-columns: repeat(var(--lanes), 1fr); }
  .lp-detail { grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px 28px; }
}
.lp-play .lp-bar i { animation: lp-seg .4s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i) * 50ms); }
.lp-play .lp-tile { animation: lp-in .45s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(250ms + var(--i) * 50ms); }
@keyframes lp-seg { from { transform: scaleX(0); opacity: .2; } to { transform: none; opacity: 1; } }
@keyframes lp-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Luis at work, played like a native chat (site.js lwPlay). Springs overshoot a touch and settle; nothing types out. */
.lw-panel { --spring: cubic-bezier(.32,1.42,.56,1); --ease: cubic-bezier(.22,1,.36,1); }
.lw-live .lw-q { opacity: 0; transform: translateY(14px) scale(.92); transform-origin: 100% 100%; transition: opacity .3s var(--ease), transform .55s var(--spring); }
.lw-live.lw-q-on .lw-q { opacity: 1; transform: none; }
.lw-live .lw-a { opacity: 0; transform: translateY(10px) scale(.98); transform-origin: 0 0; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.lw-live.lw-a-on .lw-a { opacity: 1; transform: none; }
/* one status line at a time, in Luis' colours, sliding up as the next step takes over */
.lw-live .lw-think { display: grid; height: 1.5em; overflow: hidden; margin-top: 2px; }
.lw-live.lw-ans-on .lw-think { display: none; }
.lw-live .lw-think li { grid-area: 1 / 1; padding-left: 0; opacity: 0; transform: translateY(100%); transition: opacity .22s var(--ease), transform .3s var(--ease); font-size: 14px; }
.lw-live .lw-think li::before { display: none; }
.lw-live .lw-think li.now { opacity: 1; transform: none; color: transparent; background: linear-gradient(90deg, #6D28D9, #6366F1 30%, #38BDF8 50%, #6366F1 70%, #6D28D9) 0 0 / 200% 100%; -webkit-background-clip: text; background-clip: text; animation: lw-shine 1.1s linear infinite; }
.lw-live .lw-think li.done { opacity: 0; transform: translateY(-100%); }
@keyframes lw-shine { to { background-position: -200% 0; } }
/* the answer: each word arrives sharp out of a soft blur, a wave left to right */
.lw-live:not(.lw-ans-on) .lw-a > div > p:not(.lw-name):not(.lw-src-h) { display: none; }
.lw-live.lw-ans-on:not(.lw-done) .lw-w { display: inline-block; animation: lw-word .5s var(--ease) both; animation-delay: calc(var(--i) * 16ms); }
@keyframes lw-word { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
.lw-live .lw-src li { opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .3s var(--ease), transform .5s var(--spring); transition-delay: calc(var(--i) * 70ms); }
.lw-live .lw-src li.in { opacity: 1; transform: none; }
.lw-live .lw-prop { opacity: 0; transform: translateY(18px) scale(.97); transform-origin: 50% 100%; transition: opacity .35s var(--ease), transform .6s var(--spring); }
.lw-live.lw-prop-on .lw-prop { opacity: 1; transform: none; }
/* switching question: the whole thread fades through, never cuts */
.lw-panel:not([hidden]) { animation: lw-panel .35s var(--ease) both; }
@keyframes lw-panel { from { opacity: 0; } to { opacity: 1; } }
.lw-panel { min-height: 0; }

/* Legal AI symphony, refined: soft S-threads (data-curve), the step being played stands out, the rest wait quietly */
.sym-step { --spring: cubic-bezier(.32,1.3,.56,1); transition: border-color .45s, box-shadow .45s, opacity .45s, transform .6s var(--spring); }
.js .wv-on .sym-step:not(.lit) { opacity: .38; transform: translateY(10px) scale(.985); }
.js .wv-on .sym-step.lit:not(.sym-done) { border-color: var(--hair); box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 10px 28px rgba(13,13,12,.05); }
.js .wv-on .sym-legal.now { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 24px 56px rgba(13,13,12,.10); }
.js .wv-on .sym-ai.now { border-color: transparent; box-shadow: 0 0 0 1.5px #8B5CF6, 0 0 0 6px rgba(139,92,246,.10), 0 24px 56px rgba(91,63,214,.12); }
.js .wv-on .sym-step.now .sym-art { background: #F1EEFE; color: #3B2A8C; }
.js .wv-on .sym-legal.now .sym-art { background: var(--mist); color: var(--ink); }
.sym-art { transition: background .45s, color .45s; }

/* The foundation house, quieter: what each layer inherits is a row of fine checks that ink in as the dot passes,
   not black pills. Layers sit on white with hairlines; only the ground keeps its weight. */
.lh-layer { background: var(--white); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1), border-color .4s, box-shadow .4s; }
.lh-layer.got:not(.lh-ground) { border-color: #E3E0DA; box-shadow: 0 1px 2px rgba(13,13,12,.03), 0 8px 22px rgba(13,13,12,.04); }
.lh-luis { background: linear-gradient(135deg, #FBFAFF, #F6F5FF 60%, #F3F8FF); border-color: #E7E3FB; }
.lh-luis .lh-t b { display: flex; align-items: center; gap: 8px; }
.lh-luis .lw-ring { width: 20px; height: 20px; flex: none; }
.lh-gets { gap: 6px 14px; }
.lh-gets li { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 12.5px; color: var(--slate); transition: color .4s; }
.lh-gets li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); background: var(--white) center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23D9D5CE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: background-color .4s, box-shadow .4s, transform .5s cubic-bezier(.32,1.42,.56,1); }
.lh-layer.got .lh-gets li { background: none; border: 0; color: var(--ink); }
.lh-layer.got .lh-gets li::before { background-color: var(--ink); box-shadow: none; transform: scale(1.06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.lh-layer.got .lh-gets li:nth-child(2), .lh-layer.got .lh-gets li:nth-child(2)::before { transition-delay: .08s; }
.lh-layer.got .lh-gets li:nth-child(3), .lh-layer.got .lh-gets li:nth-child(3)::before { transition-delay: .16s; }
.lh-ground { background: var(--ink); }
.lh-new { border-style: dashed; }
.lh-dot { box-shadow: 0 0 0 3px #fff, 0 0 0 9px rgba(13,13,12,.06); }

/* Trust center (security page): four plain answers, statuses said as they are */
.tc { display: grid; gap: 16px; margin-top: 48px; }
.tc-card { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--white); }
.tc-k { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.tc-card h3 { font-family: var(--display); font-weight: 500; font-size: 22px; letter-spacing: -0.01em; line-height: 1.25; }
.tc-card > p:not(.tc-k) { color: var(--graphite); font-size: 15.5px; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 6px 0 0; padding: 0; }
.tc-tags li { font: 12.5px var(--mono); padding: 6px 11px; border: 1px solid var(--hair); border-radius: 999px; }
.tc-certs { list-style: none; margin: 4px 0 0; padding: 0; }
.tc-certs li { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 4px 12px; padding: 11px 0; border-top: 1px solid var(--mist); }
.tc-certs b { font-weight: 500; font-size: 15.5px; }
.tc-certs span { font-size: 14px; color: var(--slate); }
.tc-certs i { font-style: normal; font-size: 12px; line-height: 1; padding: 5px 9px; border-radius: 999px; background: #FDF3E1; color: #8A5300; white-space: nowrap; }
.tc-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.tc-list li { position: relative; padding-left: 26px; font-size: 15px; color: var(--graphite); }
.tc-list li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink) center / 9px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tc-card .hero-cta { margin-top: 8px; }
@media (min-width: 768px) { .tc { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .tc-card { padding: 20px; } .tc-certs li { grid-template-columns: 1fr auto; } .tc-certs span { grid-column: 1; } }

/* The house on the start page, quieter: what each floor inherits is a row of fine checks that ink in as the thread
   reaches the floor (same language as the foundation page), not black pills */
.hs-inh { gap: 6px 14px; }
.hs-inh li { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; font-family: var(--sans); font-size: 12.5px; color: var(--slate); transition: color .4s; }
.hs-inh li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); background: var(--white) center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23D9D5CE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: background-color .4s, box-shadow .4s, transform .5s cubic-bezier(.32,1.42,.56,1); }
.js .wv-on .hs-floor.lit .hs-inh li, .hs-floor .hs-inh li { background: none; border: 0; }
.js .wv-on .hs-floor.lit .hs-inh li { color: var(--ink); }
.js .wv-on .hs-floor.lit .hs-inh li::before, html:not(.js) .hs-inh li::before { background-color: var(--ink); box-shadow: none; transform: scale(1.06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.js .wv-on .hs-floor.lit .hs-inh li:nth-child(2), .js .wv-on .hs-floor.lit .hs-inh li:nth-child(2)::before { transition-delay: .08s; }
.js .wv-on .hs-floor.lit .hs-inh li:nth-child(3), .js .wv-on .hs-floor.lit .hs-inh li:nth-child(3)::before { transition-delay: .16s; }
.lp-more:focus-visible, .lo-luis:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 999px; }

/* Footer with something to say: three short columns and where Paragraf runs */
.foot-in { align-items: start; }
.foot-cols { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.foot-h { font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.foot-cols ul { display: grid !important; gap: 0 !important; }
.foot-cols a { min-height: 36px !important; }
@media (min-width: 1024px) { .foot-in { grid-template-columns: auto 1fr; column-gap: 96px; } .foot-cols { grid-template-columns: repeat(3, auto); justify-content: end; column-gap: 72px; } }

/* One motion language: everything eases out the same way, and what pops in settles with a small spring */
:root { --ease-out: cubic-bezier(.22,1,.36,1); --spring-soft: cubic-bezier(.32,1.3,.56,1); }
html.js [data-reveal] { transform: translateY(16px) scale(.99); transition: opacity .6s var(--ease-out), transform .8s var(--ease-out); }
.lc-fill { transition: width .7s var(--ease-out); }
.lc-panel.enter, .ch-result.swap { animation: lc-in .5s var(--ease-out); }
.wv-n { transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), transform .5s var(--spring-soft); }
.wv-n.on { transform: scale(1.04); }
.lh-rail-fill, .lh-dot { transition-timing-function: var(--ease-out); }
html.js .lh .lh-layer { transition: opacity .5s var(--ease-out), transform .6s var(--spring-soft), border-color .4s, box-shadow .4s; }

/* Buttons that answer the hand: a lift on hover, a small press on click. Links draw their underline in. */
.btn { transition: background .2s, box-shadow .25s var(--ease-out), transform .3s var(--spring-soft); }
.btn:hover { box-shadow: 0 6px 18px rgba(13,13,12,.14); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s; }
.btn-ghost:hover { box-shadow: 0 4px 14px rgba(13,13,12,.06); }
.link span { border-bottom: 0; padding-bottom: 3px; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 1px no-repeat, linear-gradient(var(--hair), var(--hair)) 0 100% / 100% 1px no-repeat; transition: background-size .4s var(--ease-out); }
.link:hover span { background-size: 100% 1px, 100% 1px; }
.link:active span { opacity: .7; }
@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }
.foot-bottom { margin-top: 32px; }

/* Typography: headings break in balanced lines, body text avoids a lonely last word */
h1, h2, h3, .h2, .lw-t, .rel b { text-wrap: balance; }
p, .lead, li span { text-wrap: pretty; }

/* Processes builder: the same quiet checks for what a new process inherits */
.bd-inherit ul { gap: 6px 14px; }
.bd-inherit li { padding: 0; border: 0; border-radius: 0; background: none; transition: color .4s; }
.bd-inherit li::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); background: var(--white) center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23D9D5CE' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); transition: background-color .4s, box-shadow .4s, transform .5s var(--spring-soft); }
.bd-inherit li.got { background: none; border: 0; color: var(--ink); }
.bd-inherit li.got::before { background-color: var(--ink); box-shadow: none; transform: scale(1.06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.1 7.2 8 3' fill='none' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Knowledge: the rules article by article – calm reading pages */
.kb-hero + .kb-sec { padding-top: 24px; }
.kb-hero h1 { max-width: 14em; }
.kb-lead { max-width: 40em; margin-top: 20px; }
.kb-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .kb-grid { grid-template-columns: 4fr 7fr; gap: 80px; } }
.kb-req { list-style: none; margin: 0; padding: 0; counter-reset: kb; border-top: 1px solid var(--ink); }
.kb-req li { counter-increment: kb; display: grid; grid-template-columns: 40px 1fr; gap: 8px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--hair); font-size: 17px; }
.kb-req li i::before { content: counter(kb, decimal-leading-zero); font: 12.5px var(--mono); font-style: normal; color: var(--slate); }
.kb-src { margin-top: 18px; font-size: 13.5px; color: var(--slate); }
.kb-src a, .kb-off { color: var(--ink); }
.kb-para { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.kb-para li { display: grid; gap: 2px; padding: 16px 20px; border-radius: 16px; background: var(--white); border: 1px solid var(--hair); }
.kb-para b { font-weight: 500; }
.kb-para span { font-size: 15px; color: var(--slate); }
.kb-note { margin-top: 14px; font-size: 13.5px; color: var(--slate); }
.kb-laws { display: grid; gap: 24px; }
@media (min-width: 1024px) { .kb-laws { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.kb-law { display: grid; align-content: start; gap: 8px; }
.kb-law-h { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.kb-law-h b { font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.01em; }
.kb-law-h span { font-size: 14px; color: var(--slate); }
.kb-law ul { list-style: none; margin: 0; padding: 0; }
.kb-link { position: relative; display: grid; gap: 2px; padding: 16px 32px 16px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); transition: padding .3s var(--ease-out); }
.kb-link:hover { padding-left: 6px; }
.kb-art { font: 12.5px var(--mono); color: var(--slate); }
.kb-link b { font-weight: 500; font-size: 16.5px; }
.kb-link i { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-style: normal; transition: transform .3s var(--ease-out); }
.kb-link:hover i { transform: translate(4px, -50%); }
.kb-off { margin-top: 8px; font-size: 13.5px; }

/* Language switch: quiet text link next to the call to action, and in the footer */
.lang { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--slate); text-decoration: none; }
.lang:hover { color: var(--ink); }
.lang-nav { margin-left: auto; margin-right: 16px; }
@media (max-width: 1023px) { .lang-nav { margin-right: 8px; } }

/* Footer, per the brand book: one quiet grid, labels in the site's own voice (no capitals), a short line under the logo,
   and a bottom row that sits on one baseline */
.foot { padding-block: 64px 32px; }
.foot-brand { display: grid; gap: 16px; align-content: start; }
.foot-tag { max-width: 22em; font-size: 14px; line-height: 1.5; color: var(--slate); }
.foot-h { font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.foot-cols a { min-height: 34px !important; }
.foot-bottom { display: grid; gap: 8px; align-items: center; margin-top: 48px; padding-top: 20px; font-size: 13px; color: var(--muted); }
.foot-bottom .lang { min-height: 0; font-size: 13px; }
@media (min-width: 768px) {
  .foot-cols { grid-template-columns: repeat(4, 1fr); column-gap: 32px; }
  .foot-bottom { grid-template-columns: 1fr auto 1fr; } .foot-bottom .lang { justify-self: end; }
}
@media (min-width: 1024px) {
  .foot-in { grid-template-columns: 1fr 2fr; column-gap: 64px; }
  .foot-cols { grid-template-columns: repeat(4, max-content); justify-content: space-between; column-gap: 40px; }
}
@media (max-width: 767px) { .foot-cols { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
/* nav labels never break onto two lines; between 1024 and 1279 the links sit a little closer */
.nav-links a, .mega-btn { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1279px) { .nav-links a, .mega-btn { padding-inline: 10px; } }

/* The living house: the dot is moved by a spring in site.js (as in the brand showreel), so no CSS easing on its way.
   It pops in with a small overshoot, and each arrival opens one quiet ring. */
.lh-rail-fill, .lh-dot { transition: none; }
.lh-dot { will-change: bottom, transform; }
html.js .lh .lh-dot { scale: 0; }
html.js .lh .lh-dot.on { animation: lhPop .7s var(--spring-soft) both; }
@keyframes lhPop { 0% { scale: 0; } 60% { scale: 1.18; } 100% { scale: 1; } }
.lh-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--ink); opacity: 0; pointer-events: none; }
.lh-dot.land::after { animation: lhLand .9s var(--ease-out); }
@keyframes lhLand { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html.js .lh .lh-dot { scale: 1; } html.js .lh .lh-dot.on, .lh-dot.land::after { animation: none; } }

/* The living house, simpler: three threads – permissions, log, compliance – rise from the foundation on the right
   and pass through every layer. The dot leads them up; where they cross a layer, three small nodes ink in.
   The rule is drawn once instead of written on every card. */
.lh-layer { padding: 16px 72px 16px 18px; }
.lh-gets { display: none; }
.lh-rail { left: auto; right: 28px; top: 30px; bottom: 30px; width: 29px;
  background: linear-gradient(var(--hair), var(--hair)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--hair), var(--hair)) 14px 0 / 1px 100% no-repeat, linear-gradient(var(--hair), var(--hair)) 28px 0 / 1px 100% no-repeat; }
.lh-rail-fill { width: 29px; margin-left: 0;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 14px 0 / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 28px 0 / 1px 100% no-repeat; }
.lh-dot { left: 8px; }
.lh-nodes { position: absolute; right: 16px; top: 50%; width: 29px; height: 7px; margin-top: -3.5px; z-index: 3; display: flex; justify-content: space-between; pointer-events: none; }
.lh-nodes i { width: 7px; height: 7px; margin: 0 -3px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); transition: background .35s var(--ease-out), box-shadow .35s var(--ease-out), scale .5s var(--spring-soft); }
.lh-layer.got .lh-nodes i, .lh-ground .lh-nodes i { background: var(--ink); box-shadow: 0 0 0 2px var(--white); scale: 1.15; }
.lh-layer.got .lh-nodes i:nth-child(2) { transition-delay: .06s; } .lh-layer.got .lh-nodes i:nth-child(3) { transition-delay: .12s; }
.lh-ground .lh-nodes i { background: #fff; box-shadow: 0 0 0 2px var(--ink); scale: 1; }
.lh-ground { padding-right: 72px; }
/* the dot sits on the middle thread, above the nodes */
.lh-rail { z-index: 4; }
@media (max-width: 639px) { .lh-layer { padding-right: 64px; } .lh-rail { right: 24px; } .lh-nodes { right: 12px; } }
button { font-family: inherit; }

/* Homepage: what teams use today, on one foundation. Each row: a capability, who it is for, and three nodes where the
   threads – permissions, log, rules – cross it. Threads are drawn per row (from the row below up to this row's centre),
   so they start at the foundation and stop exactly at the top row: nothing overshoots. */
.cs { padding: 12px; }
.cs-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cs-row { --x: 22px; position: relative; display: grid; grid-template-columns: 1fr; gap: 4px; padding: 12px 76px 12px 18px; background: var(--white); border-radius: 16px; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 8px 22px rgba(15,23,42,.05); }
.cs-row h3 { font-size: 17px; letter-spacing: -0.01em; }
.cs-row p { font-size: 13.5px; line-height: 1.4; color: var(--slate); margin-top: 2px; }
.cs-who { font-size: 12.5px; color: var(--muted); }
.cs-nodes { position: absolute; right: var(--x); top: 50%; width: 29px; height: 7px; margin-top: -3.5px; z-index: 2; display: flex; justify-content: space-between; }
.cs-nodes i { width: 7px; height: 7px; margin: 0 -3px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1px var(--hair); }
/* the three threads: one element from the foundation's centre to the top row's centre (placed by site.js) */
.cs-stack { position: relative; }
.cs-threads { position: absolute; right: 22px; width: 29px; z-index: 1; pointer-events: none;
  background: linear-gradient(var(--ink), var(--ink)) 0 0 / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 14px 0 / 1px 100% no-repeat, linear-gradient(var(--ink), var(--ink)) 28px 0 / 1px 100% no-repeat; }
.cs-ground { background: var(--ink); color: #fff; box-shadow: none; }
.cs-ground p { color: rgba(255,255,255,.72); }
.cs-ground .cs-nodes i { background: var(--ink); box-shadow: 0 0 0 1.5px #fff; }
.cs-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: #fff; }
.cs-keys li { display: inline-flex; align-items: center; gap: 7px; }
.cs-keys li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
@media (min-width: 640px) { .cs-row { grid-template-columns: 1fr auto; align-items: center; column-gap: 20px; } .cs-who { text-align: right; } .cs-ground .cs-keys { grid-column: 1 / -1; } }
/* motion: the threads draw upward from the foundation, row by row, and each row's nodes ink in as they arrive */
html.js .cs-threads { transform: scaleY(0); transform-origin: 50% 100%; transition: transform 1.1s var(--ease-out) .1s; }
html.js .cs-nodes i { transition: background .3s var(--ease-out) calc(var(--i) * 140ms + 260ms), box-shadow .3s var(--ease-out) calc(var(--i) * 140ms + 260ms), scale .5s var(--spring-soft) calc(var(--i) * 140ms + 260ms); }
html.js .cs.in .cs-threads { transform: none; }
html.js .cs.in .cs-row:not(.cs-ground) .cs-nodes i, html:not(.js) .cs-row:not(.cs-ground) .cs-nodes i { background: var(--ink); box-shadow: 0 0 0 2px var(--white); scale: 1.12; }
@media (prefers-reduced-motion: reduce) { html.js .cs-threads { transform: none; transition: none; } html.js .cs-nodes i { transition: none; } }




/* Processes: the process engine as a builder canvas, in an app window. Brand rules: Sans for all reading text, Display for names,
   ink for state, hairlines and paper for surfaces; the Processes tone appears only where it means the process itself.
   Run mode follows the scroll: a stage lights at mid-screen, the data it receives rides the link in, the log gets its line.
   Build mode: Luis adds the same stages from a chat. Plain HTML, so the Swedish build translates it. */
.pc { position: relative; margin-top: 48px; padding-bottom: 40px; --pcs: cubic-bezier(.32,1.3,.56,1); --pce: cubic-bezier(.2,.7,.2,1);
  --pc-lift: 0 1px 2px rgba(13,13,12,.04), 0 10px 28px rgba(13,13,12,.05); }
.pc .example { position: absolute; left: 0; bottom: 0; }
.pc-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.pc-modes { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--mist); border: 1px solid var(--hair); }
.pc-mode { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 15px; color: var(--slate);
  padding: 9px 18px; border-radius: 999px; transition: background .35s var(--pce), color .35s, box-shadow .35s; }
.pc-mode .lw-ring { width: 16px; height: 16px; }
.pc-mode[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(13,13,12,.06), 0 4px 12px rgba(13,13,12,.05); }
.pc-mode:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.pc-replay { background: none; border: 0; cursor: pointer; font: inherit; font-size: 15px; color: var(--slate); padding: 6px 0; }
.pc[data-mode="run"] .pc-replay { display: none; }
.pc-grid { display: grid; gap: 20px; align-items: start; }
.pc-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }

/* the window */
.pc-win { border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--white); overflow: hidden; box-shadow: 0 24px 60px rgba(13,13,12,.07); }
.pc-chrome { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--hair); }
.pc-chrome b { font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.pc-mark { width: 10px; height: 10px; border-radius: 3px; background: var(--prc); flex: none; }
.pc-state { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate); }
.pc-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.pc-live::before { animation: pc-pulse 2.4s ease-in-out infinite; }
@keyframes pc-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(13,13,12,.25); } 50% { box-shadow: 0 0 0 5px rgba(13,13,12,0); } }
.pc-draft { display: none; }
.pc-draft::before { background: none; box-shadow: inset 0 0 0 1.5px var(--slate); }
.pc[data-mode="build"] .pc-draft { display: inline-flex; }
.pc[data-mode="build"] .pc-live { display: none; }
.pc-board { position: relative; padding: 40px 16px 44px; display: flex; flex-direction: column; align-items: center;
  background: radial-gradient(circle, rgba(13,13,12,.07) 1px, transparent 1.3px) 0 0 / 22px 22px, var(--paper); }

/* nodes */
.pc-start, .pc-end { display: inline-flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--white); border: 1px solid var(--hair); box-shadow: var(--pc-lift); }
.pc-start b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.pc-start small, .pc-xn small { display: block; font-size: 13px; line-height: 1.35; color: var(--slate); }
.pc-play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--prc); color: #fff; }
.pc-play .pc-i { fill: #fff; stroke: none; width: 14px; height: 14px; }
.pc-end { padding: 10px 20px 10px 10px; font-size: 15px; color: var(--slate); }
.pc-end .pc-i { width: 24px; height: 24px; padding: 5px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); background: var(--white); stroke-width: 2; color: var(--muted); transition: background .45s, color .45s, box-shadow .45s; }
.pc-stage { position: relative; width: min(460px, 100%); border-radius: 20px; border: 1px solid var(--hair); background: var(--white); padding: 18px 18px 18px; box-shadow: var(--pc-lift); }
.pc-sh { display: flex; align-items: center; gap: 12px; }
.pc-sh b { font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.2; letter-spacing: -0.01em; }
.pc-num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--hair); font-size: 13.5px; color: var(--slate); font-variant-numeric: tabular-nums; transition: background .45s, color .45s, box-shadow .45s; }
.pc-badge { margin-left: auto; font-size: 13px; color: var(--muted); }
.pc-when { margin: 8px 0 14px 40px; font-size: 14px; color: var(--slate); }
.pc-acts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pc-act { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px 8px 8px; border-radius: 14px; border: 1px solid var(--hair); background: var(--paper); transition: background .45s, border-color .45s; }
.pc-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; background: var(--white); color: var(--graphite); box-shadow: inset 0 0 0 1px var(--hair); transition: background .45s, color .45s, box-shadow .45s; }
.pc-at { display: grid; gap: 1px; }
.pc-at small { font-size: 12.5px; line-height: 1.3; color: var(--slate); }
.pc-at span { font-size: 15px; line-height: 1.35; color: var(--ink); }

/* links and the data riding them */
.pc-link { position: relative; width: 1px; height: 56px; background: var(--hair); flex: none; }
.pc-link::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: top; transition: transform .6s var(--pce); }
.pc-link::before { content: ""; position: absolute; left: -1px; width: 3px; height: 20px; top: -20px; border-radius: 2px; z-index: 1; opacity: 0;
  background: linear-gradient(transparent, rgba(255,255,255,.95), transparent); }
.pc-link > i { position: absolute; left: -4px; top: 0; width: 9px; height: 9px; border-radius: 50%; z-index: 2; background: var(--ink); box-shadow: 0 0 0 4px rgba(13,13,12,.08); opacity: 0; }
.pc-pk { position: absolute; left: 20px; top: 50%; transform: translate(-6px, -50%); display: inline-flex; gap: 14px; white-space: nowrap; padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--hair); box-shadow: 0 6px 18px rgba(13,13,12,.06); opacity: 0; pointer-events: none; transition: opacity .4s, transform .6s var(--pcs); }
.pc-kv { display: inline-flex; gap: 6px; font-size: 13px; line-height: 1.35; }
.pc-kv i { font-style: normal; color: var(--slate); }
.pc-kv b { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the condition and its fork */
.pc-cond { width: min(460px, 100%); display: grid; justify-items: center; }
.pc-if { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 6px 18px 6px 6px; border-radius: 999px; border: 1px solid var(--hair); background: var(--white); box-shadow: var(--pc-lift); font-size: 15px; transition: box-shadow .45s; }
.pc-if .pc-ico { width: 30px; height: 30px; border-radius: 50%; }
.pc-if > span:not(.pc-ico) { color: var(--slate); }
.pc-if b { font-weight: 500; }
.pc-fork { display: block; width: 100%; height: 32px; overflow: visible; }
.pc-fork path { fill: none; stroke: var(--hair); stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke .5s; }
.pc-fork .pc-skip { stroke-dasharray: 3 4; stroke: #CFCAC2; }
.pc-branches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.pc-br { border-radius: 18px; border: 1px solid var(--hair); background: var(--white); padding: 12px; box-shadow: var(--pc-lift); transition: opacity .45s, border-color .45s, box-shadow .45s; }
.pc-bl { display: block; font-size: 13px; color: var(--slate); margin: 0 0 8px 2px; }
.pc-br p { margin: 0 2px; font-size: 15px; line-height: 1.4; color: var(--slate); }
.pc-no { background: transparent; box-shadow: none; border-style: dashed; border-color: #CFCAC2; }

/* systems outside Paragraf: the counterparty and the ERP */
.pc-x { display: flex; align-items: center; margin-top: 12px; transition: opacity .45s; }
.pc-xn { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--white); border: 1px dashed #CFCAC2; font-size: 15px; line-height: 1.3; transition: border-color .45s, box-shadow .45s; }
.pc-xn b { font-weight: 500; }
.pc-wire { display: none; }
.pc-pk-x { position: static; display: grid; gap: 4px; margin-left: 12px; padding: 10px 14px; border-radius: 14px; transform: translateX(-6px); }

/* side panel */
.pc-side { border-radius: var(--r-card); border: 1px solid var(--hair); background: var(--white); overflow: hidden; box-shadow: 0 24px 60px rgba(13,13,12,.06); }
.pc-side-h { margin: 0; display: flex; align-items: center; height: 56px; padding: 0 20px; border-bottom: 1px solid var(--hair); font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.pc-log ol { position: relative; list-style: none; margin: 0; padding: 14px 20px 18px; display: grid; }
.pc-log li { position: relative; display: grid; gap: 1px; padding: 8px 0 8px 24px; }
.pc-log li > span:last-child { font-size: 15px; line-height: 1.4; color: var(--ink); }
.pc-log li::before { content: ""; position: absolute; left: 3px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 1.5px var(--hair), 0 0 0 3px var(--white); z-index: 1; }
.pc-log li::after { content: ""; position: absolute; left: 7.5px; top: 16px; bottom: -14px; width: 1px; background: var(--hair); }
.pc-log li:last-child::after, .js .pc-log li.now::after { display: none; }
.pc-t { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; order: -1; }
.pc-chat { display: none; }
.pc-chat > :not(.pc-side-h) { margin-left: 20px; margin-right: 20px; }
.pc-chat .pc-msg:first-of-type { margin-top: 18px; }
.pc[data-mode="build"] .pc-chat { display: block; }
.pc[data-mode="build"] .pc-log { display: none; }
.pc-msg { margin-bottom: 16px; transition: opacity .45s, transform .6s var(--pcs); }
.pc-msg p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.pc-me p { margin-left: 28px; padding: 14px 16px; border-radius: 18px 18px 6px 18px; background: var(--mist); border: 1px solid var(--hair); }
.pc-who { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--slate); margin-bottom: 6px; }
.pc-who .lw-ring { width: 18px; height: 18px; }
.pc-built { list-style: none; padding: 6px 14px; display: grid; margin-bottom: 16px; border-radius: 16px; border: 1px solid var(--hair); background: var(--paper); }
.pc-built li { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14.5px; line-height: 1.35; border-top: 1px solid var(--hair); transition: opacity .45s, transform .6s var(--pcs); }
.pc-built li:first-child { border-top: 0; }
.pc-built .pc-i { width: 20px; height: 20px; padding: 4px; border-radius: 50%; background: var(--ink); color: #fff; stroke-width: 2; }
.pc-note { margin-top: 4px; margin-bottom: 20px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 14px; line-height: 1.5; color: var(--slate); }

/* run mode: done is inked in, now is ringed in ink and lifts, the rest waits */
.js .pc [data-at], .js .pc [data-b] { transition: opacity .5s var(--pce), transform .6s var(--pcs), border-color .45s, box-shadow .45s; }
.js .pc[data-mode="run"] .pc-board [data-at]:not(.on) { opacity: .42; }
.js .pc[data-mode="run"] .pc-no, .js .pc[data-mode="run"] .pc-cond.on .pc-no { opacity: .5; }
.js .pc .pc-stage.now, .js .pc .pc-br.now, .js .pc .pc-start.now, .js .pc .pc-end.now { border-color: var(--ink); transform: translateY(-2px);
  box-shadow: 0 0 0 1px var(--ink), 0 24px 56px rgba(13,13,12,.10); }
.js .pc .pc-cond.now .pc-if { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 16px 40px rgba(13,13,12,.08); }
.js .pc .pc-stage.on .pc-num { background: var(--ink); color: #fff; box-shadow: none; }
.js .pc .pc-stage.now .pc-act, .js .pc .pc-br.now .pc-act { background: var(--white); }
.js .pc .pc-stage.now .pc-ico, .js .pc .pc-br.now .pc-ico, .js .pc .pc-cond.on .pc-if .pc-ico, .js .pc .pc-x.on .pc-ico { color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.js .pc .pc-stage.now .pc-act:nth-child(2) .pc-ico { transition-delay: .12s; } .js .pc .pc-stage.now .pc-act:nth-child(3) .pc-ico { transition-delay: .24s; }
.js .pc .pc-cond.on .pc-take { stroke: var(--ink); }
.js .pc .pc-x.on .pc-xn { border-style: solid; border-color: var(--ink); }
.js .pc .pc-end.on .pc-i { background: var(--ink); color: #fff; box-shadow: none; }
.js .pc .pc-end.on { color: var(--ink); }
.js .pc .pc-link.on::after { transform: scaleY(1); }
.js .pc[data-mode="run"] .pc-link.on::before { opacity: 1; animation: pc-flow 2.4s linear infinite; }
@keyframes pc-flow { from { top: -20px; } to { top: 100%; } }
.js .pc[data-mode="run"] .pc-link.now > i { animation: pc-drop .9s var(--pce) both; }
@keyframes pc-drop { 0% { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 9px); opacity: 0; } }
.js .pc[data-mode="run"] .pc-link.on .pc-pk { opacity: 1; transform: translate(0, -50%); }
.js .pc[data-mode="run"] .pc-link.now .pc-pk { border-color: var(--ink); }
.js .pc[data-mode="run"] .pc-x.on .pc-pk-x { opacity: 1; transform: none; }
.js .pc:not([data-mode="run"]) .pc-pk { opacity: 0 !important; }
.js .pc-log li:not(.on) { display: none; }
.js .pc-log li.now { animation: pc-in .6s var(--pcs) both; }
.js .pc-log li.on::before { background: var(--ink); box-shadow: 0 0 0 3px var(--white); }
.js .pc-log li.now::before { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px rgba(13,13,12,.10); }
.js .pc-log li.on:not(.now) > span:last-child { color: var(--graphite); }
@keyframes pc-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* build mode: stages not yet added are dashed ghosts; each settles in as Luis adds it (Luis keeps his own colours) */
.js .pc[data-mode="build"] .pc-board [data-b]:not(.on) { opacity: .32; transform: scale(.97); box-shadow: none; }
.js .pc[data-mode="build"] .pc-stage:not(.on), .js .pc[data-mode="build"] .pc-br:not(.on) { border-style: dashed; border-color: #CFCAC2; }
.js .pc[data-mode="build"] .pc-board .now:is(.pc-stage, .pc-br, .pc-start, .pc-end) { border-color: transparent; transform: translateY(-2px); box-shadow: 0 0 0 1.5px #8B5CF6, 0 0 0 6px rgba(139,92,246,.10), 0 24px 56px rgba(91,63,214,.10); }
.js .pc[data-mode="build"] .pc-cond.now .pc-if { border-color: transparent; box-shadow: 0 0 0 1.5px #8B5CF6, 0 0 0 6px rgba(139,92,246,.10); }
.js .pc[data-mode="build"] .pc-stage.now .pc-ico { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.js .pc-chat [data-b]:not(.on) { opacity: 0; transform: translateY(8px); }

@media (min-width: 1024px) {
  .pc-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .pc-side { position: sticky; top: 96px; }
}
/* wide: the outside systems sit beside their stage, wired in */
@media (min-width: 1200px) {
  .pc-x { position: absolute; top: 50%; margin: 0; transform: translateY(-50%); }
  .pc-x-l { right: 100%; flex-direction: row-reverse; }
  .pc-x-r { left: 100%; }
  .pc-wire { display: block; position: relative; width: 24px; height: 1px; background: #CFCAC2; }
  .pc-x.on .pc-wire { background: var(--ink); }
  .pc-stage, .pc-cond { width: min(440px, 100%); }
  .pc-xn { width: 168px; }
  .pc-pk-x { position: absolute; top: calc(100% + 10px); left: 24px; margin: 0; width: 168px; white-space: normal; }
  .pc-pk-x .pc-kv { display: grid; gap: 0; }
  .js .pc[data-mode="run"] .pc-x.on .pc-wire i { position: absolute; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: pc-wire 1.8s var(--pce) infinite; }
  .js .pc[data-mode="run"] .pc-x-l.on .pc-wire i { animation-name: pc-wire-l; }
  @keyframes pc-wire { from { left: 0; opacity: 1; } to { left: 100%; opacity: 0; } }
  @keyframes pc-wire-l { from { left: 100%; opacity: 1; } to { left: 0; opacity: 0; } }
}
@media (max-width: 1199px) {
  .pc-x { flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--hair); }
  .pc-pk-x { margin-left: 0; display: inline-flex; flex-wrap: wrap; gap: 4px 14px; white-space: normal; }
}
@media (max-width: 1023px) {
  .pc[data-mode="build"] .pc-side { order: -1; }
  .js .pc[data-mode="run"] .pc-side { position: sticky; bottom: 12px; z-index: 3; box-shadow: 0 16px 40px rgba(13,13,12,.14); }
  .js .pc[data-mode="run"] .pc-side-h { height: 40px; font-size: 14px; }
  .js .pc[data-mode="run"] .pc-log ol { padding: 6px 16px 10px; }
  .js .pc[data-mode="run"] .pc-log li.on:has(~ li.on) { display: none; }
  .js .pc[data-mode="run"] .pc-log li::after { display: none; }
  .js .pc[data-mode="run"] .pc-log ol:not(:has(li.on))::before { content: "–"; color: var(--slate); }
}
@media (max-width: 520px) {
  .pc-board { padding: 28px 12px 32px; }
  .pc-chrome { padding: 0 16px; }
  .pc-stage { padding: 16px 14px; }
  .pc-when { margin-left: 0; }
  .pc-mode { padding: 8px 14px; font-size: 14.5px; }
  .pc-branches { gap: 8px; }
  .pc-br { padding: 10px; }
  .pc-act { padding-right: 10px; }
}
@media (prefers-reduced-motion: reduce) { .pc *, .pc { transition: none !important; animation: none !important; } }

/* --- contact form (dialog + contact page) -------------------------------- */
html.cf-open { overflow: hidden; }
.cf-dialog { width: min(640px, calc(100% - 2 * var(--pad))); max-height: calc(100dvh - 32px); margin: auto; padding: clamp(28px, 4vw, 44px); border: 0; border-radius: var(--r-card); background: var(--white); color: var(--ink); box-shadow: 0 30px 80px rgba(13,13,12,.22); overflow: auto; }
.cf-dialog::backdrop { background: rgba(13,13,12,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.cf-dialog[open] { animation: cf-in .35s var(--ease-out, ease-out); }
@keyframes cf-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cf-dialog[open] { animation: none; } }
.cf-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--mist); cursor: pointer; }
.cf-x::before, .cf-x::after { content: ""; position: absolute; left: 14px; top: 21px; width: 16px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.cf-x::after { transform: rotate(-45deg); }
.cf-x:hover { background: var(--hair); }
.cf-h { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; padding-right: 48px; }
.cf-lead { margin-top: 12px; color: var(--slate); font-size: 16px; line-height: 1.55; }
.cf-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 640px) { .cf-grid { grid-template-columns: 1fr 1fr; } .cf-wide { grid-column: 1 / -1; } }
.cf-f { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--graphite); }
.cf-f i { font-style: normal; color: var(--slate); }
.cf-f input, .cf-f select, .cf-f textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: var(--r-field); background: var(--white); color: var(--ink); font: 400 16px/1.4 var(--sans); transition: border-color .2s, box-shadow .2s; }
.cf-f textarea { resize: vertical; min-height: 96px; }
.cf-f select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230D0D0C' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.cf-f input:focus, .cf-f select:focus, .cf-f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(13,13,12,.08); }
.cf-f [aria-invalid="true"] { border-color: #B42318; }
.cf-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--slate); }
.cf-consent input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); }
.cf-consent input[aria-invalid="true"] { outline: 2px solid #B42318; outline-offset: 2px; }
.cf-err { margin-top: 14px; font-size: 14px; color: #B42318; }
.cf-actions { margin-top: 24px; }
@media (max-width: 639px) { .cf-actions .btn { width: 100%; } }
.cf-done { padding-top: 8px; outline: none; }
.cf-check { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); }
.cf-check::before { content: ""; width: 16px; height: 9px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-2px) rotate(-45deg); }
.cf-page { max-width: 760px; }
.cf-page .cf { margin-top: 8px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--hair); border-radius: var(--r-card); background: var(--white); }
.cf-page .cf-grid { margin-top: 0; }
.contact-facts { display: grid; gap: 24px; font-size: 15px; color: var(--slate); }
.contact-facts b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
@media (min-width: 1024px) { .contact-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 80px; align-items: start; } }

/* --- legal pages ------------------------------------------------------- */
.legal { max-width: 760px; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; margin: 48px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.65; color: var(--graphite); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal a { text-underline-offset: 3px; }
.legal table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--hair); vertical-align: top; }
.legal th { font-weight: 500; color: var(--ink); }
.legal-meta { margin-top: 20px; font-size: 14px; color: var(--slate); }
.company-card { display: grid; gap: 4px; margin-top: 16px; padding: 24px; border: 1px solid var(--hair); border-radius: var(--r-card); font-size: 16px; color: var(--graphite); }
.company-card b { color: var(--ink); font-weight: 500; }

/* --- footer: company details and legal links ------------------------------- */
.foot-bottom { align-items: center; color: var(--slate); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--graphite); text-decoration: none; }
.foot-legal a:hover { color: var(--ink); text-decoration: underline; }
.foot-company { width: 100%; font-size: 13px; line-height: 1.6; color: var(--slate); }
.foot-h { color: var(--slate); }

/* --- polish: readable small text, tighter mobile rhythm --------------------- */
.example { font-size: 12px; }
@media (max-width: 639px) {
  .section { padding-block: 64px; }
  .page-hero { padding-block: 40px 56px; }
  .pb { padding-block: 56px; }
}
.legal ul + p, .legal table + p { margin-top: 14px; }
.foot-company { flex: 1 0 100%; grid-column: 1 / -1; margin-top: 4px; }

/* f03 is a tall portrait (3:5): frame her as a portrait, head to resting hands, not cut at the chest */
.pb-f03 { position: relative; width: 100%; max-width: 480px; justify-self: center; }
.pb-f03 img { aspect-ratio: 4 / 5; object-position: center 72%; background: #FDFDFD; }
@media (min-width: 1024px) { .pb-f03 { justify-self: end; } }

/* Training: how Luis helps, beside the portrait. Everything here works without him. */
.pb-luis-h { margin-top: 36px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); }
.pb-luis-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 0; max-width: 30em; border-top: 1px solid var(--hair); }
.pb-luis-list li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 16px; line-height: 1.5; color: var(--graphite); }
.pb-luis-list li b { font-weight: 500; color: var(--ink); }
.pb-luis-list .lw-ring { width: 20px; height: 20px; margin-top: 2px; }
.pb-luis-note { margin-top: 16px; font-size: 14.5px; color: var(--slate); max-width: 30em; }
.plc { position: relative; z-index: 1; margin: -72px 12px 0; padding: 18px 18px 16px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.08); display: grid; gap: 12px; }
.plc-h { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.plc-h .lw-ring { width: 24px; height: 24px; flex: none; }
.plc-tag { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--slate); border: 1px solid var(--hair); border-radius: 999px; padding: 3px 10px; }
.plc-body { display: grid; gap: 10px; min-height: 128px; align-content: start; }
.plc-q { justify-self: end; max-width: 90%; background: var(--mist); border-radius: 16px; padding: 10px 14px; font-size: 14.5px; line-height: 1.4; }
.plc-who { display: block; font-size: 11.5px; color: var(--slate); margin-bottom: 1px; }
.plc-a { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.plc-src { display: inline-block; margin-top: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--graphite); }
.js .plc-body { transition: opacity .45s var(--ease-out), transform .6s var(--spring-soft), filter .45s var(--ease-out); }
.js .plc-body.out { opacity: 0; transform: translateY(6px); filter: blur(3px); }
/* Chat playback: question, Luis typing, answer, source */
.plc-dots { display: none; gap: 4px; align-items: center; height: 22px; padding: 0 2px; }
.plc-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: plc-dot 1s var(--ease-out) infinite; }
.plc-dots i:nth-child(2) { animation-delay: .15s; } .plc-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes plc-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.plc.chat .plc-q { opacity: 0; transform: translateY(10px) scale(.96); transform-origin: 100% 100%; transition: opacity .3s var(--ease-out), transform .55s var(--spring-soft); }
.plc.chat .plc-a [data-plc-a], .plc.chat .plc-src { display: inline-block; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease-out), transform .55s var(--spring-soft); }
.plc.chat .plc-a [data-plc-a] { display: inline; }
.plc.chat .t-on .plc-dots { display: inline-flex; }
.plc.chat .t-on [data-plc-a] { display: none; }
.plc.chat .q-on .plc-q, .plc.chat .a-on [data-plc-a], .plc.chat .s-on .plc-src { opacity: 1; transform: none; }
@media (min-width: 1024px) { .plc { position: absolute; left: -64px; right: auto; bottom: 32px; width: 340px; margin: 0; } }

/* ===== Role pages (roles/*). UX rules: one recommended start (Hick), big answer targets (Fitts),
   visible progress (goal gradient), instant result (Doherty), one inverted card per page (Von Restorff). ===== */
.role-luis { margin-top: 40px; max-width: 46em; padding-top: 20px; border-top: 1px solid var(--hair); color: var(--slate); font-size: 16px; }
.role-luis b { color: var(--ink); font-weight: 500; }

.role-check-grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .role-check-grid { grid-template-columns: 5fr 6fr; gap: 80px; align-items: start; } }
.role-check { display: grid; gap: 0; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r-card); padding: 8px 24px 12px; }
.role-progress { display: flex; align-items: center; gap: 12px; padding: 16px 0; font-size: 14px; color: var(--slate); border-bottom: 1px solid var(--hair); }
.role-progress i { flex: 1; height: 4px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.role-progress b { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .35s cubic-bezier(.2,.7,.2,1); }
.role-q { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--mist); display: grid; gap: 12px; min-width: 0; }
.role-q:last-child { border-bottom: 0; }
.role-q legend { float: left; width: 100%; padding: 0; font-size: 16.5px; line-height: 1.45; font-weight: 500; }
.role-seg { clear: both; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.role-seg label { position: relative; }
.role-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.role-seg span { display: flex; align-items: center; justify-content: center; min-height: 48px; border: 1px solid var(--hair); border-radius: 999px; font-size: 15px; font-weight: 500; transition: background .15s, border-color .15s, color .15s; }
.role-seg label:hover span { border-color: var(--ink); }
.role-seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.role-seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }

.role-start { margin-top: 56px; background: var(--ink); color: #fff; border-radius: var(--r-card); padding: clamp(28px, 4vw, 48px); display: grid; gap: 14px; }
.role-start-k { font-size: 14px; color: rgba(255,255,255,.72); }
.role-start h3 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }
.role-start p:not(.role-start-k) { max-width: 36em; color: rgba(255,255,255,.82); font-weight: 300; font-size: 18px; }
.role-start-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 12px; }
.role-start .link { color: #fff; }
.role-start .link span { border-color: rgba(255,255,255,.35); }
.role-start .link:hover span { border-color: #fff; }
.role-start :focus-visible { outline-color: #fff; }
.btn-inv { background: #fff; color: var(--ink); }
.btn-inv:hover { background: var(--mist); }
.js .role-start.flash { animation: role-flash .5s cubic-bezier(.2,.7,.2,1); }
@keyframes role-flash { from { transform: translateY(6px); opacity: .6; } to { transform: none; opacity: 1; } }

.role-safe { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; }
.role-safe li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--hair); }
.role-safe b { font-weight: 500; font-size: 16px; }
.role-safe span { color: var(--slate); font-size: 15px; }
.qa p a { color: var(--ink); }

.role-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--hair); }
.role-share p { color: var(--slate); font-size: 15px; }
.role-share-ok { font-size: 14px; color: var(--slate); min-height: 1em; }

@media (max-width: 479px) {
  .role-check { padding: 4px 16px 8px; }
  .role-start-cta { flex-direction: column; align-items: stretch; }
  .role-start-cta .btn { width: 100%; min-height: 52px; }
  .role-start-cta .link { align-self: center; }
}
@media (prefers-reduced-motion: reduce) { .role-progress b, .role-seg span { transition: none; } .js .role-start.flash { animation: none; } }
/* Mega menu: "By role" column with a small starting-point card underneath */
.mega-roles { display: flex; flex-direction: column; }
.mega-roles .mega-card-sm { display: flex; margin: 16px 0 0; padding: 14px 16px; border-radius: 14px; background: var(--ink); }
.mega-roles .mega-card-sm:hover, .mega-roles .mega-card-sm:focus-visible { background: var(--graphite); }
.mega-roles .mega-card-sm b { font-family: var(--sans); font-size: 14.5px; font-weight: 500; letter-spacing: 0; color: #fff; }
@media (min-width: 1024px) { .rel-list.rel-3 { grid-template-columns: repeat(3, 1fr); } }

/* Homepage: the hero woman returns in "Why we exist" and the closing section; image cut by the next section's edge */
.home-people-sec { padding-bottom: 0; }
.pp-fig { margin: 0; }
.pp-fig img { display: block; width: 100%; height: auto; }
.pp-why-fig { max-width: 300px; margin: 24px auto 0; }
.pp-close-fig { max-width: 260px; margin: 40px auto 0; }
@media (min-width: 1024px) {
  .pp-why { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; column-gap: 64px; }
  .pp-why .why-body { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
  .pp-why-fig { align-self: end; max-width: 460px; margin: 0 0 0 auto; }
  .pp-close { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; column-gap: 64px; }
  .pp-close-fig { align-self: end; max-width: 420px; margin: 0 0 0 auto; }
}
/* Industries overview (industries/index.html): cards ordered by regulatory load */
.ind-grid { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 768px) { .ind-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .ind-grid { grid-template-columns: repeat(3, 1fr); } }
.ind-card { position: relative; display: grid; align-content: start; gap: 12px; height: 100%; padding: 26px 56px 26px 24px; border-radius: 20px; border: 1px solid var(--hair); background: var(--white); text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.ind-card:hover, .ind-card:focus-visible { border-color: var(--ink); box-shadow: 0 18px 44px rgba(13,13,12,.07); transform: translateY(-2px); }
.ind-card b { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2vw, 26px); line-height: 1.15; letter-spacing: -0.01em; }
.ind-marks { display: flex; flex-wrap: wrap; gap: 6px; }
.ind-marks em { font: 12px var(--mono); font-style: normal; padding: 4px 10px; border: 1px solid var(--hair); border-radius: 999px; color: var(--graphite); }
.ind-line { color: var(--slate); font-size: 15.5px; line-height: 1.5; }
.ind-card i { position: absolute; right: 22px; top: 28px; font-style: normal; font-size: 18px; transition: transform .2s; }
.ind-card:hover i { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .ind-card, .ind-card i { transition: none; } .ind-card:hover { transform: none; } }
.mega-col .mega-all b { font-size: 14.5px; }
.ind-all { margin-top: 24px; }

/* Start page · The platform today: one supplier agreement in the middle, each team sends a pulse to it and the log fills in. */
.or { position: relative; }
.or::before { content: ""; position: absolute; left: 50%; top: 50%; width: 520px; height: 420px; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(219,234,254,.75), rgba(237,233,254,.35) 55%, transparent); pointer-events: none; }
.or-core { position: relative; z-index: 3; padding: 16px 18px 14px; border-radius: 22px; background: var(--white); border: 1px solid rgba(13,13,12,.06);
  box-shadow: 0 1px 2px rgba(13,13,12,.05), 0 12px 28px rgba(15,23,42,.08), 0 40px 80px rgba(15,23,42,.10); }
.or-top { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--mist); }
.or-ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--mist); color: var(--graphite); }
.or-top p { display: grid; line-height: 1.3; } .or-top b { font-weight: 500; font-size: 15.5px; } .or-top p span { font-size: 12.5px; color: var(--slate); }
.or-log-h { font-size: 11.5px; letter-spacing: .02em; color: var(--muted); margin: 12px 0 6px; }
.or-log { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 2px; height: 78px; overflow: hidden; }
.or-log li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 8px; font-size: 12.5px; line-height: 1.35; padding: 4px 0; white-space: nowrap; color: var(--graphite); animation: orIn .5s var(--ease-out) both; }
.or-log li time { font-family: var(--mono); font-size: 11px; color: var(--muted); padding-top: 1px; }
.or-log li b { font-weight: 500; color: var(--c, var(--ink)); } .or-log li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.or-log li:nth-child(n+4) { display: none; }
@keyframes orIn { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
.or-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--mist); }
.or-keys span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--graphite); }
.or-keys span::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #E6F4F1 center / 8px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.3 8 3' fill='none' stroke='%23016A63' stroke-width='1.4'/%3E%3C/svg%3E"); }
.or-sats { list-style: none; margin: 0; padding: 0; position: relative; z-index: 2; }
.or-s { --c: var(--ink); display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 16px; background: rgba(255,255,255,.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(13,13,12,.07); box-shadow: 0 8px 24px rgba(15,23,42,.06); transition: opacity .5s var(--ease-out), translate .7s var(--spring-soft), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out); }
.or-legal { --c: var(--wf); --t: #EFF6FF; } .or-comp { --c: var(--obl); --t: #F5F3FF; } .or-proc { --c: var(--prc); --t: #ECF9FA; } .or-fin { --c: var(--graphite); --t: #F5F5F3; } .or-it { --c: var(--frm); --t: #F1F8F7; }
.or-av { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--t); color: var(--c); font-size: 11.5px; font-weight: 600; }
.or-st { display: grid; line-height: 1.3; min-width: 0; } .or-st b { font-weight: 500; font-size: 13.5px; } .or-st span { font-size: 12.5px; color: var(--slate); }
.or-state { font-style: normal; font-size: 11.5px; padding: 3px 8px; border-radius: 999px; background: var(--mist); color: var(--slate); white-space: nowrap; transition: background .4s, color .4s; }
.or-s.now { border-color: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 10%, transparent), 0 14px 32px rgba(15,23,42,.10); }
.or-s.done .or-state { background: var(--t); color: var(--c); }
.or-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.or-base path { fill: none; stroke: rgba(13,13,12,.14); stroke-width: 1; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1s var(--ease-out); }
.or.in .or-base path { stroke-dashoffset: 0; }
.or-live path { fill: none; stroke-width: 1.5; stroke-linecap: round; }
.or-pulse { fill: var(--ink); opacity: 0; }
.js .or:not(.in) .or-s { opacity: 0; translate: 0 10px; }
.or.in .or-s { transition-delay: calc(var(--i) * 110ms + 150ms); }
.or.in .or-s.now, .or.in .or-s.done { transition-delay: 0s; }
@media (max-width: 899px) { .or::before { display: none; } .or-sats { display: grid; gap: 8px; margin: 14px 0 0 22px; } .or-lines { display: none; } .or-sats::before { content: ""; position: absolute; left: -12px; top: -14px; bottom: 22px; width: 1px; background: var(--hair); } .or .example { margin-top: 14px; } }
@media (min-width: 900px) {
  .or { height: 560px; }
  .or-sats { position: static; }
  .or-core { position: absolute; left: 50%; top: 104px; width: 300px; translate: -50% 0; }
  .or-s { position: absolute; width: 214px; } .or-st { min-width: 0; } .or-st span { white-space: nowrap; }
  .or-legal { left: 0; top: 0; } .or-comp { right: 0; top: 30px; } .or-proc { left: 0; top: 362px; } .or-fin { right: 0; top: 392px; } .or-it { left: 50%; translate: -50% 0; top: 472px; }
  .js .or:not(.in) .or-it { translate: -50% 10px; }
  .or .example { position: absolute; right: 0; bottom: -6px; }
}
@media (prefers-reduced-motion: reduce) { .or-log li { animation: none; } }

/* Contracts page: the contract is edited and the rules respond; the four engines underneath. */
.rx { position: relative; display: grid; gap: 16px; }
.rx-doc, .rx-side { background: var(--white); border: 1px solid var(--hair); border-radius: 20px; box-shadow: 0 18px 44px rgba(13,13,12,.06); }
.rx-doc { padding: 18px 20px 10px; }
.rx-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.rx-file { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--mist); color: var(--graphite); }
.rx-top p { display: grid; line-height: 1.3; } .rx-top b { font-weight: 500; font-size: 15px; } .rx-top span { font-size: 13px; color: var(--slate); }
.rx-sec { padding: 14px 0 10px; border-top: 1px solid var(--mist); } .rx-top + .rx-sec { border-top: 0; }
.rx-h { font-size: 12px; letter-spacing: .02em; color: var(--muted); margin-bottom: 6px; }
.rx-table { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.rx-table li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; }
.rx-table li span { color: var(--graphite); } .rx-table b { font-weight: 500; white-space: nowrap; }
.rx-sum { border-top: 1px solid var(--hair); margin-top: 4px; padding-top: 8px !important; }
.rx-clause { font-size: 14px; color: var(--graphite); }
.rx-swap { position: relative; display: inline-grid; } .rx-swap > * { grid-area: 1 / 1; text-decoration: none; }
.rx-swap ins { opacity: 0; color: #8A5300; background: #FDF3E1; border-radius: 4px; padding: 0 3px; margin: 0 -3px; }
.rx-side { padding: 18px 20px; display: grid; gap: 14px; align-content: start; }
.rx-side-h { font-size: 12px; letter-spacing: .02em; color: var(--muted); }
.rx-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rx-route li { display: flex; gap: 12px; align-items: flex-start; }
.rx-route i { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 1.5px solid var(--hair); position: relative; }
.rx-route i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--frm); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.rx-route span { display: grid; line-height: 1.3; } .rx-route b { font-weight: 500; font-size: 14.5px; } .rx-route em { font-style: normal; font-size: 12.5px; color: var(--slate); }
.rx-send { border-top: 1px solid var(--hair); padding-top: 14px; display: grid; gap: 10px; }
.rx-send p:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; } .rx-send b { font-weight: 500; } .rx-send p:first-child span { color: var(--slate); font-size: 13px; }
.rx-eid { display: flex; flex-wrap: wrap; gap: 6px; } .rx-eid span { font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--mist); color: var(--graphite); }
.rx-rule { justify-self: start; display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--slate); padding: 8px 14px 8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); }
.rx-rule::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--obl); box-shadow: 0 0 0 4px rgba(109,40,217,.12); }
.rx-rule b { font-weight: 400; color: var(--ink); }
.rx .example { justify-self: start; }
/* motion: everything the rules add enters with a soft spring; the rest stays still */
.js .rx [data-rx] { transition: opacity .45s var(--ease-out), transform .6s var(--spring-soft), max-height .6s var(--ease-out), background-color .6s; }
.js .rx .rx-add, .js .rx .rx-annex { overflow: hidden; }
.js .rx .rx-add { max-height: 40px; } .js .rx .rx-annex { max-height: 96px; }
.js .rx:not(.rx-still) .rx-add:not(.on) { opacity: 0; max-height: 0; padding-block: 0; transform: translateY(-4px); }
.js .rx:not(.rx-still) .rx-annex:not(.on) { opacity: 0; max-height: 0; padding-block: 0; border-top: 0; transform: translateY(6px); }
.js .rx .rx-add, .js .rx .rx-annex { transition: opacity .45s var(--ease-out), transform .6s var(--spring-soft), max-height .6s var(--ease-out), padding .6s var(--ease-out), background-color .6s; }
.js .rx .rx-route li[data-rx] { max-height: 60px; transition: opacity .45s var(--ease-out), transform .6s var(--spring-soft), max-height .5s var(--ease-out), margin .5s var(--ease-out); }
@media (max-width: 639px) { .js .rx:not(.rx-still) .rx-route li[data-rx]:not(.on) { max-height: 0; margin-top: -10px; overflow: hidden; } }
.js .rx:not(.rx-still) .rx-route li[data-rx]:not(.on) { opacity: 0; }
.js .rx:not(.rx-still) .rx-send:not(.on) { opacity: .35; }
.rx-route li.rx-on i, .rx-route li.on i, .rx-still .rx-route i { border-color: var(--frm); background: #E6F4F1; }
.rx-route li:not(.rx-on):not(.on) i::after { opacity: 0; }
.rx-still .rx-route i::after { opacity: 1 !important; }
.rx-swap s, .rx-swap ins { transition: opacity .4s var(--ease-out); }
.rx-swap.on s, .rx-still .rx-swap s { opacity: 0; } .rx-swap.on ins, .rx-still .rx-swap ins { opacity: 1; }
.rx-flash { animation: rxflash 1.2s var(--ease-out); }
@keyframes rxflash { 0% { background: #EEEBFE; } 100% { background: transparent; } }
/* layered stage: the contract sits behind, the approval route floats in front of its right edge, the active rule in front of its foot */
@media (min-width: 640px) and (max-width: 1199px) { .rx { gap: 0; } .rx-doc { width: 86%; position: relative; z-index: 1; } .rx-side { position: relative; z-index: 2; width: 58%; justify-self: end; margin-top: -18px; box-shadow: 0 1px 2px rgba(13,13,12,.05), 0 10px 24px rgba(13,13,12,.07), 0 32px 72px rgba(13,13,12,.12); } .rx-rule { margin-top: 16px; } .rx .example { margin-top: 12px; } }
@media (min-width: 1200px) {
  .rx { display: block; position: relative; padding-bottom: 8px; }
  .rx-doc { position: relative; z-index: 1; width: 62%; }
  .rx-side { position: absolute; z-index: 2; right: 0; top: 64px; width: 40%;
    box-shadow: 0 1px 2px rgba(13,13,12,.05), 0 10px 24px rgba(13,13,12,.07), 0 32px 72px rgba(13,13,12,.12); }
  .rx-rule { position: relative; z-index: 3; margin: -20px 0 0 28px; background: var(--white); box-shadow: 0 8px 24px rgba(13,13,12,.08); }
  .rx .example { display: block; width: max-content; margin-top: 20px; }
}
/* entrance: back to front, each layer a beat after the one behind it */
.js .rx-doc, .js .rx-side, .js .rx-rule { transition: opacity .6s var(--ease-out); }
.js .rx:not(.rx-in):not(.rx-still) .rx-doc { opacity: 0; }
.js .rx:not(.rx-in):not(.rx-still) .rx-side { opacity: 0; }
.js .rx:not(.rx-in):not(.rx-still) .rx-rule { opacity: 0; }
.js .rx.rx-in .rx-side { transition-delay: .18s; } .js .rx.rx-in .rx-rule { transition-delay: .36s; }

/* four engines */
.eg { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; }
.eg li { background: var(--white); padding: 28px 24px 32px; display: grid; gap: 14px; align-content: start; }
.eg-k { font-size: 13px; color: var(--muted); }
.eg h3 { font-size: 22px; line-height: 1.2; }
.eg-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.eg-tags span { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--hair); color: var(--graphite); }
.eg-foot { margin-top: 28px; font-size: 15px; color: var(--slate); max-width: 46em; }
@media (min-width: 768px) { .eg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .eg { grid-template-columns: repeat(4, 1fr); } .eg li { min-height: 240px; } }

/* Training preview – hero "everyone, on any device" (preview only, not in site.css yet) */
.th-marks span { font: 400 13.5px var(--sans); color: var(--graphite); }
.th-wrap { position: relative; display: grid; gap: 12px; justify-items: start; }
.th { position: relative; width: 100%; padding-bottom: 22%; }
.th-wrap > .example { justify-self: end; margin-top: -8px; }
.th-photo { margin: 0; }
.th-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 70% 30%; border-radius: var(--r-card); background: #FFF; border: 1px solid var(--hair); }

.th-ctl { position: absolute; left: -3%; top: 6%; width: 50%; min-width: 230px; padding: 16px 18px 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border: 1px solid var(--hair); border-radius: 18px; box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.08); }
.th-ctl-h { margin: 0; font-size: 13px; color: var(--slate); }
.th-n { margin: 6px 0 12px; display: flex; align-items: baseline; gap: 8px; }
.th-n b { font-family: var(--display); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.th-n span { font-size: 14px; color: var(--slate); }
.th-dots { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.th-dots i { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--hair); background: var(--white); transition: background .35s var(--ease-out), border-color .35s var(--ease-out); }
.th-dots i.on { background: var(--ink); border-color: var(--ink); }
.th-dots i.new { animation: th-pop .5s var(--spring-soft); }
.th-dots i.you { box-shadow: 0 0 0 3px rgba(13,13,12,.12); }
.th-ctl-f { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--graphite); }
.th-ok { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); flex: none; position: relative; }
.th-ok::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.th-phone { position: absolute; left: 8%; top: 44%; width: 31%; min-width: 170px; max-width: 220px; aspect-ratio: 9 / 18; padding: 6px; border-radius: 30px; background: var(--ink); box-shadow: 0 2px 4px rgba(13,13,12,.12), 0 30px 70px rgba(13,13,12,.22); }
.th-screen { position: relative; height: 100%; border-radius: 24px; background: var(--white); padding: 34px 14px 14px; overflow: hidden; }
.th-screen::before { content: ""; position: absolute; top: 9px; left: 50%; width: 34%; height: 14px; margin-left: -17%; border-radius: 99px; background: var(--ink); }
.th-ph-h { margin: 0 0 14px; display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--slate); }
.th-ph-h b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.th-ph-h span { white-space: nowrap; }
.th-q { transition: opacity .35s var(--ease-out), transform .45s var(--ease-out); }
.th-qt { margin: 0 0 12px; font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.th-opt { position: relative; margin: 0 0 7px; padding: 9px 10px 9px 30px; border: 1px solid var(--hair); border-radius: 12px; font-size: 11.5px; line-height: 1.3; color: var(--graphite); transition: border-color .3s var(--ease-out), background .3s var(--ease-out); }
.th-opt::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -7px; border-radius: 50%; border: 1px solid var(--hair); background: var(--white); transition: border-color .3s, box-shadow .3s; }
.th-opt.on { border-color: var(--ink); background: var(--paper); }
.th-opt.on::before { border-color: var(--ink); box-shadow: inset 0 0 0 3px var(--white), inset 0 0 0 7px var(--ink); }
.th-res { position: absolute; inset: 34px 14px 14px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 8px; opacity: 0; transform: scale(.92); pointer-events: none; transition: opacity .35s var(--ease-out), transform .6s var(--spring-soft); }
.th-big { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair); color: var(--white); background: var(--white); transition: background .4s var(--ease-out), border-color .4s var(--ease-out); }
.th-res-t { margin: 6px 0 0; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.th-res-s { margin: 0; font-size: 11.5px; color: var(--slate); }
.th.res .th-q { opacity: 0; transform: translateY(-8px); }
.th.res .th-res { opacity: 1; transform: none; }
.th.res .th-big { background: var(--ink); border-color: var(--ink); animation: th-pop .55s var(--spring-soft); }
@keyframes th-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* Luis block: new photo */
.th-pb img { aspect-ratio: 4 / 5; object-position: center 22%; background: #FFF; }

@media (max-width: 640px) {
  .th { padding-bottom: 0; }
  .th-ctl { position: relative; left: auto; top: auto; width: auto; min-width: 0; margin: -28px 12px 0 38%; padding: 14px; }
  .th-n b { font-size: 24px; }
  .th-n span { font-size: 13px; }
  .th-dots { gap: 2px; }
  .th-phone { left: 3%; top: 26%; width: 37%; min-width: 0; padding: 4px; border-radius: 22px; }
  .th-screen { border-radius: 18px; padding: 24px 8px 8px; }
  .th-screen::before { top: 6px; height: 10px; }
  .th-ph-h { font-size: 8.5px; margin-bottom: 8px; }
  .th-ph-h span { display: none; }
  .th-qt { font-size: 12px; margin-bottom: 8px; }
  .th-opt { font-size: 9px; padding: 6px 6px 6px 20px; margin-bottom: 5px; border-radius: 8px; }
  .th-opt::before { left: 6px; width: 9px; height: 9px; margin-top: -5px; }
  .th-res { inset: 24px 8px 8px; }
  .th-big { width: 36px; height: 36px; }
  .th-res-t { font-size: 13px; }
  .th-res-s { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .th *, .th-dots i { transition: none !important; animation: none !important; }
}

/* Training: the example test as a lesson player (2026-11-06) */
.tt-x { position: relative; padding: 24px 26px 26px; }
.tt-x.morph { overflow: hidden; transition: height .55s var(--spring-soft); }
.tt-x .tt-head { border-bottom: 0; padding-bottom: 0; }
.tt-prog { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 14px; }
.tt-prog[hidden] { display: none; }
.tt-prog i { position: relative; height: 4px; border-radius: 4px; background: var(--mist); overflow: hidden; }
.tt-prog i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--spring-soft); }
.tt-prog i.cur::after { transform: scaleX(.18); }
.tt-prog i.on::after { transform: scaleX(1); }
.tt-x .tt-q { padding-top: 22px; transition: opacity .3s var(--ease-out), transform .55s var(--spring-soft), filter .3s var(--ease-out); }
.tt-x .tt-q.out { opacity: 0; transform: translateX(-28px); filter: blur(4px); }
.tt-x .tt-q.in { opacity: 0; transform: translateX(28px); filter: blur(4px); transition: none; }
.tt-x .tt-q legend { gap: 10px; margin-bottom: 18px; }
.tt-x .tt-q legend b { font-size: clamp(21px, 2vw, 25px); line-height: 1.25; letter-spacing: -0.015em; }
.tt-x .tt-opts { counter-reset: tt; gap: 10px; }
.tt-x .tt-opt { position: relative; gap: 14px; min-height: 60px; padding: 14px 18px 14px 14px; border-radius: 16px; background: var(--white); font-size: 16px; line-height: 1.35;
  transition: border-color .25s var(--ease-out), background .25s var(--ease-out), box-shadow .3s var(--ease-out), transform .45s var(--spring-soft); }
.tt-x .tt-opt::before { counter-increment: tt; content: counter(tt, upper-alpha); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--hair);
  font-size: 13px; font-weight: 500; color: var(--slate); background: var(--white); transition: background .25s var(--ease-out), color .25s var(--ease-out), border-color .25s var(--ease-out); }
.tt-x .tt-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (hover: hover) { .tt-x .tt-opt:hover { border-color: var(--graphite); box-shadow: 0 8px 24px rgba(13,13,12,.06); transform: translateY(-1px); } }
.tt-x .tt-opt:active { transform: scale(.985); }
.tt-x .tt-opt:has(input:checked) { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px var(--ink); }
.tt-x .tt-opt:has(input:checked)::before { background: var(--ink); border-color: var(--ink); color: var(--white); animation: tt-pick .5s var(--spring-soft); }
@keyframes tt-pick { 0% { transform: scale(.7); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.tt-x .tt-nav { align-items: center; justify-content: space-between; margin-top: 10px; }
.tt-x .tt-nav::before { content: "A · B · C"; font-size: 12.5px; color: var(--muted); letter-spacing: .02em; }
.tt-x [data-tt-next] { min-width: 132px; transition: opacity .3s var(--ease-out), transform .45s var(--spring-soft), background .2s; }
.tt-x [data-tt-next]::after { content: "\2192"; margin-left: 10px; display: inline-block; transition: transform .45s var(--spring-soft); }
.tt-x:not(.ready) [data-tt-next] { opacity: .35; }
.tt-x.ready [data-tt-next]:hover::after { transform: translateX(3px); }
.tt-x.nudge [data-tt-next] { animation: tt-nudge .45s var(--ease-out); }
@keyframes tt-nudge { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.tt-x .tt-hint { min-height: 0; margin: 8px 0 0; }
.tt-x .tt-hint:empty { margin: 0; }

.tt-x .tt-result { padding-top: 20px; }
.tt-x .tt-score { display: flex; align-items: center; gap: 22px; }
.tt-ring { position: relative; flex: none; width: 112px; height: 112px; display: grid; place-items: center; --p: 0; }
.tt-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.tt-ring .bg { stroke: var(--mist); }
.tt-ring .fg { stroke: var(--ink); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1); }
.tt-ring.no .fg { stroke: #B7791F; }
.tt-x .tt-ring b { position: relative; font-family: var(--display); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tt-sum { display: grid; gap: 8px; justify-items: start; }
.tt-x .tt-score .tt-sum, .tt-x .tt-score .tt-of, .tt-x .tt-score .tt-ring { padding: 0; border-radius: 0; background: none; font-weight: 400; }
.tt-x .tt-nav[hidden] { display: none; }
.tt-x .tt-score [data-tt-verdict] { font-size: 15px; padding: 7px 12px; animation: tt-rise .6s var(--spring-soft) .35s both; }
.tt-x .tt-score .tt-of { font-size: 14px; color: var(--slate); animation: tt-rise .6s var(--spring-soft) .45s both; }
.tt-x .tt-points { margin-top: 22px; }
.tt-x .tt-points li { animation: tt-rise .6s var(--spring-soft) var(--d, .5s) both; }
.tt-x .tt-pt span { display: inline-flex; align-items: center; gap: 7px; }
.tt-x .tt-pt span i { width: 16px; height: 16px; border-radius: 50%; position: relative; background: var(--ink); }
.tt-x .tt-pt span.got { color: var(--ink); }
.tt-x .tt-pt span.got i::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.tt-x .tt-pt span.again i { background: none; border: 1.5px solid #B7791F; }
@keyframes tt-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.tt-proof { margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--hair); animation: tt-rise .7s var(--spring-soft) 1s both; }
.tt-proof-h { margin: 0; font-size: 13px; color: var(--slate); }
.tt-proof-n { position: relative; margin: 6px 0 0; display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--slate); }
.tt-roll { display: inline-block; height: 1.1em; overflow: hidden; font-family: var(--display); font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
.tt-roll-in { display: grid; transition: transform .7s var(--spring-soft); }
.tt-roll b { font-weight: 500; font-variant-numeric: tabular-nums; }
.tt-proof:not(.pass) .tt-roll-in b:last-child { display: none; }
.tt-proof.tick .tt-roll-in { transform: translateY(-50%); }
.tt-you { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 500; color: var(--white); background: var(--ink); border-radius: 999px; padding: 4px 10px; opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .3s var(--ease-out), transform .55s var(--spring-soft); }
.tt-proof:not(.pass) .tt-you { display: none; }
.tt-proof.tick .tt-you { opacity: 1; transform: none; }
.tt-proof-f { margin: 8px 0 0; font-size: 13.5px; color: var(--graphite); }
.tt-x .tt-note { margin-top: 14px; }

@media (max-width: 520px) {
  .tt-x { padding: 18px 16px 18px; }
  .tt-x .tt-opt { min-height: 56px; font-size: 15px; padding: 12px 14px 12px 12px; }
  .tt-x .tt-nav::before { display: none; }
  .tt-x .tt-nav { justify-content: flex-end; }
  .tt-ring { width: 92px; height: 92px; }
  .tt-x .tt-ring b { font-size: 23px; }
  .tt-roll { font-size: 24px; }
}
@media (hover: none) { .tt-x .tt-nav::before { display: none; } .tt-x .tt-nav { justify-content: flex-end; } }
@media (prefers-reduced-motion: reduce) {
  .tt-x *, .tt-x { animation: none !important; transition: none !important; }
}

/* Training: the test stage (2026-11-06) – policy · app · Control, tied by one ink thread */
#try .split-head { margin-bottom: 48px; }
.ts { position: relative; }
.ts-on { display: grid; gap: 28px; justify-items: center; padding: 28px 16px 32px; border-radius: 32px;
  background: radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--paper) 55%, #F1EEE8 100%); border: 1px solid var(--hair); }
.ts-on .tt-wrap { position: relative; z-index: 2; padding: 0; width: 100%; max-width: 360px; }
.ts-on .tt-wrap > .example { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); }
.ts-wire { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: visible; }
.ts-wire path { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; opacity: .55; }
.ts-wire path.again { stroke: #B7791F; opacity: .8; }
.ts-wire path.ctl { opacity: .75; }
.ts-knot { fill: var(--ink); }
.ts-knot.again { fill: #B7791F; }

/* Phone */
.ts-phone { position: relative; padding: 10px; border-radius: 52px; background: #111110; box-shadow: inset 0 0 0 1.5px #3A3936, 0 2px 6px rgba(13,13,12,.18), 0 40px 90px rgba(13,13,12,.28); }
.ts-phone::before { content: ""; position: absolute; right: -3px; top: 132px; width: 3px; height: 64px; border-radius: 0 3px 3px 0; background: #2A2926; }
.ts-phone > .tone { padding: 0; border-radius: 0 0 42px 42px; background: var(--white); min-height: 560px; }
.ts-bar { display: flex; align-items: center; justify-content: space-between; height: 46px; padding: 0 30px 0 34px; border-radius: 42px 42px 0 0; background: var(--white); font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.ts-island { width: 96px; height: 28px; border-radius: 20px; background: #111110; }
.ts-sig { display: flex; align-items: flex-end; gap: 2px; height: 11px; }
.ts-sig i { width: 3px; border-radius: 1px; background: var(--ink); }
.ts-sig i:nth-child(1) { height: 5px; } .ts-sig i:nth-child(2) { height: 8px; } .ts-sig i:nth-child(3) { height: 11px; }
.ts-app { display: flex; align-items: center; gap: 8px; padding: 6px 22px 2px; background: var(--white); font-size: 14px; }
.ts-app b { font-weight: 500; }
.ts-logo { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 15px; line-height: 1; padding-bottom: 2px; }
.ts-phone .tt-x, .ts-phone .tone .tt { border: 0; border-radius: 0 0 42px 42px; box-shadow: none; padding: 10px 20px 24px; background: var(--white); }
.ts-phone .tt-x .tt-head { font-size: 12.5px; }
.ts-phone .tt-x .tt-head span { display: none; }
.ts-phone .tt-x .tt-q legend b { font-size: 20px; }
.ts-phone .tt-x .tt-opt { min-height: 54px; padding: 11px 14px 11px 11px; font-size: 14.5px; border-radius: 14px; }
.ts-phone .tt-x .tt-opt::before { width: 26px; height: 26px; border-radius: 8px; font-size: 12px; }
.ts-phone .tt-x .tt-nav::before { display: none; }
.ts-phone .tt-x .tt-nav { justify-content: stretch; margin-top: 14px; }
.ts-phone .tt-x [data-tt-next] { width: 100%; min-height: 50px; border-radius: 16px; }
.ts-phone .tt-x .tt-result { padding-top: 16px; }
.ts-phone .tt-x .tt-ring { width: 96px; height: 96px; }
.ts-phone .tt-x .tt-ring b { font-size: 24px; }
.ts-phone .tt-x .tt-lesson, .ts-phone .tt-x .tt-quote, .ts-phone .tt-x .tt-proof, .ts-phone .tt-x .tt-note { display: none; }
.ts-phone .tt-x .tt-points li { padding: 10px 0; }
.ts-phone .tt-x .tt-pt { font-size: 14px; }
.ts-phone .tt-x [data-tt-again] { width: 100%; min-height: 46px; margin-top: 14px; border-radius: 14px; }

/* Policy document */
.ts-doc { position: relative; z-index: 2; width: 100%; max-width: 420px; padding: 22px 22px 18px; border-radius: 20px; background: var(--white); border: 1px solid var(--hair);
  box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.07); }
.ts-doc-h { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--hair); }
.ts-doc-h b { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; letter-spacing: -0.01em; }
.ts-doc-h small { display: block; font-size: 12.5px; color: var(--slate); }
.ts-doc-ic { flex: none; width: 30px; height: 38px; border-radius: 5px; border: 1px solid var(--hair); background: linear-gradient(var(--hair), var(--hair)) 7px 11px / 14px 1px no-repeat, linear-gradient(var(--hair), var(--hair)) 7px 16px / 11px 1px no-repeat, linear-gradient(var(--hair), var(--hair)) 7px 21px / 14px 1px no-repeat, var(--white); }
.ts-par { position: relative; padding: 12px 12px 12px 14px; margin: 0 -12px 0 -14px; border-radius: 12px; opacity: .55; transition: opacity .4s var(--ease-out), background .4s var(--ease-out); }
.ts-par::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--ink); transform: scaleY(0); transform-origin: 50% 0; transition: transform .5s var(--spring-soft), background .3s; }
.ts-par.on, .ts-par.got, .ts-par.again { opacity: 1; }
.ts-par.on { background: var(--paper); }
.ts-par.on::before, .ts-par.got::before, .ts-par.again::before { transform: scaleY(1); }
.ts-par.again::before { background: #B7791F; }
.ts-ref { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: 13px; }
.ts-ref span { color: var(--slate); font-variant-numeric: tabular-nums; }
.ts-ref b { font-weight: 500; }
.ts-tag { margin-left: auto; font-style: normal; font-size: 12px; white-space: nowrap; color: var(--slate); }
.ts-par.got .ts-tag { color: var(--ink); }
.ts-par.again .ts-tag { color: #8A5300; }
.ts-txt { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--graphite); }
.ts-txt mark { background: linear-gradient(transparent 58%, rgba(183,121,31,.22) 58%) no-repeat 0 0 / 0% 100%; color: inherit; transition: background-size 1s cubic-bezier(.22,1,.36,1) .5s; }
.ts-par.again .ts-txt mark { background-size: 100% 100%; }
.ts-les { max-height: 0; margin: 0; font-size: 13.5px; color: var(--ink); opacity: 0; transition: max-height .7s cubic-bezier(.22,1,.36,1) .7s, opacity .4s var(--ease-out) .8s, margin .4s var(--ease-out) .7s; overflow: hidden; }
.ts-les span { font-size: 12px; color: #8A5300; margin-right: 6px; }
.ts-par.again .ts-les { max-height: 140px; margin-top: 8px; opacity: 1; }
.ts-lines { display: grid; gap: 7px; padding: 12px 0 2px; }
.ts-lines i { height: 6px; border-radius: 3px; background: var(--mist); }
.ts-lines i:nth-child(2) { width: 82%; } .ts-lines i:nth-child(3) { width: 64%; }

/* Control */
.ts-ctl { position: relative; z-index: 2; width: 100%; max-width: 360px; padding: 20px 20px 16px; border-radius: 20px; background: var(--white); border: 1px solid var(--hair);
  box-shadow: 0 1px 2px rgba(13,13,12,.04), 0 24px 60px rgba(13,13,12,.07); }
.ts-ctl-h { margin: 0; font-size: 13px; color: var(--slate); }
.ts-n { margin: 8px 0 14px; display: flex; align-items: baseline; gap: 8px; font-size: 14px; color: var(--slate); }
.ts-n .tt-roll { font-size: 32px; }
.ts-n.tick .tt-roll-in { transform: translateY(-50%); }
.ts-dots { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.ts-dots i { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--hair); transition: background .4s var(--ease-out), border-color .4s var(--ease-out); }
.ts-dots i.on { background: var(--ink); border-color: var(--ink); }
.ts-dots i.new { animation: th-pop .6s var(--spring-soft); box-shadow: 0 0 0 3px rgba(13,13,12,.12); }
.ts-log { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--hair); }
.ts-log li { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 14px; }
.ts-log li b { font-weight: 400; font-size: 13px; color: var(--slate); }
.ts-log i { position: relative; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--hair); transition: background .4s var(--ease-out), border-color .4s var(--ease-out); }
.ts-log i.on, .ts-me.got i { background: var(--ink); border-color: var(--ink); }
.ts-log i.on::after, .ts-me.got i::after { content: ""; position: absolute; left: 4.5px; top: 2.5px; width: 3.5px; height: 7px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
.ts-me { background: linear-gradient(90deg, var(--paper), transparent); margin: 0 -8px; padding-left: 8px !important; padding-right: 8px !important; border-radius: 10px; }
.ts-me span { font-weight: 500; }
.ts-me.got i { animation: th-pop .6s var(--spring-soft); }
.ts-me.got b { color: var(--ink); }
.ts-me.again i { border: 1.5px solid #B7791F; }
.ts-me.again b { color: #8A5300; }
.ts-ev { margin: 12px 0 0; font-size: 12.5px; color: var(--slate); }

@media (min-width: 1100px) {
  .ts-on { grid-template-columns: minmax(0, 1fr) 360px minmax(0, 1fr); align-items: center; gap: 72px; padding: 56px 48px 64px; }
  .ts-doc { justify-self: start; }
  .ts-ctl { justify-self: end; }
}
@media (max-width: 1099px) {
  .ts-on .tt-wrap { order: -1; margin-bottom: 30px; }
  .ts-wire { display: none; }
}
@media (max-width: 420px) {
  .ts-on { padding: 20px 10px 24px; border-radius: 26px; }
  .ts-phone { padding: 8px; border-radius: 46px; }
  .ts-phone > .tone, .ts-phone .tt-x { border-radius: 0 0 38px 38px; }
  .ts-bar { border-radius: 38px 38px 0 0; }
  .ts-phone .tt-x { padding: 8px 16px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-on * { transition: none !important; animation: none !important; }
}
.ts-txt { transition: filter .8s var(--ease-out), opacity .8s var(--ease-out); }
.ts-on:not(.ts-done) .ts-txt { filter: blur(4.5px); opacity: .7; user-select: none; }
