/* Zentelligence components (z- prefix). Ported verbatim from the design system (tokens/components.css). */

/* Zentelligence components. Plain CSS over tokens.css; class prefix z-. */

.z-root { background: var(--ground); color: var(--ink); font-family: var(--font-text); font-size: 16px; line-height: 26px; -webkit-font-smoothing: antialiased; }
.z-root a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.z-root :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Eyebrow: tracked uppercase label above a heading */
.z-eyebrow { font-family: var(--font-display); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin: 0; }
.z-eyebrow--accent { color: var(--orange-ink); }

/* Section header */
.z-section-header { display: grid; gap: var(--space-2); max-width: var(--measure); }
.z-section-header__title { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; margin: 0; color: var(--ink); }
.z-section-header__title--hero { font-size: 40px; line-height: 48px; letter-spacing: -0.01em; }
.z-section-header__title .z-light { font-weight: 300; }
.z-section-header__lead { font-size: 18px; line-height: 28px; color: var(--ink-soft); margin: var(--space-3) 0 0; }

/* Buttons */
.z-button { display: inline-flex; align-items: center; gap: var(--space-2); font-family: var(--font-text); font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.z-root a.z-button { text-decoration: none; }
.z-button--primary, .z-root a.z-button--primary { background: var(--action); color: var(--on-action); }
.z-button--primary:hover { background: var(--action-hover); }
.z-button--secondary, .z-root a.z-button--secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.z-button--secondary:hover { border-color: var(--link); color: var(--link); }
.z-button--accent, .z-root a.z-button--accent { background: var(--orange); color: var(--on-accent); }
.z-button--accent:hover { background: var(--orange-faded); }
.z-button--quiet, .z-root a.z-button--quiet { background: transparent; color: var(--link); padding-left: 0; padding-right: 0; }
.z-button--quiet:hover { text-decoration: underline; }
.z-button[disabled], .z-button[aria-disabled="true"] { background: var(--surface-sunken); color: var(--ink-soft); border-color: var(--line); cursor: not-allowed; }

/* Card with an optional quadrant rule */
.z-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-5); display: grid; gap: var(--space-3); align-content: start; }
.z-card--ruled { border-top: var(--rule-weight) solid var(--blue); }
.z-card--rule-green { border-top-color: var(--green); }
.z-card--rule-orange { border-top-color: var(--orange); }
.z-card--rule-grey { border-top-color: var(--grey); }
.z-card--rule-purple { border-top-color: var(--purple); }
.z-card__title { font-family: var(--font-display); font-size: 18px; line-height: 26px; font-weight: 600; margin: 0; color: var(--ink); }
.z-card__body { font-size: 14px; line-height: 22px; color: var(--ink-soft); margin: 0; }
.z-card__link { font-size: 14px; line-height: 20px; font-weight: 600; }

/* Proof strip */
.z-proof { background: var(--surface-blue); border-radius: var(--radius-lg); padding: var(--space-5) var(--space-6); }
.z-proof__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.z-proof__item { padding: 0 var(--space-5); border-left: 1px solid var(--line); font-size: 14px; line-height: 22px; color: var(--ink); }
.z-proof__item:first-child { border-left: 0; padding-left: 0; }
.z-proof__figure { display: block; font-family: var(--font-display); font-size: 18px; line-height: 26px; font-weight: 600; color: var(--link); }
@media (max-width: 720px) {
  .z-proof__list { grid-template-columns: 1fr; gap: var(--space-4); }
  .z-proof__item { border-left: 0; padding: 0; }
}

/* Insight band: the one idea on a page to sit with */
.z-band { background: var(--band); color: var(--on-band); border-radius: var(--radius-lg); padding: var(--space-8) var(--space-6); display: grid; gap: var(--space-4); }
.z-band .z-eyebrow { color: var(--orange-faded); }
.z-band__quote { font-family: var(--font-text); font-style: italic; font-size: 18px; line-height: 28px; margin: 0; max-width: var(--measure); }
.z-band__action { font-weight: 600; color: var(--on-band); }
.z-root .z-band a { color: var(--on-band); }

/* Steps: numbered sequence with quadrant markers */
.z-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-5); counter-reset: z-step; }
.z-step { display: grid; gap: var(--space-2); align-content: start; position: relative; }
.z-step__marker { width: 32px; height: 32px; border-radius: var(--radius-full); background: var(--blue); color: var(--on-action); font-family: var(--font-display); font-weight: 600; font-size: 13px; display: grid; place-items: center; }
.z-step:nth-child(4n+2) .z-step__marker { background: var(--orange); color: var(--on-accent); }
.z-step:nth-child(4n+3) .z-step__marker { background: var(--green); color: var(--on-action); }
.z-step:nth-child(4n+4) .z-step__marker { background: var(--grey); color: var(--on-action); }
.z-step__title { font-family: var(--font-display); font-size: 16px; line-height: 22px; font-weight: 600; margin: 0; color: var(--ink); }
.z-step__body { font-size: 14px; line-height: 22px; color: var(--ink-soft); margin: 0; }

/* Field */
.z-field { display: grid; gap: var(--space-2); max-width: 440px; }
.z-field__label { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.z-field__hint { font-size: 12px; line-height: 18px; color: var(--ink-soft); }
.z-field__control { font: inherit; font-size: 16px; line-height: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); width: 100%; box-sizing: border-box; }
.z-field__control:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.z-field--error .z-field__control { border-color: var(--error-ink); }
.z-field__error { font-size: 12px; line-height: 18px; color: var(--error-ink); font-weight: 600; }
.z-message { border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); font-size: 14px; line-height: 22px; }
.z-message--success { background: var(--success-surface); color: var(--success-ink); }
.z-message--error { background: var(--error-surface); color: var(--error-ink); }

/* Site header */
.z-header { display: flex; align-items: center; gap: var(--space-6); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.z-header__brand { display: flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--ink); }
.z-header__mark { width: 36px; height: 36px; border-radius: var(--radius-full); display: block; }
.z-header__wordmark { font-family: var(--font-display); font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: 0.01em; }
.z-header__wordmark .z-light { font-weight: 300; }
.z-header__nav { display: flex; gap: var(--space-5); margin-left: auto; align-items: center; }
.z-root .z-header__nav a { color: var(--ink); text-decoration: none; font-size: 14px; line-height: 20px; font-weight: 600; letter-spacing: 0.02em; padding: var(--space-2) 0; border-bottom: 2px solid transparent; }
.z-root .z-header__nav a:hover { color: var(--link); }
.z-root .z-header__nav a[aria-current="page"] { color: var(--link); border-bottom-color: var(--orange); }
