/* appsium.io content pages: guides, free tools, comparisons. Loaded after styles.css.
   Dark hero on top, paper body below (same rhythm as the legal pages). */

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px 0 72px; }
.page-hero .container { position: relative; }
.page-hero .crumbs { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 22px; }
.page-hero .crumbs a:hover { color: var(--text); }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.05em; max-width: 920px; }
.page-hero .lede { margin-top: 20px; max-width: 720px; font-size: clamp(17px, 1.6vw, 20px); color: #c5c9d6; line-height: 1.55; }
.page-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 26px; font-size: 13.5px; color: var(--text-muted); }
.page-hero .meta span { display: inline-flex; align-items: center; gap: 7px; }
.page-hero .meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #444a5c; margin-right: 11px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lede { margin-inline: auto; }
.page-hero.center .crumbs, .page-hero.center .meta { justify-content: center; }
.hero-cover { margin-top: 44px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line-dark); box-shadow: 0 40px 120px -40px rgba(80, 90, 240, .55); aspect-ratio: 21 / 9; background: #0d1018; }
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Paper body ---------- */
.page-body { background: var(--paper); color: var(--ink); padding: 72px 0 110px; border-radius: 40px 40px 0 0; position: relative; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.article-layout.wide { grid-template-columns: minmax(0, 1fr); }
.toc { position: sticky; top: 100px; align-self: start; display: grid; gap: 4px; font-size: 13.5px; }
.toc strong { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-muted); margin-bottom: 8px; }
.toc a { color: var(--ink-muted); padding: 5px 0 5px 12px; border-left: 2px solid var(--line); line-height: 1.35; transition: color .2s, border-color .2s; }
.toc a:hover, .toc a.active { color: var(--brand); border-color: var(--brand); }

.prose { max-width: 760px; font-size: 17px; line-height: 1.72; color: #2a3042; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -.035em; line-height: 1.15; margin-top: 60px; color: var(--ink); scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 20px; letter-spacing: -.02em; margin-top: 34px; color: var(--ink); scroll-margin-top: 100px; }
.prose h4 { font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
/* styles.css gives .prose p a zero top margin, which outranks the generic sibling rule above. */
.prose > * + p, .prose > * + ul, .prose > * + ol { margin-top: 18px; }
.prose .source-note { font-size: 14px; color: var(--ink-muted); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose strong { color: var(--ink); }
.prose code { font: 500 .88em ui-monospace, SFMono-Regular, Menlo, monospace; background: #eceff6; border-radius: 6px; padding: 2px 6px; color: #2f3a8a; overflow-wrap: anywhere; }
.prose blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--brand); font-size: 19px; color: var(--ink); letter-spacing: -.01em; }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 48px 0; }
.prose .lead { font-size: 19.5px; line-height: 1.6; color: var(--ink); letter-spacing: -.01em; }

/* Figure card for visuals (inline SVG, mockups, tables) */
.viz { margin: 34px 0; padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -45px rgba(16, 19, 28, .35); overflow: hidden; }
.viz.dark { background: radial-gradient(120% 140% at 0% 0%, #1b2040 0%, #0b0d14 60%); border-color: #1d2233; color: var(--text); }
.viz.tint { background: linear-gradient(160deg, #f3f4ff, #fbf8ff); border-color: #e0e3fb; }
.viz svg { display: block; width: 100%; height: auto; }
.viz figcaption { margin-top: 18px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.5; }
.viz.dark figcaption { color: var(--text-muted); }
.viz-title { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.viz.dark .viz-title { color: #8f9cff; }

/* Callouts */
.callout { position: relative; padding: 18px 20px 18px 68px; min-height: 70px; border-radius: 16px; background: #eef1ff; border: 1px solid #d6dcfd; color: #29336f; font-size: 16px; line-height: 1.6; }
.callout::before { content: "i"; position: absolute; left: 20px; top: 18px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 800; font-family: Georgia, serif; font-style: italic; }
.callout strong { color: inherit; display: block; margin-bottom: 2px; }
.callout.tip { background: #eafaf3; border-color: #c4eedb; color: #155c42; }
.callout.tip::before { content: "✓"; background: var(--green); font-family: inherit; font-style: normal; }
.callout.warn { background: #fff6e8; border-color: #fbe0b4; color: #7a4a05; }
.callout.warn::before { content: "!"; background: var(--amber); font-family: inherit; font-style: normal; }

/* Stats */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 30px 0; }
.stat { padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: 34px; letter-spacing: -.05em; line-height: 1; background: linear-gradient(120deg, #4e60ec, #7a5af5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--ink-muted); line-height: 1.4; }

/* Do / Don't */
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 30px 0; }
.do-dont > div { padding: 20px 22px; border-radius: 18px; border: 1px solid; }
.do-dont .do { background: #f0fbf6; border-color: #c9eedc; }
.do-dont .dont { background: #fff3f3; border-color: #f7d0d0; }
.do-dont h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.do-dont .do h4::before { content: "✓"; color: var(--green); font-weight: 800; }
.do-dont .dont h4::before { content: "✕"; color: #e5484d; font-weight: 800; }
.do-dont ul { list-style: none; padding: 0; margin: 0; font-size: 15px; line-height: 1.55; }
.do-dont li + li { margin-top: 8px; }

/* Numbered steps */
.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 30px 0; }
.steps > li { counter-increment: step; position: relative; padding: 20px 22px 20px 74px; border-radius: 18px; background: #fff; border: 1px solid var(--line); margin: 0 !important; }
.steps > li::before { content: counter(step); position: absolute; left: 20px; top: 18px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5b6cf0, #7a5af5); box-shadow: 0 8px 20px -8px rgba(98, 106, 245, .8); }
.steps > li strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 17px; }

/* Checklist */
.checklist { list-style: none; padding: 0 !important; display: grid; gap: 10px; margin: 26px 0; }
.checklist li { position: relative; padding: 14px 16px 14px 50px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin: 0 !important; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c5cbe0; }
.checklist li::after { content: ""; position: absolute; left: 23px; top: 18px; width: 6px; height: 11px; border: solid var(--brand); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); opacity: 0; transition: opacity .2s; }
.checklist li.done::after, .checklist.all li::after { opacity: 1; }
.checklist li.done::before, .checklist.all li::before { border-color: var(--brand); background: #eef1ff; }

/* App Store Connect field mockup with character meter */
.asc-field { padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.asc-field + .asc-field { margin-top: 12px; }
.asc-field label { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .08em; }
.asc-input { margin-top: 8px; font: 500 16px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); word-break: break-word; }
.asc-meter { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.asc-meter i { flex: 1; height: 6px; border-radius: 99px; background: #eceff6; position: relative; overflow: hidden; }
.asc-meter i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 50%); border-radius: inherit; background: linear-gradient(90deg, #4e60ec, #7a5af5); }
.asc-meter.good i::after { background: linear-gradient(90deg, #1fb57a, #23bc82); }
.asc-meter.warn i::after { background: linear-gradient(90deg, #f5a524, #f7c04a); }
.asc-meter.bad i::after { background: linear-gradient(90deg, #e5484d, #f06a6e); }
.asc-field mark { background: #e4e8ff; color: #2f3a8a; border-radius: 4px; padding: 0 2px; }
.asc-field mark.bad { background: #ffe1e1; color: #a12a2e; text-decoration: line-through; }

/* App Store search result mockup */
.store-result { display: grid; gap: 14px; padding: 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); max-width: 420px; }
.store-result .head { display: grid; grid-template-columns: 62px 1fr auto; gap: 12px; align-items: center; }
.store-result .icon { width: 62px; height: 62px; border-radius: 15px; background: var(--icon, linear-gradient(135deg, #5b6cf0, #22c3e6)); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.store-result .name { font-weight: 600; font-size: 15.5px; color: var(--ink); letter-spacing: -.01em; line-height: 1.25; }
.store-result .sub { font-size: 13px; color: var(--ink-muted); }
.store-result .stars { font-size: 12px; color: #8a90a2; margin-top: 2px; }
.store-result .get { padding: 6px 18px; border-radius: 99px; background: #eef0f6; color: #0a7aff; font-weight: 700; font-size: 14px; }
.store-result .shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.store-result .shots span { aspect-ratio: 9 / 19.5; border-radius: 12px; background: var(--shot, linear-gradient(170deg, #e9ecff, #f6f0ff)); border: 1px solid #eceef5; display: grid; align-content: start; padding: 10px 8px; font-size: 10.5px; font-weight: 700; color: var(--ink); text-align: center; line-height: 1.25; }

/* Data tables */
.table-wrap { margin: 30px 0; overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #eef0f5; vertical-align: top; }
table.data thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-muted); background: #fafbfd; font-weight: 600; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .yes { color: #138a5d; font-weight: 700; }
table.data .no { color: #c6363b; font-weight: 700; }
table.data .part { color: #a26a06; font-weight: 700; }
table.data .hl { background: #f5f6ff; }
.pill { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #eef1ff; color: #3442b8; white-space: nowrap; }
.pill.green { background: #e7f8f0; color: #13744f; }
.pill.amber { background: #fff3dc; color: #8a5a00; }
.pill.red { background: #ffe9e9; color: #a8272c; }

/* Inline CTA */
.cta-inline { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px 14px; margin: 40px 0; padding: 24px 26px; border-radius: 20px; color: var(--text); background: radial-gradient(120% 160% at 0% 0%, #2a2f6b 0%, #10131c 65%); }
.cta-inline p { color: #c5c9d6; font-size: 15.5px; line-height: 1.5; max-width: 470px; }
.cta-inline strong { display: block; color: #fff; font-size: 18px; letter-spacing: -.02em; margin-bottom: 2px; }
.prose .cta-inline a.btn { color: #fff; text-decoration: none; }
.prose .cta-inline a.btn-light { color: #0b0d14; }
.cta-inline p { margin-right: 8px; }
@media (max-width: 720px) { .cta-inline { display: flex; flex-wrap: wrap; } .cta-inline p { flex-basis: 100%; margin-right: 0; } }

/* ---------- End-of-page CTA + related ---------- */
.end-cta { margin-top: 80px; padding: 56px; border-radius: 30px; position: relative; overflow: hidden; color: var(--text); background: radial-gradient(90% 140% at 100% 0%, rgba(122, 90, 245, .55), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(34, 195, 230, .25), transparent 60%), #0b0d14; }
.end-cta h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.045em; line-height: 1.08; max-width: 640px; }
.end-cta p { margin-top: 14px; color: #c5c9d6; max-width: 560px; font-size: 17px; }
.end-cta .actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }
.related { margin-top: 80px; }
.related > h2 { font-size: 26px; letter-spacing: -.035em; margin-bottom: 22px; }

/* Card grid (hubs and related) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { display: flex; flex-direction: column; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -36px rgba(40, 50, 120, .45); }
.card .thumb { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1b2040, #0b0d14); overflow: hidden; display: grid; place-items: center; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .thumb img { transform: scale(1.04); }
.card .thumb .glyph { font-size: 44px; color: rgba(255, 255, 255, .78); }
.card .body { padding: 20px 22px 24px; display: grid; gap: 8px; }
.card .kind { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.card h3 { font-size: 19px; letter-spacing: -.025em; line-height: 1.25; color: var(--ink); }
.card p { font-size: 14.5px; color: var(--ink-muted); line-height: 1.5; }

/* ---------- Tools ---------- */
.tool-shell { display: grid; gap: 18px; }
.tool-panel { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -50px rgba(16, 19, 28, .45); }
.tool-row { display: grid; gap: 8px; }
.tool-row + .tool-row { margin-top: 22px; }
.tool-row label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.tool-row label small { font-weight: 500; color: var(--ink-muted); font-size: 12.5px; }
.tool-input, .tool-select { width: 100%; font: 500 16px/1.5 Inter, system-ui, sans-serif; color: var(--ink); padding: 12px 14px; border-radius: 12px; border: 1px solid #d9dde8; background: #fbfcfe; transition: border-color .2s, box-shadow .2s; }
textarea.tool-input { resize: vertical; min-height: 96px; }
.app-load { padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.app-load-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
/* The country picker on a white panel: same control, light button; the list keeps its dark popover. */
.cc-light .cc-btn { height: 100%; min-height: 46px; background: #fff; color: var(--ink); border-color: var(--line); }
.cc-light .cc-btn:hover, .cc-light .cc-btn[aria-expanded="true"] { background: #f6f7fb; border-color: var(--brand); }
.cc-light .cc-flag { box-shadow: 0 0 0 1px rgba(16, 19, 28, .12); }
.cc-light .cc-pop { left: auto; right: 0; }
.app-load-search { position: relative; }
.app-load-search .tool-input { width: 100%; padding-right: 40px; }
.app-load-search .score-search-spin { top: 50%; margin-top: -9px; border-color: rgba(16, 19, 28, .12); border-top-color: var(--brand); }
.app-load-search .score-suggest { top: calc(100% + 6px); }
.app-load-note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.app-load-note.err { color: #c2353b; }
.tool-input:focus, .tool-select:focus { outline: 0; border-color: #8a97f5; box-shadow: 0 0 0 4px rgba(78, 96, 236, .14); background: #fff; }
.tool-input.over { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, .12); }
.counter { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.counter i { flex: 1; height: 5px; border-radius: 99px; background: #eceff6; overflow: hidden; position: relative; }
.counter i b { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, #4e60ec, #7a5af5); transition: width .25s var(--ease); }
.counter.good i b { background: #23bc82; }
.counter.warn i b { background: #f5a524; }
.counter.over i b { background: #e5484d; }
.counter.over { color: #c6363b; font-weight: 600; }
.issues { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.issues li { position: relative; font-size: 14px; line-height: 1.5; padding: 10px 12px 10px 32px; border-radius: 10px; background: #f6f7fb; color: #353b4d; }
.issues li::before { content: "•"; position: absolute; left: 13px; top: 10px; color: var(--brand); font-weight: 800; }
.issues li.warn { background: #fff6e8; color: #7a4a05; }
.issues li.warn::before { content: "!"; color: var(--amber); }
.issues li.ok { background: #eafaf3; color: #155c42; }
.issues li.ok::before { content: "✓"; color: var(--green); }
.tool-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.tool-sticky { position: sticky; top: 96px; }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: #eef0f6; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 8px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(16, 19, 28, .2); }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.copy-btn:hover { border-color: var(--brand); color: var(--brand); }

/* Big score entry (ASO score tool on appsium.io) */
.score-entry { position: relative; margin-top: 36px; max-width: 760px; }
.score-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 8px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 30px 90px -30px rgba(94, 108, 240, .7); position: relative; z-index: 5; }
.score-form .btn { height: 56px; border-radius: 15px; padding: 0 26px; }
.score-form .btn:disabled { opacity: .6; cursor: progress; transform: none; }
.score-search { position: relative; }
.score-search input { width: 100%; height: 56px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(6, 7, 11, .62); color: #fff; padding: 0 44px 0 46px; font: 500 16px Inter, system-ui, sans-serif; transition: border-color .2s, box-shadow .2s; }
.score-search input::placeholder { color: #7d8396; }
.score-search input:focus { outline: 0; border-color: #8a97f5; box-shadow: 0 0 0 4px rgba(122, 140, 255, .18); }
.score-search-icon { position: absolute; left: 16px; top: 19px; color: #8a90a6; pointer-events: none; }
.score-search-spin { position: absolute; right: 16px; top: 19px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .15); border-top-color: #8f9cff; opacity: 0; transition: opacity .2s; animation: spin .8s linear infinite; pointer-events: none; }
.score-search-spin.on { opacity: 1; }

/* App suggestions (combobox) */
.score-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; padding: 6px; border-radius: 18px; background: rgba(16, 19, 30, .98); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); max-height: 440px; overflow-y: auto; text-align: left; }
.suggest-opt { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 0; border-radius: 12px; background: transparent; color: var(--text); text-align: left; }
.suggest-opt[aria-selected="true"], .suggest-opt:hover { background: rgba(122, 140, 255, .16); }
.suggest-opt img, .suggest-opt .ph { width: 44px; height: 44px; border-radius: 11px; background: #1d2233; }
.sg-text { min-width: 0; }
.sg-text b, .sg-text small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-text b { font-size: 15px; font-weight: 600; }
.sg-text small { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.sg-meta { font-size: 13px; color: #ffd27a; text-align: right; white-space: nowrap; }
.sg-meta small { display: block; color: var(--text-muted); font-size: 11.5px; }
.suggest-empty { padding: 14px 12px; color: var(--text-muted); font-size: 14px; }

/* Country picker */
.cc { position: relative; }
.cc-btn { height: 56px; display: inline-flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 15px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(6, 7, 11, .62); color: #fff; font: 600 15px Inter, system-ui, sans-serif; transition: border-color .2s, background .2s; }
.cc-btn:hover, .cc-btn[aria-expanded="true"] { border-color: #8a97f5; background: rgba(20, 24, 40, .8); }
.cc-btn svg { color: #8a90a6; transition: transform .2s; }
.cc-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.cc-flag, .cc-opt img { width: 22px; height: 16px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.cc-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: 280px; padding: 8px; border-radius: 18px; background: rgba(16, 19, 30, .98); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); text-align: left; }
.cc-filter { width: 100%; height: 40px; border-radius: 11px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(6, 7, 11, .6); color: #fff; padding: 0 12px; font: 500 14px Inter, system-ui, sans-serif; margin-bottom: 6px; }
.cc-filter:focus { outline: 0; border-color: #8a97f5; }
.cc-list { max-height: 300px; overflow-y: auto; display: grid; gap: 2px; scrollbar-width: thin; }
.cc-opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 0; border-radius: 10px; background: transparent; color: #e7e9f0; font: 500 14px Inter, system-ui, sans-serif; text-align: left; }
.cc-opt small { color: var(--text-muted); font-size: 12px; }
.cc-opt:hover { background: rgba(122, 140, 255, .14); }
.cc-opt[aria-selected="true"] { background: rgba(122, 140, 255, .22); color: #fff; }
.cc-empty { padding: 12px; color: var(--text-muted); font-size: 14px; }
.score-hint { margin-top: 14px; font-size: 13.5px; color: var(--text-muted); }
.score-hint button { border: 0; background: none; color: #aab4ff; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.score-error { margin-top: 14px; color: #ff8d90; font-size: 14px; min-height: 20px; }
.score-loading { margin-top: 26px; display: none; align-items: center; gap: 14px; color: #c5c9d6; }
.score-loading.on { display: flex; }
.score-loading i { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #8f9cff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.score-teaser { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.score-teaser div { padding: 18px; border-radius: 18px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .03); }
.score-teaser b { display: block; font-size: 15px; color: #fff; letter-spacing: -.01em; }
.score-teaser span { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); line-height: 1.45; }

/* Screenshot sizes tool */
.size-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.size-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.size-card { padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: grid; gap: 12px; align-content: start; }
.size-card.req { border-color: #b9c2fa; box-shadow: 0 0 0 3px #eef1ff; }
.size-card .frame { height: 120px; display: grid; place-items: center; }
.size-card .frame span { display: block; border-radius: 8px; border: 2px solid #c9cfe6; background: linear-gradient(160deg, #eef1ff, #f7f2ff); }
.size-card h3 { font-size: 16px; letter-spacing: -.02em; color: var(--ink); }
.size-card .px { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--brand); }
.size-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.45; }
.size-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .tool-split { grid-template-columns: 1fr; }
  .tool-sticky { position: static; }
  .score-teaser { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .page-hero { padding: 120px 0 52px; }
  .page-body { padding: 48px 0 80px; border-radius: 28px 28px 0 0; }
  .prose { font-size: 16.5px; }
  .viz { padding: 18px; border-radius: 18px; }
  .do-dont { grid-template-columns: 1fr; }
  .end-cta { padding: 34px 24px; }
  .score-form { grid-template-columns: 1fr 1fr; }
  .cc, .cc-btn { width: 100%; }
  .cc-btn { justify-content: flex-start; }
  .cc-btn svg { margin-left: auto; }
  .score-search { grid-column: 1 / -1; }
  .score-form .btn { padding: 0 18px; }
  .cc-pop { left: 0; right: auto; width: min(280px, calc(100vw - 48px)); }
  .score-teaser { grid-template-columns: 1fr; }
  .tool-panel { padding: 20px; }
  .hero-cover { aspect-ratio: 16 / 10; }
}

/* FAQ, hubs, code */
.faq-list { display: grid; gap: 10px; margin-top: 22px; }
.faq-list details { border-radius: 16px; background: #fff; border: 1px solid var(--line); padding: 0 20px; }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 600; color: var(--ink); position: relative; font-size: 16.5px; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; color: var(--brand); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 0 18px; color: #3a4052; font-size: 15.5px; }
.hub-section + .hub-section { margin-top: 64px; }
.hub-section > h2 { font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.04em; margin-bottom: 22px; }
.prose pre { margin: 26px 0; padding: 20px 22px; border-radius: 16px; background: #0f1220; color: #e3e6f5; overflow-x: auto; font: 500 13.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.prose pre code { background: none; padding: 0; color: inherit; font: inherit; }
.page-hero .crumbs span[aria-hidden] { opacity: .5; }
.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; }
.recent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.recent-card { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.recent-card:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(40, 50, 120, .5); }
.recent-card img, .recent-card .ri { width: 44px; height: 44px; border-radius: 11px; background: #e7e9f2; }
.recent-card .rn { font-weight: 600; font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-card .rs { font-weight: 750; font-size: 20px; letter-spacing: -.03em; color: var(--ink); display: flex; align-items: baseline; gap: 4px; }
.recent-card .rs small { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: #eef1ff; color: #3442b8; }
.recent-card .grade-Ap small, .recent-card .grade-A small { background: #e7f8f0; color: #13744f; }
.recent-card .grade-C small, .recent-card .grade-D small { background: #fff3dc; color: #8a5a00; }
.recent-card .grade-F small { background: #ffe9e9; color: #a8272c; }
.page-hero.center .score-teaser { text-align: left; }

.hub-section + .prose, .tool-split + .prose, [data-sizes] + .prose { margin-top: 0; }
.page-body .prose > h2#faq { margin-top: 72px; }
