/* glass-anatomy.css — reusable glass-card + interactive body-map (real model, front+back) + modality chart */

/* ===== Body map — real model, region-tap, chip nav, mobile bottom-sheet ===== */
.mbm-bodymap{ --bm-accent:var(--rust,#9b440d); }
.mbm-bodymap .bm-stage{ display:flex; flex-direction:column; align-items:center; gap:22px; max-width:980px; margin:0 auto; }
.bm-figs{ display:flex; justify-content:center; align-items:flex-start; gap:22px; width:100%; color:var(--title-text,#1D2023); }
:root[data-theme="dark"] .bm-figs{ color:#cfd6df; }
.bm-anat{ margin:0; flex:0 1 320px; max-width:320px; }
.bm-anat svg{ display:block; width:100%; height:auto; overflow:visible; }
.bm-anat .bm-region, .bm-anat .bm-region.yes, .bm-anat .bm-region.no, .bm-anat .bm-general{
  fill:currentColor; fill-opacity:.07; stroke:currentColor; stroke-opacity:.4; stroke-width:1.1; transition:fill-opacity .12s, fill .12s, stroke .12s; }
.bm-anat .bm-deco{ fill:currentColor; fill-opacity:.03; stroke:currentColor; stroke-opacity:.24; stroke-width:.9; }
.bm-anat text{ fill:var(--muted,#6e6358); font-weight:700; letter-spacing:.08em; }
.bm-anat .bm-hot{ cursor:pointer; }
.bm-anat .bm-hot:hover{ fill:var(--bm-accent); fill-opacity:.16; stroke:var(--bm-accent); stroke-opacity:.6; }
.bm-anat .bm-region.is-sel{ fill:var(--bm-accent); fill-opacity:.24; stroke:var(--bm-accent); stroke-opacity:.9; }
.bm-pts .bm-pt{ cursor:pointer; }
.bm-pt-hit{ fill:transparent; }
.bm-pt-core{ fill:var(--bm-accent); transition:r .15s ease; }
.bm-pt-ring{ fill:none; stroke:var(--bm-accent); stroke-width:1.5; transform-box:fill-box; transform-origin:center; animation:bmRing 3.2s ease-out infinite; }
@keyframes bmRing{ 0%{opacity:.55;transform:scale(.5)} 70%{opacity:0;transform:scale(2.2)} 100%{opacity:0;transform:scale(2.2)} }
.bm-pt:hover .bm-pt-core{ r:7; }
.bm-pt.is-active .bm-pt-core{ r:7.6; filter:drop-shadow(0 0 6px var(--bm-accent)); }
.bm-pt.is-active .bm-pt-ring{ animation:none; opacity:.9; transform:scale(1.5); stroke-width:2; }
.mbm-bodymap.has-active .bm-pt:not(.is-active) .bm-pt-core{ opacity:.45; }
/* region chip nav — guaranteed-tappable + keyboard accessible */
.bm-chips-nav{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; width:100%; max-width:760px; }
.bm-zchip{ font:600 13px/1 var(--font-body,'DM Sans',sans-serif); padding:9px 14px; border-radius:999px;
  border:1px solid var(--line,#e3d8c8); background:var(--surface,#fff); color:var(--text,#33302a); cursor:pointer; transition:border-color .15s,background .15s,color .15s; }
.bm-zchip:hover{ border-color:var(--bm-accent); }
.bm-zchip.is-on{ background:var(--bm-accent); border-color:var(--bm-accent); color:#fff; }
/* readout (frosted glass) */
.bm-readout{ position:relative; width:100%; max-width:760px; border-radius:20px; padding:28px 30px;
  background:rgba(255,255,255,.62); border:1px solid rgba(155,68,13,.16); box-shadow:0 10px 34px rgba(40,22,8,.12);
  -webkit-backdrop-filter:blur(10px) saturate(1.1); backdrop-filter:blur(10px) saturate(1.1); }
:root[data-theme="dark"] .bm-readout{ background:rgba(28,32,38,.92); border-color:rgba(255,255,255,.12); box-shadow:0 10px 34px rgba(0,0,0,.45); }
.bm-close{ display:none; position:absolute; top:12px; right:14px; width:34px; height:34px; border:0; border-radius:50%;
  background:rgba(0,0,0,.06); color:var(--title-text,#1D2023); font-size:22px; line-height:1; cursor:pointer; }
:root[data-theme="dark"] .bm-close{ background:rgba(255,255,255,.1); color:#fff; }
.bm-readout .bm-kicker{ font-family:var(--font-body,'DM Sans',sans-serif); font-size:12px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--bm-accent); margin:0 0 6px; }
.bm-readout h3{ font-family:var(--font-title,'Playfair Display',serif); font-size:25px; line-height:1.12; margin:0 0 10px; color:var(--title-text,#1D2023); }
:root[data-theme="dark"] .bm-readout h3{ color:#fff; }
.bm-readout .bm-label{ font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted,#6e6358); margin:15px 0 5px; }
.bm-readout .bm-cause{ font-size:16px; line-height:1.55; margin:0; color:var(--body-text,#50555C); }
.bm-readout .bm-line{ font-size:15px; line-height:1.55; margin:0; color:var(--body-text,#50555C); }
:root[data-theme="dark"] .bm-readout .bm-cause, :root[data-theme="dark"] .bm-readout .bm-line{ color:#c9ced6; }
.bm-chips{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; }
.bm-chip{ font-size:13px; font-weight:600; padding:6px 13px; border-radius:999px; background:rgba(224,36,52,.10); color:var(--rust,#9b440d); border:1px solid rgba(224,36,52,.22); }
:root[data-theme="dark"] .bm-chip{ background:rgba(240,162,78,.12); color:#f0a24e; border-color:rgba(240,162,78,.28); }
.bm-note{ font-size:14.5px; line-height:1.55; font-style:italic; color:var(--muted,#6e6358); margin:12px 0 0; }
.bm-readout .bm-cta{ display:inline-flex; align-items:center; gap:7px; margin-top:18px; font-weight:700; text-decoration:none; color:var(--bm-accent); border-bottom:2px solid transparent; transition:border-color .2s; }
.bm-readout .bm-cta:hover{ border-bottom-color:var(--bm-accent); }
.bm-readout .bm-idle{ display:flex; flex-direction:column; gap:8px; }
.bm-readout .bm-idle p{ font-size:16px; line-height:1.6; color:var(--body-text,#50555C); margin:0; }
:root[data-theme="dark"] .bm-readout .bm-idle p{ color:#c9ced6; }
/* phones: stack front above back (each bigger), readout as a bottom sheet */
@media(max-width:820px){
  .bm-figs{ flex-direction:column; align-items:center; gap:6px; }
  .bm-anat{ flex:none; max-width:330px; width:84%; }
  .bm-readout{ position:fixed; left:0; right:0; bottom:0; z-index:120; max-width:none; width:100%;
    border-radius:20px 20px 0 0; transform:translateY(112%); transition:transform .3s ease; max-height:82vh; overflow:auto;
    box-shadow:0 -12px 44px rgba(0,0,0,.32); padding:26px 22px 32px; }
  .mbm-bodymap.has-active .bm-readout{ transform:translateY(0); }
  .bm-close{ display:block; }
}

/* ===== Body map v4 — image figure + %-dot overlay + bubble pinned at the part ===== */
.mbm-bodymap .bm-stage{ position:relative; }
.mbm-bodymap .bm-hint{ text-align:center; max-width:640px; margin:0 auto; font-size:15.5px; line-height:1.5; color:var(--body-text,#50555C); }
:root[data-theme="dark"] .mbm-bodymap .bm-hint{ color:#c9ced6; }
.mbm-bodymap .bm-figs{ align-items:flex-start; }
.bm-anat{ position:relative; flex:0 1 300px; max-width:300px; margin:0;
  background:linear-gradient(180deg,#ffffff,#f6eee1); border:1px solid var(--cream-border,#e3d8c8);
  border-radius:18px; padding:12px 12px 8px; box-shadow:0 8px 26px rgba(40,22,8,.10); }
/* keep the figure on a light card even in dark mode (the art is light-grey) */
:root[data-theme="dark"] .bm-anat{ background:linear-gradient(180deg,#f4ede1,#e7ddcc); border-color:rgba(0,0,0,.18); }
.bm-imgwrap{ position:relative; line-height:0; border-radius:12px; overflow:hidden; }
.bm-anat img{ display:block; width:100%; height:auto; }
.bm-anat figcaption{ text-align:center; font:700 12px/1 var(--font-body,'DM Sans',sans-serif); letter-spacing:.14em; text-transform:uppercase; color:#9a8f82; padding:8px 0 2px; }
/* dots */
.bm-dots{ position:absolute; inset:0; pointer-events:none; }
.bm-dot{ position:absolute; transform:translate(-50%,-50%); width:32px; height:32px; padding:0; border:0; background:none; cursor:pointer; pointer-events:auto; -webkit-tap-highlight-color:transparent; }
.bm-dot-core{ position:absolute; left:50%; top:50%; width:14px; height:14px; transform:translate(-50%,-50%); border-radius:50%; background:var(--bm-accent); box-shadow:0 0 0 3px rgba(255,255,255,.75); transition:width .15s,height .15s,box-shadow .15s; }
.bm-dot-ring{ position:absolute; left:50%; top:50%; width:14px; height:14px; transform:translate(-50%,-50%); border-radius:50%; border:2px solid var(--bm-accent); opacity:.6; animation:bmRing2 3s ease-out infinite; }
@keyframes bmRing2{ 0%{opacity:.6;width:14px;height:14px} 70%{opacity:0;width:46px;height:46px} 100%{opacity:0;width:46px;height:46px} }
.bm-dot:hover .bm-dot-core,.bm-dot:focus-visible .bm-dot-core{ width:18px; height:18px; }
.bm-dot:focus-visible{ outline:2px solid var(--bm-accent); outline-offset:3px; border-radius:50%; }
.bm-dot.is-active .bm-dot-core{ width:19px; height:19px; box-shadow:0 0 0 3px rgba(255,255,255,.9),0 0 10px var(--bm-accent); }
.mbm-bodymap.has-active .bm-dot:not(.is-active) .bm-dot-core{ opacity:.4; }
.mbm-bodymap.has-active .bm-dot:not(.is-active) .bm-dot-ring{ animation:none; opacity:.22; }
@media(prefers-reduced-motion:reduce){ .bm-dot-ring{ animation:none; } }
/* the bubble pinned at the tapped part */
.bm-pop{ position:absolute; z-index:60; width:300px; max-width:calc(100% - 16px); padding:18px 18px 16px;
  background:#fff; border:1px solid rgba(155,68,13,.18); border-radius:16px; box-shadow:0 14px 40px rgba(40,22,8,.22); }
:root[data-theme="dark"] .bm-pop{ background:#1f242b; border-color:rgba(255,255,255,.14); box-shadow:0 16px 46px rgba(0,0,0,.55); }
.bm-pop[hidden]{ display:none; }
.bm-pop::after{ content:''; position:absolute; left:var(--ax,50%); width:0; height:0; border:9px solid transparent; }
.bm-pop.arrow-down::after{ bottom:-17px; border-top-color:#fff; transform:translateX(-50%); }
.bm-pop.arrow-up::after{ top:-17px; border-bottom-color:#fff; transform:translateX(-50%); }
:root[data-theme="dark"] .bm-pop.arrow-down::after{ border-top-color:#1f242b; }
:root[data-theme="dark"] .bm-pop.arrow-up::after{ border-bottom-color:#1f242b; }
.bm-pop .bm-close{ display:block; position:absolute; top:8px; right:10px; width:30px; height:30px; border:0; border-radius:50%; background:rgba(0,0,0,.06); color:#1D2023; font-size:20px; line-height:1; cursor:pointer; }
:root[data-theme="dark"] .bm-pop .bm-close{ background:rgba(255,255,255,.12); color:#fff; }
.bm-pop .bm-kicker{ font:700 11px/1 var(--font-body,'DM Sans',sans-serif); letter-spacing:.14em; text-transform:uppercase; color:var(--bm-accent); margin:0 0 4px; }
.bm-pop h3{ font-family:var(--font-title,'Playfair Display',serif); font-size:20px; line-height:1.15; margin:0 6px 8px 0; color:var(--title-text,#1D2023); outline:none; }
:root[data-theme="dark"] .bm-pop h3{ color:#fff; }
.bm-pop .bm-line{ font-size:14px; line-height:1.5; margin:0 0 4px; color:var(--body-text,#50555C); }
:root[data-theme="dark"] .bm-pop .bm-line{ color:#c9ced6; }
.bm-pop .bm-label{ font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted,#6e6358); margin:11px 0 6px; }
.bm-pop .bm-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.bm-pop .bm-more{ margin-top:11px; }
.bm-pop .bm-more summary{ cursor:pointer; font-size:12.5px; font-weight:700; color:var(--bm-accent); list-style:none; }
.bm-pop .bm-more summary::-webkit-details-marker{ display:none; }
.bm-pop .bm-more summary::before{ content:'▸ '; }
.bm-pop .bm-more[open] summary::before{ content:'▾ '; }
.bm-pop .bm-note{ font-size:13.5px; line-height:1.5; font-style:italic; color:var(--muted,#6e6358); margin:8px 0; }
.bm-pop .bm-cta{ display:inline-flex; align-items:center; gap:6px; margin-top:12px; font-weight:700; text-decoration:none; color:var(--bm-accent); border-bottom:2px solid transparent; transition:border-color .2s; }
.bm-pop .bm-cta:hover{ border-bottom-color:var(--bm-accent); }
@media(max-width:820px){
  .mbm-bodymap .bm-figs{ flex-direction:column; align-items:center; gap:18px; }
  .bm-anat{ flex:none; width:86%; max-width:340px; }   /* bigger = well-spaced, grandma-tappable dots */
  .bm-pop{ width:300px; max-width:calc(100vw - 28px); }
}

/* ===== Reusable glass utility + glassify helper ===================== */
.mbm-glass,
.mbm-glassify .addon-card,
.mbm-glassify .card,
.mbm-glassify .faq-item,
.mbm-glassify .pay-card{
  background:rgba(255,255,255,.55); border:1px solid rgba(155,68,13,.16);
  box-shadow:0 8px 30px rgba(40,22,8,.10); border-radius:16px;
  -webkit-backdrop-filter:blur(10px) saturate(1.1); backdrop-filter:blur(10px) saturate(1.1);
}
:root[data-theme="dark"] .mbm-glass,
:root[data-theme="dark"] .mbm-glassify .addon-card,
:root[data-theme="dark"] .mbm-glassify .card,
:root[data-theme="dark"] .mbm-glassify .faq-item,
:root[data-theme="dark"] .mbm-glassify .pay-card{
  background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); box-shadow:0 8px 30px rgba(0,0,0,.42);
}
.mbm-ico{ flex:none; width:42px; height:42px; border-radius:12px; display:flex; align-items:center; justify-content:center;
  background:rgba(224,36,52,.11); color:#bd1b2b; }
:root[data-theme="dark"] .mbm-ico{ background:rgba(240,162,78,.16); color:#f0a24e; }
.mbm-ico svg{ width:23px; height:23px; }

/* ===== Modality comparison — glass cards ============================ */
.modchart .mc-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; max-width:1000px; margin:0 auto; }
.modchart .mc-card{ padding:24px 22px 26px; display:flex; flex-direction:column; gap:4px; }
.modchart .mc-head{ display:flex; align-items:center; gap:13px; margin-bottom:6px; }
.modchart .mc-tag{ display:block; font-family:var(--font-body,'DM Sans',sans-serif); font-size:11px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color:var(--rust,#9b440d); margin-bottom:1px; }
.modchart h3{ margin:0; font-size:20px; color:var(--title-text,#1D2023); }
:root[data-theme="dark"] .modchart h3{ color:#fff; }
.modchart .mc-gauge{ display:flex; gap:7px; align-items:center; margin:10px 0 4px; }
.modchart .mc-gauge i{ width:13px; height:13px; border-radius:50%; background:var(--bm-accent,var(--rust)); display:block; }
.modchart .mc-gauge i.off{ background:transparent; border:1.5px solid var(--muted,#6e6358); }
.modchart .mc-gauge span{ font-family:var(--font-body,'DM Sans',sans-serif); font-size:11px; font-weight:700;
  letter-spacing:.12em; text-transform:uppercase; color:var(--muted,#6e6358); margin-left:6px; }
.modchart .mc-row{ border-top:1px solid rgba(0,0,0,.07); padding-top:9px; margin-top:9px; }
:root[data-theme="dark"] .modchart .mc-row{ border-top-color:rgba(255,255,255,.09); }
.modchart .mc-k{ font-size:10.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--muted,#6e6358); }
.modchart .mc-v{ font-size:15px; color:var(--body-text,#50555C); margin-top:2px; }
:root[data-theme="dark"] .modchart .mc-v{ color:#c9ced6; }
.modchart .mc-card .btn{ margin-top:16px; align-self:flex-start; }
/* Equal-height heads so a wrapping 2-line title doesn't drop that card's rows out of line with the others (3-col comparison view) */
@media(min-width:761px){ .modchart .mc-head{ align-items:flex-start; } .modchart .mc-head h3{ min-height:2.8em; } }
@media(max-width:760px){ .modchart .mc-grid{ grid-template-columns:1fr; } }

/* ===== Enhancements as glass icon-cards (scoped) ==================== */
.mbm-glassify .addon-card{ padding:24px 22px; }
.mbm-glassify .addon-card-icon{ width:46px; height:46px; border-radius:13px; display:inline-flex; align-items:center; justify-content:center;
  background:rgba(224,36,52,.11); color:#bd1b2b; }
:root[data-theme="dark"] .mbm-glassify .addon-card-icon{ background:rgba(240,162,78,.16); color:#f0a24e; }

/* ===== Credentials glass row (about) =============================== */
.mbm-creds{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; max-width:1000px; margin:0 auto; }
.mbm-cred{ display:flex; gap:15px; align-items:flex-start; padding:22px; }
.mbm-cred h3{ margin:0 0 4px; font-size:17px; color:var(--title-text,#1D2023); }
:root[data-theme="dark"] .mbm-cred h3{ color:#fff; }
.mbm-cred p{ margin:0; font-size:13.5px; line-height:1.5; color:var(--body-text,#50555C); }
:root[data-theme="dark"] .mbm-cred p{ color:#c9ced6; }
@media(max-width:760px){ .mbm-creds{ grid-template-columns:1fr; } }

/* ===== faq glass: keep the rust left-rule ========================== */
.mbm-glassify .faq-item{ border-left:3px solid var(--rust); }

/* ===== book service-picker glass (preserves .sel selected state) ==== */
.mbm-glassify #svc-grid .svc{ background:rgba(255,255,255,.5); border:1.5px solid rgba(155,68,13,.18); border-radius:14px;
  -webkit-backdrop-filter:blur(8px) saturate(1.05); backdrop-filter:blur(8px) saturate(1.05); }
:root[data-theme="dark"] .mbm-glassify #svc-grid .svc{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.12); }
.mbm-glassify #svc-grid .svc:hover{ border-color:var(--rust); }
.mbm-glassify #svc-grid .svc.sel{ border-color:var(--rust); background:rgba(224,36,52,.10); }
:root[data-theme="dark"] .mbm-glassify #svc-grid .svc.sel{ background:rgba(91,134,255,.16); }

/* PHONE READABILITY — the uppercase micro-labels in these panels render at
   10.5-11px with 0.12em tracking, which measured as 41 sub-12px text nodes on
   services.html alone. Uppercase + wide tracking at that size is the hardest
   combination to read on a phone, and these are the labels carrying the actual
   information ("From", "Tempo", "Reaches", "Pressure 5/5").
   Phone-only on purpose: the desktop scale is deliberate and untouched, and the
   ribbon is left alone because it is rotated 45deg and its geometry is tuned to
   its current size. */
@media (max-width:600px){
  .bm-readout .bm-label,
  .bm-pop .bm-label,
  .modchart .mc-tag,
  .modchart .mc-gauge span,
  .modchart .mc-k{ font-size:12px; letter-spacing:.08em; }
  /* 14 zone chips measured 33px tall — under the 40px thumb minimum, and they sit
     in a wrap flow so growing them shifts nothing but their own rows. The .bm-dot
     hotspots are also small (32px) but are left alone deliberately: they are
     positioned to anatomy on the body map, and padding them out would make
     neighbouring dots overlap and steal each other's taps. */
  .bm-zchip{ min-height:40px; padding-top:0; padding-bottom:0; display:inline-flex; align-items:center; }
}
