:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0284c7;
  --accent-dark: #0369a1;
  --border: #e2e8f0;
  --star: #d97706;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 16px;
  --header: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--text);
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-bar {
  min-height: var(--header);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 750;
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: #e0f2fe;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.page {
  padding: 32px 0 64px;
}

.hero {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.hero h1,
.page-title {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.lede {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 42rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  padding: 4px 4px 4px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search:focus-within {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px #e0f2fe;
}

.search-icon {
  flex: none;
  color: #94a3b8;
}

.search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 36px;
  border: 0;
  padding: 0 4px;
  font: inherit;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text);
}

.search input::placeholder {
  color: #94a3b8;
}

.search .button {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
}

.search-header {
  justify-self: center;
  width: min(100%, 460px);
  margin: 0;
  box-shadow: none;
}

.search-meta {
  margin: 0 0 18px;
}

.search input:focus,
.cta:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.nav-toggle:focus-visible,
.chip:focus-visible,
.card-title a:focus-visible,
.card-media:focus-visible {
  outline: 3px solid #bae6fd;
  outline-offset: 2px;
}

.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.cta:hover {
  background: var(--accent-dark);
  color: #fff;
}

.search input:focus {
  outline: none;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-bottom: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.featured-media {
  display: block;
  min-height: 380px;
  background: linear-gradient(160deg, #e0f2fe, #f8fafc);
}

.featured-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 32px;
}

.featured-body p {
  margin: 0;
}

.featured-label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.featured-label a {
  color: var(--muted);
  text-decoration: none;
}

.featured-label a:hover {
  color: var(--accent-dark);
}

.featured-title {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.featured-title a {
  color: var(--text);
  text-decoration: none;
}

.featured-title a:hover {
  color: var(--accent-dark);
}

.featured-excerpt {
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.featured-link {
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
}

.chip:hover,
.chip[aria-current="page"] {
  background: #e0f2fe;
  border-color: #bae6fd;
  color: var(--accent-dark);
}

.chip small {
  color: var(--muted);
  font-weight: 600;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 100%;
}

.card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #e0f2fe, #f8fafc);
  text-decoration: none;
}

.card-media {
  flex: none;
}

.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.card-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 750;
  color: var(--accent-dark);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 16px 18px;
  flex: 1;
}

.card-title {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--accent-dark);
}

.app-name,
.meta,
.excerpt,
.empty p,
.back-link {
  margin: 0;
  color: var(--muted);
}

.excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.stars {
  color: #cbd5e1;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.stars .on {
  color: var(--star);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.category-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
}

.category-card strong {
  font-size: 1.05rem;
}

.category-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-card:hover {
  border-color: #7dd3fc;
  color: var(--text);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.pager a,
.pager span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
}

.pager .is-disabled {
  color: #94a3b8;
}

.empty {
  padding: 36px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.review-hero-image {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  background: #e0f2fe;
}

.review-copy,
.side-card {
  padding: 22px;
}

.review-body > *:first-child {
  margin-top: 0;
}

.review-body h2,
.review-body h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.review-body img {
  border-radius: 12px;
}

.review-body a {
  font-weight: 650;
}

.video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: var(--radius);
  overflow: hidden;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mobile-cta {
  display: none;
  margin: 4px 0 0;
  gap: 8px;
  flex-wrap: wrap;
}

.review-video {
  margin-top: 22px;
}

.review-side-sticky {
  display: grid;
  gap: 12px;
}

.side-offer {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: #0f172a;
  color: #fff;
  border: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.side-offer .meta {
  color: #94a3b8;
}

.side-offer .price {
  color: #fff;
}

.playstore-cta {
  width: 100%;
  background: #16a34a;
}

.playstore-cta:hover {
  background: #15803d;
  color: #fff;
}

.appstore-cta {
  width: 100%;
  background: #0f172a;
}

.appstore-cta:hover {
  background: #1e293b;
  color: #fff;
}

.side-group {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.side-group-heading {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.side-group-heading a {
  color: var(--text);
  text-decoration: none;
}

.side-group-items,
.side-item {
  display: grid;
  gap: 8px;
}

.side-item {
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.side-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #e2e8f0;
}

.side-item-title {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.side-group-ai {
  background: #f8fafc;
}

.side-group-ai .side-item:first-child {
  grid-template-columns: 1fr;
}

.side-group-ai .side-item:first-child img {
  width: 100%;
  height: 120px;
}

.side-group-education {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.side-group-photography .side-group-items {
  grid-template-columns: 1fr 1fr;
}

.side-group-photography .side-item {
  grid-template-columns: 1fr;
  align-items: start;
}

.side-group-photography .side-item img {
  width: 100%;
  height: 92px;
}

.side-group-photography .side-item-title {
  -webkit-line-clamp: 2;
  font-size: 0.86rem;
}

.side-group-video .side-item img {
  width: 86px;
  height: 54px;
}

.side-group-video .side-item {
  grid-template-columns: 86px minmax(0, 1fr);
}

.side-group-music {
  background: #faf5ff;
  border-color: #e9d5ff;
}

.side-group-music .side-item img {
  border-radius: 50%;
}

@media (min-width: 901px) {
  .review-side {
    position: sticky;
    top: calc(var(--header) + 16px);
    align-self: start;
    max-height: calc(100vh - var(--header) - 32px);
    overflow: auto;
    padding-right: 4px;
  }
}

.price {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 750;
}

.about-card,
.prose-card {
  padding: 22px;
}

.about-card p,
.prose-card p {
  margin: 0 0 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 32px;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .grid,
  .category-grid,
  .review-layout {
    grid-template-columns: 1fr 1fr;
  }

  .review-layout {
    grid-template-columns: 1fr;
  }

  .review-side {
    display: none;
  }

  .mobile-cta {
    display: flex;
  }

  .featured {
    grid-template-columns: 1fr;
  }

  .featured-media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .featured-body {
    padding: 22px;
  }
}

@media (max-width: 720px) {
  .brand span {
    display: none;
  }

  .search-header {
    width: 100%;
    max-width: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--header) - 6px);
    flex-direction: column;
    align-items: stretch;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .page {
    padding-top: 22px;
  }
}
