/* Comparison pages — simple, clean, Lockii. */

.cmp {
  --cmp-ink: #141414;
  --cmp-body: #454545;
  --cmp-muted: #6d6d6d;
  --cmp-line: #e8e8e8;
  --cmp-accent: var(--accent, #c2b067);
  --cmp-ease: cubic-bezier(0.23, 1, 0.32, 1);
  width: 100%;
  color: var(--cmp-body);
  background: var(--sidebar, #fafafa);
}

.cmp-hero {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.cmp-hero__copy {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
  max-width: 44rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.cmp-title {
  margin: 0;
  font-family: Lufga, Arial, sans-serif;
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--cmp-ink);
  letter-spacing: -0.035em;
}

.cmp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
}

.cmp-actions .btn-primary {
  transition: transform 160ms var(--cmp-ease);
}

.cmp-actions .btn-primary:active {
  transform: scale(0.97);
}

.cmp-actions--on-dark {
  margin-top: 0.25rem;
}

.cmp-block {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.cmp-block--last {
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.cmp-block--last .card.cta.bg-neutral-800 {
  max-height: none;
  padding-bottom: 63px;
}

.cmp-block--last .feature-detail-cta-row {
  justify-content: flex-start;
}

.cmp-block--last .feature-detail-cta-row .link-arrow-wrapper {
  justify-content: flex-start;
  margin-right: auto;
  margin-left: 0;
}

.cmp-intro {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--cmp-body);
}

.cmp-heading {
  margin: 0 0 1.75rem;
  font-family: Lufga, Arial, sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--cmp-ink);
  text-align: center;
  letter-spacing: -0.03em;
}

.cmp-heading--spaced {
  margin-top: 3rem;
}

/* Fork — one table-like panel, divider between paths */

.cmp-fork {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  background: #fff;
  border: 1px solid hsl(240 5.9% 90%);
  border-radius: 0.5rem;
}

.cmp-fork__path {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.35rem 1.35rem 1.5rem;
}

.cmp-fork__path + .cmp-fork__path {
  border-left: 1px solid hsl(240 5.9% 90%);
}

.cmp-fork__label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: hsl(240 3.8% 46.1%);
  letter-spacing: 0;
}

.cmp-fork__path--lockii .cmp-fork__label {
  color: var(--cmp-ink);
}

.cmp-fork__text {
  margin: 0;
  font-family: Lufga, Arial, sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--cmp-ink);
  letter-spacing: -0.02em;
}

/* Table — matches Lockii app shadcn table (src/components/ui/table.tsx) */

.cmp-table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  background: #fff;
  border: 1px solid hsl(240 5.9% 90%);
  border-radius: 0.5rem;
}

.cmp-table {
  width: 100%;
  min-width: 640px;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: left;
  caption-side: bottom;
  border-collapse: collapse;
}

.cmp-table thead tr {
  border-bottom: 1px solid hsl(240 5.9% 90%);
}

.cmp-table thead th {
  height: 2.5rem;
  padding: 0 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  vertical-align: middle;
  color: hsl(240 3.8% 46.1%);
  white-space: nowrap;
  border-right: 1px solid hsl(240 5.9% 90%);
}

.cmp-table thead th:last-child {
  border-right: 0;
}

.cmp-table tbody tr {
  border-bottom: 1px solid hsl(240 5.9% 90%);
  transition: background-color 150ms var(--cmp-ease);
}

.cmp-table tbody tr:last-child {
  border-bottom: 0;
}

.cmp-table tbody th,
.cmp-table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
  border-right: 1px solid hsl(240 5.9% 90%);
}

.cmp-table tbody th:last-child,
.cmp-table tbody td:last-child {
  border-right: 0;
}

.cmp-table tbody th {
  width: 18%;
  font-weight: 500;
  color: var(--cmp-ink);
}

.cmp-table tbody td {
  width: 41%;
  color: var(--cmp-body);
}

.cmp-table tbody td:first-of-type {
  color: var(--cmp-ink);
}

@media (hover: hover) and (pointer: fine) {
  .cmp-table tbody tr:hover th,
  .cmp-table tbody tr:hover td {
    background: rgb(0 0 0 / 5%);
  }
}

.cmp-note {
  max-width: 40rem;
  margin: 1.25rem auto 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--cmp-muted);
  text-align: center;
}

.cmp-note--lede {
  margin-top: -0.75rem;
  margin-bottom: 1.75rem;
}

.cmp-note a {
  color: var(--cmp-ink);
  text-decoration: underline;
  text-decoration-color: rgb(20 20 20 / 25%);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms var(--cmp-ease);
}

.cmp-note a:hover {
  text-decoration-color: var(--cmp-ink);
}

.cmp .featured-customer-stories-grid {
  margin-top: 0.25rem;
}

.cmp .compact-faq-section .integration-faq {
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.cmp-faq {
  margin-top: 2rem;
}

.cmp .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

@media (hover: hover) and (pointer: fine) {
  .cmp-actions .link-arrow-wrapper:hover .link-icon-right {
    transform: translateX(3px);
  }

  .cmp-actions .link-icon-right {
    transition: transform 180ms var(--cmp-ease);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cmp-actions .btn-primary,
  .cmp-actions .link-icon-right,
  .cmp-note a {
    transition: none;
  }

  .cmp-actions .btn-primary:active {
    transform: none;
  }
}

@media screen and (max-width: 767px) {
  .cmp-fork {
    grid-template-columns: 1fr;
  }

  .cmp-fork__path + .cmp-fork__path {
    border-top: 1px solid hsl(240 5.9% 90%);
    border-left: 0;
  }
}
