:root {
  color-scheme: light dark;
  --background: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #eef3ff;
  --text: #172033;
  --muted: #5d687a;
  --line: #dce3ee;
  --accent: #315efb;
  --accent-strong: #2449ce;
  --accent-soft: #e8eeff;
  --success: #117a56;
  --success-soft: #e8f7f0;
  --warning: #9a6500;
  --warning-soft: #fff4d8;
  --shadow: 0 12px 34px rgba(32, 48, 79, 0.09);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0e1420;
    --surface: #171f2e;
    --surface-soft: #202a3e;
    --text: #f1f4fa;
    --muted: #b5bfd0;
    --line: #303b4e;
    --accent: #86a4ff;
    --accent-strong: #a9bcff;
    --accent-soft: #26365e;
    --success: #6fddb2;
    --success-soft: #173c32;
    --warning: #f7c45e;
    --warning-soft: #423515;
    --shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.62;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.site-shell {
  width: min(100% - 32px, 820px);
  margin-inline: auto;
}

.site-header {
  padding: 24px 0 10px;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 13px;
  background: var(--accent);
  color: white;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

main {
  padding: 20px 0 48px;
}

.hero {
  padding: clamp(26px, 7vw, 52px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 10%, var(--accent-soft), transparent 35%),
    var(--surface);
  box-shadow: var(--shadow);
}

.eyebrow,
.step-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 15ch;
  margin: 0;
  font-size: clamp(2rem, 9vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  line-height: 1.3;
}

.lead {
  max-width: 58ch;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section {
  margin-top: 34px;
}

.section-heading {
  margin-bottom: 18px;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.nav-card,
.content-card,
.step-card,
.screenshot-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.nav-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 88px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.nav-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.nav-card-icon {
  display: grid;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--surface-soft);
  font-size: 1.45rem;
}

.nav-card-copy {
  flex: 1;
}

.nav-card-title {
  display: block;
  font-weight: 800;
}

.nav-card-note {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-card-arrow {
  color: var(--muted);
  font-size: 1.35rem;
}

.content-card,
.step-card {
  padding: clamp(20px, 6vw, 32px);
}

.step-card + .step-card {
  margin-top: 18px;
}

.step-title {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-number {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-weight: 850;
}

.callout {
  margin: 20px 0;
  padding: 18px;
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
}

.callout.success {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.callout.warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.callout > :first-child,
.content-card > :first-child,
.step-card > :first-child {
  margin-top: 0;
}

.callout > :last-child,
.content-card > :last-child,
.step-card > :last-child {
  margin-bottom: 0;
}

.term {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15em;
  font-weight: 800;
}

.example-message {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-line;
}

.screenshot-card {
  margin-top: 22px;
  padding: 18px;
  border-style: dashed;
  background: var(--surface-soft);
  text-align: center;
}

.screenshot-frame {
  display: grid;
  min-height: 260px;
  place-items: center;
  padding: 24px;
  border: 2px dashed var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
}

.screenshot-frame strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.asset-path {
  display: inline-block;
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
}

.check-list,
.plain-list {
  padding-left: 1.25em;
}

.check-list li,
.plain-list li {
  margin: 10px 0;
  padding-left: 4px;
}

.cta-panel {
  margin-top: 34px;
  padding: clamp(24px, 7vw, 40px);
  border-radius: var(--radius-lg);
  background: #172033;
  color: #ffffff;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  color: inherit;
}

.cta-panel p {
  color: #cbd4e5;
}

.button-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  padding: 13px 20px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button[hidden],
[hidden] {
  display: none !important;
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.page-nav a {
  display: flex;
  min-height: 58px;
  padding: 14px 16px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.status-badge {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-footer {
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 6px 0;
}

@media (min-width: 620px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .button-row {
    flex-direction: row;
    justify-content: center;
  }

  .page-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .nav-card {
    transition: none;
  }
}
