.swellmail-hero .swellmail-status,
.swellmail-status {
  color: #e3bdf3;
  font-size: 0.875rem;
}

.swellmail-hero .swellmail-secondary {
  background: #17131b;
  border: 1px solid #a982b8;
  color: white;
}

.hero.product-overview-hero {
  min-height: 0;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.product-overview-hero h1 {
  font-size: clamp(2.5rem, 4.75vw, 4.75rem);
}

.product-overview-hero p {
  margin-block: 0.85rem 0;
  max-width: 68ch;
  text-wrap: pretty;
}

.product-family-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-family-card {
  --accent: #dfb1f1;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 2;
  row-gap: 1.25rem;
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
  border: 1px solid #54415d;
  border-block-start: 3px solid var(--accent);
  border-radius: 1rem;
  background: linear-gradient(135deg, #241c2b, #17141b 75%);
}

.product-family-card + .product-family-card {
  --accent: #abcaff;
  border-color: #3d4a61;
  border-block-start-color: var(--accent);
  background: linear-gradient(135deg, #1b2431, #15181e 75%);
}

.product-family-card h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}

.product-family-card h2 a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  min-height: 44px;
}

.product-family-card h2 a span {
  color: var(--accent);
}

.product-family-card p,
.product-family-card dd {
  color: #dedbe3;
  line-height: 1.55;
}

.product-family-card p {
  margin: 0.65rem 0 0;
}

.product-family-options {
  border-block-start: 1px solid #ffffff32;
  padding-block-start: 1.15rem;
}

.product-family-options h3 {
  color: var(--accent);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}

.product-family-options dl,
.product-family-options ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-family-options dt {
  font-weight: 650;
}

.product-family-options dd {
  margin: 0.25rem 0 0;
}

.product-family-options dl > div + div {
  margin-block-start: 1.1rem;
}

.product-family-options li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 0.7rem;
}

.product-family-options li a small {
  display: block;
  margin-block: 0.12rem 0.45rem;
  font-size: 0.875rem;
  color: #ccc9d2;
}

.product-family-card a:is(:hover, :focus-visible) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 48rem) {
  .product-family-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.swellmail-related-product {
  margin-block-start: 1.5rem;
  padding-inline-start: 1.25rem;
  border-inline-start: 2px solid #a982b8;
}

.swellmail-related-product h3 {
  margin: 0;
}

.swellmail-related-product,
.swellmail-related-link,
#footer-products {
  scroll-margin-block-start: 7rem;
}

.swellmail-related-product p {
  margin-block: 0.5rem 0.75rem;
}

.swellmail-related-product a,
.swellmail-related-link a,
.swellmail-status a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.swellmail-section {
  scroll-margin-top: 7rem;
}

.swellmail-section h2 {
  margin-bottom: 1rem;
  text-wrap: balance;
}

.swellmail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.swellmail-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #4d3b57;
  border-radius: 1rem;
  background: #17131b;
}

.swellmail-panel h3 {
  margin: 0 0 0.75rem;
}

.swellmail-panel p:last-child {
  margin-bottom: 0;
}

.swellmail-extras {
  padding: 0;
  list-style: none;
}

@media (max-width: 40rem) {
  .swellmail-grid {
    grid-template-columns: 1fr;
  }
}

.swellmail-comparison {
  width: 100%;
  margin-top: 1rem;
  border-collapse: collapse;
  table-layout: fixed;
  background: #17131b;
}

.swellmail-comparison th,
.swellmail-comparison td {
  border-bottom: 1px solid #403547;
  padding: 0.8rem clamp(0.5rem, 2vw, 1.25rem);
  text-align: center;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.swellmail-comparison thead {
  background: #23182a;
  border-top: 2px solid #a982b8;
}

.swellmail-comparison th:first-child {
  width: 42%;
  text-align: start;
}

.swellmail-comparison tbody th {
  font-weight: 500;
}

.swellmail-comparison :is(td, th) + :is(td, th) {
  border-inline-start: 1px solid #342a39;
}

.swellmail-section .swellmail-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  max-width: none;
  margin: 1.5rem 0;
}

.swellmail-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.swellmail-mark {
  color: #ead4f2;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
}

.swellmail-deployments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
}

.swellmail-deployment {
  min-width: 0;
  margin: 0;
}

.swellmail-deployment figcaption {
  margin-bottom: 1rem;
}

.swellmail-deployment figcaption h3 {
  margin-bottom: 0.35rem;
}

.swellmail-deployment figcaption .swellmail-plan-tagline {
  margin: 0;
  color: #ead4f2;
  font-size: 1rem;
  line-height: 1.5;
}

.swellmail-flow,
.swellmail-protection {
  display: grid;
  list-style: none;
  margin: 0;
  padding: 0;
}

.swellmail-flow {
  grid-auto-rows: 1fr;
  gap: 1.5rem;
}

.swellmail-flow li,
.swellmail-protection li {
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #71577c;
  border-radius: 0.5rem;
  background: #261d2b;
  text-align: center;
  overflow-wrap: anywhere;
}

.swellmail-flow strong,
.swellmail-protection strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.35;
}

.swellmail-flow li > span,
.swellmail-protection li > span {
  color: #d2cbd5;
  font-size: 0.875rem;
  line-height: 1.45;
}

.swellmail-flow li + li::before {
  content: "↓" / "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  line-height: 1.5rem;
  color: #e3bdf3;
}

.swellmail-local-diagram .swellmail-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.swellmail-local-diagram .swellmail-flow li + li::before {
  content: "→" / "";
  left: auto;
  right: 100%;
  bottom: 50%;
  transform: translateY(50%);
  width: 1.5rem;
}

.swellmail-local-diagram .swellmail-flow li:nth-child(2),
.swellmail-hosted-diagram .swellmail-flow li:last-child {
  border-color: #b78ac8;
  background: #3b2346;
}

.swellmail-protection {
  position: relative;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2rem;
}

.swellmail-protection::before,
.swellmail-protection::after,
.swellmail-protection li::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.swellmail-protection::before {
  left: 50%;
  top: 0;
  height: 1rem;
  border-left: 1px solid #a282ae;
}

.swellmail-protection::after {
  left: calc(25% - 0.25rem);
  right: calc(25% - 0.25rem);
  top: 1rem;
  border-top: 1px solid #a282ae;
}

.swellmail-protection li::before {
  left: 50%;
  bottom: 100%;
  height: 1rem;
  border-left: 1px solid #a282ae;
}

.swellmail-protection li:last-child {
  border-style: dashed;
}

.swellmail-protection small {
  color: #e3bdf3;
  font-weight: 700;
}

/* On narrow cards, the protection branches leave the primary server on its right. */
@media (width <= 54rem) {
  .swellmail-deployment {
    container-type: inline-size;
  }
}

@container (max-width: 29rem) {
  .swellmail-local-diagram {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 1.5rem;
  }

  .swellmail-local-diagram .swellmail-flow,
  .swellmail-protection {
    grid-template-columns: minmax(0, 1fr);
  }

  .swellmail-local-diagram .swellmail-flow li + li::before {
    content: "↓" / "";
    left: 50%;
    right: auto;
    bottom: 100%;
    transform: translateX(-50%);
  }

  .swellmail-protection {
    grid-auto-rows: 1fr;
    padding: 0;
  }

  .swellmail-protection::before {
    top: 50%;
    left: -1.5rem;
    width: 0.75rem;
    height: 0;
    border: 0;
    border-top: 1px solid #a282ae;
  }

  .swellmail-protection::after {
    left: -0.75rem;
    right: auto;
    top: calc(25% - 0.25rem);
    bottom: calc(25% - 0.25rem);
    border: 0;
    border-left: 1px solid #a282ae;
  }

  .swellmail-protection li::before {
    left: auto;
    right: 100%;
    bottom: 50%;
    width: 0.75rem;
    height: 0;
    border: 0;
    border-top: 1px solid #a282ae;
  }
}

@media (width > 54rem) {
  .swellmail-deployments {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    row-gap: 0;
  }

  /* Share the caption, diagram and closing note rows across the two plans. */
  .swellmail-deployment {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }

  .swellmail-local-diagram,
  .swellmail-hosted-diagram {
    display: grid;
    align-items: stretch;
  }
}

.swellmail-feature-group {
  border-block-start: 1px solid #4d3b57;
}

.swellmail-feature-group:last-child {
  border-block-end: 1px solid #4d3b57;
}

.swellmail-feature-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.75rem;
  min-height: 44px;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.swellmail-feature-group > summary::-webkit-details-marker {
  display: none;
}

.swellmail-feature-group > summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  border: solid #e3bdf3;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.swellmail-feature-group[open] > summary::after {
  transform: rotate(225deg);
}

.swellmail-feature-group > summary:focus-visible {
  outline: 2px solid #e3bdf3;
  outline-offset: -2px;
}

.swellmail-feature-group .swellmail-comparison {
  margin: 0 0 1.25rem;
}

.swellmail-plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.swellmail-plan-card {
  --plan-accent: #74188a;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  gap: 1.25rem;
  border-radius: 1rem;
  border-top: 0.3rem solid var(--plan-accent);
  background: #f9f6fa;
  color: #211a25;
  padding: clamp(1.15rem, 3vw, 2.25rem);
}

.swellmail-plan-card + .swellmail-plan-card {
  --plan-accent: #3458a6;
  background: #f5f7fb;
}

.swellmail-plan-card h3 {
  margin: 0 0 0.65rem;
  color: #16121a;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.2;
}

.swellmail-plan-card p {
  margin: 0.35rem 0 0;
  color: #4c4251;
  font-size: 1rem;
  line-height: 1.55;
}

.swellmail-plan-card .swellmail-plan-tagline {
  color: var(--plan-accent);
  font-weight: 650;
  margin-bottom: 0.75rem;
}

.swellmail-plan-includes {
  border-top: 1px solid #cdc5d1;
  padding-top: 1rem;
}

.swellmail-plan-includes h4 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #211a25;
}

.swellmail-plan-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.swellmail-plan-includes li {
  display: grid;
  grid-template-columns: 1em 1fr;
  gap: 0.55rem;
  margin-block: 0.5rem;
  line-height: 1.5;
}

.swellmail-plan-includes li > span {
  color: var(--plan-accent);
  font-weight: 700;
}

.swellmail-plan-link {
  justify-self: start;
  align-self: end;
  color: var(--plan-accent);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 40rem) {
  .swellmail-plan-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.swellmail-add-ons {
  margin-block-start: clamp(2rem, 5vw, 4rem);
  scroll-margin-top: 7rem;
}

.swellmail-add-ons th:first-child {
  width: 52%;
}

.swellmail-service-description {
  display: block;
  margin-block-start: 0.35rem;
  color: #d2cbd5;
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5;
}

.swellmail-section .swellmail-reading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  max-width: none;
  margin: 1rem 0 0;
  padding-block: 0.75rem;
}

.swellmail-reading span {
  color: #d2cbd5;
  font-size: 0.9rem;
}

.swellmail-reading a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.swellmail-hosted-diagram .swellmail-flow {
  grid-auto-rows: auto;
}

.swellmail-recovery-note {
  margin: 0.4rem 0 0;
  padding: 0.6rem 0.25rem 0;
  border-top: 1px solid #71577c;
  text-align: start;
  font-size: 0.875rem;
  line-height: 1.5;
}

.swellmail-recovery-note dt {
  color: #ead4f2;
  font-weight: 700;
}

.swellmail-recovery-note dd {
  margin: 0.2rem 0 0;
}

.footer-product-list,
.footer-product-list ul,
.mega-product-list,
.mega-product-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-product-list > li > a,
.mega-product-list > li > a {
  color: #fff;
  font-weight: 650;
}

.footer-product-list ul,
.mega-product-list ul {
  border-inline-start: 1px solid #4d3b57;
  padding-inline-start: 0.85rem;
}

.mega-product-list,
.mega-product-list ul {
  display: grid;
  gap: 0.875rem;
}

.mega-product-list ul {
  margin-block-start: 0.875rem;
  border-color: #82728a;
}
