/* BestPaid umbrella site — shared styles */
:root {
  --bg: #0b0c10;
  --bg-2: #0f1014;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --panel: #131418;
  --panel-2: #1a1c20;
  --accent: #f97316;
  --accent-2: #fb923c;
  --accent-glow: rgba(249, 115, 22, 0.14);
  --border: #27272a;
  --border-soft: #1f1f23;
  --good: #22c55e;
  --warn: #eab308;
  --danger: #ef4444;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -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;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-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(11,12,16,0.85);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.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: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #0b0c10; font-weight: 900; font-size: 16px;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.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: 70px 0 50px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 800px 400px at 50% -10%, rgba(249,115,22,0.15), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  font: 800 clamp(36px, 5.5vw, 60px)/1.05 "SF Pro Display", "Inter", sans-serif;
  margin: 0 0 18px; letter-spacing: -0.025em;
  background: linear-gradient(180deg, #fafafa 0%, #d4d4d8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 620px;
  line-height: 1.55; margin: 0 0 28px;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-stats .stat {
  background: var(--panel); border: 1px solid var(--border); padding: 12px 16px;
  border-radius: var(--radius-sm); min-width: 110px;
}
.hero-stats .stat-n { font: 800 22px/1 "SF Pro Display", sans-serif; color: var(--fg); }
.hero-stats .stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent; transition: all 0.15s ease;
}
.btn-primary { background: var(--accent); color: #0b0c10; }
.btn-primary:hover { background: var(--accent-2); color: #0b0c10; transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--fg); }
.btn-ghost:hover { background: var(--panel); border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 14px 22px; 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(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; margin: 0 0 18px;
}
.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(--muted); font-size: 16px; }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 24px; }
.chip {
  background: var(--panel); border: 1px solid var(--border);
  color: var(--muted); padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; transition: all 0.12s;
}
.chip:hover { color: var(--fg); border-color: var(--dim); }
.chip.active { background: var(--accent); color: #0b0c10; border-color: var(--accent); font-weight: 600; }

/* Product grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  transition: all 0.18s ease;
  color: var(--fg);
}
.card:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
.card-name { margin: 0; font: 700 17px/1.25 "SF Pro Display", sans-serif; color: var(--fg); letter-spacing: -0.01em; }
.card-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent); background: var(--accent-glow);
  padding: 3px 9px; border-radius: 999px; flex-shrink: 0; white-space: nowrap;
}
.card-pitch { font-size: 14px; color: #d4d4d8; line-height: 1.55; margin: 0; flex: 1; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--border-soft);
}
.card-price { font-size: 12px; color: var(--muted); }
.card-price b { color: var(--fg); font-weight: 600; }
.card-cta {
  background: transparent; color: var(--accent); border: 0;
  font-size: 13px; font-weight: 600; padding: 0;
}

/* Featured section */
.featured { padding: 50px 0 30px; }
.section-title {
  font: 800 28px/1.2 "SF Pro Display", sans-serif; margin: 0 0 6px; letter-spacing: -0.02em;
}
.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: 14px; right: -32px; transform: rotate(35deg);
  background: var(--accent); color: #0b0c10; padding: 4px 36px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
}

/* Categories block */
.cats { padding: 30px 0; }
.cat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.cat-tile {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px; text-align: left;
  display: flex; flex-direction: column; gap: 4px;
  color: var(--fg); transition: all 0.15s;
}
.cat-tile:hover { border-color: var(--accent); background: var(--panel-2); }
.cat-tile .cat-icon { font-size: 24px; margin-bottom: 4px; }
.cat-tile .cat-name { font-weight: 600; font-size: 14px; }
.cat-tile .cat-count { font-size: 12px; color: var(--muted); }

/* Footer */
.site-footer {
  margin-top: 80px; padding: 40px 0 60px;
  border-top: 1px solid var(--border-soft); 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: 8px; }
.foot-col a { color: #d4d4d8; font-size: 14px; }
.foot-col a:hover { color: var(--accent); }
.foot-brand-blurb { color: var(--muted); font-size: 13px; line-height: 1.55; margin: 8px 0 0; max-width: 340px; }
.foot-bottom {
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border-soft);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 12px;
}

/* Product detail page */
.product-hero { padding: 50px 0 20px; }
.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: 96px; height: 96px; border-radius: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #0b0c10;
  font-weight: 900; font-size: 40px; box-shadow: var(--shadow);
  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: 4px 10px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--muted); }
.tag.paid { color: var(--accent); border-color: var(--accent); background: var(--accent-glow); font-weight: 600; }
.product-name { font: 800 38px/1.1 "SF Pro Display", sans-serif; margin: 0; letter-spacing: -0.02em; }
.product-pitch { font-size: 18px; line-height: 1.5; color: var(--muted); 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(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding: 12px; }
.screenshot img { border-radius: 8px; }
.screenshot-cap { color: var(--muted); font-size: 12px; margin: 10px 4px 4px; text-align: center; }

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

/* Pricing cards */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 24px 0; }
.price-card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.price-card.featured { border-color: var(--accent); position: relative; }
.price-card.featured::before {
  content: "POPULAR"; position: absolute; top: -10px; left: 22px;
  background: var(--accent); color: #0b0c10; padding: 3px 10px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
}
.price-tier { font: 700 18px/1 "SF Pro Display"; margin: 0 0 6px; }
.price-amount { font: 800 36px/1.1 "SF Pro Display"; margin: 0 0 4px; }
.price-amount .per { font-size: 13px; font-weight: 500; color: var(--muted); }
.price-quota { color: var(--muted); 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; }
.legal-page h2 { font: 700 19px/1.3 "SF Pro Display"; margin: 30px 0 10px; color: var(--accent-2); }
.legal-page p, .legal-page li { color: #d4d4d8; }
.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; }

/* App Store badge placeholder */
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--border); color: var(--fg);
  padding: 10px 16px; border-radius: 10px; font-size: 13px;
}
.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; }

/* Print and prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* img.app-icon: real PNG icons replace the letter divs */
img.app-icon { object-fit: cover; }

/* Free vs Premium tier comparison */
.panel-tiers .tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.tier-col h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-2, #8896a8);
}
.tier-col.tier-prem h4 {
  color: var(--brand, #ec4899);
}
.tier-col ul.bullet-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.tier-col ul.bullet-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}
.tier-col ul.bullet-list li::before {
  content: "·";
  position: absolute;
  left: 8px;
  top: -2px;
  font-size: 20px;
  color: var(--text-2, #8896a8);
}
.tier-col.tier-prem ul.bullet-list li::before {
  content: "★";
  color: var(--brand, #ec4899);
  font-size: 12px;
  top: 2px;
}
@media (max-width: 600px) {
  .panel-tiers .tiers-grid { grid-template-columns: 1fr; gap: 12px; }
}
