:root {
  color-scheme: light;
  --accent: #087a55;
  --accent-strong: #056443;
  --accent-soft: #e6f5ef;
  --blue: #2857bc;
  --blue-soft: #edf2ff;
  --ink: #1c252d;
  --muted: #68747f;
  --line: #dbe1e5;
  --paper: #f5f7f8;
  --panel: #ffffff;
}

* { box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
  min-height: 100vh;
}

button, a { font: inherit; }
button { cursor: pointer; }

.setup-header {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 58px;
  justify-content: space-between;
  padding: 0 clamp(16px, 4vw, 44px);
}

.brand {
  color: var(--ink);
  display: inline-flex;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-eye {
  border-top: 2px solid currentColor;
  font-size: 15px;
  line-height: 19px;
  margin-top: 1px;
}

.back-link, .section-heading a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.back-link:hover, .section-heading a:hover { text-decoration: underline; }

.setup-main {
  margin: 0 auto;
  max-width: 860px;
  padding: 38px 24px 56px;
}

.setup-intro {
  align-items: center;
  display: flex;
  gap: 18px;
  padding-bottom: 28px;
}

.product-mark {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  justify-content: center;
  width: 52px;
}

.product-mark svg { height: 25px; width: 25px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; margin: 0 0 4px; text-transform: uppercase; }
h1 { font-size: clamp(25px, 4vw, 34px); line-height: 1.12; margin: 0; }
h2 { font-size: 18px; margin: 0; }
p { color: var(--muted); line-height: 1.55; margin: 7px 0 0; }

.setup-step {
  background: var(--panel);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 28px 0;
}

.setup-step:first-of-type { border-top: 0; }
.step-number { align-items: center; background: var(--accent-soft); border-radius: 50%; color: var(--accent); display: flex; font-size: 14px; font-weight: 800; height: 30px; justify-content: center; width: 30px; }
.step-content { min-width: 0; padding-right: 28px; }
.section-heading { align-items: flex-start; display: flex; gap: 16px; justify-content: space-between; }

.platform-tabs {
  background: #eef1f3;
  border-radius: 7px;
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
  padding: 3px;
}

.platform-tabs button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  justify-content: center;
  min-height: 40px;
  padding: 8px;
}

.platform-tabs button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(24, 36, 45, 0.13); color: var(--ink); }
.platform-tabs svg { height: 17px; width: 17px; }

.command-panel {
  align-items: center;
  background: #17232b;
  border: 1px solid #26353f;
  border-radius: 7px;
  color: #eaf0f3;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 36px;
  margin-top: 14px;
  padding: 12px 12px 12px 14px;
}

.command-panel span { color: #aebbc3; display: block; font-size: 11px; margin-bottom: 5px; }
.command-panel code { display: block; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.icon-button { align-items: center; background: #293944; border: 0; border-radius: 6px; color: #fff; display: flex; height: 34px; justify-content: center; padding: 0; width: 34px; }
.icon-button:hover { background: #3a4c58; }
.icon-button svg { height: 16px; width: 16px; }

.install-actions { display: flex; gap: 9px; margin-top: 12px; }
.install-actions button, .secondary-action { align-items: center; border: 1px solid var(--accent); border-radius: 7px; display: inline-flex; font-weight: 750; gap: 8px; justify-content: center; min-height: 42px; padding: 9px 13px; text-decoration: none; }
.install-actions button { background: var(--accent); color: #fff; }
.install-actions button:hover { background: var(--accent-strong); }
.secondary-action { background: #fff; color: var(--accent); }
.secondary-action:hover { background: var(--accent-soft); }
.install-actions svg { height: 17px; width: 17px; }

.integrity-note { align-items: flex-start; display: flex; font-size: 12px; gap: 7px; }
.integrity-note svg { color: var(--accent); flex: 0 0 auto; height: 17px; margin-top: 1px; width: 17px; }
.pair-fallback { align-items: flex-start; background: var(--blue-soft); border-radius: 7px; color: #3d4f78; display: flex; font-size: 13px; gap: 10px; line-height: 1.5; margin-top: 16px; padding: 12px; }
.pair-fallback svg { color: var(--blue); flex: 0 0 auto; height: 18px; width: 18px; }

.trust-band { border-top: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 26px; }
.trust-band > div { align-items: flex-start; display: flex; gap: 9px; }
.trust-band svg { color: var(--accent); flex: 0 0 auto; height: 19px; width: 19px; }
.trust-band strong, .trust-band small { display: block; }
.trust-band strong { font-size: 13px; }
.trust-band small { color: var(--muted); font-size: 11px; line-height: 1.4; margin-top: 3px; }

.copy-status { background: #17232b; border-radius: 6px; bottom: 18px; color: #fff; left: 50%; opacity: 0; padding: 9px 13px; pointer-events: none; position: fixed; transform: translate(-50%, 8px); transition: opacity 140ms ease, transform 140ms ease; }
.copy-status.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 620px) {
  .setup-main { padding: 26px 14px 40px; }
  .setup-intro { align-items: flex-start; }
  .setup-step { grid-template-columns: 30px minmax(0, 1fr); padding: 23px 0; }
  .step-content { padding-right: 8px; }
  .platform-tabs { grid-template-columns: 1fr; }
  .platform-tabs button { justify-content: flex-start; padding-left: 14px; }
  .install-actions { flex-direction: column; }
  .trust-band { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}
