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

.pcp-topbar,
.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 {
  padding-top: 10px;
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  position: relative;
}

.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-active {
  background: #eff6ff;
  color: #1d4ed8;
}

.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-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-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%;
  }

}
