/* One page design for every main-site page (Stu, 21 Oct 2026: "it feels design is not unified").
   The homepage is the reference. Every other page family (product, feature, use case, company,
   Learn, Marketplace, compare) takes the same hero, headings, labels, cards, buttons and surfaces.
   Loaded last, after live.css. The black Zenoo AI page (body.za-dark) keeps its own skin. */
:root {
  --un-h1: clamp(42px, 7.2vw, 86px);
  --un-h2: clamp(32px, 4.6vw, 56px);
  --un-lead: clamp(18px, 1.6vw, 21px);
  --un-label: #6548e8;
  --un-label-dark: #b9adff;
  --un-grey: #a1a4ab;
  --un-line: #e7e5e0;
  --un-card-r: 16px;
  --un-dark-r: 28px;
  --un-sec: clamp(80px, 9vw, 120px);
}

/* ---- Hero: tag pill, one headline size, one lead, then the product ---- */
body:not(.za-dark) main h1:is(.u-h1),
body:not(.za-dark) .hero h1 {
  font-family: var(--display); font-weight: 650; font-size: var(--un-h1); line-height: .98; letter-spacing: -.052em; text-wrap: balance;
}
body:not(.za-dark) :is(.zf-hero, .u-hero) h1 { max-width: 15ch; }
/* two steps, after Stripe: 86px on top-level pages, a smaller headline on the pages under them */
body[data-depth="deep"]:not(.za-dark) main h1:is(.u-h1), body[data-depth="deep"]:not(.za-dark) .hero h1 { font-size: clamp(40px, 5.4vw, 66px); max-width: 16ch; }
body:not(.za-dark) main h1 :is(em, span) { font-style: normal; color: var(--un-grey); }
/* the feature, company and use case heroes carried a mono eyebrow; it becomes the homepage's tag pill */
body:not(.za-dark) :is(.zf-hero, .u-hero) :is(.zf-k, .u-ey):has(+ h1) {
  display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin: 0;
  padding: 6px 14px; border: 1px solid var(--un-line); background: #fff; border-radius: 999px;
  font: 500 14px/1.2 var(--font-ui); letter-spacing: 0; text-transform: none; color: var(--ink);
}
body:not(.za-dark) :is(.zf-hero, .u-hero) :is(.zf-k, .u-ey):has(+ h1)::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--un-label); flex: none;
}
body:not(.za-dark) :is(.zf-hero, .u-hero) h1 { margin-top: 22px; }
body:not(.za-dark) :is(.zf-lead, .u-hero .u-lead, .hero .lead) { font-size: var(--un-lead); line-height: 1.5; color: var(--ink-2); max-width: 34em; }
/* every hero starts at the same height under the nav */
body:not(.za-dark) .zf-hero .zf-wrap { padding-top: 72px; }
body:not(.za-dark) .u-hero > .wrap { padding-top: 56px; }

/* ---- Section headings: one size, left-aligned, grey second phrase ---- */
body:not(.za-dark) main :is(.h2, .zf-h2, .u-h2):not(.cta-h) {
  font-family: var(--display); font-weight: 650; font-size: var(--un-h2); line-height: 1.02; letter-spacing: -.045em; text-wrap: balance;
}
body:not(.za-dark) main :is(.zf-h2, .u-h2) { max-width: 18ch; }
body:not(.za-dark) main :is(.h2, .zf-h2, .u-h2) :is(em, span):not([class]) { font-style: normal; color: var(--un-grey); }
body:not(.za-dark) .sec-head { text-align: left; justify-items: start; }
body:not(.za-dark) .sec-head h2 { margin-inline: 0; }
body:not(.za-dark) .sec-head .lead { margin-inline: 0; }
/* on the rail pages the section's short label sat centred above the heading; it becomes the purple label */
body:not(.za-dark) main .sec-head .eyebrow { display: block; margin-bottom: 14px; font: 500 12.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--un-label); }
/* Stu 22 Oct: say a section's name once. Where the black timeline pill names it, the purple label goes */
body:not(.za-dark) main .wrap.event:has(> .stamp time) .sec-head .eyebrow { display: none; }
body:not(.za-dark) main .wrap.event:has(.sec-head) > .stamp .what { display: none; }
/* the same on Learn and regulatory articles, whose body is a centred column: a left-hanging subtitle under the chip read as a stray label */
body:not(.za-dark) main .wrap.event:has(> .stamp time):has(:is(h2, .h2)) > .stamp .what { display: none; }
body:not(.za-dark) main :is(.pg-band, #observability, #contact) .sec-head .eyebrow { color: var(--un-label-dark); }

/* ---- One label style above a heading: purple mono caps ---- */
body:not(.za-dark) main :is(.zf-k, .u-ey):has(+ :is(h2, .zf-h2, .u-h2)) {
  font: 500 12.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--un-label);
}

body:not(.za-dark) main section:has(> .wrap > .un-chip) :is(.zf-k, .u-ey):has(+ :is(h2, .zf-h2, .u-h2)) { display: none; }

/* ---- Dotted paper (Stu 22 Oct): boxes that hold a product screen sit on grey dotted paper, the screen white and shadowed ---- */
body:not(.za-dark) main :is(.zf-card, .sg),
:is(.event, .fp-row) .split > .pw {
  background: radial-gradient(circle, #d3d1c9 1px, transparent 1.4px) 0 0 / 18px 18px, #f1f0ec;
  border-color: #e4e2dc;
}
body:not(.za-dark) main .zf-card-v > .pg-shot { box-shadow: 0 24px 50px -22px rgba(20,12,60,.38), 0 0 0 1px rgba(20,12,60,.06); }

/* ---- Surfaces: the canvas, and one inset black card for the AI story ---- */
body:not(.za-dark) .u-grey { background: transparent; }
body:not(.za-dark) main > :is(.u-black, .pg-band, .zf-ai) {
  margin-inline: 24px; border-radius: var(--un-dark-r); overflow: hidden; background: #0b0b0e;
}
body:not(.za-dark) main > :is(.u-black, .pg-band, .zf-ai) + section { border-top-color: transparent; }
body:not(.za-dark) main :is(.u-black, .pg-band, .zf-ai) :is(.zf-k, .u-ey, .eyebrow):has(+ :is(h2, .zf-h2, .u-h2)) { color: var(--un-label-dark); }
body:not(.za-dark) main :is(.u-black, .pg-band, .zf-ai) :is(.h2, .zf-h2, .u-h2) { color: #fff; }
body:not(.za-dark) main :is(.u-black, .pg-band, .zf-ai) :is(.h2, .zf-h2, .u-h2) :is(em, span):not([class]) { color: #6f6c7a; background: none; -webkit-text-fill-color: currentColor; }
body:not(.za-dark) .pg-band::before { content: none; }
@media (max-width: 700px) {
  body:not(.za-dark) main > :is(.u-black, .pg-band, .zf-ai) { margin-inline: 8px; border-radius: 22px; }
}

/* ---- Section rhythm: the same space above and below every section ---- */
body:not(.za-dark) .u-sec:not(.u-tight) > .wrap { padding-block: var(--un-sec); }
body:not(.za-dark) .zf-wrap { padding-top: var(--un-sec); padding-bottom: var(--un-sec); }

/* ---- Cards: white, one hairline, one radius. Product UI inside keeps Compliance Hub's own radii ---- */
body:not(.za-dark) main :is(.u-card, .u-pain, .zf-card, .ft-tile, .pg-card, .vs-card, .bw-path, .bw-doc, .bw-get, .pg-log, .pg-li) {
  border-radius: var(--un-card-r);
}
body:not(.za-dark) main :is(.u-card, .u-pain, .pg-card, .vs-card, .bw-path, .pg-li) { border: 1px solid var(--un-line); background: #fff; }
body:not(.za-dark) main .zf-card { border: 1px solid #e4e2dc; }
body:not(.za-dark) main :is(.u-card, .pg-card, .vs-card, .pg-li, .ft-tile):hover { border-color: #cfc6ff; }
body:not(.za-dark) main .pg-grid { border-radius: var(--un-card-r); }

/* ---- Buttons: one size for page buttons (product UI keeps its small buttons) ---- */
body:not(.za-dark) main .btn:not(.btn-sm) { height: 46px; padding-inline: 20px; border-radius: 11px; font-size: 15.5px; font-weight: 600; }

/* ---- The timeline chip, on every page that has the left guide (added by site.js on feature and use case pages) ---- */
body:not(.za-dark) main > section > .wrap:has(> .un-chip) { position: relative; }
body:not(.za-dark) .un-chip {
  position: absolute; z-index: 2; top: 0; left: 0; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 999px; white-space: nowrap;
  background: var(--ink); color: var(--canvas); font: 500 13px/1 var(--font-mono); letter-spacing: .02em; box-shadow: 0 0 0 6px var(--canvas);
}
@media (max-width: 1240px) { body:not(.za-dark) .un-chip { left: 16px; transform: translateY(-50%); } }

/* ---- Design and UX review, 26 Oct 2026 ---- */
/* Chips start on the guide line, so every chip lines up whatever its label, and a long one is never cut off at the page edge */
@media (min-width: 1241px) { body:not(.za-dark) .un-chip { left: -15px; transform: translateY(-50%); } }
/* Air after the black card: the next section's chip and the closing card no longer touch or overlap its bottom edge */
body:not(.za-dark) main > :is(.u-black, .pg-band, .zf-ai) + :is(section, div) { margin-top: clamp(40px, 6vw, 72px); }
/* One black card width: inset to the page's content width on wide screens instead of running almost edge to edge */
@media (min-width: 1360px) { body:not(.za-dark) main > :is(.u-black, .pg-band, .zf-ai) { margin-inline: calc((100% - 1312px) / 2); } }
/* Headings and short copy break evenly, no single word left on its own line */
body:not(.za-dark) :is(h1, h2, h3, .h2, .zf-h2, .u-h2, .cta-h) { text-wrap: balance; }
body:not(.za-dark) main :is(p, li, small) { text-wrap: pretty; }
/* One footer on every page: the navy one that the closing card flows into, with all six columns on one row */
body:not(.za-dark) footer { background: #221a78; color: rgba(255,255,255,.78); border-top: 0; }
body:not(.za-dark) footer .foot h4 { color: rgba(255,255,255,.55); }
body:not(.za-dark) footer :is(.foot a, .foot p, .legal, .legal span, .legal a) { color: rgba(255,255,255,.78); }
body:not(.za-dark) footer .foot a:hover { color: #fff; }
body:not(.za-dark) footer .logo { color: #fff; }
body:not(.za-dark) footer .legal { border-top-color: rgba(255,255,255,.14); }
@media (min-width: 1101px) { body:not(.za-dark) footer .foot { grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); gap: 28px; } }
@media (min-width: 761px) and (max-width: 1100px) { body:not(.za-dark) footer .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); } body:not(.za-dark) footer .foot > div:first-child { grid-column: 1 / -1; } }
/* Closing card on phones: the text and buttons keep a proper margin inside the card while it opens */
@media (max-width: 860px) { body:not(.za-dark) #contact .cta { padding-inline: 32px; } }
/* Small links (regulation numbers, footnotes, breadcrumbs, text links) get a finger-sized tap area without moving the text */
@media (max-width: 900px) {
  body:not(.za-dark) main :is(sup, small, .zf-k, .u-crumb, .fl-more, .fl-cap, .hm-day, .u-more) a,
  body:not(.za-dark) main :is(p, li, span) > a:not([class]) { padding-block: 10px; margin-block: -10px; }
  body:not(.za-dark) main sup a { padding-inline: 6px; margin-inline: -3px; }
  body:not(.za-dark) main a.u-more, body:not(.za-dark) main .hero-try { padding-block: 10px; margin-block: -10px; display: inline-block; }
}
/* Section bar on use case, industry and role pages: fades at the edge so it reads as scrollable, and marks the section you are in */
body:not(.za-dark) .u-toc .wrap { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
body:not(.za-dark) .u-toc a.on { background: #f1effd; color: #3b2bb8; font-weight: 500; }
body:not(.za-dark) main > #observability + section { margin-top: clamp(40px, 6vw, 72px); }
/* Home AI card: its content always sits inside the card while the card opens and closes (inset up to min(88px, 6vw)), so no text is cut at the edges */
body:not(.za-dark) main > #observability > .wrap { padding-inline: calc(min(88px, 6vw) + 24px); }
@media (max-width: 860px) { body:not(.za-dark) main > #observability > .wrap { padding-inline: 24px; } }
/* Articles: dates in a timeline fit on one line (stacked above the entry on phones), long numbered lists keep their numbers inside the column, source links wrap as text */
body:not(.za-dark) .pg-agenda > div { grid-template-columns: 148px minmax(0, 1fr); }
body:not(.za-dark) .pg-agenda time { white-space: nowrap; }
@media (max-width: 600px) { body:not(.za-dark) .pg-agenda > div { grid-template-columns: minmax(0, 1fr); } body:not(.za-dark) .pg-agenda time { grid-row: auto; } }
body:not(.za-dark) .pg-prose ol { padding-left: 34px; }
body:not(.za-dark) .pg-sources a { display: inline; }
/* The small "who · what" label above a section lines up with the section's own left-aligned heading, instead of floating centred over it */
body:not(.za-dark) main > section:not(.hero) > .wrap.event > .stamp { justify-content: flex-start; margin-inline: 0; }
/* One label per section: where the timeline chip and the "who · what" line already name it, the small eyebrow over the heading goes */
body:not(.za-dark) main > section:not(.hero) > .wrap.event:has(> .stamp time) .eyebrow:has(+ :is(h2, .h2)) { display: none; }
/* Home: the step cards under the one case graphic get room before the next section's line */
/* zenoo.css zeroes every homepage section's padding with !important and spaces sections through .wrap.event instead;
   How Zenoo works has a plain .wrap, so the space goes on that */
body:not(.za-dark) main > #one-case > .wrap { padding-block: clamp(64px, 8vw, 112px) clamp(64px, 8vw, 112px); }
/* Product mock tab rows that run past a narrow card fade out at the edge instead of cutting a word in half */
@media (max-width: 700px) { body:not(.za-dark) .pg-shot-tabs { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, #000 80%, transparent); mask-image: linear-gradient(90deg, #000 80%, transparent); } }
/* Forms: a field that needs fixing looks like it, with a red edge and a red message, not a blue info note */
body:not(.za-dark) main input[aria-invalid="true"] { border-color: #c2412d; box-shadow: 0 0 0 3px rgba(194,65,45,.14); }
body:not(.za-dark) main #dm-email-err, body:not(.za-dark) main .pg-note[role="alert"] { background: #fdf0ed; border-color: #f3c7bd; color: #a3341f; }
/* Black cards: the lead and the grey half of the headline are readable on black */
body:not(.za-dark) main :is(.u-black, .pg-band, .zf-ai) :is(.zf-lead, .u-lead, .lead) { color: #b4b2bf; }
body:not(.za-dark) main :is(.u-black, .pg-band, .zf-ai) :is(.h2, .zf-h2, .u-h2) :is(em, span):not([class]) { color: #8e8b99; }
@media (max-width: 900px) {
  body:not(.za-dark) main small a { padding-inline: 10px; margin-inline: -10px; }
  body:not(.za-dark) main :is(.u-card, .u-pain, .zf-card, .pg-card) > a:not(.btn), body:not(.za-dark) main .contact-us a, body:not(.za-dark) main :is(.u-card, .pg-card, .u-live) div > a:not(.btn) { padding-block: 10px; margin-block: -10px; display: inline-block; }
}

/* Card tilt on hover (Stu, 26 Oct 2026): a card you can click lifts, grows a touch and tilts,
   each at its own angle so a row of cards never moves in step. Mouse only, never with reduced motion. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a) {
    --tilt: -1.6deg; position: relative;
    transition: transform .35s cubic-bezier(.2,.8,.2,1.15), box-shadow .35s ease, border-color .2s;
    transform-origin: 50% 60%; will-change: transform;
  }
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a):nth-child(5n+2) { --tilt: 1.3deg; }
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a):nth-child(5n+3) { --tilt: -0.9deg; }
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a):nth-child(5n+4) { --tilt: 1.8deg; }
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a):nth-child(5n+5) { --tilt: -1.2deg; }
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a):is(:hover, :focus-visible) {
    transform: translateY(-6px) scale(1.035) rotate(var(--tilt)); z-index: 2;
    box-shadow: 0 2px 4px rgba(29,30,35,.05), 0 32px 60px -24px rgba(36,22,120,.38);
  }
  /* a transparent pad that travels with the card and still covers where it was, so a pointer near
     the bottom edge does not drop the hover as the card lifts and flicker it */
  body:not(.za-dark) main :is(a.u-card, a.pg-card, a.vs-card, a.ft-tile, a.ft-wcard, a.cm-card, .pg-arts > a)::before { content: ""; position: absolute; inset: -8px; }
  /* the short comparison rows tilt half as much */
  body:not(.za-dark) main a.vs-card:is(:hover, :focus-visible) { transform: translateY(-3px) scale(1.02) rotate(calc(var(--tilt) * .5)); }
  /* the big two-up cards grow less, so they do not crowd their neighbour */
  body:not(.za-dark) main a.u-card.u-big:is(:hover, :focus-visible) { transform: translateY(-6px) scale(1.02) rotate(calc(var(--tilt) * .7)); }
  body:not(.za-dark) main a.cm-card:hover .fl { transform: none; }
}
