:root {
  --ink: #23152a;
  --muted: #665a6c;
  --plum: #4d0868;
  --plum-dark: #260432;
  --violet: #7b109f;
  --gold: #f1cd91;
  --teal: #147a72;
  --green: #2f9e44;
  --surface: #ffffff;
  --surface-soft: #f7f4f8;
  --line: #ded7e2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-soft);
  color: var(--ink);
  font-family: "Nunito Sans", sans-serif;
}

button,
a {
  font: inherit;
}

.site-header {
  min-height: 72px;
  padding: 10px max(20px, calc((100% - 1180px) / 2));
  background: var(--plum-dark);
  border-bottom: 4px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img,
footer img {
  display: block;
  width: 205px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a,
footer a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible,
footer a:hover,
footer a:focus-visible {
  color: var(--gold);
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.catalog-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.preview-label,
.eyebrow,
.plan-name {
  color: var(--teal);
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 8px 0 12px;
  font-size: 42px;
  line-height: 1.1;
}

.catalog-intro p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.trust-list {
  display: grid;
  gap: 10px;
}

.trust-list span {
  min-height: 38px;
  padding: 8px 12px 8px 34px;
  border-left: 3px solid var(--teal);
  background: var(--surface);
  position: relative;
  font-weight: 700;
}

.trust-list span::before {
  content: "\2713";
  position: absolute;
  left: 12px;
  color: var(--teal);
}

.catalog-tabs {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  margin: 28px 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.catalog-tabs button {
  min-width: 150px;
  min-height: 42px;
  padding: 8px 18px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.catalog-tabs button[aria-selected="true"] {
  background: var(--plum);
  color: #ffffff;
}

.catalog-panel[hidden] {
  display: none;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 5px 0 0;
  font-size: 28px;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-card,
.plan-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-card {
  min-height: 310px;
  padding: 22px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 16px 18px;
}

.product-card > img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.product-card h3 {
  margin-bottom: 7px;
  font-size: 19px;
}

.product-card p,
.plan-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-card ul,
.plan-card ul {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-card li,
.plan-card li {
  padding: 7px 0 7px 23px;
  border-bottom: 1px solid #eee9f0;
  position: relative;
}

.product-card li::before,
.plan-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.product-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product-action strong,
.plan-card h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 26px;
}

.product-action small,
.plan-card h3 small {
  font-size: 13px;
}

.action-links,
.plan-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-action a,
.plan-actions a {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
}

.primary-action {
  background: var(--green);
  color: #ffffff;
}

.secondary-action {
  border: 1px solid #b8aabd;
  background: #ffffff;
  color: var(--plum);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #248137;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: var(--plum);
  background: #f8f3fa;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.report-sample {
  min-height: 220px;
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(190px, auto);
  gap: 24px;
  align-items: center;
}

.report-sample-preview {
  width: 132px;
  aspect-ratio: 210 / 297;
  border: 1px solid var(--line);
  border-radius: 4px;
  display: block;
  overflow: hidden;
}

.report-sample-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.report-sample-copy h3 {
  margin: 5px 0 8px;
  font-size: 20px;
}

.report-sample-copy p {
  max-width: 610px;
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.sample-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.sample-meta span {
  position: relative;
}

.sample-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--teal);
  position: absolute;
  top: 50%;
  left: -10px;
  transform: translateY(-50%);
}

.sample-action {
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--plum);
  border-radius: 5px;
  color: var(--plum);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}

.sample-action img {
  width: 20px;
  height: 20px;
  filter: brightness(0) saturate(100%) invert(15%) sepia(65%) saturate(2506%) hue-rotate(275deg) brightness(78%);
}

.sample-action:hover,
.sample-action:focus-visible {
  background: #f8f3fa;
}

.plan-card {
  min-height: 390px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}

.plan-card.featured {
  border: 2px solid var(--teal);
}

.recommended {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 9px;
  border-radius: 4px;
  background: var(--gold);
  color: #4c3714;
  font-size: 12px;
  font-weight: 700;
}

.plan-card h3 {
  margin: 8px 0;
}

.plan-card h3 span {
  color: var(--muted);
  font-family: "Nunito Sans", sans-serif;
  font-size: 14px;
}

.plan-card ul {
  flex: 1;
}

.plan-actions {
  width: 100%;
}

.plan-actions a {
  flex: 1 1 0;
}

.activation-note {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--gold);
  background: var(--plum-dark);
  color: #ffffff;
}

.activation-note p {
  margin: 4px 0 0;
  color: #e7dcea;
}

footer {
  min-height: 86px;
  padding: 18px max(20px, calc((100% - 1180px) / 2));
  background: var(--plum-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

footer div {
  display: flex;
  gap: 20px;
}

@media (max-width: 760px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .site-nav a {
    text-align: center;
  }

  footer div {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  main {
    width: min(100% - 22px, 1180px);
    padding-top: 28px;
  }

  .catalog-intro,
  .section-heading,
  .product-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .catalog-intro,
  .section-heading {
    gap: 22px;
  }

  h1 {
    font-size: 32px;
    line-height: 1.12;
  }

  .catalog-tabs {
    width: 100%;
  }

  .catalog-tabs button {
    min-width: 0;
  }

  .product-card {
    min-height: 0;
    grid-template-columns: 48px minmax(0, 1fr);
    padding: 18px;
  }

  .product-card > img {
    width: 48px;
    height: 48px;
  }

  .product-action {
    align-items: stretch;
    flex-direction: column;
  }

  .product-action a {
    width: 100%;
  }

  .action-links {
    width: 100%;
  }

  .recommended {
    position: static;
    align-self: flex-start;
  }

  .report-sample {
    min-height: 0;
    padding: 16px;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
  }

  .report-sample-preview {
    width: 88px;
  }

  .report-sample-copy h3 {
    font-size: 17px;
  }

  .sample-action {
    width: 100%;
    grid-column: 1 / -1;
  }
}
