@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/barlow-condensed-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
}

/*
 * OMION design tokens — Industry design system (steel / blueprint).
 * Source of truth: redesign zip Industry design-system styles.css
 * Semantic status colours remain distinct (found / absent / pending / failed).
 * Fonts are self-hosted above with @font-face for hermetic CSSOM.
 */

:root {
  /* Industry core */
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-5: 17px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);

  /* Legacy --omion-* aliases → Industry (templates / older CSS keep working) */
  --omion-primary: var(--color-accent);
  --omion-crimson: var(--color-accent);
  --omion-hero: var(--color-accent-900);
  --omion-teal: var(--color-accent);
  --omion-bg: var(--color-bg);
  --omion-card: var(--color-neutral-100);
  --omion-text: var(--color-text);
  --omion-muted: var(--color-neutral-600);
  --omion-border: var(--color-divider);

  /* Semantic status (Industry mockup functional colours) */
  --omion-status-found: #a01019;
  --omion-status-absent: #1a7d34;
  --omion-status-pending: var(--color-neutral-700);
  --omion-status-failed: #9c5c00;
  --omion-status-found-bg: #f6e7e9;
  --omion-status-absent-bg: #e6f2ea;
  --omion-status-pending-bg: var(--color-neutral-200);
  --omion-status-failed-bg: #f5ecdd;

  /* Blueprint: square corners (Industry rejects soft radii on chrome) */
  --omion-radius-card: 0;
  --omion-radius-button: 0;

  --omion-font: var(--font-body);
  --omion-font-heading: var(--font-heading);
  --omion-wordmark-color: var(--color-accent-800);
  --omion-wordmark-size-landing: 20px;
  --omion-wordmark-size-cabinet: 20px;
  --omion-wordmark-size-auth: 26px;
}

/* Blueprint registration marks */
.blueprint {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
  background: transparent;
  /* Keep + registration marks from expanding the document scroll width. */
  overflow: visible;
  contain: layout;
}

.blueprint > .corner {
  position: absolute;
  width: 11px;
  height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
  pointer-events: none;
}

.blueprint > .corner::before,
.blueprint > .corner::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.blueprint > .corner::before {
  left: 5px;
  top: 0;
  width: 1px;
  height: 100%;
}

.blueprint > .corner::after {
  top: 5px;
  left: 0;
  width: 100%;
  height: 1px;
}

.blueprint > .corner.tl {
  top: -6px;
  left: -6px;
}

.blueprint > .corner.tr {
  top: -6px;
  right: -6px;
}

.blueprint > .corner.bl {
  bottom: -6px;
  left: -6px;
}

.blueprint > .corner.br {
  bottom: -6px;
  right: -6px;
}

/* Shared Industry buttons / fields used across landing, auth, cabinet */
.btn,
.btn-primary,
.btn-secondary,
.btn-revoke,
.btn-yandex,
.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 14px;
  line-height: 1.2;
  border-radius: 0;
  border: 1px solid var(--color-divider);
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  background: transparent;
  color: var(--color-text);
}

.btn-primary,
.landing-btn--primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover:not(:disabled),
.landing-btn--primary:hover {
  background: var(--color-accent-600);
}

.btn-primary:active:not(:disabled) {
  background: var(--color-accent-700);
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-secondary,
.landing-btn--secondary {
  border-color: var(--color-divider);
  background: transparent;
  color: var(--color-text);
}

.btn-secondary:hover,
.landing-btn--secondary:hover {
  background: color-mix(in srgb, var(--color-text) 7%, transparent);
}

.btn-ghost {
  border-color: transparent;
  color: var(--color-accent);
  padding-inline: var(--space-1);
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
}

.field > label,
.profile-field-label {
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

.input,
.profile-input,
.field input[type="tel"],
.field input[type="text"],
.field input[type="email"] {
  width: 100%;
  min-height: 36px;
  padding: 6px 10px;
  font: inherit;
  font-size: 14px;
  color: var(--color-text);
  caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: 0;
  box-sizing: border-box;
}

.input:hover,
.profile-input:hover {
  border-color: color-mix(in srgb, var(--color-text) 45%, transparent);
}

.input:focus-visible,
.profile-input:focus,
.field input:focus {
  border-color: var(--color-accent);
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

.omion-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  text-decoration: none;
}

.omion-brand img {
  display: block;
  width: auto;
  max-width: 100%;
}

/* Service logo tile (report / landing preview) */
.service-logo {
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--color-divider);
  display: grid;
  place-items: center;
  background: var(--color-neutral-100);
  overflow: hidden;
}

.service-logo--sm {
  width: 24px;
  height: 24px;
}

.service-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.service-logo--fallback {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  font-size: 11px;
  color: var(--color-accent-800);
  letter-spacing: 0.02em;
}

/* Status badges — Industry .st* */
.report-badge,
.st {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.badge-found,
.st-found {
  background: var(--omion-status-found-bg);
  color: var(--omion-status-found);
}

.badge-absent,
.st-absent {
  background: var(--omion-status-absent-bg);
  color: var(--omion-status-absent);
}

.badge-pending,
.st-pending {
  background: var(--omion-status-pending-bg);
  color: var(--omion-status-pending);
}

.badge-failed,
.st-failed {
  background: var(--omion-status-failed-bg);
  color: var(--omion-status-failed);
}

.badge-not-applicable {
  background: var(--color-neutral-200);
  color: var(--color-neutral-600);
}

.muted {
  color: var(--color-neutral-600);
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.02em;
  padding: 3px 10px;
  border-radius: 0;
}

.tag-outline {
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
}

.tag-accent {
  background: var(--color-accent-100);
  color: var(--color-accent-800);
}
