:root {
  color-scheme: light dark;
  --fg: #111b21;
  --muted: #54656f;
  --accent: #027d68;
  --accent-hover: #016353;
  --accent-fg: #ffffff;
  --surface: #ffffff;
  --bg: #f7f8fa;
  --border: #e2e5e9;
  --notice-bg: #e7f7ef;
  --notice-border: #a4e4c2;
  --notice-title: #027d68;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e9edef;
    --muted: #8696a0;
    --accent: #21c063;
    --accent-hover: #1da857;
    --accent-fg: #0b141a;
    --surface: #111b21;
    --bg: #0b141a;
    --border: #2a3942;
    --notice-bg: #102820;
    --notice-border: #1b533b;
    --notice-title: #21c063;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 15px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px 50px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

header {
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: block;
  flex: none;
}

h1 {
  font-size: 26px;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.tagline {
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 20px;
  overflow-wrap: anywhere;
}

.cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-fg);
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

a:focus-visible,
.btn:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 18px;
}

h2 {
  font-size: 18px;
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

p {
  margin: 0 0 12px;
  overflow-wrap: anywhere;
}

p:last-child {
  margin-bottom: 0;
}

ul, ol {
  margin: 0 0 12px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

li:last-child {
  margin-bottom: 0;
}

code {
  font-family: var(--mono);
  font-size: 13px;
  background: color-mix(in srgb, var(--muted) 15%, transparent);
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.callout {
  background: var(--notice-bg);
  border: 1px solid var(--notice-border);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 16px 0;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.callout strong {
  color: var(--notice-title);
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 14px 0 0;
}

.step-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-weight: 600;
  margin-bottom: 3px;
  overflow-wrap: anywhere;
}

.step-desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 14px 0;
}

@media (max-width: 600px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.mode-box {
  background: color-mix(in srgb, var(--border) 40%, transparent);
  border-radius: 8px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  min-width: 0;
}

.mode-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.mode-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

a:hover {
  color: var(--accent-hover);
}

footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
