/* AppVetter — replicates yourapk.com detail-page layout system (blue/slate, white cards) */
:root {
  --bg: #f8fafc;            /* ink-50 page background */
  --surface: #ffffff;
  --ink: #0f172a;           /* ink-900 */
  --ink-soft: #475467;      /* ink-600 */
  --ink-400: #98a2b3;
  --line: #f1f5f9;          /* ink-100 card borders */
  --line-strong: #e2e8f0;
  --accent: #2563eb;        /* primary-600 */
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-ink: #1d4ed8;
  --emerald: #10b981;
  --emerald-hover: #059669;
  --amber: #F59E0B;
  --good: #10b981;
  --bad: #ef4444;
  --radius: 16px;
  --maxw: 1180px;
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 1px 3px rgba(15,23,42,.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-size: 0.9em; background: var(--line); padding: 1px 6px; border-radius: 6px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }

/* ---------------------------------------------------------------- header */
.site-head { border-bottom: 1px solid var(--line-strong); background: var(--surface); position: sticky; top: 0; z-index: 40; }
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--ink); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 26px; height: 26px; flex: none; }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.93rem; }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 10px; color: var(--ink); font-size: 1.1rem; cursor: pointer; }
/* header live search (desktop) */
.head-search { position: relative; margin-left: auto; display: none; width: 260px; }
@media (min-width: 900px) { .head-search { display: block; } .site-nav { margin-left: 0; } }
.head-search input { width: 100%; height: 38px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--bg); padding: 0 16px; font-size: 0.9rem; color: var(--ink); }
.head-search input:focus { outline: none; border-color: var(--accent); background: var(--surface); }
.hs-results { position: absolute; left: 0; right: 0; top: 46px; z-index: 70; max-height: 420px; overflow-y: auto;
  border: 1px solid var(--line); background: var(--surface); border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15,23,42,.12); padding: 4px; }
.hs-results a { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 10px; }
.hs-results a:hover { background: var(--bg); text-decoration: none; }
.hs-results a b { min-width: 0; flex: 1; text-align: left; font-size: 0.9rem; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-results a span { font-size: 0.75rem; color: var(--ink-400); flex: none; }
.hs-empty { padding: 16px; text-align: center; font-size: 0.85rem; color: var(--ink-soft); }
@media (max-width: 720px) {
  .site-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--line-strong); flex-direction: column; gap: 0; padding: 8px 20px 14px; }
  .site-nav a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .site-nav a:last-child { border-bottom: none; }
  .site-nav.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------------------------------------------------------------- hero / home */
.hero { padding: 48px 0 32px; }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; letter-spacing: -0.03em; max-width: 720px; }
.hero p.lede { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); max-width: 640px; }
.hero .hero-links { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 20px; border-radius: 24px; font-weight: 500; font-size: 0.98rem; transition: all .3s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.3); text-decoration: none; }
.btn-ghost { border: 1px solid #bfdbfe; color: var(--accent); background: var(--surface); }
.btn-ghost:hover { background: var(--accent-soft); transform: translateY(-1px); text-decoration: none; }

.section { padding: 22px 0 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { font-size: 1.3rem; letter-spacing: -0.2px; font-weight: 600; }
.section-head a { font-size: 0.9rem; font-weight: 600; white-space: nowrap; }

/* app cards (home/category/reviews) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-card); transition: all .2s; }
.app-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15,23,42,.08); text-decoration: none; }
.app-card .row { display: flex; gap: 12px; align-items: center; }
.app-icon { width: 48px; height: 48px; border-radius: 12px; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; color: #fff; }
.app-card h3 { font-size: 1rem; color: var(--ink); line-height: 1.3; font-weight: 600; }
.app-card .dev { font-size: 0.8rem; color: var(--ink-soft); }
.app-card .tagline { font-size: 0.88rem; color: var(--ink-soft); line-height: 1.5; flex: 1; }
.app-card .meta { display: flex; gap: 10px; font-size: 0.78rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 10px; }
.badge { display: inline-block; background: var(--accent-soft); color: var(--accent-ink); border-radius: 6px; padding: 1px 8px; font-size: 0.78rem; font-weight: 600; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 16px; font-weight: 600; font-size: 0.9rem; color: var(--ink); background: var(--surface); }
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ---------------------------------------------------------------- detail layout (yourapk parity) */
.page { padding: 24px 0 60px; }
@media (min-width: 640px) { .page { padding: 32px 0 60px; } }
.page-narrow { max-width: 800px; }
.crumbs { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 16px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent); }

.detail-wrap { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .detail-wrap { flex-direction: row; } }
.detail-main { flex: 1; min-width: 0; max-width: 840px; display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 640px) { .detail-main { gap: 40px; } }
.detail-side { width: 100%; }
@media (min-width: 1024px) { .detail-side { width: 300px; flex: none; } }

.detail-panel { position: relative; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-card); border-radius: var(--radius); padding: 1rem; overflow: hidden; }
@media (min-width: 640px) { .detail-panel { padding: 1.25rem; } }
@media (min-width: 768px) { .detail-panel { padding: 1.5rem; } }

.safe-flag { position: absolute; right: 0; top: 0; height: 24px; }

/* app header: icon + title + stars */
.app-head { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
@media (min-width: 640px) { .app-head { flex-direction: row; align-items: flex-start; gap: 20px; text-align: left; } }
.app-head .app-icon-lg { width: 80px; height: 80px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 2rem; color: #fff; }
@media (min-width: 640px) { .app-head .app-icon-lg { width: 100px; height: 100px; border-radius: 20px; font-size: 2.5rem; } }
.app-head h1 { font-size: 1.25rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
@media (min-width: 640px) { .app-head h1 { font-size: 1.5rem; } }
@media (min-width: 768px) { .app-head h1 { font-size: 26px; } }
.app-head .head-body { min-width: 0; flex: 1; padding-top: 4px; }
.stars { margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 0.875rem; color: var(--ink-400); }
@media (min-width: 640px) { .stars { justify-content: flex-start; } }
.stars .rating-val { margin-left: 6px; font-weight: 500; color: var(--ink-soft); }

/* ad units — same wrapper structure as reference layout */
.ads { text-align: center; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; min-height: 0; overflow: hidden; margin: 14px 0 !important; }
.adsense-display-label { color: #d7d7d7; text-align: center; margin: 0; font-size: 12px; line-height: normal; }
.ads .adsbygoogle { width: 100%; height: auto; min-height: 0; display: block; }
.adsHeight { min-height: 100px; }
.ad-placeholder { width: 100%; min-height: 100px; border: 1px dashed var(--line-strong); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; color: #d7d7d7; font-size: 13px; background: #fcfcfd; }

/* real icon images (fetched) — fallback letter avatars keep the colored background */
.has-img { background: none !important; overflow: hidden; }
.has-img img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }
.app-icon.has-img, .app-icon-sm.has-img, .app-icon-lg.has-img { border-radius: inherit; }
.app-icon.has-img { border-radius: 12px; }
.app-icon-lg.has-img { border-radius: 16px; }
@media (min-width: 640px) { .app-icon-lg.has-img { border-radius: 20px; } }
.app-icon-sm.has-img { border-radius: 16px; }
@media (min-width: 640px) { .app-icon-sm.has-img { border-radius: 18px; } }

/* screenshots strip — same dimensions as reference layout (108/126/144px, horizontal scroll) */
.detail-screenshot-scroll { margin: 0 -4px; display: flex; gap: 12px; overflow-x: auto;
  padding-bottom: 8px; scrollbar-width: none; }
.detail-screenshot-scroll::-webkit-scrollbar { display: none; }
.detail-screenshot-item { width: 108px; height: 192px; flex-shrink: 0; border-radius: 12px;
  border: 1px solid var(--line); overflow: hidden; background: var(--bg); }
@media (min-width: 640px) { .detail-screenshot-item { width: 126px; height: 224px; } }
@media (min-width: 768px) { .detail-screenshot-item { width: 144px; height: 256px; } }
.detail-screenshot-item img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* info grid */
.detail-info-grid { border-top: 1px solid rgba(15,23,42,.06); display: grid; grid-template-columns: 1fr;
  gap: 10px 0; margin-top: 20px; padding-top: 16px; }
@media (min-width: 640px) { .detail-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; } }
@media (min-width: 768px) { .detail-info-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; } }
.detail-info-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.detail-info-label { color: var(--ink-soft); white-space: nowrap; flex-shrink: 0; font-size: 14px; font-weight: 500; line-height: 22px; }
.detail-info-value { text-align: left; text-overflow: ellipsis; white-space: nowrap; color: var(--ink);
  flex-shrink: 0; width: 120px; font-size: 14px; font-weight: 600; line-height: 22px; overflow: hidden; }
@media (min-width: 640px) { .detail-info-value { width: 140px; } }

/* section titles inside panels */
.detail-section-title { color: var(--ink); letter-spacing: -0.2px; margin: 0 0 16px; font-size: 22px; font-weight: 600; line-height: 32px; }

/* article text inside panels */
.detail-panel article p, .detail-panel p.body-text { margin: 10px 0; color: #334155; font-size: 15.5px; line-height: 1.7; }
.detail-panel h3 { font-size: 17px; font-weight: 600; margin: 18px 0 6px; color: var(--ink); }
.detail-panel ul.plain { margin: 10px 0 0; list-style: none; }
.detail-panel ul.plain li { margin: 8px 0; padding-left: 22px; position: relative; color: #334155; font-size: 15px; }
.detail-panel ul.plain li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.detail-panel ul.plain.neutral li::before { background: var(--ink-400); }

/* download buttons (detail page) */
.detail-download-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
@media (min-width: 640px) { .detail-download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.detail-download-btn { color: #fff; cursor: pointer; background: var(--accent); border-radius: 24px;
  display: flex; justify-content: center; align-items: center; gap: 15px; padding: 9px 0;
  font-size: 18px; font-weight: 500; line-height: 26px; text-decoration: none; transition: all .3s; }
.detail-download-btn:hover { background: var(--accent-hover); transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,.3); text-decoration: none; }
.detail-download-btn--secondary { color: var(--accent); background: #fff; border: 1px solid #bfdbfe; }
.detail-download-btn--secondary:hover { background: var(--accent-soft); transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37,99,235,.1); }

/* recommend grids (Similar Apps / More from / Top Download) */
.page_recommend_list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .page_recommend_list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 16px; } }
@media (min-width: 768px) { .page_recommend_list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px 22px; } }
.page_recommend_item { min-width: 0; display: flex; height: 160px; flex-direction: column; align-items: center;
  border-radius: 16px; background: rgba(248,250,252,.7); padding: 12px 10px; transition: all .2s; cursor: pointer; }
@media (min-width: 640px) { .page_recommend_item { height: 176px; border-radius: 20px; padding: 16px 12px; } }
.page_recommend_item:hover { transform: translateY(-2px); background: var(--bg); box-shadow: var(--shadow-card); text-decoration: none; }
.page_recommend_item .app-icon-sm { width: 64px; height: 64px; border-radius: 16px; flex: none;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.6rem; color: #fff; }
@media (min-width: 640px) { .page_recommend_item .app-icon-sm { width: 80px; height: 80px; border-radius: 18px; } }
.page_recommend_item_title { margin-top: 12px; width: 100%; padding: 0 4px; text-align: center;
  font-size: 12px; font-weight: 600; line-height: 18px; color: var(--ink);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
@media (min-width: 640px) { .page_recommend_item_title { font-size: 13px; } }
.page_recommend_item_category { margin-top: 6px; text-align: center; font-size: 12px; line-height: 18px; color: var(--ink-400);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
@media (min-width: 640px) { .page_recommend_item_category { margin-top: 8px; font-size: 14px; line-height: 20px; } }

/* sidebar top-download list */
.side-panel { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card);
  border-radius: var(--radius); padding: 1rem; }
@media (min-width: 640px) { .side-panel { padding: 1.25rem; } }
.side-list { list-style: none; display: flex; flex-direction: column; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 12px; }
.side-list a:hover { background: var(--bg); text-decoration: none; }
.side-list .rank { width: 20px; text-align: center; font-weight: 700; color: var(--ink-400); font-size: 14px; flex: none; }
.side-list .app-icon { width: 44px; height: 44px; border-radius: 11px; font-size: 1.1rem; }
.side-list .t { min-width: 0; }
.side-list .t b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 20px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-list .t span { font-size: 12px; color: var(--ink-400); }

/* version page download buttons */
.version_download_list { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }
@media (min-width: 640px) { .version_download_list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; } }
.version_download_item { display: flex; height: 44px; align-items: center; justify-content: center; gap: 12px;
  border-radius: 24px; padding: 0 16px; font-size: 16px; font-weight: 500; line-height: 26px; transition: all .2s; }
@media (min-width: 640px) { .version_download_item { font-size: 18px; } }
.version_download_item.is-disabled { background: rgba(241,245,249,.6); color: var(--ink-400); cursor: not-allowed; }
.version_download_item.is-play { background: var(--emerald); color: #fff; cursor: pointer; }
.version_download_item.is-play:hover { background: var(--emerald-hover); transform: translateY(-1px); text-decoration: none; }
.version_download_item.is-apk { background: var(--accent); color: #fff; cursor: pointer; }
@media (min-width: 640px) { .version_download_item.is-apk { grid-column: span 2; } }
.version_download_item.is-apk:hover { background: var(--accent-hover); transform: translateY(-1px); text-decoration: none; }
.version_download_tip { margin-top: 16px; text-align: center; }
.version_download_tip.hidden { display: none; }
.version_download_tip_status { font-size: 14px; color: var(--ink-soft); }
.version_download_tip_hint { margin-top: 4px; font-size: 12px; color: var(--ink-400); }

/* pros/cons inside assessment panel */
.pros-cons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 8px; }
@media (max-width: 640px) { .pros-cons { grid-template-columns: 1fr; } }
.pc-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: rgba(248,250,252,.5); }
.pc-box h3 { margin: 0 0 10px; font-size: 0.86rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pc-box.pros h3 { color: var(--good); }
.pc-box.cons h3 { color: var(--bad); }
.pc-box ul { margin: 0 0 0 18px; }
.pc-box li { margin: 7px 0; font-size: 0.92rem; color: #334155; }

.faq-item { border: 1px solid var(--line); border-radius: 12px; background: rgba(248,250,252,.5); padding: 14px 16px; margin: 10px 0; }
.faq-item h3 { margin: 0 0 6px !important; font-size: 1rem; }
.faq-item p { margin: 0 !important; color: var(--ink-soft); font-size: 0.94rem; }

.verdict-box { border: 1px solid #bfdbfe; border-radius: 12px; padding: 16px 18px; margin-top: 4px; background: var(--accent-soft); }
.verdict-box .k { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent-ink); margin-bottom: 8px; }
.verdict-box p { margin: 0 !important; }

/* ---------------------------------------------------------------- blog / pages */
.post-meta { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 24px; }
.post-list { display: grid; gap: 14px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-card); }
.post-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.08); text-decoration: none; }
.post-card h3 { color: var(--ink); font-size: 1.08rem; margin-bottom: 6px; font-weight: 600; }
.post-card p { color: var(--ink-soft); font-size: 0.92rem; }
.post-card .date { font-size: 0.78rem; color: var(--ink-400); margin-top: 10px; display: block; }
.sources { border-top: 1px solid var(--line-strong); margin-top: 32px; padding-top: 16px; font-size: 0.9rem; }
.sources h2 { font-size: 1rem; margin: 0 0 8px; }

article h2 { font-size: 1.35rem; letter-spacing: -0.02em; margin: 32px 0 12px; font-weight: 600; }
article h3 { font-size: 1.06rem; margin: 22px 0 8px; }
article p { margin: 12px 0; }
article ul { margin: 12px 0 12px 22px; }
article li { margin: 6px 0; }

.search-box { width: 100%; padding: 12px 16px; font-size: 1rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); margin: 8px 0 20px; }
.search-box:focus { outline: none; border-color: var(--accent); }

/* ---------------------------------------------------------------- footer */
.site-foot { border-top: 1px solid var(--line-strong); margin-top: 60px; padding: 36px 0 44px; background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; } }
.site-foot h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); margin-bottom: 10px; }
.site-foot ul { list-style: none; }
.site-foot li { margin: 6px 0; }
.site-foot a { color: var(--ink-soft); font-size: 0.9rem; }
.site-foot a:hover { color: var(--accent); }
.foot-about { color: var(--ink-soft); font-size: 0.9rem; max-width: 380px; }
.foot-legal { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; color: var(--ink-400); }

.muted { color: var(--ink-soft); }
.small { font-size: 0.85rem; }

/* ---------------------------------------------------------------- homepage (yourapk parity) */
.home-wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .home-wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .home-wrap { padding: 0 32px; } }
.home-sec { padding: 56px 0; }
@media (min-width: 640px) { .home-sec { padding: 64px 0; } }
.bg-soft { background: var(--bg); }
.home-sec:not(.bg-soft):not(.bg-tint):not(.cta-dark) { background: var(--surface); }
.bg-tint { background: linear-gradient(90deg, #eff6ff, #f5f3ff); }
.hs-title { letter-spacing: -0.025em; color: var(--ink); font-size: 1.875rem; font-weight: 700; line-height: 1.25; }
@media (min-width: 640px) { .hs-title { font-size: 2.25rem; } }
.hs-sub { color: #64748b; margin-top: 12px; font-size: 1rem; max-width: 640px; }
@media (min-width: 640px) { .hs-sub { font-size: 1.125rem; } }
.home-sec [style*="text-align:center"] .hs-sub { margin-left: auto; margin-right: auto; }

/* hero */
.hero-section { color: #fff; background-image: linear-gradient(90deg, #3b82f6, #4f46e5);
  position: relative; overflow: hidden; padding: 56px 0; }
@media (min-width: 640px) { .hero-section { padding: 80px 0; } }
@media (min-width: 1024px) { .hero-section { padding: 96px 0; } }
.hero-grid { display: grid; align-items: center; gap: 40px; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 460px; gap: 48px; } }
.hero-section h1 { font-size: 2.25rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
@media (min-width: 640px) { .hero-section h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .hero-section h1 { font-size: 3.75rem; } }
.hero-sub { margin-top: 18px; font-size: 1rem; line-height: 1.75; color: rgba(255,255,255,.85); max-width: 560px; }
@media (min-width: 640px) { .hero-sub { font-size: 1.125rem; } }
@media (min-width: 1024px) { .hero-sub { font-size: 1.25rem; } }
.hero-btns { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 640px) { .hero-btns { flex-direction: row; gap: 16px; } }
.hero-btn-primary { display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  background: #fff; color: #2563eb; border-radius: 999px; padding: 12px 28px; font-weight: 700;
  font-size: 1rem; box-shadow: var(--shadow-card); transition: all .2s; }
.hero-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(15,23,42,.12); text-decoration: none; }
.hero-btn-outline { display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: #fff; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 12px 28px;
  font-weight: 700; font-size: 1rem; backdrop-filter: blur(4px); transition: all .2s; }
.hero-btn-outline:hover { transform: translateY(-2px); background: rgba(255,255,255,.2); text-decoration: none; }
.hero-panel { border-radius: 24px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  padding: 20px; backdrop-filter: blur(20px); box-shadow: 0 10px 40px rgba(15,23,42,.2); }
@media (min-width: 640px) { .hero-panel { padding: 24px; } }
.hero-panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .hero-panel-grid { gap: 12px; } }
.hero-app-card { min-width: 0; text-align: center; padding: 12px; border-radius: 16px; backdrop-filter: blur(12px);
  transition: all .2s; cursor: pointer; }
.hero-app-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.25); text-decoration: none; }
.hero-app-icon { display: block; width: 48px; height: 48px; margin: 0 auto 8px; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(15,23,42,.25); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.3rem; }
.hero-app-card h3 { font-size: 0.75rem; font-weight: 600; color: #fff; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .hero-app-card h3 { font-size: 0.85rem; } }

/* editorial spotlights */
.spotlight-grid { margin-top: 40px; display: grid; gap: 24px; }
@media (min-width: 1024px) { .spotlight-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.spotlight-big { position: relative; display: block; min-height: 280px; border-radius: 24px; padding: 24px;
  color: #fff; overflow: hidden; transition: transform .2s; }
@media (min-width: 640px) { .spotlight-big { min-height: 360px; padding: 40px; } }
.spotlight-big:hover { transform: translateY(-3px); text-decoration: none; }
.spotlight-minis { display: grid; gap: 16px; }
@media (min-width: 640px) { .spotlight-minis { gap: 20px; } }
.spotlight-mini { position: relative; display: block; min-height: 92px; border-radius: 20px; padding: 20px;
  color: #fff; overflow: hidden; transition: transform .2s; }
@media (min-width: 640px) { .spotlight-mini { min-height: 104px; padding: 24px; } }
.spotlight-mini:hover { transform: translateY(-3px); text-decoration: none; }
.sg-a { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.sg-b { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.sg-c { background: linear-gradient(135deg, #0f766e, #0891b2); }
.sg-d { background: linear-gradient(135deg, #9d174d, #db2777); }
.sp-eyebrow { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4em;
  color: rgba(255,255,255,.75); }
.spotlight-big h3 { margin-top: 20px; font-size: 1.5rem; font-weight: 700; line-height: 1.2; max-width: 560px; }
@media (min-width: 640px) { .spotlight-big h3 { margin-top: 28px; font-size: 2rem; } }
.spotlight-mini h3 { margin-top: 10px; font-size: 1.02rem; font-weight: 700; line-height: 1.35; }
.sp-teaser { margin-top: 14px; font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,.85); max-width: 540px;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.sp-more { display: inline-block; margin-top: 22px; font-size: 0.9rem; font-weight: 700; color: #fff; }

/* home app cards */
.hac-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 768px) { .hac-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .hac-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.home-app-card { min-width: 0; position: relative; display: block; border: 1px solid var(--line); background: var(--surface);
  border-radius: 16px; padding: 16px; box-shadow: var(--shadow-card); transition: all .2s; overflow: hidden; }
@media (min-width: 640px) { .home-app-card { padding: 24px; } }
.home-app-card:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(15,23,42,.08),
  0 2px 4px rgba(15,23,42,.06); text-decoration: none; }
.hac-row { display: flex; gap: 14px; }
.hac-icon { width: 56px; height: 56px; border-radius: 16px; flex: none; box-shadow: 0 3px 8px rgba(15,23,42,.12);
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 1.5rem; overflow: hidden; }
@media (min-width: 640px) { .hac-icon { width: 64px; height: 64px; } }
.hac-body { min-width: 0; flex: 1; }
.hac-body h3 { font-size: 1.125rem; font-weight: 600; color: var(--ink); line-height: 1.55;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.hac-cat { margin-top: 4px; font-size: 0.875rem; font-weight: 500; color: #64748b; }
.hac-stat { margin-top: 4px; font-size: 0.875rem; font-weight: 500; color: var(--ink-400); }
.hac-teaser { margin-top: 14px; font-size: 0.875rem; line-height: 1.6; color: #475569;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.home-app-card.is-ranked .hac-body h3, .home-app-card.is-ranked .hac-cat { padding-right: 48px; }
.rank-card-number { position: absolute; top: 14px; right: 18px; font-size: 1.5rem; font-weight: 800;
  color: #dbeafe; line-height: 1; }
@media (min-width: 640px) { .rank-card-number { font-size: 1.9rem; } }

/* compact ranking rows */
.rank-grid { margin-top: 36px; display: grid; grid-template-columns: 1fr; gap: 8px 24px; }
@media (min-width: 640px) { .rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .rank-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rank-row { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; transition: background .15s; }
.rank-row:hover { background: var(--bg); text-decoration: none; }
.rr-num { width: 26px; text-align: center; font-weight: 800; color: var(--ink-400); font-size: 0.95rem; flex: none; }
.rank-row:nth-child(-n+3) .rr-num { color: var(--accent); }
.rr-icon { width: 44px; height: 44px; border-radius: 11px; flex: none; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.rr-t { min-width: 0; }
.rr-t b { display: block; font-size: 0.92rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rr-t span { font-size: 0.78rem; color: var(--ink-400); }

/* dark CTA */
.cta-dark { background: #0f172a; color: #fff; }
.cta-dark .hs-title { color: #fff; }
.cta-dark .hs-sub { color: #cbd5e1; margin-left: auto; margin-right: auto; }
.last-app-card { display: block; max-width: 768px; margin: 36px auto 0; border-radius: 24px; padding: 24px;
  background: linear-gradient(135deg, #db2777, #7c3aed); text-align: left; transition: transform .2s;
  box-shadow: 0 16px 48px rgba(124,58,237,.35); }
@media (min-width: 768px) { .last-app-card { padding: 32px; } }
.last-app-card:hover { transform: translateY(-3px); text-decoration: none; }
.lac-row { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
@media (min-width: 768px) { .lac-row { flex-direction: row; gap: 28px; text-align: left; } }
.lac-icon { width: 80px; height: 80px; border-radius: 22px; flex: none; overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.3); display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 2rem; }
@media (min-width: 640px) { .lac-icon { width: 96px; height: 96px; } }
.lac-body { flex: 1; color: #fff; }
.lac-body h3 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 768px) { .lac-body h3 { font-size: 1.9rem; } }
.lac-cat { margin-top: 6px; font-size: 0.95rem; color: #fbcfe8; }
.lac-stat { margin-top: 10px; font-size: 0.98rem; font-weight: 600; color: #fce7f3; }
.lac-star { color: #fde047; }
.lac-teaser { margin-top: 10px; font-size: 0.9rem; color: rgba(255,255,255,.85);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lac-btn { flex: none; }

/* category cards */
.category-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 768px) { .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .category-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.category-card { position: relative; display: block; border: 1px solid var(--line); background: var(--surface);
  border-radius: 16px; padding: 18px; box-shadow: var(--shadow-card); transition: all .2s; }
.category-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(15,23,42,.08); text-decoration: none; }
.cc-arrow { position: absolute; top: 14px; right: 16px; color: var(--ink-400); font-weight: 700;
  transition: all .2s; }
.category-card:hover .cc-arrow { color: var(--accent); transform: translateX(3px); }
.cc-icon { display: flex; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft);
  color: var(--accent); align-items: center; justify-content: center; }
.cc-icon svg { width: 22px; height: 22px; }
.category-card h3 { margin-top: 12px; font-size: 0.98rem; font-weight: 600; color: var(--ink); }
.category-card p { margin-top: 2px; font-size: 0.8rem; color: var(--ink-400); }
