/* Playgrounds: an intro with a sample terminal, one row per topic (name on the left, tiles on the right), and a detail page with a Launch button. */
.pg { padding-bottom: 80px; }
.pg .eyebrow { display: block; font: 500 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 6px 0 12px; }
.pg a { text-underline-offset: 3px; }

.pg-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 28px 0 8px; } .pg-hero > * { min-width: 0; }
.pg-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--step-text); }
.pg-points li { position: relative; padding-left: 26px; }
.pg-points li::before { content: ''; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg) translateY(-30%); }
.pg-points a { color: var(--text); }
.pg-demo { border: 1px solid var(--rule2); border-radius: 16px; background: #030c09; overflow: hidden; box-shadow: 0 20px 60px -30px rgba(16, 185, 129, .45); }
.pg-demo .term-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(160, 255, 210, .09); }
.pg-demo .term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(160, 255, 210, .18); }
.pg-demo pre { margin: 0; padding: 18px 20px 22px; font: 13px/1.95 var(--mono); color: #d6ece2; background: none; border: 0; overflow-x: auto; }
.pg-demo code { background: none; padding: 0; color: inherit; } .pg-demo .ln { display: block; } .pg-demo b { color: var(--brand2); font-weight: 400; }
.pg-demo .o { color: #4ade80; } .pg-demo .d { color: #5d7569; }

.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 34px 0 6px; }
.pg-chips a { padding: 6px 14px; border: 1px solid var(--rule2); border-radius: 999px; font-size: 13px; text-decoration: none; color: var(--muted); transition: color .2s, border-color .2s; }
.pg-chips a:hover { color: var(--text); border-color: var(--text); }

.pgr { display: grid; grid-template-columns: minmax(180px, 1fr) 3fr; gap: 32px; padding: 44px 0; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--topbar-h) + 12px); }
.pgr:first-of-type { margin-top: 18px; }
.pgr h2 { font: 600 1.55rem/1.25 var(--display); letter-spacing: -.03em; margin: 0; }
.pgt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.pgt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 20px 14px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); color: var(--text); text-decoration: none; text-align: center; transition: border-color .25s, background .25s, transform .25s; }
.pgt:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); background: var(--card-hover); transform: translateY(-2px); }
.pgt b { font: 500 .95rem/1.3 var(--sans); }
.pgi { width: 52px; height: 52px; color: var(--brand); } .pgi-big { width: 96px; height: 96px; }
.pg-request { margin: 12px 0 0; padding-top: 28px; border-top: 1px solid var(--rule); color: var(--muted); font-size: .95rem; } .pg-request a { color: var(--text); }

.pgd-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; margin: 8px 0 30px; padding: 40px; border: 1px solid var(--rule2); border-radius: 22px; background: linear-gradient(135deg, var(--card-hover), transparent 70%), var(--card); }
.pgd-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.pgd-launch { margin-top: 18px; }
.pgd-more { margin-top: 10px; color: var(--muted); font-size: .9rem; } .pgd-more:hover { color: var(--text); }
.pgd-art { display: flex; align-items: center; justify-content: center; }
.pgd-art .pgi { width: 150px; height: 150px; padding: 34px; border-radius: 50%; background: var(--panel); border: 1px solid var(--rule2); box-sizing: content-box; }
.pgd-sec { padding: 26px 0; border-top: 1px solid var(--rule); } .pgd-sec h2 { font: 600 1.3rem/1.2 var(--display); letter-spacing: -.025em; margin: 0 0 12px; }
.pgd-text { color: var(--step-text); max-width: 46em; line-height: 1.7; } .pgd-text p { margin: .5em 0; }
.pgd-list { margin: 0; padding-left: 20px; color: var(--step-text); display: grid; gap: 6px; }

/* the terminal view: no tasks, so the left column is just a title, a note and the End button */
.is-playground .journey, .is-playground .step-counter, .is-playground .step-footer, .is-playground .step-title { display: none; }
.is-playground .tasks-pane { max-width: 340px; }

@media (max-width: 900px) {
  .pg-hero, .pgd-hero { grid-template-columns: 1fr; } .pgd-art { order: -1; justify-content: flex-start; } .pgd-hero { padding: 26px; }
  .pgr { grid-template-columns: 1fr; gap: 16px; padding: 30px 0; } .pgr h2 br { display: none; }
}
@media (prefers-reduced-motion: reduce) { .pgt:hover { transform: none; } }

/* detail page: sibling pills, tabs, and service cards */
.pgd-pills { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 18px; border: 1px solid var(--rule2); border-radius: 999px; background: var(--panel); }
.pgd-pills a, .pgd-pills span { padding: 7px 18px; border-radius: 999px; font: 600 13px var(--sans); text-decoration: none; color: var(--muted); }
.pgd-pills a:hover { color: var(--text); } .pgd-pills .is-on { background: var(--text); color: var(--bg); }
.pgd-tabs { display: flex; gap: 4px; padding: 5px; margin: 34px auto 8px; max-width: 760px; border: 1px solid var(--rule2); border-radius: 999px; background: var(--panel); scroll-margin-top: calc(var(--topbar-h) + 12px); }
.pgd-tabs button { flex: 1; padding: 11px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; transition: color .2s, background .2s; }
.pgd-tabs button:hover { color: var(--text); } .pgd-tabs button[aria-selected='true'] { background: var(--text); color: var(--bg); }
.pgd-panel { max-width: 760px; margin: 0 auto; padding: 26px 0; } .pgd-panel > h2 { font: 600 1.7rem/1.2 var(--display); letter-spacing: -.03em; margin: 0 0 14px; }
.pgd-panel h3 { font: 600 1.05rem/1.3 var(--sans); margin: 22px 0 8px; }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.svc { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--rule); border-radius: 18px; background: var(--card); }
.svc header { display: flex; align-items: center; gap: 12px; } .svc h3 { margin: 0; font: 600 1.05rem/1.3 var(--sans); }
.svc-ic { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 6px; border-radius: 8px; background: var(--grad); color: var(--on-brand); font: 700 12px var(--mono); }
.svc-allowed, .svc-limits { padding: 14px 16px; border-radius: 12px; background: var(--panel2); color: var(--step-text); font-size: .9rem; line-height: 1.6; }
.svc-allowed b, .svc-limits b { color: var(--text); } .svc ul { margin: 6px 0 0; padding-left: 18px; } .svc ul ul { margin: 2px 0 6px; list-style: circle; }
.svc-limits { border-left: 2px solid var(--warn); }
.svc footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.svc-more { border: 0; background: none; padding: 0; color: var(--brand2); font: 600 14px var(--sans); cursor: pointer; }
.svc-launch { padding: 7px 16px; border: 1px solid var(--brand2); border-radius: 999px; color: var(--brand2); font: 600 13px var(--sans); text-decoration: none; transition: background .2s, color .2s; }
.svc-launch:hover { background: var(--brand2); color: var(--on-brand); }
@media (max-width: 600px) { .pgd-tabs { border-radius: 16px; flex-direction: column; } .svc-grid { grid-template-columns: 1fr; } }

/* top of the grid page: featured and category cards, then a hero with a bullet card overlapping a terminal */
.pg-top { padding: 22px 0 10px; }
.pg-label { font: 600 1.15rem/1.2 var(--display); letter-spacing: -.02em; margin: 34px 0 14px; }
.pgf-grid, .pgc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pgf { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--rule); border-radius: 16px; background: linear-gradient(135deg, var(--card-hover), transparent 75%), var(--card); color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s; }
.pgf:hover, .pgc:hover { border-color: color-mix(in srgb, var(--brand) 55%, transparent); transform: translateY(-2px); }
.pgf .pgi { width: 44px; height: 44px; flex: none; } .pgf span { display: flex; flex-direction: column; gap: 3px; } .pgf b { font: 600 1rem/1.3 var(--sans); } .pgf small { color: var(--muted); font-size: .85rem; }
.pgc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; border: 1px solid var(--rule); border-radius: 16px; background: var(--card); color: var(--text); text-decoration: none; transition: border-color .25s, transform .25s; }
.pgc .pgi { width: 34px; height: 34px; } .pgc b { font: 600 1rem/1.2 var(--sans); } .pgc small { color: var(--faint); font: 12px var(--mono); }
.pg-hero2 { text-align: center; margin: 72px 0 40px; } .pg-hero2 .lede { margin: 12px auto 0; }
.pg-hero2-title { font: 600 clamp(1.8rem, 3.6vw, 2.6rem)/1.15 var(--display); letter-spacing: -.035em; margin: 0; }
.pg-hero2-body { position: relative; display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; margin-top: 36px; text-align: left; }
.pg-bullets { position: relative; z-index: 1; list-style: none; margin: 0 -40px 0 0; padding: 28px 30px; border-radius: 20px; background: var(--grad); color: var(--on-brand); display: grid; gap: 14px; font-weight: 500; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .6); }
.pg-bullets li { position: relative; padding-left: 28px; line-height: 1.45; }
.pg-bullets li::before { content: '\2713'; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--on-brand); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.pg-bullets a { color: inherit; font-weight: 700; }
.pg-hero2 .pg-demo { min-height: 300px; }
.pg-request { display: flex; justify-content: center; border-top: 1px solid var(--rule); padding-top: 36px; }
@media (max-width: 900px) { .pg-hero2-body { grid-template-columns: 1fr; } .pg-bullets { margin: 0 0 -20px; } }
