/* BestPaid umbrella site — shared styles · "BestPaid Light" 2026 redesign
   Light, colorful, premium. Indigo→violet brand + warm coral CTA, soft layered
   shadows, real app icons as the centerpiece. */
:root {
  --bg: #f5f7fc;
  --bg-2: #eaeef8;
  --surface: #ffffff;
  --panel: #ffffff;
  --panel-2: #f7f8fd;
  --surface-2: #f7f8fd;
  --fg: #14172b;
  --muted: #5b6178;
  --dim: #969cb2;
  --body: #3c4258;            /* readable body copy on light */
  /* brand (indigo → violet); kept as --accent too so every legacy accent rule
     reads as the brand colour without a rewrite */
  --brand: #6d5efc;
  --brand-2: #b14bff;
  --accent: #6d5efc;
  --accent-2: #b14bff;
  --accent-glow: rgba(109, 94, 252, 0.10);
  /* warm coral call-to-action pop */
  --cta: #ff6a45;
  --cta-2: #ff8a5c;
  --cta-glow: rgba(255, 106, 69, 0.16);
  --border: #e6e9f4;
  --border-soft: #eef0f8;
  --good: #12b886;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(20, 23, 43, 0.05), 0 1px 3px rgba(20, 23, 43, 0.04);
  --shadow: 0 2px 8px rgba(20, 23, 43, 0.05), 0 18px 44px -18px rgba(20, 23, 43, 0.16);
  --shadow-brand: 0 16px 36px -14px rgba(109, 94, 252, 0.34), 0 4px 12px rgba(20, 23, 43, 0.06);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(48rem 34rem at 6% -8%, rgba(109, 94, 252, 0.12), transparent 60%),
    radial-gradient(44rem 32rem at 98% -2%, rgba(177, 75, 255, 0.10), transparent 58%),
    radial-gradient(42rem 30rem at 70% 112%, rgba(255, 106, 69, 0.07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Inter", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "ss01", "cv11";
  overscroll-behavior-y: contain;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
button { font: inherit; cursor: pointer; }

/* Layout primitives */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--fg); letter-spacing: -0.01em; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 16px;
  box-shadow: 0 4px 12px -2px rgba(109, 94, 252, 0.5);
}
.nav-links { display: flex; gap: 22px; font-size: 14px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--fg); }
@media (max-width: 640px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a.hide-sm { display: none; }
}

/* Hero */
.hero { padding: 64px 0 18px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 760px 380px at 50% -20%, rgba(109, 94, 252, 0.14), transparent 62%);
  pointer-events: none;
}
.hero h1 {
  font: 800 clamp(38px, 6vw, 64px)/1.04 "SF Pro Display", "Inter", sans-serif;
  margin: 0 0 18px; letter-spacing: -0.03em;
  color: var(--fg);
  position: relative;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 55%, var(--cta) 110%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(16px, 2vw, 19px); color: var(--body); max-width: 640px;
  line-height: 1.6; margin: 0 0 28px;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-stats .stat {
  background: var(--surface); border: 1px solid var(--border); padding: 13px 18px;
  border-radius: var(--radius-sm); min-width: 112px; box-shadow: var(--shadow-sm);
}
.hero-stats .stat-n {
  font: 800 23px/1 "SF Pro Display", sans-serif;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 5px; font-weight: 600; }

/* Hero app-icon marquee — the colourful centrepiece */
.icon-marquee {
  position: relative; overflow: hidden; margin: 30px 0 4px; padding: 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.icon-track { display: flex; gap: 18px; width: max-content; animation: icon-scroll 70s linear infinite; }
.icon-marquee:hover .icon-track { animation-play-state: paused; }
.icon-chip {
  width: 64px; height: 64px; border-radius: 16px; flex: 0 0 64px;
  object-fit: cover; background: #fff;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-chip:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-brand); }
@keyframes icon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) { .icon-chip { width: 52px; height: 52px; flex-basis: 52px; border-radius: 13px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 11px;
  font-weight: 650; font-size: 14px;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cta), var(--cta-2));
  color: #fff; box-shadow: 0 10px 22px -8px var(--cta-glow), 0 2px 6px rgba(20, 23, 43, 0.08);
}
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(255, 106, 69, 0.5); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--fg); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--accent-glow); transform: translateY(-1px); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Search & filters */
.search-bar {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 18px; margin: 0 0 18px;
  box-shadow: var(--shadow-sm); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.search-bar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--accent-glow); }
.search-bar input {
  flex: 1; background: transparent; border: 0; outline: 0;
  color: var(--fg); font: inherit; font-size: 15px;
}
.search-bar input::placeholder { color: var(--dim); }
.search-icon { color: var(--brand); font-size: 17px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.chip {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--muted); padding: 7px 15px; border-radius: 999px;
  font-size: 13px; font-weight: 550; transition: all 0.13s ease; box-shadow: var(--shadow-sm);
}
.chip:hover { color: var(--fg); border-color: var(--brand); }
.chip.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; border-color: transparent; font-weight: 650;
  box-shadow: 0 6px 16px -6px rgba(109, 94, 252, 0.55);
}

/* Product grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  color: var(--fg); box-shadow: var(--shadow-sm);
}
.card:hover { border-color: rgba(109, 94, 252, 0.45); transform: translateY(-3px); box-shadow: var(--shadow-brand); }
.card-head { display: flex; align-items: center; gap: 13px; margin-bottom: 2px; }
.card-headings { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 13px; flex: 0 0 48px;
  object-fit: cover; box-shadow: var(--shadow-sm); border: 1px solid var(--border-soft);
}
.card-icon-fallback {
  width: 48px; height: 48px; border-radius: 13px; flex: 0 0 48px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow-sm);
}
.card-name { margin: 0; font: 700 17px/1.2 "SF Pro Display", sans-serif; color: var(--fg); letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; }
.card-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand); background: var(--accent-glow);
  padding: 3px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap; align-self: flex-start;
}
.card-pitch { font-size: 14px; color: var(--body); line-height: 1.55; margin: 0; flex: 1; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 12px; margin-top: 2px; border-top: 1px solid var(--border-soft);
}
.card-price { font-size: 12px; color: var(--muted); }
.card-price b { color: var(--fg); font-weight: 650; }
.card-cta {
  background: transparent; color: var(--brand); border: 0;
  font-size: 13px; font-weight: 700; padding: 0;
}

/* Featured section */
.featured { padding: 46px 0 26px; }
.section-title {
  font: 800 28px/1.2 "SF Pro Display", sans-serif; margin: 0 0 6px; letter-spacing: -0.02em; color: var(--fg);
}
.section-sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.featured-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.featured-card { position: relative; overflow: hidden; }
.featured-card .ribbon {
  position: absolute; top: 15px; right: -32px; transform: rotate(35deg);
  background: linear-gradient(135deg, var(--cta), var(--cta-2)); color: #fff; padding: 4px 38px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: 0 4px 10px -2px rgba(255, 106, 69, 0.5);
}

/* Categories block — colourful tiles */
.cats { padding: 30px 0; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cat-tile {
  --ct: var(--brand);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; text-align: left;
  display: flex; flex-direction: column; gap: 6px;
  color: var(--fg); transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.cat-tile:hover { border-color: color-mix(in srgb, var(--ct) 45%, var(--border)); transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-tile .cat-icon {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 21px; margin-bottom: 4px;
  background: color-mix(in srgb, var(--ct) 15%, #fff);
  color: var(--ct);
}
.cat-tile .cat-name { font-weight: 650; font-size: 14px; color: var(--fg); }
.cat-tile .cat-count { font-size: 12px; color: var(--muted); }
.cat-tile:nth-child(8n+1) { --ct: #6d5efc; }
.cat-tile:nth-child(8n+2) { --ct: #ff6a45; }
.cat-tile:nth-child(8n+3) { --ct: #12b886; }
.cat-tile:nth-child(8n+4) { --ct: #b14bff; }
.cat-tile:nth-child(8n+5) { --ct: #f59e0b; }
.cat-tile:nth-child(8n+6) { --ct: #0ea5e9; }
.cat-tile:nth-child(8n+7) { --ct: #ec4899; }
.cat-tile:nth-child(8n+8) { --ct: #14b8a6; }

/* Footer */
.site-footer {
  margin-top: 80px; padding: 48px 0 60px;
  border-top: 1px solid var(--border); background: var(--bg-2);
}
.foot-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-col h4 { font: 700 13px/1 "SF Pro Display"; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 14px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { color: var(--body); font-size: 14px; }
.foot-col a:hover { color: var(--brand); }
.foot-brand-blurb { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 0; max-width: 340px; }
.foot-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 12px;
}

/* Product detail page */
.product-hero { padding: 46px 0 18px; }
.product-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
@media (max-width: 600px) { .product-head { grid-template-columns: 1fr; } }
.app-icon {
  width: 100px; height: 100px; border-radius: 23px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff;
  font-weight: 900; font-size: 42px; box-shadow: var(--shadow-brand);
  flex-shrink: 0;
}
.product-meta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); box-shadow: var(--shadow-sm); }
.tag.paid { color: var(--brand); border-color: rgba(109, 94, 252, 0.4); background: var(--accent-glow); font-weight: 650; }
.product-name { font: 800 38px/1.1 "SF Pro Display", sans-serif; margin: 0; letter-spacing: -0.02em; color: var(--fg); }
.product-pitch { font-size: 18px; line-height: 1.55; color: var(--body); margin: 12px 0 0; max-width: 640px; }

.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 32px 0; }
.screenshot { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 12px; box-shadow: var(--shadow-sm); }
.screenshot img { border-radius: 10px; }
.screenshot-cap { color: var(--muted); font-size: 12px; margin: 10px 4px 4px; text-align: center; }

.section-pad { padding: 28px 0; }
.panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; margin: 20px 0; box-shadow: var(--shadow-sm);
}
.panel h3 { margin: 0 0 10px; font: 700 18px/1.2 "SF Pro Display"; color: var(--fg); }
.panel p { margin: 0 0 10px; color: var(--body); }
.bullet-list { padding-left: 18px; margin: 8px 0; }
.bullet-list li { margin: 6px 0; color: var(--body); }

/* Pricing cards */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.price-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: rgba(109, 94, 252, 0.5); position: relative; box-shadow: var(--shadow-brand); }
.price-card.featured::before {
  content: "POPULAR"; position: absolute; top: -11px; left: 22px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 4px 12px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
  box-shadow: 0 6px 16px -6px rgba(109, 94, 252, 0.55);
}
.price-tier { font: 700 18px/1 "SF Pro Display"; margin: 0 0 6px; color: var(--fg); }
.price-amount { font: 800 36px/1.1 "SF Pro Display"; margin: 0 0 4px; color: var(--fg); }
.price-amount .per { font-size: 13px; font-weight: 500; color: var(--muted); }
.price-quota { color: var(--body); font-size: 13px; margin: 10px 0; }
.price-quota li { margin: 5px 0; }

/* Legal pages */
.legal-page { max-width: 760px; margin: 0 auto; padding: 32px 22px 80px; }
.legal-page h1 { font: 800 32px/1.2 "SF Pro Display"; margin: 0 0 6px; letter-spacing: -0.02em; color: var(--fg); }
.legal-page h2 { font: 700 19px/1.3 "SF Pro Display"; margin: 30px 0 10px; color: var(--brand); }
.legal-page p, .legal-page li { color: var(--body); }
.legal-page small { color: var(--muted); }
.legal-page ul { padding-left: 20px; }

/* Empty / utility */
.muted { color: var(--muted); }
.center { text-align: center; }
.spacer { height: 24px; }
.hidden { display: none !important; }

/* Store badge */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg);
  padding: 11px 17px; border-radius: 11px; font-size: 13px; box-shadow: var(--shadow-sm);
}
.store-badge .sub { color: var(--muted); font-size: 11px; display: block; line-height: 1; }
.store-badge .lg { font-size: 16px; font-weight: 600; line-height: 1.2; display: block; }

/* Live store badge — real, clickable download button */
a.store-badge.live { text-decoration: none; transition: all 0.15s ease; }
a.store-badge.live:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-1px); box-shadow: var(--shadow); }
.store-badge .store-glyph { display: inline-flex; align-items: center; }
.store-badge .store-glyph svg { display: block; }

/* "Now on iOS" hero marker + card live indicators */
.live-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(18, 184, 134, 0.12); border: 1px solid rgba(18, 184, 134, 0.4);
  color: #0b8f63; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 11px; border-radius: 999px; margin-bottom: 12px;
}
.live-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 6px rgba(18, 184, 134, 0.7); margin-right: 6px; vertical-align: middle;
}
.card.is-live .card-price { color: #0b8f63; }
.card.is-live:hover { border-color: rgba(18, 184, 134, 0.5); }

/* Real PNG app icons */
img.app-icon { object-fit: cover; display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .icon-track { flex-wrap: wrap; justify-content: center; width: auto; }
}

/* ===== Blog index + articles ===== */
.blog-index .blog-list { display: grid; gap: 16px; margin-top: 26px; }
.blog-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 24px; text-decoration: none;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
  box-shadow: var(--shadow-sm);
}
.blog-card:hover { border-color: rgba(109, 94, 252, 0.4); transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.blog-cat {
  font: 700 11px/1 "SF Pro Display", Inter, sans-serif; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--brand); background: var(--accent-glow);
  padding: 4px 10px; border-radius: 999px;
}
.blog-date { font-size: 12.5px; color: var(--muted); }
.blog-card-title { font: 800 21px/1.25 "SF Pro Display", Inter, sans-serif; margin: 2px 0 8px; color: var(--fg); letter-spacing: -0.01em; }
.blog-card-desc { color: var(--body); font-size: 14.5px; line-height: 1.55; margin: 0 0 12px; }
.blog-card-more { color: var(--brand); font-weight: 650; font-size: 14px; }

/* Article page */
.article .article-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; font-size: 13px; }
.article .article-meta a { color: var(--brand); text-decoration: none; }
.article .article-meta a:hover { text-decoration: underline; }
.article-lede { font-size: 17px; line-height: 1.65; color: var(--body); margin: 6px 0 28px; max-width: 680px; }
.article-body { font-size: 16px; }
.article-body p { color: var(--body); line-height: 1.75; margin: 0 0 16px; }
.article-body h2 { font: 700 22px/1.3 "SF Pro Display", Inter, sans-serif; margin: 34px 0 12px; color: var(--brand); letter-spacing: -0.01em; }
.article-body h3 { font: 700 18px/1.3 "SF Pro Display", Inter, sans-serif; margin: 26px 0 10px; color: var(--fg); }
.article-body ul { padding-left: 22px; margin: 12px 0 18px; }
.article-body li { color: var(--body); line-height: 1.7; margin: 7px 0; }
.article-body strong { color: var(--fg); font-weight: 700; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--brand-2); }
.article-foot { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; }

/* Related-apps card */
.related-apps {
  margin: 40px 0 8px; padding: 24px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.related-apps h3 { font: 700 16px/1.2 "SF Pro Display", Inter, sans-serif; margin: 0 0 14px; color: var(--fg); }
.ra-grid { display: grid; gap: 10px; }
.ra-item {
  display: flex; gap: 13px; align-items: center; text-decoration: none;
  padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border-soft);
  background: var(--surface-2); transition: border-color .15s ease, transform .15s ease;
}
.ra-item:hover { border-color: var(--brand); transform: translateX(2px); }
.ra-icon { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; flex: 0 0 44px; box-shadow: var(--shadow-sm); }
.ra-text { display: flex; flex-direction: column; min-width: 0; }
.ra-name { font: 700 15px/1.2 "SF Pro Display", Inter, sans-serif; color: var(--fg); }
.ra-pitch { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }

/* ---- App demo video: privacy-friendly lite YouTube embed ---- */
.video-panel { margin-top: 0; }
.lite-yt {
  position: relative; margin-top: 14px;
  aspect-ratio: 16 / 9; width: 100%;
  background: #0d1018; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.lite-yt-btn {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer; display: block;
}
.lite-yt-thumb {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .35s ease, opacity .35s ease;
}
.lite-yt-btn:hover .lite-yt-thumb { transform: scale(1.03); opacity: .9; }
.lite-yt-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; display: grid; place-items: center;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); transition: transform .2s ease;
}
.lite-yt-btn:hover .lite-yt-play { transform: translate(-50%, -50%) scale(1.08); }
.lite-yt-play-bg { fill: #f00; opacity: .92; }
.lite-yt-btn:hover .lite-yt-play-bg { fill: #f00; opacity: 1; }
.lite-yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lite-yt.is-playing { background: #000; }

/* ---- Homepage "App demos" strip ---- */
.video-strip { padding-top: 10px; }
.video-strip-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
.video-card { display: flex; flex-direction: column; gap: 8px; color: var(--fg); }
.video-card-thumb {
  position: relative; display: block; aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border); background: #0d1018; box-shadow: var(--shadow-sm);
}
.video-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.video-card:hover .video-card-thumb { border-color: var(--brand); }
.video-card:hover .video-card-thumb img { transform: scale(1.04); }
.video-card-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 999px;
  background: rgba(13,16,24,.55); color: #fff;
  display: grid; place-items: center; font-size: 16px; padding-left: 3px;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.video-card:hover .video-card-play { background: var(--brand); color: #fff; }
.video-card-name { font-weight: 600; font-size: 14px; }
