
:root {
  --ink: #10172a;
  --muted: #5e687e;
  --line: #e5e9f1;
  --page: #66ccff;
  --card: #ffffff;
  --perplexity: #1b7a6e;
  --gold: #d79a00;
  --silver: #7d8999;
  --bronze: #a86438;
  --yes: #14804a;
  --no: #b42318;
  --radius: 20px;
  --shadow: 0 16px 45px rgba(20, 33, 61, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font: 16px/1.5 Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

/* Hero */

.hero {
  padding: 72px 0 110px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 20%, rgba(54, 225, 186, 0.24), transparent 32%),
    radial-gradient(circle at 15% 10%, rgba(91, 141, 255, 0.20), transparent 30%),
    linear-gradient(135deg, #07142d 0%, #102f4c 55%, #0d5f59 100%);
}

.eyebrow {
  display: inline-flex;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: #c9fff3;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 18px 0 12px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.lede {
  max-width: 690px;
  margin: 0;
  color: #d9e5ee;
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.notice {
  margin-top: 22px;
  color: #bde3de;
  font-size: 0.88rem;
}

/* Plan cards */

.rankings {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -70px;
  margin-bottom: 42px;
}

.plan {
  position: relative;
  min-width: 0;
  min-height: 355px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.plan.winner {
  border: 2px solid rgba(27, 122, 110, 0.48);
  transform: translateY(-12px);
}

.ribbon {
  position: absolute;
  top: 17px;
  right: -34px;
  width: 140px;
  padding: 6px 0;
  transform: rotate(38deg);
  color: #fff;
  background: var(--perplexity);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
}

.medal {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.7rem;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.14);
}

.gold {
  background: linear-gradient(135deg, #ffd767, var(--gold));
}

.silver {
  background: linear-gradient(135deg, #eef2f7, var(--silver));
}

.bronze {
  background: linear-gradient(135deg, #edb080, var(--bronze));
}

.rank {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.plan h2 {
  margin: 7px 0 12px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

/* Prices */

.price {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 4px 0;
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.price .unit {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.billing {
  min-height: 42px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

/* Buttons */

.button {
  display: block;
  padding: 12px 15px;
  border-radius: 11px;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.button:hover {
  filter: brightness(1.1);
}

.button:focus-visible {
  outline: 3px solid #7dd9c8;
  outline-offset: 3px;
}

.button:active {
  transform: translateY(1px);
}

.winner .button {
  background: var(--perplexity);
}

/* Feature table */

.table-wrap {
  margin: 0 0 48px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(20, 33, 61, 0.05);
}

.table-title {
  padding: 26px 28px 15px;
}

.table-title h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.table-title p {
  margin: 5px 0 0;
  color: var(--muted);
}

table {
  width: 100%;
  min-width: 740px;
  border-collapse: collapse;
}

th,
td {
  padding: 17px 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

th {
  color: var(--muted);
  background: #fbfcff;
  font-size: 0.79rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

th:first-child,
td:first-child {
  width: 37%;
  color: var(--ink);
  font-weight: 750;
  text-align: left;
}

th.perplexity,
td.perplexity {
  background: #f0faf7;
}

.check {
  color: var(--yes);
  font-size: 1.25rem;
  font-weight: 900;
}

.dash {
  color: #abb4c3;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Affiliate disclosure and footer */

.disclosure {
  margin: 0 0 54px;
  padding: 18px 20px;
  border-left: 4px solid var(--perplexity);
  border-radius: 10px;
  color: #3f4c65;
  background: transparent;
  font-size: 0.89rem;
}

footer {
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Promotional price decoration */

.card-price-container,
.table-price-container {
  position: relative;
}

.card-price-container {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.table-price-container {
  display: inline-block;
}

/* SVG strike-through, positioned over the price */

.crayon-strike {
  position: absolute;
  left: -6px;
  top: 45%;
  width: calc(100% + 12px);
  height: 18px;
  overflow: visible;
  pointer-events: none;
  z-index: 2;
}

/* FREE overlay */

.crayon-free {
  position: absolute;
  z-index: 3;
  color: #d60000;
  background: transparent;
  font-family: "Caveat", cursive, sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 0.8;
  white-space: nowrap;
  pointer-events: none;
  transform: rotate(-3deg);
}

.card-crayon-free {
  top: -14px;
  left: 14px;
  font-size: 5rem;
}

.table-crayon-free {
  top: -14px;
  left: 48px;
  font-size: 2.8rem;
}

/* Responsive layout */

@media (max-width: 820px) {
  .rankings {
    grid-template-columns: 1fr;
    margin-top: -52px;
  }

  .plan.winner {
    transform: none;
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 82px;
  }
}

@media (max-width: 480px) {
  .plan {
    padding: 22px;
  }

  .table-title {
    padding: 22px 20px 14px;
  }

  .price {
    font-size: 2.4rem;
  }

  .card-crayon-free {
    font-size: 4.2rem;
  }

  .table-crayon-free {
    left: 38px;
    font-size: 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button {
    transition: none;
  }
}
