:root {
  --ink: #1c1c1a;
  --muted: #5f625d;
  --soft: #f6f6f3;
  --paper: #ffffff;
  --line: #d8d8d1;
  --green: #00b67a;
  --green-dark: #008f61;
  --blue: #3155c8;
  --blue-soft: #e8edff;
  --black: #141414;
  --gray-star: #d8d8d8;
  --shadow: 0 10px 28px rgba(20, 20, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Arial, "Helvetica Neue", "Segoe UI", system-ui, -apple-system,
    BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
select,
input {
  color: inherit;
}

button {
  cursor: pointer;
}

svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.8;
}

.shell {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  background: var(--black);
  color: #fff;
}

.topbar {
  width: min(1200px, calc(100% - 40px));
  min-height: 92px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(280px, 520px) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 25px;
  font-weight: 750;
  white-space: nowrap;
}

.brand:hover {
  text-decoration: none;
}

.brand-star {
  color: var(--green);
  font-size: 36px;
  line-height: 1;
}

.header-search {
  min-width: 0;
  height: 48px;
  border-radius: 5px;
  background: #fff;
  color: #333;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}

.header-search input,
.filter-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.header-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  font-size: 14px;
  font-weight: 650;
}

.ghost-link {
  padding: 13px 24px;
  border-radius: 999px;
  background: #86a6ff;
  color: #07122e;
}

.ghost-link:hover {
  text-decoration: none;
  background: #9bb6ff;
}

.profile-band {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 72px;
  padding: 32px 0 40px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 56px;
  color: #4b4d49;
  font-size: 13px;
  font-weight: 650;
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
}

.profile-summary {
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.profile-copy {
  min-width: 0;
}

.company-logo {
  width: 122px;
  height: 122px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ecece7;
  padding: 6px;
}

.claim-chip {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  border: 1px solid #cfd8c8;
  background: #fbfff9;
  color: #266b3f;
  padding: 2px 6px;
  font-size: 12px;
}

.claim-chip svg {
  width: 13px;
  height: 13px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.05;
}

h2 {
  margin-bottom: 20px;
  font-size: 26px;
  line-height: 1.2;
}

.inline-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #27313a;
}

.inline-score > a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inline-score strong {
  font-size: 17px;
}

.inline-score svg,
.rating-heading svg {
  color: var(--blue);
  width: 17px;
  height: 17px;
}

.category-link {
  display: inline-block;
  color: var(--blue);
  margin-bottom: 16px;
  font-size: 17px;
}

.cta-row,
.tab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 750;
  font-size: 14px;
  white-space: nowrap;
}

.button:hover {
  text-decoration: none;
}

.button.primary {
  background: var(--blue);
  color: #fff;
  border: 1px solid var(--blue);
}

.button.primary:hover {
  background: #2645aa;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--blue);
}

.button.secondary:hover {
  background: var(--blue-soft);
}

.compact-button {
  min-height: 36px;
  padding: 0 18px;
}

.integrity-note {
  margin-top: 32px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffdf8;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.integrity-note button {
  border: 0;
  background: transparent;
}

.shield {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d7e6ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px #9cb8f4;
}

.profile-aside {
  padding-top: 8px;
}

.score-card,
.use-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.score-card {
  overflow: hidden;
}

.score-card-top {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  padding: 28px 32px 18px;
}

.score-number {
  font-size: 50px;
  font-weight: 800;
  line-height: 0.95;
}

.score-card p,
.use-card p,
.rating-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.score-card > a {
  display: block;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  color: #595955;
  text-align: center;
  text-decoration: underline;
}

.use-card {
  margin-top: 12px;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 16px;
  box-shadow: none;
}

.round-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1eeea;
}

.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
}

.star-tile {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
}

.stars.compact .star-tile,
.star-tile.small {
  width: 16px;
  height: 16px;
  font-size: 11px;
}

.mini-bars {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.mini-bar {
  display: grid;
  grid-template-columns: 52px minmax(100px, 1fr);
  gap: 10px;
  align-items: center;
}

.track {
  height: 8px;
  border-radius: 999px;
  background: var(--gray-star);
  overflow: hidden;
}

.track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.tabs {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 3px 10px rgba(20, 20, 20, 0.12);
}

.tab-shell {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.tab {
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-bottom: 3px solid transparent;
  font-size: 14px;
}

.tab.active {
  border-bottom-color: var(--ink);
  font-weight: 800;
}

.tab-actions {
  margin-left: auto;
}

.section {
  padding: 36px 0;
  scroll-margin-top: 82px;
}

.content-with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 72px;
}

.main-column {
  min-width: 0;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px 64px;
}

.featured-review {
  min-width: 0;
}

.reviewer-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffe0ae;
  color: #111;
  font-weight: 800;
  flex: 0 0 auto;
}

.avatar.green {
  background: #d7fbe4;
}

.avatar.pink {
  background: #ffd7e8;
}

.avatar.blue {
  background: #dce9ff;
}

.reviewer-name {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-date,
.meta-muted {
  color: var(--muted);
  font-size: 14px;
}

.featured-review p {
  margin: 8px 0 18px;
  font-size: 17px;
}

.see-more {
  color: var(--blue);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  color: #55595f;
  font-size: 14px;
}

.review-actions button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
}

.review-actions button:hover {
  color: var(--blue);
}

.review-actions button.is-active {
  color: var(--blue);
  font-weight: 750;
}

.wide-cta {
  width: min(286px, 100%);
  min-height: 48px;
  margin-top: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 800;
}

.wide-cta:hover {
  background: #d9e2ff;
}

.sticky-side {
  position: sticky;
  top: 92px;
  align-self: start;
}

.score-card.slim {
  padding: 26px 30px;
}

.score-card.slim p {
  margin-top: 8px;
}

.about-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 54px 24px;
}

.about-copy,
.contact-list {
  display: grid;
  gap: 12px;
}

.outline-pill {
  width: fit-content;
  border: 1px solid #d0d4e9;
  color: var(--blue);
  padding: 2px 8px;
  font-size: 13px;
}

.about-copy p {
  max-width: 620px;
  margin-bottom: 0;
  font-size: 17px;
}

.contact-list a {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.reviews-section {
  display: grid;
  grid-template-columns: 344px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.review-filters {
  position: sticky;
  top: 92px;
  align-self: start;
}

.rating-heading > div {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.large-star {
  color: var(--green);
  font-size: 40px;
  line-height: 1;
}

.rating-heading strong {
  font-size: 24px;
}

.distribution-controls {
  margin: 24px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px 16px;
}

.rating-row {
  width: 100%;
  min-height: 32px;
  display: grid;
  grid-template-columns: 24px 50px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: #63645f;
  text-align: left;
}

.rating-row + .rating-row {
  margin-top: 4px;
}

.rating-row.active,
.rating-row:hover {
  color: var(--ink);
}

.rating-box {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: #e7e7e4;
  border: 1px solid transparent;
}

.rating-row.active .rating-box {
  background: #fff;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 5px var(--green);
}

.rating-percent {
  text-align: right;
}

.filter-search {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.filter-search label:first-child {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.select-wrap {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.select-wrap select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 12px;
}

.review-labels {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #333;
}

.stream-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.stream-toolbar button {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
}

.review-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  padding: 26px 0 36px;
  border-bottom: 1px solid var(--line);
}

.review-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.review-title {
  margin: 10px 0 10px;
  font-size: 17px;
  line-height: 1.35;
}

.review-body {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: 17px;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}

.review-pill {
  border-radius: 4px;
  background: #ececea;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 650;
}

.company-reply {
  margin: 14px 0 22px;
  padding: 14px 16px;
  border-left: 3px solid var(--green);
  background: var(--soft);
}

.company-reply strong {
  display: block;
  margin-bottom: 4px;
}

.load-more {
  min-height: 48px;
  margin: 28px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  padding: 0 32px;
  font-weight: 800;
}

.load-more[hidden] {
  display: none;
}

.empty-state {
  padding: 42px 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 0;
  }

  .header-links {
    justify-content: flex-start;
  }

  .profile-grid,
  .content-with-aside,
  .reviews-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .breadcrumb {
    margin-bottom: 28px;
  }

  .profile-aside,
  .review-filters,
  .sticky-side {
    position: static;
  }

  .desktop-only {
    display: none;
  }

  .tab-actions {
    display: none;
  }

  .reviews-section {
    padding-top: 20px;
  }
}

@media (max-width: 700px) {
  .shell,
  .topbar {
    width: min(100% - 28px, 1200px);
  }

  .header-search {
    display: none;
  }

  .header-links {
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .profile-summary {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 16px;
  }

  .profile-summary .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .profile-summary .cta-row .button {
    width: 100%;
    max-width: 230px;
  }

  .inline-score {
    gap: 6px;
    font-size: 14px;
  }

  .inline-score strong {
    font-size: 15px;
  }

  .inline-score .star-tile {
    width: 16px;
    height: 16px;
    font-size: 11px;
  }

  .company-logo {
    width: 84px;
    height: 84px;
    padding: 4px;
  }

  .score-card-top,
  .featured-grid,
  .about-grid,
  .review-card {
    grid-template-columns: 1fr;
  }

  .score-card-top {
    padding: 24px;
  }

  .mini-bar {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .tab-shell {
    overflow-x: auto;
  }

  .tab {
    flex: 0 0 auto;
  }

  .section {
    padding: 28px 0;
  }

  .about-grid {
    gap: 16px;
  }

  .review-card {
    gap: 4px;
  }

  .review-card time {
    justify-self: start;
  }
}
