﻿*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background:
    radial-gradient(circle at top center, rgba(100, 116, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfcff 0%, var(--color-background) 100%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid rgba(86, 97, 246, 0.45);
  outline-offset: 2px;
}

.shell {
  width: min(calc(100% - 40px), var(--max-shell));
  margin: 0 auto;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand__mark svg,
.brand svg,
.eyebrow-pill svg,
.metric-list svg,
.ghost-icon-button svg,
.icon-square svg,
.flow-hub__arrow,
.condition-icon svg,
.progress-list span svg,
.option-card ul svg,
.result-top-tag svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.brand__name {
  font-size: 17px;
}

.primary-button,
.secondary-button,
.ghost-icon-button,
.chip-button,
.text-button,
.top-nav a,
.workspace-links a,
.preview-menu a,
.preview-steps span,
.preview-tabs span {
  white-space: nowrap;
}

.primary-button,
.secondary-button,
.ghost-icon-button,
.icon-square,
.chip-button,
.text-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-icon-button:hover,
.icon-square:hover,
.chip-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-strong) 100%);
  box-shadow: 0 14px 30px rgba(79, 93, 247, 0.28);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.primary-button--small {
  min-height: 42px;
  padding: 0 20px;
  font-size: 15px;
}

.primary-button--full,
.secondary-button--full {
  width: 100%;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 14px;
  color: var(--color-primary-strong);
  background: #fff;
  border: 1.5px solid #cfd5ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.03em;
}

.secondary-button--small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.text-button {
  color: var(--color-text);
  font-weight: 600;
  font-size: 15px;
}

.ghost-icon-button,
.icon-square,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-soft);
}

.ghost-icon-button {
  gap: 8px;
  min-height: 42px;
  padding: 0 16px;
  font-weight: 600;
}

.ghost-icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-square {
  width: 40px;
  height: 40px;
}

.icon-square svg {
  width: 16px;
  height: 16px;
}

.chip-button {
  min-height: 36px;
  padding: 0 16px;
  font-weight: 700;
  font-size: 14px;
  color: var(--color-primary-strong);
}

.eyebrow-pill,
.soft-chip,
.success-badge,
.status-badge,
.pill-label,
.result-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.eyebrow-pill {
  height: 30px;
  padding: 0 12px;
  color: var(--color-primary-strong);
  border: 1px solid #b8c1ff;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.eyebrow-pill svg {
  width: 14px;
  height: 14px;
}

.soft-chip {
  min-height: 38px;
  padding: 0 15px;
  background: linear-gradient(180deg, #fbfcff 0%, #edf2ff 100%);
  border: 1px solid #ecf0ff;
  color: #343d57;
  font-size: 15px;
  box-shadow: 0 8px 18px rgba(97, 118, 202, 0.06);
  white-space: nowrap;
}

.success-badge {
  min-height: 28px;
  padding: 0 10px;
  background: var(--color-accent-soft);
  color: #2e9b78;
  font-size: 13px;
}

.status-badge {
  min-height: 24px;
  padding: 0 9px;
  background: #eef0ff;
  color: var(--color-primary-strong);
  font-size: 12px;
}

.pill-label {
  min-height: 28px;
  padding: 0 12px;
  background: #edf1ff;
  color: var(--color-primary-strong);
  font-size: 13px;
}

.panel {
  border-radius: var(--radius-panel);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--color-border);
  box-shadow: var(--color-shadow-soft);
}

.metric-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.metric-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #25314f;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.metric-list svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary-strong);
  flex: 0 0 auto;
}

.metric-list--compact {
  gap: 8px;
}

.metric-list--compact li {
  font-size: 13px;
}

.score-ring {
  --size: 116px;
  --thickness: 10px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle closest-side, #fff calc(100% - var(--thickness) - 2px), transparent calc(100% - var(--thickness))),
    conic-gradient(var(--color-primary) 0 331deg, #ebefff 331deg 360deg);
}

.score-ring span {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.score-ring--large {
  --size: 128px;
  --thickness: 11px;
}

.dot-check,
.state-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #d8deef;
  background: #eef2fb;
  position: relative;
  flex: 0 0 auto;
}

.dot-check::after,
.state-check.is-done::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.dot-check,
.state-check.is-done {
  background: #33bb7f;
  border-color: #33bb7f;
}
