:root {
  --page-dark: #171318;
  --page-dark-soft: #201a20;
  --page-dark-line: rgba(255, 255, 255, 0.075);
  --page-light-text: #f7f1f3;
  --page-muted-text: #c8bbc0;
}

body {
  background-color: var(--page-dark);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 18% 8%, rgba(157, 63, 89, 0.18), transparent 30rem),
    radial-gradient(circle at 86% 28%, rgba(91, 72, 126, 0.14), transparent 34rem),
    linear-gradient(180deg, #1b161b 0%, #151216 55%, #191419 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%, 100% 100%;
  background-attachment: fixed;
}

main { min-height: 70vh; }
.directory-browser { padding-top: 40px; }
.directory-sections {
  padding: 8px;
  background: rgba(11, 9, 12, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

/* Controlled category tones */
.category-section,
.site-card {
  --tone: #9d3f59;
  --tone-deep: #762f44;
  --tone-soft: #ead9dd;
}

[data-tone="rose"] {
  --tone: #b14f69;
  --tone-deep: #80384d;
  --tone-soft: #f0dde3;
}
[data-tone="violet"] {
  --tone: #7661a6;
  --tone-deep: #55437d;
  --tone-soft: #e7e1f1;
}
[data-tone="indigo"] {
  --tone: #596d9d;
  --tone-deep: #405175;
  --tone-soft: #dfe5f0;
}
[data-tone="gold"] {
  --tone: #9b7442;
  --tone-deep: #71542f;
  --tone-soft: #eee3d3;
}
[data-tone="teal"] {
  --tone: #4f7f79;
  --tone-deep: #385d58;
  --tone-soft: #dce9e6;
}
[data-tone="amber"] {
  --tone: #a66a45;
  --tone-deep: #764a31;
  --tone-soft: #f0e0d5;
}

.category-section {
  border-color: rgba(41, 31, 36, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}
.category-section:hover {
  border-color: color-mix(in srgb, var(--tone) 52%, #ffffff);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.28);
}
.category-heading {
  position: relative;
  background: linear-gradient(145deg, var(--tone-soft), #f7f2f0 78%);
  border-top: 3px solid var(--tone);
}
.category-heading::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--tone) 38%, transparent), transparent);
}
.category-icon {
  color: var(--tone-deep);
  background: rgba(255, 255, 255, 0.72);
  border-color: color-mix(in srgb, var(--tone) 34%, #ffffff);
}
.category-heading h2 a:hover { color: var(--tone-deep); }

.site-card[data-tone] { position: relative; }
.site-card[data-tone]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--tone);
  opacity: 0;
  transition: opacity .22s ease;
}
.site-card[data-tone]:hover::before { opacity: 1; }
.directory-sections .site-card-compact:hover .site-name-line {
  background: var(--tone-soft);
  box-shadow: none;
}

/* Refined card actions */
.site-direct-link span { display: none; }
.review-mini {
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.58);
  border-color: color-mix(in srgb, var(--tone) 44%, #ffffff);
  color: var(--tone-deep);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    transform .2s cubic-bezier(.2, .72, .3, 1);
}
.review-mini:hover {
  color: #fff;
  background: var(--tone);
  border-color: var(--tone);
  box-shadow: 0 7px 18px color-mix(in srgb, var(--tone) 24%, transparent);
  transform: translateY(-1px);
}
.review-mini:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--tone) 18%, transparent);
  transition-duration: .1s;
}
.directory-sections .site-card-compact .site-name-line {
  grid-template-columns: 30px minmax(0, 1fr) auto;
}
.directory-sections .site-card-compact .review-button {
  min-width: 58px;
  min-height: 29px;
  justify-content: center;
  padding: 3px 10px;
  font-size: .68rem;
}

.see-all-link {
  transition: color .2s ease, background-color .2s ease, padding-left .2s ease;
}
.category-section .see-all-link:hover {
  color: var(--tone-deep);
  background: var(--tone-soft);
  padding-left: 19px;
}

/* Readability over the dark page canvas */
.breadcrumbs,
.breadcrumbs a,
.page-header > p,
.reviews-header p,
.reviews-toolbar > p,
.review-taxonomy .eyebrow {
  color: var(--page-muted-text);
}
.page-header h1,
.reviews-header h1,
.page-shell > .section-heading h2,
.review-visual-page > .section-heading h2 {
  color: var(--page-light-text);
}
.page-header .eyebrow,
.review-visual-page > .section-heading .eyebrow {
  color: #d79aab;
}

/* Visual review page */
.review-visual-page { padding-bottom: 84px; }
.review-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 28px;
  margin: 18px 0 20px;
  color: var(--ink);
  background: linear-gradient(145deg, rgba(250, 247, 245, .98), rgba(237, 228, 228, .98));
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 18px;
  box-shadow: 0 24px 62px rgba(0, 0, 0, .28);
}
.review-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}
.review-favicon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  object-fit: contain;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(63, 42, 50, .11);
}
.review-identity-copy { min-width: 0; }
.review-identity-copy h1 {
  margin: 2px 0 6px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.review-identity-copy > p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}
.review-identity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.review-identity-meta > span:not(.price-chip) {
  padding: 4px 9px;
  color: #5f5358;
  background: rgba(255, 255, 255, .68);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 650;
}
.review-hero-panel .review-visit-button {
  min-width: 190px;
  min-height: 50px;
  flex: 0 0 auto;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(118, 47, 68, .2);
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.review-hero-panel .review-visit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(118, 47, 68, .27);
}
.review-hero-panel .review-visit-button:active {
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(118, 47, 68, .2);
}

.review-screenshot-card {
  overflow: hidden;
  margin: 0;
  background: #0e0c0f;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 18px;
  box-shadow: 0 30px 72px rgba(0, 0, 0, .34);
}
.review-browser-bar {
  display: grid;
  min-height: 48px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 17px;
  color: #bfb2b8;
  background: #221c22;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  font-size: .78rem;
}
.review-browser-dots { display: flex; gap: 6px; }
.review-browser-dots span {
  width: 8px;
  height: 8px;
  background: #65565e;
  border-radius: 50%;
}
.review-browser-domain {
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-screenshot-stage,
.related-shot {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(157, 63, 89, .22), transparent 45%),
    #2a2329;
}
.review-screenshot-stage { aspect-ratio: 16 / 9; }
.review-screenshot-stage img,
.related-shot img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.review-screenshot-placeholder,
.related-shot-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  color: #cbbdc2;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.review-screenshot-card figcaption {
  padding: 10px 16px 12px;
  color: #9f9298;
  background: #171317;
  font-size: .76rem;
}

.review-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 18px;
  margin-top: 20px;
}
.review-overview-card,
.review-cta-card {
  margin: 0;
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .21);
}
.review-overview-card h2 { margin-top: 0; }
.review-overview-card p:last-child { margin-bottom: 0; }
.review-cta-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  color: #eee6e9;
  background: linear-gradient(150deg, #382a31, #271f25);
  border: 1px solid rgba(255, 255, 255, .09);
}
.review-cta-card .eyebrow { color: #d9a1b0; }
.review-cta-card h2 { margin: 0 0 8px; font-size: 1.45rem; }
.review-cta-card p { margin: 0 0 18px; color: #cdbfc4; }
.review-cta-card .button { justify-content: center; min-height: 48px; border-radius: 11px; }

.related-visual-section { margin-top: 42px; }
.related-visual-section .section-heading { margin-bottom: 15px; }
.related-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.related-visual-card {
  overflow: hidden;
  background: #f5f0ee;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, .23);
  transition: transform .22s cubic-bezier(.2, .72, .3, 1), box-shadow .22s ease;
}
.related-visual-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .3);
}
.related-shot { aspect-ratio: 16 / 10; }
.related-visual-name {
  display: block;
  overflow: hidden;
  padding: 13px 14px 14px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Footer legal links */
.site-footer { box-shadow: 0 -20px 50px rgba(0, 0, 0, .18); }
.site-footer nav a { width: fit-content; }
.site-footer nav a:hover { color: #fff; }

@media (max-width: 980px) {
  .review-hero-panel { align-items: flex-start; flex-direction: column; }
  .review-hero-panel .review-visit-button { width: 100%; }
  .review-copy-grid { grid-template-columns: 1fr; }
  .related-visual-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { background-attachment: scroll; }
  .directory-sections { padding: 5px; border-radius: 16px; }
  .review-hero-panel { padding: 20px; border-radius: 15px; }
  .review-identity { align-items: flex-start; }
  .review-favicon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 13px; }
  .review-identity-copy h1 { font-size: 2rem; }
  .review-browser-bar { grid-template-columns: auto minmax(0, 1fr); }
  .review-browser-bar > span:last-child { display: none; }
  .review-screenshot-stage { aspect-ratio: 4 / 3; }
  .related-visual-grid { grid-template-columns: 1fr; }
}
