/* Tailored care pages (/treatments/for-children/, /treatments/nervous-patients/). One shared template.
   Loaded after style.css, theme.css, pages.css and treatment.css (which supplies the related links,
   author box and sources). Own hero, bento "easier" grid, tabbed guide, first-visit path and letter. */

/* ------------------------------------------------ Hero */
.page .panel.chero {
  padding-top: calc(var(--hdr-h) + var(--hdr-inset) + clamp(28px, 3.4vw, 48px));
  padding-bottom: clamp(28px, 3.4vw, 52px);
  background:
    radial-gradient(42% 60% at 88% 18%, color-mix(in srgb, #c4b3f0 55%, transparent) 0%, transparent 70%),
    radial-gradient(40% 55% at 62% 100%, color-mix(in srgb, #d9cff5 70%, transparent) 0%, transparent 70%),
    radial-gradient(35% 45% at 0% 20%, #f1f1f4 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #faf9fd 55%, #f1edfb 100%);
}
.chero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.chero__copy { display: grid; gap: 22px; justify-items: start; min-width: 0; }
.chero__pill { min-height: 31px; background: rgb(255 255 255 / .8); }
.chero__pill .i { color: var(--accent); }
.chero__title { font-family: var(--f-head); font-size: clamp(2.5rem, 1rem + 3.3vw, 4.75rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; color: var(--ink); max-width: 16ch; }
.chero__mark { position: relative; z-index: 0; white-space: nowrap; }
.chero__mark::after { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .04em; height: .34em; border-radius: .12em; background: color-mix(in srgb, #c4b3f0 70%, #ffffff); transform: skewX(-8deg); }
.chero__body { display: grid; gap: 22px; width: 100%; padding-top: 24px; border-top: 1px solid rgb(22 18 31 / .1); }
.chero__intro { max-width: 56ch; font: 400 1.05rem/1.7 "Raleway", var(--f-body); color: var(--ink-2); }
.chero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.chero__call { padding: 0 24px; gap: 10px; }
.chero__promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 560px; margin: 4px 0 0; padding: 0; list-style: none; }
.chero__promises li { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgb(255 255 255 / .7); border: 1px solid rgb(255 255 255 / .95); box-shadow: 0 10px 24px -22px rgb(20 16 40 / .5); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 .9rem/1.3 var(--f-body); color: var(--ink); }
.chero__pico { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.chero__pico .i { width: 17px; height: 17px; }

.chero__media { position: relative; justify-self: end; width: min(100%, 520px); }
.chero__media::before { content: ""; position: absolute; inset: -22px -22px auto auto; width: 62%; height: 52%; border-radius: 36px;
  background-image: radial-gradient(rgb(109 80 192 / .28) 1.2px, transparent 1.4px); background-size: 16px 16px; pointer-events: none; }
.chero__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; overflow: hidden; background: #d9d3ea; box-shadow: 0 40px 80px -48px rgb(40 30 80 / .6); }
.chero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chero__frame::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(180deg, transparent 0%, rgb(30 24 52 / .55) 100%); pointer-events: none; }
.chero__tag { position: absolute; z-index: 2; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgb(255 255 255 / .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font: 600 .78rem/1.2 var(--f-body); color: var(--ink); }
.chero__tag .i { width: 14px; height: 14px; color: var(--accent); }
.chero__visit { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; display: grid; gap: 6px; padding: 18px 18px 16px; border-radius: 22px;
  background: rgb(255 255 255 / .3); border: 1px solid rgb(255 255 255 / .45); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3); color: #fff; }
.chero__visit-k { font: 700 .66rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .82); }
.chero__visit-h { font: 600 1.2rem/1.25 var(--f-head); letter-spacing: -.015em; text-shadow: 0 1px 12px rgb(20 16 40 / .25); }
.chero__visit-row { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 12px; border-top: 1px solid rgb(255 255 255 / .3); }
.chero__price { font: 600 1.7rem/1 var(--f-head); letter-spacing: -.03em; }
.chero__meta { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.chero__meta span { padding: 6px 11px; border-radius: 999px; background: #fff; color: var(--ink); font: 600 .76rem/1.2 var(--f-body); white-space: nowrap; }
.chero__go { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: var(--ink); transition: transform .3s var(--ease); }
.chero__go:hover { transform: rotate(45deg); }
.chero__go:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.chero__bubble { position: absolute; z-index: 3; left: -44px; top: 64px; display: flex; align-items: flex-start; gap: 12px; width: min(290px, 70%); margin: 0; padding: 14px 16px 14px 14px; border-radius: 20px 20px 20px 6px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 44px -28px rgb(20 16 40 / .5); }
.chero__bubble img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.chero__bubble figcaption { display: grid; gap: 6px; }
.chero__bubble span { font: 500 .92rem/1.45 "Raleway", var(--f-body); color: var(--ink); }
.chero__bubble small { font-size: .74rem; color: var(--muted); }

/* ------------------------------------------------ How I make it easier (bento) */
.page .panel.cease { background: #fff; }
.cease__head { display: grid; gap: 16px; justify-items: start; max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.cease__lead { font: 400 1.08rem/1.7 "Raleway", var(--f-body); color: var(--ink-2); }
.cease__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cease__card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 24px; background: #f7f7f7; border: 1px solid #f7f7f7; transition: background-color .25s, border-color .25s, transform .3s var(--ease); }
.cease__card:hover { background: #fff; border-color: var(--line-2); transform: translateY(-2px); }
.cease__ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #fff; color: var(--accent); box-shadow: 0 6px 16px -12px rgb(20 16 40 / .4); }
.cease__ico .i { width: 22px; height: 22px; }
.cease__card h3 { margin-top: 6px; font-size: 1.22rem; letter-spacing: -.02em; }
.cease__card p { font: 400 .96rem/1.65 "Raleway", var(--f-body); color: var(--ink-2); }
.cease__quote { grid-row: span 3; display: flex; flex-direction: column; gap: 20px; padding: clamp(26px, 3vw, 38px); border-radius: 24px; color: #fff;
  background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, #7356c4 45%, #1e1d23) 0%, transparent 70%), radial-gradient(60% 50% at 0% 100%, color-mix(in srgb, #7356c4 22%, #1e1d23) 0%, transparent 70%), #1e1d23; }
.cease__mark { width: 34px; height: 34px; color: #c4b3f0; }
.cease__quote > p:not(.cease__who) { font: 500 clamp(1.3rem, 1.05rem + .8vw, 1.75rem)/1.35 var(--f-head); letter-spacing: -.02em; text-wrap: pretty; }
.cease__who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid rgb(255 255 255 / .14); font-size: .84rem; color: #c9c6d2; }
.cease__who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(255 255 255 / .2); }
.cease__who span { display: grid; gap: 2px; }
.cease__who strong { font: 600 .98rem/1.2 var(--f-head); color: #fff; }

/* ------------------------------------------------ Tabbed guide (by age / by worry) */
.page .panel.cguide { background: #f7f7f7; }
.cguide__grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.5vw, 80px); align-items: start; }
.cguide__intro { display: grid; gap: 18px; justify-items: start; position: sticky; top: calc(var(--hdr-h) + 28px); }
.cguide__lead { font: 400 1.05rem/1.7 "Raleway", var(--f-body); color: var(--ink-2); }
.cguide__tabs { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.cguide__tab { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px 14px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; font: inherit; transition: background-color .25s, border-color .25s, color .25s, transform .3s var(--ease); }
.cguide__tab:hover { border-color: var(--ink); }
.cguide__tab:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cguide__tab-l { font: 600 1.08rem/1.2 var(--f-head); letter-spacing: -.015em; min-width: 7.2em; }
.cguide__tab-s { flex: 1; font-size: .86rem; color: var(--muted); }
.cguide__tab-go { width: 18px; height: 18px; color: var(--muted); transition: transform .25s var(--ease), color .25s; }
.cguide__tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cguide__tab[aria-selected="true"] .cguide__tab-s { color: #c9c6d2; }
.cguide__tab[aria-selected="true"] .cguide__tab-go { color: #c4b3f0; transform: translateX(3px); }
html:not(.js) .cguide__tabs { display: none; }
.cguide__src { font-size: .84rem; line-height: 1.6; color: var(--muted); }
.cguide__src a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.cguide__panels { display: grid; gap: 14px; }
.cguide__panel { position: relative; display: grid; gap: 16px; padding: clamp(26px, 3.2vw, 44px); border-radius: 28px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 60px -48px rgb(20 16 40 / .45); overflow: hidden; }
.cguide__panel:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.cguide__panel[hidden] { display: none; }
.is-ready .cguide__panel { animation: cguide-in .45s var(--ease); }
@keyframes cguide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cguide__big { width: fit-content; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 700 .78rem/1.2 var(--f-body); letter-spacing: .1em; text-transform: uppercase; }
.cguide__h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); letter-spacing: -.03em; max-width: 22ch; }
.cguide__p { max-width: 62ch; font: 400 1rem/1.75 "Raleway", var(--f-body); color: var(--ink-2); }
.cguide__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 6px; }
.cguide__col { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 20px; background: #f7f7f7; }
.cguide__col--visit { background: color-mix(in srgb, var(--accent-soft) 70%, #ffffff); }
.cguide__col h4 { display: flex; align-items: center; gap: 10px; font: 700 .74rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cguide__col h4 .i { width: 16px; height: 16px; color: var(--accent); }
.cguide__col--visit .ticks li::before { background: #fff; }

/* ------------------------------------------------ First visit path */
.page .panel.cpath { background: #fff; }
.cpath__list { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cpath__list::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 27px; border-top: 2px dashed var(--line-2); }
.cpath__step { position: relative; display: grid; justify-items: center; align-content: start; gap: 10px; padding: 0 clamp(6px, 1vw, 16px); text-align: center; }
.cpath__dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 8px; border-radius: 50%; background: var(--ink); color: #fff; box-shadow: 0 0 0 8px #fff, 0 14px 28px -14px rgb(20 16 40 / .6); }
.cpath__step:first-child .cpath__dot { background: var(--accent); }
.cpath__dot .i { width: 22px; height: 22px; }
.cpath__k { display: inline-flex; align-items: center; gap: 8px; font: 700 .74rem/1.2 var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.cpath__k span { color: var(--muted); font-variant-numeric: tabular-nums; }
.cpath__step h3 { font-size: 1.25rem; letter-spacing: -.02em; }
.cpath__step p:not(.cpath__k) { max-width: 30ch; font: 400 .95rem/1.65 "Raleway", var(--f-body); color: var(--ink-2); }

/* ------------------------------------------------ A note from Marisa (dark, with a paper letter) */
.page .panel.cletter { color: #d1ced9;
  background: radial-gradient(60% 80% at 100% 0%, color-mix(in srgb, #7356c4 24%, #1e1d23) 0%, transparent 60%), radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, #7356c4 12%, #1e1d23) 0%, transparent 70%), #1e1d23; }
.cletter__grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 88px); align-items: center; }
.cletter__side { display: grid; gap: 18px; justify-items: start; }
.cletter .pill { background: rgb(255 255 255 / .06); border-color: rgb(255 255 255 / .14); color: #c4b3f0; }
.cletter .h2 { color: #fff; }
.cletter__photo { width: 132px; height: 132px; border-radius: 28px; object-fit: cover; box-shadow: 0 0 0 6px rgb(255 255 255 / .06); }
.cletter__paper { position: relative; display: grid; gap: 26px; padding: clamp(28px, 4vw, 56px); border-radius: 28px; background: #fbfaf7; color: var(--ink-2); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .7); }
.cletter__paper::before { content: ""; position: absolute; inset: 14px; border-radius: 18px; border: 1px solid #ece9e1; pointer-events: none; }
.cletter__text { display: grid; gap: 16px; }
.cletter__text p { font: 400 clamp(1.02rem, .95rem + .3vw, 1.15rem)/1.8 "Raleway", var(--f-body); color: #2c2b33; text-wrap: pretty; }
.cletter__text p:first-child::first-letter { float: left; margin: .06em .1em 0 0; font: 600 3.3em/.8 var(--f-head); color: var(--accent); }
.cletter__sign { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 20px; border-top: 1px solid #ece9e1; }
.cletter__sign img { width: 170px; height: auto; filter: brightness(0); opacity: .82; }
.cletter__sign p { display: grid; gap: 2px; text-align: right; font-size: .84rem; color: #6a6874; }
.cletter__sign strong { font: 600 1rem/1.2 var(--f-head); color: var(--ink); }

/* ------------------------------------------------ Responsive (stacked hero matches About and treatment pages) */
@media (max-width: 1180px) {
  .cease__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cease__quote { grid-row: auto; grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .chero__grid { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .chero__copy { display: contents; }
  .chero__grid .crumbs { order: 1; }
  .chero__pill { order: 2; }
  .chero__title { order: 3; max-width: 20ch; }
  .chero__media { order: 4; align-self: center; justify-self: auto; width: min(100%, 440px); margin: 6px 0; }
  .chero__body { order: 5; }
  .chero__bubble { left: -20px; }
  .cguide__grid, .cletter__grid { grid-template-columns: minmax(0, 1fr); }
  .cguide__intro { position: static; }
  .cpath__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .cpath__list::before { display: none; }
}
@media (max-width: 720px) {
  .chero__title { font-size: clamp(2.3rem, 1.2rem + 5vw, 3rem); line-height: 1.02; }
  .chero__mark { white-space: normal; }
  .chero__cta .btn { width: 100%; justify-content: center; }
  .chero__promises { grid-template-columns: minmax(0, 1fr); }
  .chero__media::before { display: none; }
  .chero__bubble { position: relative; left: auto; top: auto; width: auto; margin: -28px 12px 0; }
  .chero__visit { padding: 14px; }
  .chero__visit-h { font-size: 1.02rem; }
  .cease__grid, .cguide__cols { grid-template-columns: minmax(0, 1fr); }
  .cguide__tabs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; margin-inline: -4px; padding-inline: 4px; }
  .cguide__tab { flex: none; width: auto; scroll-snap-align: start; padding: 12px 16px; }
  .cguide__tab-s, .cguide__tab-go { display: none; }
  .cguide__tab-l { min-width: 0; font-size: 1rem; white-space: nowrap; }
  .cpath__list { grid-template-columns: minmax(0, 1fr); }
  .cpath__step { grid-template-columns: 56px minmax(0, 1fr); justify-items: start; column-gap: 16px; row-gap: 6px; text-align: left; padding: 0; }
  .cpath__dot { grid-row: 1 / 4; margin: 0; }
  .cpath__step p:not(.cpath__k) { max-width: none; }
  .cletter__sign p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .cease__card, .cguide__tab, .cguide__tab-go, .chero__go { transition: none; }
  .is-ready .cguide__panel { animation: none; }
}
