.guide-cover {
  overflow: hidden;
  margin: 30px 0 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #080e17;
}

.content-page .content-hero h1 {
  max-width: 900px;
  font-size: clamp(2.25rem, 4.1vw, 3.65rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-copy > section,
#signal-flow {
  scroll-margin-top: calc(var(--nav) + 24px);
}

.guide-cover img {
  display: block;
  width: 100%;
  height: auto;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 26px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--border);
}

.workflow-strip span {
  position: relative;
  padding: 18px 16px;
  background: #101a23;
  color: var(--soft);
  font-size: .78rem;
  font-weight: 620;
  line-height: 1.45;
}

.workflow-strip span::before {
  display: block;
  margin-bottom: 6px;
  color: #63e9f8;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.workflow-strip span:nth-child(1)::before { content: "01 · Program"; }
.workflow-strip span:nth-child(2)::before { content: "02 · Record"; }
.workflow-strip span:nth-child(3)::before { content: "03 · Verify"; }
.workflow-strip span:nth-child(4)::before { content: "04 · Calibrate"; }
.workflow-strip span:nth-child(5)::before { content: "05 · Trigger"; }

[lang="lv"] .workflow-strip span:nth-child(1)::before { content: "01 · Programmē"; }
[lang="lv"] .workflow-strip span:nth-child(2)::before { content: "02 · Ieraksti"; }
[lang="lv"] .workflow-strip span:nth-child(3)::before { content: "03 · Pārbaudi"; }
[lang="lv"] .workflow-strip span:nth-child(4)::before { content: "04 · Kalibrē"; }
[lang="lv"] .workflow-strip span:nth-child(5)::before { content: "05 · Palaid"; }

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

.guide-facts span {
  padding: 12px 14px;
  border: 1px solid rgba(114, 126, 151, .24);
  border-radius: 10px;
  color: var(--soft);
  font-size: .75rem;
  line-height: 1.4;
}

.guide-facts span::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(60, 232, 179, .09);
}

.article-pullquote {
  margin: 28px 0 0;
  padding: 24px 26px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 224, 255, .07), rgba(124, 92, 255, .05));
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 600;
  line-height: 1.55;
}

.article-pullquote p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: #111d29;
}

.inline-cta strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 1rem;
}

.inline-cta p {
  margin: 0;
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.55;
}

.article-faq {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.article-faq details {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #101a23;
}

.article-faq summary {
  position: relative;
  padding: 19px 48px 19px 20px;
  color: var(--text);
  cursor: pointer;
  font-size: .96rem;
  font-weight: 650;
  line-height: 1.45;
  list-style: none;
}

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

.article-faq summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 20px;
  color: #63e9f8;
  font-size: 1.2rem;
  font-weight: 400;
}

.article-faq summary:focus-visible {
  outline: 2px solid #63e9f8;
  outline-offset: -3px;
}

.article-faq details[open] summary::after {
  content: "−";
}

.article-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--soft);
  font-size: .9rem;
  line-height: 1.7;
}

.guides-intro {
  padding: clamp(52px, 8vw, 92px) 0;
}

.guides-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, .96fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background: #101a23;
}

.guides-feature-media {
  min-height: 390px;
  background: #080e17;
}

.guides-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guides-feature-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(30px, 5vw, 58px);
}

.guide-eyebrow {
  margin-bottom: 16px;
  color: #63e9f8;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.guides-feature h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 2.7vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.guides-feature p {
  color: var(--soft);
  font-size: .98rem;
  line-height: 1.7;
}

.guides-library {
  padding: 0 0 clamp(68px, 9vw, 110px);
}

.guides-library-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.guides-library-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -.04em;
}

.guides-library-head p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #101a23;
  transition: transform .2s ease, border-color .2s ease;
}

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

.guide-card h3 {
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 620;
  letter-spacing: -.025em;
  line-height: 1.18;
}

.guide-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.65;
}

.guide-card-link {
  margin-top: auto;
  color: #63e9f8;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .04em;
}

.home-guides {
  padding: clamp(76px, 10vw, 126px) 0;
  border-top: 1px solid var(--border);
}

.home-guides .guides-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-guides-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.home-guides-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.02;
}

.home-guides-head a {
  flex: 0 0 auto;
  color: #63e9f8;
  font-size: .84rem;
  font-weight: 650;
}

@media (max-width: 900px) {
  .workflow-strip {
    grid-template-columns: 1fr;
  }

  .guides-feature {
    grid-template-columns: 1fr;
  }

  .guides-feature-media {
    min-height: 0;
  }

  .guides-feature-media img {
    height: auto;
  }

  .home-guides .guides-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .content-page .content-hero h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .guides-feature h2 {
    font-size: clamp(1.7rem, 8vw, 2.25rem);
  }

  .guide-facts,
  .guides-grid {
    grid-template-columns: 1fr;
  }

  .guides-library-head,
  .home-guides-head,
  .inline-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .inline-cta .btn {
    width: 100%;
  }

  .guides-feature-copy,
  .guide-card {
    padding: 24px;
  }
}
