/* Shared layout and components. Every colour, font and texture comes from the art-direction
   tokens in style-a.css / style-b.css / style-c.css, selected by html[data-style]. */
:root {
  --l-chat: #d52b1e; --l-work: #0a69be; --l-mail: #7b3f9e; --l-hr: #d2457e; --l-crm: #c98a00; --l-git: #4c8a1c; --l-live: #0f766e;
  --wrap: 1240px; --gutter: 24px; --head: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 12px); -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body { min-height: 100dvh; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: var(--track-h, -.025em); line-height: 1.06; font-weight: var(--weight-h, 800); }
p { margin: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

/* direction-specific copy and art */
.v-a, .v-b, .v-c, .art-a, .art-b, .art-c { display: none; }
[data-style="a"] .v-a, [data-style="b"] .v-b, [data-style="c"] .v-c { display: inline; }
[data-style="a"] .art-a, [data-style="b"] .art-b, [data-style="c"] .art-c { display: block; }

/* header */
.top { position: sticky; top: 0; z-index: 20; height: var(--head); display: flex; align-items: center; gap: 24px;
  padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); background: var(--head-bg); border-bottom: var(--head-line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-mark rect { fill: var(--ink); }
.brand-mark path { fill: none; stroke: var(--bg); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { font: 800 18px/1 var(--display); letter-spacing: -.01em; }
.brand-name b { font-weight: inherit; color: var(--accent); margin-left: 2px; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border: var(--line-w) solid var(--rule); background: transparent; color: var(--ink); border-radius: var(--radius-sm); cursor: pointer; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; font: 700 15px/1 var(--font);
  text-decoration: none; border: var(--btn-line) solid var(--ink); border-radius: var(--radius-btn); color: var(--ink); background: transparent;
  transition: transform .2s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn-pri { background: var(--ink); color: var(--bg); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-c { border-color: var(--c); background: var(--c); color: #fff; min-height: 44px; margin-top: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 104px; }
.eyebrow { font: var(--eyebrow-font); letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(40px, 5.6vw, 76px); margin: 18px 0 22px; }
h1 em { font-style: normal; color: var(--accent); }
.lead { font-size: 18px; color: var(--ink-2); max-width: 34em; }
.hero .lead { font-size: 19px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, auto); gap: 28px; justify-content: start; }
.facts li { display: grid; gap: 2px; padding-top: 12px; border-top: var(--line-w) solid var(--rule); max-width: 13em; }
.facts b { font: 800 30px/1 var(--display); letter-spacing: -.02em; }
.facts span { font-size: 14px; color: var(--ink-3); line-height: 1.4; }

/* sections */
section { position: relative; }
.demo, .sso, .services, .deploy { max-width: var(--wrap); margin: 0 auto; padding: 96px var(--gutter); border-top: var(--sec-line); }
.sec-h { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.sec-h h2, .sso h2 { font-size: clamp(30px, 3.8vw, 50px); }
.sec-h > p:not(.eyebrow) { color: var(--ink-2); font-size: 17px; }

/* demo accounts */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: s; display: grid; align-content: start; gap: 4px; padding: 18px 0 0 54px; position: relative; border-top: var(--line-w) solid var(--rule); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 16px; width: 38px; height: 38px; display: grid; place-items: center;
  font: 700 17px/1 var(--mono); border: var(--line-w) solid var(--ink); border-radius: var(--radius-num); }
.steps b { font-size: 17px; }
.steps span { color: var(--ink-2); font-size: 15px; }
.passes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.pass { position: relative; }
.pass-card { position: relative; overflow: hidden; }
.pass-band { display: flex; justify-content: space-between; align-items: center; }
.pass-body { display: grid; gap: 10px; }
.pass-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.pass-who > span:last-child { display: grid; min-width: 0; }
.pass-name { font-size: 15px; line-height: 1.3; }
.pass-title { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.av { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--font); color: #fff; background: var(--c); }
.kv { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 8px; }
.kv .k { grid-column: 1 / -1; font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.kv .v { font: 600 15px/1.35 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; }
.copy { font: 600 12px/1 var(--font); padding: 7px 10px; min-height: 30px; border: 1px solid var(--rule); background: transparent; color: var(--ink-2); border-radius: var(--radius-sm); cursor: pointer; }
.copy:hover { color: var(--ink); border-color: var(--ink-3); }
.copy.ok { color: var(--ok, #1c7a4b); border-color: currentColor; }
.launch { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.launch a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; text-decoration: none; font-weight: 600; font-size: 14px;
  border: var(--line-w) solid var(--rule); border-radius: var(--radius-btn); background: var(--card); transition: transform .2s var(--ease); }
.launch a:hover { transform: translateY(-2px); border-color: var(--c); }
.launch i { font: 800 13px/1 var(--font); font-style: normal; width: 28px; height: 28px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--c); color: #fff; }
.notes { margin: 24px 0 0; padding-left: 20px; color: var(--ink-3); font-size: 14px; display: grid; gap: 4px; }
.note { color: var(--ink-2); }

/* sso */
.sso { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.sso .lead { margin-top: 16px; }

/* features */
.feats { list-style: none; counter-reset: f; padding: 0; margin: 26px 0 0; }
.feats li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; column-gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.feats li::before { content: counter(f); grid-row: span 2; width: 26px; height: 26px; margin-top: 1px; display: grid; place-items: center;
  font: 700 12px/1 var(--mono); color: var(--c, var(--accent)); border: 2px solid var(--c, var(--accent)); border-radius: var(--radius-num); }
.feats b { display: block; color: var(--ink); font-size: 16px; }

/* services */
.svc { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1.4fr); gap: 40px; padding: 72px 0; border-top: var(--svc-line); align-items: start; }
.svc:first-of-type { border-top: 0; padding-top: 24px; }
.svc-no { display: grid; gap: 10px; justify-items: start; }
.svc-no span { font: var(--no-font); color: var(--no-color, var(--c)); }
.svc-no em { font: 600 12px/1 var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; padding: 5px 8px; border: 1px solid var(--c); color: var(--c); border-radius: var(--radius-sm); }
.kicker { font: var(--eyebrow-font); letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--c); }
.svc h3 { font-size: clamp(26px, 2.6vw, 36px); margin: 12px 0 14px; }
.try { margin-top: 24px; padding: 16px 18px; border: var(--try-line); border-radius: var(--radius); background: var(--try-bg, transparent); font-size: 14.5px; color: var(--ink-2); }
.try > p { font-weight: 700; color: var(--ink); }
.try ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 2px; }

/* screenshots */
.shot { position: relative; margin: 0 0 34px; }
.frame { position: relative; overflow: hidden; background: var(--card); }
.frame-bar { height: 32px; display: flex; align-items: center; gap: 7px; padding: 0 12px; font: 500 12px/1 var(--mono); color: var(--ink-3); border-bottom: 1px solid var(--rule); }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--rule); }
.frame-bar span { margin-left: 8px; }
.canvas { position: relative; }
.shot figcaption { position: absolute; top: 100%; left: 0; margin-top: 10px; font-size: 13px; color: var(--ink-3); }
.pin { position: absolute; left: var(--x); top: var(--y); z-index: 2; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center;
  font: 700 13px/1 var(--mono); color: #fff; background: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 28%, transparent), 0 6px 16px -6px rgb(0 0 0 / .5); }
.img-dark { display: none; }
[data-theme="dark"] .img-light { display: none; }
[data-theme="dark"] .img-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .img-light { display: none; }
  :root:not([data-theme="light"]) .img-dark { display: block; }
}
.has-phone { margin-bottom: 64px; }
.phone { position: absolute; right: -14px; bottom: -48px; width: 23%; border: 7px solid #111; border-radius: 26px; overflow: hidden; background: #111;
  box-shadow: 0 30px 50px -20px rgb(0 0 0 / .55); z-index: 3; }
.phone img { border-radius: 19px; }

/* deployment */
.stack { display: grid; gap: 10px; margin-bottom: 48px; }
.layer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border: var(--line-w) solid var(--rule); border-radius: var(--radius); background: var(--card); }
.layer-h { flex: 0 0 210px; font: var(--eyebrow-font); letter-spacing: var(--eyebrow-track); text-transform: uppercase; color: var(--ink-3); }
.layer span:not(.layer-h) { padding: 9px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; border: 1px solid var(--rule); border-left: 4px solid var(--c, var(--ink-3)); background: var(--bg); }
.layer-add { border-style: dashed; }
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.pillars h3 { font-size: 19px; margin-bottom: 8px; letter-spacing: -.01em; }
.pillars p, .oss { color: var(--ink-2); font-size: 15px; }
.oss { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 60em; }

.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gutter) 110px; border-top: var(--sec-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; }
.foot-meta { color: var(--ink-3); }

/* art-direction switcher for review */
.switcher { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 30; display: flex; align-items: center; gap: 4px; padding: 5px 5px 5px 14px;
  background: var(--ink); color: var(--bg); border-radius: 999px; font: 600 12px/1 var(--font); box-shadow: 0 12px 30px -12px rgb(0 0 0 / .6); }
.switcher span { margin-right: 6px; opacity: .75; white-space: nowrap; }
.switcher button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: inherit; font: 800 13px/1 var(--font); cursor: pointer; }
.switcher button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.switcher a { height: 34px; display: grid; place-items: center; padding: 0 10px; margin-left: 4px; border-radius: 17px; border: 1px solid currentColor; font: 800 13px/1 var(--font); text-decoration: none; }

/* motion: transform and opacity only */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* responsive */
@media (max-width: 1100px) {
  .svc { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 60px 0; }
  .svc-no { grid-auto-flow: column; align-items: center; justify-content: start; }
  .passes { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(250px, 34%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .pass { scroll-snap-align: start; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  :root { --gutter: 16px; --head: 58px; }
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero, .sso { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding-top: 32px; padding-bottom: 72px; }
  .demo, .sso, .services, .deploy { padding-top: 64px; padding-bottom: 64px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .facts b { font-size: 24px; }
  .facts span { font-size: 12.5px; }
  .passes { grid-auto-columns: minmax(250px, 78%); margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); }
  .layer-h { flex-basis: 100%; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .phone { width: 30%; right: -6px; bottom: -40px; border-width: 5px; border-radius: 18px; }
  .phone img { border-radius: 13px; }
  .pin { width: 24px; height: 24px; margin: -12px 0 0 -12px; font-size: 11px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 28%, transparent); }
  .switcher { bottom: 10px; }
}
@media (max-width: 420px) {
  .btn { width: 100%; }
  .top .btn { width: auto; }
  .brand-name { font-size: 16px; }
}
.top .btn { white-space: nowrap; }
