/* Shared styles for the guides (/guides/*.html and /fr/guides/*.html).
   Built from the same blocks as the home page: green hero, soft cards, dark
   panel, green band. */

/* ---------- Hero ---------- */
.hero-bg { background: var(--green); margin-top: -1px; }
body.private .hero-bg { background: radial-gradient(circle at 80% 0%, #10331f, #0b0c0e 60%); }
.g-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: center; padding-top: 36px; padding-bottom: 80px; }
.g-hero .h-xl { font-size: clamp(40px, 5.6vw, 76px); }
.g-hero .lead { max-width: 32em; }
.crumbs { font-size: 14px; font-weight: 800; margin-bottom: 22px; opacity: .7; }
.crumbs a { color: inherit; }
.g-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.g-stats b { display: block; font-size: 30px; letter-spacing: -.04em; font-weight: 800; }
.g-stats span { font-weight: 700; opacity: .65; font-size: 14px; }
.g-vis { padding: 28px; border-radius: 36px; display: grid; place-items: center; min-height: 300px; }

/* Hero visuals */
.orbit { position: relative; width: 220px; height: 150px; }
.orbit img { position: absolute; width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--white); background: var(--white); animation: bob 3.2s ease-in-out infinite; }
.orbit img:nth-child(1) { left: 0; top: 50px; }
.orbit img:nth-child(2) { left: 74px; top: 10px; animation-delay: .4s; }
.orbit img:nth-child(3) { left: 148px; top: 50px; animation-delay: .8s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.vis-cap { margin-top: 18px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.nets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; width: 100%; }
.nets .chip { justify-content: flex-start; }
.nets .chip small { color: var(--gray); font-weight: 700; margin-left: auto; padding-right: 6px; }
.usdt-big { width: 76px; height: 76px; margin: 0 auto 18px; display: block; }
.tiles { display: grid; grid-template-columns: repeat(3, 84px); gap: 12px; transform: rotate(-6deg); }
.tiles span { height: 84px; border-radius: 20px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; text-align: center; line-height: 1.1; padding: 4px; }
.g-vis .vcard { transform: rotate(-8deg); max-width: 300px; }

/* ---------- Body layout ---------- */
.g-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: 72px; padding-bottom: 40px; }
.g-toc { position: sticky; top: 100px; display: grid; gap: 4px; }
.g-toc .t { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); margin: 0 0 8px 16px; }
.g-toc a { text-decoration: none; padding: 10px 16px; border-radius: 16px; font-weight: 800; font-size: 15px; color: var(--gray); display: flex; gap: 12px; align-items: center; transition: background .2s, color .2s; }
.g-toc a i { font-style: normal; width: 26px; height: 26px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 12px; flex: none; }
.g-toc a:hover, .g-toc a.on { background: var(--bg); color: var(--ink); }
.g-toc a.on i { background: var(--green); color: #0b0c0e; }
.g-body { max-width: 760px; min-width: 0; }
.g-body > section { scroll-margin-top: 100px; margin-bottom: 64px; }
.g-body h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 16px; }
.g-body h3 { font-size: 21px; letter-spacing: -.02em; margin: 0 0 6px; }
.g-body p, .g-body li { font-size: 17px; line-height: 1.65; font-weight: 500; color: var(--gray); }
.g-body p { margin: 0 0 14px; }
.g-body strong { color: var(--ink); }
.g-body ul { padding-left: 20px; margin: 0 0 16px; }
.g-body li { margin-bottom: 6px; }
.g-body a:not(.btn):not(.chip) { color: var(--green-d); font-weight: 800; }

.tldr { background: var(--green-soft); border-radius: var(--r-lg); padding: 26px 28px; margin-bottom: 64px; }
.tldr .eyebrow { margin-bottom: 8px; }
.tldr ul { margin: 0; }
.tldr li { color: var(--ink-2); }

/* Numbered step cards, same look as the home page "How it works" */
.g-steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; counter-reset: s; margin: 18px 0 20px; }
.g-steps .soft { position: relative; padding-top: 70px; }
.g-steps .soft::before { counter-increment: s; content: counter(s); position: absolute; top: 22px; left: 24px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--green); display: grid; place-items: center; font-weight: 800; }
.g-steps p { margin: 0; font-size: 16px; }

/* Card grid for tips and mistakes */
.g-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 18px 0; }
.g-cards .soft .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--white); display: grid; place-items: center; font-size: 20px; margin-bottom: 12px; }
.g-cards p { margin: 0; font-size: 16px; }

/* Dark highlight panel, same as the home page fees block */
.g-dark { background: var(--ink); color: var(--white); border-radius: 32px; padding: 36px; margin: 22px 0; }
.g-dark h3 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.g-dark p { color: #a0a4ab; }
.g-dark .line { border-color: #2b2b30; }
.g-dark .line > span:first-child { color: #a0a4ab; }
.g-dark .big { font-size: 44px; font-weight: 800; letter-spacing: -.04em; color: var(--green); line-height: 1; margin: 6px 0 14px; }
body.private .g-dark { background: #1b1c20; }

.warn { display: flex; gap: 12px; background: var(--amber-soft); border-radius: var(--r-md); padding: 16px 18px; margin: 18px 0; font-weight: 600; color: var(--ink-2); }
.warn p { margin: 0; color: var(--ink-2); font-size: 16px; }

.tbl-wrap { overflow-x: auto; background: var(--bg); border-radius: var(--r-lg); padding: 6px 18px; margin: 16px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th, .tbl td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.tbl td { font-weight: 600; color: var(--ink-2); }
.tbl td:first-child { font-weight: 800; color: var(--ink); white-space: nowrap; }

.pairs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 16px 0; }
.pairs-grid a { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 18px; padding: 14px 16px; text-decoration: none; color: var(--ink) !important; font-weight: 800; transition: background .15s, transform .15s; }
.pairs-grid a:hover { background: var(--green-soft); transform: translateY(-2px); }
.pairs-grid img { width: 26px; height: 26px; }

.g-body .faq summary { font-size: 18px; padding: 20px 0; }
.g-body .faq p { font-size: 16px; }

/* ---------- Bottom ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust div b { font-size: 18px; display: block; margin: 12px 0 4px; }
.trust div p { margin: 0; color: var(--gray); font-weight: 500; }
.trust .ic { width: 48px; height: 48px; border-radius: 16px; background: var(--green-soft); display: grid; place-items: center; font-size: 22px; }
.band { background: var(--green); border-radius: 36px; padding: 56px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { margin: 0 0 8px; }
.band p { margin: 0; font-weight: 600; opacity: .75; font-size: 18px; }
body.private .band { background: #12301f; }

/* Guide cards: hub page and "Keep reading" */
.g-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.g-related.four { grid-template-columns: repeat(2, 1fr); }
.gcard { border-radius: 30px; padding: 30px; min-height: 230px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .3s; position: relative; overflow: hidden; }
.gcard:hover { transform: translateY(-6px); }
.gcard .eyebrow { margin-bottom: 10px; color: inherit; opacity: .6; }
.gcard h3 { font-size: 26px; letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.1; }
.gcard p { margin: 0; font-weight: 600; opacity: .7; }
.gcard .go { margin-top: auto; padding-top: 18px; font-weight: 800; }
.gcard .emoji { position: absolute; right: 22px; top: 22px; font-size: 34px; }
.gc-light { background: var(--bg); }
.gc-dark { background: var(--ink); color: var(--white); }
.gc-green { background: var(--green); color: #0b0c0e; }
.gc-soft { background: var(--green-soft); }
body.private .gc-dark { background: #1b1c20; }

@media (max-width: 960px) {
  .g-hero { grid-template-columns: 1fr; gap: 32px; padding-bottom: 56px; }
  .g-vis { min-height: 0; }
  .g-layout { grid-template-columns: 1fr; padding-top: 48px; }
  .g-toc { display: none; }
  .trust { grid-template-columns: 1fr 1fr; }
  .g-related { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .g-steps, .g-cards, .g-related.four { grid-template-columns: 1fr; }
  .band, .g-dark { padding: 28px; }
  .trust { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(3, 70px); }
  .tiles span { height: 70px; }
}
