/* "How it works" guide page (guides/show, design handoff "guide"). Loaded after sj-landing-base.css and
   sj-landing.css (tokens, header, footer, .sj-wrap, .sj-eyebrow, buttons). Scoped under .gd.
   < 768 mobile | 768–1199 single column with the chip bar | ≥ 1200 sticky table of contents on the left. */

.gd { background: var(--alt, #F7F8FA); color: var(--ink); }
.gd :where(h1, h2, p, ul, ol, figure) { margin: 0; }
.gd img { display: block; max-width: 100%; height: auto; }
.gd strong { color: var(--ink); }

/* ---------- hero ---------- */
.gd-hero { background: #fff; border-bottom: 1px solid var(--line); }
.gd-hero__in { padding-top: 40px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .gd-hero__in { padding-top: 56px; padding-bottom: 44px; } }
@media (min-width: 1200px) { .gd-hero__in { padding-top: 72px; padding-bottom: 56px; } }
.gd-h1 { max-width: 820px; font-size: 36px; line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.gd-h1 span { color: var(--ac); }
@media (min-width: 768px) { .gd-h1 { font-size: 48px; } }
@media (min-width: 1200px) { .gd-h1 { font-size: 56px; } }
.gd-lead { max-width: 640px; font-size: 17px; line-height: 1.55; color: var(--body); text-wrap: pretty; }
@media (min-width: 768px) { .gd-lead { font-size: 19px; } }
.gd-pills { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.gd-pill { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); }

/* ---------- table of contents ---------- */
/* chip bar (< 1200): sticks under the landing header (60px, 72px from 768px) */
.gd-chips { position: sticky; top: 60px; z-index: 30; background: rgba(247,248,250,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .gd-chips { top: 72px; } }
@media (min-width: 1200px) { .gd-chips { display: none; } }
.gd-chips__in { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; }
.gd-chips__in::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .gd-chips__in { padding: 10px 32px; } }
.gd-chip { flex: none; height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .2s, color .2s, border-color .2s; }
.gd-chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gd-chip.is-active:hover { color: #fff; }

.gd-grid { padding-top: 32px; padding-bottom: 64px; display: flex; flex-direction: column; }
@media (min-width: 768px) { .gd-grid { padding-top: 48px; padding-bottom: 88px; } }
@media (min-width: 1200px) {
  .gd-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: start; padding-top: 56px; padding-bottom: 96px; }
}
.gd-toc { display: none; }
@media (min-width: 1200px) {
  .gd-toc { display: block; grid-column: 1 / span 3; align-self: stretch; }
  .gd-toc nav { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
}
.gd-toc__title { padding: 0 12px 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gd-toc__link { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--body); text-decoration: none; transition: background-color .2s, box-shadow .2s; }
.gd-toc__link span { width: 20px; font-size: 12px; font-weight: 700; color: var(--muted); }
.gd-toc__link:hover { color: var(--ink); background: rgba(255,255,255,.6); }
.gd-toc__link.is-active { background: #fff; box-shadow: 0 1px 2px rgba(17,24,39,.06); font-weight: 700; color: var(--ink); }
.gd-toc__link.is-active span { color: var(--ac); }

.gd-main { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
@media (min-width: 768px) { .gd-main { gap: 80px; } }
@media (min-width: 1200px) { .gd-main { grid-column: 4 / span 9; gap: 96px; } }

/* anchors land below the sticky header (+ chip bar below 1200px) */
.gd-sec { scroll-margin-top: 124px; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 768px) { .gd-sec { scroll-margin-top: 136px; } }
@media (min-width: 1200px) { .gd-sec { scroll-margin-top: 96px; } }
@media (prefers-reduced-motion: no-preference) { html:has(.gd) { scroll-behavior: smooth; } }

/* ---------- section heading ---------- */
.gd-head { display: flex; flex-direction: column; gap: 10px; }
.gd-step { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.gd-step__n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; letter-spacing: 0; display: flex; align-items: center; justify-content: center; }
.gd-h2 { font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -0.025em; text-wrap: balance; }
@media (min-width: 768px) { .gd-h2 { font-size: 34px; } }
.gd-p { max-width: 620px; font-size: 16px; line-height: 1.6; color: var(--body); text-wrap: pretty; }
@media (min-width: 768px) { .gd-p { font-size: 17px; } }

/* ---------- lists ---------- */
.gd-checks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--body); }
.gd-checks li > span:first-child { flex: none; margin-top: 3px; display: flex; color: var(--ok, #15803D); }
.gd-nums { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gd-nums li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--body); }
.gd-nums li > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* ---------- 1. plans ---------- */
.gd-plans { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .gd-plans { grid-template-columns: 1fr 1fr; } }
.gd-plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.gd-plan__badge { position: absolute; top: 18px; right: 18px; display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: #FFF1F3; font-size: 13px; font-weight: 600; color: var(--ac); }
.gd-plan__icon { width: 42px; height: 42px; border-radius: 10px; background: #FFF1F3; color: var(--ac); display: flex; align-items: center; justify-content: center; }
.gd-plan__name { display: flex; flex-direction: column; gap: 4px; }
.gd-plan__name strong { font-size: 18px; }
.gd-plan__name span { font-size: 14px; color: var(--muted); }
/* Same red label as the home page cards */
.gd-plan__name .gd-plan__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ac); }
.gd-plan__price { font-size: 28px; font-weight: 800; color: var(--ink); }

/* ---------- 2–4, 6. text + screens ---------- */
.gd-split { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) {
  .gd-split { display: grid; grid-template-columns: 5fr 4fr; gap: 48px; align-items: center; }
  .gd-split--rev { grid-template-columns: 4fr 5fr; }
  .gd-split--rev .gd-split__fig { order: -1; }
}
.gd-split__txt { display: flex; flex-direction: column; gap: 22px; }
.gd-split__fig { display: flex; justify-content: center; }
.gd-feats { display: flex; flex-direction: column; gap: 16px; }
.gd-feat { display: flex; gap: 14px; align-items: flex-start; }
.gd-feat__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.gd-feat > div { display: flex; flex-direction: column; gap: 3px; }
.gd-feat strong { font-size: 16px; }
.gd-feat span { font-size: 15px; line-height: 1.55; color: var(--body); }
.gd-box { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; line-height: 1.55; color: var(--body); }

/* screen pair: browser frame + overlapping phone. Sizes follow the figure width (cqw),
   with the design's proportions: browser 86%, phone 27%, phone overhang 9.8%. */
.gd-figure { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gd-figure figcaption { max-width: 470px; font-size: 13px; line-height: 1.4; color: var(--muted); text-align: center; }
.gd-shot { width: 100%; container-type: inline-size; }
.gd-shot--lg { max-width: 470px; }
.gd-shot--sm { max-width: 380px; }
.gd-shot__in { position: relative; padding-bottom: 9.8cqw; }
.gd-browser { width: 86cqw; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 24px 48px -18px rgba(17,24,39,.30), 0 0 0 1px rgba(17,24,39,.06); }
.gd-browser__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #F3F4F6; border-bottom: 1px solid var(--line); }
.gd-browser__bar span { width: 7px; height: 7px; border-radius: 50%; background: #F87171; }
.gd-browser__bar span:nth-child(2) { background: #FBBF24; }
.gd-browser__bar span:nth-child(3) { background: #34D399; }
.gd-browser__bar .gd-browser__url { flex: 1; height: 14px; margin-left: 8px; border-radius: 7px; background: #fff; }
.gd-browser img { width: 100%; }
/* The screen is exactly 1:2 like the captures (390x780), so they show whole; shorter captures
   (upload, 390x560) sit at the top. Never cropped sideways. */
.gd-phone { position: absolute; right: 0; bottom: 0; width: 27cqw; padding: 1.1cqw; border-radius: 4.3cqw; background: var(--ink); box-shadow: 0 18px 36px -12px rgba(17,24,39,.4); }
.gd-phone__screen { width: 100%; aspect-ratio: 1 / 2; border-radius: 3.2cqw; overflow: hidden; background: #F7F8FA; }
.gd-phone__screen img { width: 100%; height: auto; }

/* ---------- 5. tracking ---------- */
.gd-progress { list-style: none; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; }
.gd-progress li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.gd-progress li.is-done, .gd-progress li.is-current { color: var(--ink); }
.gd-progress__dot { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.gd-progress li.is-done .gd-progress__dot { background: var(--ok, #15803D); border-color: var(--ok, #15803D); color: #fff; }
.gd-progress li.is-current .gd-progress__dot { border-color: var(--ac); }
.gd-progress li.is-current .gd-progress__dot span { width: 9px; height: 9px; border-radius: 50%; background: var(--ac); }
@media (min-width: 768px) {
  .gd-progress { flex-direction: row; align-items: center; gap: 12px; padding: 20px; }
  .gd-progress li { flex: 1 1 auto; }
  .gd-progress li:not(:last-child)::after { content: ""; flex: 1; min-width: 16px; height: 2px; background: var(--line); }
}
.gd-statuses { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .gd-statuses { grid-template-columns: 1fr 1fr; } }
.gd-status { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
@media (min-width: 768px) { .gd-status { padding: 24px; } }
.gd-status--action { border-color: #F3C4CC; }
.gd-status__shot { display: flex; justify-content: center; padding: 12px 12px 18px; background: #F7F8FA; border-radius: 12px; }
.gd-status__txt { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--body); }
.gd-status__title { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gd-status__title strong { font-size: 17px; }
.gd-status__role { color: var(--ink); }
.gd-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: #FFF1F3; font-size: 12px; font-weight: 600; color: var(--ac); }

/* ---------- 6. print ---------- */
.gd-print { display: flex; flex-direction: column; gap: 12px; }
.gd-print__title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; color: var(--ink); }
.gd-print__title span { display: flex; color: var(--ac); }
.gd-counter { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; background: var(--ink); border-radius: 14px; color: #fff; font-size: 15px; line-height: 1.5; }
.gd-counter > span:first-child { display: flex; margin-top: 2px; }
.gd-counter strong { color: #fff; }

/* ---------- 7. FAQ + CTA ---------- */
.gd-faq { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; }
.gd-faq details { padding: 16px 0; }
.gd-faq details + details { border-top: 1px solid var(--line); }
.gd-faq summary { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 600; color: var(--ink); list-style: none; cursor: pointer; }
.gd-faq summary::-webkit-details-marker { display: none; }
.gd-faq__plus { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #F7F8FA; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--ink); transition: transform .25s var(--ease), background-color .2s; }
.gd-faq details[open] .gd-faq__plus { transform: rotate(45deg); }
.gd-faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--body); }
.gd-cta { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding: 24px; background: #FFF1F3; border-radius: 16px; }
.gd-cta > div { display: flex; flex-direction: column; gap: 4px; }
.gd-cta strong { font-size: 20px; }
.gd-cta span { font-size: 15px; color: var(--body); }
@media (min-width: 768px) { .gd-cta { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px; } }
.gd .gd-renew { color: var(--ac); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

/* Larger screen on click */
.gd-zoom { position: absolute; inset: 0; width: 100%; height: 100%; padding: 8px; display: flex; justify-content: flex-end; align-items: flex-start; background: none; border: 0; cursor: zoom-in; color: #111827; }
.gd-zoom svg { box-sizing: content-box; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(17, 24, 39, .2); }
.gd-zoom:hover svg { color: #C8102E; }
.gd-zoom:focus-visible { outline: 2px solid #C8102E; outline-offset: 2px; border-radius: 12px; }
.gd-lightbox { position: fixed; inset: 0; margin: auto; width: min(1200px, calc(100vw - 32px)); max-width: none; height: fit-content; max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 14px; background: #fff; overflow: hidden; }
.gd-lightbox[open] { display: flex; flex-direction: column; }
.gd-lightbox__scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html:has(.gd-lightbox[open]) { overflow: hidden; }
.gd-lightbox::backdrop { background: rgba(17, 24, 39, .75); }
.gd-lightbox img { display: block; width: 100%; height: auto; background: #F7F8FA; }
.gd-lightbox__close { position: absolute; top: 8px; right: 8px; z-index: 1; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: #111827; box-shadow: 0 2px 8px rgba(17, 24, 39, .25); cursor: pointer; }
.gd-lightbox__bar { flex: none; height: 60px; padding: 0 64px 0 16px; box-sizing: border-box; }
.gd-lightbox__bar span { width: 11px; height: 11px; }
.gd-lightbox__bar .gd-browser__url { height: 20px; margin-left: 10px; border-radius: 10px; }
@media (max-width: 767px) {
  .gd-lightbox__bar { display: none; }
}
