:root {
  --ink: #0f1e3d;
  --muted: #55607a;
  --line: #e7e9ef;
  --brand: #f54900;
  --brand-dark: #c93c00;
  --soft: #fff7ed;
  --surface: #ffffff;
  --ok: #15803d;
  color-scheme: light;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 20px;
}

.brand img { border-radius: 10px; }

.hero { padding: 40px 0 28px; }

h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 12px 0 28px;
  font-size: 19px;
  color: var(--muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 32px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(245, 73, 0, 0.25);
  transition: background 0.15s ease, transform 0.15s ease;
}

.button:hover { background: var(--brand-dark); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.button[aria-disabled="true"] { opacity: 0.55; pointer-events: none; box-shadow: none; }

.status {
  min-height: 24px;
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
}

.status.ok { color: var(--ok); font-weight: 600; }
.status.error { color: #b42318; font-weight: 600; }

.notice {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 17px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 18px;
}

.step h2 {
  margin: 6px 0 6px;
  font-size: 20px;
}

.step p {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}

.step b { color: var(--ink); }

.smartscreen {
  margin: 14px 0 0;
  max-width: 460px;
}

.smartscreen svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.code {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 10px 0 12px;
}

.code-value {
  padding: 10px 18px;
  border: 2px dashed var(--brand);
  border-radius: 12px;
  font-family: "Cascadia Mono", Consolas, "SFMono-Regular", monospace;
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.link-button {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-dark);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.footer {
  padding-top: 24px;
  font-size: 15px;
  color: var(--muted);
}

.footer a { color: var(--ink); }

details summary { cursor: pointer; }

dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 16px;
  margin: 12px 0 0;
}

dt { font-weight: 600; color: var(--ink); }
dd { margin: 0; overflow-wrap: anywhere; }
.mono { font-family: Consolas, "SFMono-Regular", monospace; font-size: 13px; }

[hidden] { display: none !important; }
