/* Lead-magnet guide pages (/guides/<slug>, public/guide.html). Builds on site.css tokens. */
.gd-narrow { max-width: 820px; }
.gd-hero { text-align: center; padding-bottom: 28px; }
.gd-hero h1 { margin: 0 auto; max-width: 720px; }
.gd-meta { margin: 14px auto 0; font-size: 13px; color: var(--muted); }
.gd-body { padding-bottom: 72px; }

.gd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.gd-item { display: grid; grid-template-columns: 44px 90px 1fr; gap: 16px; align-items: start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 16px; box-shadow: var(--shadow-sm); }
.gd-rank { font: 400 40px/1 var(--font-display); color: var(--ink); text-align: center; padding-top: 4px; }
.gd-thumb { width: 90px; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: var(--r-inner); background: var(--sky-mid); display: block; }
.gd-thumb.gd-ph { background: linear-gradient(160deg, var(--sky-mid), var(--sky-bottom)); }
.gd-main { min-width: 0; }
.gd-hook { font: 400 24px/1.25 var(--font-display); margin: 2px 0 8px; overflow-wrap: anywhere; }
.gd-stats { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.gd-stats b { color: var(--ink); }
.gd-style { color: var(--accent-deep); font-weight: 600; }
.gd-why { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.gd-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 14px; font-weight: 600; }
.gd-links a { color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.gd-links svg { width: 14px; height: 14px; }

.gd-locked { margin-top: 14px; }
.gd-item.locked { opacity: .55; filter: grayscale(.4); }
.gd-item.locked .gd-hook { font: 600 14px/1.4 var(--font-body); color: var(--muted); }

.gd-gate, .gd-cta { margin-top: 18px; padding: 28px; text-align: center; border-radius: var(--r-card); }
.gd-gate { background: var(--accent-soft); border: 2px solid var(--accent); }
.gd-gate h2, .gd-cta h2 { font: 400 34px/1.1 var(--font-display); margin: 4px 0 10px; }
.gd-gate-kicker { margin: 0; font-size: 13px; font-weight: 700; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .04em; }
#gd-form { display: flex; gap: 10px; max-width: 520px; margin: 18px auto 0; }
#gd-email { flex: 1; min-width: 0; min-height: 52px; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 20px; font: 500 16px var(--font-body); background: #fff; }
#gd-email:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gd-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.gd-msg { margin: 12px 0 0; font-size: 14px; min-height: 1.2em; }
.gd-cta { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gd-cta .btn { margin-top: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (max-width: 600px) {
  .gd-item { grid-template-columns: 30px 72px 1fr; gap: 10px; padding: 12px; }
  .gd-rank { font-size: 28px; }
  .gd-thumb { width: 72px; }
  .gd-hook { font-size: 20px; }
  #gd-form { flex-direction: column; }
  #gd-form .btn { width: 100%; }
  .gd-gate, .gd-cta { padding: 22px 16px; }
}

/* /guides index: one card per guide */
.gd-card { display: grid; gap: 6px; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-sm); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.gd-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.gd-card-kicker { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-deep); }
.gd-card-title { font: 400 28px/1.15 var(--font-display); }
.gd-card-meta { font-size: 13px; color: var(--muted); }
.gd-card-go { margin-top: 4px; font-weight: 600; font-size: 14px; }

/* ---------- motion, same feel as /challenge (all of it off for prefers-reduced-motion at the end) ---------- */
/* entrance: the hero lines rise in one after another */
.gd-hero .wrap > * { animation: gd-rise .7s calc(var(--i, 0) * 90ms) cubic-bezier(.2,.7,.2,1) both; }
.gd-hero .wrap > :nth-child(2) { --i: 1; } .gd-hero .wrap > :nth-child(3) { --i: 2; } .gd-hero .wrap > :nth-child(4) { --i: 3; }
@keyframes gd-rise { from { opacity: 0; transform: translateY(22px); filter: blur(4px); } }
/* list rows and guide cards rise in as they scroll into view (guide.js adds .gd-rv, then .in) */
.gd-rv { opacity: 0; transform: translateY(26px); }
.gd-rv.in { opacity: 1; transform: none; transition: opacity .6s calc(var(--k, 0) * 80ms) ease, transform .7s calc(var(--k, 0) * 80ms) cubic-bezier(.2,.8,.2,1); }
.gd-rv.in .gd-rank { animation: gd-pop .6s calc(.15s + var(--k, 0) * 80ms) cubic-bezier(.3,1.6,.5,1) both; }
@keyframes gd-pop { from { opacity: 0; transform: scale(.5); } }
/* hover: the card lifts, the thumbnail leans in */
.gd-item:not(.locked) { transition: transform .18s ease, box-shadow .18s ease; }
.gd-item:not(.locked):hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gd-thumb { transition: transform .3s ease; }
.gd-item:hover img.gd-thumb { transform: scale(1.04) rotate(-1.5deg); }
.gd-links a:last-child { transition: gap .18s ease; }
.gd-links a:hover { text-decoration-thickness: 2px; }
.gd-item.locked:hover .gd-hook { animation: gd-wiggle .4s ease; }
@keyframes gd-wiggle { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
/* gate: a slow shine across the lime button, a soft pulse on the kicker */
.gd-gate .btn-lime { position: relative; overflow: hidden; }
.gd-gate .btn-lime::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  transform: translateX(-120%); animation: gd-shine 3.2s 1.5s ease-in-out infinite; pointer-events: none; }
@keyframes gd-shine { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
.gd-gate { animation: gd-glow 2.6s ease-in-out infinite; }
@keyframes gd-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(180,224,74,.45); } 50% { box-shadow: 0 0 0 8px rgba(180,224,74,0); } }

@media (prefers-reduced-motion: reduce) {
  .gd-hero .wrap > *, .gd-rv.in .gd-rank, .gd-gate, .gd-gate .btn-lime::after, .gd-item.locked:hover .gd-hook { animation: none !important; }
  .gd-rv { opacity: 1; transform: none; } .gd-rv.in { transition: none; }
  .gd-item, .gd-thumb { transition: none; } .gd-item:hover img.gd-thumb, .gd-item:not(.locked):hover { transform: none; }
}
