/* Shared styles for all pages (on top of /styles.css). */
/* ---------------------------------------------------------- shared */
.site-header { transition: height .35s ease, background-color .35s ease, border-color .35s ease; }
.site-header.is-compact { height: 58px; background: rgba(5,7,13,.86); }
/* styles.css paints the active nav link with the old light-theme ink; keep it readable on dark. */
.site-header .desktop-nav a[aria-current="page"] { color: var(--kz-strong); }
.site-header .desktop-nav a[aria-current="page"]::after { background: var(--kz-accent); }
.kp-section { padding: clamp(96px, 13vh, 150px) 0; }
.kp-heading { max-width: 620px; }
.kp-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--kz-faint); font: 500 12px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.kp-eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--kz-accent), transparent); }
.kp-heading h2 { margin: 18px 0 0; color: var(--kz-strong); font-size: clamp(36px, 4.4vw, 62px); line-height: 1; letter-spacing: -.045em; }
.kp-heading p { max-width: 520px; margin: 20px 0 0; color: var(--kz-muted); font-size: 17px; line-height: 1.65; }

.kp-note { display: block; margin-top: 8px; color: var(--kz-faint); font: 500 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .04em; }

/* ---------------------------------------------------------- cta */
/* Final call to action: the colours and swoosh of the Kaizen business card, with a soft light that follows the pointer. */
.kp-cta { --px: 0; --py: 0; position: relative; isolation: isolate; overflow: hidden; margin-top: 40px; margin-bottom: 100px; padding: clamp(64px, 9vw, 120px) clamp(24px, 5vw, 72px); border: 1px solid rgba(120,150,255,.22); border-radius: 30px; background: radial-gradient(70% 90% at 0% 0%, rgba(46,52,150,.55), transparent 70%), radial-gradient(60% 85% at 100% 100%, rgba(22,96,204,.5), transparent 70%), radial-gradient(45% 60% at 40% 115%, rgba(14,108,150,.32), transparent 70%), #0c1124; text-align: center; }
.kp-cta-art { position: absolute; z-index: -1; left: 50%; top: 50%; width: max(130%, 1100px); transform: translate(calc(-50% + var(--px) * 18px), calc(-50% + var(--py) * 12px)) rotate(-9deg); transition: transform 1.2s cubic-bezier(.22,1,.36,1); pointer-events: none; }
.kp-cta-art svg { display: block; width: 100%; height: auto; animation: kp-swoosh 24s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes kp-swoosh { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2deg) scale(1.04); } }
@media (prefers-reduced-motion: reduce) { .kp-cta-art svg { animation: none; } .kp-cta-art { transition: none; } }
.kp-cta-copy { position: relative; }
.kp-cta h2 { max-width: 820px; margin: 18px auto 0; color: var(--kz-strong); font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
.kp-cta p { max-width: 560px; margin: 20px auto 0; color: var(--kz-muted); font-size: 17px; line-height: 1.6; }
.kp-cta .kz3-button { margin-top: 34px; }


/* Three-step path that draws itself (used by goal and plan cards). */
.kp-path { position: relative; align-self: stretch; display: grid; gap: 22px; margin: 18px 0 0; padding: 0 0 0 34px; list-style: none; }
.kp-path::before, .kp-path::after { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; }
.kp-path::before { background: var(--kz-border); }
.kp-path::after { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); box-shadow: 0 0 12px var(--accent); transform: scaleY(0); transform-origin: top; }
.kp-path.is-drawn::after { transform: scaleY(1); transition: transform 1.1s cubic-bezier(.65,0,.35,1); }
.kp-path li { position: relative; opacity: .35; transform: translateX(-6px); }
.kp-path.is-drawn li { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.kp-path.is-drawn li:nth-child(2) { transition-delay: .4s; }
.kp-path.is-drawn li:nth-child(3) { transition-delay: .8s; }
.kp-path i { position: absolute; left: -34px; top: 2px; width: 16px; height: 16px; border: 2px solid var(--kz-border-strong); border-radius: 50%; background: var(--kz-bg); transition: border-color .4s ease, box-shadow .4s ease; }
.kp-path.is-drawn i { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent), 0 0 16px var(--accent); }
.kp-path.is-drawn li:nth-child(2) i { transition-delay: .4s; }
.kp-path.is-drawn li:nth-child(3) i { transition-delay: .8s; }
.kp-path span { display: block; color: var(--kz-faint); font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; }
.kp-path strong { display: block; margin-top: 6px; color: var(--kz-strong); font-size: 17px; font-weight: 600; }

/* Accent card (goal picker on home, plan builder on approach). */
.kp-goal-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3vw, 40px); border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 26px; background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--kz-panel-strong); transition: border-color .5s ease, background .5s ease; }
.kp-card-label { display: block; color: var(--accent); font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; transition: color .5s ease; }
.kp-card-label--path { margin-top: 30px; color: var(--kz-faint); }
.kp-goal-card h3 { margin: 14px 0 0; color: var(--kz-strong); font-size: clamp(26px, 2.5vw, 36px); line-height: 1.05; letter-spacing: -.035em; }
.kp-goal-card > p { margin: 12px 0 0; color: var(--kz-muted); font-size: 16px; line-height: 1.6; }
.kp-goal-card h3, .kp-goal-card > p { transition: opacity .25s ease, transform .25s ease; }
.kp-goal-card.is-swapping h3, .kp-goal-card.is-swapping > p { opacity: 0; transform: translateY(6px); }
.kp-card-link { display: inline-block; margin-top: auto; padding-top: 28px; color: var(--accent); font-weight: 600; text-decoration: none; transition: color .5s ease; }

/* Pill list of short principles. */
.kp-principles { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; }
.kp-principles li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--kz-border); border-radius: 99px; color: var(--kz-soft); font-size: 14px; }
.kp-principles li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #35d6e8; box-shadow: 0 0 8px #35d6e8; }

/* Legal links in the footer bottom row. */
.kaizen-footer__legal a { color: inherit; text-decoration: none; transition: color .25s ease; }
.kaizen-footer__legal a:hover { color: var(--kz-strong); }

/* Small mono notes must stay small even inside headings (".kp-heading p" is more specific). */
.kp-heading p.kp-note, p.kp-note { margin-top: 12px; color: var(--kz-faint); font: 500 11px/1.5 "IBM Plex Mono", monospace; letter-spacing: .04em; }
/* Footer CTA: size to its label (styles.css fixes it at 210px, which squeezed the arrow circle). */
.kaizen-footer__cta-button { width: auto; padding: 0 16px 0 28px; white-space: nowrap; }
.kaizen-footer__cta-button b { flex: none; width: 40px; height: 40px; }
@media (max-width: 760px) { .kaizen-footer__cta-button { width: 100%; } }

/* ---------------------------------------------------------- page entry */
/* A calm fade as each page opens. Opacity only, so fixed and sticky layers inside
   keep working; fill "backwards" releases the property once the fade is done. */
@keyframes kz-page-in { from { opacity: 0; } to { opacity: 1; } }
main { animation: kz-page-in .9s cubic-bezier(.22, 1, .36, 1) backwards; }
/* Between pages, browsers that support it cross-fade instead of flashing;
   the header keeps its own name so it stays put rather than fading with the page. */
@view-transition { navigation: auto; }
.site-header { view-transition-name: kz-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .4s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ---------------------------------------------------------- calmer motion everywhere */
/* Softer easing for the mobile menu. */
.mobile-nav { transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.menu-toggle span { transition: transform .3s cubic-bezier(.22, 1, .36, 1); }
/* Anchor links (#offer, #capabilities…) stop below the fixed header instead of under it. */
[id] { scroll-margin-top: 96px; }

/* ---------------------------------------------------------- footer */
/* A firmer close to every page: a lit top edge, brighter type, livelier links
   and a clear bottom row. */
.kaizen-footer { border-top: 0; background: radial-gradient(60% 70% at 85% 100%, rgba(22,96,204,.16), transparent 70%), linear-gradient(180deg, #070b19, #05070d 60%); }
.kaizen-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(92,147,255,.65) 35%, rgba(79,224,212,.5) 65%, transparent); }
.kaizen-footer__halo { top: -320px; width: 1300px; height: 600px; background: radial-gradient(closest-side, rgba(47,109,255,.22), transparent); }
.kaizen-footer__main { padding-top: 76px; padding-bottom: 64px; }
.kaizen-footer__brand img { width: 150px; }
.kaizen-footer__brand p { max-width: 380px; margin-top: 26px; color: #c4cee0; font-size: 19px; line-height: 1.5; letter-spacing: -.01em; }
.kaizen-footer__brand > span { color: #8fa0bd; }
.kaizen-footer__label { color: #7fa3e6; }
.kaizen-footer__contact a { padding: 15px 0; color: #f3f6fc; border-bottom-color: rgba(110,140,200,.26); font-size: 18px; transition: color .25s ease, border-color .25s ease; }
.kaizen-footer__contact a b { transition: transform .3s cubic-bezier(.22,1,.36,1); }
.kaizen-footer__contact a:hover { border-bottom-color: rgba(92,147,255,.7); }
.kaizen-footer__contact a:hover b { transform: translate(3px, -3px); }
.kaizen-footer__contact small { color: #8a99b3; }
.kaizen-footer__nav a { color: #b4c0d4; font-size: 15px; }
.kaizen-footer__nav a:hover { color: #fff; }
.kaizen-footer__bottom { border-top-color: rgba(110,140,200,.2); color: #7d8ca6; }
.kaizen-footer__bottom a { color: #8d9dba; }
@media (max-width: 760px) {
  .kaizen-footer__brand p { font-size: 17px; }
  .kaizen-footer__contact a { font-size: 17px; }
}
