:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-soft: #eef5ff;
  --text: #172033;
  --muted: #5f6b7a;
  --border: #dce3ec;
  --primary: #155eef;
  --primary-dark: #0d46bf;
  --success: #12b76a;
  --warning-bg: #fff7e6;
  --warning-border: #f2c94c;
  --shadow: 0 18px 48px rgba(23, 32, 51, 0.10);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

button,
a,
input {
  font: inherit;
}

a {
  color: var(--primary);
}

code {
  overflow-wrap: anywhere;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  background: #edf2f7;
  color: #243047;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.narrow-container {
  width: min(calc(100% - 32px), 820px);
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 227, 236, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.header-inner {
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand span {
  display: grid;
  line-height: 1.25;
}

.brand strong {
  font-size: 1.05rem;
}

.brand small {
  color: var(--muted);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.copy-button:focus-visible,
.inline-copy:focus-visible,
.image-button:focus-visible,
.lightbox-close:focus-visible,
.complete-control input:focus-visible,
.final-checks input:focus-visible {
  outline: 3px solid rgba(21, 94, 239, 0.28);
  outline-offset: 3px;
}

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

.button-primary:hover {
  background: var(--primary-dark);
}

.button-secondary {
  border-color: var(--border);
  background: #fff;
  color: var(--text);
}

.button-ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.hero {
  padding: 76px 0 60px;
  background:
    radial-gradient(circle at 85% 20%, rgba(18, 183, 106, 0.13), transparent 28%),
    radial-gradient(circle at 12% 10%, rgba(21, 94, 239, 0.14), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.16;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  letter-spacing: -0.045em;
}

h1 span {
  display: block;
  color: var(--primary);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.summary-card,
.info-card,
.step-card,
.completion-card {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.summary-card {
  padding: 28px;
  border-radius: var(--radius-lg);
}

.summary-card h2 {
  font-size: 1.45rem;
}

.settings-list {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}

.settings-list > div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.settings-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.settings-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.settings-list dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
}

.copy-button,
.inline-copy {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.copy-button {
  padding: 6px 10px;
}

.inline-copy {
  padding: 8px 12px;
}

.advanced-settings {
  margin-top: 18px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.advanced-settings summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 800;
}

.advanced-settings ul {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.92rem;
}

.security-note {
  margin: 20px 0 0;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: #33415c;
  font-size: 0.92rem;
}

.section {
  padding: 72px 0;
}

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

.section-heading-progress {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  padding: 26px;
  border-radius: var(--radius-md);
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.info-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--primary);
  font-weight: 900;
}

.steps-section {
  background: #eef3f9;
}

.progress-panel {
  min-width: 260px;
  color: var(--muted);
  text-align: right;
}

.progress-track {
  width: 100%;
  height: 9px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #d9e2ef;
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--success);
  transition: width 220ms ease;
}

.steps-list {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.step-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 390px);
  gap: 36px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-lg);
  transition: border-color 180ms ease, transform 180ms ease;
}

.step-card.is-complete {
  border-color: rgba(18, 183, 106, 0.55);
  box-shadow: 0 18px 48px rgba(18, 183, 106, 0.11);
}

.step-kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.step-content > p {
  color: var(--muted);
}

.field-list {
  display: grid;
  gap: 8px;
  padding-left: 22px;
  color: var(--muted);
}

.warning-box {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--warning-border);
  border-radius: var(--radius-sm);
  background: var(--warning-bg);
  color: #5d4811;
}

.complete-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: 24px;
  cursor: pointer;
  color: #33415c;
  font-weight: 700;
}

.complete-control input,
.final-checks input {
  width: 20px;
  height: 20px;
  accent-color: var(--success);
}

.image-button {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.12);
}

.image-button img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff;
}

.image-button span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.88);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.completion-card {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  padding: 34px;
  border-radius: var(--radius-lg);
}

.completion-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.final-checks {
  display: grid;
  align-content: center;
  gap: 14px;
}

.final-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.troubleshooting {
  background: #fff;
}

.accordion {
  display: grid;
  gap: 12px;
}

.accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.accordion summary {
  position: relative;
  padding: 20px 54px 20px 22px;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1.6rem;
  line-height: 1;
}

.accordion details[open] summary::after {
  content: "−";
}

.accordion details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: #101828;
  color: #d0d5dd;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(360px, calc(100% - 36px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #101828;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  width: min(94vw, 780px);
  max-height: 94vh;
  padding: 18px;
  border: 0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.lightbox::backdrop {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #101828;
  color: #fff;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .hero-grid,
  .step-card,
  .completion-card {
    grid-template-columns: 1fr;
  }

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

  .step-card {
    padding: 24px;
  }

  .image-button {
    max-width: 440px;
    justify-self: center;
  }

  .section-heading-progress {
    align-items: start;
    flex-direction: column;
  }

  .progress-panel {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .print-button {
    display: none;
  }

  .hero {
    padding-top: 50px;
  }

  .hero-grid {
    gap: 34px;
  }

  .section {
    padding: 54px 0;
  }

  .summary-card,
  .step-card,
  .completion-card {
    padding: 22px;
    border-radius: 18px;
  }

  .settings-list dd,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand small {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media print {
  .site-header,
  .hero-actions,
  .copy-button,
  .inline-copy,
  .complete-control,
  .image-button span,
  .site-footer,
  .toast,
  .lightbox {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero,
  .steps-section,
  .troubleshooting {
    background: #fff;
  }

  .section,
  .hero {
    padding: 24px 0;
  }

  .summary-card,
  .info-card,
  .step-card,
  .completion-card {
    box-shadow: none;
    break-inside: avoid;
  }

  .step-card {
    grid-template-columns: 1fr 260px;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
