:root {
  --canvas: #f7f9fc;
  --surface: #ffffff;
  --line: #dbe3ea;
  --ink: #17202a;
  --muted: #667684;
  --surface-muted: #eef2f5;
}

html.dark {
  --canvas: #0d1720;
  --surface: #13232d;
  --line: #29404d;
  --ink: #f2f7f8;
  --muted: #9aadb6;
  --surface-muted: #1b303a;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[x-cloak] {
  display: none !important;
}

.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.eyebrow {
  color: #087f6f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.dark .eyebrow {
  color: #64d7c1;
}

.button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #087f6f;
  color: #fff;
}

.button-primary:hover {
  background: #07695e;
}

.button-secondary {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: #78bdb0;
  color: #087f6f;
}

.button-google {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.button-google:hover {
  border-color: #78bdb0;
  background: var(--surface-muted, var(--surface));
}

.button-quiet {
  border: 1px solid transparent;
  color: var(--muted);
  min-height: 36px;
  padding: 0 10px;
}

.icon-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  transition: color 160ms ease, border-color 160ms ease;
  width: 36px;
}

.icon-button:hover {
  border-color: #78bdb0;
  color: #087f6f;
}

.nav-link {
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  padding: 8px 10px;
}

.nav-link:hover,
.nav-link-active {
  background: #effcf8;
  color: #087f6f;
}

.dark .nav-link:hover,
.dark .nav-link-active {
  background: #123e3a;
  color: #8ae6d2;
}

.field {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

textarea.field {
  min-height: 96px;
  padding-bottom: 10px;
  padding-top: 10px;
  resize: vertical;
}

.field:focus {
  border-color: #0e9f86;
  box-shadow: 0 0 0 3px rgba(14, 159, 134, 0.13);
}

.field-label {
  color: var(--ink);
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 7px;
}

.field-error {
  color: #c85638;
  font-size: 12px;
  margin-top: 6px;
}

.surface form input[type="text"],
.surface form input[type="password"],
.surface form input[type="email"] {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 14px;
  min-height: 42px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.surface form input[type="text"]::placeholder,
.surface form input[type="password"]::placeholder,
.surface form input[type="email"]::placeholder {
  color: var(--muted);
  opacity: 1;
}

.surface form input[type="text"]:focus,
.surface form input[type="password"]:focus,
.surface form input[type="email"]:focus {
  border-color: #0e9f86;
  box-shadow: 0 0 0 3px rgba(14, 159, 134, 0.13);
}

.metric-card {
  min-height: 160px;
  padding: 22px;
}

.metric-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.metric-tile span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
}

.metric-tile strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.04em;
  margin-top: 8px;
}

.avatar {
  align-items: center;
  background: #d9f8ef;
  border-radius: 10px;
  color: #07695e;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 850;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.dark .avatar {
  background: #164943;
  color: #9bf0dd;
}

.status-badge,
.status-dot {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 750;
  gap: 6px;
  white-space: nowrap;
}

.status-badge {
  padding: 5px 9px;
}

.status-active {
  background: #d9f8ef;
  color: #07695e;
}

.status-ready {
  background: #e0f2fe;
  color: #075985;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-neutral {
  background: #eef2f5;
  color: #52616d;
}

.dark .status-active { background: #164943; color: #9bf0dd; }
.dark .status-ready { background: #123d59; color: #93c5fd; }
.dark .status-warning { background: #4d3510; color: #fcd34d; }
.dark .status-neutral { background: #253641; color: #b7c6ce; }

.status-dot {
  padding: 5px 9px;
}

.status-dot::before {
  background: currentColor;
  border-radius: 50%;
  content: "";
  height: 6px;
  width: 6px;
}

.status-dot-live {
  background: #effcf8;
  color: #087f6f;
}

.dark .status-dot-live {
  background: #123e3a;
  color: #8ae6d2;
}

.bar-track {
  align-items: end;
  background: var(--canvas);
  border-radius: 8px 8px 3px 3px;
  display: flex;
  height: 116px;
  overflow: hidden;
  width: 100%;
}

.bar {
  background: #bfe9df;
  border-radius: 7px 7px 2px 2px;
  display: block;
  min-height: 8px;
  width: 100%;
}

.bar-active {
  background: #0e9f86;
}

.step-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.step-card-featured {
  background: #effcf8;
  border-color: #a8e3d5;
}

.dark .step-card-featured {
  background: #123e3a;
  border-color: #27675c;
}

.step-number {
  color: #087f6f;
  display: block;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.step-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-top: 26px;
}

.step-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin-top: 10px;
}

.workflow-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.workflow-step:not(:last-child)::after {
  background: var(--line);
  content: "";
  left: 15px;
  position: absolute;
  top: 37px;
  bottom: -25px;
  width: 1px;
}

.workflow-index {
  align-items: center;
  background: #effcf8;
  border: 1px solid #a8e3d5;
  border-radius: 999px;
  color: #087f6f;
  display: flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 850;
  height: 32px;
  justify-content: center;
  position: relative;
  width: 32px;
  z-index: 1;
}

.dark .workflow-index {
  background: #123e3a;
  border-color: #27675c;
  color: #8ae6d2;
}

.workflow-step h3 {
  font-size: 15px;
  font-weight: 800;
}

.workflow-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  margin-top: 6px;
}

.workflow-link {
  color: #087f6f;
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 9px;
}

.workflow-link:hover {
  color: #07695e;
}
