/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

@font-face {
  font-family: 'Beltram Test';
  src: url('/static/fonts/BeltramTest-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PP Right Serif Mono';
  src: url('/static/fonts/PPRightSerifMono-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Strategy Page Styles */
:root {
  --s-terracotta: #CB734B;
  --s-terracotta-light: #E8A882;
  --s-peach: #F5E6DC;
  --s-peach-light: #FBF3EE;
  --s-cream: #FAF7F4;
  --s-dark: #2E2A27;
  --s-dark-light: #4A4543;
  --s-gray: #6B6560;
  --s-gray-light: #A09890;
  --s-gray-lighter: #D4CEC8;
  --s-green: #4A7C59;
  --s-green-light: #E8F0EB;
  --s-mauve: #A8899A;
  --s-mauve-light: #F0EBF0;
  --s-gold: #C4A35A;
  --s-gold-light: #F5F0E0;
  --s-white: #FFFFFF;

  /* Fitzpatrick scale */
  --fitz-1: #F6E8DC;
  --fitz-2: #EFD8C3;
  --fitz-3: #DFC0A2;
  --fitz-4: #C99672;
  --fitz-5: #9B6648;
  --fitz-6: #5C3828;

  /* Baumann — O (Oily) warm terracotta range */
  --baumann-o-s-nw: #C7B667;
  --baumann-o-s-pw: #B86E4E;
  --baumann-o-s-nt: #D9A287;
  --baumann-o-s-pt: #CF8A68;

  /* Baumann — D (Dry) muted rose range */
  --baumann-d-s-nw: #B88C86;
  --baumann-d-s-pw: #C07B70;
  --baumann-d-s-nt: #D7B7AE;
  --baumann-d-s-pt: #D6A496;

  /* Baumann — D (Dry) clear rose range */
  --baumann-d-r-nw: #A97F78;
  --baumann-d-r-pw: #B56E61;
  --baumann-d-r-nt: #DCC2B8;
  --baumann-d-r-pt: #D7A895;

  /* Strategy layer */
  --strategy-natural: #E9DDE5;
  --strategy-maintained: #D8BED0;
  --strategy-refined: #BE93B2;
  --strategy-visible: #9F6D8F;
}

* { box-sizing: border-box; }

body.strategy-page {
  margin: 0;
  padding: 0;
  font-family: 'Beltram Test', Georgia, serif;
  background: #E8E4E0;
  color: var(--s-dark);
  line-height: 1.6;
  min-width: 1401px;
}

.strategy-container {
  max-width: 1401px;
  margin: 0 auto;
  padding: 0 60px;
}

/* Hero */
.strategy-hero {
  background:
    radial-gradient(71.98% 55.12% at 100% 99.96%, #EDCFC1 0%, rgba(237, 207, 193, 0.00) 100%),
    radial-gradient(68.43% 52.89% at 0% 99.96%, #EDE5C1 0%, rgba(237, 229, 193, 0.00) 100%);
  padding: 80px 60px 80px;
  position: relative;
}
.strategy-hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.strategy-sparkle {
  margin-bottom: 16px;
}
.strategy-sparkle svg {
  width: 32px;
  height: 32px;
}
.strategy-hero-text h1 {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 50px;
  font-style: normal;
  font-weight: 400;
  color: var(--s-dark);
  margin: 0;
  line-height: normal;
  letter-spacing: 0.2px;
}
.strategy-hero-text h1 .hero-name {
  color: #CB734B;
}
.hero-strategy {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 70px;
  font-style: normal;
  font-weight: 400;
  color: #2E2A27;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 100%; /* 70px */
  margin-top: 0;
}
.strategy-hero-badges {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}
.strategy-badge {
  width: 216px;
  min-height: 170px;
  padding: 24px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  color: #FCF5F2;
}
.strategy-badge-title {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0.2px;
  color: inherit;
}
/* Fitzpatrick description text */
.badge-fitzpatrick .strategy-badge-desc {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.2px;
  color: inherit;
  margin-top: 28px;
}
/* Baumann description text */
.badge-baumann .strategy-badge-desc {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 21px;
  letter-spacing: 0.2px;
  color: inherit;
  margin-top: auto;
}
/* Strategy style label */
.strategy-badge-label {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 25px;
  letter-spacing: 0.2px;
  color: inherit;
}
/* Strategy style value */
.strategy-badge-value {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: 0.2px;
  color: inherit;
  margin-top: auto;
}

/* Badge colors — mapped from color palette */
/* Fitzpatrick: per-user color based on type */
.badge-fitzpatrick { background: #C99672; }
/* Baumann: per-user color based on type */
.badge-baumann { background: #C07B70; }
/* Strategy: per-user color based on style */
.badge-style { background: #D8BED0; }

/* Section */
.strategy-section {
  padding: 73px 64px;
  background: var(--s-white);
}
.strategy-section:nth-child(odd) {
  background: var(--s-cream);
}
.strategy-section-title {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #2E2A27;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
  line-height: normal;
}
/* "What we heard and saw" heading */
.strategy-section-title-italic {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 20px;
  font-weight: 400;
  font-style: normal;
  color: #2E2A27;
  margin: 0 0 16px;
  letter-spacing: 0.2px;
  line-height: normal;
}
/* Uppercase mono variant for sections like KEY INGREDIENTS, etc. */
.strategy-section-title-mono {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  color: #2E2A27;
  line-height: 32px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin: 0 0 24px;
}

/* Two column layout */
.strategy-two-col {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
}

/* Strategy overview */
.strategy-headline {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  font-weight: 400;
  color: #CB734B;
  line-height: 25px;
  letter-spacing: 0.2px;
  margin-bottom: 20px;
}
.strategy-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.strategy-bullets li {
  padding: 4px 0;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  color: #5F6368;
  padding-left: 20px;
  position: relative;
  line-height: 25px;
  letter-spacing: 0.2px;
}
.strategy-bullets li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: 4px;
  font-size: 18px;
  color: #5F6368;
}

/* Sub-labels */
.strategy-sub-label {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  color: #2E2A27;
  letter-spacing: 0.2px;
  line-height: normal;
  margin-bottom: 8px;
}

/* Nurse quote */
.nurse-quote {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-top: 40px;
  padding: 24px 0 0;
  justify-content: center;
}
.nurse-photo-wrap {
  flex-shrink: 0;
  width: 188px;
  height: 187px;
  border-radius: 50%;
  border: 1.25px solid #D4CBFC;
  /* No padding so the image fills the circle without a gap between
     the border and the photo. */
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.nurse-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--s-gray-lighter);
}
.nurse-quote-content {
  position: relative;
  max-width: 504px;
}
.nurse-quote-mark {
  display: block;
  width: auto;
  height: 48px;
  margin-bottom: 8px;
}
.nurse-quote blockquote {
  margin: 0;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 14px;
  font-style: normal;
  color: var(--s-dark-light);
  line-height: 1.65;
  letter-spacing: 0.2px;
}
.nurse-name {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: var(--s-dark);
  margin-top: 12px;
  letter-spacing: 0.2px;
}

/* Concern badges */
.concern-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.concern-badge {
  background: var(--s-peach);
  color: var(--s-terracotta);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* Priority Cards (Key Ingredients) */
.priority-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.priority-card {
  display: flex;
  width: 100%;
  padding: 16px 20px 14px 20px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 14px;
  border: 1px solid #E8E5E0;
  background: #FFF;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.priority-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 2px;
}
.priority-number {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  text-transform: uppercase;
  color: #CB734B;
}
.priority-ingredient-name {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 22.5px;
  color: #2E2A27;
  margin: 2px 0 4px;
}
.priority-description {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #696A6C;
  margin: 0 0 6px;
}
.priority-product-name {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #979797;
  margin: 0 0 8px;
}
.priority-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  justify-content: flex-end;
}
.badge-concern {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid #E8E5E0;
  color: #696A6C;
  background: #FFF;
}
.badge-have {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #E1E8F4;
  color: #2E2A27;
}
.badge-add {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #EDE5C1;
  color: #2E2A27;
}

/* In-Clinic Treatment Cards */
.treatment-card {
  background: #FFF;
  border: 1px solid #E8E5E0;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.treatment-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.treatment-card-title {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  color: #2E2A27;
  margin: 2px 0 4px;
}
.treatment-card-desc {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 19.5px;
  color: #696A6C;
  margin: 0 0 8px;
}
.treatment-meta-label {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: #979797;
  letter-spacing: 0.3px;
}
.treatment-meta-value {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  line-height: 18px;
  color: #696A6C;
  margin-bottom: 4px;
}
.treatment-nurse-label {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  color: #979797;
  letter-spacing: 0.3px;
  margin-top: 8px;
  margin-bottom: 2px;
}
.treatment-nurse-note {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-style: italic;
  line-height: 19.5px;
  color: #696A6C;
}
.badge-recommended {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  padding: 3px 12px;
  border-radius: 12px;
  background: #EDE5C1;
  color: #2E2A27;
  white-space: nowrap;
}

/* At-Home Routine */
.routine-columns {
  display: grid;
  grid-template-columns: 438px 438px;
  gap: 60px;
  justify-content: center;
}
.routine-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.routine-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 438px;
  height: 32px;
  padding: 0 12px;
  background: #F5F5F5;
  border-radius: 4px;
  margin-bottom: 16px;
}
.routine-column-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1px;
}
.routine-column-label svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.routine-column-hint {
  color: #000;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Routine Product Card */
.routine-product-card {
  display: flex;
  width: 418px;
  min-height: 160px;
  border-radius: 10px;
  background: #FFF;
  position: relative;
  padding-bottom: 32px;
}
.routine-product-image {
  width: 101px;
  height: 101px;
  border-radius: var(--corner-radius-md, 8px);
  border: 1px solid #E0DFDF;
  background: #F9F9F9;
  flex-shrink: 0;
  margin: 16px 16px 0 0;
  object-fit: contain;
}
.routine-product-info {
  flex: 1;
  padding: 12px 0 0 0;
  display: flex;
  flex-direction: column;
}
.routine-product-step-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 6px;
  border-bottom: 1px solid #EDCFC1;
  margin-bottom: 4px;
}
.routine-product-step {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 13px;
  color: #CB734B;
}
.routine-product-freq {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  color: #979797;
}
.routine-product-brand {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: #2E2A27;
  margin: 0;
  line-height: 1.3;
}
.routine-product-brand-name {
  font-weight: 400;
  color: #2E2A27;
}
.routine-product-name {
  color: #979797;
  font-weight: 400;
}
.routine-product-note {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  line-height: 19.5px;
  color: #696A6C;
  margin: 6px 0 0;
}
.routine-product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* Position badges below the image, not the text */
  position: absolute;
  bottom: 0;
  left: 0;
}
.badge-concern-filled {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #CB734B;
  color: #FFF;
}
.badge-concern-primary {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: #491E0A;
  color: #FFF;
}
.badge-recommended-inline {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  color: #CB734B;
}

/* Ingredient section title */
.ingredient-section-title {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 25px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: #2E2A27;
  margin: 0 0 20px;
}

/* Ingredient Tables */
.ingredient-table {
  width: 968px;
  border-collapse: collapse;
}
.ingredient-table thead tr {
  background: #E0AB93;
  height: 50px;
}
.ingredient-table th {
  color: #FFF;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  text-align: left;
  padding: 0 20px;
  border: none;
  white-space: nowrap;
}
.ingredient-table td {
  color: #625F5D;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 43px;
  letter-spacing: 0.2px;
  padding: 0 20px;
  border-bottom: 1px solid #E0AB93;
}
.ingredient-table tr:last-child td {
  border-bottom: none;
}

/* Ingredient Gaps table */
.ingredient-table--gaps {
  width: 1310px;
}
.ingredient-table--gaps thead tr {
  background: #EDE5C1;
}
.ingredient-table--gaps th {
  color: #2E2A27;
}
.ingredient-table--gaps td {
  border-bottom-color: #EDE5C1;
}

/* Interaction Warnings */
.interaction-warning {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 10px 27px 9px;
  border: 1px solid #930C0C;
  background: #FFF;
  margin-bottom: 16px;
}
.interaction-warning-title {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  color: #2E2A27;
  letter-spacing: 0.2px;
}
.interaction-warning-body {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #625F5D;
}
.interaction-warning-body .warning-note {
  font-style: italic;
  color: #979797;
}

/* Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.timeline-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
  color: var(--s-dark-light);
  border-bottom: 1px solid var(--s-gray-lighter);
}
.timeline-month {
  font-weight: 600;
  color: var(--s-dark);
  min-width: 60px;
}

/* Interaction warnings */
.warning-card {
  background: var(--s-peach-light);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
}
.warning-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--s-terracotta);
  margin-bottom: 6px;
}
.warning-text {
  font-size: 13px;
  color: var(--s-dark-light);
}

/* Recommendation cards */
.rec-card {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--s-white);
  border: 1px solid var(--s-gray-lighter);
  border-radius: 16px;
  margin-bottom: 16px;
}
.rec-card-image {
  width: 80px;
  height: 100px;
  border-radius: 8px;
  background: var(--s-gray-lighter);
  flex-shrink: 0;
}
.rec-card-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--s-dark);
}
.rec-card-info p {
  font-size: 13px;
  color: var(--s-gray);
  margin: 4px 0 0;
}
.rec-card-details {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--s-dark-light);
}
.rec-card-detail-label {
  font-weight: 600;
  color: var(--s-gray);
}

/* Results */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.result-milestone {
  padding: 12px 0;
  border-bottom: 1px solid var(--s-gray-lighter);
}
.result-timeframe {
  font-weight: 600;
  color: var(--s-terracotta);
  font-size: 14px;
}
.result-description {
  font-size: 13px;
  color: var(--s-dark-light);
  margin-top: 4px;
}
.checkin-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--s-gray-lighter);
  font-size: 13px;
}
.checkin-number {
  font-weight: 600;
  color: var(--s-terracotta);
  min-width: 50px;
}

/* CTA / Next Steps */
.strategy-next-steps {
  padding: 60px 40px;
  background: var(--s-cream);
}
.strategy-next-steps h2 {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--s-dark);
  margin: 0 0 32px;
}
.next-steps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.app-download-card {
  background: var(--s-white);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  gap: 24px;
  align-items: center;
}
.qr-placeholder {
  width: 120px;
  height: 120px;
  background: var(--s-gray-lighter);
  border-radius: 8px;
  flex-shrink: 0;
}
.cta-card {
  background: linear-gradient(135deg, var(--s-dark) 0%, var(--s-dark-light) 100%);
  border-radius: 16px;
  padding: 32px;
  color: var(--s-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-card h3 {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 24px;
  font-weight: 400;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--s-terracotta-light);
}
.cta-card p {
  font-size: 13px;
  line-height: 1.6;
  opacity: 0.8;
  margin: 0 0 20px;
}
.cta-button {
  display: inline-block;
  background: var(--s-terracotta);
  color: var(--s-white);
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
}

/* New Product Recommendations */
.new-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;
}
.new-product-card {
  /* Two-column layout: a tight left column stacks image + concern badges
     with a fixed 8px gap, and a stretched right column holds the info
     and pushes Buy Now to the bottom. align-items: stretch makes both
     columns the same height so Buy Now's bottom aligns with the bottom
     of the badges (or the bottom of the image when there are no
     badges). */
  display: grid;
  grid-template-columns: clamp(120px, 18vw, 211px) 1fr;
  column-gap: 12px;
  align-items: stretch;
}
.new-product-card-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.new-product-card-image {
  border-radius: var(--corner-radius-md, 8px);
  border: 1px solid #E0DFDF;
  background: #F9F9F9;
  object-fit: contain;
}
.new-product-card-image-placeholder {
  border-radius: var(--corner-radius-md, 8px);
  background: #F9F9F9;
  border: 1px solid #E0DFDF;
  object-fit: contain;
}
.new-product-card-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.new-product-card-info .cta-button--inline {
  margin-top: auto;
  align-self: flex-end;
}
.new-product-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* Constrain pill wrapping to the left column width. */
  max-width: 100%;
}
.new-product-card-name {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: #2E2A27;
  margin: 0 0 8px;
  line-height: 1.3;
}
.new-product-card-meta {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.2px;
  color: #625F5D;
}
.new-product-card-meta strong {
  color: #2E2A27;
}

/* New Treatment Recommendations */
.new-treatment-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.new-treatment-card {
  display: flex;
  gap: 16px;
  /* Stretch so the info column matches the height of image + pills below;
     the CTA inside info uses margin-top: auto to land on the same baseline
     as the last pill row. Mobile media query overrides to flex-start. */
  align-items: stretch;
  padding-bottom: 32px;
  border-bottom: 1px solid #E8E5E0;
}
.new-treatment-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.new-treatment-card img {
  width: 160px;
  height: 160px;
  min-width: 160px;
  min-height: 160px;
  max-width: 160px;
  max-height: 160px;
  object-fit: cover;
  border-radius: var(--corner-radius-md, 8px);
  border: 1px solid #E0DFDF;
  flex-shrink: 0;
  overflow: hidden;
}
.new-treatment-card-image-placeholder {
  width: 160px;
  height: 160px;
  min-width: 160px;
  min-height: 160px;
  max-width: 160px;
  max-height: 160px;
  border-radius: var(--corner-radius-md, 8px);
  background: #F9F9F9;
  border: 1px solid #E0DFDF;
  object-fit: cover;
  overflow: hidden;
  flex-shrink: 0;
}
.new-treatment-card-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
  /* Lock the left column width to the image clamp from routine.html so the
     gap to the info column stays uniform regardless of how many concern
     pills wrap below the image. */
  width: clamp(120px, 18vw, 211px);
}
.new-treatment-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  /* Inherit the column width so pills wrap within the image footprint. */
  max-width: 100%;
}
.new-treatment-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  /* 8px gap covers the minimum spacing between meta and CTA so the button
     never sits flush against the meta text. Auto-margin on the CTA still
     pushes it to the bottom when there's free space. */
  gap: 8px;
}
.new-treatment-card-info .cta-button--help {
  margin-top: auto;
  align-self: flex-end;
}
.new-treatment-card-name {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  color: #2E2A27;
  /* Spacing handled by .new-treatment-card-info { gap: 8px }. */
  margin: 0;
}
.new-treatment-card-meta {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.2px;
  color: #625F5D;
}
.new-treatment-card-meta strong {
  color: #2E2A27;
}

/* Nurse Tip box */
.nurse-tip-box {
  width: 504px;
  padding: 24px;
  border-radius: 10px;
  background: rgba(252, 245, 242, 0.80);
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25);
  margin-top: 16px;
}
.nurse-tip-box-title {
  color: #CB734B;
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 18px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.nurse-tip-box-text {
  color: #CB734B;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  letter-spacing: 0.2px;
}

/* Skincare Routine Nurse Note — page-wide, LLM-generated */
.routine-nurse-note {
  margin-top: 32px;
  padding: 24px 28px;
  border-radius: 10px;
  background: rgba(252, 245, 242, 0.80);
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.15);
}
.routine-nurse-note-label {
  color: #CB734B;
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.routine-nurse-note-text {
  color: #625F5D;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 1px;
}

/* Clinic Timeline Section */
.clinic-timeline-section {
  display: grid;
  grid-template-columns: 430px 1fr 250px;
  gap: 24px;
  align-items: start;
}
.clinic-timeline-title {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #2E2A27;
  margin: 0 0 20px;
}
/* Monthly timeline cards */
.clinic-month-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Mobile-only: collapse to first 4 months with a "Show all months" toggle.
   Desktop renders all 12 months and hides the toggle. */
.show-all-months-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 6px 0;
  margin-top: 4px;
  align-self: flex-start;
  cursor: pointer;
  color: #CB734B;
  text-align: center;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.show-all-months-toggle::after { content: ' \203A'; }
.show-all-months-toggle.expanded::after { content: ' \2039'; }
@media (max-width: 768px) {
  .clinic-month-list .month-extra { display: none; }
  .clinic-month-list.expanded .month-extra { display: flex; }
  .show-all-months-toggle { display: inline-block; }
  /* Stack concern pills vertically on mobile so multi-concern cards stay
     readable when the card is narrow. */
  .routine-product-badges,
  .new-product-card-badges {
    flex-direction: column;
    align-items: flex-start;
  }
  /* Detailed-view product cards: switch from flex (with absolute pills at
     the card bottom) to a 2-col grid on mobile. Pills now occupy their own
     cell directly under the image instead of bottom-anchored absolute,
     which was overlapping the image when pills wrapped to multiple rows. */
  .routine-product-card {
    display: grid;
    grid-template-columns: 101px 1fr;
    column-gap: 16px;
    row-gap: 8px;
    padding: 16px;
    padding-bottom: 16px;
    width: auto !important;
    max-width: 100%;
  }
  .routine-product-card .routine-product-image {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
  }
  .routine-product-card .routine-product-info {
    grid-column: 2;
    grid-row: 1 / span 2;
    padding: 0;
    min-width: 0;
  }
  .routine-product-card .routine-product-badges {
    position: static;
    grid-column: 1;
    grid-row: 2;
    max-width: 101px;
  }
}
.clinic-month-card {
  width: 100%;
  padding: 10px 16px;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.clinic-month-card .badge-concern-primary,
.clinic-month-card .badge-concern-filled {
  flex-shrink: 0;
  white-space: nowrap;
  font-size: 9px;
  padding: 3px 8px;
}
.clinic-month-card-text {
  font-family: 'Beltram Test', Georgia, serif;
  font-weight: 400;
  letter-spacing: 1px;
  flex: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.clinic-month-card-month {
  color: #2E2A27;
  font-size: 15px;
}
.clinic-month-card-sep {
  color: #CB734B;
  font-size: 15px;
  line-height: 1;
}
.clinic-month-card-desc {
  color: #625F5D;
  font-size: 12px;
}
.clinic-month-pill {
  color: #FFF;
  text-align: center;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 8px;
  font-weight: 400;
  line-height: normal;
  letter-spacing: 0.3px;
  background: #CB734B;
  padding: 4px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.clinic-month-pill--light {
  background: #E8A882;
}
.clinic-month-pill--muted {
  background: #D4CEC8;
}
/* Tips card */
.clinic-tips-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 24px;
  border-radius: 14px;
  background: rgba(225, 232, 244, 0.8);
}
.clinic-tips-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.clinic-tip {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.2px;
  color: #625F5D;
}
.clinic-tip-number {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 14px;
  font-weight: 400;
  color: #CB734B;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  display: block;
  margin-bottom: 4px;
}
/* Nurse notes column */
.nurse-notes-card {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.70);
  box-shadow: 0 2px 6px 0 rgba(0, 0, 0, 0.25);
  padding: 16px;
  margin-top: 36px;
}
.nurse-notes-title {
  /* Match the "A Note from Your Nurse" heading style. */
  color: #CB734B;
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  font-size: 15px;
  font-weight: 400;
  line-height: 100%;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.nurse-notes-text {
  color: #625F5D;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 1px;
}

/* Social + Evidence cards (below tips in middle column) */
.clinic-bottom-cards {
  display: flex;
  gap: 16px;
  margin-top: 20px;
}
.clinic-social-card {
  flex: 1;
  min-height: 280px;
  border-radius: 10px;
  overflow: hidden;
  background: #FFF;
  border: 1px solid #E8E5E0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.clinic-social-card img {
  width: 100%;
  flex: 1;
  object-fit: cover;
}
.clinic-social-card-body {
  padding: 12px 16px;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #2E2A27;
}
.clinic-evidence-card {
  display: flex;
  width: 381px;
  padding: 20px 24px 20px 20px;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 17.575px;
  border-radius: 10px;
  border: 1px solid #EDCFC1;
  background:
    radial-gradient(71.98% 55.12% at 100% 99.96%, #EDCFC1 0%, rgba(237, 207, 193, 0.00) 100%),
    radial-gradient(68.43% 52.89% at 0% 99.96%, #EDE5C1 0%, rgba(237, 229, 193, 0.00) 100%);
  flex-shrink: 0;
}
.clinic-evidence-card-icon {
  color: #CB734B;
  font-size: 24px;
}
.clinic-evidence-card-icon svg {
  width: 26px;
  height: 26px;
}
.clinic-evidence-card-text {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 13px;
  font-weight: 400;
  font-style: normal;
  line-height: 20px;
  letter-spacing: 0.2px;
  color: #CB734B;
}

/* Results and Check-In */
.results-checkin-outer {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  padding: 32px 79.5px 48px;
  gap: 24px;
  border-radius: 10px;
  background: #D8CBFC;
  margin: 0 auto;
}
.results-checkin-outer .ingredient-section-title {
  margin: 0;
}
.results-checkin-cards {
  display: flex;
  align-items: flex-start;
  gap: 40px;
}
.results-card {
  display: flex;
  width: 481px;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 6px 10px 4px rgba(0, 0, 0, 0.15), 0 2px 3px 0 rgba(0, 0, 0, 0.30);
  flex-shrink: 0;
}
.results-card-title,
.checkins-card-title {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: #2E2A27;
  margin: 0 0 8px;
}
.results-card-timeframe {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  color: #2E2A27;
  margin: 10px 0 2px;
}
.results-card-desc {
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  color: #625F5D;
}
.checkins-card {
  display: flex;
  flex: 1;
  padding: 24px;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  border-radius: 10px;
  background: #FFF;
  box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.25);
}
.checkin-row {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.checkin-row:last-child { margin-bottom: 0; }
.checkin-row-label {
  color: #5F6368;
}
.checkin-row-desc {
  color: #2E2A27;
}

/* Gradient divider */
.gradient-divider {
  height: 4px;
  background: linear-gradient(90deg, var(--s-peach) 0%, var(--s-terracotta-light) 50%, var(--s-peach) 100%);
}

/* Export bar */
.export-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--s-dark);
  padding: 10px 0;
}
.export-bar-inner {
  max-width: 1401px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.export-bar-title {
  font-family: 'PP Right Serif Mono', 'Courier New', monospace;
  color: var(--s-white);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--s-terracotta);
  color: var(--s-white);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  font-family: 'Beltram Test', Georgia, serif;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.export-btn:hover { opacity: 0.85; }

/* Page frames — match Figma frame size */
.strategy-page-frame {
  width: 1401px;
  margin: 24px auto;
  background: var(--s-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}

/* Override container width inside frames */
.strategy-page-frame .strategy-container {
  max-width: 100%;
  padding: 0;
}

/* Print styles */
@media print {
  .export-bar { display: none; }

  body.strategy-page {
    background: white;
    margin: 0;
    padding: 0;
  }

  .strategy-page-frame {
    width: 1401px;
    margin: 0 auto;
    box-shadow: none;
    page-break-after: always;
    page-break-inside: avoid;
  }
  .strategy-page-frame:last-child {
    page-break-after: auto;
  }

  @page {
    size: 1401px 1917px;
    margin: 0;
  }
}
