/* Sub-pages (type pages + guide), built by tools/build-pages.py. Same colours as the home page. */
:root { --green: #1F9D55; --green-ink: #12703A; --night: #0E1F18; --ink: #10231A; --muted: #4E6B5C; --paper: #F4FBF5; --line: #DDEBE2; }
* { box-sizing: border-box; }
html { scrollbar-width: none; } html::-webkit-scrollbar { display: none; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 Nunito, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; }
a { color: var(--green-ink); }
a:focus-visible, summary:focus-visible { outline: 3px solid #7CF2A8; outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; }
.pg-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 40px; }

.pg-top { position: sticky; top: 0; z-index: 10; background: var(--night); color: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.pg-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; }
.pg-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 20px "Pixelify Sans", Nunito, sans-serif; line-height: 1; }
.pg-brand img { border-radius: 10px; }
.pg-brand small { display: block; font: 700 12px Nunito, sans-serif; color: #A9C9B6; margin-top: 2px; }
.pg-nav { display: flex; gap: 18px; margin-left: auto; }
.pg-nav a { color: #E2F3E9; text-decoration: none; font-weight: 800; font-size: 15px; }
.pg-nav a:hover { color: #7CF2A8; }
.pg-get { background: linear-gradient(180deg, #2BC06A, #1F9D55); color: #fff; text-decoration: none; font-weight: 900; padding: 10px 18px; border-radius: 999px; white-space: nowrap; }

.pg-crumbs { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.pg-crumbs a { color: var(--muted); }
.pg-hero { padding: 28px 0 8px; max-width: 820px; }
.pg-kicker { margin: 0 0 6px; font: 700 12px Nunito, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--green-ink); }
h1 { font: 700 clamp(32px, 5vw, 54px)/1.05 "Pixelify Sans", Nunito, sans-serif; margin: 0 0 14px; letter-spacing: .01em; }
h2 { font: 700 clamp(24px, 3vw, 32px)/1.15 "Pixelify Sans", Nunito, sans-serif; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 4px; }
.pg-lead { font-size: 18px; color: #2E4A3C; margin: 0 0 20px; }
.pg-cta { display: inline-block; background: linear-gradient(180deg, #2BC06A, #1F9D55); color: #fff; text-decoration: none; font-weight: 900; padding: 13px 24px; border-radius: 999px; box-shadow: 0 10px 22px rgba(31,157,85,.3); }
.pg-sec { margin-top: 44px; }

.pg-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.pg-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px 14px; text-decoration: none; color: var(--ink); box-shadow: 0 8px 22px rgba(14,42,28,.05); transition: transform .2s, box-shadow .2s; }
.pg-card a:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(14,42,28,.12); }
.pg-thumb { display: grid; place-items: center; background: radial-gradient(circle at 50% 70%, #E9DDFB, #F1F6F2 70%); border-radius: 12px; aspect-ratio: 1 / 1.15; margin-bottom: 10px; }
.pg-thumb img { width: auto; height: 88%; image-rendering: pixelated; }
.pg-rank { align-self: flex-start; background: #10231A; color: #fff; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.pg-card b { font-size: 15px; line-height: 1.3; }
.pg-card small { color: var(--muted); font-size: 12px; margin: 2px 0 10px; }
.pg-get-skin { margin-top: auto; text-align: center; background: #EEF7F1; color: var(--green-ink); font-weight: 800; font-size: 13px; padding: 7px 10px; border-radius: 999px; }

.pg-steps-short { padding-left: 22px; margin: 0 0 8px; } .pg-steps-short li { margin: 6px 0; }
.pg-more { font-weight: 800; }
.pg-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; text-decoration: none; font-weight: 800; color: var(--ink); }
.pg-chips a:hover, .pg-chips a[aria-current="page"] { background: var(--green); border-color: var(--green); color: #fff; }

.pg-need, .pg-tips { padding-left: 22px; margin: 0; } .pg-need li, .pg-tips li { margin: 8px 0; }
.pg-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.pg-phase { font: 800 13px Nunito, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--green-ink); margin-top: 14px; }
.pg-step { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 20px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.pg-step figure { margin: 0; } .pg-step img { border-radius: 10px; display: block; }
.pg-num { font-size: 12px; font-weight: 900; color: #fff; background: var(--green); padding: 2px 10px; border-radius: 999px; }
.pg-step h3 { margin-top: 8px; } .pg-step p { margin: 0; color: #2E4A3C; }
details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 800; cursor: pointer; } details p { margin: 10px 0 0; color: #2E4A3C; }

.pg-foot { background: var(--night); color: #C9DED2; font-size: 14px; padding: 30px 0; margin-top: 40px; }
.pg-foot b { color: #fff; } .pg-links a { color: #fff; display: inline-block; padding: 4px 0; }

@media (max-width: 1100px) { .pg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 860px) { .pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pg-nav { display: none; } .pg-step { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .pg-lead { font-size: 16px; } .pg-brand { font-size: 18px; } .pg-get { padding: 9px 14px; font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .pg-card a { transition: none; } }
.pg-facts { padding-left: 22px; margin: 0; } .pg-facts li { margin: 8px 0; }
.pg-crumbs a { display: inline-block; padding: 5px 2px; }
.pg-chips a:hover, .pg-chips a[aria-current="page"], .pg-num { background: #15803D; border-color: #15803D; }
.pg-get, .pg-cta { background: linear-gradient(180deg, #1F9D55, #15803D); }
.pg-step-text { grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 14px; padding: 16px 18px; }
.pg-step-text .pg-num { margin-top: 2px; white-space: nowrap; }
.pg-step-text h3 { margin: 0 0 4px; }
.pg-see-all { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 22px; }
@media (max-width: 860px) { .pg-step-text { grid-template-columns: auto minmax(0, 1fr); } }
.pg-step.pg-tall { grid-template-columns: 200px minmax(0, 1fr); }
.pg-step.pg-wide { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }
.pg-step figure { display: grid; place-items: center; }
.pg-step.pg-tall img { width: 200px; }
@media (max-width: 860px) { .pg-step.pg-tall, .pg-step.pg-wide { grid-template-columns: minmax(0, 1fr); } .pg-step.pg-tall img { width: 220px; } }
.pg-updated { margin: -6px 0 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
/* compact cards (owner 30 Nov 2026): no rank, no Free/PRO; smaller, wider-looking thumbs */
.pg-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pg-thumb { aspect-ratio: 1 / 1; }
.pg-card b { margin-bottom: 10px; }
@media (max-width: 560px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pg-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pg-thumb { position: relative; overflow: hidden; } .pg-thumb img { position: absolute; inset: 0; margin: auto; height: 88%; width: auto; }
/* 6 per row + "See more" (owner 30 Nov 2026) */
@media (min-width: 1100px) { .pg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pg-grid > li[hidden] { display: none; }
.pg-more-row { display: flex; justify-content: center; margin: 22px 0 0; }
.pg-see-more, .pg-see-app { font: 900 15px Nunito, system-ui, sans-serif; border-radius: 999px; padding: 12px 26px; cursor: pointer; text-decoration: none; transition: transform .15s ease-out, background-color .2s, color .2s; }
.pg-see-more { background: #fff; color: var(--green-ink); border: 2px solid #15803D; }
.pg-see-more:hover { background: #15803D; color: #fff; }
.pg-see-app { background: linear-gradient(180deg, #1F9D55, #15803D); color: #fff; box-shadow: 0 10px 22px rgba(31,157,85,.3); }
.pg-see-more:active, .pg-see-app:active { transform: scale(.97); }
.pg-see-app[hidden], .pg-see-more[hidden] { display: none; }
/* hover: the skin turns round to show its back */
.pg-thumb { perspective: 600px; }
.pg-thumb img { transition: transform .3s cubic-bezier(.23,1,.32,1), opacity .3s; backface-visibility: hidden; }
.pg-thumb .pg-back { transform: rotateY(-180deg); opacity: 0; }
.pg-card a { transition: transform .2s ease-out, box-shadow .2s ease-out, border-color .2s; }
.pg-get-skin { transition: background-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) {
  .pg-card a:hover { border-color: #9AD9B2; }
  .pg-card a:hover .pg-thumb img:first-child { transform: rotateY(180deg); opacity: 0; }
  .pg-card a:hover .pg-thumb .pg-back { transform: rotateY(0); opacity: 1; }
  .pg-card a:hover .pg-get-skin { background: #15803D; color: #fff; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-thumb img { transition: opacity .2s; }
  .pg-card a:hover .pg-thumb img:first-child, .pg-thumb .pg-back, .pg-card a:hover .pg-thumb .pg-back { transform: none; }
}
/* bigger cards (owner 30 Nov 2026): wider page, 6 per row only on wide screens; 6 / 3 / 2 all fit the "6 at a time" list */
main, .pg-wrap { width: min(1440px, calc(100% - 32px)); }
.pg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (min-width: 1280px) { .pg-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.pg-thumb { aspect-ratio: 1 / 1.1; }
.pg-card a { padding: 12px 12px 14px; }
.pg-card b { font-size: 16px; }
.pg-get-skin { font-size: 14px; padding: 9px 10px; }
.pg-card .pg-desc { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin: 4px 0 12px; }
.pg-card b { margin-bottom: 0; }
/* small phones (owner 30 Nov 2026): one card per row, picture left, text right */
@media (max-width: 480px) {
  .pg-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pg-card a { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 14px; align-items: start; padding: 10px; }
  .pg-thumb { grid-row: 1 / 4; margin: 0; aspect-ratio: 1 / 1.15; }
  .pg-card b { margin-top: 4px; }
  .pg-card .pg-desc { margin: 4px 0 10px; }
  .pg-get-skin { align-self: end; justify-self: start; padding: 8px 16px; }
}
