/* Comparison articles (/vs/<competitor>, /contabo-alternative), on top of home.css and pages.css.
   Brand: night-blue art in rounded windows, their side quiet grey, ours teal with the green price. */

/* Hero: the illustration in an art window, and the date the prices were checked. */
.compare-art-window{border-radius:20px;background:#04145e;box-shadow:0 18px 44px rgba(4,20,94,.22)}
.compare-art{display:block}
.compare-art img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:cover}
.compare-checked{display:inline-flex;align-items:center;gap:8px;margin-top:24px!important;padding:6px 14px 6px 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text-2);font-size:13px;font-weight:500}
.compare-checked svg{width:16px;height:16px;color:var(--ok)}

/* Sections sit closer than on the homepage: one article, read top to bottom. */
.home .compare-verdict,.home .compare-prices,.home .compare-features-section,.home .compare-media,.home .compare-tables,.home .compare-picks,.home .compare-reasons,.home .compare-fair,.home .compare-others{padding:80px 0}
.home .compare-verdict h2,.home .compare-prices h2,.home .compare-features-section h2,.home .compare-media h2,.home .compare-tables h2,.home .compare-picks h2,.home .compare-reasons h2,.home .compare-others h2{font-size:clamp(28px,3.2vw,38px)}
.compare-prices,.compare-tables,.compare-reasons,.compare-others,.compare-media.is-flipped{background:var(--bg-alt)}
.compare-prose{max-width:68ch}
.compare-prose p{font-size:17px;line-height:1.7}
.compare-prose>p+p,.compare-prose h2+p{margin-top:16px!important}
.compare-prose .home-section-lead{margin-top:16px}

/* The short answer: two cards, ours first. */
.home .compare-verdict{padding-bottom:40px}
.compare-verdict-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:32px}
.compare-choice{display:flex;flex-direction:column;gap:18px;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--card-shadow)}
.compare-choice.is-ours{border-color:var(--accent-line);background:linear-gradient(140deg,rgba(11,110,136,.07),rgba(19,134,90,.04) 60%),var(--surface)}
.home .compare-choice h3{display:flex;align-items:center;gap:10px;font-size:20px}
.compare-choice h3 img{flex:none;border-radius:6px;background:#04145e}
.compare-choice .home-button{align-self:flex-start;margin-top:auto}
.compare-checks{display:flex;flex-direction:column;gap:12px}
.compare-checks li{display:flex;align-items:flex-start;gap:12px;color:var(--text);font-size:16px;line-height:1.55}
.compare-checks svg{flex:none;width:20px;height:20px;margin-top:2px;color:var(--ok)}
.compare-choice.is-theirs .compare-checks svg,.compare-checks.is-theirs svg{color:var(--text-2)}

/* On this page */
.compare-contents{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:0 0 56px}
.compare-contents p{margin-right:8px!important;color:var(--muted);font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.compare-contents a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--text);font-size:14px;font-weight:500;text-decoration:none}
.compare-contents a:hover{border-color:var(--accent);color:var(--accent)}

/* Price charts: a card per line, two bars per plan. */
.compare-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;margin-top:36px!important;color:var(--text-2);font-size:14px;font-weight:500}
.compare-legend span{display:inline-flex;align-items:center;gap:8px}
.compare-legend .is-theirs::before,.compare-legend .is-ours::before{content:"";width:14px;height:14px;border-radius:4px}
.compare-legend .is-theirs::before{background:#c9d4e0}
.compare-legend .is-ours::before{background:linear-gradient(90deg,#0b6e88,#13865a)}
.compare-legend-note{color:var(--muted)}
.compare-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:16px}
.compare-chart{margin:0;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--card-shadow)}
.compare-chart:only-child,.compare-chart:last-child:nth-child(odd){grid-column:1/-1}
.home .compare-chart h3{font-size:18px}
.compare-bars{display:flex;flex-direction:column;gap:18px;margin-top:18px!important}
.compare-bars li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;align-items:center}
.compare-bars-label{grid-column:1/-1;display:flex;flex-wrap:wrap;justify-content:space-between;gap:4px 12px;color:var(--text);font-size:14px;font-weight:600}
.compare-bars-vs{color:#0d5b3e}
.compare-bar{grid-column:1;position:relative;display:flex;align-items:center;height:26px;border-radius:7px;background:var(--bg)}
.compare-bar::before{content:"";position:absolute;inset:0 auto 0 0;width:var(--bar);border-radius:7px}
.compare-bar.is-theirs::before{background:#c9d4e0}
.compare-bar.is-ours::before{background:linear-gradient(90deg,#0b6e88,#13865a)}
.compare-bar-value{position:relative;z-index:1;padding-left:calc(var(--bar) + 8px);color:var(--text);font-size:13px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.compare-bar.is-inside .compare-bar-value{padding-left:10px}
.compare-bar.is-ours.is-inside .compare-bar-value{color:#fff}
.compare-bars-save{grid-column:2;grid-row:2/span 2;align-self:center;padding:4px 10px;border-radius:999px;background:#e3f4ec;color:#0d5b3e;font-size:12px;font-weight:700;white-space:nowrap}
.compare-prices .compare-prose:last-of-type{margin-top:28px}
.compare-source{margin-top:16px!important;color:var(--text-2);font-size:13px}

/* Feature table: ticks, crosses and warnings drawn from the data. */
.compare-features thead th:nth-child(2),.compare-features thead th:nth-child(3){color:var(--text);font-size:14px;letter-spacing:0;text-transform:none}
.compare-features thead th:nth-child(1){width:26%}
.compare-features thead th:nth-child(2){width:37%}
.compare-features tbody th{font-weight:600}
.compare-feature{color:var(--text-2)}
.compare-feature>span:last-child{vertical-align:middle}
.compare-feature.is-yes:nth-child(2){background:rgba(19,134,90,.05)}
.compare-mark{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:10px;border-radius:999px;vertical-align:middle;font-size:13px;font-weight:800;line-height:1}
.compare-mark svg{width:14px;height:14px}
.compare-mark.is-yes{background:#e3f4ec;color:#0d5b3e}
.compare-mark.is-no{background:#fde8e8;color:#a3292b}
.compare-mark.is-part{background:#fdf1dc;color:#8a5300}

/* Article sections with an illustration beside the text. */
.compare-media-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:56px;align-items:center}
.compare-media.is-flipped .compare-media-grid>.compare-art-window{order:-1}
.compare-media .compare-prose{max-width:none}
.compare-burst{margin-top:24px;padding:20px 22px;border:1px solid var(--accent-line);border-left:4px solid var(--accent);border-radius:12px;background:var(--accent-soft)}
.compare-burst-title{color:var(--text);font-weight:600}
.compare-burst p+p{margin-top:6px!important;font-size:15px;line-height:1.6}
.compare-step-list{margin-top:28px!important}

/* The full plan-by-plan tables. */
.compare-jump{display:flex;flex-wrap:wrap;gap:8px;margin-top:28px}
.compare-jump a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid var(--line-strong);border-radius:999px;background:var(--surface);color:var(--text);font-size:14px;font-weight:500;text-decoration:none}
.compare-jump a:hover{border-color:var(--accent);color:var(--accent)}
.compare-block{margin-top:48px;scroll-margin-top:96px}
.compare-block-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 20px}
.home .compare-block-head h3{font-size:22px}
.compare-block-head p{color:var(--text-2);font-size:15px;max-width:72ch}
.compare-block .home-table-box{margin-top:18px}
.compare-table th,.compare-table td{vertical-align:top}
.compare-table thead th:nth-child(1){width:25%}
.compare-table thead th:nth-child(2){width:23%}
.compare-table thead th:nth-child(3){width:27%;border-left:1px solid var(--line)}
.compare-table td.compare-match{border-left:1px solid var(--line)}
.compare-table small{display:block;margin-top:3px;color:var(--text-2);font-size:13px;font-weight:400;line-height:1.5}
.compare-plan{color:var(--text);font-weight:600}
.compare-theirs{color:var(--text-2)}
.compare-theirs strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.compare-ours strong{color:#0d5b3e;font-size:17px;font-weight:700;font-variant-numeric:tabular-nums}
.compare-ours s{margin-left:6px;color:var(--text-2);font-size:14px}
.compare-price-line{display:block;white-space:nowrap}
.compare-match .home-tag{display:inline-block;margin-left:4px;vertical-align:1px;font-size:11px;padding:2px 8px}
.compare-flag{display:inline-block;margin-left:6px;padding:2px 8px;border-radius:999px;background:#fdf1dc;color:#8a5300;font-size:11px;font-weight:600;vertical-align:1px;white-space:nowrap}
.compare-go{display:inline-flex;align-items:center;min-height:32px;margin-top:8px;padding:0 14px;border:1px solid var(--accent-line);border-radius:999px;color:var(--accent);font-size:13px;font-weight:600;text-decoration:none}
.compare-go:hover{background:var(--accent-soft);border-color:var(--accent)}
.compare-table small.compare-soon{display:inline-block;margin-top:8px;padding:2px 10px;border-radius:999px;background:var(--bg-alt);color:var(--text-2);font-size:12px;font-weight:500}
.compare-note{margin-top:20px!important;max-width:80ch;color:var(--text-2)}

/* Where they are better (and, on the alternative page, the burstable note beside it). */
.compare-fair-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.compare-fair-grid:has(.compare-burst){grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);align-items:start}
.compare-fair-grid>.compare-burst{margin-top:0}
.compare-better{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);grid-template-rows:auto 1fr;align-items:start;gap:12px 48px;padding:32px;border:1px solid #ead8b8;border-radius:16px;background:#fffaf1}
.compare-fair-grid:has(.compare-burst) .compare-better{grid-template-columns:minmax(0,1fr)}
.home .compare-better h2{font-size:24px;letter-spacing:-.015em}
.compare-better>p{color:var(--text-2);font-size:15px}
.compare-better .compare-checks{grid-column:2;grid-row:1/span 2}
.compare-fair-grid:has(.compare-burst) .compare-better .compare-checks{grid-column:auto;grid-row:auto;margin-top:8px}
.compare-better .compare-checks svg{color:#8a5300}

/* Other comparisons */
.compare-others-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px;margin-top:28px!important}
.compare-others-list a{display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:64px;padding:16px 20px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--text);font-weight:600;text-decoration:none;transition:border-color .2s}
.compare-others-list a:hover{border-color:var(--accent);color:var(--accent)}
.compare-arrow{color:var(--accent);font-size:20px;transition:transform .2s}
.compare-others-list a:hover .compare-arrow{transform:translateX(3px)}

/* Contabo alternative: one pick per line and reasons to switch. */
.compare-pick-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin-top:32px!important}
.compare-pick{display:flex;flex-direction:column;gap:10px;padding:24px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--card-shadow)}
.compare-pick-line{color:var(--accent);font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.compare-pick-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:12px 14px;border-radius:12px}
.compare-pick-row.is-theirs{background:var(--bg)}
.compare-pick-row.is-ours{border:1px solid var(--accent-line);background:var(--accent-soft)}
.compare-pick-row b{display:block;color:var(--text);font-size:15px;font-weight:600}
.compare-pick-row small{display:block;margin-top:2px;color:var(--text-2);font-size:13px;line-height:1.45}
.compare-pick-price{flex:none;color:var(--text-2);font-size:13px;text-align:right;white-space:nowrap}
.compare-pick-price strong{display:block;color:var(--text);font-size:18px;font-variant-numeric:tabular-nums}
.is-ours .compare-pick-price strong{color:#0d5b3e}
.compare-pick-save{align-self:flex-start;padding:4px 12px;border-radius:999px;background:#e3f4ec;color:#0d5b3e;font-size:13px;font-weight:600}
.compare-pick .home-link{align-self:flex-start;margin-top:auto;padding-top:6px}
.compare-picks-more{margin-top:28px!important}
.compare-reason-grid{margin-top:32px}
.compare-reason-grid p{font-size:15px}

@media(max-width:1023px){
  .compare-media-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .compare-media.is-flipped .compare-media-grid>.compare-art-window{order:0}
  .compare-chart-grid{grid-template-columns:minmax(0,1fr)}
  .compare-fair-grid:has(.compare-burst){grid-template-columns:minmax(0,1fr)}
  .compare-better{grid-template-columns:minmax(0,1fr)}
  .compare-better .compare-checks{grid-column:auto;grid-row:auto;margin-top:8px}
}
@media(max-width:820px){
  .compare-verdict-grid{grid-template-columns:minmax(0,1fr)}
  .compare-table thead th,.compare-features thead th{width:auto}
  .compare-table td::before,.compare-features td::before{content:attr(data-label);display:block;margin-bottom:4px;color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
  .home .compare-table td:first-child,.home .compare-table td:nth-child(3),.home .compare-features td:nth-child(3){color:inherit;font-size:inherit;margin-top:0}
  .compare-table tbody th,.compare-features tbody th{font-size:17px}
  .compare-table td,.compare-features td{margin-top:12px!important}
  .compare-table td.compare-match{margin-top:14px!important;padding-top:14px!important;border-left:0;border-top:1px dashed var(--line-strong)}
  .compare-feature.is-yes:nth-child(2){background:none}
  .compare-price-line{white-space:normal}
}
@media(max-width:640px){
  .home .compare-verdict,.home .compare-prices,.home .compare-features-section,.home .compare-media,.home .compare-tables,.home .compare-picks,.home .compare-reasons,.home .compare-fair,.home .compare-others{padding:56px 0}
  .home .compare-verdict{padding-bottom:28px}
  .compare-contents{padding-bottom:40px}
  .compare-choice,.compare-chart,.compare-better{padding:20px}
  .compare-prose p{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.compare-others-list a,.compare-arrow{transition:none}}
