:root {
  color-scheme: light;
  --bg: #eef3f1;
  --surface: #ffffff;
  --surface-2: #f7faf9;
  --ink: #101314;
  --muted: #66737a;
  --soft: #94a3b8;
  --line: #dce6e2;
  --line-strong: #b8c8c2;
  --teal: #087b6d;
  --teal-soft: #d6f7ef;
  --blue: #2856c7;
  --blue-soft: #e7edff;
  --gold: #a16207;
  --gold-soft: #ffedd5;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --charcoal: #18201f;
  --mint: #20c997;
  --shadow: 0 26px 70px rgba(16, 19, 20, 0.14);
  --shadow-soft: 0 14px 36px rgba(16, 19, 20, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(8, 123, 109, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 123, 109, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  background: rgba(252, 254, 253, 0.88);
  border-bottom: 1px solid rgba(184, 200, 194, 0.76);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

.market-rail {
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 18px;
  min-height: 34px;
  padding: 0 6vw;
}

.market-rail a {
  border-radius: 8px;
  padding: 5px 10px;
}

.market-rail a:hover,
.market-rail a:first-child {
  background: #ecfdf5;
  color: var(--teal);
}

.topbar {
  align-items: center;
  background: transparent;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 66px;
  padding: 0 6vw;
}

.brand,
.nav,
.hero-actions,
.check-row,
.firm-cell,
.panel-title,
.row-heading,
.compare-box,
.offer-top,
.dialog-title {
  align-items: center;
  display: flex;
}

.brand {
  font-size: 17px;
  font-weight: 900;
  gap: 10px;
}

.brand-mark {
  background: var(--charcoal);
  border-radius: 10px;
  color: white;
  display: grid;
  height: 38px;
  place-items: center;
  width: 38px;
}

.nav {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  gap: 4px;
}

.nav a {
  border-radius: 10px;
  padding: 9px 11px;
}

.nav a:hover {
  background: #ecfdf5;
  color: var(--ink);
}

.hero {
  background:
    radial-gradient(circle at 20% 10%, rgba(32, 201, 151, 0.16), transparent 32%),
    linear-gradient(135deg, #fbfefd 0%, #eef7f4 52%, #f7f3ea 100%);
  color: var(--ink);
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.62fr);
  min-height: calc(100vh - 100px);
  overflow: hidden;
  padding: 70px 6vw 72px;
  position: relative;
}

.hero::after {
  background:
    linear-gradient(135deg, rgba(16, 19, 20, 0.96), rgba(8, 123, 109, 0.9)),
    var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 28px;
  box-shadow: var(--shadow);
  content: "";
  height: 460px;
  position: absolute;
  right: -120px;
  top: 54px;
  transform: rotate(-8deg);
  width: 520px;
  z-index: 0;
}

.hero-copy {
  align-self: center;
  max-width: 820px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--teal);
}

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

h1 {
  font-size: clamp(48px, 7vw, 86px);
  letter-spacing: 0;
  line-height: 0.95;
  margin-bottom: 24px;
  max-width: 940px;
}

.hero h1 {
  color: var(--ink);
  max-width: 900px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  letter-spacing: 0;
  line-height: 1.02;
  margin-bottom: 12px;
}

h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.split > div > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.68;
  max-width: 720px;
}

.hero-copy p:not(.eyebrow) {
  color: var(--muted);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.signal-row span {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(184, 200, 194, 0.85);
  border-radius: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  padding: 9px 12px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.compact {
  min-height: 40px;
  padding: 9px 14px;
}

.button.primary {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: white;
}

.button.primary:hover {
  background: #0b0f0e;
  border-color: #0b0f0e;
}

.button.secondary {
  background: var(--surface);
}

.hero .button.secondary {
  background: white;
  border-color: var(--line-strong);
  color: var(--ink);
}

.hero .button.secondary:hover {
  background: var(--surface-2);
  border-color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--ink);
}

.finder-panel,
.table-shell,
.offer-card,
.roadmap article,
.edge-grid article,
.compare-card,
.dialog {
  background: var(--surface);
  border: 1px solid rgba(184, 200, 194, 0.82);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.finder-panel {
  align-self: center;
  display: grid;
  gap: 16px;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.92);
  padding: 24px;
  position: relative;
  z-index: 1;
}

.finder-panel::before {
  background: linear-gradient(90deg, var(--mint), #f2c94c);
  border-radius: 14px 14px 0 0;
  content: "";
  height: 4px;
  left: -1px;
  position: absolute;
  right: -1px;
  top: -1px;
}

.panel-title {
  justify-content: space-between;
  padding-top: 4px;
}

.panel-title span,
.best-match span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.panel-title strong {
  background: var(--teal-soft);
  border-radius: 10px;
  color: var(--teal);
  font-size: 12px;
  padding: 6px 10px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
}

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

input[type="search"],
select {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-weight: 800;
  min-height: 46px;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}

input[type="search"]:focus,
select:focus {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.13);
}

select {
  appearance: none;
}

input[type="range"] {
  accent-color: var(--teal);
  width: 100%;
}

.range-value {
  color: var(--ink);
  font-size: 18px;
}

.check-row {
  cursor: pointer;
  flex-direction: row;
  line-height: 1.4;
}

.check-row input,
.select-check {
  accent-color: var(--teal);
  height: 18px;
  width: 18px;
}

.best-match {
  background: linear-gradient(135deg, #ecfffa, #fff8e8);
  border: 1px solid #a7f3d0;
  border-radius: 14px;
  padding: 16px;
}

.best-match strong {
  display: block;
  font-size: 24px;
  margin: 5px 0;
}

.best-match p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.trust-strip {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(184, 200, 194, 0.82);
  border-radius: 16px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: -28px 6vw 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.quick-tabs {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 26px 6vw 0;
}

.quick-tab {
  background: white;
  border: 1px solid rgba(184, 200, 194, 0.82);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 6px;
  padding: 18px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.quick-tab:hover,
.quick-tab.active {
  border-color: var(--charcoal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.quick-tab span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.quick-tab strong {
  color: var(--ink);
  font-size: 17px;
}

.match-lab {
  background: rgba(255, 255, 255, 0.62);
}

.platform-board {
  background: transparent;
  padding-top: 56px;
}

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

.ranking-card {
  background: white;
  border: 1px solid rgba(184, 200, 194, 0.82);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  overflow: hidden;
  padding: 20px;
}

.ranking-card.featured {
  background: linear-gradient(135deg, #18201f, #087b6d);
  color: white;
}

.ranking-card.featured p,
.ranking-card.featured small,
.ranking-card.featured .ranking-metric span {
  color: rgba(255, 255, 255, 0.74);
}

.ranking-kicker {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.ranking-kicker span {
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ranking-card.featured .ranking-kicker span {
  color: #8ff4cf;
}

.ranking-rank {
  background: var(--charcoal);
  border-radius: 10px;
  color: white;
  font-weight: 950;
  padding: 7px 10px;
}

.ranking-card.featured .ranking-rank {
  background: rgba(255, 255, 255, 0.14);
}

.ranking-head {
  align-items: center;
  display: flex;
  gap: 12px;
}

.ranking-head h3 {
  font-size: 22px;
  margin: 0 0 4px;
}

.ranking-head small {
  color: var(--muted);
  font-weight: 800;
}

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

.ranking-metric {
  background: rgba(8, 123, 109, 0.08);
  border-radius: 12px;
  padding: 12px;
}

.ranking-card.featured .ranking-metric {
  background: rgba(255, 255, 255, 0.12);
}

.ranking-metric strong,
.ranking-metric span {
  display: block;
}

.ranking-metric strong {
  font-size: 20px;
}

.ranking-metric span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  margin-top: 4px;
  text-transform: uppercase;
}

.ranking-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.ranking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.directory-section {
  background: rgba(255, 255, 255, 0.72);
}

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

.directory-card {
  background: white;
  border: 1px solid rgba(184, 200, 194, 0.82);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 18px;
  padding: 20px;
}

.directory-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.directory-title {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.directory-title h3 {
  font-size: 20px;
  margin: 0 0 4px;
}

.directory-title small {
  color: var(--muted);
  display: block;
  font-weight: 800;
}

.review-pill {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  font-size: 13px;
  font-weight: 950;
  padding: 8px 10px;
  white-space: nowrap;
}

.directory-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.detail-list {
  display: grid;
  gap: 9px;
}

.detail-list div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 9px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.detail-list dd {
  font-weight: 950;
  margin: 0;
  text-align: right;
}

.review-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.review-box strong {
  color: var(--ink);
}

.review-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.wizard-shell {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
}

.wizard-form,
.wizard-results {
  background: white;
  border: 1px solid rgba(184, 200, 194, 0.82);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.wizard-form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.wizard-results {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.wizard-card {
  align-items: start;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 16px;
}

.wizard-rank {
  background: var(--ink);
  border-radius: 12px;
  color: white;
  display: grid;
  font-weight: 950;
  height: 34px;
  place-items: center;
  width: 34px;
}

.wizard-card h3 {
  margin-bottom: 3px;
}

.wizard-card p {
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 0;
}

.wizard-card p strong {
  color: var(--ink);
}

.wizard-score {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.wizard-score strong {
  color: var(--teal);
}

.trust-strip div {
  background: white;
  border-right: 1px solid var(--line);
  display: grid;
  gap: 6px;
  min-height: 116px;
  place-items: center;
  text-align: center;
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip strong {
  font-size: 30px;
}

.trust-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.section {
  padding: 84px 6vw;
}

.section:nth-of-type(even) {
  background: rgba(255, 255, 255, 0.7);
}

.section-heading {
  margin-bottom: 28px;
}

.action-row {
  display: flex;
  justify-content: flex-end;
  margin: -10px 0 16px;
}

.row-heading {
  align-items: flex-end;
  gap: 20px;
  justify-content: space-between;
}

.compare-box {
  background: var(--blue-soft);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  color: var(--blue);
  flex-direction: column;
  gap: 3px;
  min-width: 220px;
  padding: 13px 15px;
}

.compare-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.offer-grid,
.edge-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.offer-card,
.edge-grid article,
.roadmap article {
  display: grid;
  gap: 18px;
  padding: 22px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.offer-card:hover,
.edge-grid article:hover,
.roadmap article:hover {
  border-color: var(--charcoal);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.offer-card {
  min-height: 214px;
}

.edge-grid article {
  min-height: 210px;
}

.edge-grid span,
.roadmap span {
  color: var(--teal);
  display: block;
  font-weight: 950;
}

.edge-grid p,
.roadmap p,
.offer-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.offer-top {
  gap: 12px;
}

.firm-logo {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  width: 42px;
}

.code-pill {
  background: var(--ink);
  border-radius: 10px;
  color: white;
  display: inline-flex;
  font-size: 14px;
  font-weight: 950;
  justify-content: center;
  padding: 10px 12px;
}

.offer-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-meta small {
  color: var(--muted);
  font-weight: 800;
}

.table-shell {
  overflow-x: auto;
  box-shadow: var(--shadow);
}

table {
  border-collapse: collapse;
  min-width: 1260px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 15px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f2f7f5;
  color: var(--muted);
  font-size: 12px;
  position: sticky;
  top: 0;
  text-transform: uppercase;
  z-index: 1;
}

td {
  font-size: 14px;
  font-weight: 800;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.firm-cell {
  gap: 12px;
}

.firm-name small {
  color: var(--muted);
  display: block;
  font-weight: 700;
  margin-top: 3px;
}

.badge {
  border-radius: 10px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 950;
  padding: 6px 10px;
  white-space: nowrap;
}

.badge.low {
  background: var(--teal-soft);
  color: var(--teal);
}

.badge.medium {
  background: var(--gold-soft);
  color: var(--gold);
}

.badge.high {
  background: var(--danger-soft);
  color: var(--danger);
}

.badge.research {
  background: #eff6ff;
  color: #1d4ed8;
}

.fit-score {
  color: var(--teal);
  font-size: 18px;
}

.link-button {
  background: none;
  border: 0;
  color: var(--blue);
  cursor: pointer;
  font-weight: 950;
  padding: 0;
}

.link-button:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.comparison-panel {
  margin-top: 18px;
}

.comparison-panel h3 {
  margin-bottom: 12px;
}

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

.compare-card {
  padding: 18px;
}

.compare-card h4 {
  font-size: 17px;
  margin: 0 0 4px;
}

.compare-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
}

.compare-card dl {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}

.compare-card dl div {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-top: 10px;
}

.compare-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-card dd {
  font-weight: 950;
  margin: 0;
  text-align: right;
}

.split {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 0.72fr) minmax(320px, 1fr);
}

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

.dialog {
  max-width: 760px;
  padding: 0;
  width: min(92vw, 760px);
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.52);
}

.dialog-close {
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  height: 34px;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.dialog-body {
  padding: 26px;
}

.dialog-title {
  gap: 14px;
  padding-right: 42px;
}

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

.detail-grid div {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.detail-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 950;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.warning-list {
  color: var(--muted);
  line-height: 1.7;
  padding-left: 20px;
}

.footer {
  background: white;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  gap: 12px;
  padding: 24px 6vw;
}

.footer p {
  margin: 0;
}

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

.footer-links a {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.legal-page {
  background: #f6f8fb;
}

.legal-wrap {
  max-width: 940px;
}

.legal-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 22px;
  padding: 26px;
}

.legal-card h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.legal-card ul {
  margin: 0;
  padding-left: 22px;
}

@media (max-width: 1050px) {
  .offer-grid,
  .edge-grid,
  .quick-tabs,
  .wizard-shell,
  .ranking-grid,
  .firm-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .market-rail {
    overflow-x: auto;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .nav {
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  .hero,
  .split,
  .roadmap,
  .grid-2,
  .offer-grid,
  .edge-grid,
  .quick-tabs,
  .wizard-shell,
  .ranking-grid,
  .firm-directory,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 60px);
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .row-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .action-row {
    justify-content: flex-start;
    margin-top: -6px;
  }
}

/* Directory-first redesign */
body {
  background: #f6f8fb;
  background-size: auto;
}

.market-rail,
.quick-tabs,
.platform-board {
  display: none;
}

.site-header {
  background: rgba(255, 255, 255, 0.95);
}

.topbar {
  min-height: 72px;
}

.brand-mark {
  background: #0f172a;
}

.hero {
  background: #f6f8fb;
  gap: 32px;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  min-height: auto;
  padding: 52px 6vw 28px;
}

.hero::after {
  display: none;
}

.hero-copy {
  align-self: start;
  padding-top: 18px;
}

h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: 1;
}

.hero-copy p:not(.eyebrow) {
  max-width: 680px;
}

.finder-panel {
  align-self: start;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.trust-strip {
  box-shadow: none;
  margin: 18px 6vw 0;
}

.directory-section {
  background: #f6f8fb;
  padding-top: 46px;
}

.firm-directory {
  grid-template-columns: 1fr;
}

.directory-card {
  align-items: stretch;
  box-shadow: none;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, 0.95fr) minmax(420px, 1.4fr) minmax(220px, 0.55fr);
  padding: 18px;
}

.directory-top {
  display: grid;
  gap: 14px;
}

.directory-title h3 {
  font-size: 22px;
}

.directory-card > p {
  display: none;
}

.detail-list {
  align-self: center;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-list div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  gap: 5px;
  padding: 10px;
}

.detail-list dd {
  text-align: left;
}

.review-box {
  align-self: stretch;
}

.ranking-actions {
  align-items: stretch;
  display: grid;
  grid-template-columns: 1fr;
}

.ranking-actions .button {
  width: 100%;
}

@media (max-width: 1120px) {
  .directory-card {
    grid-template-columns: 1fr;
  }

  .detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 36px;
  }

  .detail-list {
    grid-template-columns: 1fr;
  }
}

/* Multi-page platform */
.tool-page {
  background: #f6f8fb;
}

.page-hero {
  background: #f6f8fb;
  padding: 54px 6vw 24px;
}

.page-hero-inner {
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  max-width: 1240px;
}

.page-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  margin-bottom: 14px;
}

.page-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}

.tool-nav {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  min-width: 230px;
  padding: 10px;
}

.tool-nav a {
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  padding: 10px 12px;
}

.tool-nav a:hover,
.tool-nav a.active {
  background: #ecfdf5;
  color: var(--ink);
}

.tool-shell {
  padding: 26px 6vw 76px;
}

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

.tool-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.tool-card-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.tool-card-title {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.tool-card h3 {
  font-size: 20px;
  margin: 0 0 3px;
}

.tool-card small,
.tool-card p {
  color: var(--muted);
}

.tool-card p {
  line-height: 1.55;
  margin: 0;
}

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

.mini-stats div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
}

.mini-stats span {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-stats strong {
  display: block;
  margin-top: 4px;
}

.tool-filters {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(150px, 0.4fr));
  margin-bottom: 18px;
  padding: 14px;
}

.tool-table {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
}

.review-list,
.rule-list,
.payout-list {
  display: grid;
  gap: 14px;
}

.review-row,
.rule-row,
.payout-row {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 0.4fr) minmax(0, 1fr) auto;
  padding: 18px;
}

.rating {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  font-weight: 950;
  padding: 8px 10px;
  white-space: nowrap;
}

.form-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 16px;
  max-width: 860px;
  padding: 22px;
}

.form-panel textarea,
.form-panel input,
.form-panel select {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  min-height: 46px;
  padding: 11px 13px;
  width: 100%;
}

.form-panel textarea {
  min-height: 140px;
  resize: vertical;
}

.form-status {
  border-radius: 12px;
  display: none;
  font-weight: 850;
  padding: 12px 14px;
}

.form-status.success {
  background: var(--teal-soft);
  color: var(--teal);
  display: block;
}

.form-status.error {
  background: var(--danger-soft);
  color: var(--danger);
  display: block;
}

.admin-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 1fr);
}

.admin-list {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 8px;
  max-height: 760px;
  overflow: auto;
  padding: 12px;
}

.admin-list button {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.admin-list button:hover,
.admin-list button.active {
  background: #ecfdf5;
  border-color: #99f6e4;
}

.admin-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.admin-grid .wide {
  grid-column: 1 / -1;
}

.admin-help {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.55;
  padding: 14px;
}

.firm-profile-title {
  align-items: center;
  display: flex;
  gap: 20px;
}

.firm-profile-logo {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  height: 86px;
  padding: 10px;
  width: 86px;
}

.firm-profile {
  display: grid;
  gap: 18px;
}

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

.profile-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  padding: 22px;
}

.profile-panel p {
  color: var(--muted);
  line-height: 1.65;
}

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

.profile-stats div,
.profile-list div {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.profile-stats span,
.profile-list dt {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-stats strong,
.profile-list dd {
  color: var(--ink);
  display: block;
  font-weight: 950;
  margin: 5px 0 0;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0;
}

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

.research-summary div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.research-summary span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.research-summary strong {
  display: block;
  font-size: 30px;
  margin-top: 6px;
}

.research-list {
  display: grid;
  gap: 12px;
}

.research-row {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(240px, 0.5fr) minmax(0, 1fr) auto;
  padding: 16px;
}

.research-row p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.status-pill {
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  padding: 8px 10px;
  white-space: nowrap;
}

.status-pill.live {
  background: var(--teal-soft);
  color: var(--teal);
}

.status-pill.pending {
  background: #eff6ff;
  color: #1d4ed8;
}

@media (max-width: 1050px) {
  .tool-grid,
  .tool-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-hero-inner,
  .review-row,
  .rule-row,
  .payout-row,
  .admin-layout,
  .profile-grid,
  .research-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .tool-grid,
  .tool-filters,
  .mini-stats,
  .admin-grid,
  .profile-stats,
  .research-summary {
    grid-template-columns: 1fr;
  }

  .firm-profile-title {
    align-items: flex-start;
    flex-direction: column;
  }
}
