/* Care guide page: the guide as the opener (navy band), the kinds of care with a preview pane, the visit checklist.
   Plan: _work/design-plan.md ("Care guide"). Surfaces square, buttons 3px, the gable is the one shaped motif. */

.gd [hidden], .kinds [hidden], .prep [hidden] { display: none !important; }
/* the house outlines sit a few pixels outside their box, so they must not be capped at 100% wide */
.gcard__house, .res__line, .kinds__house, .prep__house { max-width: none; }

/* ---------- 0. The guide (opener) ---------- */
.gd {
  position: relative; min-height: 90vh; overflow: clip; color: #fff;
  background: radial-gradient(120% 80% at 50% 115%, #22386B 0%, var(--navy) 52%, var(--navy-deep) 100%);
  padding: calc(var(--head-h) + clamp(26px, 4.4vh, 60px)) 0 clamp(56px, 8vh, 100px);
}
.gd .petal-canvas { z-index: 0; opacity: .8; }
/* a soft green and pink light behind the card; guide.js turns and breathes it so the opener never sits still */
.gd__glow { position: absolute; left: 50%; top: 56%; width: min(1240px, 150vw); height: min(1240px, 150vw); margin: calc(min(1240px, 150vw) / -2) 0 0 calc(min(1240px, 150vw) / -2); background: radial-gradient(closest-side at 30% 50%, rgba(97, 195, 49, .3), rgba(97, 195, 49, 0) 62%), radial-gradient(closest-side at 72% 46%, rgba(237, 14, 134, .26), rgba(237, 14, 134, 0) 60%); pointer-events: none; z-index: 0; }
.gd__inner { position: relative; z-index: 1; }
.gd__copy { text-align: center; margin-bottom: clamp(84px, 12vh, 124px); }
.gd h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4.6rem); line-height: 1.04; }
.gd h1 em { color: #FF9FCF; }
.gd__lede { margin: .7em auto 0; font-size: clamp(1.125rem, 1.35vw, 1.25rem); color: rgba(255, 255, 255, .86); }

.gd__stage { position: relative; max-width: 860px; margin: 0 auto; }
.gd__stage.has-result { max-width: 1180px; }

/* The two cupped hands (from the logo), either side of the card */
.gd__hand { position: absolute; bottom: -34px; width: clamp(150px, 15vw, 230px); z-index: 0; pointer-events: none; }
.gd__hand--l { right: calc(100% - 46px); }
.gd__hand--r { left: calc(100% - 46px); }
.gd__hand svg { width: 100%; height: auto; overflow: visible; }
.gd__hand--r svg { transform: scaleX(-1); }
.hand__fill { fill: var(--leaf); }
.hand__line { fill: none; stroke: #8BD866; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; opacity: 0; }
.gd__stage.has-result .gd__hand { opacity: 0; visibility: hidden; }

/* The question card: white, square, with the logo's house outline drawn round it */
.gcard { position: relative; z-index: 2; background: #fff; color: var(--text); padding: clamp(24px, 3vw, 42px) clamp(22px, 3.4vw, 50px) clamp(22px, 2.6vw, 34px); box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .08); transform-origin: 50% 100%; }
.gcard__house { position: absolute; left: -18px; top: -86px; width: calc(100% + 36px); height: calc(100% + 120px); pointer-events: none; z-index: -1; color: var(--pink); }
.gcard__top { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.gcard__count { margin: 0; flex: none; font-weight: 650; color: var(--navy); font-size: 1rem; }
.gcard__bar { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gcard__seg { position: relative; height: 4px; background: var(--mist-2); overflow: hidden; }
.gcard__seg i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--pink), #F45BAA); transform: scaleX(0); transform-origin: left; }
.gcard__seg.is-done i { transform: scaleX(1); }
/* the current question's place on the line glows softly */
.gcard__seg.is-now::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(237, 14, 134, 0), rgba(237, 14, 134, .7), rgba(237, 14, 134, 0)); transform: translateX(-100%); animation: gd-sweep 2.6s cubic-bezier(.45, 0, .25, 1) infinite; }
@keyframes gd-sweep { to { transform: translateX(100%); } }
.house-line .comet { color: var(--gold); }
.gcard__err { margin: 0 0 18px; padding: 12px 16px; background: #FCEBEA; color: #8C1D18; font-weight: 600; border-left: 3px solid #B3261E; }

.q { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.q:last-child { margin-bottom: 8px; }
.q__title { padding: 0; font-family: var(--serif); color: var(--navy); font-size: clamp(1.55rem, 2.2vw, 2.05rem); line-height: 1.18; margin-bottom: 8px; }
.q__n { color: var(--pink-ink); }
.q__hint { margin: 0 0 22px; color: var(--muted); font-size: 1.04rem; }
.q--miss .q__title::after { content: " Please choose one."; font-family: var(--sans); font-size: 1rem; font-weight: 650; color: #B3261E; }
.q__tiles { display: grid; gap: 12px; }
.q__tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.q__tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tile { position: relative; display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 20px; border: 1.5px solid #C9D4C4; background: #fff; cursor: pointer; transition: border-color .3s var(--ease), background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease); }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.tile__dot { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #9AA89A; transition: border-color .3s, background-color .3s; }
.tile__dot::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .4s var(--ease); }
.tile__txt { flex: 1; min-width: 0; font-weight: 650; font-size: 1.14rem; color: var(--navy); line-height: 1.25; transition: color .3s; }
.tile:hover { border-color: var(--navy); background: var(--mist); }
.tile:hover .tile__dot { border-color: var(--leaf-ink); }
.tile:has(input:focus-visible) { outline: 3px solid var(--pink); outline-offset: 3px; }
.tile:has(input:checked) { background: var(--navy); border-color: var(--navy); box-shadow: 0 16px 30px -18px rgba(20, 36, 74, .8); }
.tile:has(input:checked) .tile__txt { color: #fff; }
.tile:has(input:checked) .tile__dot { border-color: var(--pink); background: var(--pink); }
.tile:has(input:checked) .tile__dot::after { transform: scale(1); }

.gcard__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.gcard__back { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; background: none; border: 0; color: var(--navy); font-weight: 650; cursor: pointer; }
.gcard__back svg { width: 20px; height: 12px; transition: transform .35s var(--ease); }
.gcard__back:hover svg { transform: translateX(-4px); }
.gcard__go { margin-left: auto; }
.gcard__go[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* Stepper (guide.js, motion only): one question at a time, all stacked in one cell so the card never jumps */
html.js:not(.rm):not(.no-motion) .gcard__steps { display: grid; }
html.js:not(.rm):not(.no-motion) .gcard .q { grid-area: 1 / 1; margin: 0; }
html.js:not(.rm):not(.no-motion) .gcard .q.is-off { visibility: hidden; pointer-events: none; }
html.js:not(.rm):not(.no-motion) .gcard .q__n { display: none; }
.gcard__top, .gcard__house { display: none !important; }
html.js:not(.rm):not(.no-motion) .gcard__top { display: flex !important; }
html.js:not(.rm):not(.no-motion) .gcard__house { display: block !important; }
.gd__fly { position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 5; pointer-events: none; color: var(--pink); }

/* Start states while the page loads (motion only) */
html.js:not(.rm):not(.no-motion) .hand__fill { opacity: 0; }
html.js:not(.rm):not(.no-motion) .gd__stage:not(.has-result) .gcard { opacity: 0; }

/* ---------- The result ---------- */
.gd__result { position: relative; z-index: 2; }
.res { position: relative; background: #fff; color: var(--text); padding: clamp(22px, 3vw, 44px); box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .7); }
.res__top { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(26px, 4vw, 60px); align-items: center; }
.res__media { position: relative; height: min(58vh, 540px); margin: 22px 10px 8px; }
.res__img { position: absolute; inset: 0; overflow: hidden; clip-path: var(--gable); }
.res__img img { width: 100%; height: 100%; object-fit: cover; }
.res__line { position: absolute; left: -12px; top: -14px; width: calc(100% + 24px); height: calc(100% + 26px); pointer-events: none; color: var(--pink); }
.res__title { font-size: clamp(2rem, 3.4vw, 3.3rem); line-height: 1.06; margin-bottom: 22px; outline: none; }
.res__title em { display: inline; }
.res__label { margin: 0 0 10px; font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-ink); }
.res__told { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.told { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px 7px 10px; background: var(--mist); color: var(--muted); font-size: .98rem; font-weight: 600; line-height: 1.3; }
.told svg { width: 18px; height: 18px; flex: none; fill: none; stroke: #8FA08A; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.told--key { background: var(--navy); color: #fff; }
.told--key svg { stroke: #FF9FCF; }
.res__why { font-size: clamp(1.125rem, 1.25vw, 1.2rem); line-height: 1.6; color: var(--text); margin-bottom: 24px; }
.res__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.res__read { font-size: 1.06rem; }
.res__foot { --rule: 1; position: relative; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 60px); margin-top: clamp(26px, 3vw, 40px); padding-top: clamp(22px, 2.6vw, 34px); }
.res__foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, var(--pink), var(--gold) 55%, var(--line)); transform: scaleX(var(--rule)); transform-origin: left; }
.res__title.has-lines { display: flex; flex-direction: column; }
.res__title .ln-mask { display: block; padding: .22em .15em .5em; margin: -.22em -.15em -.5em; overflow: clip; }
.res__title .ln { display: block; }
.res__ask h3 { font-size: clamp(1.4rem, 1.7vw, 1.75rem); margin-bottom: 14px; }
.res__ask ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.res__ask li { position: relative; padding-left: 26px; font-size: 1.06rem; line-height: 1.45; }
.res__ask li::before { content: ""; position: absolute; left: 2px; top: .52em; width: 9px; height: 9px; background: var(--leaf); transform: rotate(45deg); }
.res__side { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.res__also { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; padding: 12px; background: var(--mist); text-decoration: none; color: var(--text); transition: background-color .35s var(--ease); }
.res__also:hover { background: var(--mist-2); }
.res__also-img { display: block; height: 104px; overflow: hidden; clip-path: var(--gable); }
.res__also-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.res__also:hover .res__also-img img { transform: scale(1.08); }
.res__also-k { display: block; font-weight: 700; font-size: .9rem; color: var(--leaf-ink); }
.res__also-txt strong { display: block; font-family: var(--serif); font-weight: 400; color: var(--navy); font-size: 1.35rem; line-height: 1.2; margin: 2px 0 4px; }
.res__also-txt > span:last-child { display: block; font-size: .98rem; color: var(--muted); line-height: 1.45; }
.res__talk { margin: 0; padding: 16px 18px; background: var(--mist); color: var(--muted); font-size: 1.02rem; line-height: 1.5; border-left: 3px solid var(--leaf); }
.res__talk-call { display: flex; width: fit-content; align-items: center; gap: 8px; margin-top: 4px; min-height: 44px; color: var(--navy); font-family: var(--serif); font-size: 1.4rem; text-decoration: none; }
.res__talk-call .i-phone { width: 20px; height: 20px; color: var(--pink-ink); }
.res__talk-call:hover { color: var(--pink-ink); }
.res__again { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--navy); font-weight: 650; text-decoration: none; border-bottom: 2px solid var(--line); transition: border-color .3s; }
.res__again:hover { border-color: var(--navy); }
.res__again svg { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.res__again:hover svg { transform: rotate(-200deg); }

/* ---------- 1. What each kind of care means ---------- */
.kinds { position: relative; background: var(--mist); padding: clamp(64px, 6.5vw, 100px) 0; overflow: clip; }
.kinds__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "head pane" "list pane"; column-gap: clamp(36px, 6vw, 100px); align-items: start; }
.kinds__head { grid-area: head; margin-bottom: 22px; }
.kinds__head .lede { margin: 14px 0 0; }
.kinds__list { grid-area: list; list-style: none; margin: 0; padding: 0; position: relative; }
.kind { position: relative; border-top: 1px solid #CBD8C5; }
.kind:last-child { border-bottom: 1px solid #CBD8C5; }
.kind__link { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 30px; column-gap: 18px; align-items: center; padding: 11px 18px 12px 20px; text-decoration: none; color: var(--navy); }
.kind__name { font-family: var(--serif); font-size: clamp(1.35rem, 1.65vw, 1.65rem); line-height: 1.15; transition: color .4s var(--ease); }
.kind__suits { display: none; }
.kind__line { grid-column: 1 / -1; color: var(--muted); font-size: 1rem; line-height: 1.45; margin-top: 3px; transition: color .4s var(--ease); }
.kind__link .i-arrow { grid-column: 2; grid-row: 1; width: 26px; height: 16px; color: var(--pink-ink); transition: transform .45s var(--ease), color .4s; }
.kind::before { content: ""; position: absolute; inset: -1px 0; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.kind.is-on::before { transform: scaleX(1); }
.kind.is-on .kind__link { background-color: var(--navy); transition: background-color 0s .4s; }
.kind.is-on .kind__name { color: #fff; }
.kind.is-on .kind__line { color: rgba(255, 255, 255, .84); }
.kind.is-on .i-arrow { color: #FF9FCF; transform: translateX(4px); }
.kind__link:focus-visible { outline-offset: -3px; }
.kinds__pane { grid-area: pane; position: relative; height: min(70vh, 640px); margin-top: 18px; align-self: center; }
.kinds__frame { position: absolute; inset: 0; overflow: hidden; clip-path: var(--gable); background: var(--navy); }
.kinds__pic { position: absolute; inset: 0; visibility: hidden; }
.kinds__pic.is-on { visibility: visible; }
.kinds__pic img { width: 100%; height: 100%; object-fit: cover; }
.kinds__cap { position: absolute; left: 0; bottom: 0; z-index: 3; width: min(78%, 420px); padding: 16px 22px 18px; background: var(--navy); color: #fff; overflow: clip; }
.kinds__cap strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin-bottom: 4px; }
.kinds__cap span { display: block; font-size: 1rem; line-height: 1.45; color: rgba(255, 255, 255, .86); }
.kinds__house { position: absolute; left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); pointer-events: none; color: var(--pink); z-index: 2; }
.kinds__timer { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; z-index: 2; background: var(--pink); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* ---------- 2. Before you visit ---------- */
.prep { position: relative; background: #fff; padding: clamp(70px, 7.5vw, 110px) 0; overflow: clip; }
.prep .petal-canvas { z-index: 0; opacity: .5; }
.prep__grid { position: relative; z-index: 1; }
.prep__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 5.5vw, 90px); align-items: center; }
.prep__media { position: relative; height: min(68vh, 620px); margin: 16px; }
.prep__img { position: absolute; inset: 0; overflow: hidden; }
.prep__zoom { position: absolute; inset: 0; }
.prep__img img { width: 100%; height: 100%; object-fit: cover; }
.prep__house { position: absolute; left: -16px; top: -16px; width: calc(100% + 32px); height: calc(100% + 32px); pointer-events: none; z-index: 2; color: var(--leaf); }
.prep__body .lede { margin: 14px 0 26px; }
.prep__lists { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 34px; }
.prep__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.prep__group legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--leaf-ink); }
.tick { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 52px; }
.tick input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.tick__box { position: relative; flex: none; width: 28px; height: 28px; margin-top: 1px; border: 2px solid #A9B8A4; background: #fff; transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.tick__box svg { position: absolute; inset: 2px; width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .45s var(--ease) .05s; }
.tick__txt { font-size: 1.06rem; line-height: 1.45; color: var(--text); transition: color .35s; }
.tick:hover .tick__box { border-color: var(--navy); }
.tick input:focus-visible + .tick__box { outline: 3px solid var(--pink); outline-offset: 3px; }
.tick input:checked + .tick__box { background: var(--pink-ink); border-color: var(--pink-ink); }
.tick input:checked + .tick__box svg { stroke-dashoffset: 0; }
.tick input:checked ~ .tick__txt { color: var(--navy); }
.prep__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin-top: 28px; }
.prep__progress { flex: 1 1 260px; }
.prep__count { margin: 0 0 8px; font-weight: 650; color: var(--navy); }
.prep__meter { display: block; height: 4px; background: var(--mist-2); overflow: hidden; }
.prep__meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--pink)); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.tick__petal { position: absolute; width: 10px; height: 10px; border-radius: 0 60% 0 60%; pointer-events: none; z-index: 2; }
.prep__btns { display: flex; flex-wrap: wrap; gap: 12px; }
html.no-js .prep__progress { display: none; }

/* ---------- Phones and tablets ---------- */
@media (max-width: 1180px) {
  .gd__hand { width: 120px; bottom: -70px; }
  .gd__hand--l { right: calc(50% + 6px); left: auto; }
  .gd__hand--r { left: calc(50% + 6px); }
  .gd { padding-bottom: 110px; }
}
@media (max-width: 900px) {
  .res__top, .res__foot { grid-template-columns: 1fr; }
  .res__media { height: min(46vh, 420px); }
  .kinds__grid { display: block; }
  .kinds__cap { width: auto; max-width: 80%; padding: 10px 16px; }
  .kinds__cap span { display: none; }
  .kind__suits { display: block; grid-column: 1 / -1; margin-top: 6px; font-size: .98rem; line-height: 1.45; color: var(--leaf-ink); }
  .kind.is-on .kind__suits { color: #B9E89F; }
  .kinds__pane { position: sticky; top: calc(var(--head-h) + 8px); height: min(34vh, 300px); z-index: 2; margin: 18px 16px 26px; }
  .prep__grid { grid-template-columns: 1fr; }
  .prep__media { height: min(46vh, 420px); }
}
@media (max-width: 640px) {
  .gd { min-height: 0; padding-top: calc(var(--head-h) + 22px); }
  .gd__copy { margin-bottom: 56px; }
  .gd__glow { top: 30%; }
  .gd h1 { font-size: clamp(2.2rem, 9.6vw, 2.8rem); }
  .gd__lede { font-size: 1.08rem; }
  .gcard { padding: 20px 18px 18px; }
  .gcard__house { left: -10px; top: -46px; width: calc(100% + 20px); height: calc(100% + 70px); }
  .gcard__top { gap: 14px; margin-bottom: 16px; }
  .q__title { font-size: 1.45rem; }
  .q__hint { margin-bottom: 16px; font-size: 1rem; }
  .q__tiles--3, .q__tiles--2 { grid-template-columns: 1fr; gap: 10px; }
  .tile { min-height: 58px; padding: 10px 16px; }
  .gcard__nav { margin-top: 14px; }
  .gcard__go { padding: 0 20px; }
  .res { padding: 18px; }
  .res__ask ul { grid-template-columns: 1fr; }
  .res__btns .btn { flex: 1 1 100%; }
  .res__also { grid-template-columns: 80px 1fr; }
  .kind__link { padding: 14px 14px 14px 16px; }
  .prep__lists { grid-template-columns: 1fr; }
  .prep__btns .btn { flex: 1 1 100%; }
}
