/*!
 * STEP IT Academy — Components v1.0
 * Requires step-tokens.css (and step-fonts.css for FiraGO).
 * Naming: .step-{component}, .step-{component}__{part}, .step-{component}--{variant}
 */

/* ============================================================ Base */
.step-body {
  margin: 0;
  font: var(--step-text-body);
  color: var(--step-color-text);
  background: var(--step-color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.step-body *, .step-body *::before, .step-body *::after { box-sizing: border-box; }

.step-text-display-1 { font: var(--step-text-display-1); letter-spacing: var(--step-text-display-1-tracking); }
.step-text-display-2 { font: var(--step-text-display-2); letter-spacing: var(--step-text-display-2-tracking); }
.step-text-display-light { font: var(--step-text-display-light); letter-spacing: var(--step-text-display-light-tracking); }
.step-highlight { color: var(--step-color-primary-text); }
.step-text-h1 { font: var(--step-text-h1); letter-spacing: var(--step-text-h1-tracking); }
.step-text-h2 { font: var(--step-text-h2); letter-spacing: var(--step-text-h2-tracking); }
.step-text-h3 { font: var(--step-text-h3); }
.step-text-h4 { font: var(--step-text-h4); }
.step-text-body-lg { font: var(--step-text-body-lg); }
.step-text-body { font: var(--step-text-body); }
.step-text-body-sm { font: var(--step-text-body-sm); }
.step-text-label { font: var(--step-text-label); }
.step-text-caption { font: var(--step-text-caption); }
.step-text-overline { font: var(--step-text-overline); letter-spacing: var(--step-text-overline-tracking); }
.step-text-muted { color: var(--step-color-text-muted); }

/* Logo (inline SVG via <use href="#step-logo">) */
.step-logo {
  display: inline-block;
  width: var(--step-logo-rec-width);
  min-width: var(--step-logo-min-width);
  aspect-ratio: var(--step-logo-aspect);
  height: auto;
  color: var(--step-brand-blue);
  fill: currentColor;
  flex: none;
}
.step-logo--white { color: var(--step-brand-white); }
.step-logo--black { color: var(--step-brand-black); }
.step-logo--shadow-strong { filter: var(--step-logo-shadow-strong); }
.step-logo--shadow-soft { filter: var(--step-logo-shadow-soft); }
/* Clear space: 2X on every side, where X = 22.8% of logo width */
.step-logo-clearspace {
  --_w: var(--step-logo-rec-width);
  display: inline-flex;
  padding: calc(var(--_w) * var(--step-logo-x-ratio) * var(--step-logo-clearspace));
}

/* Icons: Phosphor (MIT) — filled outlines on a 256 grid, colour from currentColor */
.step-icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -0.2em; }

.step-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ============================================================ Button */
.step-btn {
  --_bg: var(--step-color-primary);
  --_bg-hover: var(--step-color-primary-hover);
  --_bg-active: var(--step-color-primary-active);
  --_fg: var(--step-color-on-primary);
  --_border: transparent;
  --_h: 48px;
  --_px: var(--step-space-8);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--step-space-2);
  height: var(--_h); padding: 0 var(--_px);
  font: var(--step-weight-medium) 16px/24px var(--step-font-sans); white-space: nowrap;
  color: var(--_fg); background: var(--_bg);
  border: 1px solid var(--_border); border-radius: var(--step-radius-sm);
  cursor: pointer; text-decoration: none; user-select: none; position: relative;
  transition: background-color var(--step-duration-fast) var(--step-ease-standard),
              border-color var(--step-duration-fast) var(--step-ease-standard),
              color var(--step-duration-fast) var(--step-ease-standard),
              box-shadow var(--step-duration-fast) var(--step-ease-standard),
              transform var(--step-duration-fast) var(--step-ease-standard);
}
.step-btn:hover { background: var(--_bg-hover); }
.step-btn:active { background: var(--_bg-active); transform: translateY(1px); }
.step-btn:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-btn:disabled, .step-btn[aria-disabled="true"] {
  cursor: not-allowed; opacity: .45; transform: none; background: var(--_bg);
}
.step-btn--secondary {
  --_bg: var(--step-color-primary-subtle); --_bg-hover: var(--step-color-primary-muted);
  --_bg-active: var(--step-color-primary-muted); --_fg: var(--step-color-primary-text);
}
.step-btn--outline {
  --_bg: transparent; --_bg-hover: var(--step-color-bg-subtle); --_bg-active: var(--step-color-surface-sunken);
  --_fg: var(--step-color-text); --_border: var(--step-color-border-strong);
}
.step-btn--ghost {
  --_bg: transparent; --_bg-hover: var(--step-color-primary-subtle); --_bg-active: var(--step-color-primary-muted);
  --_fg: var(--step-color-primary-text);
}
.step-btn--danger {
  --_bg: var(--step-color-danger); --_bg-hover: color-mix(in srgb, var(--step-color-danger) 85%, black);
  --_bg-active: color-mix(in srgb, var(--step-color-danger) 75%, black); --_fg: var(--step-color-on-danger);
}
.step-btn--course {
  --_bg: var(--step-course-primary); --_bg-hover: color-mix(in srgb, var(--step-course-primary) 86%, black);
  --_bg-active: color-mix(in srgb, var(--step-course-primary) 76%, black); --_fg: var(--step-course-on-primary);
}
.step-btn--sm { --_h: 40px; --_px: var(--step-space-5); font-size: 14px; }
.step-btn--lg { --_h: 56px; --_px: var(--step-space-12); font-size: 18px; }
.step-btn--rounded { border-radius: var(--step-radius-xl); font-weight: var(--step-weight-bold); }
.step-btn--block { display: flex; width: 100%; }
.step-btn { max-width: 100%; }
@media (max-width: 480px) {
  /* long Georgian labels wrap instead of overflowing narrow screens */
  .step-btn:not(.step-btn--icon) { white-space: normal; text-align: center; height: auto; min-height: var(--_h); padding-block: 8px; }
}
.step-btn--icon { --_px: 0; width: var(--_h); }
.step-btn .step-icon { width: 18px; height: 18px; }
.step-btn.is-loading { color: transparent; pointer-events: none; }
.step-btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--_fg); border-right-color: transparent;
  animation: step-spin .7s linear infinite;
}
@keyframes step-spin { to { transform: rotate(360deg); } }

.step-btn-group { display: inline-flex; flex-wrap: wrap; gap: var(--step-space-2); align-items: center; }

/* ============================================================ Link */
.step-link {
  color: var(--step-color-primary-text); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  transition: text-decoration-color var(--step-duration-fast) var(--step-ease-standard);
  border-radius: 2px;
}
.step-link:hover { text-decoration-color: currentColor; }
.step-link:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-link--subtle { color: inherit; }
.step-link--standalone { display: inline-flex; align-items: center; gap: var(--step-space-1);
  text-decoration: none; font-weight: var(--step-weight-medium); }
.step-link--standalone .step-icon { transition: transform var(--step-duration-fast) var(--step-ease-standard); }
.step-link--standalone:hover .step-icon { transform: translateX(3px); }

/* ============================================================ Form fields */
.step-field { display: grid; gap: var(--step-space-2); min-width: 0; }
.step-label { font: var(--step-text-label); color: var(--step-color-text); }
.step-label .step-required { color: var(--step-color-danger-text); margin-inline-start: 2px; }
.step-hint { font: var(--step-text-caption); color: var(--step-color-text-muted); margin: 0; }
.step-error { font: var(--step-text-caption); color: var(--step-color-danger-text); margin: 0;
  display: flex; gap: var(--step-space-1); align-items: center; }

.step-input, .step-select, .step-textarea {
  --_h: 50px;
  width: 100%; height: var(--_h); padding: 0 var(--step-space-5);
  font: var(--step-weight-medium) 16px/24px var(--step-font-sans);
  color: var(--step-color-text); background: var(--step-color-surface);
  border: 1px solid var(--step-color-border); border-radius: var(--step-radius-xl);
  transition: border-color var(--step-duration-fast) var(--step-ease-standard),
              box-shadow var(--step-duration-fast) var(--step-ease-standard);
  appearance: none;
}
.step-textarea { height: auto; min-height: 120px; padding: var(--step-space-3) var(--step-space-5); resize: vertical; }
.step-input::placeholder, .step-textarea::placeholder { color: var(--step-color-text-subtle); }
.step-input:hover, .step-select:hover, .step-textarea:hover { border-color: var(--step-color-text-subtle); }
.step-input:focus, .step-select:focus, .step-textarea:focus {
  outline: none; border-color: var(--step-color-primary); box-shadow: var(--step-focus-ring);
}
.step-input:disabled, .step-select:disabled, .step-textarea:disabled {
  background: var(--step-color-surface-sunken); color: var(--step-color-text-subtle); cursor: not-allowed;
}
.step-input--sm, .step-select--sm { --_h: 40px; font-size: 14px; border-radius: var(--step-radius-lg); padding-inline: var(--step-space-4); }
.step-input--lg, .step-select--lg { --_h: 56px; }
.step-field.is-invalid .step-input, .step-field.is-invalid .step-select, .step-field.is-invalid .step-textarea,
.step-input[aria-invalid="true"] { border-color: var(--step-color-danger); }
.step-field.is-invalid .step-input:focus, .step-input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--step-color-danger) 30%, transparent);
}
.step-select {
  padding-inline-end: var(--step-space-10); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%237A7A7A'%3E%3Cpath d='M216.49,104.49l-80,80a12,12,0,0,1-17,0l-80-80a12,12,0,0,1,17-17L128,159l71.51-71.52a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 16px;
}
.step-input-group { position: relative; display: flex; align-items: center; }
.step-input-group > .step-icon { position: absolute; inset-inline-start: 18px; color: var(--step-color-text-subtle); pointer-events: none; }
.step-input-group > .step-input { padding-inline-start: 48px; }
.step-input-group__prefix { position: absolute; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 4px;
  font: var(--step-text-body); color: var(--step-color-text); pointer-events: none; }
.step-input-group__prefix .step-icon { width: 14px; height: 14px; color: var(--step-color-text-subtle); }
.step-input-group:has(.step-input-group__prefix) > .step-input { padding-inline-start: 60px; }
.step-input-group > .step-input-group__end { position: absolute; inset-inline-end: 6px; }

/* Checkbox & radio */
.step-check { display: inline-flex; align-items: flex-start; gap: var(--step-space-2); cursor: pointer;
  font: var(--step-text-body); color: var(--step-color-text); }
.step-check input {
  appearance: none; margin: 2px 0 0; flex: none; width: 20px; height: 20px; cursor: pointer;
  border: 1.5px solid var(--step-color-border-strong); border-radius: var(--step-radius-xs);
  background: var(--step-color-surface) no-repeat center / 14px;
  transition: background-color var(--step-duration-fast) var(--step-ease-standard),
              border-color var(--step-duration-fast) var(--step-ease-standard);
}
.step-check input[type="radio"] { border-radius: 50%; }
.step-check input:hover { border-color: var(--step-color-primary); }
.step-check input:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-check input:checked { background-color: var(--step-color-primary); border-color: var(--step-color-primary); }
.step-check input[type="checkbox"]:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='white'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
}
.step-check input[type="checkbox"]:indeterminate {
  background-color: var(--step-color-primary); border-color: var(--step-color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='white'%3E%3Cpath d='M228,128a12,12,0,0,1-12,12H40a12,12,0,0,1,0-24H216A12,12,0,0,1,228,128Z'/%3E%3C/svg%3E");
}
.step-check input[type="radio"]:checked { background: var(--step-color-surface); box-shadow: inset 0 0 0 5px var(--step-color-primary); }
.step-check input[type="radio"]:checked:focus-visible { box-shadow: inset 0 0 0 5px var(--step-color-primary), var(--step-focus-ring); }
.step-check input:disabled { cursor: not-allowed; opacity: .5; }
.step-check:has(input:disabled) { cursor: not-allowed; color: var(--step-color-text-subtle); }
.step-check__text { display: grid; gap: 2px; }
.step-check__hint { font: var(--step-text-caption); color: var(--step-color-text-muted); }
.step-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--step-space-3); }
.step-fieldset legend { font: var(--step-text-label); padding: 0; margin-bottom: var(--step-space-3); }

/* Switch */
.step-switch { display: inline-flex; align-items: center; gap: var(--step-space-3); cursor: pointer; font: var(--step-text-body); }
.step-switch input {
  appearance: none; margin: 0; flex: none; position: relative; width: 40px; height: 24px; cursor: pointer;
  border-radius: var(--step-radius-full); background: var(--step-color-border-strong);
  transition: background-color var(--step-duration-base) var(--step-ease-standard);
}
.step-switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: var(--step-shadow-sm);
  transition: transform var(--step-duration-base) var(--step-ease-emphasized);
}
.step-switch input:checked { background: var(--step-color-primary); }
.step-switch input:checked::after { transform: translateX(16px); }
.step-switch input:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-switch input:disabled { opacity: .45; cursor: not-allowed; }

/* ============================================================ Badge, tag, chip */
.step-badge {
  --_bg: var(--step-color-surface-sunken); --_fg: var(--step-color-text-muted);
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  font: var(--step-text-caption); font-weight: var(--step-weight-medium); white-space: nowrap;
  color: var(--_fg); background: var(--_bg); border-radius: var(--step-radius-full);
}
.step-badge--primary { --_bg: var(--step-color-primary-subtle); --_fg: var(--step-color-primary-text); }
.step-badge--success { --_bg: var(--step-color-success-subtle); --_fg: var(--step-color-success-text); }
.step-badge--warning { --_bg: var(--step-color-warning-subtle); --_fg: var(--step-color-warning-text); }
.step-badge--danger  { --_bg: var(--step-color-danger-subtle);  --_fg: var(--step-color-danger-text); }
.step-badge--info    { --_bg: var(--step-color-info-subtle);    --_fg: var(--step-color-info-text); }
.step-badge--solid   { --_bg: var(--step-color-primary); --_fg: var(--step-color-on-primary); }
.step-badge--course  { --_bg: var(--step-course-primary-tint); --_fg: var(--step-course-ink); }
.step-badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.step-badge--count { min-width: 20px; height: 20px; padding: 0 6px; justify-content: center;
  --_bg: var(--step-color-danger); --_fg: var(--step-color-on-danger); font-weight: var(--step-weight-bold); }

.step-tag {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  font: var(--step-text-body-sm); color: var(--step-color-text);
  background: var(--step-color-surface); border: 1px solid var(--step-color-border-strong);
  border-radius: var(--step-radius-sm);
}
.step-tag--course {
  color: var(--step-course-ink); background: var(--step-course-primary-tint);
  border-color: color-mix(in srgb, var(--step-course-primary) 30%, transparent);
}
.step-tag--course::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--step-course-primary); }
.step-tag__remove {
  display: inline-grid; place-items: center; width: 18px; height: 18px; margin-inline-end: -4px; padding: 0;
  color: inherit; background: none; border: 0; border-radius: var(--step-radius-xs); cursor: pointer; opacity: .7;
}
.step-tag__remove:hover { opacity: 1; background: color-mix(in srgb, currentColor 12%, transparent); }
.step-tag__remove:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-tag__remove .step-icon { width: 14px; height: 14px; }


/* ============================================================ Alert */
.step-alert {
  --_accent: var(--step-color-info); --_bg: var(--step-color-info-subtle); --_fg: var(--step-color-info-text);
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--step-space-3); align-items: start;
  padding: var(--step-space-5) var(--step-space-6); border-radius: var(--step-radius-xl);
  background: var(--_bg); color: var(--step-color-text);
  border: 1px solid color-mix(in srgb, var(--_accent) 22%, transparent);
}
.step-alert > .step-icon { color: var(--_fg); width: 22px; height: 22px; margin-top: 1px; }
.step-alert__title { font: var(--step-text-label); font-weight: var(--step-weight-semibold); margin: 0 0 2px; color: var(--_fg); }
.step-alert__body { font: var(--step-text-body-sm); margin: 0; color: var(--step-color-text); }
.step-alert__actions { display: flex; gap: var(--step-space-2); margin-top: var(--step-space-3); }
.step-alert--success { --_accent: var(--step-color-success); --_bg: var(--step-color-success-subtle); --_fg: var(--step-color-success-text); }
.step-alert--warning { --_accent: var(--step-color-warning); --_bg: var(--step-color-warning-subtle); --_fg: var(--step-color-warning-text); }
.step-alert--danger  { --_accent: var(--step-color-danger);  --_bg: var(--step-color-danger-subtle);  --_fg: var(--step-color-danger-text); }
.step-close {
  display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -4px -4px 0 0; padding: 0;
  color: var(--step-color-text-muted); background: none; border: 0; border-radius: var(--step-radius-sm); cursor: pointer;
}
.step-close:hover { background: color-mix(in srgb, currentColor 10%, transparent); color: var(--step-color-text); }
.step-close:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-close .step-icon { width: 18px; height: 18px; }

/* ============================================================ Toast */
.step-toast-region {
  position: fixed; z-index: var(--step-z-toast); inset-block-end: var(--step-space-6); inset-inline-end: var(--step-space-6);
  display: flex; flex-direction: column; gap: var(--step-space-3); width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}
.step-toast {
  pointer-events: auto; display: grid; grid-template-columns: auto 1fr auto; gap: var(--step-space-3); align-items: start;
  padding: var(--step-space-4) var(--step-space-5); border-radius: var(--step-radius-xl);
  color: var(--step-color-text); background: var(--step-color-surface-raised);
  border: 1px solid var(--step-color-border); box-shadow: var(--step-shadow-lg);
  animation: step-toast-in var(--step-duration-slow) var(--step-ease-emphasized);
}
.step-toast > .step-icon { width: 22px; height: 22px; color: var(--step-color-success); }
.step-toast--danger > .step-icon { color: var(--step-color-danger); }
.step-toast--info > .step-icon { color: var(--step-color-info); }
.step-toast__title { font: var(--step-text-label); font-weight: var(--step-weight-semibold); margin: 0; }
.step-toast__body { font: var(--step-text-body-sm); color: var(--step-color-text-muted); margin: 2px 0 0; }
.step-toast.is-leaving { animation: step-toast-out var(--step-duration-base) var(--step-ease-exit) forwards; }
@keyframes step-toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes step-toast-out { to { opacity: 0; transform: translateX(24px); } }

/* ============================================================ Card */
.step-card {
  display: flex; flex-direction: column; overflow: hidden; min-width: 0;
  background: var(--step-color-surface); color: var(--step-color-text);
  border: 1px solid var(--step-color-border); border-radius: var(--step-radius-xl);
}
.step-card--elevated { border-color: transparent; box-shadow: var(--step-shadow-card); }
.step-card--interactive { cursor: pointer; transition: box-shadow var(--step-duration-base) var(--step-ease-standard),
  transform var(--step-duration-base) var(--step-ease-standard), border-color var(--step-duration-base) var(--step-ease-standard); }
.step-card--interactive:hover { box-shadow: var(--step-shadow-lg); transform: translateY(-2px); border-color: transparent; }
.step-card--interactive:focus-within { box-shadow: var(--step-focus-ring); }
.step-card__media { aspect-ratio: 16 / 9; background: var(--step-color-surface-sunken); overflow: hidden; }
.step-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-card__body { display: grid; gap: var(--step-space-2); padding: var(--step-space-6); flex: 1; align-content: start; }
.step-card__eyebrow { font: var(--step-text-overline); letter-spacing: var(--step-text-overline-tracking); color: var(--step-color-primary-text); margin: 0; }
.step-card__title { font: var(--step-text-h4); margin: 0; }
.step-card__title a { color: inherit; text-decoration: none; }
.step-card__title a::after { content: ""; position: absolute; inset: 0; }
.step-card--interactive { position: relative; }
.step-card__text { font: var(--step-text-body-sm); color: var(--step-color-text-muted); margin: 0; }
.step-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--step-space-3);
  padding: var(--step-space-4) var(--step-space-6); border-top: 1px solid var(--step-color-border); }
.step-card__meta { display: flex; flex-wrap: wrap; gap: var(--step-space-4); font: var(--step-text-caption); color: var(--step-color-text-muted); }
.step-card__meta span { display: inline-flex; align-items: center; gap: 6px; }


/* Course flyer — the A4 mockup from the guideline (PDF p.22-28) */
.step-flyer {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  aspect-ratio: 210 / 297; width: 100%;
  background: #fff; color: #212121; font-family: var(--step-font-sans);
  border: 1px solid #DADADA;
}
.step-flyer__header { background: var(--step-course-primary); color: var(--step-course-on-band); padding: 5cqi 7cqi 4.5cqi; }
.step-flyer__brand { font-size: 2.6cqi; font-weight: 500; letter-spacing: .02em; margin: 0 0 1cqi; opacity: .92; }
.step-flyer__title { font-size: 5.6cqi; line-height: 1.15; font-weight: 700; margin: 0; }
.step-flyer__hero {
  margin: 5cqi 4cqi 0; padding: 4cqi; display: grid; grid-template-columns: 1fr 42%; gap: 4cqi; align-items: center;
  background: color-mix(in srgb, var(--step-course-secondary) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--step-course-secondary) 30%, #fff);
  border-radius: 1.6cqi; position: relative; z-index: 1;
}
.step-flyer__text { font-size: 2.9cqi; line-height: 1.45; margin: 0; }
.step-flyer__img {
  aspect-ratio: 1; border-radius: 1.4cqi; position: relative; overflow: hidden;
  background: color-mix(in srgb, var(--step-course-primary) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--step-course-primary) 50%, #fff);
}
.step-flyer__img::before { content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%; left: 18%; top: 16%; background: var(--step-course-primary); }
.step-flyer__img::after { content: ""; position: absolute; inset: 38% -10% -2% 6%;
  background: color-mix(in srgb, var(--step-course-primary) 45%, #fff);
  clip-path: polygon(0 100%, 38% 30%, 58% 62%, 78% 18%, 100% 52%, 100% 100%); }
.step-flyer__watermark { position: absolute; left: 0; right: 0; top: 34%; text-align: center;
  font-size: 46cqi; font-weight: 300; line-height: 1; color: #000; opacity: .035; pointer-events: none; }
.step-flyer__band {
  margin-top: auto; background: var(--step-course-primary); color: var(--step-course-on-band);
  font-size: 3.4cqi; font-weight: 700; padding: 2cqi 7cqi; position: relative; z-index: 1;
}
.step-flyer__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3.5cqi; padding: 4.5cqi 4cqi 8cqi; position: relative; z-index: 1; }
.step-flyer__method {
  display: grid; justify-items: center; align-content: center; gap: 1.6cqi; aspect-ratio: 1.15; padding: 2cqi; text-align: center;
  font-size: 2.2cqi; font-weight: 500; line-height: 1.2;
  background: color-mix(in srgb, var(--step-course-secondary) 9%, #fff);
  border: 1px solid color-mix(in srgb, var(--step-course-secondary) 45%, #fff); border-radius: 1.6cqi;
}
.step-flyer__method svg { width: 6.5cqi; height: 6.5cqi; color: var(--step-course-primary); fill: currentColor; }

/* ============================================================ Tabs */
.step-tabs__list { display: flex; gap: var(--step-space-1); border-bottom: 1px solid var(--step-color-border); overflow-x: auto; scrollbar-width: none; }
.step-tabs__tab {
  position: relative; padding: var(--step-space-3) var(--step-space-4); margin-bottom: -1px;
  font: var(--step-text-label); font-family: var(--step-font-sans); color: var(--step-color-text-muted); white-space: nowrap;
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  transition: color var(--step-duration-fast) var(--step-ease-standard), border-color var(--step-duration-fast) var(--step-ease-standard);
}
.step-tabs__tab:hover { color: var(--step-color-text); }
.step-tabs__tab[aria-selected="true"] { color: var(--step-color-primary-text); border-bottom-color: var(--step-color-primary); }
.step-tabs__tab:focus-visible { outline: none; box-shadow: inset var(--step-focus-ring); border-radius: var(--step-radius-sm); }
.step-tabs__panel { padding: var(--step-space-5) 0 0; font: var(--step-text-body); }
.step-tabs__panel[hidden] { display: none; }
.step-tabs--pills .step-tabs__list { border: 0; gap: var(--step-space-1); padding: 4px; background: var(--step-color-surface-sunken); border-radius: var(--step-radius-lg); display: inline-flex; }
.step-tabs--pills .step-tabs__tab { border: 0; border-radius: var(--step-radius-md); padding: var(--step-space-2) var(--step-space-4); margin: 0; }
.step-tabs--pills .step-tabs__tab[aria-selected="true"] { background: var(--step-color-surface-raised); color: var(--step-color-text); box-shadow: var(--step-shadow-sm); }

/* Segmented control */
.step-segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--step-color-surface-sunken);
  border: 1px solid var(--step-color-border); border-radius: var(--step-radius-full); }
.step-segmented button {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; cursor: pointer;
  font: var(--step-text-label); font-family: var(--step-font-sans); color: var(--step-color-text-muted);
  background: none; border: 0; border-radius: var(--step-radius-full);
  transition: all var(--step-duration-base) var(--step-ease-standard);
}
.step-segmented button:hover { color: var(--step-color-text); }
.step-segmented button[aria-pressed="true"], .step-segmented button[aria-checked="true"] {
  color: var(--step-color-on-primary); background: var(--step-color-primary); box-shadow: var(--step-shadow-sm);
}
.step-segmented button:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-segmented .step-icon { width: 16px; height: 16px; }

/* ============================================================ Accordion */
.step-accordion { border-top: 1px solid var(--step-color-border); }
.step-accordion details { border-bottom: 1px solid var(--step-color-border); }
.step-accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--step-space-4);
  padding: 25px 0 16px; cursor: pointer; list-style: none;
  font: var(--step-text-h4); border-radius: var(--step-radius-sm);
}
.step-accordion summary::-webkit-details-marker { display: none; }
.step-accordion summary:hover { color: var(--step-color-primary-text); }
.step-accordion summary:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-accordion summary .step-icon { transition: transform var(--step-duration-base) var(--step-ease-standard); color: var(--step-color-text-muted); }
.step-accordion details[open] summary .step-icon { transform: rotate(180deg); }
.step-accordion__content { padding: 0 var(--step-space-10) var(--step-space-6) 0; font: var(--step-text-body-lg); color: var(--step-color-text-muted); margin: 0; }

/* ============================================================ Breadcrumbs */
.step-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: var(--step-space-4); list-style: none; margin: 0; padding: 0; font: var(--step-text-caption); }
.step-breadcrumbs li { display: inline-flex; align-items: center; color: var(--step-color-text-muted); }
.step-breadcrumbs li + li::before { content: "/"; margin-inline-end: var(--step-space-4); color: var(--step-color-text-subtle); }
.step-breadcrumbs a { color: inherit; text-decoration: none; border-radius: 2px; }
.step-breadcrumbs a:hover { color: var(--step-color-primary-text); text-decoration: underline; text-underline-offset: 3px; }
.step-breadcrumbs a:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-breadcrumbs [aria-current="page"] { color: var(--step-color-text); font-weight: var(--step-weight-medium); }

/* ============================================================ Pagination */
.step-pagination ul { display: flex; flex-wrap: wrap; gap: var(--step-space-1); list-style: none; margin: 0; padding: 0; }
.step-pagination a, .step-pagination span {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 var(--step-space-2);
  font: var(--step-text-label); color: var(--step-color-text); text-decoration: none;
  border: 1px solid transparent; border-radius: var(--step-radius-sm);
  transition: background-color var(--step-duration-fast) var(--step-ease-standard);
}
.step-pagination a:hover { background: var(--step-color-bg-subtle); border-color: var(--step-color-border); }
.step-pagination a:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-pagination a[aria-current="page"] { background: var(--step-color-primary); color: var(--step-color-on-primary); }
.step-pagination a[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.step-pagination span { color: var(--step-color-text-subtle); }
.step-pagination .step-icon { width: 18px; height: 18px; }

/* ============================================================ Stepper (brand motif: ascending steps) */
.step-stepper { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-stepper__item { position: relative; display: grid; justify-items: center; gap: var(--step-space-2); text-align: center; counter-increment: step; padding: 0 var(--step-space-2); }
.step-stepper__item::before {
  content: counter(step); position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  font: var(--step-text-label); font-weight: var(--step-weight-semibold);
  color: var(--step-color-text-muted); background: var(--step-color-surface);
  border: 1.5px solid var(--step-color-border-strong); border-radius: var(--step-radius-sm);
}
.step-stepper__item:not(:first-child)::after {
  content: ""; position: absolute; top: 16px; right: calc(50% + 20px); left: calc(-50% + 20px); height: 2px; background: var(--step-color-border-strong);
}
.step-stepper__label { font: var(--step-text-label); color: var(--step-color-text-muted); }
.step-stepper__hint { font: var(--step-text-caption); color: var(--step-color-text-subtle); }
.step-stepper__item.is-complete::before {
  content: ""; background: var(--step-color-primary) no-repeat center / 16px; border-color: var(--step-color-primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='white'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E");
}
.step-stepper__item.is-complete::after, .step-stepper__item.is-current::after { background: var(--step-color-primary); }
.step-stepper__item.is-current::before { color: var(--step-color-on-primary); background: var(--step-color-primary); border-color: var(--step-color-primary); box-shadow: var(--step-focus-ring); }
.step-stepper__item.is-current .step-stepper__label, .step-stepper__item.is-complete .step-stepper__label { color: var(--step-color-text); }

/* Stairs progress — 4 ascending bars like the logo symbol */
.step-stairs { display: inline-flex; align-items: flex-end; gap: 3px; height: 28px; }
.step-stairs span { width: 8px; background: var(--step-color-border-strong); border-radius: 1px; transition: background-color var(--step-duration-slow) var(--step-ease-standard); }
.step-stairs span:nth-child(1) { height: 40%; } .step-stairs span:nth-child(2) { height: 60%; }
.step-stairs span:nth-child(3) { height: 80%; } .step-stairs span:nth-child(4) { height: 100%; }
.step-stairs[data-value="1"] span:nth-child(-n+1), .step-stairs[data-value="2"] span:nth-child(-n+2),
.step-stairs[data-value="3"] span:nth-child(-n+3), .step-stairs[data-value="4"] span { background: var(--step-course-primary); }

/* ============================================================ Progress & spinner */
.step-progress { display: grid; gap: var(--step-space-2); }
.step-progress__head { display: flex; justify-content: space-between; font: var(--step-text-label); }
.step-progress__head span:last-child { color: var(--step-color-text-muted); font-variant-numeric: tabular-nums; }
.step-progress__track { height: 8px; background: var(--step-color-surface-sunken); border-radius: var(--step-radius-full); overflow: hidden; }
.step-progress__bar { height: 100%; width: var(--value, 0%); background: var(--step-course-primary); border-radius: inherit;
  transition: width var(--step-duration-slow) var(--step-ease-emphasized); }
.step-progress--sm .step-progress__track { height: 4px; }
.step-progress--indeterminate .step-progress__bar { width: 35%; animation: step-indeterminate 1.4s var(--step-ease-standard) infinite; }
@keyframes step-indeterminate { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.step-spinner { width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid var(--step-color-primary-muted);
  border-top-color: var(--step-color-primary); animation: step-spin .8s linear infinite; }
.step-spinner--sm { width: 16px; height: 16px; border-width: 2px; }
.step-spinner--lg { width: 40px; height: 40px; border-width: 3px; }

/* Skeleton */
.step-skeleton { display: block; border-radius: var(--step-radius-sm); min-height: 12px;
  background: linear-gradient(90deg, var(--step-color-surface-sunken) 25%, var(--step-color-border) 50%, var(--step-color-surface-sunken) 75%) 0 0 / 300% 100%;
  animation: step-shimmer 1.6s linear infinite; }
@keyframes step-shimmer { to { background-position: -150% 0; } }

/* ============================================================ Modal (<dialog>) */
.step-modal {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 64px); padding: 0; overflow: auto;
  color: var(--step-color-text); background: var(--step-color-surface-raised);
  border: 0; border-radius: var(--step-radius-3xl); box-shadow: var(--step-shadow-xl);
}
.step-modal::backdrop { background: var(--step-color-overlay); backdrop-filter: blur(2px); }
.step-modal[open] { animation: step-modal-in var(--step-duration-slow) var(--step-ease-emphasized); }
@keyframes step-modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.step-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--step-space-4); padding: 28px 28px 0; }
.step-close--round { width: 36px; height: 36px; margin: 0; border-radius: 50%; background: var(--step-color-bg-subtle); color: var(--step-color-text); }
.step-close--round:hover { background: var(--step-color-surface-sunken); }
.step-modal--form .step-modal__header { position: absolute; top: 0; right: 0; padding: 16px; }
.step-modal__title { font: var(--step-text-h3); margin: 0; }
.step-modal__body { padding: var(--step-space-3) 28px 28px; font: var(--step-text-body); color: var(--step-color-text-muted); }
.step-modal__footer { display: flex; justify-content: flex-end; gap: var(--step-space-3); padding: var(--step-space-4) 28px;
  background: var(--step-color-bg-subtle); border-top: 1px solid var(--step-color-border); }

/* ============================================================ Tooltip */
.step-tooltip-wrap { position: relative; display: inline-flex; }
.step-tooltip {
  position: absolute; z-index: var(--step-z-tooltip); bottom: calc(100% + 8px); left: 50%;
  width: max-content; max-width: 240px; padding: 6px 10px;
  font: var(--step-text-caption); color: var(--step-color-text-inverse); background: var(--step-color-text);
  border-radius: var(--step-radius-sm); box-shadow: var(--step-shadow-md);
  opacity: 0; visibility: hidden; transform: translate(-50%, 4px); pointer-events: none;
  transition: opacity var(--step-duration-fast) var(--step-ease-standard), transform var(--step-duration-fast) var(--step-ease-standard), visibility var(--step-duration-fast);
}
.step-tooltip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--step-color-text); }
.step-tooltip-wrap:hover .step-tooltip, .step-tooltip-wrap:focus-within .step-tooltip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 300ms; }
.step-tooltip--bottom { bottom: auto; top: calc(100% + 8px); }
.step-tooltip--bottom::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--step-color-text); }

/* ============================================================ Dropdown menu (<details>) */
.step-menu { position: relative; display: inline-block; }
.step-menu > summary { list-style: none; }
.step-menu > summary::-webkit-details-marker { display: none; }
.step-menu__list {
  position: absolute; z-index: var(--step-z-dropdown); top: calc(100% + 6px); inset-inline-start: 0; min-width: 220px;
  margin: 0; padding: 8px; list-style: none;
  background: var(--step-color-surface-raised); border: 1px solid var(--step-color-border);
  border-radius: var(--step-radius-xl); box-shadow: var(--step-shadow-lg);
  animation: step-toast-in var(--step-duration-base) var(--step-ease-emphasized);
}
.step-menu__item {
  display: flex; align-items: center; gap: var(--step-space-3); width: 100%; padding: 8px 10px; cursor: pointer;
  font: var(--step-text-body-sm); font-family: var(--step-font-sans); color: var(--step-color-text); text-align: start; text-decoration: none;
  background: none; border: 0; border-radius: var(--step-radius-sm);
}
.step-menu__item:hover, .step-menu__item:focus-visible { outline: none; background: var(--step-color-primary-subtle); color: var(--step-color-primary-text); }
.step-menu__item .step-icon { width: 18px; height: 18px; color: var(--step-color-text-muted); }
.step-menu__item:hover .step-icon { color: inherit; }
.step-menu__item--danger { color: var(--step-color-danger-text); }
.step-menu__item--danger:hover { background: var(--step-color-danger-subtle); color: var(--step-color-danger-text); }
.step-menu__sep { height: 1px; margin: 6px 0; background: var(--step-color-border); }

/* ============================================================ Avatar */
.step-avatar {
  --_s: 40px;
  display: inline-grid; place-items: center; flex: none; width: var(--_s); height: var(--_s); overflow: hidden;
  font-size: calc(var(--_s) * .38); font-weight: var(--step-weight-semibold); color: var(--step-course-on-primary);
  background: var(--step-course-primary); border-radius: 50%; position: relative;
}
.step-avatar img { width: 100%; height: 100%; object-fit: cover; }
.step-avatar--sm { --_s: 28px; } .step-avatar--lg { --_s: 56px; } .step-avatar--xl { --_s: 80px; }
.step-avatar--square { border-radius: var(--step-radius-md); }
.step-avatar__status { position: absolute; right: 0; bottom: 0; width: 28%; height: 28%; border-radius: 50%;
  background: var(--step-color-success); box-shadow: 0 0 0 2px var(--step-color-surface); }
.step-avatar-group { display: inline-flex; }
.step-avatar-group .step-avatar { box-shadow: 0 0 0 2px var(--step-color-surface); }
.step-avatar-group .step-avatar + .step-avatar { margin-inline-start: -10px; }
.step-avatar--more { color: var(--step-color-text-muted); background: var(--step-color-surface-sunken); }

/* ============================================================ Table */
.step-table-wrap { overflow-x: auto; border: 1px solid var(--step-color-border); border-radius: var(--step-radius-xl); }
.step-table { width: 100%; border-collapse: collapse; font: var(--step-text-body-sm); color: var(--step-color-text); }
.step-table caption { text-align: start; padding: var(--step-space-4); font: var(--step-text-label); }
.step-table th { text-align: start; font-weight: var(--step-weight-semibold); color: var(--step-color-text-muted);
  background: var(--step-color-bg-subtle); padding: 12px var(--step-space-4); border-bottom: 1px solid var(--step-color-border); white-space: nowrap; }
.step-table td { padding: 14px var(--step-space-4); border-bottom: 1px solid var(--step-color-border); vertical-align: middle; }
.step-table tbody tr:last-child td { border-bottom: 0; }
.step-table tbody tr:hover td { background: var(--step-color-bg-subtle); }
.step-table--striped tbody tr:nth-child(even) td { background: var(--step-color-bg-subtle); }
.step-table--compact td, .step-table--compact th { padding: 8px var(--step-space-3); }
.step-table .is-numeric { text-align: end; font-variant-numeric: tabular-nums; }

/* ============================================================ Navbar (website header) */
.step-navbar {
  position: relative; z-index: var(--step-z-sticky);
  container: step-navbar / inline-size;            /* collapses by its own width, not the viewport */
  background: var(--step-color-surface-raised); color: var(--step-color-text);
}
.step-navbar__inner { display: flex; align-items: center; gap: var(--step-space-6); height: 60px; padding: 0 28px; }
/* Framed logo sits flush with the top edge and hangs below the bar (as on A4, PDF p.13) */
.step-navbar__brand { align-self: flex-start; flex: none; display: block; width: 70px; margin-bottom: -31px; border-radius: 0 0 2px 2px; }
.step-navbar__brand img { display: block; width: 100%; height: auto; }
.step-navbar__brand:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-navbar__links { display: flex; gap: var(--step-space-1); list-style: none; margin: 0 0 0 var(--step-space-4); padding: 0; }
.step-navbar__links a {
  display: inline-flex; align-items: center; gap: 4px; padding: 9px 16px;
  font: var(--step-text-label); color: var(--step-color-text-muted); text-decoration: none; border-radius: var(--step-radius-md);
  transition: background-color var(--step-duration-base) var(--step-ease-standard), color var(--step-duration-base) var(--step-ease-standard);
}
.step-navbar__links a:hover { color: var(--step-color-text); background: color-mix(in srgb, var(--step-color-text) 8%, transparent); }
.step-navbar__links a:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-navbar__links a[aria-current="page"] { color: var(--step-color-on-primary); background: var(--step-color-primary); }
.step-navbar__links .step-icon { width: 14px; height: 14px; }
.step-navbar__actions { display: flex; align-items: center; gap: var(--step-space-3); margin-inline-start: auto; }
.step-navbar__actions .step-btn { --_h: 36px; --_px: var(--step-space-3); font-size: 14px; border-radius: var(--step-radius-md); }
.step-navbar__toggle { display: none; }
.step-pill {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border: 0; cursor: pointer;
  font: var(--step-weight-medium) 12px/1 var(--step-font-sans); color: var(--step-color-text);
  background: color-mix(in srgb, var(--step-color-text) 12%, transparent); border-radius: var(--step-radius-full);
}
.step-pill .step-icon { width: 12px; height: 12px; }
@container step-navbar (max-width: 860px) {
  .step-navbar__inner { flex-wrap: wrap; height: auto; min-height: 60px; padding: 0 var(--step-space-4); row-gap: 0; }
  .step-navbar__inner > nav { flex-basis: 100%; }
  .step-navbar__toggle { display: inline-flex; margin: 10px 0 10px auto; --_fg: var(--step-color-text); }
  .step-navbar__links, .step-navbar__actions { display: none; width: 100%; margin: 0; }
  .step-navbar.is-open .step-navbar__links { display: grid; padding: 40px 0 8px; }
  .step-navbar.is-open .step-navbar__actions { display: flex; flex-wrap: wrap; padding-bottom: 16px; }
}

/* ============================================================ Divider & empty state */
.step-divider { height: 1px; border: 0; margin: var(--step-space-6) 0; background: var(--step-color-border); }
.step-empty { display: grid; justify-items: center; gap: var(--step-space-3); padding: var(--step-space-12) var(--step-space-6); text-align: center;
  border: 1.5px dashed var(--step-color-border-strong); border-radius: var(--step-radius-xl); }
.step-empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--step-radius-lg);
  background: var(--step-color-primary-subtle); color: var(--step-color-primary-text); }
.step-empty__title { font: var(--step-text-h4); margin: 0; }
.step-empty__text { font: var(--step-text-body-sm); color: var(--step-color-text-muted); margin: 0; max-width: 360px; }

/* ============================================================
   Website patterns — modelled on ge.itstep.org, coloured with the brand palette
   ============================================================ */

/* Sections: alternate white / subtle grey / black like the website.
   Add .step-theme-dark (from step-tokens.css) to make any section black. */
.step-section { padding-block: 100px; padding-inline: 28px; background: var(--step-color-bg); color: var(--step-color-text); }
.step-section--subtle { background: var(--step-color-bg-subtle); }
.step-section--tight { padding-block: 64px; }
.step-section__inner { max-width: 1240px; margin-inline: auto; display: grid; gap: 48px; }
.step-section__inner > * { min-width: 0; }
.step-section-title { font: var(--step-text-display-2); letter-spacing: var(--step-text-display-2-tracking); margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.step-section-title--center { text-align: center; }
.step-section-lead { font: var(--step-text-body-lg); color: var(--step-color-text-muted); margin: 12px 0 0; max-width: 62ch; }
.step-section__inner > .step-section-lead { margin-top: -32px; }  /* pull up toward the title inside the 48px grid gap */
.step-section-title--center + .step-section-lead { margin-inline: auto; text-align: center; }

/* Hero */
.step-hero { position: relative; overflow: hidden; min-height: 520px; display: grid; align-items: center; padding: 80px 28px; color: var(--step-color-text); background: var(--step-color-bg); isolation: isolate; }
.step-hero__inner { position: relative; max-width: 1240px; width: 100%; margin-inline: auto; display: grid; gap: 20px; justify-items: start; }
.step-hero__title { font: var(--step-text-display-1); letter-spacing: var(--step-text-display-1-tracking); margin: 0; max-width: 14ch; text-wrap: balance; overflow-wrap: anywhere; }
.step-hero__sub { font: var(--step-weight-regular) 24px/31px var(--step-font-sans); margin: 0; max-width: 40ch; }
.step-hero__text { font: var(--step-text-body-lg); margin: 0; max-width: 56ch; color: var(--step-color-text-muted); }
.step-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
/* --photo: picture on the right, fading to white on the left (home page) */
.step-hero--photo .step-hero__media { position: absolute; inset: 0; z-index: -1; }
.step-hero--photo .step-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.step-hero--photo .step-hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--step-color-bg) 0%, color-mix(in srgb, var(--step-color-bg) 88%, transparent) 38%, transparent 72%); }
/* --brand: Brand Blue (deep) fading to black, centred (course pages) */
.step-hero--brand { background: linear-gradient(180deg, var(--step-brand-blue-deep) 0%, #000 100%); color: #fff; text-align: center; }
.step-hero--brand .step-hero__inner { justify-items: center; }
.step-hero--brand .step-hero__title { max-width: 18ch; }
.step-hero--brand .step-hero__text { color: rgb(255 255 255 / .86); }
.step-hero--brand .step-breadcrumbs { justify-self: start; }
.step-hero--brand .step-breadcrumbs li, .step-hero--brand .step-breadcrumbs [aria-current] { color: #fff; }

/* Marquee — scrolling list of directions under the hero */
.step-marquee { overflow: hidden; border-block: 1px solid var(--step-color-border); background: var(--step-color-bg); padding-block: 14px;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.step-marquee__track { display: flex; gap: 40px; width: max-content; animation: step-marquee 32s linear infinite; }
.step-marquee:hover .step-marquee__track { animation-play-state: paused; }
.step-marquee a, .step-marquee span { font: var(--step-weight-bold) 20px/28px var(--step-font-sans); color: var(--step-color-text-muted); text-decoration: none; white-space: nowrap; }
.step-marquee a:hover { color: var(--step-color-text); }
@keyframes step-marquee { to { transform: translateX(-50%); } }

/* Browser-window illustration (stands in for the website's 3D artwork) */
.step-window { position: absolute; right: -14%; bottom: -12%; width: 82%; aspect-ratio: 1.4; pointer-events: none;
  transform: rotate(-16deg); transform-origin: 70% 70%; border-radius: 14px; background: #fff;
  box-shadow: 0 18px 40px rgb(0 0 0 / .25); transition: transform var(--step-duration-slow) var(--step-ease-emphasized); }
.step-window__bar { position: absolute; top: 9%; left: 7%; display: flex; gap: 5px; }
.step-window__bar i { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; }
.step-window__bar i:nth-child(2) { background: #FEBC2E; }
.step-window__bar i:nth-child(3) { background: #28C840; }
.step-window__panel { position: absolute; left: 7%; top: 26%; width: 52%; height: 58%; border-radius: 10px; background: var(--step-course-primary);
  box-shadow: inset 0 -10px 0 rgb(0 0 0 / .12); }
.step-window__panel--b { left: 64%; top: 26%; width: 29%; height: 26%; background: var(--step-course-secondary); }
.step-window__panel--c { left: 64%; top: 58%; width: 29%; height: 26%; background: color-mix(in srgb, var(--step-course-primary) 35%, #fff); box-shadow: none; }
.step-window__glyph { position: absolute; left: 7%; top: 26%; width: 52%; height: 58%; display: grid; place-items: center; color: #fff; font: 700 clamp(18px, 6cqi, 40px)/1 var(--step-font-sans); }

/* Direction card — dark tile with gradient border in the direction's colours */
.step-direction-card {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 308px; padding: 24px; overflow: hidden;
  color: var(--step-color-text); text-decoration: none; border-radius: var(--step-radius-xl);
  border: 1px solid transparent;
  background: linear-gradient(var(--step-color-surface), var(--step-color-surface)) padding-box,
              linear-gradient(145deg, color-mix(in srgb, var(--step-course-secondary) 45%, transparent), color-mix(in srgb, var(--step-course-primary) 45%, transparent)) border-box;
  transition: transform var(--step-duration-base) var(--step-ease-standard);
}
.step-direction-card:hover { background: linear-gradient(var(--step-color-surface), var(--step-color-surface)) padding-box,
  linear-gradient(145deg, var(--step-course-secondary), var(--step-course-primary)) border-box; }
.step-direction-card:hover .step-window { transform: rotate(-12deg) translate(-4%, -4%); }
.step-direction-card:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-direction-card__title { font: var(--step-text-h2); margin: 0; position: relative; z-index: 1;
  /* long Georgian words (კიბერუსაფრთხოება) must fit narrow cards */
  font-size: clamp(20px, 8.6cqi, 30px); line-height: 1.2; overflow-wrap: anywhere; text-wrap: balance; }
.step-direction-card__count { font: var(--step-weight-medium) 20px/29px var(--step-font-sans); margin: 0; position: relative; z-index: 1; color: var(--step-color-text-muted); }

/* Course tile — light tile on the course listing page */
.step-course-tile {
  container-type: inline-size;
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 254px; padding: 24px; overflow: hidden;
  color: var(--step-color-text); text-decoration: none; border-radius: var(--step-radius-md);
  background: color-mix(in srgb, var(--step-course-primary) 9%, var(--step-color-surface));
  transition: transform var(--step-duration-base) var(--step-ease-standard), box-shadow var(--step-duration-base) var(--step-ease-standard);
}
.step-course-tile:hover { transform: translateY(-3px); box-shadow: var(--step-shadow-card); }
.step-course-tile:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-course-tile__title { font: var(--step-weight-semibold) 21px/27px var(--step-font-sans); margin: 0; position: relative; z-index: 1; overflow-wrap: anywhere; text-wrap: balance; }
.step-course-tile__meta { font: var(--step-text-body-sm); margin: 0; position: relative; z-index: 1; color: var(--step-color-text-muted); }
.step-course-tile__arrow { position: absolute; left: 24px; bottom: 22px; z-index: 1; width: 20px; height: 20px; }
.step-course-tile .step-window { width: 58%; right: -6%; bottom: -16%; }

/* Filter buttons — course listing */
.step-filter { display: flex; flex-wrap: wrap; gap: 16px; }
.step-filter__item {
  height: 50px; padding: 0 16px; cursor: pointer; white-space: nowrap;
  font: var(--step-weight-regular) 15px/18px var(--step-font-sans); color: var(--step-color-text);
  background: var(--step-color-surface); border: 1px solid var(--step-color-primary-border); border-radius: var(--step-radius-sm);
  transition: background-color var(--step-duration-base), border-color var(--step-duration-base), color var(--step-duration-base);
}
.step-filter__item:hover { border-color: var(--step-color-primary); }
.step-filter__item:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }
.step-filter__item[aria-pressed="true"] { color: var(--step-color-on-primary); background: var(--step-color-primary); border-color: var(--step-color-primary); }
.step-filter--sm { gap: 8px; }
.step-filter--sm .step-filter__item { height: 40px; padding: 0 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }

/* Stats row */
.step-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 0; padding: 0; list-style: none; }
.step-stats__item { display: grid; gap: 6px; text-align: center; padding: 8px 16px; border-inline-start: 1px solid var(--step-color-border); }
.step-stats__item:first-child { border-inline-start: 0; }
.step-stats__value { font: var(--step-weight-semibold) 36px/44px var(--step-font-sans); font-variant-numeric: tabular-nums; margin: 0; }
.step-stats__label { font: var(--step-weight-medium) 16px/26px var(--step-font-sans); color: var(--step-color-text-muted); margin: 0; }

/* Feature card — "who is this course for" */
.step-feature { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 12px; padding: 24px; border-radius: var(--step-radius-2xl);
  background: var(--step-color-surface); color: var(--step-color-text); box-shadow: var(--step-shadow-card); }
.step-feature__icon { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 12px; border-radius: var(--step-radius-lg);
  background: var(--step-course-primary); color: var(--step-course-on-primary); }
.step-feature__icon .step-icon { width: 30px; height: 30px; }
.step-feature__title { font: var(--step-text-h3); margin: 0; }
.step-feature__text { font: var(--step-text-body); color: var(--step-color-text-muted); margin: 0; }

/* Info card — study formats */
.step-info-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; border-radius: var(--step-radius-2xl); background: var(--step-color-surface); box-shadow: var(--step-shadow-card); }
.step-info-card__title { font: var(--step-text-h1); margin: 0; }
.step-info-card__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px 32px; margin: 0; }
.step-info-card__grid dt { font: var(--step-weight-regular) 16px/26px var(--step-font-sans); color: var(--step-color-text-muted); }
.step-info-card__grid dd { margin: 0; font: var(--step-weight-medium) 18px/27px var(--step-font-sans); }
.step-info-card__actions { display: flex; justify-content: flex-end; }

/* List card — curriculum */
.step-list-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 64px 36px; border-radius: var(--step-radius-xl); background: var(--step-color-surface); box-shadow: var(--step-shadow-card); }
.step-list-card__title { font: var(--step-text-display-2); letter-spacing: var(--step-text-display-2-tracking); text-align: center; margin: 0; overflow-wrap: anywhere; }
.step-list-card ol { list-style: none; margin: 0; padding: 0; counter-reset: li; }
.step-list-card li { counter-increment: li; display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--step-color-border); font: var(--step-weight-medium) 18px/27px var(--step-font-sans); }
.step-list-card li::before { content: counter(li, decimal-leading-zero); min-width: 28px; font-variant-numeric: tabular-nums; color: var(--step-color-primary-text); }

/* CTA banner — dark panel with a blue glow and a call bubble */
.step-cta { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; min-height: 380px; padding: 48px; border-radius: var(--step-radius-xl);
  background: radial-gradient(circle at 78% 50%, color-mix(in srgb, var(--step-blue-500) 75%, transparent) 0, transparent 42%), #101010; color: #fff; isolation: isolate; }
.step-cta__content { position: relative; z-index: 1; display: grid; gap: 16px; justify-items: start; max-width: 460px; min-width: 0; }
.step-cta__title { font: var(--step-text-h1); margin: 0; text-wrap: balance; }
.step-cta__text { font: var(--step-text-body); margin: 0 0 16px; color: rgb(255 255 255 / .86); }
.step-cta__art { position: absolute; right: 9%; top: 50%; width: 220px; aspect-ratio: 1; transform: translateY(-50%); z-index: 0; }
.step-cta__bubble { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--step-blue-400), var(--step-brand-blue) 70%); box-shadow: 0 30px 60px rgb(0 0 0 / .45), inset 0 -10px 24px rgb(0 0 0 / .25); }
.step-cta__bubble::after { content: ""; position: absolute; left: 4%; bottom: 2%; width: 26%; aspect-ratio: 1; background: inherit; clip-path: polygon(0 100%, 100% 0, 100% 60%); }
.step-cta__bubble svg { width: 44%; height: 44%; fill: #fff; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .25)); }

/* Contact form (modal content) */
.step-form { display: grid; gap: 12px; padding: 28px; }
.step-form__title { font: var(--step-weight-semibold) 23px/31px var(--step-font-sans); text-align: center; margin: 8px 24px 16px; text-wrap: balance; }
.step-form .step-btn { margin-top: 12px; }
.step-form__legal { font: var(--step-weight-regular) 11px/15px var(--step-font-sans); color: var(--step-color-text-muted); margin: 8px 0 0; }

/* Video card */
.step-video { position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--step-radius-xl); background: #000; }
.step-video img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--step-duration-slower) var(--step-ease-standard); }
.step-video__play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; translate: -50% -50%; display: grid; place-items: center; border: 0; cursor: pointer;
  border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--step-brand-blue); box-shadow: 0 10px 30px rgb(0 0 0 / .35);
  transition: transform var(--step-duration-base) var(--step-ease-emphasized); }
.step-video__play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.step-video:hover img { transform: scale(1.03); }
.step-video:hover .step-video__play, .step-video__play:focus-visible { transform: scale(1.08); }
.step-video__play:focus-visible { outline: none; box-shadow: var(--step-focus-ring); }

/* Footer */
.step-footer { padding: 40px 28px 24px; background: var(--step-color-bg-subtle); color: var(--step-color-text); }
.step-footer__grid { max-width: 1240px; margin-inline: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 32px; }
.step-footer__title { font: var(--step-weight-medium) 14px/17px var(--step-font-sans); letter-spacing: .01em; margin: 0 0 17px; }
.step-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.step-footer a, .step-footer li { font: var(--step-weight-regular) 14px/17px var(--step-font-sans); letter-spacing: .01em; color: var(--step-color-text-subtle); text-decoration: none; }
.step-footer a:hover { color: var(--step-color-text); }
.step-footer a:focus-visible { outline: none; box-shadow: var(--step-focus-ring); border-radius: 2px; }
.step-footer__bottom { max-width: 1240px; margin: 32px auto 0; padding-top: 20px; border-top: 1px solid var(--step-color-border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: var(--step-text-caption); color: var(--step-color-text-subtle); }

@media (max-width: 760px) {
  .step-section { padding-block: 64px; padding-inline: 16px; }
  .step-section-title { font-size: 28px; line-height: 36px; }
  .step-hero { min-height: 420px; padding: 56px 16px; }
  .step-hero__title { font-size: 40px; line-height: 48px; }
  .step-hero__sub { font-size: 20px; line-height: 28px; }
  .step-hero--photo .step-hero__media::after { background: linear-gradient(180deg, var(--step-color-bg) 0%, color-mix(in srgb, var(--step-color-bg) 85%, transparent) 55%, transparent); }
  .step-cta { padding: 32px 24px 220px; }
  .step-cta__art { width: 150px; top: auto; bottom: 28px; right: 24px; transform: none; }
  .step-list-card { padding: 40px 20px; }
  .step-list-card__title { font-size: 32px; line-height: 40px; }
  .step-stats__item { border-inline-start: 0; border-top: 1px solid var(--step-color-border); }
  .step-stats__item:first-child { border-top: 0; }
  .step-footer { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .step-body *, .step-body *::before, .step-body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .step-marquee__track { animation: none; }
}
