:root {
  --green: #00b67a;
  --green-dark: #00945f;
  --green-soft: #e5f9f1;
  --excellent: #00b67a;
  --great: #73cf11;
  --average: #ffce00;
  --poor: #ff8622;
  --bad: #ff3722;
  --ink: #121212;
  --navy: #0f172a;
  --slate: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f5f7fa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --max: 1120px;
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.demo-banner {
  background: #fff7ed;
  color: #9a3412;
  border-bottom: 1px solid #fed7aa;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.site-header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.15rem;
}
.brand svg { width: 34px; height: 34px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: #cbd5e1;
  font-size: 0.95rem;
}
.nav-links a:hover { color: white; }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-dark); }
.btn-secondary { background: white; color: var(--navy); border-color: var(--line); }
.btn-secondary:hover { border-color: #94a3b8; }
.btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,0.25); }
.btn-ghost:hover { background: rgba(255,255,255,0.08); }
.btn-sm { padding: 0.45rem 0.85rem; font-size: 0.9rem; }

.hero {
  background: linear-gradient(160deg, #0b1220 0%, #152238 55%, #0f3d2e 100%);
  color: white;
  padding: 4.5rem 0 3.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0,182,122,0.15);
  color: #7dffc8;
  border: 1px solid rgba(0,182,122,0.35);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero p.lead {
  margin: 0 0 1.5rem;
  color: #cbd5e1;
  font-size: 1.1rem;
  max-width: 38rem;
}
.search-box {
  display: flex;
  gap: 0.6rem;
  background: white;
  padding: 0.45rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.search-box input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 0.75rem 1rem;
  color: var(--ink);
  background: transparent;
}
.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}
.stat {
  background: rgba(15,23,42,0.35);
  border-radius: 12px;
  padding: 0.9rem;
  text-align: center;
}
.stat strong { display: block; font-size: 1.35rem; }
.stat span { color: #94a3b8; font-size: 0.82rem; }

.section { padding: 3.5rem 0; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section h2 {
  margin: 0;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
}
.section .sub { color: var(--muted); margin: 0.35rem 0 0; }

.grid-4, .grid-3, .grid-2 {
  display: grid;
  gap: 1rem;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.card:hover { border-color: #cbd5e1; }
.cat-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 140px;
}
.cat-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--green-soft);
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.review-card h3, .biz-card h3 { margin: 0.4rem 0 0.35rem; font-size: 1.05rem; }
.meta { color: var(--muted); font-size: 0.88rem; }
.company-reply {
  margin-top: 0.9rem;
  padding: 0.85rem;
  background: #f8fafc;
  border-left: 3px solid var(--green);
  border-radius: 8px;
  font-size: 0.92rem;
}
.company-reply strong { display: block; margin-bottom: 0.25rem; }

/* Square tile star rating */
.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}
.star-tile {
  width: 18px;
  height: 18px;
  border-radius: 3px;
  display: grid;
  place-items: center;
  background: #d1d5db;
}
.star-tile svg { width: 12px; height: 12px; fill: white; }
.stars[data-score="5"] .star-tile,
.stars.score-5 .star-tile { background: var(--excellent); }
.stars[data-score="4"] .star-tile,
.stars.score-4 .star-tile { background: var(--great); }
.stars[data-score="3"] .star-tile,
.stars.score-3 .star-tile { background: var(--average); }
.stars[data-score="2"] .star-tile,
.stars.score-2 .star-tile { background: var(--poor); }
.stars[data-score="1"] .star-tile,
.stars.score-1 .star-tile { background: var(--bad); }
.stars.lg .star-tile { width: 28px; height: 28px; border-radius: 4px; }
.stars.lg .star-tile svg { width: 18px; height: 18px; }
.rating-label {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
}
.rating-label .score { font-size: 1.35rem; }

.how-steps { counter-reset: step; }
.how-step {
  position: relative;
  padding-left: 3.2rem;
}
.how-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  border-radius: 999px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.trust-strip {
  background: var(--navy);
  color: white;
  padding: 2.5rem 0;
}
.trust-strip .grid-3 .card {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  color: #e2e8f0;
}

.site-footer {
  background: #0b1220;
  color: #94a3b8;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.site-footer h4 { color: white; margin: 0 0 0.8rem; }
.site-footer a { display: block; margin: 0.35rem 0; color: #94a3b8; }
.site-footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
}

/* Business page */
.pricing .price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0.4rem 0;
}
.pricing .price span { font-size: 1rem; color: var(--muted); font-weight: 600; }
.feature-list { list-style: none; padding: 0; margin: 1rem 0 0; }
.feature-list li {
  padding: 0.35rem 0 0.35rem 1.5rem;
  position: relative;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}
.popular {
  border: 2px solid var(--green);
  position: relative;
}
.popular::after {
  content: "Most popular";
  position: absolute;
  top: -0.7rem;
  left: 1rem;
  background: var(--green);
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.widget-preview {
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  padding: 1rem;
  background: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Review page */
.review-hero {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 2rem 0;
}
.biz-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
}
.biz-logo {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: white;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.biz-logo svg { width: 72px; height: 72px; }
.layout-review {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 1.25rem;
  padding: 1.75rem 0 3rem;
  align-items: start;
}
.dist-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr 2.5rem;
  gap: 0.55rem;
  align-items: center;
  margin: 0.4rem 0;
  font-size: 0.9rem;
}
.bar {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.bar > span {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0;
}
.filters select, .filters input {
  border: 1px solid var(--line);
  background: white;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--slate);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  flex-shrink: 0;
}
.review-top {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.useful {
  margin-top: 0.85rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}
.useful.done { background: var(--green-soft); border-color: #86efac; color: var(--green-dark); }
.sidebar .card { position: sticky; top: 88px; }
.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
}

@media (max-width: 900px) {
  .hero-grid, .layout-review, .biz-header, .footer-grid,
  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .biz-header { justify-items: start; }
}
