/* Comparison landing pages — use with /feature/feature.css */

/* Centered layout for sections below the hero */
.cmp-page .cmp-info-box,
.cmp-page .fp-section {
  text-align: center;
}

.cmp-page .fp-section-head,
.cmp-page .fp-section > h2,
.cmp-page .fp-section > .fp-sub,
.cmp-page .cmp-sources,
.cmp-page .cmp-disclosure {
  margin-left: auto;
  margin-right: auto;
}

.cmp-page .fp-section-head {
  max-width: 40rem;
}

.cmp-page .fp-section > h2 {
  max-width: 40rem;
}

.cmp-page .fp-section > .fp-sub {
  max-width: 36rem;
}

.cmp-page .cmp-check-grid,
.cmp-page .cmp-chat-grid,
.cmp-page .cmp-job-grid,
.cmp-page .cmp-fit-grid,
.cmp-page .cmp-table-wrap,
.cmp-page .cmp-flow {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.cmp-page .cmp-migration {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cmp-page .cmp-migration p {
  margin-left: auto;
  margin-right: auto;
}

.cmp-page .fp-faq {
  margin-left: auto;
  margin-right: auto;
  padding-top: 56px;
  text-align: left;
}

.cmp-breadcrumb {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 32px) 8px;
  font-size: 0.8125rem;
  color: var(--fp-ink-faint);
}

.cmp-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cmp-breadcrumb li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--fp-line);
}

.cmp-breadcrumb a {
  color: var(--fp-ink-soft);
  text-decoration: none;
}

.cmp-breadcrumb a:hover { color: var(--fp-accent); }

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

/* Ask Alma hero phone — matches homepage assistant UI */
.fp-phone-wrap--ask {
  --cmp-phone-w: min(240px, 68vw);
  width: var(--cmp-phone-w);
  height: calc(var(--cmp-phone-w) / 0.488);
}

.fp-phone-wrap--ask .cmp-ask-phone {
  width: 100%;
  height: 100%;
}

.cmp-ask-phone {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0.42rem solid #272b2d;
  border-radius: 2.7rem;
  padding: 2rem 0.95rem 3.4rem;
  margin: 0;
  color: #f4efe7;
  background:
    radial-gradient(circle at 55% 22%, rgba(139, 47, 50, 0.14), transparent 28%),
    #11181b;
  box-shadow: 0 1.4rem 1.6rem rgba(8, 18, 24, 0.22);
  text-align: left;
}

.cmp-phone-notch {
  position: absolute;
  z-index: 3;
  top: 0.8rem;
  left: 50%;
  width: 35%;
  height: 1.1rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #05090b;
}

.cmp-wordmark {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.08em;
  font-family: var(--fp-font-heading);
  font-size: inherit;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.cmp-wordmark > span {
  margin-top: -0.06em;
  color: var(--fp-accent-soft);
  font-size: 0.72em;
}

.cmp-ask-phone__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--fp-font-heading);
  font-size: 1rem;
}

.cmp-ask-phone__top > span:last-child {
  display: grid;
  width: 1.55rem;
  height: 1.55rem;
  place-items: center;
  border: 1px solid #b98a69;
  border-radius: 50%;
  color: #e7c5ad;
  font-size: 0.72rem;
}

.cmp-ask-phone__eyebrow {
  margin: 1.15rem 0 0;
  color: #c87865;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cmp-ask-phone__title {
  margin: 0.2rem 0 0;
  font-family: var(--fp-font-heading);
  font-size: clamp(1.1rem, 1.55vw, 1.55rem);
  font-weight: 400;
  line-height: 1.15;
}

.cmp-ask-phone__portrait {
  display: block;
  width: 42%;
  max-width: 6.5rem;
  aspect-ratio: 1;
  margin: 0.85rem auto 0.5rem;
  border: 0.18rem solid #d9c1a5;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
}

.cmp-ask-phone__wave {
  display: flex;
  flex: 1;
  min-height: 1.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
}

.cmp-ask-phone__wave i {
  width: 1px;
  height: 25%;
  background: rgba(244, 239, 231, 0.8);
}

.cmp-ask-phone__wave i:nth-child(2n) { height: 70%; }
.cmp-ask-phone__wave i:nth-child(3n) { height: 100%; }

.cmp-chat-bubble {
  border: 1px solid rgba(244, 239, 231, 0.09);
  border-radius: 0.8rem;
  padding: 0.58rem 0.65rem;
  font-size: clamp(0.43rem, 0.58vw, 0.58rem);
  line-height: 1.45;
}

.cmp-chat-bubble--user {
  width: 78%;
  margin: 0.45rem 0 0 auto;
  color: rgba(244, 239, 231, 0.8);
  background: rgba(244, 239, 231, 0.06);
}

.cmp-chat-bubble--alma {
  display: flex;
  align-items: flex-start;
  gap: 0.38rem;
  margin-top: 0.55rem;
  background: rgba(244, 239, 231, 0.07);
}

.cmp-chat-bubble--alma img {
  width: 1.15rem;
  height: 1.15rem;
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.cmp-ask-phone__composer {
  position: absolute;
  right: 0.8rem;
  bottom: 0.85rem;
  left: 0.8rem;
  display: flex;
  height: 2rem;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(244, 239, 231, 0.1);
  border-radius: 999px;
  padding: 0.25rem 0.35rem;
  color: rgba(244, 239, 231, 0.45);
  background: rgba(244, 239, 231, 0.04);
  font-size: 0.45rem;
}

.cmp-ask-phone__composer > span:first-child,
.cmp-ask-phone__composer b {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(244, 239, 231, 0.08);
  color: #f4efe7;
  font-size: 0.72rem;
}

.cmp-ask-phone__composer b {
  margin-left: auto;
  background: var(--fp-accent-soft);
}

.cmp-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--fp-line);
  background: transparent;
  color: var(--fp-ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
}

.cmp-btn-ghost:hover {
  border-color: var(--fp-accent-soft);
  color: var(--fp-accent);
}

.cmp-info-box {
  max-width: 80rem;
  margin: 0 auto 56px;
  padding: 8px clamp(20px, 4vw, 32px) 0;
}

.cmp-info-box__inner {
  max-width: 42rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 1.5rem;
  border: 1px solid rgba(180, 70, 53, 0.18);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.96) 0%, rgba(252, 247, 241, 0.98) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 48px -28px rgba(33, 26, 23, 0.18);
}

.cmp-info-box__badge {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(180, 70, 53, 0.1);
  color: var(--fp-accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cmp-info-box h2 {
  margin: 0 0 0.85rem;
  font-family: var(--fp-font-heading);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 500;
  color: var(--fp-ink);
}

.cmp-info-box p,
.cmp-info-box ul {
  margin: 0.75rem 0;
  color: var(--fp-ink-soft);
  font-size: 1rem;
  line-height: 1.65;
}

.cmp-info-box ul {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.1rem;
  text-align: left;
}

.cmp-info-box__meta {
  margin-top: 1rem !important;
  font-size: 0.8125rem !important;
  color: var(--fp-ink-faint) !important;
}

.cmp-check-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  justify-content: center;
}

.cmp-check-card {
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(33, 26, 23, 0.08);
  background: var(--fp-card);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--fp-ink);
}

.cmp-chat-grid {
  display: grid;
  gap: 16px;
}

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

.cmp-chat {
  padding: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(33, 26, 23, 0.08);
  background: var(--fp-card);
}

.cmp-chat h3 {
  margin: 0 0 0.85rem;
  font-family: var(--fp-font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

.cmp-chat__bubble {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 1rem 1rem 1rem 0.35rem;
  background: var(--fp-dark);
  color: var(--fp-dark-ivory);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.cmp-chat__bubble em {
  font-style: normal;
  opacity: 0.92;
}

.cmp-chat p:last-child {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--fp-ink-soft);
}

.cmp-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(33, 26, 23, 0.08);
  background: linear-gradient(165deg, rgba(252, 249, 244, 0.98), rgba(245, 240, 232, 0.92));
}

.cmp-flow span {
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--fp-line);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-ink);
  text-align: center;
}

.cmp-flow i {
  font-style: normal;
  color: var(--fp-accent);
  font-weight: 700;
}

.cmp-table-wrap {
  overflow-x: auto;
  border-radius: 1.25rem;
  border: 1px solid var(--fp-line);
  background: #fff;
}

.cmp-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.cmp-table th,
.cmp-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--fp-line);
  text-align: left;
  vertical-align: top;
}

.cmp-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fp-ink-faint);
  background: var(--fp-ivory-deep);
}

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

.cmp-table td:first-child {
  font-weight: 600;
  color: var(--fp-ink);
  width: 38%;
}

.cmp-job-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  justify-content: center;
}

.cmp-job-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(33, 26, 23, 0.08);
  background: var(--fp-card);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.cmp-job-card:hover {
  transform: translateY(-2px);
  border-color: rgba(180, 70, 53, 0.22);
}

.cmp-job-card h3 {
  margin: 0;
  font-family: var(--fp-font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fp-ink);
}

.cmp-job-card p {
  margin: 0;
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--fp-ink-soft);
}

.cmp-job-card span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--fp-accent);
}

.cmp-migration {
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: 1.5rem;
  background: var(--fp-dark);
  color: var(--fp-dark-ivory);
}

.cmp-migration h2 {
  margin: 0 0 0.75rem;
  font-family: var(--fp-font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
}

.cmp-migration p {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: rgba(245, 239, 231, 0.82);
  line-height: 1.6;
}

.cmp-migration .fp-btn {
  background: var(--fp-dark-ivory);
  color: var(--fp-ink);
}

.cmp-fit-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .cmp-fit-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cmp-fit-card {
  padding: 1.25rem 1.35rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(33, 26, 23, 0.08);
  background: var(--fp-card);
}

.cmp-fit-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--fp-font-heading);
  font-size: 1.2rem;
  font-weight: 500;
}

.cmp-fit-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--fp-ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.cmp-fit-card li { margin: 0.35rem 0; }

.cmp-sources,
.cmp-disclosure {
  max-width: 44rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fp-ink-soft);
}

.cmp-sources ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.cmp-disclosure {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--fp-line);
  background: rgba(8, 18, 24, 0.03);
  font-size: 0.875rem;
}

.cmp-anchor { scroll-margin-top: 5rem; }
