/* ConsultDex vs Outskill — comparison-page-specific styles
   (layered on top of homepage-2-seo.css design tokens) */

/* ---------- Compare hero ---------- */
.cmp-hero {
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(180deg, var(--teal-900) 0%, var(--teal-700) 100%);
  color: #fff;
  padding: 72px 0 88px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cmp-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 28px 28px; opacity: .5; pointer-events: none;
}
.cmp-hero .eyebrow { color: rgba(255,255,255,.55); }
.cmp-hero h1 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(36px, 5vw, 60px); line-height: 1.04;
  letter-spacing: -0.02em; margin: 10px 0 0; color: #fff;
  text-wrap: balance; position: relative;
}
.cmp-hero h1 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  color: var(--coral);
}
.cmp-versus {
  display: inline-flex; align-items: center; gap: 22px;
  margin: 34px 0 10px; position: relative;
}
.cmp-versus .vs-name {
  font-family: var(--font-sans); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; color: #fff;
  display: inline-flex; align-items: center; gap: 10px;
}
.cmp-versus .vs-name small {
  display: block; font-family: var(--font-mono); font-weight: 400;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); margin-top: 4px;
}
.cmp-versus .vs-pill {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--coral); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-style: italic; font-weight: 600;
  font-size: 18px; flex: 0 0 52px;
  box-shadow: 0 8px 18px rgba(233,75,60,.35);
}
.cmp-hero-sub {
  font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.82);
  max-width: 620px; margin: 22px auto 0; position: relative;
}

/* ---------- Section frame ---------- */
.cmp-section { background: var(--cream); padding: 96px 0; }
.cmp-section.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cmp-section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.cmp-section-head h2 {
  font-family: var(--font-sans); font-weight: 700;
  font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08;
  letter-spacing: -0.02em; color: var(--ink-900); margin: 8px 0 14px;
  text-wrap: balance;
}
.cmp-section-head h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 600; color: var(--coral);
}
.cmp-section-head p { font-size: 17px; color: var(--ink-500); margin: 0; line-height: 1.55; }

/* ---------- Philosophy cards ---------- */
.cmp-philosophy { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.phil-card {
  border-radius: var(--radius-card); padding: 34px 32px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.phil-card.ours { background: var(--teal-800); color: #fff; }
.phil-card.theirs { background: var(--paper); border: 1px solid var(--line); color: var(--ink-700); }
.phil-tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 14px;
}
.phil-card.ours .phil-tag { color: var(--coral); }
.phil-card.theirs .phil-tag { color: var(--ink-400); }
.phil-name { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.phil-name strong { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.phil-card.ours .phil-name strong { color: #fff; }
.phil-card.theirs .phil-name strong { color: var(--ink-900); }
.phil-model {
  font-family: var(--font-serif); font-style: italic; font-size: 26px;
  line-height: 1.2; letter-spacing: -0.01em; margin: 14px 0 16px;
}
.phil-card.ours .phil-model { color: #fff; }
.phil-card.theirs .phil-model { color: var(--ink-900); }
.phil-desc { font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.phil-card.ours .phil-desc { color: rgba(255,255,255,.8); }
.phil-card.theirs .phil-desc { color: var(--ink-500); }
.phil-points { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 11px; }
.phil-points li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.phil-points .dot {
  width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; margin-top: 1px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px;
}
.phil-card.ours .phil-points li { color: rgba(255,255,255,.9); }
.phil-card.ours .phil-points .dot { background: rgba(233,75,60,.9); color: #fff; }
.phil-card.theirs .phil-points li { color: var(--ink-700); }
.phil-card.theirs .phil-points .dot { background: var(--teal-050); color: var(--teal-700); border: 1px solid var(--teal-100); }

/* ---------- Comparison table ---------- */
.cmp-table-wrap { max-width: 1000px; margin: 0 auto; }
.cmp-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.cmp-table thead th {
  text-align: left; padding: 22px 24px; vertical-align: bottom;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.cmp-table thead th.col-feature {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-400); font-weight: 500;
}
.cmp-table thead th.col-ours { background: var(--teal-800); color: #fff; }
.cmp-table thead th.col-theirs { color: var(--ink-700); }
.cmp-col-brand { display: flex; flex-direction: column; gap: 3px; }
.cmp-col-brand .cb-name { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.cmp-table thead th.col-ours .cb-name { color: #fff; }
.cmp-table thead th.col-theirs .cb-name { color: var(--ink-900); }
.cmp-col-brand .cb-kind { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.cmp-table thead th.col-ours .cb-kind { color: rgba(255,255,255,.6); }
.cmp-table thead th.col-theirs .cb-kind { color: var(--ink-400); }

.cmp-table tbody td { padding: 18px 24px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14.5px; line-height: 1.5; }
.cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:nth-child(even) td { background: rgba(234,243,245,.35); }
.cmp-table td.cell-feature { font-weight: 600; color: var(--ink-900); width: 24%; }
.cmp-table td.cell-feature small { display: block; font-weight: 400; color: var(--ink-400); font-size: 12.5px; margin-top: 3px; font-family: var(--font-mono); letter-spacing: .02em; }
.cmp-table td.cell-ours { color: var(--ink-800, var(--ink-700)); width: 38%; box-shadow: inset 3px 0 0 var(--coral); background: rgba(234,243,245,.5); }
.cmp-table tbody tr:nth-child(even) td.cell-ours { background: rgba(215,232,236,.55); }
.cmp-table td.cell-theirs { color: var(--ink-500); width: 38%; }
.cell-mark { display: inline-flex; align-items: center; gap: 9px; }
.cell-mark .mk { width: 18px; height: 18px; border-radius: 50%; flex: 0 0 18px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; margin-top: 1px; }
.mk.yes { background: var(--coral-soft); color: var(--coral); }
.mk.partial { background: #f4e9d4; color: var(--accent-ochre); }
.mk.no { background: #eef2f3; color: var(--ink-400); }
.cell-ours strong { color: var(--ink-900); font-weight: 600; }

/* ---------- Price compare ---------- */
.cmp-price { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; margin: 0 auto; }
.price-compare-card {
  border-radius: var(--radius-card); padding: 32px;
  position: relative; display: flex; flex-direction: column;
}
.price-compare-card.ours { background: var(--teal-900); color: #fff; box-shadow: 0 20px 50px rgba(17,41,50,.25); }
.price-compare-card.theirs { background: var(--paper); border: 1px solid var(--line); color: var(--ink-700); }
.pcc-kind { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.price-compare-card.ours .pcc-kind { color: var(--coral); }
.price-compare-card.theirs .pcc-kind { color: var(--ink-400); }
.pcc-name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.price-compare-card.ours .pcc-name { color: #fff; }
.price-compare-card.theirs .pcc-name { color: var(--ink-900); }
.pcc-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.pcc-amount .num { font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price-compare-card.ours .pcc-amount .num { color: #fff; }
.price-compare-card.theirs .pcc-amount .num { color: var(--ink-900); }
.pcc-amount .per { font-size: 15px; }
.price-compare-card.ours .pcc-amount .per { color: rgba(255,255,255,.7); }
.price-compare-card.theirs .pcc-amount .per { color: var(--ink-500); }
.pcc-note { font-size: 13.5px; margin: 8px 0 18px; line-height: 1.5; }
.price-compare-card.ours .pcc-note { color: rgba(255,255,255,.7); }
.price-compare-card.theirs .pcc-note { color: var(--ink-500); }
.pcc-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; font-size: 14px; }
.pcc-list li { display: flex; gap: 9px; align-items: flex-start; line-height: 1.45; }
.pcc-list .mk { width: 17px; height: 17px; border-radius: 50%; flex: 0 0 17px; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; margin-top: 1px; }
.price-compare-card.ours .pcc-list li { color: rgba(255,255,255,.88); }
.price-compare-card.ours .pcc-list .mk { background: rgba(233,75,60,.9); color: #fff; }
.price-compare-card.theirs .pcc-list li { color: var(--ink-600, var(--ink-500)); }
.price-compare-card.theirs .pcc-list .mk { background: #eef2f3; color: var(--ink-400); }
.pcc-cta { margin-top: auto; }

/* ---------- Honest "which is right" ---------- */
.cmp-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 920px; margin: 0 auto; }
.fit-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 30px; }
.fit-card h3 { font-size: 18px; font-weight: 700; color: var(--ink-900); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.fit-card h3 .fit-mark { width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.fit-card.ours h3 .fit-mark { background: var(--coral); }
.fit-card.theirs h3 .fit-mark { background: var(--teal-700); }
.fit-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.fit-card li { font-size: 14.5px; color: var(--ink-600, var(--ink-500)); line-height: 1.5; padding-left: 20px; position: relative; }
.fit-card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.fit-card.theirs li::before { background: var(--teal-600); }

/* ---------- Screen-reader only ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Disclaimer ---------- */
.cmp-disclaimer {
  max-width: 1000px; margin: 36px auto 0; padding: 16px 20px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; color: var(--ink-400); line-height: 1.55; text-align: center;
}

@media (max-width: 860px) {
  .cmp-philosophy, .cmp-price, .cmp-fit { grid-template-columns: 1fr; }
  .cmp-critique-grid { grid-template-columns: 1fr !important; }
  .cmp-table thead th, .cmp-table tbody td { padding: 14px 16px; }
  .cmp-table td.cell-feature, .cmp-table td.cell-ours, .cmp-table td.cell-theirs { width: auto; }
  .cmp-versus { gap: 14px; }
  .cmp-versus .vs-name { font-size: 18px; }
}
@media (max-width: 600px) {
  .cmp-table, .cmp-table thead, .cmp-table tbody, .cmp-table th, .cmp-table td, .cmp-table tr { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody tr { border-bottom: 2px solid var(--line); padding: 6px 0; }
  .cmp-table tbody tr:last-child { border-bottom: 0; }
  .cmp-table tbody td { border-bottom: 0; padding: 8px 16px; }
  .cmp-table td.cell-feature { padding-top: 16px; font-size: 16px; }
  .cmp-table td.cell-ours { box-shadow: none; border-left: 3px solid var(--coral); }
  .cmp-table td.cell-ours::before { content: "ConsultDex — "; font-weight: 700; color: var(--teal-700); }
  .cmp-table td.cell-theirs::before { content: "Outskill — "; font-weight: 700; color: var(--ink-400); }
}
