@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&display=swap");

.pcp-page {
  margin: 0;
  background: #f9fafb;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
}

.pcp-main {
  width: min(1280px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  padding-left: clamp(14px, 2.8vw, 28px);
  padding-right: clamp(14px, 2.8vw, 28px);
}

.pcp-topbar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 12px;
  padding-left: clamp(14px, 2.8vw, 28px);
  padding-right: clamp(14px, 2.8vw, 28px);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.pcp-topbar-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #374151;
  flex-shrink: 0;
}

.pcp-topbar-links a {
  color: #111827;
  text-decoration: none;
}

.pcp-topbar-links a:hover {
  text-decoration: underline;
}

.pcp-topbar-sep {
  margin: 0 10px;
  color: #9ca3af;
  user-select: none;
}

.pcp-topbar-user {
  color: #111827;
  font-weight: 600;
  max-width: min(220px, 42vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcp-topbar-profile-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  background: #f8fafc;
  color: #334155;
  text-decoration: none;
  box-sizing: border-box;
}

.pcp-topbar-profile-icon:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

.pcp-topbar-profile-icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pcp-topbar-login[hidden],
.pcp-topbar-user[hidden],
.pcp-topbar-logout[hidden],
.pcp-topbar-logout-sep[hidden],
.pcp-topbar-profile-icon[hidden] {
  display: none !important;
}

.pcp-topbar-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  pointer-events: none;
  max-width: min(280px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Centered title + actions (e.g. program pages with “How it works”) */
.pcp-topbar-title-cluster {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  max-width: min(440px, 88vw);
  pointer-events: auto;
}

.pcp-topbar-title-cluster .pcp-topbar-title {
  position: static;
  left: auto;
  transform: none;
  max-width: min(260px, 50vw);
  pointer-events: none;
}

.pcp-topbar-how-it-works {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  background: #eff6ff;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.2;
}

.pcp-topbar-how-it-works:hover {
  background: #dbeafe;
  border-color: #60a5fa;
  color: #1d4ed8;
}

@media (max-width: 520px) {
  .pcp-topbar-title {
    font-size: 0.82rem;
    max-width: min(200px, 36vw);
  }

  .pcp-topbar-title-cluster .pcp-topbar-title {
    font-size: 0.82rem;
    max-width: min(180px, 42vw);
  }

  .pcp-topbar-how-it-works {
    font-size: 0.72rem;
    padding: 4px 9px;
  }
}

.pcp-nav-wrap {
  position: relative;
}

.pcp-nav-menu {
  position: relative;
}

.pcp-nav-toggle {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #dbe1ea;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  background: #ffffff;
}

.pcp-nav-toggle::-webkit-details-marker {
  display: none;
}

.pcp-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: #1f2937;
}

.pcp-nav-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 220px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
  padding: 8px;
  z-index: 30;
}

.pcp-nav-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 0.96rem;
}

.pcp-nav-link:hover {
  background: #f3f4f6;
}

.pcp-nav-link-disabled,
.pcp-nav-link-disabled:hover {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
}

.pcp-nav-link-active {
  background: #eff6ff;
  color: #1d4ed8;
}

/* hidden attribute alone is overridden by `.pcp-nav-link { display: block }` above */
.pcp-nav-panel .pcp-nav-link[hidden] {
  display: none !important;
}

.pcp-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111827;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.pcp-brand img {
  width: 20px;
  height: 20px;
  border-radius: 8px;
}

.pcp-top-cta {
  border: none;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  margin-left: auto;
}

.pcp-main {
  padding-top: 8px;
  padding-bottom: 90px;
}

.pcp-starter-section {
  margin-top: 16px;
}

.pcp-starter-intake {
  margin: 28px auto 0;
  width: min(640px, 100%);
  text-align: left;
}

.pcp-hero-shell {
  padding: clamp(12px, 2vw, 24px) 0 clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(20px, 4vw, 40px);
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.pcp-section {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  border-top: 1px solid #e5e7eb;
  padding-top: 40px;
  padding-bottom: 8px;
}

.pcp-kicker {
  margin: 0 0 8px;
  color: #2563eb;
  font-size: 0.9rem;
  font-weight: 700;
}

.pcp-hero-copy h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.8rem, 5.4vw, 5.3rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  max-width: 720px;
  font-weight: 800;
}

.pcp-subcopy {
  margin: 20px 0 0;
  color: #374151;
  max-width: 700px;
  line-height: 1.46;
  font-size: clamp(1.2rem, 1.55vw, 1.55rem);
}

.pcp-hero-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pcp-btn {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.pcp-triage-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.pcp-btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.pcp-btn-secondary {
  background: #e9eff8;
  color: #1d4ed8;
}

.pcp-btn-ghost {
  background: transparent;
  color: #2563eb;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 8px;
}

.pcp-btn-ghost:hover {
  background: rgba(37, 99, 235, 0.08);
}

.pcp-hero-meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pcp-hero-meta span,
.pcp-value-strip span {
  border: none;
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.pcp-hero-disclaimer {
  margin: 14px 0 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.pcp-hero-intake {
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 0;
  padding-top: 4px;
}

.pcp-hero-intake h2 {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
}

.pcp-chat-subtext {
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 1rem;
}

.pcp-chat-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.pcp-chat-form textarea {
  min-height: 130px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  resize: vertical;
  background: #ffffff;
  box-shadow: none;
  width: 100%;
  box-sizing: border-box;
}

.pcp-chat-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#pcp-char-count {
  color: #6b7280;
  font-size: 0.82rem;
}

.pcp-chat-output {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.pcp-demo-message {
  border: none;
  background: rgba(239, 246, 255, 0.85);
  border-radius: 12px;
  padding: 10px 12px;
}

.pcp-demo-message h3 {
  margin: 0 0 5px;
  color: #1e3a8a;
  font-size: 0.9rem;
}

.pcp-demo-message p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
}

.pcp-value-strip {
  margin-top: 18px;
  margin-bottom: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pcp-centered-section {
  max-width: 980px;
  margin: 0 auto 110px;
  text-align: left;
}

.pcp-serif-heading {
  margin: 0;
  color: #111827;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.2rem, 4.2vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-align: center;
}

.pcp-section-label {
  margin: 0;
  text-align: center;
  color: #111827;
  font-size: clamp(2.75rem, 5.25vw, 4.6875rem);
  font-weight: 700;
  line-height: 1.2;
}

.pcp-primary-title {
  margin-top: 16px;
}

.pcp-section-line {
  width: min(860px, 100%);
  margin: 18px auto 0;
  border-top: 1px solid #d1d5db;
}

.pcp-centered-copy {
  margin: 22px auto 0;
  color: #4b5563;
  line-height: 1.6;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 720px;
  text-align: left;
}

.pcp-feature-visual {
  margin: 40px auto 0;
  width: min(860px, 100%);
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.pcp-feature-visual-compact {
  width: min(420px, 100%);
  margin-top: 20px;
}

.pcp-feature-visual-data {
  width: min(860px, 100%);
  margin-top: 20px;
}

.pcp-feature-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  object-fit: cover;
}

.pcp-weight-step-title {
  margin: 40px 0 0;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  letter-spacing: -0.02em;
  text-align: left;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.pcp-centered-section--weight-steps .pcp-weight-step-title:first-of-type {
  margin-top: 28px;
}

.pcp-feature-visual-mockup {
  width: min(960px, 100%);
}

.pcp-landing-screenshot {
  object-fit: contain;
  background: #fff;
}

.pcp-avatar-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.pcp-avatar-row img {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 3px solid #f5f5f5;
  margin-left: -10px;
  object-fit: cover;
  background: #ffffff;
}

.pcp-avatar-row img:first-child {
  margin-left: 0;
}

.pcp-pill-callout {
  margin: 20px auto 0;
  display: block;
  width: fit-content;
  border: none;
  color: #15803d;
  background: rgba(220, 252, 231, 0.9);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: clamp(1.65rem, 3.1vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  line-height: 1.12;
}

.pcp-list-card {
  margin: 28px auto 0;
  width: min(700px, 100%);
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  overflow: visible;
}

.pcp-list-row {
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.pcp-list-row:last-child {
  border-bottom: none;
}

.pcp-list-row strong {
  display: block;
  color: #111827;
  font-size: 1.2rem;
}

.pcp-list-row span {
  display: block;
  margin-top: 4px;
  color: #4b5563;
  font-size: 1rem;
}

.pcp-steps-grid {
  margin: 30px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pcp-step-card {
  border: 1px solid #d1d5db;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
}

.pcp-step-index {
  margin: 0;
  color: #111827;
  font-size: 1.7rem;
  font-weight: 700;
}

.pcp-step-card h3 {
  margin: 10px 0 0;
  color: #111827;
  font-size: 1.9rem;
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  text-align: left;
}

.pcp-step-card p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pcp-analytics-chart-card {
  width: min(980px, 100%);
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 8px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.pcp-glucose-chart {
  width: 100%;
  height: auto;
  display: block;
}

.pcp-glucose-axis-labels text,
.pcp-glucose-legend text {
  fill: #64748b;
  font-size: 11px;
  font-family: "DM Sans", system-ui, sans-serif;
}

.pcp-analytics-copy {
  max-width: 860px;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  color: #334155;
}

.pcp-meal-grid {
  margin: 28px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pcp-meal-card {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
  padding: 14px 16px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.pcp-meal-card h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 700;
}

.pcp-meal-card p {
  margin: 8px 0 0;
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.45;
}

.pcp-meal-impact-high {
  color: #dc2626 !important;
  font-weight: 600;
}

.pcp-meal-impact-mid {
  color: #b45309 !important;
  font-weight: 600;
}

.pcp-meal-impact-low {
  color: #15803d !important;
  font-weight: 600;
}

.pcp-coaching-grid {
  margin: 20px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}

.pcp-coaching-stack {
  margin: 22px auto 0;
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.pcp-coaching-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px 14px;
}

.pcp-coaching-card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.pcp-coaching-card p {
  margin: 8px 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #334155;
}

.pcp-coaching-do {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.pcp-coaching-do p {
  color: #166534;
}

.pcp-coaching-stop {
  background: #fff7ed;
  border-color: #fed7aa;
}

.pcp-coaching-stop p {
  color: #9a3412;
}

.pcp-coaching-note {
  margin: 0;
  max-width: 980px;
  font-size: 1rem;
}

.pcp-section.pcp-disclaimer,
.pcp-section.pcp-footer-cta {
  padding: 32px 0 0;
  margin: 48px auto 0;
  max-width: min(640px, 100%);
  box-sizing: border-box;
}

.pcp-section.pcp-footer-cta {
  margin-bottom: 0;
  padding-bottom: 0;
}

.pcp-section h2 {
  margin: 0;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  font-weight: 700;
}

.pcp-disclaimer p,
.pcp-footer-cta p {
  margin: 12px 0 0;
  color: #4b5563;
  font-size: 1.06rem;
}

.pcp-footer-cta .pcp-btn {
  margin-top: 14px;
}

.pcp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .pcp-hero-shell {
    grid-template-columns: 1fr;
  }

  .pcp-centered-section {
    margin-bottom: 70px;
  }

  .pcp-serif-heading {
    font-size: clamp(2.2rem, 9vw, 3.6rem);
  }

  .pcp-section-label {
    font-size: clamp(2.75rem, 11.25vw, 4.5rem);
  }

  .pcp-steps-grid {
    grid-template-columns: 1fr;
  }

  .pcp-meal-grid {
    grid-template-columns: 1fr;
  }

  .pcp-coaching-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .pcp-top-cta {
    display: none;
  }

  .pcp-chat-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .pcp-hero-actions .pcp-btn-primary {
    width: 100%;
  }

}

/* --- Home page landing sections (scoped; used by /pages/home/) --- */

.home-landing-hero {
  width: min(920px, 100%);
  margin: 18px auto clamp(42px, 7vw, 84px);
  text-align: center;
}

.home-landing-hero .pcp-serif-heading {
  margin-left: auto;
  margin-right: auto;
  max-width: 780px;
}

.home-landing-hero .pcp-section-line,
.home-offer-section .pcp-section-line {
  width: min(860px, 100%);
  margin-top: 14px;
  border-top-color: rgba(17, 24, 39, 0.28);
}

.home-landing-hero .home-hero-copy {
  margin-top: 24px;
}

.home-offer-section .home-offer-visual {
  margin-top: 32px;
}

.home-hero-copy {
  margin: 18px auto 0;
  max-width: 720px;
  color: #374151;
  font-size: clamp(1.12rem, 1.7vw, 1.42rem);
  line-height: 1.5;
}

.home-trust-strip {
  margin: 28px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 760px;
}

.home-trust-strip span {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1e3a8a;
  padding: 9px 14px;
  font-size: 0.88rem;
  font-weight: 700;
}

.home-offer-section {
  width: 100%;
  max-width: 980px;
  margin: 0 auto clamp(64px, 8vw, 104px);
  text-align: center;
}

.home-offer-visual {
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.home-offer-visual .pcp-feature-image {
  width: 100%;
  aspect-ratio: auto;
  object-fit: contain;
}

.home-offer-note {
  margin: 18px auto 0;
  border-radius: 18px;
  background: #f0fdf4;
  color: #14532d;
  padding: 14px 16px;
  max-width: 720px;
  font-size: clamp(0.98rem, 1.2vw, 1.08rem);
  font-weight: 600;
  line-height: 1.5;
}

.home-offer-list {
  margin: 22px auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  max-width: 760px;
  text-align: left;
}

.home-offer-list li {
  position: relative;
  padding: 13px 14px 13px 38px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f9fafb;
  color: #374151;
  line-height: 1.45;
}

.home-offer-list li::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 5px #dbeafe;
}

.home-offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  min-height: 46px;
  text-decoration: none;
}

.home-offer-actions {
  margin-top: 24px;
  text-align: center;
}

@media (max-width: 1040px) {
  .home-landing-hero {
    margin-bottom: 48px;
  }
}

@media (max-width: 720px) {
  .home-landing-hero {
    margin-bottom: 40px;
  }

  .home-trust-strip {
    justify-content: stretch;
  }

  .home-trust-strip span {
    flex: 1 1 210px;
    text-align: center;
  }

  .home-offer-visual {
    border-radius: 14px;
  }

  .home-offer-cta {
    width: 100%;
  }
}

/* --- Home: four-offer card grid (/pages/home/) --- */

.home-cards-page {
  margin: 0;
  min-height: 100vh;
  background: #eceff2;
  color: #111827;
  font-family: "DM Sans", system-ui, sans-serif;
}

.home-cards-main {
  box-sizing: border-box;
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(16px, 3vw, 28px) clamp(32px, 5vw, 56px);
}

.home-cards-hero {
  text-align: center;
  margin-bottom: clamp(28px, 4.5vw, 44px);
}

.home-cards-page-title {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.55rem, 1.1rem + 2.4vw, 2.45rem);
  line-height: 1.2;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.home-cards-page-title-line {
  display: block;
}

.home-cards-page-title-line + .home-cards-page-title-line {
  margin-top: 0.28em;
}

.home-cards-page-title-line--nowrap {
  white-space: nowrap;
}

.pcp-hero-title-line2-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.28em;
}

.pcp-starter-hero.home-cards-hero {
  margin-bottom: clamp(12px, 2vw, 20px);
}

.pcp-starter-hero .home-cards-page-title-line + .pcp-hero-title-line2-wrap {
  margin-top: 0;
}

.pcp-starter-hero .pcp-hero-title-line2-wrap .home-cards-page-title-line {
  margin-top: 0.28em;
}

.home-cards-page-rule {
  width: min(860px, 100%);
  margin: clamp(16px, 2.4vw, 22px) auto 0;
  border-top: 1px solid rgba(17, 24, 39, 0.22);
}

.home-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
  max-width: min(1000px, 100%);
  margin-inline: auto;
}

.home-cards-item {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: 22px;
  padding: clamp(26px, 3vw, 36px) clamp(16px, 2vw, 22px) clamp(22px, 3.4vw, 36px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.home-cards-item--mint {
  background: #d8f0e4;
}

.home-cards-item--sand {
  background: #efe8dc;
}

.home-cards-item--mist {
  background: #e4eaf0;
}

.home-cards-item--slate {
  background: #dfe5ee;
}

.home-cards-badge {
  margin: 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.home-cards-title {
  margin: clamp(16px, 2vw, 22px) 0 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  /* Shrink on narrow cards so long titles stay one line (no max-width cap). */
  font-size: clamp(0.92rem, 1.5vw, 1.35rem);
  font-size: clamp(0.72rem, 0.12rem + 5.2cqw, 1.35rem);
  line-height: 1.25;
  color: #0f172a;
  max-width: 100%;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.home-cards-detail {
  margin: clamp(10px, 1.2vw, 14px) 0 0;
  font-size: clamp(0.88rem, 1vw, 0.95rem);
  font-weight: 500;
  line-height: 1.45;
  color: #334155;
  max-width: min(100%, 19rem);
}

.home-cards-media {
  margin-top: auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
}

.home-cards-thumb {
  margin-top: 0;
  width: calc(100% + clamp(32px, 4vw, 44px));
  margin-left: calc(-1 * clamp(16px, 2vw, 22px));
  margin-right: calc(-1 * clamp(16px, 2vw, 22px));
  margin-bottom: 0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  padding: clamp(8px, 1.4cqw, 14px) clamp(10px, 2.2cqw, 18px);
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.42);
}

.home-cards-thumb img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  /* Shrink to fit; never crop top/bottom (or sides). */
  max-height: min(260px, 48vw);
  max-height: clamp(160px, 52cqw, 280px);
  object-fit: contain;
  object-position: center;
}

.home-cards-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  min-height: 44px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  max-width: 220px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.home-cards-cta:hover {
  background: #000000;
}

.home-cards-cta:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.home-cards-cta-disabled,
.home-cards-cta-disabled:hover,
.home-cards-cta-disabled:focus-visible {
  background: #9ca3af;
  color: #f9fafb;
  cursor: not-allowed;
  pointer-events: none;
  outline: none;
}

@media (max-width: 520px) {
  .home-cards-grid {
    grid-template-columns: 1fr;
  }
}
