:root {
  --bg: #efedf9;
  --bg-2: #f6f4fb;
  --card: rgba(248, 248, 253, 0.95);
  --line: #d8dceb;
  --text: #46506d;
  --heading: #2f3d69;
  --silver: #8eb7e6;
  --gold: #ddb14f;
  --platinum: #7ea2ec;
  --silver-soft: #dde4f8;
  --gold-soft: #eedfbe;
  --platinum-soft: #dfe5ff;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(255,255,255,0.65), transparent 42%),
    linear-gradient(180deg, #efedf8 0%, #ece9f5 100%);
}

.page {
  min-height: 100vh;
  padding: 38px 24px 56px;
}

.comparison-wrap {
  max-width: 1320px;
  margin: 0 auto;
}

h1 {
  margin: 10px 0 28px;
  text-align: center;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.1;
  color: #2d3d6d;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.comparison-card {
  background: rgba(247, 247, 252, 0.92);
  border: 1px solid #e3e5f0;
  border-radius: 28px;
  box-shadow: 0 20px 42px rgba(133, 145, 187, 0.18);
  overflow: hidden;
}

.plan-hero-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.55fr) repeat(3, minmax(170px, 0.95fr));
  align-items: stretch;
}

.empty-space {
  border-right: 1px solid var(--line);
}

.plan-hero {
  min-height: 122px;
  display: grid;
  place-items: center;
  gap: 10px;
  border-right: 1px solid var(--line);
  padding: 18px 12px 16px;
}

.plan-hero.gold.active {
  background: rgba(244, 235, 214, 0.58);
}

.hero-title {
  font-size: clamp(24px, 2.2vw, 38px);
  font-weight: 800;
  color: #2f3d69;
}

.gold-text {
  color: #9c6f16;
}

.hero-icon,
.summary-icon {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
}

.medal {
  border-radius: 999px;
  position: relative;
}

.medal::before,
.medal::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.silver-medal {
  background: #dfe5ef;
  border: 2px solid #aeb8ca;
}

.silver-medal::after {
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.9);
}

.gold-medal {
  background: #f3d48b;
  border: 2px solid #c79420;
}

.gold-medal::after {
  inset: 8px;
  border: 2px solid rgba(255,255,255,0.85);
}

.diamond {
  color: #4d97ff;
}

.diamond svg {
  width: 100%;
  height: 100%;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap::-webkit-scrollbar {
  height: 10px;
}

.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(137, 150, 196, 0.35);
  border-radius: 999px;
}

.table-wrap::-webkit-scrollbar-track {
  background: transparent;
}

table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
}

thead th {
  padding: 16px 14px;
  font-size: 18px;
  font-weight: 800;
  color: #3d4a76;
  border-right: 1px solid var(--line);
}

thead th:last-child,
tbody td:last-child { border-right: 0; }

.col-number {
  width: 68px;
  text-align: center;
  background: #dce2f5;
}

.col-feature {
  width: 370px;
  background: #dce2f5;
}

.tier { width: 200px; text-align: center; }
.silver-head { background: #dee4f6; }
.gold-head { background: #ecdcb5; color: #976b12; }
.platinum-head { background: #dde4fd; }

tbody td {
  padding: 12px 14px;
  font-size: 17px;
  border-bottom: 1px solid rgba(216, 220, 235, 0.8);
  border-right: 1px solid var(--line);
  vertical-align: middle;
  text-align: center;
}

tbody tr:nth-child(odd) td { background: rgba(247, 247, 252, 0.75); }
tbody tr:nth-child(even) td { background: rgba(243, 244, 250, 0.78); }

.align-left {
  text-align: left;
}

.check,
.dash {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  position: relative;
}

.check::after {
  content: "✓";
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  transform: translateY(-0.5px);
}

.check.silver { background: var(--silver); }
.check.gold { background: var(--gold); }
.check.platinum { background: var(--platinum); }

.dash {
  width: 18px;
  height: 2px;
  background: #9aa3c0;
  border-radius: 999px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 28px;
}

.summary-card {
  background: rgba(247, 247, 252, 0.95);
  border: 1px solid #e2e5f0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 16px 30px rgba(133, 145, 187, 0.14);
}

.summary-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  background: rgba(241, 243, 250, 0.9);
}

.gold-top {
  background: rgba(247, 241, 229, 0.95);
}

.summary-head h2 {
  margin: 0;
  font-size: clamp(22px, 2vw, 36px);
  line-height: 1;
  color: #44527b;
}

.summary-card ul {
  list-style: none;
  margin: 0;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.summary-card li {
  position: relative;
  padding-left: 28px;
  font-size: 18px;
}

.summary-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #5ea4f1;
  font-weight: 800;
}

.gold-card li::before {
  color: #c08d24;
}

@media (max-width: 1024px) {
  .plan-hero-row {
    grid-template-columns: minmax(300px, 1.45fr) repeat(3, minmax(150px, 1fr));
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page {
    padding: 24px 14px 40px;
  }

  h1 {
    margin-bottom: 20px;
  }

  .plan-hero-row {
    grid-template-columns: 260px repeat(3, 160px);
  }

  .summary-card li {
    font-size: 16px;
  }
}
