/* Guide pages (src/guides.ts): one calm reading column in the site's look. */
.guide-page { background:
  radial-gradient(900px 420px at 85% -10%, rgba(225, 29, 72, .22), transparent 70%),
  radial-gradient(700px 380px at 0% 0%, rgba(124, 58, 237, .12), transparent 70%), var(--bg); background-repeat: no-repeat; }
.g-top { max-width: 1040px; padding: 18px 24px; }
.g-top .brand span { letter-spacing: -0.01em; }
.g-main { max-width: 820px; padding: 8px 24px 40px; }
.g-main h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; margin: 10px 0 18px; text-wrap: balance; }
.g-main h2 { font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; font-weight: 800; margin: 56px 0 18px; }
.g-main h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 6px; }
.g-lead { color: #c9c9d1; font-size: 19px; line-height: 1.65; max-width: 700px; margin: 0; }
.g-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--dim); margin: 18px 0 26px; }
.g-crumbs a { color: var(--muted); text-decoration: none; }
.g-crumbs a:hover { color: var(--text); }
.g-min { display: inline-block; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-hover); }

.g-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 12px; }
.g-steps li { counter-increment: step; position: relative; padding: 22px 24px 22px 76px; border-radius: 18px; background: linear-gradient(180deg, rgba(29, 29, 38, .9), rgba(21, 21, 28, .9)); border: 1px solid var(--line); scroll-margin-top: 24px; }
.g-steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: #fb7185; font-weight: 800; font-size: 17px; border: 1px solid rgba(225, 29, 72, .35); }
.g-steps p, .g-faq p { margin: 0; color: var(--muted); line-height: 1.65; }
.g-steps li:target { border-color: var(--accent); }

.g-tips { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.g-tips li { position: relative; padding: 14px 18px 14px 46px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .07); color: #d4d4d8; line-height: 1.6; }
.g-tips li::before { content: ""; position: absolute; left: 18px; top: 21px; width: 14px; height: 8px; border-left: 2.5px solid #34d399; border-bottom: 2.5px solid #34d399; transform: rotate(-45deg) translateY(-3px); }

.g-faq { display: grid; gap: 10px; }
.g-faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 0 20px; }
.g-faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; position: relative; }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 22px; font-weight: 500; color: var(--muted); transition: transform .2s; }
.g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq details p { padding: 0 0 18px; }

.g-download { margin: 64px 0 0; padding: 30px; border-radius: 24px; display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; border: 1px solid rgba(225, 29, 72, .35); background: radial-gradient(600px 240px at 100% 0%, rgba(225, 29, 72, .28), transparent 70%), var(--panel); }
.g-download h2 { margin: 0 0 6px; }
.g-download p { margin: 0; color: var(--muted); max-width: 360px; }
.g-download .get { margin: 0; }

.g-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin: 32px 0 0; }
h2 + .g-grid { margin-top: 0; }
.g-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s, background .2s; }
.g-card:hover { transform: translateY(-3px); border-color: rgba(244, 63, 94, .6); background: var(--raised); }
.g-card h3 { font-size: 18px; line-height: 1.25; margin: 0; text-wrap: balance; }
.g-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.g-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--accent-hover); }
.g-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.g-card:hover .g-more svg { transform: translateX(4px); }

.g-disclaimer { margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; line-height: 1.6; }
.g-foot { max-width: 820px; margin: 0 auto; padding: 8px 24px 48px; color: var(--dim); font-size: 14px; }
.g-foot nav { margin-bottom: 10px; }
.g-foot a { color: var(--muted); text-decoration: none; }
.g-foot a:hover { color: var(--text); }
.g-foot [aria-current] { color: var(--text); font-weight: 600; }
@media (max-width: 560px) {
  .g-hide { display: none; }
  .g-top .brand span { display: none; }
  .g-steps li { padding: 66px 20px 20px; }
  .g-download { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { .g-card, .store { transition: none; } }
