/*
 * Urbanist font weights loaded via Google Fonts in HBS templates: 400, 500, 700
 * - 400: body text
 * - 500: headings (h2/h3/h4)
 * - 700: button label
 */

:root {
  --content-width: 420px;
  --page-pad-x: 20px;
  --gap: 24px;
  --radius: 24px;

  --brand: #457b9d;
  --brand-hover: #3b6b89;
  --card-image-bg: #e3ecf3;
  --card-content-bg: #f6f7f8;
  --text: #1e1e20;
  --muted: #757575;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 40px var(--page-pad-x) 64px;
  font-family: 'Urbanist', sans-serif;
  background: #ffffff;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* brand banner sits above the content column, centered on the page */
body > img {
  display: block;
  height: 32px;
  margin: 0 auto 32px;
}

h2 {
  margin: 0;
  font-weight: 500;
  font-size: 40px;
  line-height: 1.1;
}

h3 {
  margin: 0 0 4px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
}

h4 {
  margin: 0 0 4px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0.2px;
  color: var(--muted);
}

p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

/*
 * The single page container: one centered column, one left edge. Every direct
 * child (heading, card, fallback, feature card) inherits its width and padding,
 * which is what keeps the blocks aligned across breakpoints.
 */
.container {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.card-container {
  margin-top: var(--gap);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
}

.card img {
  max-width: 100%;
}

.card .image {
  background-color: var(--card-image-bg);
  display: flex;
  flex-grow: 1; /* stretch to equal height when cards sit side by side */
  align-items: center;
  justify-content: center;
  padding-top: 38px;
  /* the svg images carry an intrinsic bottom margin */
  padding-bottom: 20px;
}

.card .content {
  background-color: var(--card-content-bg);
  flex-grow: 1; /* stretch to equal height when cards sit side by side */
  padding: 24px 20px;
}

.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 46px;
  padding: 0 16px;
  background-color: var(--brand);
  color: #ffffff;
  text-decoration: none;
  border-radius: 80px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.2px;
  transition: background-color 0.15s ease;
}

.button:hover {
  background-color: var(--brand-hover);
}

.fallback {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blank-card {
  margin-top: 40px;
}

.blank-card h2 {
  margin-bottom: 8px;
}

.blank-card .bullet-points {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.blank-card .bullet-points .bullet-point {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
