:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #162033;
  --muted: #65718a;
  --line: #dce3ee;
  --accent: #1565c0;
  --accent-strong: #0d47a1;
  --success: #2e7d32;
  --warning: #8a5a00;
  --warning-bg: #fff8e5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 34px 16px 48px;
}

.narrow {
  max-width: 860px;
}

.hero {
  padding: 12px 0 18px;
}

.crumb,
.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: anywhere;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(40px, 8vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 5vw, 34px);
  line-height: 1.15;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

p {
  margin-bottom: 14px;
}

.subtitle {
  max-width: 760px;
  margin-bottom: 14px;
  font-size: clamp(19px, 4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
}

.lead {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.steps {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.step-card,
.protected-panel {
  min-width: 0;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.step-card p:last-child,
.protected-panel p:last-child {
  margin-bottom: 0;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 18px 0;
}

.device-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.device-card .actions {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.copied {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.success-box,
.warning-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
}

.success-box {
  border: 1px solid #b9dfbf;
  background: #effaf1;
  color: #1d5f27;
}

.warning-box {
  border: 1px solid #efd486;
  background: var(--warning-bg);
  color: var(--warning);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.profile-block {
  margin-top: 22px;
}

.details-box {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
}

.details-box summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 700;
}

.details-content {
  padding: 0 16px 16px;
}

.technical-details {
  background: #fff;
}

pre {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  margin: 0 16px 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101827;
  color: #edf4ff;
  font-size: 13px;
}

@media (max-width: 760px) {
  .shell,
  .narrow {
    width: 100%;
    max-width: 390px;
    margin-left: 0;
    margin-right: auto;
    padding: 24px 12px 38px;
  }

  .step-card,
  .protected-panel {
    padding: 20px;
  }

  .device-grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
