/* The homepage's short comparison table and the four small plan cards under it
 * (Buğra, 2026-10-11: the big pricing cards left the homepage to keep it short).
 *
 * The table is a ruled list of facts in words, like the comparison pages it
 * links to, not a grid of ticks and crosses. One thing is lit: our column, by
 * a faint band with a hairline frame. The other columns are never colored
 * against. Every rule is .v2-prefixed (`.v2 a` beats a one-class rule), and
 * coral stays for buttons only (tools/verify-v2.mjs).
 */

/* ===== The table ===== */
.v2 .hc { --hc-ink: #c2cade; --hc-band: rgba(108, 192, 255, 0.055); }
.v2 .hc-wrap { max-width: 1120px; margin: 0 auto; }
.v2 .hc-pick { display: none; }

.v2 .hc-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-variant-numeric: lining-nums;
}
.v2 .hc-table th,
.v2 .hc-table td {
  padding: 15px 22px;
  text-align: left;
  vertical-align: top;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}
.v2 .hc-table thead td,
.v2 .hc-table tbody th,
.v2 .hc-table tfoot td:first-child { width: 13%; padding-left: 0; }
.v2 .hc-table .hc-us { width: 27%; }

/* The four names. */
.v2 .hc-table thead th {
  padding-top: 22px;
  padding-bottom: 18px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--hc-ink);
}
.v2 .hc-table thead th.hc-us { color: var(--text-primary); }

/* One rule above every fact, running under the band as well. */
.v2 .hc-table tbody th,
.v2 .hc-table tbody td { border-top: 1px solid var(--hairline); }
.v2 .hc-table tbody th { color: var(--text-muted); font-size: 0.82rem; line-height: 1.7; font-weight: 500; }
.v2 .hc-table tbody td { color: var(--hc-ink); }
.v2 .hc-table tbody td.hc-us { color: var(--text-primary); font-weight: 500; }

/* Our column: one continuous band from the name to the last link. */
.v2 .hc-table .hc-us {
  background: var(--hc-band);
  border-left: 1px solid var(--accent-voice-line);
  border-right: 1px solid var(--accent-voice-line);
}
.v2 .hc-table thead .hc-us {
  border-top: 1px solid var(--accent-voice-line);
  border-radius: 14px 14px 0 0;
  /* A thin lit edge along the top, the only flourish on the table. */
  box-shadow: inset 0 2px 0 -1px var(--accent-voice);
}
.v2 .hc-table tfoot .hc-us {
  border-bottom: 1px solid var(--accent-voice-line);
  border-radius: 0 0 14px 14px;
}

/* Where each column leads. */
.v2 .hc-table tfoot td { padding-top: 16px; padding-bottom: 20px; border-top: 1px solid var(--hairline); }
.v2 .hc-table tfoot a,
.v2 .hc-note a {
  color: var(--accent-voice);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.v2 .hc-table tfoot a:hover,
.v2 .hc-note a:hover { border-bottom-color: currentColor; }
.v2 .hc .arrow { display: inline-block; margin-left: 6px; transition: transform 0.15s ease; }
.v2 .hc a:hover .arrow { transform: translateX(3px); }

.v2 .hc-note {
  max-width: 1120px;
  margin: var(--s-3) auto 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.7;
}
.v2 .hc-note time { color: var(--hc-ink); }
.v2 .hc-note a { margin-left: 6px; }

/* Between a phone and a desktop the long names of the facts need less room. */
@media (max-width: 1000px) {
  .v2 .hc-table th,
  .v2 .hc-table td { padding-left: 14px; padding-right: 14px; font-size: 0.88rem; }
  .v2 .hc-table tfoot a { white-space: normal; }
}

/* Phones: DonkeyCMS beside one other product, chosen above the table. */
@media (max-width: 760px) {
  .v2 .hc-pick {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--s-2);
    color: var(--text-muted);
    font-size: 0.86rem;
  }
  /* "DonkeyCMS vs" sits on its own line, so the three buttons always share
     one row, each a third of it (beside the words, the last one dropped to a
     second row on a 393px phone). */
  .v2 .hc-pick span { flex: 0 0 100%; }
  .v2 .hc-pick label {
    flex: 1 1 0;
    min-width: 0;
    min-height: 40px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--hairline-strong);
    border-radius: var(--radius-btn);
    color: var(--hc-ink);
    font-weight: 600;
    cursor: pointer;
  }
  .v2 .hc-table,
  .v2 .hc-table thead,
  .v2 .hc-table tbody,
  .v2 .hc-table tfoot { display: block; }
  .v2 .hc-table tr { display: grid; grid-template-columns: 1fr 1fr; }
  .v2 .hc-table thead td,
  .v2 .hc-table tfoot td:first-child { display: none; }
  .v2 .hc-table th,
  .v2 .hc-table td,
  .v2 .hc-table .hc-us,
  .v2 .hc-table tbody th { width: auto; padding: 10px 12px; font-size: 0.88rem; }
  /* No band here: the facts' names run across both columns and would cut it
     into pieces. Our side is told apart by its brighter, heavier text. */
  .v2 .hc-table .hc-us,
  .v2 .hc-table thead .hc-us,
  .v2 .hc-table tfoot .hc-us { background: none; border: 0; border-radius: 0; box-shadow: none; }
  .v2 .hc-table th,
  .v2 .hc-table td { padding-left: 0; }
  .v2 .hc-table thead tr { border-bottom: 1px solid var(--hairline-strong); }
  .v2 .hc-table tfoot td { border-top: 1px solid var(--hairline); }
  /* The fact's name on its own line across both products. */
  .v2 .hc-table tbody th { grid-column: 1 / -1; padding: 12px 0 2px; }
  .v2 .hc-table tbody td { border-top: 0; padding-top: 6px; padding-bottom: 14px; }
  .v2 .hc-table thead th { padding-top: 14px; padding-bottom: 12px; font-size: 0.98rem; }
  .v2 .hc-table tfoot a { white-space: normal; }
  /* Both products' answers start on the same line and the same left edge as the fact's name. */
  .v2 .hc-table tbody td,
  .v2 .hc-table tbody td.hc-us { padding: 6px 12px 14px 0; }
  .v2 .hc-table thead th,
  .v2 .hc-table thead th.hc-us,
  .v2 .hc-table tfoot td,
  .v2 .hc-table tfoot td.hc-us { padding-left: 0; padding-right: 12px; }
}

/* ===== The three small plan cards (four until the Agency plan retired, 2026-10-19) ===== */
.v2 .pm-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-2);
}
@media (max-width: 760px) { .v2 .pm-grid { grid-template-columns: 1fr; max-width: 420px; } }
/* The monthly price, a smaller line under the one-time one (2026-10-19). */
.v2 .pm-alt { margin-top: 2px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 520px) { .v2 .pm-grid { grid-template-columns: 1fr; } }

.v2 a.pm-card {
  display: flex;
  flex-direction: column;
  padding: 22px 22px 18px;
  border: 1px solid var(--hairline-strong);
  border-radius: 14px;
  background: rgba(28, 39, 64, 0.55);
  color: var(--text-primary);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.v2 a.pm-card:hover,
.v2 a.pm-card:focus-visible { border-color: var(--accent-voice-line); background: rgba(36, 48, 77, 0.7); }
.v2 .pm-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
}
.v2 .pm-tag {
  padding: 2px 8px;
  border: 1px solid var(--accent-voice-line);
  border-radius: var(--radius-pill);
  color: var(--accent-voice);
  font: 600 10.5px/1.5 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.v2 .pm-price {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-variant-numeric: lining-nums;
}
.v2 .pm-per {
  margin-left: 4px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.v2 .pm-pitch { margin-top: 10px; color: #c2cade; font-size: 0.9rem; line-height: 1.5; }
.v2 .pm-limits {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
/* Pushed to the card's foot, so the four lines sit level whatever the pitch's length. */
.v2 .pm-card .pm-limits { margin-top: auto; }
.v2 .pm-card .pm-pitch { margin-bottom: 14px; }
.v2 .pm-limits .arrow { color: var(--accent-voice); transition: transform 0.15s ease; }

/* A plan on sale (a campaign covers its monthly price): the full cards' sale lime
   (pricing.css), smaller. The discount sits at the right of the price line; the
   card's top corner is taken by "Most popular" on Business. */
.v2 a.pm-card.pm-sale {
  border-color: rgba(219, 238, 92, 0.7);
  box-shadow: 0 0 0 1px rgba(219, 238, 92, 0.28), 0 14px 44px -26px rgba(219, 238, 92, 0.45);
  background-image: linear-gradient(180deg, rgba(219, 238, 92, 0.07), rgba(219, 238, 92, 0) 140px);
}
.v2 a.pm-card.pm-sale:hover,
.v2 a.pm-card.pm-sale:focus-visible { border-color: rgba(219, 238, 92, 0.95); }
/* Four cards in a row are too narrow for a sale price below 1120px (measured: at
   961px the paid cards pushed Free to half their width), so during a sale they
   go two to a row there. */
@media (min-width: 961px) and (max-width: 1119px) { .v2 .pm-grid-sale { grid-template-columns: repeat(2, 1fr); max-width: 760px; } }
.v2 .pm-sale .pm-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.v2 .pm-was {
  margin-right: 8px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
  text-decoration-thickness: 1.5px;
}
.v2 .pm-now { color: var(--accent-new); }
.v2 .pm-off { color: var(--accent-new); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.v2 .pm-deal {
  min-height: 18px;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--text-muted);
}
.v2 .pm-sale .pm-deal { color: var(--accent-new); }   /* lime only on a card on sale; the empty spacer on the others stays plain */
.v2 a.pm-card:hover .pm-limits .arrow { transform: translateX(3px); }

.v2 .pm-more { margin-top: var(--s-4); text-align: center; font-size: 15px; }
.v2 .pm-more a {
  color: var(--accent-voice);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}
.v2 .pm-more a:hover { border-bottom-color: currentColor; }
.v2 .pm-more .arrow { display: inline-block; margin-left: 6px; }
