/* =========================
   GLOBAL SETTINGS
========================= */

:root {
  /* Brand colors */
  --red: #e63946;
  --red-dark: color-mix(in srgb, var(--red) 78%, black);
  --black: #111111;
  --dark: #333333;
  --muted: #666666;
  --bg: #fafafa;
  --white: #ffffff;
  --soft: #f2f2f2;
  --border: #e8e8e8;
  --pink: color-mix(in srgb, var(--red) 8%, white);
  --accent-soft: color-mix(in srgb, var(--red) 5%, white);
  --accent-border: color-mix(in srgb, var(--red) 18%, white);
  --accent-shadow: color-mix(in srgb, var(--red) 25%, transparent);
  --footer: #0f1113;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  --shadow-strong: 0 22px 55px rgba(0, 0, 0, 0.12);

  /* Type */
  --font-heading: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --max: 1120px;
  --radius: 16px;

  /* Shared button widths */
  --button-width: 240px;
  --button-width-mobile: 280px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--black);
  font-family: var(--font-body);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  object-fit: cover;
}

p {
  color: var(--dark);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  letter-spacing: -0.04em;
  line-height: 1.18;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  margin: 0 0 24px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 18px;
  text-align: center;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

section {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--red);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.large-text {
  font-size: 1.35rem;
  max-width: 460px;
}

/* Shared button styles used by links and Ghost member forms. */
.button {
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  padding: 15px 24px;
  font-family: inherit;
  font-weight: 800;
  border: 1px solid var(--border);
  cursor: pointer;
  width: min(100%, var(--button-width));
  text-align: center;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.button.primary {
  background: var(--red);
  color: white;
  border-color: var(--red);
}

.button.primary:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.button.secondary {
  background: white;
}

.button.secondary:hover {
  border-color: var(--red);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* Round icon badges used throughout the homepage. */
.icon,
.section-icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--pink);
  color: var(--red);
}

.icon svg,
.section-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 2.6;
}

.large-icon {
  width: 64px;
  height: 64px;
}

.large-icon svg {
  width: 30px;
  height: 30px;
}

/* =========================
   HEADER
========================= */

.site-header {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 26px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: end;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  transition: color 0.2s ease, transform 0.2s ease;
}

.brand:hover {
  color: var(--red);
  transform: translateY(-2px);
}

#brand-container {
  display: grid;
  align-items: end;
  justify-items: start;
  gap: 0;
}

.site-logo-mark {
  height: 28px;
  width: auto;
}

.site-logo-upload {
  width: auto;
  max-width: 190px;
  max-height: 42px;
  object-fit: contain;
}

.brand span {
  font-size: 1rem;
  align-self: end;
}

.nav {
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 28px;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:not(.nav-cta):hover {
  color: var(--red);
  transform: translateY(-2px);
}

.nav-cta {
  display: inline-grid;
  place-items: center;
  width: min(100%, var(--button-width));
  background: var(--red);
  color: white;
  padding: 12px 18px;
  border-radius: 6px;
  text-align: center;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
}

/* =========================
   HERO
========================= */

#hero {
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 42px;
  align-items: center;
}

#hero-copy {
  display: grid;
  gap: 0;
}

#hero-note {
  max-width: 520px;
  padding-left: 18px;
  border-left: 3px solid var(--red);
}

#hero-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--button-width)));
  justify-content: start;
  gap: 18px;
  margin-top: 26px;
}

/* Keep the hero call-to-action buttons matching in width. */
#hero-buttons .button {
  width: 100%;
}

#hero-image-wrap {
  display: grid;
  align-items: end;
  justify-items: center;
  height: 100%;
}

#hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

/* =========================
   STATS
========================= */

#stats {
  width: min(900px, calc(100% - 48px));
  margin-top: 36px;
  margin-bottom: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat-card {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 7px;
  padding: 18px 8px;
}

.stat-card + .stat-card {
  border-left: 1px solid var(--border);
}

.stat-card strong {
  display: block;
  font-weight: 800;
  line-height: 1.1;
  font-size: 0.9rem;
}

.stat-card p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  line-height: 1.2;
}

.stat-card .icon {
  width: 34px;
  height: 34px;
}

.stat-card .icon svg {
  width: 18px;
  height: 18px;
}

/* =========================
   WHY SECTION
========================= */

#why {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 52px 24px 66px;
  gap: 20px;
}

/* Small red underline used under section headings. */
#why h2::after,
#help h2::after,
#articles h2::after,
#newsletter-title h2::after,
#bio-copy h2::after {
  content: "";
  display: block;
  height: 3px;
  background: var(--red);
}

#why h2::after,
#help h2::after,
#articles h2::after {
  width: 44px;
  margin: 14px auto 0;
}

#why p {
  max-width: 680px;
  margin: 0;
  font-size: 1.08rem;
}

/* =========================
   HELP SECTION
========================= */

#help {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 42px 0 72px;
}

#help-cards {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin: 42px auto;
}

.help-card {
  display: grid;
  grid-template-rows: 56px minmax(34px, auto) 1fr;
  justify-items: center;
  align-items: start;
  row-gap: 20px;
  text-align: center;
  padding: 26px 20px;
}

/* Align help card content across all three desktop cards. */
.help-card .section-icon {
  grid-row: 1;
  width: 52px;
  height: 52px;
}

.help-card h3 {
  grid-row: 2;
  margin: 0;
}

.help-card p {
  grid-row: 3;
  max-width: 260px;
  margin: 0;
}

/* =========================
   NEWSLETTER SECTION
========================= */

#newsletter {
  width: 100%;
  padding: 46px 18px 34px;
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fafafa 100%);
  border-top: 1px solid var(--accent-border);
  border-bottom: 1px solid var(--accent-border);
}

#newsletter-title {
  width: min(100%, 620px);
  display: grid;
  justify-items: center;
  gap: 18px;
}

#newsletter-title h2 {
  margin: 0;
  max-width: 460px;
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.18;
}

#newsletter-title h2::after {
  width: 58px;
  margin: 18px auto 0;
}

#newsletter p {
  width: min(100%, 520px);
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

#newsletter-form {
  width: min(100%, 440px);
  display: grid;
  margin-top: 6px;
}

/* Ghost native member signup form. */
form[data-members-form] {
  display: grid;
  grid-template-columns: 1fr auto;
}

form[data-members-form] input {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px 0 0 7px;
  padding: 15px 18px;
  font: inherit;
  background: white;
}

form[data-members-form] button {
  background: var(--red);
  color: white;
  border-color: var(--red);
  border-radius: 0 7px 7px 0;
  width: min(100%, var(--button-width));
  font: inherit;
  font-weight: 800;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

form[data-members-form] button:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

/* =========================
   NEWSLETTER POPUP
========================= */

.newsletter-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 100;
}

.newsletter-modal.is-open {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 19, 0.68);
}

.newsletter-modal-card {
  position: relative;
  width: min(100%, 680px);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 34px 40px 28px;
  text-align: center;
  background: white;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.25s ease;
  z-index: 1;
}

.newsletter-modal.is-open .newsletter-modal-card {
  transform: translateY(0) scale(1);
}

.newsletter-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--black);
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.newsletter-modal-close:hover {
  background: var(--pink);
  transform: translateY(-2px);
}

.newsletter-modal-card h2 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.3rem);
  line-height: 1.08;
}

.newsletter-modal-card h2 span {
  color: var(--red);
}

.newsletter-modal-card p {
  max-width: 560px;
  margin: 0;
  color: var(--dark);
  font-size: 1.05rem;
}

.newsletter-modal-proof {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.newsletter-modal-proof > span {
  color: var(--red);
}

.newsletter-modal-proof svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.newsletter-modal-proof h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0;
}

.newsletter-modal-proof p {
  max-width: none;
  margin-top: 2px;
  font-size: 0.95rem;
}

.newsletter-modal-card form[data-members-form] {
  width: 100%;
  margin-top: 0;
}

.newsletter-modal-card form[data-members-form] button {
  min-width: 210px;
}

.newsletter-modal-benefits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.newsletter-modal-benefits li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.newsletter-modal-benefits span {
  color: var(--muted);
}

.newsletter-modal-benefits svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

body.newsletter-modal-open {
  overflow: hidden;
}

/* =========================
   COOKIE CONSENT
========================= */

.cookie-consent {
  position: fixed;
  right: 24px;
  bottom: 24px;
  left: 24px;
  z-index: 90;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-consent.is-visible {
  display: flex;
}

.cookie-consent-card {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 22px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  pointer-events: auto;
}

.cookie-consent-copy {
  display: grid;
  gap: 6px;
}

.cookie-consent-card h2,
.cookie-settings-card h2,
.cookie-setting-row h3 {
  margin: 0;
  text-align: left;
}

.cookie-consent-card h2 {
  font-size: 1.1rem;
}

.cookie-consent-card p,
.cookie-settings-card p,
.cookie-setting-row p {
  margin: 0;
  font-size: 0.92rem;
}

.cookie-consent-actions,
.cookie-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 10px;
}

.cookie-consent-actions .button,
.cookie-settings-actions .button {
  width: auto;
  min-width: 140px;
  padding: 12px 16px;
  font-size: 0.9rem;
}

.cookie-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
}

.cookie-settings-modal.is-open {
  display: grid;
}

.cookie-settings-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.cookie-settings-card {
  position: relative;
  width: min(100%, 560px);
  display: grid;
  gap: 18px;
  padding: 32px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.cookie-settings-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--red);
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cookie-settings-close:hover {
  background: var(--accent-border);
  transform: translateY(-2px);
}

.cookie-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.cookie-setting-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.cookie-setting-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

@media (max-width: 760px) {
  .cookie-consent {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .cookie-consent-card,
  .cookie-settings-card {
    padding: 22px;
  }

  .cookie-consent-card {
    grid-template-columns: 1fr;
  }

  .cookie-consent-actions,
  .cookie-settings-actions {
    justify-content: stretch;
  }

  .cookie-consent-actions .button,
  .cookie-settings-actions .button {
    width: 100%;
  }

  .cookie-setting-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* =========================
   ARTICLES SECTION
========================= */

#articles {
  display: grid;
  justify-items: center;
  padding: 64px 0 76px;
  text-align: center;
}

#article-cards {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  margin: 40px 0 34px;
  text-align: left;
}

.article-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-card a {
  height: 100%;
  display: grid;
  grid-template-rows: 180px 1fr;
}

.article-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.article-card-copy {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  padding: 22px;
}

.article-card-copy h3 {
  margin: 0;
}

.article-card-copy p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.article-card-copy span {
  align-self: end;
  color: var(--red);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.article-card:hover .article-card-copy span {
  color: var(--red-dark);
  transform: translateX(3px);
}

/* =========================
   ARTICLES PAGE
========================= */

.articles-page {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  gap: 42px;
  margin: 0 auto 72px;
}

#articles-page-hero {
  width: min(100%, 760px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding-top: 36px;
  text-align: center;
}

#articles-page-hero h1 {
  margin-bottom: 8px;
}

#articles-page-hero > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0;
  font-size: 1.08rem;
}

#articles-page-list {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.articles-page-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.articles-page-card a {
  height: 100%;
  display: grid;
  grid-template-rows: 180px 1fr;
}

.articles-page-card img,
.articles-page-card-fallback {
  width: 100%;
  height: 180px;
}

.articles-page-card img {
  object-fit: cover;
}

.articles-page-card-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, var(--accent-soft) 0%, white 100%);
}

.articles-page-card-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 8px;
  padding: 22px;
}

.articles-page-card-meta,
.articles-page-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.articles-page-card-meta span {
  color: var(--red);
  font-weight: 800;
}

.articles-page-card h2 {
  margin: 0;
  text-align: left;
  font-size: 1.2rem;
}

.articles-page-card p {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.95rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.articles-page-card-footer span {
  color: var(--red);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.articles-page-card:hover .articles-page-card-footer span {
  color: var(--red-dark);
  transform: translateX(3px);
}

.articles-page-card-footer small {
  color: var(--muted);
  font-size: 0.82rem;
}

.articles-page-empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
}

.articles-page-pagination {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  width: min(100%, 520px);
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.articles-page-pagination a {
  color: var(--red);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.articles-page-pagination a:hover {
  color: var(--red-dark);
  transform: translateY(-2px);
}

.articles-page-pagination strong {
  color: var(--black);
}

/* =========================
   POST PAGE
========================= */

.post-page {
  width: min(100% - 32px, 525px);
  display: grid;
  gap: 24px;
  margin: 0 auto 64px;
}

.post-page section {
  width: 100%;
  margin: 0;
}

.post-back-link {
  width: fit-content;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-back-link:hover {
  color: var(--red);
  transform: translateX(-3px);
}

.post-header {
  display: grid;
  gap: 14px;
}

.post-header h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.55rem, 11vw, 4.4rem);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.post-meta div {
  display: grid;
  gap: 2px;
}

.post-meta span {
  color: var(--muted);
  font-size: 0.92rem;
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-share a,
.post-sidebar-card {
  border: 1px solid var(--border);
  background: white;
}

.post-share a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.post-share a:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--pink);
  transform: translateY(-2px);
}

.post-share svg {
  width: 18px;
  height: 18px;
}

.post-share .jam-linkedin,
.footer-socials .jam-linkedin {
  fill: currentColor;
  stroke: none;
}

.post-feature {
  margin: 0;
}

.post-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-content {
  display: grid;
  gap: 20px;
  padding-top: 4px;
}

.post-content > * {
  margin-top: 0;
  margin-bottom: 0;
}

.post-content p,
.post-content li {
  font-size: 1.05rem;
}

.post-content h2,
.post-content h3 {
  margin-top: 10px;
  text-align: left;
}

.post-content h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
}

.post-content h3 {
  font-size: 1.35rem;
}

.post-content a {
  color: var(--red);
  font-weight: 800;
}

.post-content ul,
.post-content ol {
  display: grid;
  gap: 18px;
  padding-left: 24px;
}

.post-content ol {
  counter-reset: post-steps;
  list-style: none;
  padding-left: 0;
}

.post-content ol > li {
  position: relative;
  padding-left: 42px;
}

.post-content ol > li::before {
  counter-increment: post-steps;
  content: counter(post-steps);
  position: absolute;
  top: 0.1em;
  left: 0;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: white;
  font-size: 0.86rem;
  font-weight: 800;
}

.post-content blockquote,
.post-content .kg-callout-card {
  border: 0;
  border-radius: 12px;
  background: var(--pink);
  box-shadow: var(--shadow);
}

.post-content blockquote {
  margin: 0;
  padding: 18px 20px;
  font-weight: 700;
}

.post-content .kg-callout-card {
  padding: 18px;
}

.post-content img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.post-content .kg-card {
  margin: 0;
}

.post-content .kg-image-card,
.post-content .kg-gallery-card,
.post-content .kg-video-card,
.post-content .kg-embed-card {
  width: 100%;
}

.post-content .kg-image,
.post-content .kg-gallery-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.post-content .kg-width-wide,
.post-content .kg-width-full {
  width: 100%;
  margin-left: 0;
  transform: none;
}

.post-content .kg-width-full {
  max-width: 100%;
}

/* Ghost editor cards stay inside the article column and match the theme. */
.post-content figcaption,
.post-content .kg-card figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: center;
}

.post-content hr,
.post-content .kg-divider-card hr {
  width: 72px;
  height: 3px;
  margin: 10px auto;
  border: 0;
  background: var(--red);
}

.post-content iframe,
.post-content video,
.post-content audio {
  width: 100%;
  max-width: 100%;
}

.post-content .kg-audio-card,
.post-content .kg-bookmark-card,
.post-content .kg-file-card,
.post-content .kg-product-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.post-content .kg-gallery-container {
  width: 100%;
  display: grid;
  gap: 10px;
}

.post-content .kg-gallery-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
}

.post-content .kg-gallery-image {
  min-width: 0;
}

.post-content .kg-gallery-image img {
  height: clamp(150px, 28vw, 220px);
  object-fit: cover;
}

.post-content .kg-bookmark-card {
  display: grid;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-content .kg-bookmark-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  color: inherit;
}

.post-content .kg-bookmark-content {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.post-content .kg-bookmark-title,
.post-content .kg-file-card-title,
.post-content .kg-product-card-title {
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.25;
}

.post-content .kg-bookmark-description,
.post-content .kg-product-card-description,
.post-content .kg-file-card-caption {
  color: var(--dark);
  font-size: 0.95rem;
}

.post-content .kg-bookmark-metadata {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.post-content .kg-bookmark-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

.post-content .kg-bookmark-thumbnail img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  object-fit: cover;
}

.post-content .kg-bookmark-card:hover {
  border-color: color-mix(in srgb, var(--red) 35%, transparent);
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

.post-content .kg-button-card {
  display: flex;
  justify-content: center;
}

.post-content .kg-button-card.kg-align-left {
  justify-content: flex-start;
}

.post-content .kg-btn,
.post-content .kg-product-card-button,
.post-content .kg-header-card-button,
.post-content .kg-signup-card-button {
  display: inline-grid;
  place-items: center;
  width: min(100%, var(--button-width));
  border-radius: 7px;
  padding: 15px 24px;
  background: var(--red);
  color: white;
  font-family: inherit;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.post-content .kg-btn:hover,
.post-content .kg-product-card-button:hover,
.post-content .kg-header-card-button:hover,
.post-content .kg-signup-card-button:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.post-content .kg-callout-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.post-content .kg-callout-emoji {
  line-height: 1.4;
}

.post-content .kg-callout-text {
  color: var(--dark);
}

.post-content .kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}

.post-content .kg-toggle-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
}

.post-content .kg-toggle-heading-text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 800;
}

.post-content .kg-toggle-card-icon {
  color: var(--red);
}

.post-content .kg-toggle-content {
  padding: 0 20px 20px;
}

.post-content .kg-audio-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.post-content .kg-audio-title {
  color: var(--black);
  font-family: var(--font-heading);
  font-weight: 800;
}

.post-content .kg-audio-thumbnail {
  border-radius: 10px;
}

.post-content .kg-video-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: transparent;
}

.post-content .kg-video-card video,
.post-content .kg-video-player video,
.post-content .kg-video-container video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: transparent;
  border-radius: var(--radius);
}

.post-content .kg-file-card-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
}

.post-content .kg-file-card-metadata {
  color: var(--muted);
  font-size: 0.84rem;
}

.post-content .kg-file-card-icon {
  color: var(--red);
}

.post-content .kg-product-card {
  width: 100%;
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 22px;
  text-align: center;
}

.post-content .kg-product-card-image {
  width: 100%;
  max-height: 320px;
  border-radius: 12px;
  object-fit: cover;
}

.post-content .kg-product-card-rating {
  color: var(--red);
}

.post-content .kg-header-card,
.post-content .kg-signup-card,
.post-content .kg-cta-card {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 36px 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.post-content .kg-signup-card,
.post-content .kg-cta-card {
  background: linear-gradient(180deg, var(--accent-soft) 0%, white 100%);
}

.post-content .kg-header-card {
  min-height: 280px;
  color: var(--black) !important;
  background:
    linear-gradient(180deg, rgba(255, 247, 247, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%),
    var(--white) !important;
  background-color: var(--white) !important;
}

.post-content .kg-header-card * {
  color: inherit !important;
}

.post-content .kg-header-card.kg-style-dark,
.post-content .kg-header-card.kg-style-light,
.post-content .kg-header-card.kg-style-accent {
  background:
    linear-gradient(180deg, rgba(255, 247, 247, 0.92) 0%, rgba(255, 255, 255, 0.96) 100%),
    var(--white) !important;
}

.post-content .kg-header-card h2,
.post-content .kg-header-card h3 {
  color: var(--black) !important;
}

.post-content .kg-header-card p {
  color: var(--dark) !important;
}

.post-content .kg-header-card h2,
.post-content .kg-signup-card h2,
.post-content .kg-cta-card h2 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.post-content .kg-header-card p,
.post-content .kg-signup-card p,
.post-content .kg-cta-card p {
  max-width: 560px;
  margin: 0;
}

.post-content .kg-signup-card form,
.post-content .kg-signup-card .kg-signup-card-form {
  width: min(100%, 440px);
  justify-self: center;
}

.post-content .kg-signup-card input,
.post-content .kg-signup-card button,
.post-content .kg-signup-card .kg-signup-card-input,
.post-content .kg-signup-card .kg-signup-card-button {
  min-width: 0;
}

.post-content .kg-signup-card form,
.post-content .kg-signup-card .kg-signup-card-form,
.post-content .kg-signup-card .kg-signup-card-fields {
  margin-left: auto;
  margin-right: auto;
}

.post-content .kg-cta-card {
  width: 100%;
  grid-template-columns: 1fr;
  justify-self: center;
  justify-items: center;
  padding: 26px;
  text-align: center;
}

.post-content .kg-cta-sponsor-label,
.post-content .kg-cta-card > small,
.post-content .kg-cta-card > p:first-child {
  grid-column: 1 / -1;
  justify-self: center;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.post-content .kg-cta-card img,
.post-content .kg-cta-card svg {
  max-width: 140px;
  max-height: 140px;
  margin: 0 auto;
}

.post-content .kg-cta-card h2,
.post-content .kg-cta-card p {
  text-align: center;
}

.post-content .kg-html-card {
  max-width: 100%;
  overflow-x: auto;
}

.post-content .kg-embed-card {
  display: grid;
  justify-items: center;
  overflow: hidden;
}

.post-content .kg-embed-card > * {
  max-width: 100%;
}

.post-bottom-signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
}

.post-bottom-signup p {
  margin: 0;
  font-weight: 700;
}

.post-bottom-signup .button {
  width: var(--button-width);
}

.post-sidebar {
  display: grid;
  gap: 18px;
}

.post-sidebar-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.post-sidebar-card h2 {
  margin: 0;
  text-align: left;
  font-size: 1.2rem;
}

.post-sidebar-card p {
  margin: 0;
  font-size: 0.92rem;
}

.post-sidebar-card a {
  color: var(--red);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.post-sidebar-card a:hover {
  color: var(--red-dark);
  transform: translateX(3px);
}

.post-author-card {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.post-author-card img {
  width: 72px;
  height: 72px;
  border-radius: 999px;
}

.post-author-card .section-icon {
  width: 72px;
  height: 72px;
}

.post-author-copy,
.post-newsletter-copy {
  display: grid;
  gap: 10px;
}

.post-sidebar-newsletter {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}

.post-sidebar-newsletter form {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
}

.post-related-list {
  display: grid;
  gap: 14px;
}

.post-related-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.post-related-item img,
.post-related-fallback {
  width: 92px;
  height: 68px;
  border-radius: 8px;
}

.post-related-item img {
  object-fit: cover;
}

.post-related-fallback {
  display: grid;
  place-items: center;
  background: var(--pink);
  color: var(--red);
}

.post-related-fallback svg {
  width: 26px;
  height: 26px;
}

.post-related-item span {
  display: grid;
  gap: 5px;
}

.post-related-item strong {
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.92rem;
  line-height: 1.25;
}

.post-related-item small {
  color: var(--muted);
  font-size: 0.78rem;
}

/* =========================
   STANDARD PAGES
========================= */

.standard-page {
  width: min(820px, calc(100% - 32px));
  display: grid;
  gap: 28px;
  margin: 0 auto 72px;
  padding-top: 28px;
}

.standard-page-header {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.standard-page-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.8rem);
}

.standard-page-header p {
  max-width: 620px;
  margin: 0;
  font-size: 1.08rem;
}

.standard-page-feature {
  margin: 0;
}

.standard-page-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.standard-page-content {
  width: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

@media (min-width: 761px) and (max-width: 999px) {
  .post-page {
    width: min(760px, calc(100% - 48px));
  }
}

@media (min-width: 1000px) {
  .post-page {
    width: min(var(--max), calc(100% - 48px));
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 34px 48px;
  }

  .post-back-link {
    grid-column: 1 / -1;
  }

  .post-header {
    grid-column: 1;
  }

  .post-feature {
    grid-column: 1;
  }

  .post-sidebar {
    position: sticky;
    top: 24px;
    grid-column: 2;
    grid-row: 2 / span 5;
  }

  .post-content,
  .post-bottom-signup {
    grid-column: 1;
    width: 100%;
    justify-self: start;
  }

  .post-content {
    padding: 22px 0 0 24px;
    border-top: 1px solid var(--border);
  }

  .standard-page-content {
    padding: 24px 0 0;
  }
}

@media (max-width: 760px) {
  .post-bottom-signup {
    grid-template-columns: 1fr;
  }

  .post-bottom-signup .button {
    width: 100%;
  }

  .post-content .kg-bookmark-container,
  .post-content .kg-file-card-container {
    grid-template-columns: 1fr;
  }

  .post-content .kg-bookmark-thumbnail {
    order: -1;
  }

  .post-content .kg-bookmark-thumbnail img {
    max-height: 220px;
  }

  .post-content .kg-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-content .kg-gallery-image img {
    height: 150px;
  }

  .post-content .kg-btn,
  .post-content .kg-product-card-button,
  .post-content .kg-header-card-button,
  .post-content .kg-signup-card-button {
    width: 100%;
  }

  .post-content .kg-signup-card {
    padding: 32px 18px;
  }

  .post-content .kg-signup-card form,
  .post-content .kg-signup-card .kg-signup-card-form,
  .post-content .kg-signup-card .kg-signup-card-fields {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .post-content .kg-signup-card input,
  .post-content .kg-signup-card button,
  .post-content .kg-signup-card .kg-signup-card-input,
  .post-content .kg-signup-card .kg-signup-card-button {
    width: 100%;
    border-radius: 7px;
  }

  .post-content .kg-cta-card {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 30px 20px;
    text-align: center;
  }

  .post-content .kg-cta-card h2,
  .post-content .kg-cta-card p {
    text-align: center;
  }

  .post-content .kg-header-card {
    min-height: 220px;
    padding: 32px 20px;
  }
}

@media (max-width: 360px) {
  .post-related-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px;
  }

  .post-related-item img,
  .post-related-fallback {
    width: 78px;
    height: 62px;
  }

  .post-related-item strong {
    font-size: 0.86rem;
  }

  .post-related-item small {
    font-size: 0.74rem;
  }
}

/* =========================
   BIO SECTION
========================= */

#bio {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 38px;
  align-items: center;

  background: white;
  padding: 42px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 42px;
}

#bio-avatar {
  width: 130px;
  height: 130px;
  border-radius: 999px;
  object-fit: cover;
}

#bio-copy {
  display: grid;
  gap: 8px;
}

#bio-copy h2 {
  text-align: left;
  font-size: 2rem;
}

#bio-copy h2::after {
  width: 44px;
  margin: 14px 0 0;
}

#bio-copy p {
  margin: 0;
}

#bio-copy a {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

#bio-copy a:hover {
  color: var(--red-dark);
  transform: translateX(3px);
}

/* =========================
   TRUST SECTION
========================= */

#trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 42px;
}

.trust-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
}

.trust-card + .trust-card {
  border-left: 1px solid var(--border);
}

.trust-card span {
  color: var(--red);
}

.trust-card svg {
  width: 30px;
  height: 30px;
  stroke: currentColor;
  stroke-width: 2.8;
}

.trust-card strong {
  color: var(--black);
  font-size: 0.95rem;
  line-height: 1.25;
}

/* =========================
   ABOUT PAGE
========================= */

.about-page {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  gap: 36px;
  margin: 0 auto 64px;
}

#about-hero {
  width: min(100%, 760px);
  display: grid;
  justify-items: center;
  gap: 24px;
  padding-top: 32px;
  text-align: center;
}

#about-hero-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
}

#about-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 5rem);
}

#about-hero p:last-child {
  max-width: 460px;
  margin: 0;
  font-size: 1.08rem;
}

#about-hero-image {
  margin: 0;
}

#about-hero-image img {
  width: 100%;
  max-height: 560px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-position: center top;
}

#about-intro {
  width: min(100%, 680px);
}

#about-intro p {
  margin: 0;
  font-size: 1.08rem;
}

.about-section-header {
  display: grid;
  gap: 10px;
}

.about-section-header h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
}

.about-section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 12px;
  background: var(--red);
}

#about-journey {
  width: min(100%, 760px);
  display: grid;
  gap: 24px;
}

.journey-list {
  display: grid;
  gap: 0;
}

.journey-item {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 20px;
  padding-bottom: 34px;
}

.journey-item::after {
  content: "";
  position: absolute;
  top: 58px;
  bottom: 6px;
  left: 25px;
  width: 2px;
  background: var(--red);
  opacity: 0.55;
}

.journey-item:last-child {
  padding-bottom: 0;
}

.journey-item:last-child::after {
  display: none;
}

.journey-item .section-icon {
  position: relative;
  z-index: 1;
}

.journey-item h3 {
  margin: 0 0 6px;
}

.journey-item p {
  max-width: 420px;
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.journey-item small {
  color: var(--black);
  font-weight: 800;
}

#about-story-card,
#about-call-card {
  width: min(100%, 760px);
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#about-story-card h2,
#about-call-card h2 {
  margin: 0;
  text-align: left;
  font-size: 1.25rem;
}

.about-quote-mark {
  color: var(--red);
}

.about-quote-mark svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
  stroke: currentColor;
}

#about-story-card p,
#about-call-card p {
  max-width: 560px;
  margin: 0;
}

#about-testimonials {
  width: min(100%, 760px);
  display: grid;
  gap: 24px;
}

.testimonial-list {
  display: grid;
  gap: 20px;
}

.testimonial-card {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 34px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: "“";
  position: absolute;
  top: 18px;
  right: 28px;
  color: var(--pink);
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
}

.testimonial-person {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-card img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.testimonial-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0;
  color: var(--dark);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  font-weight: 600;
  line-height: 1.55;
}

.testimonial-card h3,
.testimonial-card p {
  margin: 0;
}

.testimonial-card a {
  display: inline-block;
  margin-top: 6px;
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.testimonial-card a:hover {
  color: var(--red-dark);
  transform: translateX(3px);
}

#about-call-card {
  justify-items: center;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(180deg, var(--accent-soft) 0%, white 100%);
  border: 2px solid var(--accent-border);
  box-shadow: var(--shadow-strong);
}

#about-call-card h2 {
  text-align: center;
}

@media (min-width: 900px) {
  #about-intro,
  #about-journey,
  #about-story-card {
    justify-self: center;
  }

}

@media (max-width: 760px) {
  .about-page {
    width: min(100% - 32px, 525px);
    gap: 30px;
    margin-bottom: 52px;
  }

  #about-hero {
    gap: 22px;
    padding-top: 20px;
  }

  #about-hero h1 {
    font-size: clamp(2.3rem, 13vw, 3.2rem);
  }

  #about-hero-image img {
    max-height: none;
  }

  #about-intro,
  #about-journey,
  #about-story-card,
  #about-call-card,
  #about-testimonials {
    width: 100%;
  }

  .journey-item {
    gap: 16px;
  }

  #about-story-card,
  #about-call-card,
  .testimonial-card {
    padding: 24px;
  }
}

/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  gap: 36px;
  margin: 0 auto 64px;
}

#contact-hero {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 0 0;
  text-align: center;
}

#contact-hero h1 {
  margin-bottom: 8px;
}

#contact-hero p:last-child {
  max-width: 520px;
  margin: 0;
  font-size: 1.08rem;
}

#contact-options {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: center;
  gap: 18px;
}

.contact-card {
  width: min(100%, 371px);
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 4px 0 0;
  text-align: left;
  font-size: 1rem;
}

.contact-card p {
  margin: 0;
  font-size: 0.9rem;
}

.contact-card a {
  align-self: end;
  color: var(--red);
  font-weight: 800;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-card a:hover {
  color: var(--red-dark);
  transform: translateX(3px);
}

.contact-card .linkedin-icon {
  color: var(--red);
}

#contact-events {
  width: min(100%, 760px);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 24px;
  padding: 42px 40px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.contact-events-copy {
  display: grid;
  gap: 16px;
}

#contact-events h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

#contact-events p {
  max-width: 500px;
  margin: 0;
}

.contact-event-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}

.contact-event-card,
.contact-events-empty {
  display: grid;
  gap: 8px;
  padding: 20px;
  background: var(--accent-soft);
  border: 1px dashed var(--accent-border);
  border-radius: 10px;
}

.contact-event-card h3,
.contact-event-card p,
.contact-event-card time,
.contact-events-empty p {
  margin: 0;
}

.contact-event-card h3 {
  font-size: 1.05rem;
}

.contact-event-card time {
  color: var(--muted);
  font-weight: 800;
}

.contact-event-card a {
  color: var(--red);
  font-weight: 800;
  transition: color 0.2s ease, transform 0.2s ease;
}

.contact-event-card a:hover {
  color: var(--red-dark);
  transform: translateX(3px);
}

.contact-events-empty {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
}

.contact-events-empty span {
  color: color-mix(in srgb, var(--red) 55%, var(--muted));
}

.contact-events-empty svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

.contact-events-empty p {
  color: color-mix(in srgb, var(--red) 55%, var(--muted));
  font-weight: 700;
}

@media (max-width: 760px) {
  .contact-page {
    width: min(100% - 32px, 525px);
    gap: 30px;
    margin-bottom: 52px;
  }

  #contact-hero {
    justify-items: start;
    padding-top: 20px;
    text-align: left;
  }

  #contact-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  .contact-card {
    min-height: 160px;
  }

  #contact-events {
    grid-template-columns: 1fr;
    width: 100%;
    padding: 34px 24px;
  }

  #contact-events > .section-icon {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  #contact-options {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 18px;
  }
}

/* =========================
   SERVICES PAGE
========================= */

.services-page {
  width: min(var(--max), calc(100% - 48px));
  display: grid;
  gap: 42px;
  margin: 0 auto 64px;
}

#services-hero {
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 0 0;
  text-align: center;
}

#services-hero h1 {
  margin-bottom: 8px;
}

#services-hero p:last-child {
  max-width: 560px;
  margin: 0;
  font-size: 1.08rem;
}

#services-list {
  width: min(100%, 1040px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card,
#services-call-card {
  display: grid;
  justify-items: center;
  text-align: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  align-content: start;
  grid-template-rows: 52px 56px 120px 1fr;
  gap: 16px;
  padding: 30px 26px;
}

.service-card h2,
#services-call-card h2 {
  margin: 0;
  font-size: 1.18rem;
}

.service-card p,
#services-call-card p {
  margin: 0;
  font-size: 0.95rem;
}

.service-card p {
  max-width: 260px;
}

.service-points {
  width: min(100%, 260px);
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.service-points li {
  position: relative;
  padding-left: 20px;
  color: var(--dark);
  font-size: 0.9rem;
}

.service-points li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  transform: rotate(-45deg);
}

#services-call-card {
  width: min(100%, 760px);
  gap: 16px;
  padding: 42px 32px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--accent-soft) 0%, white 100%);
  border: 2px solid var(--accent-border);
  box-shadow: var(--shadow-strong);
}

#services-call-card h2 {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

#services-call-card p {
  max-width: 460px;
  font-size: 1.02rem;
}

#services-faq {
  width: min(100%, 760px);
  display: grid;
  gap: 18px;
}

#services-faq h2 {
  margin: 0;
  text-align: left;
  font-size: 1.6rem;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  cursor: pointer;
  padding: 16px 18px;
  color: var(--black);
  font-weight: 800;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  color: var(--red);
  font-weight: 800;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-answer {
  height: 0;
  overflow: hidden;
  transition: height 0.25s ease;
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  font-size: 0.95rem;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  background:
    radial-gradient(
      circle at top left,
      color-mix(in srgb, var(--red) 16%, transparent),
      transparent 34%
    ),
    linear-gradient(180deg, #17191d 0%, var(--footer) 100%),
    var(--footer);
  color: white;
  padding: 52px max(24px, calc((100vw - var(--max)) / 2)) 34px;
  display: grid;
  gap: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(150px, 0.7fr) minmax(150px, 0.7fr);
  gap: 48px;
  align-items: start;
}

.footer-col {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-brand {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: 12px;
  color: white;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
}

.footer-brand .site-logo-mark {
  height: 28px;
  width: auto;
}

.site-footer p,
.site-footer a {
  color: #eeeeee;
}

.site-footer h4 {
  color: white;
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.footer-col > a {
  display: block;
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col > a:hover {
  color: white;
  transform: translateX(3px);
}

.footer-brand-col p {
  max-width: 300px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.footer-socials {
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  gap: 12px;
}

.footer-socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-socials a:hover {
  background: var(--accent-shadow);
  transform: translateY(-2px);
}

.footer-socials svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.footer-copyright {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-copyright p {
  margin: 0 0 4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================
   GHOST KOENIG EDITOR
========================= */

.kg-width-wide {
  width: min(1200px, calc(100vw - 64px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
  display: block;
}

.kg-image-card img {
  max-width: 100%;
  height: auto;
}

/* Smooth out the hero headline wrap on medium desktop screens. */
@media (min-width: 1040px) and (max-width: 1181px) {
  #hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr);
    gap: 32px;
  }

  /* Give the hero headline a cleaner wrap on medium desktop screens. */
  #hero-copy h1 {
    font-size: clamp(3.8rem, 5.4vw, 4.5rem);
    max-width: 560px;
  }
}

/* Trust cards switch to two columns before the main mobile layout. */
@media (max-width: 800px) {
  #articles-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #trust {
    width: min(100% - 32px, 640px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-card {
    grid-template-columns: 34px minmax(0, 1fr);
    justify-items: start;
    text-align: left;
    gap: 10px;
    padding: 16px 12px;
    border-top: 1px solid var(--border);
  }

  .trust-card + .trust-card {
    border-left: 0;
  }

  .trust-card svg {
    width: 26px;
    height: 26px;
  }

  .trust-card strong {
    font-size: 0.82rem;
  }
}

/* Stack hero buttons on tablets where two buttons are too wide. */
@media (min-width: 761px) and (max-width: 975px) {
  #hero-buttons {
    grid-template-columns: minmax(0, var(--button-width));
    justify-content: start;
  }
}

/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {
  :root {
    --button-width: var(--button-width-mobile);
  }

  section {
    width: min(100% - 32px, var(--max));
  }

  .site-header {
    width: min(100% - 32px, var(--max));
    display: grid;
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 24px 0;
  }

  .brand .site-logo-mark {
    height: 25px;
  }

  .brand .site-logo-upload {
    max-width: 150px;
    max-height: 38px;
  }

  .brand span {
    font-size: 0.86rem;
  }

  .hamburger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.2s ease;
  }

  .hamburger:hover {
    background: var(--pink);
    transform: translateY(-2px);
  }

  .hamburger span {
    width: 18px;
    height: 2px;
    background: var(--black);
    grid-column: 1;
    grid-row: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .hamburger span:nth-child(1) {
    transform: translateY(-6px);
  }

  .hamburger span:nth-child(3) {
    transform: translateY(6px);
  }

  .site-header.nav-open .hamburger span:nth-child(1) {
    transform: rotate(45deg);
  }

  .site-header.nav-open .hamburger span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .hamburger span:nth-child(3) {
    transform: rotate(-45deg);
  }

  .nav {
    display: grid;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;

    grid-auto-flow: row;
    justify-items: stretch;
    gap: 0;

    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 10;
  }

  .site-header.nav-open .nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateY(0);
  }

  .nav a {
    padding: 12px;
  }

  #hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 24px;
    padding-top: 36px;
  }

  #hero-buttons {
    width: min(100%, calc((var(--button-width) * 2) + 18px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
  }

  #hero-image-wrap {
    max-width: 500px;
    justify-self: center;
  }

  #hero-image {
    width: 100%;
    height: 100%;
  }

  #stats {
    width: min(100% - 32px, var(--max));
    grid-template-columns: repeat(3, 1fr);
    margin-top: 20px;
    margin-bottom: 44px;
  }

  #why {
    padding: 38px 24px 50px;
  }

  #help {
    padding: 44px 0 54px;
  }

  #help-cards {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: center;
  }

  .services-page {
    width: min(100% - 32px, 525px);
    gap: 32px;
    margin-bottom: 52px;
  }

  #services-hero {
    justify-items: start;
    text-align: left;
    padding-top: 20px;
  }

  #services-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  #services-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .service-card {
    grid-template-rows: auto;
    padding: 30px 24px;
  }

  #services-call-card {
    width: 100%;
  }

  #services-faq h2 {
    font-size: 1.35rem;
  }

  .help-card {
    width: 100%;
    max-width: 525px;
    min-height: 140px;
    grid-template-columns: 56px minmax(0, 330px);
    grid-template-rows: auto auto;
    justify-content: center;
    justify-items: start;
    align-items: center;
    align-content: center;
    column-gap: 28px;
    row-gap: 6px;
    text-align: left;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    padding: 34px 28px;
  }

  /* Keep icon, heading, and copy aligned across every help card. */
  .help-card .section-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 52px;
    height: 52px;
  }

  .help-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 7px;
    font-size: 1.08rem;
    font-weight: 800;
  }

  .help-card p {
    grid-column: 2;
    grid-row: 2;
    max-width: 330px;
    font-size: 0.96rem;
    line-height: 1.45;
  }

  #newsletter {
    padding: 38px 18px 28px;
  }

  .newsletter-modal {
    padding: 18px;
  }

  .newsletter-modal-card {
    padding: 38px 22px 28px;
  }

  .newsletter-modal-card h2 {
    font-size: clamp(1.9rem, 10vw, 2.65rem);
  }

  .newsletter-modal-proof {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .newsletter-modal-card form[data-members-form] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .newsletter-modal-card form[data-members-form] input,
  .newsletter-modal-card form[data-members-form] button {
    width: 100%;
    border-radius: 7px;
  }

  .newsletter-modal-benefits {
    gap: 6px 14px;
  }

  .newsletter-modal-benefits li + li::before {
    margin-right: 14px;
  }

  #article-cards {
    grid-template-columns: 1fr;
    width: min(100%, 525px);
    margin-left: auto;
    margin-right: auto;
  }

  .articles-page {
    width: min(100% - 32px, 525px);
    gap: 32px;
    margin-bottom: 56px;
  }

  #articles-page-hero {
    justify-items: start;
    text-align: left;
    padding-top: 20px;
  }

  #articles-page-hero h1 {
    font-size: clamp(2.35rem, 13vw, 3.2rem);
  }

  #articles-page-list {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .articles-page-card a {
    grid-template-rows: 180px 1fr;
  }

  .articles-page-card img,
  .articles-page-card-fallback {
    height: 180px;
  }

  .articles-page-card-copy {
    padding: 22px;
  }

  #bio {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 20px;
    padding: 28px;
  }

  #bio-avatar {
    width: 96px;
    height: 96px;
  }

  #bio-copy {
    justify-items: center;
  }

  #bio-copy h2 {
    text-align: center;
  }

  #bio-copy h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer {
    gap: 28px;
    padding: 38px 24px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 24px;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
    max-width: 340px;
  }

  .footer-links-col {
    grid-column: 1;
    order: 2;
  }

  .footer-legal-col {
    grid-column: 2;
    order: 3;
  }

  .footer-copyright {
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 16px;
  }

  .footer-socials {
    justify-content: start;
  }
}

/* Stack hero buttons into one centered column on narrow phones. */
@media (max-width: 560px) {
  #hero-buttons {
    grid-template-columns: minmax(0, var(--button-width));
    justify-content: center;
  }
}

/* Stack signup forms only when the input and button need more room. */
@media (max-width: 400px) {
  form[data-members-form] {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  form[data-members-form] input {
    border-radius: 7px;
    width: min(100%, var(--button-width));
    justify-self: center;
  }

  form[data-members-form] button {
    border-radius: 7px;
    justify-self: center;
  }
}

/* Tiny phones need a single-column footer and smaller shared buttons. */
@media (max-width: 325px) {
  :root {
    --button-width: 220px;
  }

  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-brand-col,
  .footer-links-col,
  .footer-legal-col {
    grid-column: 1;
  }

  #trust {
    grid-template-columns: 1fr;
  }
}
