:root {
  --background: hsl(0 0% 98.04%);
  --foreground: hsl(222.86 70% 3.92%);
  --card: hsl(0 0% 100%);
  --card-foreground: hsl(240 10% 3.92%);
  --primary: hsl(16.48 100% 54.31%);
  --primary-foreground: hsl(355.71 100% 97.25%);
  --secondary: hsl(240 4.76% 95.88%);
  --muted-foreground: hsl(219 11.24% 65.1%);
  --border: hsl(240 5.88% 90%);
  --ring: hsl(16.48 100% 54.31%);
  --brand-blue: #034fa3;
  --radius: 0.5rem;
  --feature-col: 9.25rem;
  --plan-col: 9.75rem;
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
p {
  margin: 0;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 1rem;
}

.brand-header {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 0.5rem 0 1.25rem;
  text-align: center;
}

.brand-logo {
  width: 6.25rem;
  height: 6.25rem;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 0.35rem;
  max-width: 42rem;
}

.eyebrow {
  margin: 0;
  color: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
}

h1 {
  color: var(--card-foreground);
  font-size: clamp(2rem, 9vw, 3.25rem);
  font-weight: 800;
  line-height: 0.95;
}

h2 {
  color: var(--card-foreground);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-copy p:not(.eyebrow),
.note-panel {
  color: var(--muted-foreground);
}

main {
  display: grid;
  gap: 1rem;
}

.summary-panel,
.comparison-card,
.note-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-lg);
}

.summary-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.summary-tags span,
.status-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) - 0.125rem);
  background: var(--secondary);
  padding: 0.35rem 0.6rem;
  color: var(--card-foreground);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
}

.comparison-card {
  overflow: hidden;
}

.comparison-heading {
  display: grid;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: var(--primary) transparent;
  scrollbar-width: thin;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}

.compare-table {
  width: 100%;
  min-width: calc(var(--feature-col) + (var(--plan-col) * 4));
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

th,
td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem;
  text-align: center;
  vertical-align: middle;
}

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

tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--secondary);
  color: var(--card-foreground);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

thead th:first-child,
tbody th {
  position: sticky;
  left: 0;
  z-index: 3;
  width: var(--feature-col);
  background: var(--card);
  text-align: left;
}

thead th:first-child {
  z-index: 4;
  background: var(--secondary);
}

tbody th {
  color: var(--card-foreground);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

tbody td {
  width: var(--plan-col);
  color: var(--muted-foreground);
  font-size: 0.9rem;
  font-weight: 650;
}

.plan-head {
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.plan-name {
  color: var(--card-foreground);
  font-size: 0.9rem;
  line-height: 1.1;
}

.plan-desc {
  color: var(--muted-foreground);
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.25;
  text-transform: none;
}

.price-cell {
  display: inline-grid;
  gap: 0.08rem;
  color: var(--card-foreground);
  font-size: 1.25rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.price-cell small {
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 750;
}

.pending-cell {
  color: var(--muted-foreground);
  font-weight: 800;
}

.included {
  color: var(--card-foreground);
}

.not-included {
  color: var(--muted-foreground);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  width: 100%;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 0.125rem);
  padding: 0.58rem 0.72rem;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  background: hsl(16.48 100% 49%);
}

.button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

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

.note-panel {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  box-shadow: none;
}

.note-panel strong {
  color: var(--card-foreground);
}

@media (min-width: 640px) {
  :root {
    --feature-col: 11rem;
    --plan-col: 11.5rem;
  }

  .page-shell {
    padding: 1.5rem;
  }

  .brand-header {
    grid-template-columns: auto minmax(0, 1fr);
    justify-items: start;
    text-align: left;
  }

  .summary-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .summary-tags {
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  :root {
    --feature-col: 12.5rem;
    --plan-col: 13.25rem;
  }

  .page-shell {
    padding: 2rem;
  }

  th,
  td {
    padding: 1rem;
  }
}
