/* =========================================================
   AppsForMacOS — App Store–style theme
   ========================================================= */
:root {
  --blue: #007AFF;
  --blue-press: #0062CC;
  --label: #1D1D1F;
  --label-2: #6E6E73;
  --label-3: #8E8E93;
  --fill: #F2F2F7;
  --fill-2: rgba(118, 118, 128, .12);
  --sep: rgba(60, 60, 67, .14);
  --sep-strong: #D2D2D7;
  --card: #FFFFFF;
  --bg: #FFFFFF;
  --bg-2: #F5F5F7;
  --radius: 18px;
  --icon-radius: 22.5%;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px -8px rgba(0,0,0,.10);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.05), 0 24px 48px -16px rgba(0,0,0,.18);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Helvetica Neue", Arial, sans-serif;
  --header-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--label);
  font-family: var(--font); font-size: 15px; line-height: 1.47;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
::selection { background: var(--blue); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: var(--fill); color: var(--blue); padding: 1px 5px; border-radius: 5px; }
.w-4 { width: 16px; height: 16px; } .w-5 { width: 20px; height: 20px; } .w-6 { width: 24px; height: 24px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 820px; }
.section { padding: 56px 20px; }
.section-title { font-size: 28px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.shelf-sub { color: var(--label-2); font-size: 14px; margin-top: 4px; }

/* ---------- Header (apps.apple.com style) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--sep); background: rgba(255,255,255,.86); }
.header-inner { max-width: 1200px; margin: 0 auto; height: var(--header-h); padding: 0 20px; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.logo img { width: 32px; height: 32px; border-radius: 8px; object-fit: contain; }
.logo-text { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.logo-text b { font-weight: 800; color: var(--blue); }
.main-nav { display: flex; gap: 4px; }
.main-nav a { font-size: 13.5px; font-weight: 500; color: var(--label-2); padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--label); background: var(--fill); }
.main-nav a.is-active { color: var(--label); font-weight: 600; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--label-3); pointer-events: none; }
.search input {
  width: 210px; height: 34px; padding: 0 12px 0 30px; border: 0; border-radius: 10px;
  background: var(--fill-2); font: inherit; font-size: 14px; color: var(--label); outline: none;
  transition: width .3s var(--ease), box-shadow .2s, background .2s;
}
.search input::placeholder { color: var(--label-3); }
.search input:focus { width: 250px; background: #fff; box-shadow: 0 0 0 3px rgba(0,122,255,.25), inset 0 0 0 1px var(--blue); }
.menu-btn { display: none; width: 36px; height: 36px; border-radius: 10px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--label); border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-btn span:first-child { top: 14px; } .menu-btn span:last-child { top: 21px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, #E5E5EA 1px, transparent 1px), linear-gradient(to bottom, #E5E5EA 1px, transparent 1px);
  background-size: 88px 88px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
          mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label-3); margin-bottom: 10px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.h1-sub { display: block; font-size: clamp(20px, 2.3vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin-top: 12px;
  background: linear-gradient(90deg, #007AFF, #5856D6 55%, #AF52DE); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 17px; color: var(--label-2); max-width: 540px; margin-top: 18px; line-height: 1.55; }
.lead strong { color: var(--label); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-primary, .btn-secondary, .btn-light {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 22px;
  border-radius: 999px; font-size: 15px; font-weight: 600; transition: all .25s var(--ease);
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 20px -8px rgba(0,122,255,.6); }
.btn-primary:hover { background: var(--blue-press); transform: translateY(-1px); }
.btn-secondary { background: var(--fill-2); color: var(--blue); }
.btn-secondary:hover { background: rgba(118,118,128,.2); }
.btn-secondary.full { width: 100%; height: 38px; font-size: 13px; margin-top: 14px; }
.btn-light { background: #fff; color: #000; height: 38px; font-size: 13px; width: 100%; }
.btn-light:hover { background: var(--blue); color: #fff; }

/* App Store info strip */
.info-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 34px; max-width: 540px; }
.info-strip > div { text-align: center; padding: 0 8px; position: relative; }
.info-strip > div + div::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--sep); }
.info-strip dt { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--label-3); }
.info-strip dd { font-size: 21px; font-weight: 700; color: var(--label-2); margin: 3px 0 1px; letter-spacing: -.02em; }
.info-strip dd.apple svg { width: 20px; height: 22px; margin: 2px auto 0; color: var(--label-2); }
.info-strip span { font-size: 11.5px; color: var(--label-3); }

/* Mac App Store window */
.hero-window { position: relative; }
.mac-window { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #D9D9DE; box-shadow: 0 30px 60px -20px rgba(0,0,0,.28), 0 0 0 .5px rgba(0,0,0,.05); transform: rotate(.6deg); transition: transform .6s var(--ease); }
.hero-window:hover .mac-window { transform: rotate(0); }
.mac-bar { height: 38px; display: flex; align-items: center; padding: 0 14px; background: linear-gradient(#FBFBFD, #F1F1F4); border-bottom: 1px solid #E3E3E8; position: relative; }
.dots { display: flex; gap: 7px; } .dots i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.15); }
.dots i:nth-child(2) { background: #FEBC2E; } .dots i:nth-child(3) { background: #28C840; }
.mac-title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 12.5px; font-weight: 600; color: var(--label-2); }
.mac-body { display: grid; grid-template-columns: 132px 1fr; min-height: 340px; }
.mac-side { background: #F5F5F7; border-right: 1px solid #E8E8ED; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.side-search { height: 24px; border-radius: 7px; background: rgba(118,118,128,.12); margin-bottom: 10px; }
.side-item { font-size: 12px; font-weight: 500; color: var(--label-2); padding: 5px 8px; border-radius: 6px; }
.side-item.active { background: rgba(0,122,255,.12); color: var(--blue); font-weight: 600; }
.mac-main { padding: 14px 16px 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.chart-head span { font-size: 12px; font-weight: 500; color: var(--blue); }
.chart-row { display: grid; grid-template-columns: 18px 40px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--sep); }
.chart-row:last-child { border-bottom: 0; }
.chart-num { font-size: 14px; font-weight: 700; color: var(--label); text-align: center; }
.chart-text { display: flex; flex-direction: column; min-width: 0; }
.chart-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-sub { font-size: 11.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.glass-badge {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 16px;
  background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.9); box-shadow: 0 16px 36px -10px rgba(0,0,0,.18);
  font-size: 14px; font-weight: 700; line-height: 1.15;
}
.glass-badge small { display: block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--label-3); }
.gb-icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-size: 16px; }
.gb-icon.g1 { background: linear-gradient(135deg, #FF9500, #FF2D55); }
.gb-icon.g2 { background: linear-gradient(135deg, #34C759, #30B0C7); }
.float-1 { left: -38px; bottom: 44px; animation: float 6s ease-in-out infinite; }
.float-2 { right: 28px; bottom: -22px; animation: float 7s ease-in-out 1s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Icons ---------- */
.app-icon { width: 64px; height: 64px; border-radius: var(--icon-radius); object-fit: cover; background: var(--fill);
  box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); outline: .5px solid rgba(0,0,0,.08); outline-offset: -.5px; flex-shrink: 0; }
.app-icon.sm { width: 48px; height: 48px; }
.app-icon.xs { width: 40px; height: 40px; }
.get-btn.light:hover { background: rgba(255,255,255,.4); }
.cat-icon { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex-shrink: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 4px 10px -4px var(--c1); }
.cat-icon.lg { width: 48px; height: 48px; border-radius: 13px; }

/* ---------- GET button ---------- */
.get-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 74px; height: 28px; padding: 0 14px;
  border-radius: 999px; background: var(--fill-2); color: var(--blue); font-size: 14px; font-weight: 700; letter-spacing: .01em; transition: background .2s, transform .15s; white-space: nowrap; }
.get-btn:hover { background: rgba(118,118,128,.2); }
.get-btn:active { transform: scale(.95); }
.get-btn.sm { min-width: 62px; height: 26px; font-size: 13px; padding: 0 10px; }
.get-btn.xs { min-width: 58px; height: 24px; font-size: 12px; padding: 0 10px; }
.get-btn.light { background: rgba(255,255,255,.25); color: #fff; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.get-wrap { display: flex; flex-direction: column; align-items: center; gap: 3px; flex-shrink: 0; }
.iap { font-size: 9.5px; color: var(--label-3); line-height: 1.1; text-align: center; max-width: 80px; }

/* ---------- Today stories (compact) ---------- */
.stories { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; padding-top: 4px; }
.story { position: relative; display: flex; flex-direction: column; min-height: 196px; padding: 18px 20px; border-radius: 22px; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(110% 120% at 100% 0%, rgba(255,255,255,.30), transparent 55%), linear-gradient(145deg, var(--g1), var(--g2));
  box-shadow: 0 18px 36px -18px var(--g2), 0 2px 6px rgba(0,0,0,.06); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.story::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 22px 22px; -webkit-mask-image: radial-gradient(circle at 85% 30%, #000, transparent 65%); mask-image: radial-gradient(circle at 85% 30%, #000, transparent 65%); }
.story:hover { transform: translateY(-3px); box-shadow: 0 26px 44px -18px var(--g2), 0 2px 6px rgba(0,0,0,.06); }
.story-art { position: absolute; z-index: -1; right: -14px; top: 14px; width: 104px; height: 104px; border-radius: 22.5%;
  transform: rotate(12deg); box-shadow: 0 20px 40px -10px rgba(0,0,0,.35); opacity: .95; transition: transform .6s var(--ease); }
.story:hover .story-art { transform: rotate(6deg) scale(1.05); }
.story.wide .story-art { width: 118px; height: 118px; right: 26px; top: 16px; }
.story-label { display: inline-flex; align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; padding: 4px 8px; border-radius: 6px; background: rgba(255,255,255,.2); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.story-title { display: block; font-size: 28px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 10px; max-width: 65%; }
.story-text { font-size: 13.5px; font-weight: 500; opacity: .9; margin-top: 6px; max-width: 62%; line-height: 1.4; }
.story-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 6px; }
.story-pill { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: rgba(0,0,0,.14); }
.story-foot .get-btn { margin-left: auto; }
.w-3 { width: 12px; height: 12px; }

/* ---------- Categories grid (App Store list style) ---------- */
.shelf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sep); }
.shelf-head.big { margin-bottom: 22px; }
.see-all { display: inline-flex; align-items: center; gap: 1px; color: var(--blue); font-size: 15px; font-weight: 500; white-space: nowrap; }
.chev-s { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.see-all:hover .chev-s { transform: translateX(2px); }
.chart-head span { display: inline-flex; align-items: center; }
.chart-head .chev-s { width: 13px; height: 13px; }
.see-all:hover { text-decoration: underline; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-bottom: 1px solid var(--sep); transition: background .2s; border-radius: 4px; }
.cat-tile:hover .cat-tile-name { color: var(--blue); }
.cat-tile-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.cat-tile-name { font-size: 15px; font-weight: 600; transition: color .2s; }
.cat-tile-sub { font-size: 12.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { width: 16px; height: 16px; color: #C7C7CC; flex-shrink: 0; }

/* ---------- Layout with sidebar ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-top: 8px; }
.content-intro { margin-bottom: 8px; }
.shelf { padding: 30px 0 6px; }
.shelf-title-wrap { display: flex; align-items: center; gap: 12px; }
.shelf-title { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.shelf .shelf-sub { margin-top: 1px; font-size: 13px; }

/* ---------- App card (3 per row, compact) ---------- */
.app-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.app-card { position: relative; overflow: hidden; isolation: isolate;
  background: var(--card); border: 1px solid #E8E8ED; border-radius: 16px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 9px; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.app-card::before { content: ""; position: absolute; z-index: -1; width: 150px; height: 150px; right: -60px; top: -70px; border-radius: 50%;
  background: radial-gradient(circle, var(--c1), transparent 70%); opacity: .10; transition: opacity .35s, transform .5s var(--ease); }
.app-card::after { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 2px; border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2)); opacity: 0; transition: opacity .35s; }
.app-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.app-card:hover::before { opacity: .2; transform: scale(1.15); }
.app-card:hover::after { opacity: 1; }
.lockup { display: flex; align-items: center; gap: 11px; }
.lockup-text { flex: 1; min-width: 0; }
.app-icon { width: 56px; height: 56px; }
.app-name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-name a:hover { color: var(--blue); }
.app-sub { font-size: 12.5px; color: var(--label-2); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dev { font-size: 11px; color: var(--label-3); line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-meta .get-btn { min-width: 62px; height: 26px; font-size: 13px; padding: 0 12px; flex-shrink: 0; }
.app-dev .dot { margin: 0 4px; }
.tag-free, .tag-oss { font-weight: 600; }
.tag-free { color: #248A3D; }
.tag-oss { color: #8944AB; }
.app-desc { font-size: 12.5px; color: var(--label-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.app-meta { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--sep); display: flex; align-items: center; justify-content: space-between; gap: 6px; }

.rating { display: flex; align-items: center; gap: 5px; min-width: 0; }
.rating-value { font-size: 14px; font-weight: 700; color: var(--label); letter-spacing: -.01em; }
.rating-count { font-size: 11px; color: var(--label-3); font-weight: 500; }
.stars {
  --r: 5; display: inline-block; width: 60px; height: 11px; flex-shrink: 0;
  background: linear-gradient(90deg, #FF9F0A calc(var(--r) / 5 * 100%), #E1E1E6 0);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'><path d='M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.6L12 18.5 5.2 22.1l1.3-7.6L1 9.1 8.6 8z'/></svg>") repeat-x left center / 12px 11px;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 24'><path d='M12 1l3.4 7 7.6 1.1-5.5 5.4 1.3 7.6L12 18.5 5.2 22.1l1.3-7.6L1 9.1 8.6 8z'/></svg>") repeat-x left center / 12px 11px;
}
.rating.sm .rating-value { font-size: 12px; }
.rating.sm .stars { width: 50px; height: 9px; -webkit-mask-size: 10px 9px; mask-size: 10px 9px; }
.rating.sm .rating-count { font-size: 10.5px; }
.chips { display: flex; gap: 5px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--fill); color: var(--label-2); font-size: 10.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap; flex-shrink: 0; }
.chip-green { background: rgba(52,199,89,.12); color: #248A3D; }
.chip-blue { background: rgba(0,122,255,.10); color: var(--blue); }
.chip-orange { background: rgba(255,149,0,.12); color: #C93400; }
.chip-purple { background: rgba(175,82,222,.12); color: #8944AB; }

.see-all-tile { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-style: dashed; border-color: #D2D2D7;
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--c1) 10%, transparent), transparent 60%), #FBFBFD; }
.see-all-tile::after { display: none; }
.see-all-tile.span-2 { grid-column: span 2; }
.see-all-tile .cat-icon { background: linear-gradient(135deg, var(--c1), var(--c2)); }
.see-all-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.see-all-title { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.see-all-sub { font-size: 12.5px; color: var(--label-2); }
.see-all-link { display: inline-flex; align-items: center; gap: 1px; color: var(--blue); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.see-all-link svg { width: 15px; height: 15px; }
.see-all-tile.span-1 { flex-direction: column; align-items: flex-start; justify-content: center; }

/* ---------- Sidebar ---------- */
.sidebar { position: sticky; top: calc(var(--header-h) + 14px); display: flex; flex-direction: column; gap: 16px; padding-top: 30px; }
.side-card { background: var(--bg-2); border-radius: var(--radius); padding: 16px; }
.side-title { font-size: 11.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--label-3); margin-bottom: 8px; }
.side-title.big { font-size: 18px; text-transform: none; letter-spacing: -.02em; color: var(--label); margin: 0; line-height: 1.15; }
.side-kicker { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }

.toc-scroll { position: relative; max-height: min(300px, calc(100vh - var(--header-h) - 470px)); min-height: 150px; overflow-y: auto; margin: 0 -6px; padding: 2px 0;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 18px), transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 18px), transparent); }
.toc-scroll::-webkit-scrollbar { display: none; }
.toc-list { position: relative; }
.toc-list a { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; font-size: 13px; color: var(--label-2); transition: background .2s, color .2s; }
.toc-list a:hover { background: rgba(118,118,128,.1); color: var(--label); }
.toc-list a.active { background: #fff; color: var(--blue); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.toc-num { font-size: 10px; font-weight: 700; color: var(--label-3); font-variant-numeric: tabular-nums; width: 18px; }
.toc-list a.active .toc-num { color: var(--blue); }

.editors { background: #fff; border: 1px solid #E8E8ED; padding: 14px 14px 4px; }
.ec-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--sep); }
.ec-head .see-all.sm { margin-left: auto; font-size: 13px; }
.ec-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FF9500, #FF2D55); box-shadow: 0 6px 14px -6px #FF2D55; flex-shrink: 0; }
.ec-badge svg { width: 17px; height: 17px; }
.ec-list { padding-top: 4px; }
.ec-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sep); }
.ec-item > [itemprop="offers"], .app-card > [itemprop="offers"] { display: none; }
.ec-item:last-child { border-bottom: 0; }
.ec-icon { position: relative; }
.ec-rank { position: absolute; left: -5px; top: -5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--label); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.ec-text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ec-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ec-name:hover { color: var(--blue); }
.ec-dev { display: none; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps::before { content: ""; position: absolute; left: 20px; right: 20px; top: 19px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, rgba(0,122,255,.45), rgba(0,122,255,.05)); }
.step { position: relative; }
.step-node { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 16px; margin-bottom: 16px; position: relative;
  background: linear-gradient(135deg, #007AFF, #5AC8FA); box-shadow: 0 6px 16px -4px rgba(0,122,255,.5); transition: transform .3s; }
.step:hover .step-node { transform: scale(1.08); }
.step h3 { font-size: 16px; font-weight: 700; margin: 8px 0 4px; }
.step p { font-size: 13.5px; color: var(--label-2); }
.seo-text { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-2); }
.seo-text p { font-size: 14.5px; color: var(--label-2); line-height: 1.65; }
.seo-text strong { color: var(--label); font-weight: 600; }

/* ---------- Why apps (SEO) ---------- */
.why-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.why-copy p { font-size: 15px; color: var(--label-2); line-height: 1.7; margin-bottom: 14px; }
.why-copy p:last-child { margin-bottom: 0; }
.why-copy strong { color: var(--label); font-weight: 600; }
.why-grid { display: flex; flex-direction: column; gap: 10px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: var(--bg-2); transition: background .3s, transform .3s var(--ease); }
.why-item:hover { background: #EEEEF3; transform: translateX(3px); }
.why-item .safe-icon { margin: 0; flex-shrink: 0; }
.why-item h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 2px; }
.why-item p { font-size: 13px; color: var(--label-2); line-height: 1.5; }

/* ---------- Is it safe ---------- */
.safe-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: start; }
.safe-copy p { font-size: 15px; color: var(--label-2); line-height: 1.65; margin-bottom: 14px; }
.safe-copy strong { color: var(--label); font-weight: 600; }
.safe-copy a { color: var(--blue); font-weight: 500; }
.safe-copy a:hover { text-decoration: underline; }
.safe-checklist { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.safe-checklist li { position: relative; padding-left: 28px; font-size: 14px; font-weight: 500; }
.safe-checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #34C759; }
.safe-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.safe-card { background: #fff; border: 1px solid #E8E8ED; border-radius: 16px; padding: 16px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.safe-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(52,199,89,.3); }
.safe-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 6px 12px -5px var(--c1); margin-bottom: 12px; }
.safe-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.safe-card p { font-size: 13px; color: var(--label-2); line-height: 1.5; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid #E5E5EA; border-radius: 14px; background: #fff; overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.faq-item.is-open { border-color: rgba(0,122,255,.25); box-shadow: 0 4px 16px -4px rgba(0,122,255,.12); }
.faq-btn { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.faq-btn:hover { background: #FAFAFC; }
.faq-q { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.faq-chevron { width: 28px; height: 28px; border-radius: 8px; background: var(--fill); display: grid; place-items: center; flex-shrink: 0; color: var(--label-3); transition: all .3s var(--ease); }
.faq-chevron svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.faq-item.is-open .faq-chevron { background: var(--blue); color: #fff; }
.faq-item.is-open .faq-chevron svg { transform: rotate(180deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-body.open { grid-template-rows: 1fr; }
.faq-body-inner { overflow: hidden; }
.faq-body-inner p { padding: 0 20px 18px; font-size: 14px; line-height: 1.7; color: var(--label-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--sep); padding: 48px 0 24px; margin-top: 40px; font-size: 13px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 2fr .9fr; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--sep-strong); }
.footer-brand p { color: var(--label-2); margin-top: 12px; max-width: 300px; line-height: 1.6; }
.footer-social { display: flex; gap: 8px; margin-top: 18px; }
.footer-social-link { width: 36px; height: 36px; border-radius: 10px; background: #fff; border: 1px solid #E5E5EA; display: grid; place-items: center; color: var(--label-3); transition: all .25s var(--ease); }
.footer-social-link svg { width: 15px; height: 15px; }
.footer-social-link:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-2px); }
.footer-col-title { font-size: 12px; font-weight: 700; color: var(--label); margin-bottom: 10px; }
.footer-col ul { display: flex; flex-direction: column; gap: 7px; }
.footer-cats { display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 7px 20px !important; }
.footer-link { color: var(--label-2); transition: color .2s; }
.footer-link:hover { color: var(--blue); text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; color: var(--label-3); font-size: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-1, .float-2 { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .search input { width: 180px; } .search input:focus { width: 200px; }
  .layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; }
  .app-grid { gap: 12px; }
  .float-1 { left: -10px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-window { max-width: 620px; }
  .stories { grid-template-columns: 1fr 1fr; }
  .story.wide { grid-column: 1 / -1; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; max-height: none; overflow: visible; padding-top: 10px; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .toc-scroll { max-height: 420px; }
  .safe-wrap, .why-wrap { grid-template-columns: 1fr; gap: 22px; }
  .story-art { width: 110px; height: 110px; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) and (min-width: 721px) {
  .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .see-all-tile.span-2, .see-all-tile.span-1 { grid-column: span 2; flex-direction: row; align-items: center; }
}
@media (max-width: 720px) {
  :root { --header-h: 52px; }
  .header-inner { gap: 12px; padding: 0 16px; }
  .header-actions .search { display: none; }
  .menu-btn { display: block; }
  .mobile-menu { display: flex; flex-direction: column; max-height: 0; overflow: hidden; padding: 0 16px; transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .mobile-menu.open { max-height: 460px; padding: 6px 16px 18px; border-top: 1px solid var(--sep); }
  .mobile-menu > a { font-size: 17px; font-weight: 500; padding: 12px 2px; border-bottom: 1px solid var(--sep); }
  .search.mobile { margin: 8px 0 4px; } .search.mobile input, .search.mobile input:focus { width: 100%; height: 38px; }
  .container { padding: 0 16px; }
  .section { padding: 44px 16px; }
  .hero { padding: 28px 0 40px; }
  .lead { font-size: 16px; }
  .info-strip { margin-top: 28px; }
  .info-strip dd { font-size: 18px; }
  .mac-body { grid-template-columns: 1fr; min-height: 0; }
  .mac-side { display: none; }
  .glass-badge { display: none; }
  .stories { grid-template-columns: 1fr; gap: 14px; }
  .story, .story.wide { min-height: 180px; }
  .story.wide .story-art, .story-art { width: 104px; height: 104px; right: -10px; top: 20px; }
  .cat-grid { grid-template-columns: 1fr; }
  .app-grid { grid-template-columns: 1fr; gap: 10px; }
  .see-all-tile.span-2 { grid-column: auto; }
  .see-all-tile.span-1 { flex-direction: row; align-items: center; }
  .safe-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
  .shelf-title { font-size: 20px; }
  .sidebar { grid-template-columns: 1fr; }
  .toc-scroll { max-height: 300px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-cats { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Categories page
   ========================================================= */
.page-hero { position: relative; overflow: hidden; padding: 22px 0 36px; }
.page-hero .hero-grid { -webkit-mask-image: radial-gradient(ellipse at 80% 30%, #000 5%, transparent 65%); mask-image: radial-gradient(ellipse at 80% 30%, #000 5%, transparent 65%); }
.page-hero-inner { position: relative; }
.breadcrumbs { display: flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 500; color: var(--label-3); margin-bottom: 22px; }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .chev-s { width: 12px; height: 12px; color: #C7C7CC; }
.breadcrumbs [aria-current] { color: var(--label-2); }
.page-title { font-size: clamp(38px, 5vw, 60px); font-weight: 800; letter-spacing: -.045em; line-height: 1; }
.page-hero .lead { max-width: 640px; }
.page-hero .info-strip { grid-template-columns: repeat(3, 1fr); max-width: 400px; margin-top: 26px; }

.cat-page-grid { padding-top: 6px; padding-bottom: 20px; }
.cat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid #E8E8ED;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; }
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -22px var(--c2), var(--shadow); border-color: transparent; }
.cat-card-top { position: relative; height: 96px; padding: 16px; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,255,255,.35), transparent 55%), linear-gradient(135deg, var(--c1), var(--c2)); }
.cat-card-top::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(to right, rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 18px 18px; -webkit-mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%); }
.cat-card-mark { position: absolute; right: -14px; bottom: -22px; z-index: -1; color: rgba(255,255,255,.22); transition: transform .6s var(--ease); }
.cat-card-mark .mark { width: 110px; height: 110px; stroke-width: 1.5; }
.cat-card:hover .cat-card-mark { transform: rotate(-8deg) scale(1.08); }
.cat-icon.xl { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 8px 18px -8px rgba(0,0,0,.35); }
.cat-card-go { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(255,255,255,.22); transition: background .3s, transform .3s var(--ease); }
.cat-card-go .chev-s { width: 16px; height: 16px; }
.cat-card:hover .cat-card-go { background: #fff; color: var(--c2); transform: translateX(2px); }
.cat-card-body { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px 14px; flex: 1; }
.cat-card-name { font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; transition: color .2s; }
.cat-card:hover .cat-card-name { color: var(--blue); }
.cat-card-tag { font-size: 13px; color: var(--label-2); line-height: 1.4; }
.cat-card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sep); margin-top: 12px; }
.stack { display: flex; flex-shrink: 0; }
.stack-icon { width: 28px; height: 28px; border-radius: 22.5%; box-shadow: 0 0 0 2px #fff; background: var(--fill); }
.stack-icon + .stack-icon { margin-left: -8px; }
.stack-names { font-size: 11.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

.guide-title { margin: 48px 0 18px; font-size: 24px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.guide-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--sep); }
.guide-item h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 3px; }
.guide-item h3 a:hover { color: var(--blue); }
.guide-item p { font-size: 13.5px; color: var(--label-2); line-height: 1.55; }

@media (max-width: 1100px) { .cat-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px)  { .cat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .guide-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px)  {
  .cat-cards { grid-template-columns: 1fr; gap: 12px; }
  .cat-card { flex-direction: row; }
  .cat-card-top { width: 92px; height: auto; flex-shrink: 0; align-items: center; justify-content: center; padding: 12px; }
  .cat-card-go { display: none; }
  .cat-card-mark .mark { width: 80px; height: 80px; }
  .cat-card-foot { padding-top: 8px; margin-top: 8px; }
}
/* lone last category card → full-width banner */
@media (min-width: 1101px) {
  .cat-card-li:last-child:nth-child(4n+1) { grid-column: 1 / -1; }
  .cat-card-li:last-child:nth-child(4n+1) .cat-card { flex-direction: row; }
  .cat-card-li:last-child:nth-child(4n+1) .cat-card-top { width: 260px; height: auto; flex-shrink: 0; align-items: center; }
  .cat-card-li:last-child:nth-child(4n+1) .cat-card-body { justify-content: center; padding: 18px 22px; }
  .cat-card-li:last-child:nth-child(4n+1) .cat-card-foot { margin-top: 10px; border-top: 0; padding-top: 0; }
}
@media (min-width: 481px) and (max-width: 860px) {
  .cat-card-li:last-child:nth-child(2n+1) { grid-column: 1 / -1; }
}

/* =========================================================
   Single category page
   ========================================================= */
.cat-hero { padding-bottom: 28px; }
.cat-hero-glow { position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--c1), transparent 65%); opacity: .14; }
.cat-hero-row { display: flex; align-items: center; gap: 18px; }
.cat-hero-row .eyebrow { margin-bottom: 4px; }
.cat-icon.hero { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 16px 30px -12px var(--c1); }
.w-7 { width: 32px; height: 32px; }
.cat-hero .page-title { font-size: clamp(32px, 4.4vw, 52px); }
.cat-hero .lead { margin-top: 16px; }

.cat-layout { padding-top: 0; }
.cat-layout .shelf { padding-top: 22px; }
.cat-layout .sidebar { padding-top: 22px; }

/* rank badge on icons */
.icon-link { position: relative; display: block; flex-shrink: 0; }
.rank-badge { position: absolute; left: -6px; top: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--label); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px #fff; }
.app-card.featured .rank-badge, .app-card:first-child .rank-badge { background: linear-gradient(135deg, #FF9500, #FF2D55); }

/* featured (#1) wide card */
.app-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 230px; grid-template-rows: auto 1fr; column-gap: 26px; row-gap: 4px; align-items: center; padding: 18px 20px; }
.app-card.featured::before { width: 320px; height: 320px; right: -80px; top: -150px; opacity: .14; }
.app-card.featured .lockup { grid-column: 1; grid-row: 1 / 3; }
.app-card.featured .app-icon { width: 72px; height: 72px; }
.app-card.featured .app-name { font-size: 18px; }
.top-label { grid-column: 2; grid-row: 1; align-self: end; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #FF6B00; }
.app-card.featured .app-desc { grid-column: 2; grid-row: 2; align-self: start; -webkit-line-clamp: 3; font-size: 13.5px; min-height: 0; }
.app-card.featured .app-meta { grid-column: 3; grid-row: 1 / 3; margin: 0; padding: 0 0 0 22px; border-top: 0; border-left: 1px solid var(--sep); flex-direction: column; align-items: flex-start; gap: 12px; }
.app-card.featured .app-meta .get-btn { width: 100%; height: 32px; }

/* article */
.cat-article { margin-top: 44px; padding-top: 34px; border-top: 1px solid var(--sep); }
.cat-article section + section { margin-top: 30px; }
.cat-article h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.cat-article p { font-size: 15.5px; color: var(--label-2); line-height: 1.75; max-width: 760px; }
.cat-article a { color: var(--blue); font-weight: 500; }
.cat-article a:hover { text-decoration: underline; }
.cat-article b { color: var(--label); font-weight: 600; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.check-list li { position: relative; padding: 12px 14px 12px 42px; background: var(--bg-2); border-radius: 14px; font-size: 14px; line-height: 1.5; color: var(--label); }
.check-list li::before { content: "✓"; position: absolute; left: 13px; top: 12px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #34C759; }
.tip-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(255,149,0,.10), rgba(255,45,85,.06)); border: 1px solid rgba(255,149,0,.22); }
.tip-icon { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #FF9500, #FF2D55); }
.tip-box p { font-size: 14.5px; color: var(--label); line-height: 1.6; }

/* sidebar: other categories */
.oc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.oc-head .side-title { margin: 0; }
.oc-head .see-all.sm { font-size: 13px; }
.oc-list { max-height: 360px; overflow-y: auto; margin: 0 -6px; scrollbar-width: none; }
.oc-list::-webkit-scrollbar { display: none; }
.oc-list a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 9px; font-size: 13.5px; color: var(--label-2); transition: background .2s, color .2s; }
.oc-list a:hover { background: #fff; color: var(--label); box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.cat-icon.sm { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }

@media (max-width: 1100px) {
  .app-card.featured { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .app-card.featured .app-meta { grid-column: 1 / -1; grid-row: 3; flex-direction: row; align-items: center; border-left: 0; padding: 10px 0 0; border-top: 1px solid var(--sep); }
  .app-card.featured .app-meta .get-btn { width: auto; }
}
@media (max-width: 720px) {
  .cat-icon.hero { width: 56px; height: 56px; border-radius: 16px; }
  .w-7 { width: 26px; height: 26px; }
  .app-card.featured { display: flex; flex-direction: column; align-items: stretch; padding: 14px; row-gap: 9px; }
  .app-card.featured .app-icon { width: 56px; height: 56px; }
  .app-card.featured .app-name { font-size: 16px; }
  .top-label { order: -1; align-self: flex-start; }
  .app-card.featured .app-meta { flex-direction: row; justify-content: space-between; align-items: center; padding-top: 9px; }
  .app-card.featured .app-meta .get-btn { width: auto; height: 26px; }
  .check-list { grid-template-columns: 1fr; }
  .cat-article h2 { font-size: 20px; }
  .cat-article p { font-size: 15px; }
}
.tag-paid { font-weight: 600; color: #C93400; }

/* =========================================================
   About / Privacy pages
   ========================================================= */
.static-article { margin-top: 0; padding-top: 22px; border-top: 0; }
.static-article h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 16px 0 4px; }
.static-article section > p + p { margin-top: 12px; }
.static-article .check-list { margin: 12px 0; }
.about-strip { grid-template-columns: repeat(4, 1fr); max-width: none; margin: 0 0 34px; padding: 18px 8px; border-radius: 18px; background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.about-grid .why-item { background: #fff; border: 1px solid #E8E8ED; }
.legal-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.legal-meta .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.contact-text { font-size: 13.5px; color: var(--label-2); line-height: 1.5; }
.contact-card .btn-secondary.full { font-size: 13px; }
@media (max-width: 720px) {
  .about-strip { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .about-strip > div:nth-child(3)::before { display: none; }
  .about-grid { grid-template-columns: 1fr; }
}

/* simple hero for About / Privacy (no background) */
.plain-hero { padding: 26px 0 30px; border-bottom: 1px solid var(--sep); background: none; }
.plain-hero .breadcrumbs { margin-bottom: 20px; }
.plain-hero .cat-hero-row { display: flex; align-items: center; gap: 16px; }
.plain-hero .cat-icon.hero { width: 60px; height: 60px; border-radius: 17px; box-shadow: 0 10px 22px -12px var(--c1); }
.plain-hero .page-title { font-size: clamp(30px, 4vw, 46px); }
.plain-hero .lead { margin-top: 14px; max-width: 640px; }
.static-article { margin: 0; padding: 30px 0 0; border: 0; }
.static-article h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 10px; }
.static-article p { font-size: 15.5px; color: var(--label-2); line-height: 1.75; max-width: 760px; }
.static-article section + section { margin-top: 32px; }
.static-article a { color: var(--blue); font-weight: 500; }
.static-article a:hover { text-decoration: underline; }
.static-article b { color: var(--label); font-weight: 600; }
.plain-hero + .layout .sidebar { padding-top: 30px; }
.plain-hero { border-bottom: 0; padding-bottom: 0; }
.plain-hero .container::after { content: ""; display: block; height: 1px; background: var(--sep); margin-top: 28px; }

/* =========================================================
   App page (App Store product page)
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.app-page { padding-top: 22px; padding-bottom: 20px; }
.app-page .breadcrumbs { margin-bottom: 26px; flex-wrap: wrap; }

/* hero */
.app-hero { position: relative; display: flex; gap: 34px; align-items: center; padding-bottom: 30px; }
.hero-icon { width: 180px; height: 180px; border-radius: 22.5%; box-shadow: 0 24px 50px -22px var(--c2), 0 2px 6px rgba(0,0,0,.06); }
.app-hero-text { min-width: 0; flex: 1; }
.app-title { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.title-tail { color: var(--label-3); font-weight: 700; }
.app-hero-sub { font-size: 18px; color: var(--label-2); margin-top: 8px; line-height: 1.4; max-width: 620px; }
.app-hero-dev { font-size: 15px; margin-top: 8px; color: var(--label-3); }
.app-hero-dev [itemprop=author] { color: var(--blue); font-weight: 500; }
.app-hero-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.app-hero-badges .chip { height: 24px; padding: 0 10px; font-size: 11.5px; }
.app-hero-badges a.chip:hover { background: #E5E5EA; }
.app-hero-cta { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.btn-get-big { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 24px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 15px; font-weight: 700; transition: background .2s, transform .2s, box-shadow .2s; box-shadow: 0 8px 20px -8px rgba(0,122,255,.6); }
.btn-get-big svg { width: 17px; height: 17px; }
.btn-get-big:hover { background: var(--blue-press); transform: translateY(-1px); }
.btn-share { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--fill-2); color: var(--blue); transition: background .2s; position: relative; }
.btn-share svg { width: 18px; height: 18px; }
.btn-share:hover { background: rgba(118,118,128,.2); }
.btn-share.copied::after { content: "Link copied"; position: absolute; top: 46px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 11px; font-weight: 600; background: var(--label); color: #fff; padding: 4px 8px; border-radius: 6px; }
.app-hero-note { font-size: 12px; color: var(--label-3); margin-top: 10px; }

/* info strip */
.app-strip { display: grid; grid-template-columns: repeat(6, 1fr); border-top: 1px solid var(--sep); border-bottom: 1px solid var(--sep); padding: 14px 0; }
.app-strip > div { text-align: center; padding: 2px 8px; position: relative; display: flex; flex-direction: column; align-items: center; }
.app-strip > div + div::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 1px; background: var(--sep); }
.app-strip dt { font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--label-3); white-space: nowrap; }
.app-strip dd { font-size: 21px; font-weight: 700; color: var(--label-2); margin: 3px 0 2px; letter-spacing: -.02em; line-height: 1.2; min-height: 26px; display: flex; align-items: center; }
.app-strip dd.strip-icon svg { width: 22px; height: 22px; color: var(--label-2); }
.app-strip > div > span { font-size: 11.5px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.strip-stars .stars { width: 66px; }

/* sections */
.app-section { padding: 34px 0 6px; }
.app-section + .app-section { border-top: 1px solid var(--sep); margin-top: 28px; }
.app-h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 14px; }
.app-h2-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.app-h2-row .app-h2 { margin: 0; }

.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.feat-card { background: var(--bg-2); border-radius: 16px; padding: 16px; transition: transform .3s var(--ease), background .3s; }
.feat-card:hover { transform: translateY(-3px); background: #EEEEF3; }
.feat-card .safe-icon { width: 36px; height: 36px; margin-bottom: 10px; }
.feat-card h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 4px; }
.feat-card p { font-size: 13px; color: var(--label-2); line-height: 1.5; }

.app-desc-long p { font-size: 15.5px; color: var(--label-2); line-height: 1.75; max-width: 820px; }
.app-desc-long p + p { margin-top: 12px; }
.app-desc-long.clamp { max-height: 9.2em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.more-btn { color: var(--blue); font-size: 15px; font-weight: 500; margin-top: 6px; }
.more-btn:hover { text-decoration: underline; }

/* reviews */
.reviews-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.score-box { display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: 26px; align-items: center; background: var(--bg-2); border-radius: 18px; padding: 20px 22px; }
.score-big { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; }
.score-big span { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--label); }
.score-big small { font-size: 13px; font-weight: 600; color: var(--label-3); margin-top: 4px; }
.hist { display: flex; flex-direction: column; gap: 4px; }
.hist-row { display: flex; align-items: center; gap: 8px; }
.hist-label { font-size: 11px; font-weight: 600; color: var(--label-3); width: 10px; text-align: right; }
.hist-label::after { content: "★"; font-size: 9px; margin-left: 1px; }
.hist-bar { flex: 1; height: 4px; border-radius: 3px; background: #E3E3E8; overflow: hidden; }
.hist-bar i { display: block; height: 100%; border-radius: 3px; background: var(--label-2); transition: width .8s var(--ease); }
.score-count { font-size: 12.5px; color: var(--label-3); text-align: right; margin-top: 8px; }
.score-count span { font-weight: 600; }

.rate-box { border: 1px solid #E5E5EA; border-radius: 18px; padding: 20px 22px; display: flex; flex-direction: column; align-items: flex-start; }
.rate-title { font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.rate-sub { font-size: 13px; color: var(--label-2); margin-top: 2px; }
.star-input { border: 0; margin: 12px 0 2px; padding: 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.star-input label { cursor: pointer; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; transition: transform .15s var(--ease), background .2s; }
.star-input label svg { width: 30px; height: 30px; fill: #E1E1E6; transition: fill .15s; }
.star-input label:hover { transform: scale(1.12); }
.star-input label:hover svg, .star-input label:hover ~ label svg,
.star-input input:checked ~ label svg { fill: #FF9F0A; }
.star-input:hover input:checked ~ label svg { fill: #E1E1E6; }
.star-input:hover label:hover svg, .star-input:hover label:hover ~ label svg { fill: #FF9F0A; }
.star-input input:focus-visible + label { box-shadow: 0 0 0 3px rgba(0,122,255,.35); }
.rate-box.is-done .star-input label { cursor: default; }
.rate-box.is-done .star-input label:hover { transform: none; }
.rate-hint { font-size: 12.5px; color: var(--label-3); min-height: 18px; margin-bottom: 12px; }
.btn-primary.sm { height: 36px; padding: 0 18px; font-size: 14px; }
.btn-primary:disabled { background: #C7C7CC; box-shadow: none; cursor: not-allowed; transform: none; }
.form-msg { font-size: 13px; color: var(--label-2); margin-top: 8px; min-height: 18px; }
.form-msg.ok { color: #248A3D; } .form-msg.err { color: #D70015; }

/* how-to */
.howto-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.howto-step { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border: 1px solid #E8E8ED; border-radius: 16px; }
.howto-step .step-node { width: 34px; height: 34px; font-size: 14px; margin: 0; flex-shrink: 0; }
.howto-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.howto-step p { font-size: 13.5px; color: var(--label-2); line-height: 1.5; }

.install-box { background: var(--bg-2); border-radius: 18px; padding: 18px 22px; }
.install-steps { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.install-steps li { font-size: 14.5px; color: var(--label-2); line-height: 1.6; padding-left: 4px; }
.install-steps li::marker { color: var(--blue); font-weight: 700; }
.install-steps b { color: var(--label); }
.install-steps a, .info-table a { color: var(--blue); }
.install-steps a:hover, .info-table a:hover { text-decoration: underline; }

/* information table */
.info-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.info-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--sep); font-size: 14px; }
.info-table dt { color: var(--label-3); }
.info-table dd { color: var(--label); text-align: right; font-weight: 500; }

/* related apps (horizontal shelf) */
.rel-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 5 * 12px) / 6); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: #D1D1D6 transparent; }
.rel-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 16px; border: 1px solid #E8E8ED; transition: transform .3s var(--ease), box-shadow .3s; min-width: 0; }
.rel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.rel-card .app-icon { width: 64px; height: 64px; margin-bottom: 8px; }
.rel-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-sub { font-size: 12px; color: var(--label-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.rel-rate { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--label-2); }
.rel-rate svg { width: 12px; height: 12px; fill: #FF9F0A; }

/* comments */
.comment-count { font-size: 13px; color: var(--label-3); }
.comments-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.comment-form { background: var(--bg-2); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--label-2); }
.field small { font-weight: 500; color: var(--label-3); }
.field input, .field textarea { font: inherit; font-size: 14.5px; color: var(--label); background: #fff; border: 1px solid #E0E0E5; border-radius: 12px; padding: 10px 12px; outline: none; transition: border-color .2s, box-shadow .2s; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,.18); }
.form-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.form-note { font-size: 11.5px; color: var(--label-3); line-height: 1.5; }
.form-note a { color: var(--blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-list { display: flex; flex-direction: column; gap: 10px; }
.comment-empty { font-size: 14px; color: var(--label-3); padding: 18px; border: 1px dashed #D2D2D7; border-radius: 16px; text-align: center; }
.comment { display: flex; gap: 12px; padding: 14px; border: 1px solid #E8E8ED; border-radius: 16px; }
.comment-av { width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, #007AFF, #5856D6); }
.comment-head { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.comment-head time { font-size: 12px; color: var(--label-3); }
.comment-text { font-size: 14px; color: var(--label-2); line-height: 1.6; margin-top: 3px; white-space: pre-line; overflow-wrap: anywhere; }

/* sticky mini bar */
.mini-bar { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 40; background: rgba(255,255,255,.86); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--sep); transform: translateY(-110%); opacity: 0; transition: transform .35s var(--ease), opacity .35s; pointer-events: none; }
.mini-bar.show { transform: none; opacity: 1; pointer-events: auto; }
.mini-inner { display: flex; align-items: center; gap: 10px; height: 52px; }
.mini-inner .app-icon { width: 32px; height: 32px; }
.mini-name { font-size: 15px; font-weight: 700; }
.mini-sub { font-size: 13px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.get-btn.blue { margin-left: auto; background: var(--blue); color: #fff; }
.get-btn.blue:hover { background: var(--blue-press); }
.app-page-body .site-header.scrolled { border-bottom-color: transparent; }

@media (max-width: 1100px) {
  .rel-scroll { grid-auto-columns: calc((100% - 3 * 12px) / 4.3); }
  .app-strip { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .app-strip > div:nth-child(4)::before { display: none; }
}
@media (max-width: 860px) {
  .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reviews-grid, .comments-wrap { grid-template-columns: 1fr; }
  .info-table { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .app-hero { gap: 16px; align-items: flex-start; }
  .hero-icon { width: 108px; height: 108px; }
  .app-title { font-size: 26px; }
  .title-tail { display: block; font-size: 18px; }
  .app-hero-sub { font-size: 15px; }
  .app-hero-cta { margin-top: 14px; }
  .btn-get-big { height: 36px; padding: 0 18px; font-size: 14px; }
  .btn-share { width: 36px; height: 36px; }
  .app-strip { grid-template-columns: repeat(3, 1fr); }
  .app-strip dd { font-size: 18px; }
  .feat-grid, .howto-list { grid-template-columns: 1fr; }
  .rel-scroll { grid-auto-columns: 44%; }
  .score-box { grid-template-columns: 1fr; text-align: left; }
  .score-big { grid-row: auto; flex-direction: row; align-items: baseline; gap: 8px; margin-bottom: 10px; }
  .score-big span { font-size: 48px; }
  .field-row { grid-template-columns: 1fr; }
  .form-foot { flex-direction: column; align-items: stretch; }
  .mini-sub { display: none; }
}
.btn-primary.sm { white-space: nowrap; }
@media (max-width: 720px) {
  .feat-card { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; padding: 14px; }
  .feat-card .safe-icon { grid-row: span 2; margin: 0; }
  .feat-card h3 { margin: 0 0 2px; align-self: end; }
}

/* review cards (matches "What users are saying" layout) */
.reviews-sub { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin: 26px 0 12px; }
.review-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid #E8E8ED; border-radius: 16px; background: #fff; }
.rc-head { display: flex; gap: 10px; align-items: center; }
.rc-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--av, #007AFF); flex-shrink: 0; }
.rc-name { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.rc-badge { font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #248A3D; border: 1px solid rgba(52,199,89,.5); padding: 1px 5px; border-radius: 4px; }
.rc-date { font-size: 11.5px; color: var(--label-3); font-variant-numeric: tabular-nums; }
.rc-text { font-size: 14px; color: var(--label-2); line-height: 1.6; flex: 1; }
.review-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px dashed #D2D2D7; border-radius: 16px; background: #FBFBFD; }
.review-empty-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,159,10,.12); flex-shrink: 0; }
.review-empty-icon svg { width: 20px; height: 20px; fill: #FF9F0A; }
.review-empty p { font-size: 14px; color: var(--label-2); line-height: 1.5; }
.review-empty a { color: var(--blue); font-weight: 500; }
.comment-side { border: 1px solid #E8E8ED; border-radius: 18px; padding: 18px 20px; }
.cs-title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cs-list { display: flex; flex-direction: column; gap: 8px; }
.cs-list li { position: relative; padding-left: 18px; font-size: 13.5px; color: var(--label-2); line-height: 1.5; }
.cs-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
@media (max-width: 860px) { .review-cards { grid-template-columns: 1fr; } }

/* ---------- User Reviews v2 (summary bar + rate row + cards) ---------- */
.reviews-lead { font-size: 14px; color: var(--label-2); margin: -6px 0 16px; }
.score-bar { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 22px 26px; border: 1px solid #E8E8ED; border-radius: 20px; background: linear-gradient(135deg, #FBFBFD, #F5F5F7); }
.sb-score { display: flex; align-items: center; gap: 12px; padding-right: 36px; border-right: 1px solid var(--sep); }
.sb-num { font-size: 58px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--label); font-variant-numeric: tabular-nums; }
.sb-meta { font-size: 12.5px; color: var(--label-3); line-height: 1.5; font-weight: 500; }
.sb-meta [data-rc] { color: var(--label-2); font-weight: 700; }
.sb-hist { display: flex; flex-direction: column; gap: 6px; }
.sb-hist .hist-row { gap: 10px; }
.sb-hist .hist-label { width: 16px; font-size: 11.5px; }
.sb-hist .hist-bar { height: 6px; border-radius: 4px; background: #E5E5EA; }
.sb-hist .hist-bar i { background: linear-gradient(90deg, #FF9F0A, #FF6B00); border-radius: 4px; }
.hist-pct { width: 34px; text-align: right; font-size: 11.5px; font-weight: 600; color: var(--label-3); font-variant-numeric: tabular-nums; }

.rate-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding: 14px 20px; border: 1px solid #E8E8ED; border-radius: 16px; background: #fff; }
.rr-text { min-width: 160px; }
.rate-row .rate-title { font-size: 15px; }
.rate-row .rate-hint { margin: 0; min-height: 0; }
.rate-row .star-input { margin: 0; }
.rate-row .star-input label { width: 34px; height: 34px; }
.rate-row .star-input label svg { width: 27px; height: 27px; }
.rate-row .btn-primary { margin-left: auto; }
.rate-row .form-msg { flex-basis: 100%; margin: 0; min-height: 0; }
.rate-row .form-msg:empty { display: none; }
.rate-row.is-done .star-input label svg { cursor: default; }

.review-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-card { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 12px; border: 1px solid #E8E8ED; border-radius: 16px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s; }
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.note-card .rc-av { background: var(--av); box-shadow: 0 6px 14px -6px var(--av); }
.rc-name { font-size: 14.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.rc-badge-row { margin-top: 3px; }
.rc-badge { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); border: 1px solid rgba(0,122,255,.35); padding: 1px 6px; border-radius: 4px; }
.rc-text { font-size: 13.5px; color: var(--label-2); line-height: 1.6; flex: 1; }
.rc-foot { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid var(--sep); font-size: 12px; font-weight: 600; color: var(--label-3); }
.rc-foot svg { width: 14px; height: 14px; color: #34C759; }

@media (max-width: 860px) {
  .review-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .score-bar { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .sb-score { border-right: 0; padding-right: 0; }
  .sb-num { font-size: 48px; }
  .rate-row { padding: 14px; gap: 10px; }
  .rate-row .btn-primary { margin-left: 0; width: 100%; }
  .review-cards { grid-template-columns: 1fr; }
}

/* app hero: tighter text block */
.app-title { margin: 0; }
.app-hero-sub { font-size: 15.5px; line-height: 1.45; margin-top: 6px; max-width: 560px; }
.app-hero-dev { font-size: 14px; margin-top: 4px; }
.app-hero-badges { margin-top: 10px; }
.app-hero-cta { margin-top: 14px; }
.app-hero-note { margin-top: 8px; }
button.btn-get-big, button.get-btn { border: 0; cursor: pointer; font-family: inherit; }
.link-btn { color: var(--blue); font: inherit; font-weight: 500; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* is it safe (app page) */
.safe-app { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
.safe-app-copy p { font-size: 15px; color: var(--label-2); line-height: 1.7; }
.safe-app-copy p + p { margin-top: 10px; }
.safe-app .safe-checklist { margin-top: 14px; }
.safe-reports { display: flex; flex-direction: column; gap: 10px; }
.report-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid #E8E8ED; border-radius: 16px; background: #fff; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.report-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: transparent; }
.report-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.report-logo svg { width: 22px; height: 22px; }
.report-logo.vt { background: linear-gradient(135deg, #3B61FF, #0B4DDA); }
.report-logo.gsb { background: linear-gradient(135deg, #34C759, #1E9E4A); }
.report-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.report-name { font-size: 15px; font-weight: 700; }
.report-sub { font-size: 12.5px; color: var(--label-3); }
.report-go { display: inline-flex; align-items: center; color: var(--blue); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .safe-app { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .app-hero-sub { font-size: 14.5px; } }
.app-hero-dev [itemprop=author] { color: var(--label-2); font-weight: 600; }
@media (min-width: 1101px) { .feat-grid.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 861px) and (max-width: 1100px) { .feat-grid.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* =========================================================
   Search: header suggestions
   ========================================================= */
.search { position: relative; }
.sugg { display: none; position: absolute; top: calc(100% + 8px); right: 0; width: 380px; max-height: min(70vh, 520px); overflow-y: auto; z-index: 70;
  background: rgba(255,255,255,.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid #E5E5EA; border-radius: 16px; padding: 6px; box-shadow: 0 24px 48px -16px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.05); }
.sugg.open { display: block; animation: suggIn .18s var(--ease); }
@keyframes suggIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.sg-head { font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--label-3); padding: 8px 10px 4px; }
.sg-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 11px; transition: background .12s; }
.sg-item:hover, .sg-item.active { background: var(--fill); }
.sg-icon { width: 36px; height: 36px; border-radius: 22.5%; object-fit: cover; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08); }
.sg-caticon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.sg-caticon svg { width: 17px; height: 17px; }
.sg-text { display: flex; flex-direction: column; min-width: 0; }
.sg-name { font-size: 14px; font-weight: 600; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-name mark, .search-page mark { background: none; color: var(--blue); }
.sg-sub { font-size: 12px; color: var(--label-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-rate { font-size: 11.5px; font-weight: 600; color: var(--label-3); white-space: nowrap; }
.sg-none { font-size: 13.5px; color: var(--label-3); padding: 12px 10px; }
.sg-all { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 10px; border-top: 1px solid var(--sep); border-radius: 0 0 11px 11px; font-size: 13.5px; font-weight: 600; color: var(--blue); }
.sg-all span { font-size: 11px; font-weight: 700; color: var(--label-3); background: var(--fill); padding: 2px 7px; border-radius: 999px; }
.sg-all:hover, .sg-all.active { background: rgba(0,122,255,.06); }

/* mobile: suggestions inside the menu, in normal flow */
.mobile-menu.open { max-height: 85vh; overflow-y: auto; }
.search.mobile .sugg { position: static; width: 100%; max-height: none; margin-top: 8px; box-shadow: none; animation: none; }
.search.mobile { flex-direction: column; align-items: stretch; }
.search.mobile svg { top: 11px; }
.search.mobile .sugg svg, .search .sugg svg { position: static; }

/* =========================================================
   Search results page
   ========================================================= */
.search-page { padding-top: 34px; padding-bottom: 50px; min-height: 60vh; }
.sp-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; overflow-wrap: anywhere; }
.sp-form { position: relative; display: flex; gap: 10px; align-items: center; margin-top: 18px; max-width: 720px; }
.sp-form svg { position: absolute; left: 14px; width: 18px; height: 18px; color: var(--label-3); pointer-events: none; }
.sp-form input { flex: 1; height: 46px; padding: 0 14px 0 40px; border-radius: 14px; border: 1px solid #E0E0E5; background: var(--bg-2); font: inherit; font-size: 16px; color: var(--label); outline: none; transition: border-color .2s, box-shadow .2s, background .2s; }
.sp-form input:focus { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,122,255,.18); }
.sp-form .btn-primary { height: 46px; padding: 0 22px; border-radius: 14px; }
.sp-meta { font-size: 14px; color: var(--label-3); margin-top: 12px; min-height: 20px; }
.sp-block { margin-top: 26px; }
.sp-h2 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--label-3); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--sep); }
.sp-cats { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 28px; }
.sp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-empty { margin-top: 30px; padding: 26px; border-radius: 18px; background: var(--bg-2); }
.sp-empty-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-chip { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 999px; background: #fff; border: 1px solid #E5E5EA; font-size: 13.5px; font-weight: 500; color: var(--label-2); transition: all .2s; }
.sp-chip:hover { border-color: var(--blue); color: var(--blue); }
.sp-empty-alt { font-size: 13.5px; color: var(--label-3); margin-top: 14px; }
.sp-empty-alt a { color: var(--blue); }
@media (max-width: 860px) { .sp-cats { grid-template-columns: 1fr 1fr; } .sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .sp-cats, .sp-grid { grid-template-columns: 1fr; }
  .sp-form .btn-primary { display: none; }
}

/* ---------- unpublished / empty states ---------- */
.stack-soon { font-size: 11.5px; font-weight: 600; color: var(--label-3); background: var(--fill); padding: 4px 10px; border-radius: 999px; }
.cat-empty { grid-column: 1 / -1; padding: 26px; border-radius: 18px; background: var(--bg-2); border: 1px dashed #D2D2D7; }
.cat-empty-title { font-size: 18px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px; }
.cat-empty p { font-size: 14.5px; color: var(--label-2); line-height: 1.6; }
.cat-empty .sp-chips { margin-top: 14px; }

/* ---------- 404 ---------- */
.nf-page { padding-top: 56px; padding-bottom: 60px; text-align: left; }
.nf-code { font-size: 15px; font-weight: 800; letter-spacing: .12em; color: var(--blue); }
.nf-title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; margin-top: 6px; }
.nf-text { font-size: 17px; color: var(--label-2); max-width: 620px; margin-top: 14px; line-height: 1.55; }
.nf-form { margin-top: 24px; }
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.nf-h2 { margin-top: 44px; }
