/* macOS Gatekeeper — compact support flow */

.gk-page {
  --gk-accent: #8ecae6;
  --gk-border: rgba(142, 202, 230, 0.22);
  --gk-muted: rgba(255, 255, 255, 0.58);
  --gk-card: rgba(255, 255, 255, 0.04);
  padding: calc(var(--header-height, 72px) + 20px) 16px 80px;
  position: relative;
  z-index: 1;
}

.gk-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.gk-hero {
  margin-bottom: 24px;
  text-align: center;
}

.gk-hero .gk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gk-accent);
  margin-bottom: 10px;
}

.gk-hero h1 {
  font-size: clamp(1.45rem, 5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 10px;
  color: #fff;
}

.gk-lede {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--gk-muted);
  margin: 0 auto 14px;
  max-width: 44ch;
}

.gk-back {
  font-size: 0.82rem;
  margin: 0;
}

.gk-back a {
  color: var(--gk-accent);
  text-decoration: none;
}

.gk-back a:hover {
  text-decoration: underline;
}

.gk-jump {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.gk-jump a {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--gk-border);
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  background: var(--gk-card);
}

.gk-jump a:hover {
  border-color: var(--gk-accent);
  color: #fff;
}

.gk-step {
  scroll-margin-top: calc(var(--header-height, 72px) + 16px);
  margin-bottom: 16px;
  padding: 18px 18px 16px;
  border-radius: 14px;
  border: 1px solid var(--gk-border);
  background: var(--gk-card);
}

.gk-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.gk-step-n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a1620;
  background: var(--gk-accent);
}

.gk-step h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.gk-step-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gk-accent);
  margin-top: 2px;
}

.gk-steps-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--gk-muted);
}

.gk-steps-list li {
  margin-bottom: 6px;
}

.gk-steps-list li:last-child {
  margin-bottom: 0;
}

.gk-note {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(142, 202, 230, 0.08);
  border: 1px solid rgba(142, 202, 230, 0.15);
}

.gk-note--warn {
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.22);
  color: rgba(255, 255, 255, 0.78);
}

.gk-details {
  margin-top: 12px;
  font-size: 0.82rem;
}

.gk-details summary {
  cursor: pointer;
  color: var(--gk-accent);
  font-weight: 600;
  list-style: none;
}

.gk-details summary::-webkit-details-marker {
  display: none;
}

.gk-path-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.gk-path-grid div {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gk-muted);
}

.gk-path-grid strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 4px;
}

.gk-path-grid code {
  font-size: 0.76rem;
  color: #d4e8f7;
  word-break: break-all;
}

.gk-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 10px;
}

.gk-pick-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.gk-pick-btn.is-active {
  border-color: var(--gk-accent);
  background: rgba(142, 202, 230, 0.15);
  color: #fff;
}

.gk-pick-btn--sm {
  flex: 1 1 calc(50% - 4px);
}

.gk-cmd {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
}

.gk-cmd[hidden] {
  display: none;
}

.gk-cmd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gk-cmd-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
}

.gk-cmd-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gk-copy {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: none;
  background: var(--gk-accent);
  color: #0a1620;
  cursor: pointer;
  font-family: inherit;
}

.gk-copy:hover {
  filter: brightness(1.08);
}

.gk-copy-status {
  font-size: 0.7rem;
  color: #86efac;
  min-width: 3.5ch;
}

.gk-copy-status.is-error {
  color: #fca5a5;
}

.gk-cmd pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
}

.gk-cmd code {
  font-family: ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #d4e8f7;
  white-space: pre-wrap;
  word-break: break-all;
}

.gk-foot {
  margin-top: 8px;
  padding: 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
}

.gk-foot p {
  margin: 0 0 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--gk-muted);
}

.gk-foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.gk-foot-links a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gk-accent);
  text-decoration: none;
}

.gk-foot-links a:hover {
  text-decoration: underline;
}

.gk-foot .az-btn {
  margin: 4px 6px;
}

body.gk-body {
  background: #08080b;
}

body.gk-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
