@scope (.bloom-content) {
  /* Midlife Bloom Method: shared styles for homepage.html, labs.html, circle.html
   If your site already has a stylesheet you like, keep the page markup and copy,
   and map these class names to your existing styles instead. */

  .bloom-content {
    --plum: #3d1a2e;
    --deep-plum: #1f0c19;
    --gold: #c9a84c;
    --cream: #faf6f1;
    --ink: #2a1a24;
    --muted: #6b5a64;
    --line: #e8dfd6;
    --white: #ffffff;
    --radius: 14px;
    --max: 1080px;
  }

  * {
    box-sizing: border-box;
  }

  .bloom-content {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family:
      "Outfit",
      system-ui,
      -apple-system,
      Segoe UI,
      Roboto,
      sans-serif;
    font-size: 17px;
    line-height: 1.6;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  a {
    color: var(--plum);
  }
  h1,
  h2,
  h3 {
    font-family: "Fraunces", Georgia, serif;
    color: var(--plum);
    line-height: 1.15;
    margin: 0 0 0.5em;
  }
  h1 {
    font-size: clamp(2.3rem, 6vw, 3.6rem);
  }
  h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }
  h3 {
    font-size: 1.4rem;
  }
  p {
    margin: 0 0 1em;
  }

  .skip {
    position: absolute;
    left: -9999px;
  }
  .skip:focus {
    left: 16px;
    top: 16px;
    background: var(--white);
    padding: 8px 12px;
    z-index: 10;
  }

  .wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 16px;
  }
  section {
    padding: 64px 0;
  }
  section.alt {
    background: var(--white);
  }
  section.dark {
    background: var(--deep-plum);
    color: var(--cream);
  }
  section.dark h2,
  section.dark h3 {
    color: var(--cream);
  }

  .anchor-line {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    color: var(--gold);
  }

  /* Header */
  .site-header {
    background: var(--white);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
  }
  .logos {
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .logos img {
    height: 44px;
    width: auto;
  }
  .nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    align-items: center;
  }
  .nav a {
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
  }
  .nav a:hover,
  .nav a[aria-current="page"] {
    color: var(--plum);
    text-decoration: underline;
  }

  /* Buttons */
  .btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--plum);
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    font-family: inherit;
  }
  .btn-primary {
    background: var(--plum);
    color: var(--cream);
  }
  .btn-primary:hover {
    background: var(--deep-plum);
  }
  .btn-ghost {
    background: transparent;
    color: var(--plum);
  }
  .btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--deep-plum);
  }
  .btn-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 24px 0;
  }

  /* Hero */
  .hero .wrap {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
  }
  .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 12px;
  }
  .hero img {
    border-radius: var(--radius);
  }
  .trust {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 16px;
    flex-wrap: wrap;
  }
  .trust img {
    height: 40px;
    width: auto;
  }

  .split {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: center;
  }
  .split img {
    border-radius: var(--radius);
  }

  /* Cards and steps */
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  .card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
  }
  .card .btn {
    margin-top: auto;
  }
  .step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--plum);
    color: var(--cream);
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-bottom: 12px;
  }
  .price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--plum);
    margin-bottom: 8px;
  }
  .small {
    font-size: 0.9rem;
    color: var(--muted);
  }

  .more-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
  }
  .more-links a {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none;
    font-size: 0.95rem;
  }

  /* Testimonials */
  blockquote {
    margin: 0;
    background: var(--white);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    padding: 24px;
  }
  blockquote footer {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--muted);
  }

  /* Pricing */
  .price-big {
    font-family: "Fraunces", Georgia, serif;
    font-size: 3rem;
    color: var(--plum);
    line-height: 1;
  }
  .card.featured {
    border: 2px solid var(--gold);
  }

  /* Lists */
  ul.check {
    list-style: none;
    padding: 0;
    margin: 0 0 1em;
  }
  ul.check li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 10px;
  }
  ul.check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: 700;
  }

  /* FAQ */
  details {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
  }
  summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--plum);
  }
  details p {
    margin-top: 12px;
  }

  /* Forms */
  .form {
    display: grid;
    gap: 12px;
    max-width: 520px;
  }
  .form label {
    font-size: 0.9rem;
    font-weight: 600;
  }
  .form input,
  .form textarea,
  .form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: var(--white);
  }

  /* Footer */
  .site-footer {
    background: var(--deep-plum);
    color: var(--cream);
    padding: 48px 0 32px;
    font-size: 0.92rem;
  }
  .site-footer a {
    color: var(--cream);
  }
  .footer-cols {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 24px;
  }
  .footer-cols ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .footer-cols li {
    margin-bottom: 6px;
  }
  .legal {
    border-top: 1px solid rgba(250, 246, 241, 0.2);
    margin-top: 32px;
    padding-top: 20px;
    font-size: 0.8rem;
    opacity: 0.85;
  }

  @media (max-width: 860px) {
    .hero .wrap,
    .split,
    .grid-3,
    .grid-4,
    .footer-cols {
      grid-template-columns: 1fr;
    }
    section {
      padding: 48px 0;
    }
    .nav {
      gap: 12px;
    }
  }

  /* /labs nutrition section */
  #nutrition .price-big {
    font-size: clamp(1.85rem, 3vw, 2.6rem);
    overflow-wrap: anywhere;
  }
  #nutrition .grid-3 {
    align-items: stretch;
    margin-top: 28px;
  }
  #nutrition .section-intro {
    max-width: 46rem;
  }
}
.bloom-content {
  --plum: #3d1a2e;
  --deep-plum: #1f0c19;
  --gold: #c9a84c;
  --cream: #faf6f1;
  --ink: #2a1a24;
  --muted: #6b5a64;
  --line: #e8dfd6;
  --white: #fff;
  --radius: 14px;
  --max: 1080px;
  background: var(--cream);
  font-family: Outfit, sans-serif;
  line-height: 1.6;
}
.bloom-content [hidden] {
  display: none !important;
}
.bloom-content a:focus-visible,
.bloom-content button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

@scope (.bloom-content) {
/* css/additions.css: append to /public/bloom.css INSIDE the existing
   @scope (.bloom-content) { ... } block, or import after it. */

/* Story-style testimonials */
.story { display: flex; flex-direction: column; gap: .75rem; }
.story img { width: 100%; height: auto; border-radius: 12px; aspect-ratio: 4 / 5; object-fit: cover; }
.story-offer { text-transform: uppercase; letter-spacing: .08em; opacity: .75; margin: 0; }
.story-arc { margin: 0; display: grid; gap: .25rem; }
.story-arc dt { font-weight: 600; font-size: .85rem; }
.story-arc dd { margin: 0 0 .5rem; }
.story blockquote { margin: 0; font-style: italic; font-size: 1.15rem; }
.story-note { margin-top: 1.5rem; opacity: .8; }

/* Private package cards */
.card.featured { outline: 2px solid #2c1222; outline-offset: -2px; }
.card ul { padding-left: 1.1rem; }

/* Accessibility: visible keyboard focus everywhere */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #2c1222; outline-offset: 3px; border-radius: 4px;
}

/* Images never overflow, and reserved space prevents layout shift */
img { max-width: 100%; height: auto; }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Mobile: larger tap targets for buttons and nav links */
@media (max-width: 640px) {
  .btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; width: 100%; }
}

/* Append inside @scope (.bloom-content) in public/bloom.css, after website-fixes/css/additions.css.
   Uses the existing classes: wrap, grid-3, card, alt, eyebrow, btn, price-big, small, featured. */
.doors { align-items: stretch; }
.door { display: flex; flex-direction: column; gap: .6rem; position: relative; }
.door-num { font-family: "Fraunces", serif; font-size: 3rem; line-height: 1; margin: 0; opacity: .25; }
.door h2 { font-size: 1.5rem; margin: 0; }
.door-offers { list-style: none; padding: 0; margin: .5rem 0; display: grid; gap: .75rem; }
.door-offers li { border-top: 1px solid rgba(44,18,34,.12); padding-top: .6rem; }
.door-ctas { margin-top: auto; display: grid; gap: .5rem; }
.door-note { margin: 0; }
.addons-line { margin-top: 1rem; }
.org-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
#org-inquiry form { display: grid; gap: .75rem; max-width: 36rem; }
#org-inquiry label { display: grid; gap: .25rem; }

/* Phase 1: two-card layout for /private pricing (3- and 6-month only) */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; max-width: 60rem; }

.grid-2 {grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));} #apply,#org-inquiry {scroll-margin-top:110px;}
}

/* Paid-session scheduling */
@scope (.bloom-content) {
.paid-steps { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .6rem; }
.paid-steps li { border: 1px solid var(--gold, #C9A24A); border-radius: 12px; padding: .8rem 1rem; background: #fff; }
.paid-steps li.done { background: #f6f1e4; color: var(--plum, #4A1F45); }
.paid-steps li.current { border-width: 2px; box-shadow: 0 0 0 3px rgba(201,162,74,.18); }
.btn-schedule { font-size: 1.25rem; padding: 1.05rem 2.2rem; min-width: min(100%, 22rem); display: inline-block; }
.callout { background: #f6f1e4; border-left: 4px solid var(--gold, #C9A24A); padding: .8rem 1rem; border-radius: 8px; }
.signoff { font-style: italic; margin-top: 1.5rem; }

  .btn-schedule { max-width: 100%; white-space: normal; }
  .callout, .paid-steps li { overflow-wrap: anywhere; }
}

/* Four pillars: preserve the shared card, font, and spacing system. */
@scope (.bloom-content) {
  .pillars { color: var(--deep-plum); }
  .pillars__why { max-width: 760px; margin: 32px 0 36px; }
  .pillars .grid-4 { margin-bottom: 36px; }
  .pillar__why { font-size: .95rem; border-top: 1px solid var(--gold); padding-top: 12px; color: var(--plum); }
  .pillars__close { max-width: 760px; }
  .pillars__anchor { color: var(--gold); font-style: italic; font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; }
  .pillars__source { color: var(--muted); font-size: .8rem; }
  .pillars__source a { text-decoration: underline; }
  @media (min-width: 561px) and (max-width: 960px) {
    .pillars .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
}

/* /organizations: stat cards, ROI table, featured badge */
.bloom-content .stat-num { font-family: "Fraunces", Georgia, serif; font-size: 2.4rem; line-height: 1; color: var(--plum); margin: 0 0 10px; }
.bloom-content .stat-card p:last-child { margin-bottom: 0; }
.bloom-content .badge { display: inline-block; align-self: flex-start; background: var(--gold); color: var(--deep-plum); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px; }
.bloom-content .roi-wrap { margin: 20px 0; }
.bloom-content .roi-table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-width: 0; }
.bloom-content .roi-table col.roi-col-label { width: 68%; }
.bloom-content .roi-table col.roi-col-value { width: 32%; }
.bloom-content .roi-table th, .bloom-content .roi-table td { padding: 14px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; overflow-wrap: anywhere; }
.bloom-content .roi-table th:last-child, .bloom-content .roi-table td:last-child { text-align: right; }
.bloom-content .roi-table thead th { background: var(--plum); color: var(--cream); font-weight: 600; }
.bloom-content .roi-table td:last-child { font-weight: 600; color: var(--plum); white-space: normal; }
.bloom-content .roi-table tr:last-child td { border-bottom: 0; }
.bloom-content .roi-table tr.roi-total td { background: var(--cream); font-weight: 700; color: var(--plum); }
/* Phones: stack each row so nothing runs off-screen */
@media (max-width: 640px) {
  .bloom-content .roi-table, .bloom-content .roi-table tbody, .bloom-content .roi-table tr, .bloom-content .roi-table td { display: block; width: 100%; box-sizing: border-box; }
  .bloom-content .roi-table colgroup, .bloom-content .roi-table thead { display: none; }
  .bloom-content .roi-table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .bloom-content .roi-table tr:last-child { border-bottom: 0; }
  .bloom-content .roi-table td { padding: 0; border: 0; }
  .bloom-content .roi-table td:last-child { text-align: left; margin-top: 6px; font-size: 1.1rem; }
  .bloom-content .roi-table tr.roi-total { background: var(--cream); }
}
.bloom-content .roi-takeaway { font-family: "Fraunces", Georgia, serif; font-size: 1.5rem; line-height: 1.3; color: var(--plum); margin: 8px 0 12px; }
.bloom-content .section-intro { max-width: 46rem; }

/* Homepage systems update: hero why line, #this-month section, pillar tags. */
@scope (.bloom-content) {
  .hero-why {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--plum);
    max-width: 36rem;
  }

  #this-month .section-intro {
    max-width: 46rem;
  }

  .shift-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0 8px;
    align-items: stretch;
  }

  .shift-col {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 24px;
  }

  .shift-col h3 {
    margin-bottom: 0.6em;
  }

  .shift-col p:last-child,
  .shift-col .shift-list {
    margin-bottom: 0;
  }

  .shift-col--shift {
    border: 2px solid var(--gold);
  }

  .shift-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .shift-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
  }

  .shift-list li:last-child {
    margin-bottom: 0;
  }

  .shift-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
  }

  .systems-loop {
    max-width: 420px;
    margin: 36px auto 0;
    text-align: center;
  }

  .systems-loop__svg {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }

  .systems-loop__caption {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.35;
    color: var(--plum);
    max-width: 28rem;
    margin: 8px auto 0;
  }

  .this-month__note {
    text-align: center;
    max-width: 36rem;
    margin: 20px auto 0;
  }

  .pillar__tag {
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--plum);
    margin: -0.15em 0 0.85em;
  }

  @media (max-width: 860px) {
    .shift-grid {
      grid-template-columns: 1fr;
    }
  }
}
