:root {
  color-scheme: light;
  --guide-primary: #137fec;
  --guide-primary-dark: #0f6ac6;
  --guide-navy: #0f172a;
  --guide-text: #1e293b;
  --guide-muted: #617589;
  --guide-border: #dbe4ee;
  --guide-surface: #ffffff;
  --guide-canvas: #f4f8fc;
  --guide-success: #16a34a;
  --guide-success-bg: #f0fdf4;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.guide-shell {
  width: min(1380px, calc(100% - 40px));
  margin: 0 auto;
}

.guide-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--guide-border);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
}

.guide-header-inner {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.guide-brand,
.guide-header-actions,
.guide-inline-actions {
  display: flex;
  align-items: center;
}

.guide-brand {
  gap: 12px;
  color: var(--guide-navy);
  text-decoration: none;
}

.guide-brand .material-symbols-outlined {
  color: var(--guide-primary);
  font-size: 32px;
}

.guide-brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guide-brand-section {
  margin-left: 4px;
  padding-left: 16px;
  border-left: 1px solid var(--guide-border);
  color: #475569;
  font-size: 15px;
  font-weight: 600;
}

.guide-header-actions,
.guide-inline-actions {
  flex-wrap: wrap;
  gap: 10px;
}

.guide-link,
.guide-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 9px;
  padding: 0 17px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.guide-link {
  color: #475569;
}

.guide-link:hover {
  color: var(--guide-primary);
}

.guide-button {
  border: 1px solid var(--guide-primary);
  background: var(--guide-primary);
  color: #fff;
  box-shadow: 0 8px 18px rgb(19 127 236 / 16%);
}

.guide-button:hover {
  border-color: var(--guide-primary-dark);
  background: var(--guide-primary-dark);
  transform: translateY(-1px);
}

.guide-button-secondary {
  border-color: #cbd5e1;
  background: #fff;
  color: #334155;
  box-shadow: none;
}

.guide-button-secondary:hover {
  border-color: #94a3b8;
  background: #f8fafc;
  color: #0f172a;
}

.guide-hero {
  padding: 42px 0 18px;
  text-align: center;
}

.guide-eyebrow {
  margin: 0 0 10px;
  color: var(--guide-primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 0 auto;
  color: var(--guide-navy);
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.guide-hero-copy {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--guide-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.guide-card {
  border: 1px solid var(--guide-border);
  border-radius: 16px;
  background: var(--guide-surface);
  box-shadow: 0 12px 30px rgb(15 23 42 / 5%);
}

.guide-progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 22px;
  padding: 20px 18px;
}

.guide-progress-step {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
}

.guide-progress-step::after {
  position: absolute;
  top: 17px;
  left: calc(50% + 26px);
  width: calc(100% - 52px);
  height: 2px;
  background: #dbe4ee;
  content: "";
}

.guide-progress-step:last-child::after {
  display: none;
}

.guide-progress-step span:first-child {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 2px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font-size: 14px;
}

.guide-progress-step[aria-selected="true"] {
  color: var(--guide-primary);
}

.guide-progress-step[aria-selected="true"] span:first-child {
  border-color: var(--guide-primary);
  background: var(--guide-primary);
  color: #fff;
}

.guide-stage {
  display: grid;
  min-height: 380px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  overflow: hidden;
}

.guide-stage[hidden] {
  display: none;
}

.guide-stage-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  overflow: hidden;
  border-right: 1px solid var(--guide-border);
  background: #eef5fb;
}

.guide-stage-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.guide-stage-icon {
  display: inline-flex;
  width: 112px;
  height: 112px;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 24px;
  background: #fff;
  color: var(--guide-primary);
  box-shadow: 0 14px 35px rgb(19 127 236 / 12%);
}

.guide-stage-icon .material-symbols-outlined {
  font-size: 58px;
}

.guide-stage-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 3.2vw, 42px);
}

.guide-stage-kicker {
  margin: 0 0 8px;
  color: var(--guide-primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.guide-stage-copy h2 {
  margin: 0;
  color: var(--guide-navy);
  font-size: clamp(25px, 2.4vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.guide-stage-copy > p {
  margin: 16px 0 0;
  color: var(--guide-muted);
}

.guide-stage-copy ul,
.guide-troubleshooting ul {
  margin: 18px 0 0;
  padding-left: 20px;
  color: #475569;
}

.guide-stage-copy li + li,
.guide-troubleshooting li + li {
  margin-top: 8px;
}

.guide-stage-copy .guide-inline-actions {
  margin-top: 24px;
}

.guide-reassurance {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 18px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: var(--guide-success-bg);
  padding: 14px 16px;
  color: #166534;
}

.guide-reassurance .material-symbols-outlined {
  flex: 0 0 auto;
  color: var(--guide-success);
  font-size: 25px;
}

.guide-reassurance strong {
  display: block;
  margin-bottom: 2px;
  color: #14532d;
}

.guide-reassurance p {
  margin: 0;
  font-size: 14px;
}

.guide-needs,
.guide-overview,
.guide-troubleshooting {
  margin-top: 28px;
  padding: 30px;
}

.guide-section-heading {
  margin: 0;
  color: var(--guide-navy);
  font-size: 24px;
  letter-spacing: -0.02em;
}

.guide-section-intro {
  margin: 8px 0 0;
  color: var(--guide-muted);
}

.guide-needs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 22px;
}

.guide-need {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  align-items: center;
  padding: 4px 24px;
  border-right: 1px solid var(--guide-border);
}

.guide-need:first-child {
  padding-left: 0;
}

.guide-need:last-child {
  padding-right: 0;
  border-right: 0;
}

.guide-need-icon,
.guide-overview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #bfdbfe;
  border-radius: 11px;
  background: #eff6ff;
  color: var(--guide-primary);
}

.guide-need-icon {
  width: 48px;
  height: 48px;
}

.guide-need strong,
.guide-overview-card h3 {
  color: var(--guide-navy);
}

.guide-need p {
  margin: 2px 0 0;
  color: var(--guide-muted);
  font-size: 13px;
}

.guide-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.guide-overview-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-overview-card {
  position: relative;
  min-height: 210px;
  border: 1px solid var(--guide-border);
  border-radius: 13px;
  background: #fff;
  padding: 24px;
}

.guide-overview-card-number {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--guide-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.guide-overview-icon {
  width: 58px;
  height: 58px;
}

.guide-overview-icon .material-symbols-outlined {
  font-size: 30px;
}

.guide-overview-card h3 {
  margin: 20px 0 0;
  font-size: 18px;
}

.guide-overview-card p {
  margin: 7px 0 0;
  color: var(--guide-muted);
  font-size: 14px;
}

.guide-troubleshooting {
  margin-bottom: 54px;
}

.guide-troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.guide-trouble {
  border: 1px solid var(--guide-border);
  border-radius: 12px;
  background: #f8fafc;
  padding: 20px;
}

.guide-trouble h3 {
  margin: 0;
  color: var(--guide-navy);
  font-size: 16px;
}

.guide-trouble p {
  margin: 7px 0 0;
  color: var(--guide-muted);
  font-size: 14px;
}

.guide-footer {
  border-top: 1px solid var(--guide-border);
  background: #fff;
}

.guide-footer-inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--guide-muted);
  font-size: 13px;
}

.guide-footer a {
  color: var(--guide-primary);
  text-decoration: none;
}

.guide-download-panel {
  margin-top: 24px;
  padding: 34px;
  text-align: center;
}

.guide-download-panel h2 {
  margin: 0;
  color: var(--guide-navy);
  font-size: 24px;
}

.guide-download-panel p {
  margin: 8px auto 0;
  color: var(--guide-muted);
}

.guide-download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

.guide-download-button {
  min-width: 210px;
  min-height: 58px;
}

.guide-download-meta {
  margin-top: 16px !important;
  color: #64748b !important;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .guide-overview-grid-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .guide-progress {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    row-gap: 18px;
  }

  .guide-progress-step:nth-child(3)::after,
  .guide-progress-step:nth-child(6)::after {
    display: none;
  }

  .guide-stage {
    grid-template-columns: 1fr;
  }

  .guide-stage-media {
    min-height: 300px;
    border-right: 0;
    border-bottom: 1px solid var(--guide-border);
  }

  .guide-needs-grid,
  .guide-overview-grid {
    grid-template-columns: 1fr;
  }

  .guide-need {
    padding: 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--guide-border);
  }

  .guide-need:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .guide-shell {
    width: min(100% - 28px, 1380px);
  }

  .guide-header-inner {
    min-height: 60px;
  }

  .guide-brand-section,
  .guide-header-actions .guide-link {
    display: none;
  }

  .guide-header-actions .guide-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 12px;
  }

  .guide-hero {
    padding-top: 42px;
  }

  .guide-progress {
    padding: 16px 8px;
  }

  .guide-progress-step {
    font-size: 10px;
  }

  .guide-stage {
    min-height: 0;
  }

  .guide-stage-media {
    min-height: 215px;
  }

  .guide-stage-copy,
  .guide-needs,
  .guide-overview,
  .guide-troubleshooting,
  .guide-download-panel {
    padding: 22px;
  }

  .guide-troubleshooting-grid {
    grid-template-columns: 1fr;
  }

  .guide-footer-inner {
    flex-direction: column;
    justify-content: center;
    padding: 24px 0;
    text-align: center;
  }
}

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

  .guide-link,
  .guide-button {
    transition: none;
  }
}
