/* Generated pages: app gallery, guides, comparisons and the data checker.
   Builds on site.css (tokens, nav, footer, buttons, cards). */

.pg { padding: 48px 0 24px; }
.pg-head { max-width: 760px; }
.pg-head h1 { margin: 0.5rem 0 0.8rem; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.04em; line-height: 1.04; }
.pg-head .lead { max-width: 680px; }
.pg-crumbs { font-size: 0.82rem; color: var(--muted); display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pg-crumbs a { color: var(--muted); }
.pg-crumbs a:hover { color: var(--ink); }

/* Long-form article (guides, comparisons) */
.article { max-width: 760px; padding-bottom: 24px; }
.article h2 { margin: 2.4rem 0 0.7rem; font-size: 1.4rem; letter-spacing: -0.02em; }
.article h3 { margin: 1.6rem 0 0.4rem; font-size: 1.05rem; }
.article p, .article li { color: #3e3a35; line-height: 1.65; }
.article ul, .article ol { padding-left: 1.25rem; }
.article li { margin: 0.4rem 0; }
.article code { font-family: var(--mono); font-size: 0.85em; background: var(--bg-soft); padding: 0.1rem 0.3rem; border-radius: 4px; }
.article .tldr { background: var(--raised); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 12px; padding: 1rem 1.2rem; margin: 1.4rem 0; }
.article .tldr p { margin: 0.2rem 0; }
.article .updated { font-size: 0.82rem; color: var(--muted); }
.article .sources { font-size: 0.85rem; }
.article .sources li { color: var(--muted); }
.article .steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.article .steps li { counter-increment: s; position: relative; padding: 0.9rem 1rem 0.9rem 3.1rem; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; margin: 0; }
.article .steps li::before { content: counter(s); position: absolute; left: 1rem; top: 0.85rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: 0.8rem; font-weight: 600; display: grid; place-items: center; }

.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.cmp { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 560px; }
.cmp th, .cmp td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { background: var(--bg-soft); font-weight: 600; }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td:first-child { color: var(--muted); width: 32%; }

/* Copyable prompt */
.pg-prompt { display: grid; gap: 0.8rem; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; margin: 1rem 0; box-shadow: 0 10px 30px rgba(30, 20, 10, 0.05); }
.pg-prompt code { font-family: var(--mono); font-size: 0.86rem; line-height: 1.6; white-space: pre-wrap; color: var(--ink); background: none; padding: 0; }
.pg-prompt .btn { justify-self: start; }

/* Gallery grid */
.gal-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.6rem 0 0; }
.gal-filters button { font: inherit; font-size: 0.86rem; padding: 0.4rem 0.85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); cursor: pointer; }
.gal-filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; margin: 1.4rem 0 3rem; }
.gal-card { display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: inherit; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.gal-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 40px rgba(30, 20, 10, 0.09); }
.gal-shot { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; border-bottom: 1px solid var(--line); }
.gal-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; display: block; }
.gal-body { padding: 1rem 1.1rem 1.15rem; display: grid; gap: 0.35rem; }
.gal-body h2, .gal-body h3 { margin: 0; font-size: 1.05rem; display: flex; gap: 0.45rem; align-items: center; }
.gal-body p { margin: 0; font-size: 0.9rem; color: var(--muted); }
.gal-tag { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--teal); }

/* App page */
.app-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; padding: 40px 0 8px; }
.app-hero h1 { margin: 0.4rem 0 0.7rem; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.04em; line-height: 1.05; }
.app-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.3rem 0 0.4rem; }
.app-shots { position: relative; }
.app-shots .desk { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(30, 20, 10, 0.12); display: block; background: #fff; }
.app-shots .phone { height: auto; position: absolute; right: -10px; bottom: -28px; width: 30%; max-width: 170px; border-radius: 18px; border: 5px solid #1d1b18; box-shadow: 0 18px 40px rgba(30, 20, 10, 0.25); background: #fff; }
.app-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 3rem 0 0; }
.app-cols .card ul { margin: 0.4rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }
.app-cols .card li { margin: 0.3rem 0; }
.app-make { margin: 2.4rem 0 0; }
.app-make h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 0 0 0.3rem; }
.app-make p { color: var(--muted); margin: 0.2rem 0; }

/* Guides index */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; margin: 1.6rem 0 3rem; }
.guide-list a { display: grid; gap: 0.35rem; color: inherit; background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.2rem; }
.guide-list a:hover { text-decoration: none; border-color: var(--line-strong); }
.guide-list strong { font-size: 1rem; }
.guide-list span { font-size: 0.88rem; color: var(--muted); }

/* Data checker */
.chk textarea { width: 100%; min-height: 220px; font-family: var(--mono); font-size: 0.8rem; line-height: 1.5; padding: 0.9rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--raised); color: var(--ink); resize: vertical; }
.chk-row { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; margin: 0.8rem 0; }
.chk-drop { font-size: 0.85rem; color: var(--muted); }
.chk-result { margin: 1.4rem 0; display: grid; gap: 0.8rem; }
.chk-verdict { border-radius: 14px; padding: 1.1rem 1.2rem; border: 1px solid var(--line); background: var(--raised); }
.chk-verdict h2 { margin: 0 0 0.3rem; font-size: 1.25rem; }
.chk-verdict p { margin: 0.2rem 0; color: #3e3a35; }
.chk-verdict[data-level="bad"] { border-left: 4px solid #d93f0b; }
.chk-verdict[data-level="warn"] { border-left: 4px solid #d99a0b; }
.chk-verdict[data-level="good"] { border-left: 4px solid var(--green); }
.chk-findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.chk-findings li { background: var(--raised); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; color: #3e3a35; }
.chk-findings b { color: var(--ink); }

@media (max-width: 900px) {
  .app-hero { grid-template-columns: 1fr; }
  .app-shots { margin-bottom: 30px; }
  .app-cols { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .app-shots .phone { right: 0; width: 34%; }
  .pg { padding-top: 32px; }
}
