
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --fg: #1e0b2e;
  --bg: #fff;
  --muted: #f1ede9;
  --muted-fg: #645578;
  --primary: #a855f7;
  --secondary: #ec4899;
  --accent: #f9a8d4;
  --border: #e2d6f0;
  --cta: #ee6dfd;
  --cta-hover: #d376fb;
  --highlight: #fd769d;
  --dark-bg: #0f0821;
  --brand-pink: #c42d60;
  --radius: 1rem;
  --pos: #16a34a;
  --pos-bg: #f0fdf4;
  --neg: #dc2626;
  --neg-bg: #fef2f2;
  --gradient: linear-gradient(135deg, #fd769d 0%, #d376fb 50%, #af55f3 100%);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--fg);
  background: linear-gradient(180deg, #fff7fb 0%, #fff 320px);
  line-height: 1.55;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.brand__logo {
  height: 28px;
  width: auto;
  flex-shrink: 0;
}

.brand__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-pink);
  text-transform: lowercase;
  white-space: nowrap;
}

.header-cta {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-cta:hover {
  border-color: var(--primary);
  text-decoration: none;
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 2.75rem 0 2rem;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary);
  background: var(--pos-bg);
  background: #fdf2f8;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 1.85rem;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  font-weight: 800;
}

.hero p {
  color: var(--muted-fg);
  font-size: 1.02rem;
  max-width: 620px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.4rem;
  }
}

/* Search */
.search {
  max-width: 560px;
  margin: 1.75rem auto 0;
  position: relative;
}

.search__input {
  width: 100%;
  font-size: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 8px 24px -12px rgba(168, 85, 247, 0.35);
}

.search__input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.search__hint {
  font-size: 0.82rem;
  color: var(--muted-fg);
  margin-top: 0.6rem;
}

.search__results {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px -16px rgba(30, 11, 46, 0.25);
  overflow: hidden;
  z-index: 30;
  text-align: left;
  display: none;
}

.search__results.is-open {
  display: block;
}

.search__result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
}

.search__result:last-child {
  border-bottom: none;
}

.search__result:hover,
.search__result.is-active {
  background: var(--muted);
}

.search__result-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
}

.search__result-meta {
  font-size: 0.8rem;
  color: var(--muted-fg);
}

.search__result-rating {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-pink);
  flex-shrink: 0;
}

.search__empty,
.search__loading {
  padding: 0.9rem 1rem;
  font-size: 0.88rem;
  color: var(--muted-fg);
}

/* Sections */
.section {
  padding: 2.5rem 0;
}

.section__title {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 1.5rem;
  text-align: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: 1.25rem;
}

.step__num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.step__title {
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.step__desc {
  color: var(--muted-fg);
  font-size: 0.9rem;
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -20px rgba(30, 11, 46, 0.25);
  padding: 1.25rem;
}

.card + .card {
  margin-top: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted-fg);
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.feature-card__icon {
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn--primary {
  background: var(--cta);
  color: #fff;
}

.btn--primary:hover {
  background: var(--cta-hover);
}

.btn--outline {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn--light {
  background: #fff;
  color: var(--brand-pink);
}

/* CTA band (gradient) */
.cta-band {
  border-radius: var(--radius);
  background: var(--gradient);
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.4rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
}

.cta-panel {
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient);
}

.cta-panel__inner {
  background: #fff;
  border-radius: calc(var(--radius) - 2px);
  padding: 1.5rem;
  text-align: center;
}

.cta-panel__inner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.cta-panel__inner p {
  margin: 0 0 1.1rem;
  color: var(--muted-fg);
}

.cta-panel__secondary {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  color: var(--muted-fg);
}

/* Report: top chip strip */
.chip-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-bottom: 1rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  background: var(--muted);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-weight: 600;
  font-size: 0.8rem;
}

/* Report: business header */
.biz-header h1 {
  font-size: 1.55rem;
  margin: 0 0 0.4rem;
  font-weight: 800;
}

.biz-header__line {
  color: var(--muted-fg);
  font-size: 0.92rem;
  margin: 0.15rem 0;
}

@media (min-width: 640px) {
  .biz-header h1 {
    font-size: 1.9rem;
  }
}

/* Rating block */
.rating-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
}

.rating-block__score {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
}

.rating-block__stars {
  color: #f59e0b;
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
}

.rating-block__count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted-fg);
  letter-spacing: 0.03rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-weight: 700;
  font-size: 0.82rem;
}

.badge--red {
  background: var(--neg-bg);
  color: var(--neg);
}

.badge--orange {
  background: #fff7ed;
  color: #c2410c;
}

.badge--gray {
  background: var(--muted);
  color: var(--muted-fg);
}

.badge--green {
  background: var(--pos-bg);
  color: var(--pos);
}

.badge-line {
  width: 100%;
  font-size: 0.92rem;
  color: var(--muted-fg);
}

/* Neighborhood scale */
.nb-scale {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
  margin: 2.25rem 0 0.5rem;
}

.nb-scale__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.nb-scale__marker--self {
  background: var(--secondary);
  z-index: 2;
}

.nb-scale__marker--median {
  background: var(--muted-fg);
}

.nb-scale__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

.nb-scale__legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

.nb-scale__legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.nb-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.nb-metric {
  background: var(--muted);
  border-radius: 0.75rem;
  padding: 0.7rem 0.5rem;
  text-align: center;
}

.nb-metric__value {
  font-weight: 800;
  font-size: 1.05rem;
}

.nb-metric__label {
  font-size: 0.7rem;
  color: var(--muted-fg);
  margin-top: 0.15rem;
}

.nb-note {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

/* Dimensions */
.dim-intro {
  color: var(--muted-fg);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.dim-card {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 1rem;
}

.dim-card + .dim-card {
  margin-top: 0.75rem;
}

.dim-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.dim-card__label {
  font-weight: 700;
}

.dim-card__meta {
  font-size: 0.78rem;
  color: var(--muted-fg);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02rem;
}

.dim-card__tally {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin: 0.35rem 0 0.75rem;
}

.quote-chips {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.quote-chip {
  border-radius: 0.6rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.quote-chip--positive {
  background: var(--pos-bg);
}

.quote-chip--negative {
  background: var(--neg-bg);
}

.quote-chip__text {
  color: var(--fg);
}

.quote-chip__badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}

.quote-chip--positive .quote-chip__badge {
  background: var(--pos);
  color: #fff;
}

.quote-chip--negative .quote-chip__badge {
  background: var(--neg);
  color: #fff;
}

/* Contradictions */
.contradiction-card {
  border-radius: 0.85rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 1rem;
}

.contradiction-card + .contradiction-card {
  margin-top: 0.6rem;
}

.contradiction-card__stars {
  font-weight: 700;
  color: #b45309;
  margin-bottom: 0.3rem;
  display: block;
}

.contradiction-closing {
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--muted-fg);
}

/* Two-column pros/cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .pros-cons {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-cons__col h3 {
  font-size: 0.95rem;
}

.pros-cons__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pros-cons__list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.pros-cons__mark {
  flex-shrink: 0;
  font-weight: 800;
}

.pros-cons__mark--pos {
  color: var(--pos);
}

.pros-cons__mark--neg {
  color: var(--neg);
}

/* Methodology + not-analyzed note */
.methodology p {
  font-size: 0.88rem;
}

.note-card {
  text-align: center;
}

.note-card p {
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: var(--dark-bg);
  color: #cbb9e0;
  margin-top: 3rem;
  padding: 2.5rem 0 1.5rem;
}

.footer__wordmark {
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
}

.footer__wordmark span:first-child {
  color: var(--highlight);
}

.footer__wordmark span:last-child {
  color: #6b5c85;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.88rem;
}

.footer__links a {
  color: #cbb9e0;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid #241539;
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: #7c6a97;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 3rem 0;
}

.not-found h1 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.not-found p {
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
}
