/* ============================================================
   Guides: loaded AFTER style.css and product.css. Guide pages reuse
   the legal pages' reading layout (dark hero band, sticky "On this
   page" list, white document card) and add what a how-to needs:
   breadcrumbs, a quick answer, numbered steps with real screenshots,
   notes, a Varq card and related guides.
   ============================================================ */

/* ---- Hero ------------------------------------------------------------ */
.guide-hero .display { font-size: clamp(2rem, 4.4vw, 3.1rem); max-width: 820px; }
.guide-hero .meta { color: #a3a3a9; }

.crumbs { margin-bottom: 18px; }
.crumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 0.86rem;
}
.crumbs li { display: inline-flex; align-items: center; color: #b9b9c0; }
.crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 10px;
  border-top: 1.5px solid #77777e;
  border-right: 1.5px solid #77777e;
  transform: rotate(45deg);
}
.crumbs a { color: #d6d6dc; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current="page"] { color: #8e8e95; }

/* ---- Reading column ---------------------------------------------------- */
.guide { font-size: 1.02rem; }
.guide p,
.guide ul,
.guide ol { font-size: 1.02rem; line-height: 1.72; }
.guide h2 { font-size: 1.42rem; margin: 46px 0 12px; letter-spacing: -0.02em; scroll-margin-top: 96px; }
.guide h2:first-of-type { margin-top: 34px; }
.guide h3 { font-size: 1.08rem; margin: 0 0 6px; }
.guide a { color: var(--teal-deep); }

/* The answer to the question in the title, first thing in the card. */
.guide .answer {
  margin: 0 0 8px;
  padding: 20px 22px;
  border-radius: 16px;
  background: var(--teal-wash);
  border: 1px solid #cde8e7;
  color: var(--ink);
}
.guide .answer strong { color: var(--teal-deep); }

/* Something to know before or after a step: limits, tips, cautions. */
.guide .note {
  margin: 20px 0;
  padding: 16px 20px;
  border-radius: 14px;
  background: #f6f1e8;
  border: 1px solid #ecdfc7;
  color: #4a3f2c;
  font-size: 0.96rem;
}
.guide .note strong { color: #3a3020; }

/* ---- Numbered steps ------------------------------------------------- */
.guide ol.steps {
  list-style: none;
  margin: 22px 0 10px;
  padding: 0;
  counter-reset: step;
}
.guide ol.steps > li {
  counter-increment: step;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 0 30px 52px;
  margin: 0;
}
.guide ol.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
}
/* A thin rail joins the step numbers. */
.guide ol.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16.5px;
  top: 40px;
  bottom: 8px;
  width: 1px;
  background: var(--hairline);
}
.guide ol.steps > li p:last-child { margin-bottom: 0; }

/* Small phones: the card already pads the text, so the step rail and the
   answer box give some of their indent back to the reading column. */
@media (max-width: 520px) {
  .guide .answer { padding: 16px 16px; }
  .guide ol.steps > li { padding-left: 42px; }
  .guide ol.steps > li::before { width: 30px; height: 30px; font-size: 0.86rem; }
  .guide ol.steps > li:not(:last-child)::after { left: 14.5px; top: 36px; }
}

/* Steps with a screenshot put it beside the text on wider screens. */
@media (min-width: 720px) {
  .guide ol.steps > li.has-shot { grid-template-columns: minmax(0, 1fr) 210px; align-items: start; gap: 26px; }
}

/* ---- Screenshots ---------------------------------------------------- */
.guide figure.shot { margin: 0; }
.guide figure.shot picture,
.guide figure.shot img { display: block; }
.guide figure.shot img {
  width: 100%;
  max-width: 230px;
  height: auto;
  border-radius: 24px;
  border: 1px solid var(--hairline);
  background: #f1f3f4;
  box-shadow: var(--shadow-card);
}
.guide figure.shot figcaption {
  margin-top: 8px;
  max-width: 230px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}
@media (max-width: 719px) {
  .guide figure.shot { justify-self: start; }
}

/* A wide screenshot pair, outside a step. */
.guide .shot-row { display: flex; flex-wrap: wrap; gap: 18px; margin: 18px 0 26px; }
.guide .shot-row figure.shot { flex: 0 1 210px; }

/* ---- Varq card -------------------------------------------------------- */
.try-varq {
  position: relative;
  overflow: hidden;
  margin: 40px 0 8px;
  padding: 26px 26px 24px;
  border-radius: 20px;
  background:
    radial-gradient(70% 120% at 100% 0%, rgba(92, 104, 255, 0.32), transparent 70%),
    #0b0b10;
  color: #f5f5f6;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 18px;
  align-items: center;
}
.try-varq img.icon { width: 56px; height: 56px; border-radius: 15px; grid-row: span 2; }
.try-varq .title { margin: 0; font-size: 1.12rem; font-weight: 750; letter-spacing: -0.01em; color: #fff; }
.try-varq p { margin: 0; color: #c3c3cc; font-size: 0.95rem; line-height: 1.55; }
.try-varq .actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 16px;
}
.try-varq .actions a.more { color: #d6d9ff; font-weight: 600; font-size: 0.92rem; }
.try-varq .play-badge img { height: 58px; width: auto; }
.guide .try-varq a { color: inherit; }
.guide .try-varq a.more { color: #d6d9ff; }
@media (max-width: 520px) {
  .try-varq { grid-template-columns: 1fr; }
  .try-varq img.icon { grid-row: auto; }
}

/* ---- Related guides --------------------------------------------------- */
.related { list-style: none; margin: 12px 0 0 !important; padding: 0; border-top: 1px solid var(--hairline); }
.related li { margin: 0 !important; border-bottom: 1px solid var(--hairline); }
.related a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px;
  color: var(--ink) !important;
  font-weight: 600;
}
.related a:hover { text-decoration: none; }
.related a .t { color: var(--ink); }
.related a .t > span { color: var(--muted); font-weight: 450; font-size: 0.9rem; display: block; margin-top: 2px; }
.related svg { flex: none; color: var(--ink-soft); transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); }
.related a:hover svg { transform: translateX(3px); }

.guide-byline {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 0.88rem;
}

/* ---- Guides hub ----------------------------------------------------- */
.guide-index { max-width: 880px; margin: 0 auto; }
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline); }
.guide-list li { border-bottom: 1px solid var(--hairline); }
.guide-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 24px;
  align-items: center;
  padding: 26px 6px;
  color: var(--ink);
}
.guide-list a:hover { text-decoration: none; }
.guide-list h2 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); letter-spacing: -0.02em; margin: 0; }
.guide-list p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; grid-column: 1; }
.guide-list .read { color: var(--muted); font-size: 0.84rem; grid-column: 1; }
.guide-list svg {
  grid-column: 2;
  grid-row: 1 / span 3;
  color: var(--ink-soft);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.guide-list a:hover svg { transform: translateX(4px); color: var(--ink); }
.guide-list a:hover h2 { color: var(--teal-deep); }

@media (prefers-reduced-motion: reduce) {
  .related svg,
  .guide-list svg { transition: none; }
}

@media print {
  .try-varq { background: #fff; color: #000; border: 1px solid #ccc; }
  .try-varq p,
  .try-varq .title,
  .try-varq a,
  .guide .try-varq a.more { color: #000; }
}
