/* ============================================================
   QuoTrak — /vs comparison pages
   Depends on the tokens in shell.css.
   ============================================================ */

:root { --gray-600: #4b5563; --green: #059669; --red: #b91c1c; }

/* Hero: same pattern as Features / Industries */
.feat-hero { position: relative; background: var(--navy-dark); padding: 72px 0 60px; text-align: center; overflow: hidden; }
.feat-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cdefs%3E%3Cpattern id='g' width='80' height='80' patternUnits='userSpaceOnUse'%3E%3Crect width='80' height='80' fill='none'/%3E%3Cpath d='M 80 0 L 0 0 0 80' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3Cpath d='M 20 0 L 20 80 M 40 0 L 40 80 M 60 0 L 60 80 M 0 20 L 80 20 M 0 40 L 80 40 M 0 60 L 80 60' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='0.5'/%3E%3Ccircle cx='0' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='0' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='0' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='80' cy='80' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='80' height='80' fill='url(%23g)'/%3E%3C/svg%3E");
}
.feat-hero-inner { position: relative; z-index: 1; }
.page-label { display: inline-flex; align-items: center; padding: 5px 14px; border-radius: 100px; background: rgba(255,255,255,0.10); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 20px; }
.feat-hero-heading { font-size: clamp(30px, 5vw, 50px); font-weight: 800; color: var(--white); letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 18px; }
.feat-hero-heading em { font-style: normal; color: var(--orange); }
.feat-hero-sub { font-size: 17px; color: rgba(255,255,255,0.70); line-height: 1.65; max-width: 620px; margin: 0 auto; }
.feat-hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-ghost-light { background: rgba(255,255,255,0.08); color: var(--white); border: 1px solid rgba(255,255,255,0.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.14); }
.hero-checked { margin-top: 18px; font-size: 12.5px; color: rgba(255,255,255,0.45); }

/* Article */
.vs-article { padding: 56px 0 64px; }
.vs-article .container { max-width: 860px; }
.vs-article h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.4px; color: var(--navy); line-height: 1.2; margin: 44px 0 14px; }
.vs-article h2:first-child { margin-top: 0; }
.vs-article h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 24px 0 8px; }
.vs-article p, .vs-article li { font-size: 16px; line-height: 1.7; color: var(--gray-700); }
.vs-article p { margin-bottom: 14px; }
.vs-article ul { padding-left: 22px; margin-bottom: 14px; }
.vs-article li { margin-bottom: 6px; }
.vs-article a { color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Verdict card */
.vs-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 8px; }
.vs-verdict-card { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 22px 24px; background: var(--gray-50); }
.vs-verdict-card.is-us { border-color: rgba(224,123,26,0.45); background: #fff8ef; }
.vs-verdict-tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; color: var(--gray-500); }
.vs-verdict-card.is-us .vs-verdict-tag { color: #b45309; }
.vs-verdict-card h3 { margin: 0 0 8px; font-size: 17px; }
.vs-verdict-card p { margin: 0; font-size: 15px; line-height: 1.6; }

/* Comparison table */
.vs-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin: 20px 0 10px; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.vs-table thead th { background: var(--navy); color: var(--white); padding: 13px 16px; text-align: left; font-weight: 700; }
.vs-table thead th:not(:first-child) { text-align: center; width: 24%; }
.vs-table thead th.is-us { background: var(--orange); }
.vs-table tbody tr { border-top: 1px solid var(--gray-200); }
.vs-table tbody tr.vs-group td { background: #e8eef5; padding: 7px 16px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.vs-table tbody td { padding: 11px 16px; color: var(--gray-700); vertical-align: middle; line-height: 1.4; }
.vs-table tbody td:not(:first-child) { text-align: center; font-size: 13.5px; }
.vs-table td.yes { color: var(--green); font-weight: 700; }
.vs-table td.no { color: var(--gray-400); }
.vs-table td.part { color: #b45309; }
.vs-table td small { display: block; font-size: 12px; color: var(--gray-500); font-weight: 400; margin-top: 2px; }
.vs-table th:first-child, .vs-table td:first-child { position: sticky; left: 0; background: var(--white); z-index: 1; min-width: 180px; box-shadow: 1px 0 0 var(--gray-200); }
.vs-table thead th:first-child { background: var(--navy); }
.vs-table tbody tr.vs-group td:first-child { background: #e8eef5; }
.vs-note { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; margin-bottom: 24px; }

/* Pros/cons lists */
.vs-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
.vs-pick-col h3 { margin-top: 0; }
.vs-pick-col ul { list-style: none; padding: 0; }
.vs-pick-col li { position: relative; padding-left: 26px; font-size: 15.5px; }
.vs-pick-col li svg { position: absolute; left: 0; top: 5px; width: 16px; height: 16px; }
.vs-pick-col.is-us li svg { color: var(--green); }
.vs-pick-col.is-them li svg { color: var(--navy); }

/* FAQ */
.vs-faq { border-top: 1px solid var(--gray-200); margin-top: 8px; }
.vs-faq details { border-bottom: 1px solid var(--gray-200); }
.vs-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-size: 16.5px; font-weight: 700; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.vs-faq summary::-webkit-details-marker { display: none; }
.vs-faq summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--gray-400); flex-shrink: 0; }
.vs-faq details[open] summary::after { content: "–"; }
.vs-faq details p { padding: 0 0 16px; margin: 0; font-size: 15.5px; }

/* CTA + related */
.vs-cta { margin-top: 40px; background: var(--navy); border-radius: var(--radius-lg); padding: 32px 28px; color: var(--white); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.vs-cta h2 { color: var(--white); margin: 0 0 6px; font-size: 22px; }
.vs-cta p { color: rgba(255,255,255,0.7); margin: 0; font-size: 15px; }
.vs-related { margin-top: 28px; font-size: 14.5px; color: var(--gray-500); }
.vs-related a { margin-right: 14px; }

/* /vs index */
.vs-index-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.vs-index-card { display: block; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 22px; background: var(--white); text-decoration: none !important; transition: box-shadow var(--transition), transform var(--transition); }
.vs-index-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.vs-index-card h3 { margin: 0 0 8px; font-size: 18px; }
.vs-index-card p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.vs-index-card span { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--orange); }

@media (max-width: 760px) {
  .vs-verdict, .vs-pick, .vs-index-grid { grid-template-columns: 1fr; }

  /* Phones: each feature becomes a card with the two values stacked under it. */
  .vs-table-wrap { overflow: visible; border: none; border-radius: 0; }
  .vs-table { min-width: 0; display: block; }
  .vs-table thead { display: none; }
  .vs-table tbody, .vs-table tr, .vs-table td { display: block; }
  .vs-table tbody tr { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 10px; padding: 12px 14px 8px; }
  .vs-table tbody tr.vs-group { border: none; border-radius: 0; margin: 18px 0 8px; padding: 0; }
  .vs-table tbody tr.vs-group td, .vs-table tbody tr.vs-group td:first-child { background: none; padding: 0; position: static; box-shadow: none; }
  .vs-table th:first-child, .vs-table td:first-child { position: static; min-width: 0; box-shadow: none; background: none; }
  .vs-table tbody td { padding: 0; text-align: left !important; }
  .vs-table tbody td:first-child { font-weight: 700; color: var(--navy); margin-bottom: 8px; }
  .vs-table tbody td[data-label] { display: flex; align-items: baseline; gap: 10px; padding: 5px 0; border-top: 1px dashed var(--gray-200); font-size: 14px; }
  .vs-table tbody td[data-label]::before { content: attr(data-label); flex: 0 0 96px; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gray-500); }
  .vs-table tbody td[data-label="QuoTrak"]::before { color: #b45309; }
  .vs-table td small { display: inline; margin-left: 4px; }
}
